:root {
  --ink: var(--brand-ink, #20211f);
  --ink-soft: #3c3e3a;
  --graphite: var(--brand-graphite, #5e625f);
  --yellow: var(--brand-gold, #d8b53d);
  --yellow-strong: var(--brand-gold-strong, #c49a19);
  --yellow-soft: var(--brand-gold-soft, #f2e7bd);
  --paper: #f5f4ef;
  --surface: var(--brand-surface, #ffffff);
  --surface-muted: var(--brand-surface-muted, #ecece7);
  --line: var(--brand-line, #deded7);
  --success: #26745b;
  --success-soft: #dff2e9;
  --warning: #a56b00;
  --warning-soft: #fff0c7;
  --danger: #b63f36;
  --danger-soft: #fbe5e2;
  --shadow: 0 18px 45px rgba(31, 32, 29, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: var(--brand-font-sans, "Sora", sans-serif);
  --font-body: var(--brand-font-sans, "Sora", sans-serif);
  --font-mono: var(--brand-font-mono, "DM Mono", monospace);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  background:
    radial-gradient(circle at 110% -10%, rgba(216, 181, 61, 0.2), transparent 34%),
    linear-gradient(180deg, #f8f7f3 0%, var(--paper) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(216, 181, 61, 0.42);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.environment-badge {
  position: fixed;
  z-index: 10000;
  top: max(8px, env(safe-area-inset-top));
  right: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(32, 33, 31, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(216, 181, 61, 0.94);
  box-shadow: 0 8px 24px rgba(31, 32, 29, 0.16);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.enrollment-view {
  min-height: 100vh;
  background: var(--surface);
}

.enrollment-visual {
  position: relative;
  min-height: 43vh;
  overflow: hidden;
  background: var(--ink);
}

.enrollment-visual img {
  width: 100%;
  height: 100%;
  min-height: 43vh;
  object-fit: cover;
  object-position: 56% center;
  filter: saturate(0.72) contrast(1.05);
}

.enrollment-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 22, 20, 0.2), rgba(21, 22, 20, 0.18) 40%, rgba(21, 22, 20, 0.9));
}

.enrollment-brand,
.compact-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.enrollment-brand {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  left: 22px;
  color: #fff;
}

.brand-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px 5px 15px 5px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-symbol.small {
  width: 38px;
  height: 38px;
  border-radius: 12px 4px 12px 4px;
  font-size: 1rem;
}

.enrollment-brand strong,
.compact-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.enrollment-brand small,
.compact-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
}

.enrollment-copy {
  position: absolute;
  right: 22px;
  bottom: 30px;
  left: 22px;
  color: #fff;
}

.enrollment-copy p {
  margin: 0 0 7px;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.enrollment-copy h1 {
  max-width: 360px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 13vw, 4.5rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.enrollment-panel {
  position: relative;
  z-index: 2;
  min-height: 57vh;
  margin-top: -18px;
  padding: 32px 22px calc(34px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--surface);
}

.section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--warning);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.enrollment-panel h2,
.student-dialog h2,
.screen-heading h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.enrollment-panel h2,
.student-dialog h2 {
  font-size: 2.25rem;
}

.enrollment-panel > div > p {
  margin: 13px 0 24px;
  color: var(--graphite);
  font-size: 0.9rem;
  line-height: 1.65;
}

.primary-action,
.secondary-action,
.text-action,
.danger-text-action,
.back-action,
.icon-action {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
}

.primary-action {
  padding: 0 20px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 9px 20px rgba(196, 154, 25, 0.2);
}

.primary-action:active {
  transform: translateY(1px);
  background: var(--yellow-strong);
}

.secondary-action {
  padding: 0 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.text-action,
.danger-text-action {
  background: transparent;
  color: var(--graphite);
}

.danger-text-action {
  color: var(--danger);
}

.back-action {
  min-height: 34px;
  margin: -8px 0 15px;
  padding: 0;
  background: transparent;
  color: var(--graphite);
}

.full {
  width: 100%;
}

.student-form {
  display: grid;
  gap: 13px;
}

.student-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.student-form input,
.student-form select,
.student-form textarea,
.screen-heading select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfbf8;
  color: var(--ink);
}

.student-form input,
.student-form select {
  min-height: 49px;
  padding: 0 14px;
}

.student-form textarea {
  padding: 13px 14px;
  resize: vertical;
}

.student-form input:focus,
.student-form select:focus,
.student-form textarea:focus {
  border-color: var(--yellow-strong);
  background: #fff;
}

.form-grid {
  grid-template-columns: 1fr;
}

.consent-row {
  display: flex !important;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 10px !important;
  font-weight: 600 !important;
}

.consent-row input {
  width: 20px;
  min-height: 20px;
}

.form-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
  color: #9a9b96;
  font-size: 0.7rem;
}

.form-separator::before,
.form-separator::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.form-feedback {
  min-height: 18px;
  margin: 10px 0 0 !important;
  color: var(--danger) !important;
  font-size: 0.75rem !important;
}

.student-view {
  min-height: 100vh;
}

.app-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: calc(68px + env(safe-area-inset-top));
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid rgba(222, 222, 215, 0.78);
  background: rgba(248, 247, 243, 0.92);
  backdrop-filter: blur(18px);
}

.compact-brand {
  color: var(--ink);
}

.compact-brand small {
  color: var(--graphite);
}

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

.sync-chip {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--graphite);
  font-size: 0.63rem;
  font-weight: 700;
}

.sync-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--graphite);
}

.sync-chip i.online {
  background: var(--success);
}

.sync-chip i.pending {
  background: var(--warning);
}

.sync-chip i.error,
.sync-chip i.offline {
  background: var(--danger);
}

.profile-trigger {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 800;
}

.app-content {
  width: 100%;
  max-width: 720px;
  min-height: calc(100vh - 144px);
  margin: 0 auto;
  padding: 22px 16px calc(104px + env(safe-area-inset-bottom));
}

.app-screen {
  display: none;
  animation: screen-enter 260ms ease both;
}

.app-screen.active {
  display: block;
}

@keyframes screen-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-row,
.screen-heading,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.welcome-row {
  margin-bottom: 20px;
}

.welcome-row p {
  margin: 0 0 2px;
  color: var(--graphite);
  font-size: 0.82rem;
}

.welcome-row h1,
.screen-heading h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.welcome-row > span {
  color: var(--graphite);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: right;
}

.screen-heading {
  margin-bottom: 20px;
}

.screen-heading select {
  width: auto;
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
}

.screen-counter {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--graphite);
  font-size: 0.66rem;
  font-weight: 800;
}

.access-pass {
  position: relative;
  display: grid;
  min-height: 185px;
  grid-template-columns: 1fr 86px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 23px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 48%),
    var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.access-pass::before {
  position: absolute;
  top: -35px;
  right: 55px;
  width: 125px;
  height: 240px;
  border: 30px solid rgba(216, 181, 61, 0.08);
  border-radius: 50%;
  content: "";
  transform: rotate(25deg);
}

.access-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.access-copy > span {
  color: var(--yellow);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.access-copy > strong {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.access-copy p {
  max-width: 250px;
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  line-height: 1.45;
}

.access-copy button {
  min-height: 38px;
  margin-top: auto;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
}

.access-pass-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.access-pass-mark i {
  position: absolute;
  width: 72px;
  height: 72px;
  border: 2px dashed rgba(216, 181, 61, 0.48);
  border-radius: 50%;
}

.access-pass-mark b {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 17px 6px 17px 6px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.access-pass.warning {
  background: linear-gradient(135deg, #504617, #282821);
}

.access-pass.danger {
  background: linear-gradient(135deg, #552d29, #28211f);
}

.today-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.today-card,
.metric-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.today-card span,
.metric-card span {
  display: block;
  overflow: hidden;
  color: var(--graphite);
  font-size: 0.65rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-card strong,
.metric-card strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 6px;
  color: var(--graphite);
  font-size: 0.6rem;
}

.feature-card,
.chart-card,
.notice-card,
.active-session-card,
.payment-status-card {
  margin-bottom: 14px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 25px rgba(31, 32, 29, 0.05);
}

.feature-card:empty,
.notice-card:empty,
.active-session-card:empty,
.payment-status-card:empty {
  display: none;
}

.feature-card-head,
.history-row-head,
.workout-card-head,
.payment-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feature-card h2,
.workout-card h2,
.payment-status-card h2 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.feature-card p,
.workout-card p,
.history-row p,
.payment-status-card p {
  margin: 9px 0 0;
  color: var(--graphite);
  font-size: 0.75rem;
  line-height: 1.55;
}

.card-action {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--graphite);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill.success {
  background: var(--success-soft);
  color: var(--success);
}

.status-pill.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-pill.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.notice-card {
  border-color: #e6d18e;
  background: var(--warning-soft);
}

.notice-card.danger {
  border-color: #edb9b2;
  background: var(--danger-soft);
}

.notice-card strong {
  display: block;
  font-size: 0.85rem;
}

.notice-card p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.5;
}

.content-stack,
.history-list,
.exercise-progress-list {
  display: grid;
  gap: 10px;
}

.segmented-filter {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: -4px -16px 16px;
  padding: 4px 16px;
  scrollbar-width: none;
}

.segmented-filter::-webkit-scrollbar {
  display: none;
}

.segmented-filter button {
  min-width: 44px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--graphite);
  font-size: 0.7rem;
  font-weight: 800;
}

.segmented-filter button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--yellow);
}

.workout-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.workout-card .division-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px 5px 15px 5px;
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.workout-card-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.workout-card-summary div {
  padding: 10px;
  border-radius: 12px;
  background: var(--paper);
}

.workout-card-summary span {
  display: block;
  color: var(--graphite);
  font-size: 0.56rem;
}

.workout-card-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
}

.active-session-card {
  border-color: #cbb04a;
  background: linear-gradient(135deg, var(--yellow-soft), #fff);
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(42px, 1fr));
  gap: 6px;
  overflow-x: auto;
  margin: 0 -16px 17px;
  padding: 2px 16px 5px;
}

.week-day {
  min-width: 42px;
  min-height: 58px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--graphite);
  text-align: center;
}

.week-day span,
.week-day strong {
  display: block;
}

.week-day span {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}

.week-day strong {
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.week-day.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--yellow);
}

.week-day.active strong {
  color: #fff;
}

.agenda-card,
.history-row,
.exercise-progress-row {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.agenda-card {
  display: grid;
  grid-template-columns: 57px 1fr;
  gap: 13px;
}

.agenda-time {
  padding-right: 12px;
  border-right: 2px solid var(--yellow);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.agenda-card h3,
.history-row h3,
.exercise-progress-row h3 {
  margin: 0;
  font-size: 0.82rem;
}

.agenda-card p {
  margin: 5px 0 0;
  color: var(--graphite);
  font-size: 0.65rem;
  line-height: 1.45;
}

.section-heading {
  margin: 26px 0 13px;
}

.section-heading h2 {
  font-size: 1.75rem;
}

.metric-grid.compact {
  margin-bottom: 12px;
}

.chart-card {
  overflow: hidden;
}

.chart-card .section-heading,
.feature-card .section-heading {
  margin: 0 0 18px;
}

.bar-chart {
  display: flex;
  min-height: 150px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
}

.bar-column {
  display: flex;
  min-width: 0;
  height: 130px;
  align-items: center;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
}

.bar-column i {
  width: min(28px, 72%);
  min-height: 4px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--yellow), var(--yellow-strong));
}

.bar-column strong {
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.bar-column span {
  color: var(--graphite);
  font-size: 0.55rem;
  text-align: center;
}

.exercise-progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.progress-track i {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.exercise-progress-value {
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  text-align: right;
}

.exercise-progress-value small {
  display: block;
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 0.52rem;
}

.payment-status-card {
  position: relative;
  overflow: hidden;
  border: 0;
  background: var(--ink);
  color: #fff;
}

.payment-status-card::after {
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border: 28px solid rgba(216, 181, 61, 0.13);
  border-radius: 50%;
  content: "";
}

.payment-status-card p {
  color: rgba(255, 255, 255, 0.68);
}

.payment-value {
  display: block;
  margin: 22px 0 7px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.payment-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 17px;
}

.payment-meta-grid div {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.payment-meta-grid span,
.payment-meta-grid strong {
  display: block;
}

.payment-meta-grid span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.57rem;
}

.payment-meta-grid strong {
  margin-top: 4px;
  font-size: 0.68rem;
}

.whatsapp-action {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  border: 1px solid #96d5bd;
  border-radius: 15px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.empty-state {
  padding: 28px 18px;
  border: 1px dashed #c9c9c1;
  border-radius: var(--radius-md);
  color: var(--graphite);
  font-size: 0.75rem;
  line-height: 1.55;
  text-align: center;
}

.bottom-navigation {
  position: fixed;
  z-index: 25;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 9px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(218, 218, 211, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 30px rgba(31, 32, 29, 0.08);
  backdrop-filter: blur(18px);
}

.bottom-nav-item {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #858781;
}

.bottom-nav-item small {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.54rem;
  font-weight: 700;
  text-overflow: ellipsis;
}

.bottom-nav-item.active {
  background: var(--yellow-soft);
  color: var(--ink);
}

.nav-glyph {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
}

.home-glyph::before {
  position: absolute;
  inset: 4px 3px 2px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
}

.home-glyph::after {
  position: absolute;
  top: 1px;
  left: 5px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.workout-glyph::before,
.workout-glyph::after {
  position: absolute;
  top: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 2px;
  content: "";
}

.workout-glyph::before { left: 0; }
.workout-glyph::after { right: 0; }

.workout-glyph {
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 9px 2px no-repeat;
}

.agenda-glyph {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.agenda-glyph::before {
  position: absolute;
  top: 3px;
  right: 2px;
  left: 2px;
  border-top: 2px solid currentColor;
  content: "";
}

.agenda-glyph::after {
  position: absolute;
  top: -4px;
  right: 3px;
  left: 3px;
  height: 5px;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
}

.evolution-glyph::before {
  position: absolute;
  inset: 1px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
}

.evolution-glyph::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 11px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: skewY(-32deg);
}

.payment-glyph {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.payment-glyph::before {
  position: absolute;
  top: 4px;
  right: 1px;
  left: 1px;
  height: 3px;
  background: currentColor;
  content: "";
}

.student-dialog,
.workout-dialog {
  border: 0;
  color: var(--ink);
}

.student-dialog {
  width: min(92vw, 430px);
  max-height: 88vh;
  overflow: auto;
  padding: 27px 22px 22px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(22, 23, 21, 0.32);
}

.student-dialog::backdrop,
.workout-dialog::backdrop {
  background: rgba(20, 21, 19, 0.72);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 1.3rem;
}

.profile-dialog #profileCard {
  margin: 10px 0 16px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 19px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.profile-head h2 {
  font-size: 1.75rem;
}

.profile-head p {
  margin: 4px 0 0;
  color: var(--graphite);
  font-size: 0.7rem;
}

.profile-data {
  display: grid;
  gap: 8px;
}

.profile-data div {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-radius: 11px;
  background: var(--paper);
  font-size: 0.68rem;
}

.profile-data span {
  color: var(--graphite);
}

.workout-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
}

.session-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  min-height: calc(72px + env(safe-area-inset-top));
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 15px 10px;
  background: var(--ink);
  color: #fff;
}

.session-header > div { min-width: 0; }

.session-back {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.65rem;
  font-weight: 700;
}

.session-header span,
.session-header strong {
  display: block;
}

.session-header span {
  color: var(--yellow);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.session-header strong {
  margin-top: 3px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.session-header time {
  min-width: 58px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.session-progress {
  position: sticky;
  z-index: 5;
  top: calc(72px + env(safe-area-inset-top));
  height: 5px;
  background: #3b3c38;
}

.session-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--yellow);
  transition: width 220ms ease;
}

.session-content {
  display: grid;
  max-width: 720px;
  gap: 12px;
  margin: 0 auto;
  padding: 17px 15px calc(92px + env(safe-area-inset-bottom));
}

.session-exercise {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.session-exercise-head {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  padding: 16px;
}

.exercise-order {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: var(--warning);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.session-exercise h3 {
  margin: 0;
  font-size: 0.82rem;
}

.session-exercise p {
  margin: 4px 0 0;
  color: var(--graphite);
  font-size: 0.62rem;
  line-height: 1.45;
}

.set-table {
  border-top: 1px solid var(--line);
}

.set-row {
  display: grid;
  min-height: 62px;
  grid-template-columns: 30px minmax(62px, 1fr) minmax(62px, 1fr) 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-bottom: 1px solid #eeeeea;
}

.set-row:last-child {
  border-bottom: 0;
}

.set-row > span {
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.set-field {
  display: grid;
  gap: 3px;
}

.set-field label {
  color: var(--graphite);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.set-field input {
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfbf8;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.set-check {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: transparent;
}

.set-check::before {
  width: 11px;
  height: 6px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  transform: rotate(-45deg) translate(1px, -1px);
}

.set-row.completed {
  background: #f7fbf8;
}

.set-row.completed .set-check {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.session-footer {
  position: fixed;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: calc(74px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(15px);
}

.session-footer span {
  color: var(--graphite);
  font-size: 0.68rem;
  font-weight: 700;
}

.session-footer .primary-action {
  min-height: 46px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: 16px;
  max-width: 450px;
  margin: 0 auto;
  padding: 13px 15px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .form-grid .wide {
    grid-column: 1 / -1;
  }

  .app-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .today-grid,
  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bottom-navigation {
    right: 50%;
    left: auto;
    width: min(620px, calc(100% - 24px));
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    transform: translateX(50%);
  }
}

@media (min-width: 900px) {
  .enrollment-view {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.25fr) minmax(430px, 0.75fr);
  }

  .enrollment-visual,
  .enrollment-visual img {
    min-height: 100vh;
  }

  .enrollment-panel {
    display: flex;
    min-height: 100vh;
    align-items: center;
    margin: 0;
    padding: 55px clamp(38px, 5vw, 75px);
    border-radius: 0;
  }

  .enrollment-panel > div {
    width: 100%;
    max-width: 520px;
  }

  .enrollment-copy {
    right: 7vw;
    bottom: 7vh;
    left: 7vw;
  }

  .enrollment-copy h1 {
    max-width: 620px;
    font-size: clamp(4.5rem, 7vw, 7.5rem);
  }
}

@media (max-width: 370px) {
  .app-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .sync-chip span {
    display: none;
  }

  .today-card,
  .metric-card,
  .feature-card,
  .workout-card {
    padding: 14px;
  }

  .bottom-nav-item small {
    font-size: 0.68rem;
  }
}

.physical-evolution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.physical-evolution-grid article { padding: 13px; border-radius: 14px; background: var(--paper); }
.physical-evolution-grid span, .physical-evolution-grid strong, .physical-evolution-grid small { display: block; }
.physical-evolution-grid span { color: var(--graphite); font-size: .72rem; }
.physical-evolution-grid strong { margin-top: 5px; font-family: var(--font-display); font-size: 1.35rem; }
.physical-evolution-grid small { margin-top: 4px; color: var(--graphite); font-size: .68rem; line-height: 1.35; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* Login seguro: feedback visual e bloqueio de envio repetido */
form[aria-busy="true"] button[type="submit"] {
  cursor: wait;
  opacity: 0.78;
  pointer-events: none;
}

form[aria-busy="true"] button[type="submit"]::after {
  content: "";
  width: 15px;
  height: 15px;
  margin-left: 9px;
  display: inline-block;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pf-login-spin 0.75s linear infinite;
}

@keyframes pf-login-spin {
  to { transform: rotate(360deg); }
}

/* ======================================================================
   2026-07-12 - ETAPA 1: LOGIN COMPACTO + CABECALHO HIBRIDO
   Foto da academia preservada sem corte agressivo e wordmark cinza/preto/amarelo.
   ====================================================================== */
.enrollment-view {
  width: min(100%, 820px) !important;
  min-height: 100vh !important;
  margin: 0 auto;
  padding: 22px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.auth-brand-header {
  height: 190px !important;
  min-height: 190px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(210px, .65fr) !important;
  overflow: hidden;
  border: 1px solid rgba(32, 33, 31, 0.12);
  border-radius: 24px 24px 0 0;
  background: #b9bab5;
  box-shadow: 0 18px 46px rgba(31, 32, 29, 0.14);
}

.auth-brand-photo {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #aeb0ab;
}

.auth-brand-photo img,
.enrollment-visual.auth-brand-header img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: block;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
}

.auth-brand-wordmark {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 11px;
  padding: 22px 18px;
  border-left: 1px solid rgba(32, 33, 31, 0.14);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), transparent 48%),
    #b9bab5;
  text-align: center;
}

.pf-wordmark {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .18em;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 6vw, 3.55rem);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.035em;
}

.pf-wordmark span { color: #171817; }
.pf-wordmark strong { color: var(--yellow); text-shadow: 0 1px 0 rgba(0,0,0,.14); }

.auth-brand-wordmark > small {
  color: #333430;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .19em;
}

.enrollment-panel {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 28px 30px 30px !important;
  border: 1px solid rgba(32, 33, 31, 0.09);
  border-top: 0;
  border-radius: 0 0 24px 24px !important;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(31, 32, 29, 0.11);
}

.enrollment-panel > div {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.enrollment-panel h2 {
  margin-bottom: 19px;
  font-size: clamp(2rem, 7vw, 2.55rem);
}

.login-form {
  gap: 12px;
}

.login-form label {
  font-size: .82rem;
}

.password-rule {
  margin: -5px 0 17px !important;
  color: var(--graphite) !important;
  font-size: .78rem !important;
  line-height: 1.45 !important;
}

.form-feedback:empty {
  display: none;
}

.form-feedback:not(:empty) {
  display: block;
  min-height: 0;
  margin-top: 11px !important;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--danger-soft);
}

@media (min-width: 900px) {
  .enrollment-view {
    grid-template-columns: none !important;
    padding: 34px;
  }

  .enrollment-visual,
  .enrollment-visual img {
    min-height: 0 !important;
  }

  .enrollment-panel {
    display: block !important;
    min-height: 0 !important;
    padding: 32px 46px 36px !important;
  }
}

@media (max-width: 620px) {
  .enrollment-view {
    width: 100% !important;
    padding: 0;
    justify-content: flex-start;
  }

  .auth-brand-header {
    height: 166px !important;
    min-height: 166px !important;
    grid-template-columns: 58% 42% !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-brand-wordmark {
    padding: 15px 10px;
  }

  .pf-wordmark {
    display: grid;
    gap: 0;
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .auth-brand-wordmark > small {
    font-size: .62rem;
    letter-spacing: .13em;
  }

  .enrollment-panel {
    flex: 1;
    padding: 26px 22px calc(28px + env(safe-area-inset-bottom)) !important;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
  }
}

/* 2026-07-12 - LOGO OFICIAL PRO FITNESS */
.auth-brand-photo {
  background: #8f918d;
}

.auth-brand-photo img,
.enrollment-visual.auth-brand-header img,
.prof-auth-visual.auth-brand-header img,
.hybrid-app-header .auth-brand-photo img,
.admin-auth-brand .auth-brand-photo img,
.admin-header.hybrid-app-header .auth-brand-photo img {
  object-fit: cover !important;
  object-position: center center !important;
}

.auth-brand-wordmark {
  padding: 18px 16px;
  border-left-color: rgba(255,255,255,.12) !important;
  background:
    radial-gradient(circle at 78% 12%, rgba(216,181,61,.11), transparent 12rem),
    linear-gradient(145deg, #2d2e2c, #111211 72%) !important;
}

.official-brand-logo {
  width: min(100%, 330px);
  max-height: 112px;
  display: block;
  object-fit: contain;
}

.auth-brand-wordmark > small {
  color: rgba(255,255,255,.78) !important;
  font-size: .7rem;
  letter-spacing: .22em;
}

.lock-brand-logo {
  width: min(100%, 270px);
  margin: 0 auto 22px;
  display: block;
}

@media (max-width: 620px) {
  .official-brand-logo {
    width: min(100%, 210px);
    max-height: 88px;
  }

  .auth-brand-wordmark > small {
    font-size: .58rem;
    letter-spacing: .15em;
  }
}


/* 2026-07-12 - ETAPA 3: APP DO ALUNO COMPACTO */
.student-view .app-content {
  padding-top: 16px;
}

.student-view .screen-heading {
  min-height: 42px;
  margin-bottom: 14px;
  align-items: center;
}

.student-view .screen-heading h1 {
  font-size: clamp(2.05rem, 8vw, 2.45rem);
  line-height: .95;
}

.student-view .section-heading {
  min-height: 32px;
  margin: 19px 0 10px;
  align-items: center;
}

.student-view .section-heading h2 {
  font-size: clamp(1.4rem, 6vw, 1.65rem);
  line-height: 1;
}

.student-view .feature-card,
.student-view .chart-card,
.student-view .notice-card,
.student-view .active-session-card,
.student-view .payment-status-card {
  margin-bottom: 11px;
  padding: 16px;
}

.student-view .content-stack,
.student-view .history-list,
.student-view .exercise-progress-list {
  gap: 8px;
}

.student-view .segmented-filter {
  margin-bottom: 12px;
}

.student-view .week-strip {
  margin-bottom: 13px;
}

.student-view .agenda-card,
.student-view .history-row,
.student-view .exercise-progress-row {
  padding: 13px;
}

.student-view .metric-grid,
.student-view .today-grid {
  gap: 8px;
  margin-bottom: 11px;
}

.student-view .metric-card,
.student-view .today-card {
  padding: 14px;
}

.student-view .physical-evolution-grid {
  gap: 8px;
  margin-bottom: 11px;
}

.student-view .physical-evolution-grid article {
  padding: 11px;
}

.student-view .bar-chart {
  min-height: 136px;
  padding-top: 12px;
}

.student-view .bar-column {
  height: 118px;
}

.student-view .payment-value {
  margin: 16px 0 6px;
  font-size: 2.7rem;
}

.student-view .payment-meta-grid {
  margin-top: 13px;
}

@media (max-width: 370px) {
  .student-view .app-content {
    padding-top: 13px;
  }

  .student-view .screen-heading {
    margin-bottom: 12px;
  }

  .student-view .feature-card,
  .student-view .chart-card,
  .student-view .payment-status-card {
    padding: 14px;
  }
}

/* 2026-07-12 - ETAPA 4: garante a troca real entre login e aplicativo. */
#onboardingView[hidden],
#studentView[hidden] {
  display: none !important;
}

/* Etapa 4: o selo de demonstracao nao deve cobrir os controles do aluno. */
body:has(#onboardingView:not([hidden])) .environment-badge {
  top: max(8px, env(safe-area-inset-top));
  left: 10px;
  right: auto;
}
body:has(#studentView:not([hidden])) .environment-badge {
  top: calc(58px + env(safe-area-inset-top));
  right: 14px;
  left: auto;
  padding: 3px 7px;
  font-size: .55rem;
  box-shadow: none;
}


/* Etapa 4: evita rolagem horizontal residual em celulares estreitos. */
@media (max-width: 370px) {
  .student-view .segmented-filter,
  .student-view .week-strip {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ======================================================================
   2026-07-12 - CABEÇALHO OFICIAL FINO
   Usa a arte aprovada com foto da academia e logotipo oficial.
   ====================================================================== */
.official-banner-header {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  background: #171817 !important;
}

.official-header-banner {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: fill !important;
  object-position: center !important;
}

.header-role-label {
  position: absolute;
  right: 5.2%;
  bottom: 11px;
  z-index: 2;
  color: rgba(255,255,255,.9);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-shadow: 0 2px 9px rgba(0,0,0,.75);
}

.enrollment-visual.auth-brand-header.official-banner-header {
  height: 142px !important;
  min-height: 142px !important;
}

@media (max-width: 620px) {
  .enrollment-visual.auth-brand-header.official-banner-header {
    height: 104px !important;
    min-height: 104px !important;
  }
  .header-role-label {
    right: 4.5%;
    bottom: 7px;
    font-size: .56rem;
  }
  .enrollment-panel {
    min-height: calc(100vh - 104px) !important;
  }
}

/* 2026-07-12 - CABECALHO OFICIAL SEM DISTORCAO */
.official-header-banner {
  object-fit: contain !important;
  background: #0d0e0d;
}

.student-photo-header {
  width: 100%;
  height: 52px;
  min-height: 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.student-photo-header .header-role-label {
  right: 4.5%;
  bottom: 5px;
  font-size: .5rem;
}

.student-view .app-topbar {
  min-height: calc(52px + env(safe-area-inset-top));
  justify-content: flex-end;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
}

.student-view .topbar-actions {
  width: 100%;
  justify-content: flex-end;
}

body:has(#studentView:not([hidden])) .environment-badge {
  top: calc(106px + env(safe-area-inset-top));
}

.developer-credit {
  margin: 20px 0 8px;
  color: #666861;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.developer-credit strong {
  color: #30312e;
  font-weight: 800;
}

/* ======================================================================
   2026-07-14 - EXPERIENCIA MOBILE PRO FITNESS
   Interface operacional inspirada em aplicativos fitness de referencia,
   preservando a identidade preta, amarela e cinza da academia.
   ====================================================================== */
.student-view {
  --app-bg: #f1f0eb;
  --app-card: #fff;
  --app-ink: #191a18;
  --app-muted: #71736e;
  --app-line: #e2e1da;
  --app-yellow: var(--brand-gold, #d8b53d);
  --app-shadow: 0 14px 38px rgba(26, 27, 24, .075);
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 100% 0, rgba(216, 181, 61, .14), transparent 18rem),
    linear-gradient(180deg, #f8f7f3 0, var(--app-bg) 28rem);
}

.student-photo-header {
  height: 46px;
  min-height: 46px;
  border: 0;
  background: #10110f !important;
}

.student-photo-header .official-header-banner {
  object-fit: cover !important;
  object-position: center !important;
  opacity: .94;
}

.student-photo-header::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.08), transparent 34%, rgba(0,0,0,.2));
  content: "";
  pointer-events: none;
}

.student-photo-header .header-role-label {
  right: max(16px, calc((100vw - 560px) / 2 + 16px));
  bottom: 5px;
  font-size: .47rem;
}

.student-view .app-topbar {
  min-height: calc(62px + env(safe-area-inset-top));
  padding: calc(9px + env(safe-area-inset-top)) max(14px, calc((100vw - 560px) / 2 + 14px)) 9px;
  border-bottom: 1px solid rgba(218, 217, 210, .76);
  background: rgba(249, 248, 244, .88);
  box-shadow: 0 7px 25px rgba(24, 25, 22, .04);
  backdrop-filter: blur(22px) saturate(1.25);
}

.student-view .compact-brand {
  gap: 9px;
}

.student-view .brand-symbol.small {
  width: 36px;
  height: 36px;
  border-radius: 12px 4px 12px 4px;
  box-shadow: 0 7px 16px rgba(196, 154, 25, .16);
}

.student-view .compact-brand strong {
  font-size: 1.02rem;
  letter-spacing: .055em;
}

.student-view .compact-brand small {
  margin-top: 2px;
  font-size: .59rem;
  letter-spacing: .04em;
}

.student-view .topbar-actions {
  width: auto;
  justify-content: flex-end;
}

.student-view .sync-chip {
  min-height: 34px;
  border-color: rgba(211, 210, 202, .9);
  background: rgba(255,255,255,.82);
}

.student-view .profile-trigger {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(20,20,18,.16);
}

.student-view .app-content {
  max-width: 560px;
  min-height: calc(100dvh - 108px);
  padding: 20px 15px calc(112px + env(safe-area-inset-bottom));
}

.student-view .app-screen.active {
  animation: student-screen-enter 330ms cubic-bezier(.2,.75,.2,1) both;
}

@keyframes student-screen-enter {
  from { opacity: 0; transform: translateY(9px) scale(.995); }
  to { opacity: 1; transform: none; }
}

.student-view .welcome-row {
  margin: 0 1px 17px;
  align-items: flex-end;
}

.student-view .home-eyebrow,
.student-view .section-kicker {
  color: #8a6d00;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.student-view .welcome-row p {
  margin: 5px 0 1px;
  color: var(--app-muted);
  font-size: .74rem;
  font-weight: 600;
}

.student-view .welcome-row h1 {
  font-size: clamp(2.35rem, 11vw, 3.15rem);
  letter-spacing: -.02em;
}

.student-view .welcome-row > span {
  max-width: 90px;
  padding-bottom: 3px;
  color: var(--app-muted);
  font-size: .63rem;
  line-height: 1.35;
}

.student-view .access-pass {
  min-height: 112px;
  grid-template-columns: minmax(0,1fr) 58px;
  margin-bottom: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(216,181,61,.16), transparent 8rem),
    linear-gradient(145deg, #252622, #151614 72%);
  box-shadow: 0 17px 38px rgba(23,24,21,.17);
}

.student-view .access-pass::before {
  top: -82px;
  right: 24px;
  width: 135px;
  height: 190px;
  border-width: 23px;
}

.student-view .access-copy > span {
  font-size: .54rem;
}

.student-view .access-copy > strong {
  margin-top: 6px;
  font-size: 1.45rem;
}

.student-view .access-copy p {
  max-width: 300px;
  margin: 4px 0 9px;
  font-size: .64rem;
  line-height: 1.35;
}

.student-view .access-copy button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: .62rem;
}

.student-view .access-pass-mark i {
  width: 54px;
  height: 54px;
}

.student-view .access-pass-mark b {
  width: 39px;
  height: 39px;
  border-radius: 13px 4px 13px 4px;
  font-size: 1rem;
}

.student-view .workout-next-card {
  position: relative;
  overflow: hidden;
  min-height: 185px;
  padding: 21px;
  border: 0;
  border-radius: 25px;
  background:
    radial-gradient(circle at 100% 0, rgba(216,181,61,.18), transparent 12rem),
    linear-gradient(145deg, #232420, #10110f 76%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(23,24,21,.17);
}

.student-view .workout-next-card::after {
  position: absolute;
  right: -28px;
  bottom: -45px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(216,181,61,.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.student-view .workout-next-card .section-kicker {
  color: var(--app-yellow);
}

.student-view .workout-next-card h2 {
  max-width: 280px;
  color: #fff;
  font-size: clamp(1.85rem, 8vw, 2.35rem);
}

.student-view .workout-next-card p {
  position: relative;
  z-index: 1;
  max-width: 360px;
  color: rgba(255,255,255,.66);
}

.student-view .workout-next-card .status-pill {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.student-view .workout-next-card .card-action {
  position: relative;
  z-index: 2;
  min-height: 45px;
  margin-top: 18px;
  padding: 0 17px;
  border-radius: 13px;
  background: var(--app-yellow);
  color: var(--app-ink);
  box-shadow: 0 9px 24px rgba(196,154,25,.14);
}

.student-view .schedule-next-card {
  min-height: 130px;
  padding: 18px;
  border-color: var(--app-line);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--app-shadow);
}

.student-view .schedule-next-card .card-action {
  min-height: 38px;
  margin-top: 13px;
  background: #efeee8;
  color: var(--app-ink);
}

.student-view .home-insight-heading {
  margin: 22px 2px 11px;
}

.student-view .home-insight-heading > div {
  min-width: 0;
}

.student-view .home-insight-heading h2 {
  margin: 3px 0 0;
  font-size: 1.55rem;
}

.student-view .home-insight-heading .text-action {
  width: auto;
  min-height: 36px;
  padding: 0 5px;
  color: #6e5900;
  font-size: .65rem;
}

.student-view .today-grid {
  gap: 9px;
}

.student-view .today-card {
  min-height: 91px;
  padding: 14px;
  border-color: var(--app-line);
  border-radius: 18px;
  background: rgba(255,255,255,.8);
  box-shadow: 0 8px 23px rgba(30,31,27,.035);
}

.student-view .today-card span {
  white-space: normal;
  line-height: 1.35;
}

.student-view .today-card strong {
  margin-top: 10px;
  font-size: 1.75rem;
}

.student-view .screen-heading {
  min-height: 54px;
  margin: 0 1px 17px;
  align-items: center;
}

.student-view .screen-heading h1 {
  font-size: clamp(2.25rem, 10vw, 3rem);
  letter-spacing: -.02em;
}

.student-view .feature-card,
.student-view .chart-card,
.student-view .notice-card,
.student-view .active-session-card,
.student-view .payment-status-card,
.student-view .workout-card,
.student-view .agenda-card,
.student-view .history-row,
.student-view .exercise-progress-row {
  border-color: var(--app-line);
  box-shadow: 0 9px 26px rgba(28,29,26,.045);
}

.student-view .workout-card {
  border-radius: 23px;
}

.student-view .workout-card .primary-action,
.student-view .active-session-card .card-action {
  min-height: 48px;
  border-radius: 14px;
}

.student-view .segmented-filter button,
.student-view .week-day {
  box-shadow: 0 5px 18px rgba(25,26,23,.035);
}

.student-view .week-day.active {
  box-shadow: 0 10px 24px rgba(25,26,23,.16);
}

.student-view .payment-status-card {
  border-radius: 25px;
  background:
    radial-gradient(circle at 100% 0, rgba(216,181,61,.17), transparent 12rem),
    linear-gradient(145deg, #242521, #121310 76%);
  box-shadow: 0 18px 42px rgba(23,24,21,.17);
}

.more-screen-heading {
  align-items: flex-end !important;
}

.more-profile-card {
  position: relative;
  display: grid;
  min-height: 116px;
  grid-template-columns: 52px minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  padding: 17px;
  border-radius: 22px;
  background: linear-gradient(145deg, #242521, #151613);
  color: #fff;
  box-shadow: 0 17px 38px rgba(23,24,21,.16);
}

.more-profile-card::after {
  position: absolute;
  right: -28px;
  bottom: -48px;
  width: 120px;
  height: 120px;
  border: 20px solid rgba(216,181,61,.09);
  border-radius: 50%;
  content: "";
}

.more-profile-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 17px 6px 17px 6px;
  background: var(--app-yellow);
  color: var(--app-ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.more-profile-copy {
  min-width: 0;
}

.more-profile-copy span,
.more-profile-copy strong,
.more-profile-copy small {
  display: block;
}

.more-profile-copy span {
  color: var(--app-yellow);
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.more-profile-copy strong {
  overflow: hidden;
  margin: 4px 0 3px;
  font-size: .95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-profile-copy small {
  color: rgba(255,255,255,.62);
  font-size: .61rem;
}

.more-profile-status {
  position: relative;
  z-index: 1;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .53rem;
  font-weight: 800;
  white-space: nowrap;
}

.more-link-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.more-link {
  display: grid;
  min-height: 78px;
  grid-template-columns: 43px minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--app-line);
  border-radius: 19px;
  background: rgba(255,255,255,.88);
  color: var(--app-ink);
  text-align: left;
  box-shadow: 0 9px 25px rgba(27,28,25,.04);
}

.more-link > span:nth-child(2) {
  min-width: 0;
}

.more-link strong,
.more-link small {
  display: block;
}

.more-link strong {
  font-size: .78rem;
}

.more-link small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--app-muted);
  font-size: .6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-link > i {
  color: #a1a29c;
  font-size: 1.45rem;
  font-style: normal;
}

.more-link-icon {
  position: relative;
  display: block;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background-color: #f3f1e9;
  background-position: center;
  color: #796200;
  transform: scale(.78);
  transform-origin: center;
}

.more-link-icon::before,
.more-link-icon::after {
  transform-origin: center;
}

.profile-glyph::before {
  position: absolute;
  top: 9px;
  left: 15px;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.profile-glyph::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 14px 14px 5px 5px;
  content: "";
}

.install-glyph::before {
  position: absolute;
  top: 8px;
  left: 20px;
  width: 2px;
  height: 17px;
  background: currentColor;
  content: "";
}

.install-glyph::after {
  position: absolute;
  right: 9px;
  bottom: 8px;
  left: 9px;
  height: 11px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  background:
    linear-gradient(45deg, transparent 43%, currentColor 44% 56%, transparent 57%) 9px -8px / 10px 10px no-repeat,
    linear-gradient(-45deg, transparent 43%, currentColor 44% 56%, transparent 57%) 15px -8px / 10px 10px no-repeat;
  content: "";
}

.more-support-card {
  margin-top: 15px;
  padding: 18px;
  border: 1px solid #e4d594;
  border-radius: 21px;
  background: linear-gradient(135deg, #fff7d2, #fffdf4);
}

.more-support-card span,
.more-support-card strong {
  display: block;
}

.more-support-card span {
  color: #866b00;
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.more-support-card strong {
  margin-top: 6px;
  font-size: .84rem;
}

.more-support-card p {
  margin: 5px 0 13px;
  color: #6f6b58;
  font-size: .65rem;
  line-height: 1.5;
}

.more-support-card a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border-radius: 11px;
  background: var(--app-ink);
  color: #fff;
  font-size: .63rem;
  font-weight: 800;
  text-decoration: none;
}

.student-view .bottom-navigation {
  right: auto;
  left: 50%;
  width: min(100%, 560px);
  min-height: calc(72px + env(safe-area-inset-bottom));
  padding: 7px 8px calc(6px + env(safe-area-inset-bottom));
  border: 1px solid rgba(218,217,210,.88);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: rgba(255,255,255,.94);
  box-shadow: 0 -12px 35px rgba(25,26,23,.09);
  transform: translateX(-50%);
  backdrop-filter: blur(22px) saturate(1.2);
}

.student-view .bottom-nav-item {
  min-height: 56px;
  gap: 5px;
  border-radius: 14px;
}

.student-view .bottom-nav-item small {
  font-size: .56rem;
  font-weight: 800;
}

.student-view .bottom-nav-item.active {
  background: transparent;
  color: var(--app-ink);
}

.student-view .bottom-nav-item.active::after {
  position: absolute;
  bottom: 1px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--app-yellow);
  content: "";
}

.student-view .bottom-nav-item {
  position: relative;
}

.more-glyph::before {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 7px 0 currentColor, 14px 0 currentColor;
  content: "";
}

.rest-timer-panel {
  position: fixed;
  z-index: 8;
  right: 12px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 12px;
  display: grid;
  max-width: 530px;
  min-height: 76px;
  grid-template-columns: 54px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(24,25,22,.96);
  color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.3);
  backdrop-filter: blur(16px);
}

.rest-timer-panel[hidden] {
  display: none !important;
}

.rest-timer-ring {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, #20211e 59%, transparent 61%),
    conic-gradient(var(--app-yellow) var(--rest-progress, 100%), rgba(255,255,255,.12) 0);
}

.rest-timer-ring span {
  color: var(--app-yellow);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
}

.rest-timer-panel > div:nth-child(2) span,
.rest-timer-panel > div:nth-child(2) strong {
  display: block;
}

.rest-timer-panel > div:nth-child(2) span {
  color: var(--app-yellow);
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.rest-timer-panel > div:nth-child(2) strong {
  overflow: hidden;
  margin-top: 4px;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rest-timer-panel button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .63rem;
  font-weight: 800;
}

.agenda-day-heading {
  display: flex;
  min-height: 52px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 11px;
}

.agenda-day-heading span,
.agenda-day-heading strong {
  display: block;
}

.agenda-day-heading > div > span {
  color: #8a6d00;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .11em;
}

.agenda-day-heading strong {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.48rem;
  line-height: 1;
  text-transform: uppercase;
}

.agenda-day-heading > span {
  padding-bottom: 2px;
  color: var(--app-muted);
  font-size: .61rem;
  font-weight: 700;
}

.workout-dialog .session-content {
  max-width: 620px;
  gap: 14px;
  padding-top: 15px;
}

.workout-dialog .session-exercise {
  border-color: var(--app-line);
  border-radius: 22px;
  box-shadow: 0 11px 30px rgba(28,29,26,.055);
}

.workout-dialog .session-exercise-head {
  grid-template-columns: 42px minmax(0,1fr);
  align-items: center;
  padding: 17px;
}

.workout-dialog .exercise-order {
  width: 42px;
  height: 42px;
  border-radius: 14px 5px 14px 5px;
  background: var(--yellow);
  color: var(--ink);
}

.workout-dialog .exercise-kicker {
  display: block;
  margin-bottom: 4px;
  color: #8a6d00;
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.workout-dialog .session-exercise h3 {
  font-size: .88rem;
}

.workout-dialog .session-exercise p {
  margin-top: 5px;
  font-size: .63rem;
}

.set-table-head,
.workout-dialog .set-row {
  display: grid;
  grid-template-columns: 30px minmax(58px, 80px) minmax(48px, 1fr) minmax(48px, 1fr) 38px;
  align-items: center;
  gap: 7px;
}

.set-table-head {
  min-height: 32px;
  padding: 5px 11px;
  border-bottom: 1px solid var(--app-line);
  background: #f6f5f0;
  color: #858780;
}

.set-table-head span {
  overflow: hidden;
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.workout-dialog .set-row {
  min-height: 60px;
  padding: 8px 11px;
  transition: background 180ms ease, opacity 180ms ease;
}

.workout-dialog .set-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  background: #eeede7;
  color: var(--ink);
  font-size: .8rem;
}

.workout-dialog .set-previous {
  overflow: hidden;
  color: #777972;
  font-size: .57rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
}

.workout-dialog .set-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.workout-dialog .set-field input {
  min-height: 40px;
  padding: 0 5px;
  border-color: #d9d8d1;
  border-radius: 11px;
  background: #fbfaf7;
  font-size: .72rem;
}

.workout-dialog .set-field input:focus {
  border-color: #ae8c00;
  background: #fff;
  outline: 3px solid rgba(216,181,61,.16);
}

.workout-dialog .set-check {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.workout-dialog .set-row.completed {
  background: #f2f8f4;
}

.workout-dialog .set-row.completed .set-number {
  background: #dceee2;
  color: var(--success);
}

.workout-dialog .set-row.completed .set-previous,
.workout-dialog .set-row.completed .set-field {
  opacity: .66;
}

.finish-workout-summary {
  display: grid;
  gap: 5px;
  margin: 14px 0 18px;
  padding: 13px 14px;
  border: 1px solid #d6eadc;
  border-radius: 15px;
  background: #f0f8f3;
}

.finish-workout-summary.warning {
  border-color: #ead99c;
  background: #fff9df;
}

.finish-workout-summary span {
  color: var(--graphite);
  font-size: .61rem;
  font-weight: 700;
}

.finish-workout-summary strong {
  color: var(--ink);
  font-size: .72rem;
  line-height: 1.4;
}

@media (min-width: 480px) {
  .set-table-head,
  .workout-dialog .set-row {
    grid-template-columns: 34px 96px minmax(60px,1fr) minmax(60px,1fr) 42px;
    gap: 9px;
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (max-width: 390px) {
  .student-view .sync-chip span {
    display: none;
  }

  .student-view .sync-chip {
    width: 34px;
    justify-content: center;
    padding: 0;
  }

  .student-view .welcome-row h1 {
    font-size: 2.35rem;
  }

  .student-view .workout-next-card {
    padding: 18px;
  }

  .student-view .more-profile-card {
    grid-template-columns: 46px minmax(0,1fr);
  }

  .more-profile-avatar {
    width: 46px;
    height: 46px;
  }

  .more-profile-status {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 340px) {
  .student-view .compact-brand small {
    display: none;
  }

  .student-view .compact-brand strong {
    font-size: .88rem;
  }

  .student-view .app-content {
    padding-right: 11px;
    padding-left: 11px;
  }

  .student-view .access-pass {
    grid-template-columns: 1fr;
  }

  .student-view .access-pass-mark {
    display: none;
  }

  .student-view .bottom-nav-item small {
    font-size: .5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-view *,
  .student-view *::before,
  .student-view *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
.enrollment-visual.auth-brand-header.official-banner-header {
  height: 124px !important;
  min-height: 124px !important;
}
@media (max-width: 620px) {
  .enrollment-visual.auth-brand-header.official-banner-header {
    height: 92px !important;
    min-height: 92px !important;
  }
  .enrollment-panel { min-height: calc(100vh - 92px) !important; }
}

/* 2026-07-14 - CABECALHO, TREINO E MENSALIDADE MAIS DISCRETOS */
.student-view .app-topbar {
  justify-content: space-between;
}

.student-view .brand-logo-small {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(210,184,75,.45);
  border-radius: 12px 4px 12px 4px;
  object-fit: cover;
  box-shadow: 0 7px 18px rgba(63,65,60,.12);
}

body:has(#studentView:not([hidden])) .environment-badge {
  top: calc(66px + env(safe-area-inset-top));
}

.student-view .app-content {
  min-height: calc(100dvh - 62px);
}

.student-view .workout-next-card {
  display: grid;
  min-height: 86px;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid #cfd1cc;
  border-radius: 18px;
  background: linear-gradient(135deg, #dedfdb, #d2d4d0 74%);
  color: #30332f;
  box-shadow: 0 10px 28px rgba(47,50,46,.08);
}

.student-view .workout-next-card::after {
  display: none;
}

.student-view .compact-workout-copy {
  min-width: 0;
}

.student-view .workout-next-card .section-kicker {
  color: #806c20;
}

.student-view .workout-next-card h2 {
  max-width: none;
  overflow: hidden;
  margin: 4px 0 2px;
  color: #2f322f;
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-view .workout-next-card p {
  overflow: hidden;
  margin: 0;
  color: #686b66;
  font-size: .62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-view .workout-next-card .compact-workout-action {
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #b99b30;
  border-radius: 12px;
  background: #e1c35d;
  color: #30322f;
  box-shadow: none;
  font-size: .66rem;
}

.student-view .workout-next-card > .empty-state {
  grid-column: 1 / -1;
}

.student-view .payment-status-card {
  padding: 16px;
  border: 1px solid #d5d6d1;
  border-radius: 18px;
  background: #f6f6f2;
  color: #30322f;
  box-shadow: 0 9px 28px rgba(46,49,45,.06);
}

.student-view .payment-status-card::after {
  display: none;
}

.student-view .payment-card-head {
  align-items: center;
}

.student-view .payment-status-card .section-kicker {
  color: #74776f;
}

.student-view .payment-compact-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}

.student-view .payment-compact-main .payment-value {
  margin: 0;
  color: #343733;
  font-family: var(--font-body);
  font-size: 1.75rem;
  letter-spacing: -.04em;
}

.student-view .payment-compact-main > span {
  color: #777a74;
  font-size: .61rem;
}

.student-view .payment-status-card .payment-meta-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid #dedfda;
}

.student-view .payment-status-card .payment-meta-grid div {
  padding: 10px 10px 0 0;
  border: 0;
  background: transparent;
}

.student-view .payment-status-card .payment-meta-grid span {
  color: #858880;
}

.student-view .payment-status-card .payment-meta-grid strong {
  color: #3f423e;
}

@media (max-width: 360px) {
  .student-view .workout-next-card {
    gap: 9px;
    padding: 12px;
  }

  .student-view .workout-next-card .compact-workout-action {
    padding: 0 11px;
  }

  .student-view .payment-compact-main {
    display: grid;
    gap: 3px;
  }
}

/* 2026-07-14 - PERFIL CLARO E TREINOS EM AMARELO-PALHA */
.student-view .more-profile-card {
  min-height: 108px;
  border: 1px solid #c9ccc6;
  background:
    radial-gradient(circle at 100% 0, rgba(181,155,61,.14), transparent 9rem),
    linear-gradient(135deg, #dfe0dc, #d1d4cf 78%);
  color: #30332f;
  box-shadow: 0 12px 30px rgba(47,50,46,.08);
}

.student-view .more-profile-card::after {
  border-color: rgba(138,115,29,.07);
}

.student-view .more-profile-avatar {
  border: 1px solid #c9b45e;
  background: #eee5c1;
  color: #695817;
  box-shadow: 0 7px 18px rgba(83,76,44,.09);
}

.student-view .more-profile-copy span {
  color: #78651d;
}

.student-view .more-profile-copy strong {
  color: #30332f;
}

.student-view .more-profile-copy small {
  color: #666a64;
}

.student-view .more-profile-status {
  border-color: #c5c8c2;
  background: rgba(255,255,255,.5);
  color: #4b4f49;
}

.student-view .more-profile-status.ok {
  border-color: #b9d6c1;
  background: #edf7f0;
  color: #176b3b;
}

.student-view .more-profile-status.blocked {
  border-color: #e2b8b3;
  background: #fff0ee;
  color: #9e2c23;
}

.student-view .workout-card {
  border-color: #d1d3ce;
  background: #f7f7f3;
  box-shadow: 0 10px 28px rgba(47,50,46,.065);
}

.student-view .workout-card .section-kicker {
  color: #7a6820;
}

.student-view .workout-card .division-mark {
  width: 44px;
  height: 44px;
  border: 1px solid #c9b45e;
  background: #ebe2b9;
  color: #665718;
  box-shadow: none;
}

.student-view .workout-card-summary div {
  border: 1px solid #dcddd8;
  background: #edeee9;
}

.student-view .workout-card-summary span {
  color: #73776f;
}

.student-view .workout-card .primary-action {
  border: 1px solid #b49b3d;
  background: #dac570;
  color: #30322f;
  box-shadow: 0 8px 20px rgba(113,94,27,.1);
}

.student-view .segmented-filter button.active {
  border-color: #686d67;
  background: linear-gradient(145deg, #777c76, #656a64);
  color: #fff;
  box-shadow: 0 7px 18px rgba(63, 67, 62, .12);
}

.student-view .week-day.active {
  border-color: #686d67;
  background: linear-gradient(145deg, #777c76, #656a64);
  color: #f5f5f1;
  box-shadow: 0 8px 20px rgba(63, 67, 62, .14);
}

.student-view .week-day.active strong {
  color: #fff;
}

/* 2026-07-14 - TIPOGRAFIA E DOURADO COMPARTILHADOS */
.student-view {
  font-family: var(--font-body);
}

.student-view .home-eyebrow,
.student-view .section-kicker,
.student-view .screen-counter,
.student-view .today-card > span,
.student-view .workout-card-summary span,
.student-view .payment-meta-grid span,
.student-view .week-day span,
.student-view .week-day small,
.student-view .agenda-day-heading span,
.student-view .status-pill {
  font-family: var(--font-mono);
}

.student-view .welcome-row h1,
.student-view .screen-heading h1,
.student-view .section-heading h2,
.student-view .schedule-next-card h2,
.student-view .workout-card h2 {
  letter-spacing: -0.045em;
}

.student-view .home-eyebrow,
.student-view .section-kicker,
.student-view .home-insight-heading .text-action {
  color: var(--brand-gold-deep, #735a12);
}

.student-view .workout-next-card .compact-workout-action {
  border-color: var(--brand-gold-strong, #c49a19);
  background: var(--brand-gold, #d8b53d);
}

.student-view .home-insight-heading h2 {
  font-size: 1.3rem;
  white-space: nowrap;
}

.student-view .home-insight-heading .text-action {
  white-space: nowrap;
}


/* V35 — seletor administrativo para teste integral do aplicativo do aluno */
.admin-student-chooser label { display:block; margin:18px 0 8px; font-weight:700; color:var(--ink); }
.admin-student-chooser select { width:100%; min-height:48px; margin-bottom:14px; padding:0 12px; border:1px solid var(--line); border-radius:12px; background:#fff; font:inherit; color:var(--ink); }
.admin-student-chooser .text-action { margin-top:8px; }
