/* Atmospheric RAFit surfaces. No images or external resources; opaque fallback first. */
.rafit-disclosure > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  padding: 12px 4px;
  box-sizing: border-box;
}
.rafit-disclosure > summary::-webkit-details-marker {
  display: none;
}
.rafit-disclosure > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: 450;
}
.rafit-disclosure[open] > summary::after {
  content: "−";
}
.rafit-disclosure > summary:focus-visible {
  outline: 3px solid #b98f00;
  outline-offset: 4px;
  border-radius: 12px;
}
.rafit-disclosure > summary strong {
  font-size: 0.85rem;
  color: inherit;
  border: 1px solid #a18f5c60;
  border-radius: 20px;
  padding: 6px 12px;
}
.documents-disclosure > summary {
  font-size: 1.12rem;
}
.documents-disclosure > .disclosure-content {
  padding-top: 12px;
}
.documents-disclosure:not([open]) {
  padding: 0;
}
.agenda-calendar .rafit-disclosure {
  margin-block: 20px;
  border-block: 1px solid #a18f5c40;
}
.assessment-measurements {
  display: grid;
  gap: 0;
  margin: 12px 0;
}
.assessment-measurements > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #a18f5c30;
}
.assessment-measurements dt {
  font-size: 0.9rem;
}
.assessment-measurements dd {
  margin: 0;
  white-space: nowrap;
  font-weight: 650;
}
.assessment-body-render {
  object-fit: contain;
  height: auto;
  max-width: 100%;
  display: block;
  margin: auto;
}
.student-assessment-page {
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 48px;
  min-width: 0;
}
.student-assessment-page .assessment-back {
  margin-block: 12px 28px;
  min-height: 48px;
}
.student-assessment-page .assessment-page-heading {
  margin: 0 0 28px;
  padding: 0;
  position: static;
  background: transparent;
  border: 0;
  display: block;
  box-shadow: none;
  backdrop-filter: none;
}
.assessment-page-heading h1 {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin: 12px 0;
}
.assessment-page-heading p {
  line-height: 1.6;
}
.student-assessment-page .card {
  border-radius: 28px;
  margin-block: 18px;
  padding: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.student-assessment-page .assessment-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, 1fr);
  align-items: center;
  gap: 18px;
  padding-block: 30px;
  background-image:
    radial-gradient(ellipse at 85% 50%, #e8ba2426, transparent 64%),
    linear-gradient(130deg, #ffffff0c, transparent);
}
.assessment-hero h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.025em;
}
.assessment-hero figure {
  margin: 0;
  text-align: center;
}
.assessment-hero figcaption {
  font-size: 0.68rem;
  line-height: 1.45;
  opacity: 0.8;
}
.assessment-body-figure {
  width: 100%;
  max-height: 380px;
  color: #eee2bb;
  filter: drop-shadow(0 0 12px #edca2830);
}
.body-outline {
  fill: #f0dc8010;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linejoin: round;
}
.body-detail {
  fill: none;
  stroke: currentColor;
  opacity: 0.38;
  stroke-width: 0.8;
}
.body-platform {
  fill: #f3cc2412;
  stroke: #e7c74480;
  stroke-width: 1;
}
.assessment-hero .assessment-feature-value {
  font-size: clamp(2.7rem, 7vw, 4.5rem);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #ffe139;
  margin: 26px 0 5px;
}
.assessment-feature-value small {
  font-size: 0.45em;
  margin-left: 5px;
}
.assessment-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.student-assessment-page .assessment-number {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}
.assessment-number strong {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.04em;
}
.assessment-number strong small {
  font-size: 0.45em;
  letter-spacing: 0;
}
.assessment-number > small {
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.85;
}
.assessment-number > span {
  font-size: 0.9rem;
  line-height: 1.4;
}
.assessment-note {
  white-space: pre-wrap;
  line-height: 1.7;
}
.assessment-result-link {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.assessment-response fieldset {
  margin: 24px 0;
  padding: 18px;
  border-radius: 20px;
  border-color: #b9aa6c50;
}
.assessment-response label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.assessment-response label.account-check {
  display: flex;
  align-items: center;
  gap: 12px;
}
.assessment-response .account-check input {
  width: 22px;
  min-height: 22px;
}
.assessment-status {
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.student-celebration .post-workout-phrase {
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  font-weight: 650;
  line-height: 1.35;
  text-wrap: balance;
  margin: 18px 0 24px;
  letter-spacing: -0.025em;
}
:root[data-theme="light"] .assessment-body-figure {
  color: #695c38;
  filter: none;
}
:root[data-theme="light"] .assessment-hero .assessment-feature-value {
  color: #795e00;
}
@media (max-width: 430px) {
  .student-assessment-page .card {
    padding: 18px;
    border-radius: 24px;
  }
  .student-assessment-page .assessment-hero {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr);
  }
  .assessment-hero p {
    font-size: 0.85rem;
  }
  .assessment-numbers {
    gap: 12px;
  }
  .assessment-number > span {
    font-size: 0.8rem;
  }
}
@media (forced-colors: active) {
  .assessment-body-figure {
    color: CanvasText;
    filter: none;
  }
  .assessment-hero .assessment-feature-value {
    color: CanvasText;
  }
}
body[data-role="personal"],
body[data-role="aluno"] {
  isolation: isolate;
  background: #111315;
  background-image:
    radial-gradient(ellipse at 90% 8%, #80661835, transparent 44%),
    radial-gradient(ellipse at 4% 62%, #66532920, transparent 48%);
  background-attachment: fixed;
}
/* A short administrative tab still paints the whole viewport, not the light root. */
body[data-role="personal"] {
  min-height: 100vh;
  min-height: 100dvh;
}
body:is([data-role="personal"], [data-role="aluno"])::before {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 5%, #e7bc1e16, transparent 42%),
    radial-gradient(ellipse at 20% 90%, #a8791f10, transparent 44%);
  animation: rafit-atmosphere 22s ease-in-out infinite alternate;
}
@keyframes rafit-atmosphere {
  to {
    opacity: 0.55;
    transform: translate3d(-2%, 2%, 0) scale(1.04);
  }
}
body:is([data-role="personal"], [data-role="aluno"]) > header {
  position: relative !important;
  top: auto !important;
  backdrop-filter: none;
  background: transparent;
}
/* Header divisions are visual noise in the continuous glass surface, in either theme. */
html[data-theme] body > header,
html[data-theme] body[data-role="personal"] .personal-shell-heading {
  border: 0;
  box-shadow: none;
}
body[data-role="aluno"] #student-top-actions {
  position: absolute;
  top: 12px;
}
body[data-role="personal"] .personal-sidebar {
  top: 0;
  background: #17191cf5;
  border-right: 1px solid #e8bd2824;
  padding-top: 20px;
}
body[data-role="personal"] .personal-shell-heading[hidden],
body[data-role="personal"] .personal-signout[hidden] {
  display: none !important;
}
body[data-role="personal"] .personal-signout {
  margin: 32px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--personal-line, #ffffff20);
}
body[data-role="personal"] .personal-shell-heading {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-inline: 0;
}
@media (min-width: 761px) {
  body[data-role="personal"] > header {
    padding-left: 264px;
  }
  body[data-role="personal"] > header .brand-logo-crop {
    display: none;
  }
}
body:is([data-role="personal"], [data-role="aluno"])
  :is(
    .card,
    .student-cycle-card,
    .student-workout-card,
    .library-item,
    .student-week,
    .student-list-button,
    .personal-sidebar button,
    .personal-section-tabs button
  ) {
  background-color: #1c2027eb;
  background-image: linear-gradient(130deg, #ffffff07, #ffffff00 52%, #dfb82b06);
  border-color: #e8d99625;
  box-shadow:
    inset 0 1px #ffffff0a,
    0 8px 30px #0000000b;
}
body:is([data-role="personal"], [data-role="aluno"])
  :is(
    .student-cycle-card,
    .personal-section-tabs button[aria-pressed="true"],
    .student-tabs button[aria-pressed="true"]
  ) {
  background-color: #282612ed;
  background-image: radial-gradient(ellipse at 90% 0%, #e7bd2640, transparent 70%);
  border-color: #d7b63765;
}
@supports (backdrop-filter: blur(12px)) {
  body:is([data-role="personal"], [data-role="aluno"])
    :is(
      .card,
      .student-cycle-card,
      .student-workout-card,
      .student-week,
      .student-list-button,
      .training-nav,
      .personal-sidebar,
      .personal-section-tabs
    ) {
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
  }
}
.service-module {
  min-width: 0;
}
.service-module form {
  margin: 20px 0;
  padding: 20px 0;
  border-block: 1px solid #a3a5ad40;
}
.service-module label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.service-module input,
.service-module select,
.service-module textarea {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.service-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.service-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.service-list .library-item,
.service-document {
  margin: 0;
  padding: 20px;
}
.service-price {
  font-size: 1.45rem;
  font-weight: 750;
}
.service-price small {
  display: block;
  font-size: 0.85rem;
  font-weight: 450;
}
.service-inbox article {
  padding-block: 12px;
  border-bottom: 1px solid #9e9d9630;
}
.service-module .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.service-module button {
  min-height: 48px;
  white-space: normal;
}
.service-module p {
  overflow-wrap: anywhere;
}
.service-notice + .service-notice {
  margin-top: 20px;
  border-top: 1px solid #9e9d9630;
  padding-top: 16px;
}
[data-student-documents] {
  margin-top: 24px;
}
.service-module input[type="file"] {
  padding: 12px 8px;
  font-size: 0.9rem;
}
:root[data-theme="light"] body:is([data-role="personal"], [data-role="aluno"]) {
  background-color: #f5f5f1;
  background-image:
    radial-gradient(ellipse at 95% 2%, #e7c23924, transparent 48%),
    radial-gradient(ellipse at 0% 75%, #b7a06e13, transparent 45%);
}
:root[data-theme="light"]
  body:is([data-role="personal"], [data-role="aluno"])
  :is(
    .card,
    .student-cycle-card,
    .student-workout-card,
    .library-item,
    .student-week,
    .student-list-button,
    .personal-sidebar button,
    .personal-section-tabs button
  ) {
  background-color: #fffffff0;
  background-image: linear-gradient(140deg, #fff9, #e2c34c08);
  border-color: #7a6b4f38;
  box-shadow:
    inset 0 1px #fff,
    0 10px 32px #6f561409;
}
:root[data-theme="light"]
  body:is([data-role="personal"], [data-role="aluno"])
  :is(
    .student-cycle-card,
    .personal-section-tabs button[aria-pressed="true"],
    .student-tabs button[aria-pressed="true"]
  ) {
  background-color: #fff8dce8;
  background-image: radial-gradient(ellipse at 100% 0%, #e9c72d40, transparent 75%);
  border-color: #ad8c1860;
}
:root[data-theme="light"] body[data-role="personal"] .personal-sidebar {
  background: #f9f8f0f5;
}
@media (max-width: 760px) {
  body[data-role="personal"] .personal-sidebar {
    top: auto;
    padding-top: 8px;
  }
  .service-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .service-module .actions > button {
    flex: 1 1 160px;
  }
  .service-module .card {
    padding: 18px;
  }
  .service-price {
    font-size: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  body:is([data-role="personal"], [data-role="aluno"])::before {
    animation: none;
    transform: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  body:is([data-role="personal"], [data-role="aluno"])
    :is(
      .card,
      .student-cycle-card,
      .student-workout-card,
      .student-week,
      .student-list-button,
      .training-nav,
      .personal-sidebar
    ) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: #1c2027;
  }
  :root[data-theme="light"]
    body:is([data-role="personal"], [data-role="aluno"])
    :is(
      .card,
      .student-cycle-card,
      .student-workout-card,
      .student-week,
      .student-list-button,
      .training-nav,
      .personal-sidebar
    ) {
    background-color: #fff;
  }
}
@media (forced-colors: active) {
  body:is([data-role="personal"], [data-role="aluno"])::before {
    display: none;
  }
  body:is([data-role="personal"], [data-role="aluno"])
    :is(.card, .student-cycle-card, .student-workout-card, .student-week, .student-list-button) {
    background: Canvas;
    border: 1px solid CanvasText;
    box-shadow: none;
    backdrop-filter: none;
  }
}

/* One surface recipe, including shortcuts/feed that previously remained opaque. */
.remember-device {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
  cursor: pointer;
  line-height: 1.5;
}
.remember-device input {
  flex: none;
  width: 22px !important;
  height: 22px;
  min-height: 22px !important;
  margin: 2px 0;
  accent-color: #b58f00;
}
.remember-device small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  margin-top: 7px;
  color: inherit;
  opacity: 0.85;
}
html[data-theme] body:is([data-role="personal"], [data-role="aluno"]) {
  --glass-fill: #1c202bcc;
  --glass-light: #ffffff13;
  --glass-edge: #e5dca63b;
  --glass-gold: #e9c53512;
  --glass-shadow: #00000025;
}
html[data-theme="light"] body:is([data-role="personal"], [data-role="aluno"]) {
  --glass-fill: #ffffffc9;
  --glass-light: #ffffffed;
  --glass-edge: #9d8c5b4a;
  --glass-gold: #d7ad2112;
  --glass-shadow: #715e1610;
}
html[data-theme]
  body:is([data-role="personal"], [data-role="aluno"])
  :is(
    .card,
    .evo-card,
    .library-item,
    .student-cycle-card,
    .student-workout-card,
    .student-week,
    .reference-area-links button,
    .reference-dashboard-tabs,
    .reference-dashboard-tabs button[aria-pressed="true"],
    .personal-section-tabs,
    .student-tabs,
    .overview-metric,
    .reference-overview-health article,
    .student-results article
  ) {
  background:
    linear-gradient(135deg, var(--glass-light), transparent 42%),
    radial-gradient(ellipse at 95% 100%, var(--glass-gold), transparent 70%), var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 #ffffff18,
    inset 0 -1px 0 #0000000c,
    0 12px 32px var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}
html[data-theme] body[data-role="aluno"] :is(.student-feature, .student-list-button) {
  background:
    linear-gradient(135deg, var(--glass-light), transparent 45%), var(--glass-fill) !important;
  box-shadow:
    inset 0 1px #ffffff20,
    0 12px 32px var(--glass-shadow);
}
html[data-theme] body[data-role="personal"] .reference-dashboard-tabs {
  gap: 6px;
  padding: 6px;
}
html[data-theme] body[data-role="personal"] .reference-dashboard-tabs button[aria-pressed="false"] {
  background: transparent;
  box-shadow: none;
}
html[data-theme] body[data-role="personal"] .personal-overview {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
html[data-theme]
  body[data-role="personal"]
  .personal-overview
  > :is(p, h2, .reference-area-links, .reference-dashboard-tabs) {
  margin-block: 0;
}
html[data-theme] body[data-role="personal"] .personal-overview > button {
  align-self: flex-start;
  margin: 0;
}
html[data-theme] body[data-role="personal"] .personal-overview > [hidden] {
  display: none !important;
}
html[data-theme] body:is([data-role="personal"], [data-role="aluno"]) .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin-block: 16px 0;
}
html[data-theme] body:is([data-role="personal"], [data-role="aluno"]) .actions > button {
  margin: 0;
  min-width: 0;
  white-space: normal;
}
html[data-theme]
  body:is([data-role="personal"], [data-role="aluno"])
  :is(.card, .library-item)
  > button {
  margin: 8px 12px 8px 0;
}
html[data-theme]
  body:is([data-role="personal"], [data-role="aluno"])
  :is(.service-primary-actions, .service-list, [data-documents-list]) {
  margin-top: 20px;
}
html[data-theme] body:is([data-role="personal"], [data-role="aluno"]) [data-documents-list] {
  display: grid;
  gap: 16px;
}
html[data-theme]
  body:is([data-role="personal"], [data-role="aluno"])
  :is(.card, .library-item)
  :is(button, input, select, textarea) {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
html[data-theme] body[data-role="personal"] [data-overview-detail] .library-item + .library-item {
  margin-top: 16px;
}

/* A sculpted week strip and luminous progress stroke; the number has no glow. */
html[data-theme] body[data-role="aluno"] .student-week {
  padding: 18px 14px;
  border-radius: 26px;
  margin: 22px 0;
}
html[data-theme] body[data-role="aluno"] .student-week-heading {
  margin-bottom: 16px;
  align-items: baseline;
}
html[data-theme] body[data-role="aluno"] .student-week ol {
  gap: 7px;
}
html[data-theme] body[data-role="aluno"] .student-week li {
  border-radius: 19px;
  background: linear-gradient(155deg, #ffffff0c, #ffffff02);
  box-shadow: inset 0 1px #ffffff0c;
}
html[data-theme] body[data-role="aluno"] .student-week li.is-today {
  background: linear-gradient(155deg, #fff49c, #ffe020 55%, #e6bc04);
  color: #181a1c;
  border-color: #ffe55a;
  box-shadow:
    0 5px 18px #ffd7002a,
    inset 0 1px #fff9;
}
html[data-theme] body[data-role="aluno"] .student-ring-value {
  stroke: #ffe72e;
  filter: drop-shadow(0 0 2px #ffed62) drop-shadow(0 0 7px #ffcb1670);
}
html[data-theme] body[data-role="aluno"] .student-progress-ring .student-progress-percent {
  filter: none;
  text-shadow: none;
  color: #fff9dc;
  z-index: 1;
}
html[data-theme="light"] body[data-role="aluno"] .student-progress-ring .student-progress-percent {
  color: #5d4900;
}
html[data-theme="light"] body[data-role="aluno"] .student-ring-value {
  stroke: #d9ad00;
  filter: drop-shadow(0 0 3px #ffe02ac0);
}

/* Deliberate gold surfaces: keep them after the shared glass recipe. The ring's
   neon stroke and unglowed percentage above remain independent of this fill. */
html[data-theme] body[data-role="aluno"] .training-app[data-training-page] .student-cycle-card {
  background: linear-gradient(115deg, #b8992c32, #8e7b2717 48%, #1b1e25ba), #202321c9;
  border: 1px solid #d9c06670;
  box-shadow:
    inset 0 1px #fff0a522,
    inset 0 -1px #00000012,
    0 14px 36px #00000020;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}
html[data-theme="light"]
  body[data-role="aluno"]
  .training-app[data-training-page]
  .student-cycle-card {
  background: linear-gradient(115deg, #f4d96652, #fffaf32b 72%), #fff9e0d9;
  border-color: #ae8a276b;
  box-shadow:
    inset 0 1px #fffdf1,
    0 12px 30px #8f721211;
}

/* One compact rounded segmented control in Painel and Comercial, not a square
   container behind three separately boxed buttons. API/selection are unchanged. */
html[data-theme]
  body[data-role="personal"]
  :is(.reference-dashboard-tabs, .personal-section-tabs[aria-label="Áreas comerciais"]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  width: 100%;
  max-width: 580px;
  box-sizing: border-box;
  border-radius: 22px;
  background: linear-gradient(130deg, #f6dc6f0e, transparent 65%), var(--glass-fill);
  border: 1px solid var(--glass-edge);
  align-items: stretch;
  justify-content: stretch;
}
html[data-theme]
  body[data-role="personal"]
  :is(.reference-dashboard-tabs, .personal-section-tabs[aria-label="Áreas comerciais"])
  > button {
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 10px 8px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: var(--p-muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}
html[data-theme]
  body[data-role="personal"]
  :is(.reference-dashboard-tabs, .personal-section-tabs[aria-label="Áreas comerciais"])
  > button[aria-pressed="true"] {
  background: linear-gradient(145deg, #fff0a9ed, #edcb5bd6 55%, #c5a12bde);
  color: #302600;
  border-color: #ffed9db3;
  box-shadow:
    inset 0 1px #fff8d3a8,
    0 3px 12px #a4811825;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html[data-theme="light"]
  body[data-role="personal"]
  :is(.reference-dashboard-tabs, .personal-section-tabs[aria-label="Áreas comerciais"])
  > button[aria-pressed="true"] {
  background: linear-gradient(145deg, #ffed9af5, #eac34be8);
  color: #302600;
  border-color: #a27e2470;
}

/* Celebration only: no redundant back control or divider, no boxed X. Other
   dialogs retain their own navigation, guards and sticky exercise timer. */
html[data-theme] body[data-role="aluno"] dialog.student-celebration {
  width: min(440px, calc(100vw - 32px));
  border-radius: 30px;
  border: 1px solid #d5c17c66;
  background:
    radial-gradient(ellipse at 10% 0%, #eed26720, transparent 65%),
    linear-gradient(145deg, #ffffff16, transparent 55%), #1c2028c7;
  box-shadow:
    inset 0 1px #fff4b32b,
    0 24px 80px #0007;
  backdrop-filter: blur(32px) saturate(1.25);
  -webkit-backdrop-filter: blur(32px) saturate(1.25);
}
html[data-theme="light"] body[data-role="aluno"] dialog.student-celebration {
  background:
    radial-gradient(ellipse at 10% 0%, #f5d35c35, transparent 65%),
    linear-gradient(145deg, #ffffffe6, #fffaf0cb);
  border-color: #a8873769;
  box-shadow:
    inset 0 1px #fff,
    0 24px 70px #4c3a2430;
}
html[data-theme] body[data-role="aluno"] .student-celebration::backdrop {
  background: #080a1070;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
html[data-theme] body[data-role="aluno"] .student-celebration .student-popup-heading {
  position: relative;
  top: auto;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  padding: 18px 18px 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme] body[data-role="aluno"] .student-celebration .student-popup-heading h2 {
  padding-left: 44px;
  text-align: center;
  font-size: clamp(20px, 5vw, 25px);
  line-height: 1.3;
  margin: 0;
}
html[data-theme] body[data-role="aluno"] .student-celebration .student-popup-close {
  width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  font-size: 30px;
  font-weight: 400;
  align-self: start;
}
html[data-theme] body[data-role="aluno"] .student-celebration .student-popup-close:focus-visible {
  outline: 3px solid #83bfff;
  outline-offset: 2px;
}
html[data-theme] body[data-role="aluno"] .student-celebration .student-popup-content {
  padding: 16px 26px 28px;
  text-align: center;
}
html[data-theme] body[data-role="aluno"] .student-celebration .student-celebration-icon {
  font-size: 38px;
  line-height: 1.4;
  margin: 6px 0 16px;
}
html[data-theme] body[data-role="aluno"] .student-celebration .post-workout-phrase {
  font-size: clamp(20px, 5vw, 25px);
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: pretty;
}
html[data-theme]
  body[data-role="aluno"]
  .student-celebration
  .student-popup-content
  > .student-small {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 20px;
}
html[data-theme] body[data-role="aluno"] .student-celebration [data-celebration-close] {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  margin: 0;
}
@media (prefers-reduced-transparency: reduce) {
  html[data-theme]
    body[data-role="aluno"]
    :is(.training-app[data-training-page] .student-cycle-card, dialog.student-celebration) {
    background: #29291e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html[data-theme="light"]
    body[data-role="aluno"]
    :is(.training-app[data-training-page] .student-cycle-card, dialog.student-celebration) {
    background: #fff6d9;
  }
  html[data-theme]
    body[data-role="personal"]
    :is(.reference-dashboard-tabs, .personal-section-tabs[aria-label="Áreas comerciais"]),
  html[data-theme] body[data-role="aluno"] .student-celebration::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  html[data-theme] body[data-role="aluno"] :is(.student-cycle-card, dialog.student-celebration) {
    background: Canvas !important;
    color: CanvasText;
    border: 1px solid CanvasText;
    box-shadow: none;
    backdrop-filter: none;
  }
  html[data-theme]
    body[data-role="personal"]
    :is(.reference-dashboard-tabs, .personal-section-tabs[aria-label="Áreas comerciais"])
    > button[aria-pressed="true"] {
    background: Highlight !important;
    color: HighlightText;
    box-shadow: none;
    border: 1px solid Highlight;
  }
}

/* Notification dialog has one shell and only the individual notice cards. */
html[data-theme] body[data-role="aluno"] .student-notifications-popup {
  background: linear-gradient(145deg, var(--glass-light), transparent 50%), var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px #ffffff30,
    0 24px 80px #0006;
  backdrop-filter: blur(30px) saturate(1.25);
  -webkit-backdrop-filter: blur(30px) saturate(1.25);
}
html[data-theme] body[data-role="aluno"] .student-popup-heading-simple {
  grid-template-columns: minmax(0, 1fr) 48px;
}
html[data-theme] body[data-role="aluno"] .student-popup-heading-simple > [hidden] {
  display: none !important;
}
html[data-theme] body[data-role="aluno"] .student-notifications-popup .student-popup-heading {
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid var(--glass-edge);
}
html[data-theme] body[data-role="aluno"] .student-notifications-popup .student-popup-heading {
  background: var(--glass-fill);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
html[data-theme]
  body[data-role="aluno"]
  .student-notifications-popup
  :is(.student-account, .account-inbox) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
html[data-theme] body[data-role="aluno"] .student-notifications-popup .account-notifications {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 16px 0;
}
html[data-theme] body[data-role="aluno"] .student-notifications-popup .account-notifications li {
  margin: 0;
  padding: 18px;
  background: linear-gradient(145deg, var(--glass-light), transparent 65%), var(--glass-fill);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  box-shadow: inset 0 1px #ffffff12;
}
html[data-theme]
  body[data-role="aluno"]
  .student-notifications-popup
  .account-notifications
  article {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
}
html[data-theme] body[data-role="aluno"] .student-notifications-popup [data-account-status] {
  font-size: 12px;
  margin: 0 0 12px;
}
html[data-theme] body[data-role="aluno"] .student-notifications-popup .account-notice-body {
  line-height: 1.65;
}

.agenda-calendar {
  margin-top: 24px;
  min-width: 0;
}
.agenda-view-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.agenda-view-picker > button {
  flex: 1;
  min-width: 48px;
  padding: 10px 8px;
}
.agenda-view-picker [aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px #d8b83e;
  background: #73601930 !important;
}
.agenda-period {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px auto;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.agenda-period h3 {
  font-size: 18px !important;
  text-align: center;
  margin: 0;
  text-transform: capitalize;
  line-height: 1.4;
}
.agenda-period button {
  margin: 0;
  padding: 8px;
  min-width: 44px;
}
.agenda-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.agenda-week-label {
  text-align: center;
  font-size: 11px;
  padding: 8px 0;
  opacity: 0.8;
}
.agenda-calendar .agenda-cell {
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 6px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
}
.agenda-calendar .agenda-cell.outside {
  opacity: 0.45;
}
.agenda-calendar .agenda-cell.today {
  outline: 2px solid #d6b62d;
  outline-offset: -3px;
}
.agenda-calendar .agenda-cell[aria-pressed="true"] {
  border-color: #e2c03b;
  background: #806b2635;
}
.agenda-cell.has-events {
  font-weight: 750;
}
.agenda-dot {
  font-size: 10px;
  line-height: 14px;
  border-radius: 10px;
  background: #ffe067;
  color: #28200a;
  min-width: 16px;
  text-align: center;
}
.agenda-year {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.agenda-calendar .agenda-mini-month {
  padding: 12px 8px;
  text-transform: capitalize;
  min-width: 0;
  text-align: center;
}
.agenda-mini-month > strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}
.agenda-mini-month .agenda-month-grid {
  gap: 2px;
}
.agenda-mini-month .agenda-cell {
  border: 0;
  min-height: 24px;
  font-size: 10px;
  gap: 0;
  padding: 0;
}
.agenda-mini-month .agenda-cell.has-events {
  background: #9f872e30;
}
.agenda-mini-month .agenda-dot {
  font-size: 10px;
  line-height: 7px;
  min-width: 0;
  background: transparent;
  color: inherit;
}
.agenda-mini-month .agenda-week-label {
  padding: 0;
  font-size: 9px;
}
.agenda-selected {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-edge);
  display: grid;
  gap: 12px;
}
.agenda-selected > h3 {
  text-transform: capitalize;
  margin: 0;
}
.agenda-calendar .agenda-event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  text-align: left;
  margin: 0;
  padding: 12px;
  border: 1px solid #d0b6476b;
  border-left: 3px solid #ffe067;
  background: linear-gradient(135deg, #cfab2024, #b5983010) !important;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
}
.agenda-event > small,
.agenda-event > span {
  font-size: 12px;
  font-weight: 450;
  line-height: 1.4;
}
.agenda-event.completed {
  border-style: dashed;
  opacity: 0.85;
}
.agenda-help {
  font-size: 12px;
  line-height: 1.6;
}
.agenda-timeline {
  height: 500px;
  overflow: auto;
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  scroll-padding-top: 72px;
  overscroll-behavior: contain;
  --agenda-days: 7;
}
.agenda-timeline.agenda-one-day {
  --agenda-days: 1;
}
.agenda-time-head,
.agenda-time-grid {
  display: grid;
  grid-template-columns: 40px repeat(var(--agenda-days), minmax(0, 1fr));
}
.agenda-time-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--glass-fill);
  backdrop-filter: blur(22px);
  gap: 2px;
  align-items: center;
  padding-block: 5px;
}
.agenda-time-head > span {
  font-size: 9px;
  padding-left: 4px;
}
.agenda-calendar .agenda-time-head > button {
  padding: 4px 1px;
  font-size: 10px;
  margin: 0;
  border: 0;
  display: grid;
  gap: 4px;
  border-radius: 10px;
  min-width: 0;
}
.agenda-time-head strong {
  font-size: 16px;
}
.agenda-time-head .today {
  box-shadow: inset 0 0 0 1px #ddbb30;
}
.agenda-time-grid {
  height: 1440px;
}
.agenda-hours {
  display: grid;
  grid-template-rows: repeat(24, 60px);
}
.agenda-hours > span {
  font-size: 9px;
  padding-top: 3px;
  text-align: center;
}
.agenda-time-column {
  position: relative;
  border-left: 1px solid var(--glass-edge);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 59px,
    var(--glass-edge) 59px,
    var(--glass-edge) 60px
  );
}
.agenda-time-column .agenda-event {
  position: absolute;
  inset-inline: 1px;
  padding: 4px 2px;
  border-radius: 6px;
  min-height: 44px;
  width: calc(100% - 2px);
  font-size: 10px;
  justify-content: flex-start;
}
.agenda-time-column .agenda-event > * {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  font-size: 9px;
}
.agenda-one-day .agenda-event {
  padding: 8px 12px;
}
.agenda-one-day .agenda-event > * {
  font-size: 13px;
}
@media (max-width: 760px) {
  .service-primary-actions > button {
    flex: 1 1 150px;
  }
  .agenda-year {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .agenda-period {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .agenda-period > [data-calendar-today] {
    grid-column: 1/-1;
    justify-self: center;
    padding-inline: 24px;
  }
  .agenda-calendar .agenda-cell {
    min-height: 48px;
  }
  .agenda-calendar .agenda-mini-month .agenda-cell {
    min-height: 24px;
  }
  .agenda-timeline {
    height: 440px;
  }
  html[data-theme] body[data-role="aluno"] .student-week {
    padding: 16px 10px;
  }
  html[data-theme] body[data-role="aluno"] .student-week ol {
    gap: 4px;
  }
  html[data-theme] body[data-role="aluno"] .student-week-heading {
    gap: 8px;
  }
}
@media (max-width: 760px) {
  .agenda-view-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }
  .agenda-view-picker > button {
    font-size: 13px;
    padding: 10px 4px;
    overflow-wrap: normal !important;
  }
  .agenda-view-picker > button:last-child {
    grid-column: 1/-1;
    justify-self: center;
    padding: 7px 24px;
    min-height: 44px;
  }
  .agenda-time-head {
    grid-template-columns: 34px repeat(var(--agenda-days), minmax(0, 1fr));
  }
  .agenda-time-grid {
    grid-template-columns: 34px repeat(var(--agenda-days), minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .agenda-timeline:not(.agenda-one-day) :is(.agenda-time-head, .agenda-time-grid) {
    min-width: 560px;
  }
  .agenda-timeline:not(.agenda-one-day) .agenda-time-column .agenda-event {
    padding: 5px;
  }
  .agenda-timeline:not(.agenda-one-day) .agenda-time-column .agenda-event > * {
    font-size: 10px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-theme] body:is([data-role="personal"], [data-role="aluno"]) {
    --glass-fill: #1c202b;
    --glass-light: transparent;
  }
  html[data-theme="light"] body:is([data-role="personal"], [data-role="aluno"]) {
    --glass-fill: #fff;
  }
  html[data-theme]
    body:is([data-role="personal"], [data-role="aluno"])
    :is(
      .card,
      .evo-card,
      .library-item,
      .student-cycle-card,
      .student-workout-card,
      .student-week,
      .reference-area-links button,
      .reference-dashboard-tabs,
      .personal-section-tabs,
      .student-tabs,
      .student-notifications-popup
    ) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  html[data-theme]
    body:is([data-role="personal"], [data-role="aluno"])
    :is(
      .card,
      .evo-card,
      .library-item,
      .student-cycle-card,
      .student-workout-card,
      .student-week,
      .reference-area-links button,
      .reference-dashboard-tabs,
      .student-notifications-popup,
      .agenda-event
    ) {
    background: Canvas !important;
    border: 1px solid CanvasText;
    box-shadow: none;
    backdrop-filter: none;
  }
  html[data-theme] body[data-role="aluno"] .student-ring-value {
    stroke: Highlight;
    filter: none;
  }
  .agenda-dot {
    background: Highlight;
    color: HighlightText;
  }
}

/* Desktop is a workspace, not a stretched phone. Keep mobile and student layouts intact. */
@media (min-width: 761px) {
  html:has(body[data-role="personal"]) {
    scrollbar-gutter: stable;
  }
  html[data-theme] body[data-role="personal"] {
    --desktop-inset: max(28px, calc((100% - 236px - 1280px) / 2));
  }
  html[data-theme] body[data-role="personal"] .personal-sidebar {
    width: 236px;
  }
  html[data-theme] body[data-role="personal"] main {
    width: calc(100% - 292px);
    max-width: 1280px;
    min-width: 0;
    margin: 24px 28px 0 calc(236px + var(--desktop-inset));
    padding: 0 0 40px;
  }
  html[data-theme] body[data-role="personal"] > header {
    padding-inline: calc(236px + var(--desktop-inset)) var(--desktop-inset);
  }
  html[data-theme] body[data-role="personal"] footer {
    margin-left: calc(236px + var(--desktop-inset));
    padding: 0 28px 24px;
  }
  html[data-theme]
    body[data-role="personal"]
    :is(
      .personal-stage,
      .personal-context-area,
      .service-module,
      .library-panel,
      .student-workspace
    ) {
    min-width: 0;
  }
  html[data-theme] body[data-role="personal"] :is(.actions, .plan-editor-actions) {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
  }
  html[data-theme] body[data-role="personal"] :is(.actions, .plan-editor-actions) > * {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  html[data-theme]
    body[data-role="personal"]
    :is(form, .personal-stage, .personal-context-area)
    > button {
    justify-self: start;
    width: auto;
    max-width: 100%;
  }
  html[data-theme] body[data-role="personal"] .overview-actions button {
    width: auto;
    max-width: 100%;
  }
  html[data-theme] body[data-role="personal"] .reference-area-links {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html[data-theme] body[data-role="personal"] :is(.service-form, [data-exercise-form]) {
    max-width: 960px;
  }
  html[data-theme] body[data-role="personal"] .agenda-view-picker {
    justify-content: flex-start;
    gap: 8px;
  }
  html[data-theme] body[data-role="personal"] .agenda-view-picker > button {
    flex: 0 1 auto;
    min-width: 80px;
    padding-inline: 20px;
  }
  html[data-theme] body[data-role="personal"] .agenda-period {
    max-width: 720px;
  }
  html[data-theme] body[data-role="personal"] .agenda-year {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  html[data-theme] body[data-role="personal"] .student-results {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px));
  }
}
@media (min-width: 761px) and (max-width: 1150px) {
  html[data-theme] body[data-role="personal"] :is(.reference-area-links, .overview-actions) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html[data-theme] body[data-role="personal"] .agenda-year {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 761px) and (max-width: 950px) {
  html[data-theme]
    body[data-role="personal"]
    :is(.reference-area-links, .overview-actions, .service-form-grid) {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-theme] body[data-role="personal"] .agenda-year {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html[data-theme] body[data-role="personal"] .personal-dashboard [data-search] {
    grid-template-columns: minmax(0, 1fr);
  }
}
