/* Last presentation layer. Automatic OS preference is resolved by theme.js;
   no data, order, geometry or training state is changed by a palette switch. */
html[data-theme="light"] {
  color-scheme: light;
  background: #f5f6f8;
}
html[data-theme="light"] body:is([data-role="aluno"], [data-role="login"]) {
  --dark: #f5f6f8;
  --dark-2: #fff;
  --dark-3: #edf0f4;
  --dark-border: #cbd1da;
  --student-surface: #fff;
  --student-line: #cbd1da;
  --student-muted: #535d6c;
  --muted-dark: #535d6c;
  --theme-ink: #202630;
  --theme-muted: #535d6c;
  --theme-line: #cbd1da;
  --theme-gold-ink: #765b00;
  --theme-gold-surface: #fff5cd;
  background: #f5f6f8;
  color: #202630;
  color-scheme: light;
}
html[data-theme="light"]
  body:is([data-role="aluno"], [data-role="login"])
  :is(.card, .evo-card, dialog) {
  background: #fff;
  color: #202630;
  border-color: #cbd1da;
  box-shadow: 0 8px 28px #27334c09;
  color-scheme: light;
}
html[data-theme="light"]
  body:is([data-role="aluno"], [data-role="login"])
  :is(input, select, textarea) {
  background: #fff;
  color: #202630;
  border-color: #778393;
  color-scheme: light;
}
html[data-theme="light"]
  body:is([data-role="aluno"], [data-role="login"])
  :is(input, textarea)::placeholder {
  color: #606a78;
  opacity: 1;
}
html[data-theme="light"]
  body:is([data-role="aluno"], [data-role="login"])
  :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #165bcb;
  outline-offset: 3px;
}
html[data-theme="light"]
  body:is([data-role="aluno"], [data-role="login"])
  :is(.muted, .student-eyebrow, .student-small.muted) {
  color: #535d6c;
}
html[data-theme="light"] body:is([data-role="aluno"], [data-role="login"]) button.secondary {
  background: #fff;
  color: #283241;
  border-color: #778393;
}
html[data-theme="light"] body:is([data-role="aluno"], [data-role="login"]) button.secondary:hover {
  background: #edf0f4;
}
html[data-theme="light"] body:is([data-role="aluno"], [data-role="login"]) button.secondary:active {
  background: #dce2e9;
}
html[data-theme="light"] body:is([data-role="aluno"], [data-role="login"]) button:disabled {
  opacity: 1;
  background: #e5e8ed;
  color: #596371;
  border-color: #b4bdc8;
  cursor: default;
}
html[data-theme="light"] body:is([data-role="aluno"], [data-role="login"]) .error {
  background: #fff0f2;
  color: #94182e;
  border-color: #b62a41;
}
html[data-theme="light"] body:is([data-role="aluno"], [data-role="login"]) footer a,
html[data-theme="light"] body[data-role="aluno"] :is(.student-account, .training-account) a {
  color: #165b9b;
}
html[data-theme="light"] body[data-role="aluno"] > header {
  background: #f5f6f8;
  border-color: #d1d7e0;
  backdrop-filter: none;
  color: #202630;
}
html[data-theme="light"] body[data-role="aluno"] > header .environment {
  color: #535d6c;
}
html[data-theme="light"] body[data-role="aluno"] .student-profile-greeting,
html[data-theme="light"] body[data-role="aluno"] .student-brand-line .student-top-sync {
  color: #535d6c;
}
html[data-theme="light"] body[data-role="aluno"] .student-brand-line {
  color: #765b00;
}
html[data-theme="light"] body[data-role="aluno"] .student-avatar {
  background: #fff1b8;
  color: #665000;
  border-color: #a18a3b;
}
html[data-theme="light"] body[data-role="aluno"] #student-top-actions .student-icon-button {
  background: #fff;
  color: #202630;
  border-color: #abb5c3;
}
html[data-theme="light"] body[data-role="aluno"] .training-sync,
html[data-theme="light"]
  body[data-role="aluno"]
  #training-root[data-training-page="history"]
  .training-sync
  > span {
  color: #535d6c;
}
html[data-theme="light"] body[data-role="aluno"] .training-sync button {
  background: #fff;
  border-color: #a8b2c0;
  color: #283241;
}
html[data-theme="light"] body[data-role="aluno"] .training-app [data-training-message] {
  background: #eaf6ee;
  color: #245a3c;
  border-color: #91b59d;
}
html[data-theme="light"] body[data-role="aluno"] .notice.offline-notice {
  background: #fff5cd;
  color: #665000;
  border-color: #a18a3b;
}
html[data-theme="light"] body[data-role="aluno"] .student-cycle-card {
  background: linear-gradient(115deg, #fff5cf, #fff);
  border-color: #b7a15c;
  box-shadow: 0 8px 24px #8c77300a;
}
html[data-theme="light"]
  body[data-role="aluno"]
  .student-cycle-copy
  :is(.student-eyebrow, p, small) {
  color: #655b3d;
}
html[data-theme="light"] body[data-role="aluno"] .student-cycle-copy h2 {
  color: #202630;
}
html[data-theme="light"] body[data-role="aluno"] .student-cycle-copy p strong {
  color: #665000;
}
html[data-theme="light"] body[data-role="aluno"] .student-ring-track {
  stroke: #ded9c7;
}
html[data-theme="light"] body[data-role="aluno"] .student-ring-value {
  stroke: #9b7900;
}
html[data-theme="light"] body[data-role="aluno"] .student-progress-ring .student-progress-percent {
  color: #665000;
}
html[data-theme="light"] body[data-role="aluno"] .student-week li {
  background: #fff;
  color: #535d6c;
  border-color: #cbd1da;
}
html[data-theme="light"] body[data-role="aluno"] .student-week li.is-today {
  background: #ffd700;
  color: #202630;
  border-color: #977700;
}
html[data-theme="light"] body[data-role="aluno"] .student-week li.is-trained:not(.is-today) {
  border-color: #947500;
}
html[data-theme="light"] body[data-role="aluno"] .student-week-mark {
  color: #765b00;
}
html[data-theme="light"] body[data-role="aluno"] .student-week li.is-today .student-week-mark {
  color: #202630;
}
html[data-theme="light"] body[data-role="aluno"] .student-week-heading > span,
html[data-theme="light"] body[data-role="aluno"] .student-week > p {
  color: #535d6c;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.student-feature, .student-membership-preview) {
  background: linear-gradient(120deg, #fffdf3, #fff) !important;
  border-color: #b6a365 !important;
}
html[data-theme="light"] body[data-role="aluno"] .student-facts > div {
  background: #f7f8fa;
  border-color: #d1d7e0;
}
html[data-theme="light"] body[data-role="aluno"] .student-facts small,
html[data-theme="light"] body[data-role="aluno"] .student-feature-note {
  color: #535d6c;
}
html[data-theme="light"] body[data-role="aluno"] .student-workout-actions button.secondary {
  background: #fff;
  color: #283241;
  border-color: #778393;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.student-pill, .student-pill.subtle, .student-state.info) {
  background: #fff1b8;
  color: #665000;
}
html[data-theme="light"] body[data-role="aluno"] .student-state.success {
  background: #dcefe3;
  color: #235d3c;
}
html[data-theme="light"] body[data-role="aluno"] .student-state.neutral {
  background: #e9edf2;
  color: #4f5968;
}
html[data-theme="light"] body[data-role="aluno"] .badge:not(.training-heading .badge) {
  background: #e9edf2;
  color: #364152;
}
html[data-theme="light"] body[data-role="aluno"] .student-list-button {
  background: #fff !important;
  color: #202630 !important;
  border-color: #c2cad5 !important;
}
html[data-theme="light"] body[data-role="aluno"] .student-list-button small {
  color: #535d6c;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.student-list-icon, .student-list-arrow, .student-fold-toggle span) {
  color: #765b00;
}
html[data-theme="light"] body[data-role="aluno"] .student-list-icon {
  background: #fff5cd;
}
html[data-theme="light"] body[data-role="aluno"] .student-fold-toggle.secondary {
  background: #fff;
  color: #202630;
  border-color: #a8b2c0;
}
html[data-theme="light"] body[data-role="aluno"] .student-workout-card {
  background: #fff;
  border-color: #cbd1da;
}
html[data-theme="light"] body[data-role="aluno"] .student-workout-card.available {
  background: linear-gradient(120deg, #fff9e2, #fff);
  border-color: #a58a2d;
}
html[data-theme="light"] body[data-role="aluno"] .student-workout-card.done {
  border-color: #6b9a7b;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.student-workout-code, .student-exercise-number) {
  background: #fff5cd;
  color: #765b00;
  border-color: #aa9347;
}
html[data-theme="light"] body[data-role="aluno"] .student-back.secondary {
  background: #fff !important;
  color: #283241 !important;
  border-color: #778393;
}
html[data-theme="light"] body[data-role="aluno"] .student-session-time,
html[data-theme="light"] body[data-role="aluno"] .student-progress-label,
html[data-theme="light"] body[data-role="aluno"] .student-progress-label strong small {
  color: #535d6c;
}
html[data-theme="light"] body[data-role="aluno"] .student-progress-percent {
  color: #765b00;
}
html[data-theme="light"] body[data-role="aluno"] .student-progress,
html[data-theme="light"] body[data-role="aluno"] .student-progress::-webkit-progress-bar {
  background: #d8dde4;
}
html[data-theme="light"] body[data-role="aluno"] .student-progress::-webkit-progress-value {
  background: #947500;
}
html[data-theme="light"] body[data-role="aluno"] .student-progress::-moz-progress-bar {
  background: #947500;
}
html[data-theme="light"] body[data-role="aluno"] .student-exercise-row {
  background: #f7f8fa !important;
  color: #202630 !important;
  border-color: #c2cad5 !important;
}
html[data-theme="light"] body[data-role="aluno"] .student-exercise-row.done {
  background: #eaf6ee !important;
  border-color: #7aab8c !important;
}
html[data-theme="light"]
  body[data-role="aluno"]
  .student-exercise-row.done
  .student-exercise-number,
html[data-theme="light"] body[data-role="aluno"] .student-success-text {
  color: #235d3c;
}
html[data-theme="light"] body[data-role="aluno"] .student-exercise-cue {
  color: #765b00;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.student-guidance, .reference-assistant, .reference-summary-note, .reference-pending) {
  background: #fff5cd;
  color: #665000;
  border-color: #a18a3b;
}
html[data-theme="light"] body[data-role="aluno"] .reference-pending p {
  color: #665000;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.reference-summary-facts > div, .reference-summary-list li, .reference-segments li) {
  background: #f7f8fa;
  border-color: #cbd1da;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.reference-summary-facts small, .reference-summary-list small, .reference-segments small) {
  color: #535d6c;
}
html[data-theme="light"] body[data-role="aluno"] .reference-mode button[aria-pressed="true"] {
  background: #fff1b8 !important;
  color: #665000 !important;
  border-color: #947500 !important;
}
html[data-theme="light"] body[data-role="aluno"] .student-exercise-sticky,
html[data-theme="light"] body[data-role="aluno"] .student-popup .student-popup-heading {
  background: #fff;
  color: #202630;
  border-color: #cbd1da;
  box-shadow: 0 8px 12px #27334c0a;
}
html[data-theme="light"] body[data-role="aluno"] .student-dialog-heading {
  color: #202630;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.student-rest-dock, .student-rest-floating, .student-inline-rest, .training-rest) {
  background: #fff5cd;
  color: #665000;
  border-color: #a18a3b;
}
html[data-theme="light"] body[data-role="aluno"] .student-exercise-dialog .training-set {
  background: #f7f8fa;
  color: #202630;
  border-color: #b6c0cd;
}
html[data-theme="light"] body[data-role="aluno"] .training-set.training-saved {
  background: #eaf6ee;
  color: #202630;
  border-color: #7aab8c;
}
html[data-theme="light"]
  body[data-role="aluno"]
  .student-exercise-dialog
  .training-set
  input:disabled {
  background: #e2eee6;
  color: #345a42;
  border-color: #7aab8c;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(
    .student-prescription-facts > *,
    .student-exercise-history,
    .reference-measurement-points article
  ) {
  background: #edf0f4;
  color: #202630;
  border-color: #cbd1da;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.reference-measurement-points small, .student-popup-content [data-account-status]) {
  color: #535d6c;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.reference-video-link, .reference-media-empty) {
  background: #edf0f4;
  color: #283241 !important;
  border-color: #a8b2c0 !important;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.reference-video-link > span, .reference-media-empty > span) {
  color: #765b00;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.reference-video-link > small, .reference-media-empty > small, .student-tour p) {
  color: #535d6c;
}
html[data-theme="light"] body[data-role="aluno"] .student-exercise-dialog .training-content a,
html[data-theme="light"] body[data-role="aluno"] .student-contact-link {
  color: #165b9b;
  border-color: #a8b2c0;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.account-notifications li, .student-popup-content .account-notifications li) {
  background: #f7f8fa;
  color: #202630;
  border-color: #cbd1da;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.account-enrollment, .student-popup-content .account-check) {
  border-color: #cbd1da;
}
html[data-theme="light"] body[data-role="aluno"] .reference-success {
  background: #dcefe3;
  color: #235d3c;
  border-color: #7aab8c;
}
/* Confirmation actions stay readable in every state. Cancel remains the initial focus. */
html[data-theme="light"] body[data-role="aluno"] dialog.rafit-confirmation,
html[data-theme="light"] body[data-role="aluno"] #logout-dialog {
  background: #fff;
  color: #202630;
  border-color: #a8b2c0;
}
html[data-theme="light"] body[data-role="aluno"] dialog.rafit-confirmation button.secondary,
html[data-theme="light"] body[data-role="aluno"] #cancel-logout {
  background: #edf0f4;
  color: #283241;
  border-color: #778393;
}
html[data-theme="light"] body[data-role="aluno"] dialog.rafit-confirmation button.secondary:hover,
html[data-theme="light"] body[data-role="aluno"] #cancel-logout:hover {
  background: #dfe5ed;
}
html[data-theme="light"] body[data-role="aluno"] dialog.rafit-confirmation button.secondary:active,
html[data-theme="light"] body[data-role="aluno"] #cancel-logout:active {
  background: #d1d9e4;
}
html[data-theme="light"] body[data-role="aluno"] dialog button:focus-visible {
  outline-color: #165bcb;
}
html[data-theme="light"] body[data-role="aluno"] dialog.rafit-confirmation button:disabled {
  background: #e5e8ed;
  color: #596371;
  border-color: #b4bdc8;
}
/* Calendar, longitudinal graphs and published measurements use the same palette. */
html[data-theme="light"] body[data-role="aluno"] .student-evolution {
  --evo-gold: #947500;
  --evo-muted: #535d6c;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(
    .evo-muted,
    .evo-unit,
    .evo-footnote,
    .evo-bar-value,
    .evo-calculation,
    .evolution-column,
    .evo-chart-card summary,
    .student-evolution-filter > summary,
    .evo-exercise-history > p,
    .evo-program-progress > p
  ) {
  color: #535d6c !important;
}
html[data-theme="light"] body[data-role="aluno"] .evo-metric-tabs button {
  background: #f7f8fa !important;
  color: #535d6c !important;
  border-color: #a8b2c0 !important;
}
html[data-theme="light"] body[data-role="aluno"] .evo-metric-tabs button[aria-pressed="true"] {
  background: #fff1b8 !important;
  color: #665000 !important;
  border-color: #947500 !important;
}
html[data-theme="light"] body[data-role="aluno"] .student-evolution .evo-stat {
  background: #edf0f4 !important;
  color: #202630;
  border-color: #cbd1da !important;
}
html[data-theme="light"] body[data-role="aluno"] .student-evolution .evo-stat strong {
  color: #202630;
}
html[data-theme="light"] body[data-role="aluno"] .student-evolution .evo-stat :is(small, span) {
  color: #535d6c !important;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(
    .evo-stat > .student-icon,
    .evo-section-heading > .student-icon,
    .evo-empty > .student-icon,
    .evo-exercise-history > summary::after,
    .evo-program-progress > summary::after,
    .evo-full-history > summary::after
  ) {
  color: #765b00;
}
html[data-theme="light"] body[data-role="aluno"] .evolution-bar-track {
  background: #e5e8ed !important;
}
html[data-theme="light"] body[data-role="aluno"] .evolution-bar rect {
  fill: #947500 !important;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.evolution-table, .evolution-calendar, .evolution-chart, .evolution-stat) {
  background: #fff;
  color: #202630;
  border-color: #cbd1da;
}
html[data-theme="light"] body[data-role="aluno"] .evolution-table :is(td, th) {
  border-color: #cbd1da;
}
html[data-theme="light"] body[data-role="aluno"] .evolution-table th {
  background: #edf0f4 !important;
  color: #202630;
}
html[data-theme="light"]
  body[data-role="aluno"]
  .student-evolution
  .evolution-calendar
  .evolution-day {
  background: #f7f8fa !important;
  color: #535d6c !important;
  border-color: #cbd1da !important;
}
html[data-theme="light"]
  body[data-role="aluno"]
  .student-evolution
  .evolution-calendar
  .evolution-day[aria-label*="fora do período"] {
  opacity: 0.7;
}
html[data-theme="light"]
  body[data-role="aluno"]
  .student-evolution
  .evolution-calendar
  button.evolution-day {
  background: #fff1b8 !important;
  color: #665000 !important;
  border-color: #a18a3b !important;
}
html[data-theme="light"]
  body[data-role="aluno"]
  .student-evolution
  .evolution-calendar
  button.evolution-day
  span {
  color: #665000;
}
html[data-theme="light"]
  body[data-role="aluno"]
  .student-evolution
  .evolution-calendar
  button.evolution-day[aria-pressed="true"] {
  background: #ffe48a !important;
  outline-color: #765b00;
}
html[data-theme="light"]
  body[data-role="aluno"]
  :is(.evo-calendar-legend, .evolution-calendar > span:not(.evolution-day)) {
  color: #655b3d !important;
}
html[data-theme="light"] body[data-role="aluno"] :is(.evo-highlight, .evo-assessment) {
  background: #fff !important;
  border-color: #b6c0cd;
}
html[data-theme="light"] body[data-role="aluno"] .evo-highlight-icon {
  background: #fff1b8;
  color: #765b00;
  border-color: #a18a3b;
}
html[data-theme="light"] body[data-role="aluno"] .evo-highlight-values {
  color: #765b00;
}
html[data-theme="light"] body[data-role="aluno"] .evo-assessment-values > div {
  background: #eaf6ee;
  border-color: #a3bfad;
}
html[data-theme="light"] body[data-role="aluno"] .evo-assessment-values strong {
  color: #235d3c;
}
html[data-theme="light"] body[data-role="aluno"] .evo-assessment-values span {
  color: #496653;
}
html[data-theme="light"] body[data-role="aluno"] .evo-photo-link {
  background: #f7f8fa !important;
  color: #283241 !important;
  border-color: #a8b2c0 !important;
}
html[data-theme="light"] body[data-role="aluno"] .training-nav {
  background: #fff;
  border-color: #c2cad5;
  box-shadow: 0 -6px 24px #27334c0a;
  backdrop-filter: none;
}
html[data-theme="light"] body[data-role="aluno"] .training-nav button.secondary {
  color: #535d6c;
  background: transparent;
}
html[data-theme="light"] body[data-role="aluno"] .training-nav button[aria-current="page"] {
  background: #fff1b8;
  color: #665000;
}
@supports (backdrop-filter: blur(12px)) {
  html[data-theme="light"] body[data-role="aluno"] > header {
    background: #f5f6f8f2;
    backdrop-filter: blur(16px);
  }
  html[data-theme="light"] body[data-role="aluno"] .training-nav {
    background: #fffffff2;
    backdrop-filter: blur(16px);
  }
  html[data-theme="light"] body[data-role="aluno"] dialog::backdrop {
    background: #25324866;
    backdrop-filter: blur(4px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-theme="light"] body[data-role="aluno"] > header {
    background: #f5f6f8;
    backdrop-filter: none;
  }
  html[data-theme="light"] body[data-role="aluno"] .training-nav {
    background: #fff;
    backdrop-filter: none;
  }
  html[data-theme="light"] body[data-role="aluno"] dialog::backdrop {
    backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  html[data-theme="light"] body[data-role="aluno"] .student-ring-value {
    stroke: Highlight;
  }
  html[data-theme="light"] body[data-role="aluno"] .student-ring-track {
    stroke: GrayText;
  }
}
