@font-face {
  font-family: "Roboto Embedded";
  src: url("assets/fonts/Roboto-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

.app-svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

:root {
  color-scheme: dark;
  --ink: #f7f4ff;
  --muted: #b9b3d5;
  --line: rgba(255, 255, 255, 0.28);
  --paper: #090d24;
  --panel: #141936;
  --panel-soft: #1d2350;
  --button-dark: #242657;
  --accent: #8d3cff;
  --accent-2: #5e31f2;
  --success: #79f2a6;
  --warning: #ffca75;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --study-guided-attachment-menu-size: 78px;
  --study-guided-attachment-action-size: 56px;
  --study-guided-attachment-icon-size: 30px;
}

@media (max-width: 760px) {
  body.school-master-static-shell #schoolMasterView {
    padding-top: 22px;
  }

  body.school-master-static-shell .school-master-dashboard {
    width: min(100%, 100%);
    padding-inline: 14px;
    box-sizing: border-box;
    gap: 14px;
  }

  body.school-master-static-shell .school-master-dashboard__header {
    justify-items: start;
    gap: 10px;
    padding-top: 0;
  }

  body.school-master-static-shell .school-master-dashboard__heading {
    width: 100%;
    padding-inline: 0;
    text-align: left;
  }

  body.school-master-static-shell .school-master-dashboard__title,
  body.school-master-static-shell .school-master-dashboard__subtitle {
    text-align: left;
  }

  body.school-master-static-shell .school-master-dashboard__title {
    font-size: 1.8rem;
    line-height: 1.06;
  }

  body.school-master-static-shell .school-master-dashboard__subtitle {
    font-size: 0.8rem;
    line-height: 1.38;
  }

  body.school-master-static-shell .school-master-panel,
  body.school-master-static-shell .school-master-panel--hero {
    padding: 14px 12px;
    border-radius: 18px;
  }

  body.school-master-static-shell .school-master-top-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.school-master-static-shell .school-master-filters,
  body.school-master-static-shell .school-master-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.school-master-static-shell .school-master-column {
    gap: 14px;
  }

  body.school-master-static-shell .school-master-filter {
    gap: 5px;
  }

  body.school-master-static-shell .school-master-filter__input,
  body.school-master-static-shell .school-master-filter__select {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  body.school-master-static-shell .school-master-round__toggle,
  body.school-master-static-shell .school-master-student-card {
    padding: 12px 11px;
  }

  body.school-master-static-shell .school-master-round__title,
  body.school-master-static-shell .school-master-student-card__name {
    font-size: 0.9rem;
  }

  body.school-master-static-shell .school-master-round__summary,
  body.school-master-static-shell .school-master-student-card__summary {
    font-size: 0.8rem;
    line-height: 1.45;
  }
}

@media (max-width: 420px) {
  body.history-static-shell .history-dashboard__title {
    font-size: clamp(1.15rem, 6vw, 1.5rem);
    line-height: 1.05;
    white-space: nowrap;
  }

  body.school-master-static-shell .school-master-top-stats {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.school-master-static-shell .school-master-dashboard {
    padding-inline: 10px;
  }

  body.school-master-static-shell .school-master-dashboard__back {
    display: none;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #070a1c 0%, #101638 100%);
  color: var(--ink);
  font-family: "Roboto Embedded", Roboto, Arial, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

.action-driven-entry {
  animation: actionDrivenEntry 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.action-driven-entry.action-driven-entry--test-review {
  animation-name: testReviewEntry;
  animation-duration: 760ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes actionDrivenEntry {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes testReviewEntry {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .action-driven-entry,
  .action-driven-entry.action-driven-entry--test-review {
    animation: none;
    opacity: 1;
    transform: none;
  }

}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

body.app-closing-transition::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #ffffff;
}

body.login-visual-light {
  background: #ffffff;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: #ffffff;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo-wrap {
  display: grid;
  place-items: center;
}

.splash-logo {
  width: 220px;
  height: 220px;
  flex-basis: 220px;
  border-radius: 0;
  background: url("assets/login-logo-symbol-light.png") center / contain no-repeat !important;
  box-shadow: none;
}

.splash-logo span {
  display: none;
}

.app-shell {
  width: min(100%, calc(100vw - 20px));
  margin: 0 auto;
  padding: 28px 0;
}

.mobile-stage {
  width: min(390px, 100%);
  margin: 0 auto;
}

.topbar,
.dashboard-header,
.gate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  align-items: stretch;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
  padding-top: 0;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(7, 10, 28, 0.98), rgba(7, 10, 28, 0.9));
  backdrop-filter: blur(10px);
  overflow: visible;
}

.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -16px;
}

.eyebrow {
  margin: 0 0 5px;
  color: #cfc7ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.gate-subtitle,
.support-text,
.explanation-box {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.4;
}

.brand {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.brand h1 {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(1.05rem, 4.8vw, 1.9rem);
  line-height: 1;
  white-space: nowrap;
}

.brand-logo {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #9e4cff, #6b35ff);
  box-shadow: 0 14px 30px rgba(111, 67, 255, 0.32);
}

.menu-button {
  display: grid;
  gap: 3px;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
}

.menu-button span {
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 8px;
  background: #ffffff;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.menu-button[aria-expanded="true"] {
  gap: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.menu-panel {
  position: absolute;
  top: calc(100% - 10px);
  left: 0;
  right: 0;
  z-index: 24;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: #000000;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
}

body.profile-menu-open .topbar {
  z-index: 200;
}

body.profile-menu-open .menu-modal-overlay {
  z-index: 201;
}

body.profile-menu-open .menu-panel {
  z-index: 202;
}

.menu-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 22;
  background: rgba(0, 0, 0, 0.2);
}

.setup-warning-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 31, 39, 0.24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.setup-warning-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 121;
  width: min(320px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  display: grid;
  gap: 14px;
  padding: 22px 18px 18px;
  border: 1px solid rgba(61, 140, 169, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(16, 73, 98, 0.16);
  text-align: center;
}

body.test-modal-active .setup-warning-overlay,
body.parent-home-only .setup-warning-overlay {
  z-index: 120 !important;
}

body.test-modal-active .setup-warning-modal,
body.parent-home-only .setup-warning-modal {
  z-index: 121 !important;
}

.setup-warning-modal__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 14px;
  background: rgba(61, 140, 169, 0.14);
  color: #3d8ca9;
  font-size: 1.4rem;
  font-weight: 800;
}

.setup-warning-modal__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setup-warning-modal__title {
  margin: 0;
  color: #275e73;
  font-size: 1.05rem;
}

.setup-warning-modal__message {
  margin: 0;
  color: #2f4d58;
  font-size: 0.98rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.setup-warning-modal__actions {
  display: grid;
  gap: 10px;
}

.setup-warning-modal__button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: #4f9bb7;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  box-shadow: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.setup-warning-modal__button:hover,
.setup-warning-modal__button:focus-visible {
  background: #458ca6;
}

.setup-warning-modal__button:active {
  transform: translateY(1px);
}

.professor-master-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 138;
  background: rgba(8, 19, 25, 0.64);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.professor-master-alert-modal {
  --professor-master-accent: #4f9bb7;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 139;
  display: grid;
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  gap: 12px;
  padding: 24px 20px 20px;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in srgb, var(--professor-master-accent) 34%, transparent);
  border-radius: 24px;
  background: rgba(251, 253, 254, 0.97);
  box-shadow: 0 24px 70px rgba(7, 36, 49, 0.28);
  color: #183643;
  text-align: center;
  animation: professor-master-alert-enter 260ms ease-out both;
}

.professor-master-alert-overlay[hidden],
.professor-master-alert-modal[hidden] {
  display: none;
}

.professor-master-alert-modal__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 2px;
  border-radius: 19px;
  background: color-mix(in srgb, var(--professor-master-accent) 14%, transparent);
  color: var(--professor-master-accent);
}

.professor-master-alert-modal__icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.professor-master-alert-modal__eyebrow {
  margin: 0;
  color: var(--professor-master-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.professor-master-alert-modal__title {
  margin: -4px 0 0;
  color: #17333f;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  line-height: 1.12;
}

.professor-master-alert-modal__status {
  margin: 0;
  color: #355763;
  font-size: 1rem;
  line-height: 1.4;
}

.professor-master-alert-modal__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 2px;
  color: var(--professor-master-accent);
  font-size: 1.08rem;
  font-weight: 800;
}

.professor-master-alert-modal__score {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--professor-master-accent) 34%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--professor-master-accent) 9%, transparent);
}

.professor-master-alert-modal__arrow {
  font-size: 1.35rem;
  line-height: 1;
}

.professor-master-alert-modal__progress-label {
  color: #5b737d;
  font-size: 0.82rem;
  font-weight: 700;
}

.professor-master-alert-modal__focus {
  padding: 15px 16px;
  border-radius: 17px;
  background: color-mix(in srgb, var(--professor-master-accent) 9%, #ffffff);
  text-align: left;
}

.professor-master-alert-modal__focus-label {
  display: block;
  margin-bottom: 5px;
  color: var(--professor-master-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.professor-master-alert-modal__focus p {
  margin: 0;
  color: #294853;
  font-size: 0.95rem;
  line-height: 1.42;
}

.professor-master-alert-modal__actions {
  display: grid;
  gap: 9px;
  margin-top: 2px;
}

.professor-master-alert-modal__button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--professor-master-accent);
  border-radius: 15px;
  background: var(--professor-master-accent);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.professor-master-alert-modal__button:hover,
.professor-master-alert-modal__button:focus-visible {
  filter: brightness(0.94);
}

.professor-master-alert-modal__button:active {
  transform: translateY(1px);
}

.professor-master-alert-modal__button--secondary {
  background: transparent;
  color: var(--professor-master-accent);
}

@keyframes professor-master-alert-enter {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px)) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 480px) {
  .professor-master-alert-modal {
    gap: 10px;
    padding: 20px 16px 16px;
    border-radius: 21px;
  }

  .professor-master-alert-modal__icon {
    width: 52px;
    height: 52px;
  }

  .professor-master-alert-modal__focus {
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .professor-master-alert-modal {
    animation: none;
  }
}

.setup-warning-modal__button--secondary {
  background: rgba(61, 140, 169, 0.12);
  color: #3d8ca9;
  border: 1px solid rgba(61, 140, 169, 0.18);
}

.setup-warning-modal__button--secondary:hover,
.setup-warning-modal__button--secondary:focus-visible {
  background: rgba(61, 140, 169, 0.18);
}

.study-guided-lock-modal {
  border-color: rgba(255, 102, 102, 0.24);
  background: rgba(255, 88, 88, 0.96);
  box-shadow: 0 18px 44px rgba(163, 42, 42, 0.18);
}

.study-guided-lock-modal .setup-warning-modal__title,
.study-guided-lock-modal .setup-warning-modal__message {
  color: #ffffff;
}

.study-guided-lock-modal .setup-warning-modal__title {
  margin-top: -4px;
  margin-bottom: 0.15rem;
}

.study-guided-lock-modal .setup-warning-modal__message {
  margin-top: -2px;
  font-size: 0.92rem;
  line-height: 1.38;
}

.study-guided-lock-modal__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto;
  color: #ffffff;
}

.study-guided-lock-modal__icon svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-guided-lock-modal__button {
  min-height: 44px;
  margin-top: 2px;
  padding: 0 18px;
  border-radius: 14px;
  background: #ffffff;
  color: #d65454;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: none;
}

.study-guided-lock-modal__button:hover,
.study-guided-lock-modal__button:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  color: #c64747;
}

.study-guided-replay-modal {
  gap: 14px;
}

.study-guided-replay-modal__actions {
  width: 100%;
  display: grid;
  gap: 10px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ai-generation-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 121;
  width: min(420px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  transform: translate(-50%, -50%);
  display: grid;
  gap: 16px;
  padding: 28px 18px 34px;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 52px rgba(16, 73, 98, 0.18);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ai-generation-modal__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  margin: 4px auto 2px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ai-generation-modal__symbol {
  width: 76px;
  height: 76px;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ai-generation-modal__title {
  margin: 0;
  color: #275e73;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
}

.ai-generation-modal__message {
  margin: 0;
  color: #2f4d58;
  font-size: 0.88rem;
  line-height: 1.28;
  text-align: center;
}

.ai-generation-summary {
  display: grid;
  gap: 7px;
  padding: 15px 15px;
  border-radius: 16px;
  background: #f4fbfd;
  border: 1px solid rgba(61, 140, 169, 0.12);
}

.ai-generation-summary__line {
  margin: 0;
  color: #2f6784;
  font-size: 0.94rem;
  line-height: 1.35;
}

.ai-generation-summary__label {
  font-weight: 700;
}

.ai-generation-summary__value {
  color: #5f97af;
  font-size: 0.88rem;
  font-weight: 400;
}

.ai-generation-field {
  display: grid;
  gap: 9px;
}

.ai-generation-field--checkboxes {
  gap: 10px;
}

.ai-generation-field > span,
.ai-generation-field > label > span {
  color: #2f6784;
  font-size: 0.94rem;
  font-weight: 700;
}

.ai-generation-field__help {
  margin: -2px 0 0;
  color: #7fb0c6;
  font-size: 0.65rem;
  font-weight: 400;
  line-height: 1.32;
}

.ai-generation-field__help--rules {
  margin-top: 0;
}

.ai-generation-field__help--subject-rules {
  margin-top: 12px;
}

.ai-generation-rules-disclosure {
  position: relative;
}

.ai-generation-rules-disclosure > summary {
  list-style: none;
}

.ai-generation-rules-disclosure > summary::-webkit-details-marker {
  display: none;
}

.ai-generation-rules-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  color: #ff8f1f;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.2;
}

.ai-generation-rules-trigger__label {
  display: inline-block;
}

.ai-generation-rules-trigger__icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.ai-generation-rules-panel {
  display: none;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(33, 90, 114, 0.12);
  max-height: 52vh;
  overflow: auto;
}

.ai-generation-rules-disclosure[open] .ai-generation-rules-panel,
.ai-generation-rules-disclosure:hover .ai-generation-rules-panel {
  display: block;
}

.ai-generation-rules {
  margin: 0;
  padding-left: 15px;
  display: grid;
  gap: 4px;
}

.ai-generation-rules ul {
  margin: 4px 0 0;
  padding-left: 14px;
  display: grid;
  gap: 3px;
}

.ai-generation-rules li {
  line-height: 1.34;
}

.ai-generation-rules__accent {
  color: #ff8f1f;
  font-weight: 700;
}

.ai-generation-rules__brand {
  color: #3d8ca9;
  font-weight: 700;
}

.ai-generation-rules__violet {
  color: #ff8f1f;
  font-weight: 700;
}

.ai-generation-field select,
.ai-generation-field textarea {
  width: 100%;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 16px;
  background: #ffffff !important;
  color: #2f6784;
  font: inherit;
  color-scheme: light;
  box-shadow: none;
}

.ai-generation-field textarea {
  min-height: 108px;
  padding: 14px;
  font-size: 0.86rem;
  line-height: 1.28;
  resize: vertical;
}

.ai-generation-field textarea::placeholder {
  color: #89a8b6;
  font-size: 0.78rem;
  line-height: 1.24;
}

.ai-generation-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.ai-generation-actions > button {
  flex: 1 1 0;
}

.ai-generation-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3d8ca9;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
}

.ai-generation-checkbox input {
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1.5px solid rgba(61, 140, 169, 0.38);
  border-radius: 4px;
  background: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  box-shadow: none;
}

.ai-generation-checkbox input:checked {
  background: #3d8ca9;
  border-color: #3d8ca9;
}

.ai-generation-checkbox input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 6px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ai-generation-checkbox input:focus-visible {
  outline: 2px solid rgba(61, 140, 169, 0.2);
  outline-offset: 2px;
}

.ai-generation-count-shell {
  position: relative;
}

.ai-generation-count-trigger {
  width: 100%;
  min-height: 46px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 16px;
  background: #ffffff;
  color: #3d8ca9;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  text-align: left;
}

.ai-generation-count-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.25 5.25 7 9l3.75-3.75' fill='none' stroke='%233d8ca9' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  pointer-events: none;
}

.ai-generation-count-shell.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

.ai-generation-count-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 130;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(61, 140, 169, 0.96), rgba(74, 162, 194, 0.96));
  box-shadow: 0 14px 26px rgba(16, 73, 98, 0.16);
}

.ai-generation-count-menu[hidden] {
  display: none;
}

.ai-generation-count-option {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.ai-generation-count-option + .ai-generation-count-option {
  border-top: 1px solid rgba(255, 255, 255, 0.78);
}

.ai-generation-count-option:hover,
.ai-generation-count-option:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  outline: none;
}

.study-guided-test-count-menu .ai-generation-count-option:disabled,
.study-guided-test-count-menu .ai-generation-count-option:disabled:hover,
.study-guided-test-count-menu .ai-generation-count-option[aria-disabled="true"] {
  min-height: 44px;
  background: rgba(15, 22, 27, 0.14);
  color: rgba(255, 255, 255, 0.68);
  cursor: not-allowed;
  opacity: 0.78;
}

.menu-summary-panel {
  position: fixed;
  top: 118px;
  left: 50%;
  right: auto;
  width: min(320px, calc(100vw - 12px));
  opacity: 0;
  transform: translateX(calc(-50% + 42px));
  z-index: 24;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.menu-summary-panel.is-open {
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: auto;
}

.menu-summary-card {
  display: grid;
  gap: 14px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(16, 73, 98, 0.12);
  color: #275e73;
}

.menu-summary-links {
  display: grid;
  gap: 8px;
}

.menu-summary-metrics {
  display: grid;
  gap: 3px;
}

.menu-summary-line {
  margin: 0;
  color: #3d8ca9;
  font-size: 14px;
  line-height: 1.28;
}

.menu-summary-line span {
  font-weight: 500;
}

.menu-summary-line .menu-summary-label--strong {
  font-weight: 700;
}

.menu-summary-line strong {
  color: #5a9eb7;
  font-size: 13px;
  font-weight: 500;
}

#menuSummaryFocus {
  color: #d85757;
}

.menu-summary-divider {
  height: 1px;
  background: rgba(61, 140, 169, 0.22);
}

.menu-summary-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #275e73;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  appearance: none;
  outline: none;
  box-shadow: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.menu-summary-link--primary {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3d8ca9 !important;
  font-weight: 700;
  box-shadow: none;
}

.menu-summary-heading {
  display: flex;
  align-items: center;
  pointer-events: none;
}

.menu-summary-link--primary:hover,
.menu-summary-link--primary:focus-visible,
.menu-summary-link--primary:active {
  color: #3d8ca9 !important;
}

.menu-summary-link--secondary {
  min-height: 42px;
  padding: 0 4px;
  border-radius: 12px;
}

.menu-summary-link--secondary > span:last-child {
  color: #275e73;
  transition: color 0.18s ease;
}

.menu-summary-link--secondary .menu-summary-icon {
  width: 42px;
  height: 42px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 42px;
  isolation: isolate;
}

.menu-summary-link--secondary .menu-summary-logo {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: multiply;
}

.menu-summary-link--secondary .menu-summary-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-cap-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
}

.menu-cap-icon__top {
  position: absolute;
  left: 50%;
  top: 1px;
  width: 10px;
  height: 5px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 34%, 50% 68%, 0 34%);
  transform: translateX(-50%);
}

.menu-cap-icon__base {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 7px;
  height: 3px;
  border: 1.2px solid currentColor;
  border-top: 0;
  transform: translateX(-50%);
}

.menu-cap-icon__tail {
  position: absolute;
  left: calc(50% + 3px);
  top: 5px;
  width: 1.2px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.menu-summary-link--primary {
  font-size: 14px;
}

.menu-summary-link:not(.menu-summary-link--primary):hover,
.menu-summary-link:not(.menu-summary-link--primary):focus-visible {
  background: transparent;
  color: #275e73 !important;
}

.menu-summary-link--secondary.is-active {
  background: transparent;
  color: #275e73 !important;
}

.menu-summary-link--secondary:hover > span:last-child,
.menu-summary-link--secondary:focus-visible > span:last-child,
.menu-summary-link--secondary.is-active > span:last-child {
  color: #aebbc3;
}

.menu-panel-list {
  display: grid;
  gap: 10px;
}

.menu-panel-actions {
  display: grid;
  gap: 10px;
}

.menu-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-panel-close {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: #050505;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.menu-panel-link {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: #050505;
  color: var(--ink);
  font-weight: 700;
}

.menu-panel-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(234, 219, 255, 0.42);
  border-radius: 10px;
  background: rgba(182, 124, 255, 0.08);
}

.menu-panel-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.menu-panel-item strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cap-top {
  position: absolute;
  width: 23px;
  height: 13px;
  background: #ffffff;
  clip-path: polygon(50% 0, 100% 34%, 50% 68%, 0 34%);
  transform: translateY(-5px);
}

.cap-base {
  position: absolute;
  width: 17px;
  height: 8px;
  border: 2px solid #ffffff;
  border-top: 0;
  transform: translateY(5px);
}

.cap-tail {
  position: absolute;
  width: 2px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff;
  transform: translate(11px, 3px) rotate(0deg);
}

.view-switch {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: none;
}

.switch-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.switch-button.active {
  background: #050814;
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.phone-frame {
  position: relative;
  width: min(360px, 100%);
  min-height: 690px;
  margin: 0 auto;
  overflow: hidden;
  padding: 76px 14px 18px;
  border: 0;
  border-radius: 32px;
  background: #000000;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
}

.phone-frame::before {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 34%;
  height: 22px;
  border-radius: 999px;
  background: rgba(5, 8, 24, 0.95);
  transform: translateX(-50%);
  content: "";
}

.phone-status {
  display: none;
}

.phone-content {
  display: none;
}

.phone-frame.screen-free {
  min-height: 690px;
}

.phone-frame.screen-free .phone-content {
  display: none;
}

.student-app-button {
  display: grid;
  width: 84px;
  justify-items: center;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: #f7f4ff;
  box-shadow: none;
}

.phone-frame.screen-free .student-app-button {
  margin-top: 0;
}

.education-gate::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 8, 24, 0.5);
  content: "";
}

.mini-app-logo {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  box-shadow: 0 20px 40px rgba(68, 34, 154, 0.35);
}

.education-gate,
.unlocked-state {
  position: absolute;
  inset: 26px 14px 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  width: auto;
  margin: 0;
  min-height: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(19, 25, 57, 0.94);
  box-shadow: 0 22px 52px rgba(8, 10, 28, 0.5);
  backdrop-filter: blur(9px);
}

.education-gate.is-welcome {
  border-color: rgba(255, 255, 255, 0.34);
}

.welcome-info-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
}

.education-gate:not(.is-welcome) .welcome-info-button {
  display: none;
}

.welcome-info-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(125, 131, 143, 0.95);
  border-radius: 999px;
  color: #7d838f;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.welcome-info-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(250px, calc(100vw - 56px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(10, 10, 15, 0.96);
  color: #f2efff;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  pointer-events: none;
}

.welcome-info-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 10, 15, 0.96);
  transform: rotate(45deg);
}

.welcome-info-button:hover .welcome-info-tooltip,
.welcome-info-button:focus-visible .welcome-info-tooltip,
.welcome-info-button.is-open .welcome-info-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.step-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  color: #bdb7dc;
  font-weight: 750;
}

.step-line span:first-child {
  color: #cfc7ff;
  font-size: 1.25rem;
}

.gate-header {
  justify-content: flex-start;
}

.education-gate.is-welcome {
  justify-content: flex-start;
  padding-top: 58px;
}

.education-gate.is-welcome .gate-header {
  justify-content: center;
  text-align: center;
}

.education-gate.is-welcome .gate-header > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.education-gate.is-welcome .gate-subtitle {
  text-align: center;
  margin-bottom: 8px;
}

.education-gate.is-welcome .question {
  justify-content: center;
  text-align: center;
}

.education-gate.is-welcome .welcome-start-link {
  margin: -2px auto 10px;
}

.education-gate.is-welcome .welcome-action-panel {
  margin-top: 18px;
}

.welcome-stop-instructions {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: left;
}

.welcome-stop-panel {
  align-items: flex-start;
}

.welcome-apply-button {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: min(100%, 176px) !important;
  min-height: 40px !important;
  padding: 0 8px 0 18px !important;
  border: 1px solid #b7d9e6 !important;
  border-radius: 999px !important;
  background: #2e9ab8 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.welcome-apply-button .welcome-apply-button__label {
  display: block;
  flex: 1 1 auto;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
}

.welcome-apply-button .welcome-apply-button__icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background:
    #ffffff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e9ab8' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 5l7 7-7 7'/%3E%3Cpath d='M13 5l7 7-7 7'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
  box-shadow: 0 0 0 1px rgba(46, 154, 184, 0.18);
}

.gate-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #9e4cff, #6b35ff);
  color: white;
  box-shadow: 0 12px 26px rgba(111, 67, 255, 0.42);
  font-size: 1.2rem;
  font-weight: 950;
}

.score-pill {
  display: grid;
  min-width: 64px;
  min-height: 52px;
  margin-left: auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.step-line .score-pill {
  min-width: 58px;
}

.progress-track {
  height: 8px;
  margin: 14px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9d58ff, #6a32ff);
  transition: width 0.2s ease;
}

.counter {
  margin: 0;
}

.question {
  display: flex;
  align-items: center;
  min-height: 74px;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(6, 11, 35, 0.45);
  color: #f6f3ff;
  font-size: 1rem;
  line-height: 1.18;
}

.question.is-message {
  justify-content: center;
  text-align: center;
}

.welcome-start-link {
  display: inline-block;
  color: #ffffff;
  font-size: 1.62rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 auto 8px;
  padding: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  text-align: center;
  text-decoration: none;
}

.welcome-start-link::selection {
  background: transparent;
  color: #ffffff;
}

.welcome-action-panel {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.welcome-student-panel {
  margin-top: 0;
}

.welcome-apply-button {
  margin-top: 0;
}

.answer-list {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.answer-text-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.answer-text-input {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #275e73;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
  resize: vertical;
}

.answer-text-input::placeholder {
  color: rgba(39, 94, 115, 0.58);
}

.answer-text-input:focus,
.answer-text-input:focus-visible {
  outline: none;
  border-color: rgba(61, 140, 169, 0.38);
  box-shadow: 0 0 0 3px rgba(61, 140, 169, 0.12);
}

.answer-voice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3d8ca9;
  box-shadow: none;
  align-self: flex-start;
}

.answer-voice-button.is-listening {
  color: #d94b4b;
}

.answer-voice-button__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.answer-voice-button__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.answer-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(36, 38, 87, 0.92);
  color: #f5f1ff;
  font-weight: 850;
  text-align: left;
}

.answer-button.selected {
  border-color: rgba(173, 122, 255, 0.95);
  background: linear-gradient(135deg, #8e3cff, #6d35ee);
  box-shadow: 0 12px 28px rgba(104, 61, 255, 0.28);
}

.answer-letter {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
}

.answer-option__text {
  display: block;
  line-height: 1.48;
}

.feedback {
  min-height: 12px;
  margin: 4px 0 8px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.feedback.success {
  color: var(--success);
}

.feedback.warning {
  color: var(--warning);
}

.explanation-box {
  margin: 6px 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #f1ebff;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.explanation-box,
.explanation-box * {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.explanation-box::selection,
.explanation-box *::selection {
  background: transparent;
  color: inherit;
}

.explanation-box.copy-enabled,
.explanation-box.copy-enabled * {
  -webkit-touch-callout: default;
  user-select: text;
  -webkit-user-select: text;
}

.explanation-box.copy-enabled::selection,
.explanation-box.copy-enabled *::selection {
  background: rgba(61, 140, 169, 0.22);
  color: inherit;
}

.primary-button,
.secondary-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 900;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  width: 100%;
  min-width: 0;
}

.action-row .primary-button {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
}

.action-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  font-size: 1rem;
}

.primary-button {
  width: 100%;
  background: linear-gradient(135deg, #9e4cff, #6932f4);
  color: white;
  box-shadow: 0 14px 34px rgba(111, 67, 255, 0.3);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.unlocked-state {
  position: absolute;
  inset: 0;
  z-index: 3;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

.unlock-award-card {
  width: min(100%, 290px);
  padding: 28px 22px 24px;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 44px rgba(61, 140, 169, 0.14);
}

.unlock-award-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 18px;
  background: rgba(61, 140, 169, 0.14);
  color: #3d8ca9;
  font-size: 1.7rem;
  font-weight: 900;
}

.unlock-award-eyebrow {
  margin: 0 0 10px;
  color: #3d8ca9 !important;
  font-size: 0.82rem;
  font-weight: 800 !important;
  letter-spacing: 0;
  text-transform: uppercase;
}

.unlocked-state h2 {
  margin: 0 0 12px;
  color: #2f5871;
  font-size: 2rem;
  line-height: 1.05;
}

.unlock-award-message {
  margin: 0 auto;
  max-width: 240px;
  color: #2f5871 !important;
  font-size: 1rem;
  line-height: 1.45;
}

.unlocked-state p {
  max-width: 270px;
  color: #2f5871;
  font-weight: 700;
}

.unlock-countdown {
  margin: 14px 0 0;
  color: #3d8ca9 !important;
  font-size: 1.2rem;
  font-weight: 950 !important;
}

.unlocked-state .primary-button {
  margin-top: 20px;
  background: linear-gradient(135deg, #3d8ca9, #57a8c4);
  box-shadow: 0 16px 30px rgba(61, 140, 169, 0.22);
}

.unlock-award-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.unlock-award-standalone {
  position: relative;
  inset: auto;
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.unlock-award-card--clean {
  width: min(100%, 340px);
  padding: 30px 24px 22px;
  border: 1px solid rgba(61, 140, 169, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 42px rgba(61, 140, 169, 0.12);
}

.unlock-award-card--clean h2 {
  margin: 0 0 12px;
  color: #2f5871;
  font-size: 2rem;
  line-height: 1.05;
}

.unlock-award-card--clean .unlock-award-message {
  max-width: 255px;
  margin: 0 auto;
  color: #2f5871 !important;
  font-size: 1rem;
  line-height: 1.45;
}

.unlock-award-card--clean .unlock-countdown {
  margin: 16px 0 0;
  color: #3d8ca9 !important;
  font-size: 1.28rem;
  font-weight: 900 !important;
  line-height: 1.2;
}

.unlock-award-action {
  width: 100% !important;
  min-height: 56px;
  margin: 22px 0 0 !important;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  color: #3d8ca9 !important;
  box-shadow: none !important;
  border: 1px solid rgba(61, 140, 169, 0.24) !important;
  border-radius: 16px !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  background-image: none !important;
}

.dashboard {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(20, 25, 54, 0.92);
  box-shadow: var(--shadow);
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: 10px;
  margin: 22px 0;
  align-items: stretch;
}

.summary-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.metric {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.metric-compact {
  min-height: 72px;
}

.metric-ranking {
  min-height: 100%;
}

.metric span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.metric-ranking > span {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.35rem;
  line-height: 1.05;
}

.metric-compact strong {
  font-size: 1.08rem;
}

.subject-ranking {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: start;
}

.subject-ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.subject-ranking-label {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subject-ranking-check {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  background: transparent;
  appearance: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.subject-ranking-check:hover {
  border-color: rgba(255, 255, 255, 1);
}

.subject-ranking-check:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.subject-ranking-check.is-checked {
  border-color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.08);
}

.subject-ranking-check.is-checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.subject-ranking-focus {
  color: var(--warning);
}

.results-panel h3 {
  margin-bottom: 12px;
}

.student-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.import-panel {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-bottom: 26px;
  padding: 0;
  border: 0;
  background: transparent;
}

.import-buttons-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  align-items: start;
  gap: 12px;
  width: 100%;
}

.import-buttons-container button {
  min-height: 56px;
  height: 56px;
  padding: 10px 12px;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}

.import-buttons-container > .import-button {
  flex: 1 1 auto;
  width: auto;
}

.student-panel h3,
.import-panel h3 {
  margin-bottom: 4px;
}

.student-panel p,
.import-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.access-panel {
  align-items: flex-start;
}

.access-actions {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 220px;
}

.access-status-value {
  display: inline-block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
}

.access-profile-value {
  display: inline-block;
  margin-top: 10px;
  color: #cfc7ff;
  font-size: 0.85rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.access-status-value.is-disabled {
  color: #ffca75;
}

.access-toggle-button {
  min-width: 160px;
  width: 100%;
}

select {
  min-height: 48px;
  min-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 15, 42, 0.92);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  padding: 0 12px;
}

.file-button {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #9e4cff, #6932f4);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.import-button {
  min-width: 0;
  width: auto;
  font-size: 0.92rem;
  text-align: center;
  white-space: normal;
}

.question-bank-preview-shell {
  position: relative;
  grid-column: 2;
}

.import-preview-button {
  width: 56px;
  min-width: 56px;
  padding: 0;
  border-radius: 12px;
  background: #3d8ca9;
  box-shadow: 0 10px 22px rgba(61, 140, 169, 0.18);
}

.import-preview-button svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.question-bank-preview-panel {
  width: 100%;
  margin-top: 12px;
}

.question-bank-preview-panel[hidden] {
  display: none;
}

.study-guided-upload-preview[hidden] {
  display: none;
}

.study-guided-upload-preview {
  display: flex;
  align-items: center;
  gap: 6px;
}

.study-guided-composer-lock-area {
  position: relative;
}

.study-guided-knowledge-input-shell {
  position: relative;
}

.study-guided-knowledge-input-shell > textarea {
  width: 100%;
}

body.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area.study-guided-soft-locked textarea,
body.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area.study-guided-soft-locked button:disabled {
  cursor: not-allowed !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area.study-guided-soft-locked .study-guided-knowledge-header > label {
  color: rgba(189, 189, 189, 0.24) !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area.study-guided-soft-locked textarea {
  border-color: #dedede !important;
  background: #f2f2f2 !important;
  color: #b0b0b0 !important;
  -webkit-text-fill-color: #b0b0b0;
  text-decoration: none !important;
  text-decoration-line: none !important;
  opacity: 1;
  resize: none;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area.study-guided-soft-locked .post-login-actions button:disabled {
  border-color: transparent !important;
  background: transparent !important;
  color: #a5a5a5 !important;
  box-shadow: none !important;
  opacity: 0.66;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area.study-guided-soft-locked #importCurrentGradeButton:disabled::after {
  filter: grayscale(1);
  opacity: 0.72;
}

html[data-app-theme="dark"] body.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area.study-guided-soft-locked .study-guided-knowledge-header > label {
  color: rgba(174, 187, 195, 0.2) !important;
}

html[data-app-theme="dark"] body.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area.study-guided-soft-locked textarea {
  border-color: #33434d !important;
  background: #18232b !important;
  color: #bdc8cf !important;
  -webkit-text-fill-color: #bdc8cf;
  opacity: 1;
  resize: none;
}

html[data-app-theme="dark"] body.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area.study-guided-soft-locked .post-login-actions button:disabled {
  border-color: transparent !important;
  background: transparent !important;
  color: #66757e !important;
  box-shadow: none !important;
  opacity: 0.62;
}

html[data-app-theme="dark"] body.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area.study-guided-soft-locked #importCurrentGradeButton:disabled::after {
  filter: grayscale(1);
  opacity: 0.58;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area .ai-generation-field {
  display: grid;
  gap: 11px;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-knowledge-header > label {
  color: #ffa31a;
  font-size: 0.94rem;
  font-weight: 500;
}

.study-guided-knowledge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area .ai-generation-field__help {
  margin-top: -2px;
  color: #3d8ca9;
  font-size: 0.67rem !important;
  font-weight: 300 !important;
  line-height: 1.18 !important;
}

.study-guided-composer-lock-overlay[hidden] {
  display: none;
}

.study-guided-composer-lock-overlay {
  display: none !important;
}

.study-guided-composer-lock-overlay.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.study-guided-composer-lock-card {
  width: 100%;
  min-height: 100%;
  border-radius: 18px;
  background: rgba(47, 170, 198, 0.92);
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(42, 131, 154, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 26px 22px;
  backdrop-filter: blur(2px);
}

.study-guided-composer-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
}

.study-guided-composer-lock-icon svg {
  width: 42px;
  height: 42px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-guided-composer-lock-text {
  margin: 0;
  max-width: 290px;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.38;
}

.study-guided-composer-lock-button {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  padding: 0;
}

.study-guided-composer-lock-button:hover {
  opacity: 0.92;
}

.study-guided-composer-lock-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 4px;
  border-radius: 8px;
}

.study-guided-upload-slot {
  position: relative;
  width: 32px;
  height: 28px;
}

.study-guided-upload-slot[hidden] {
  display: none;
}

.study-guided-upload-preview img {
  display: block;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 0 1px rgba(61, 140, 169, 0.08);
}

.study-guided-upload-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 1px solid #d7e8f0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: #5f8fa4;
  font-size: 8px;
  line-height: 1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(61, 140, 169, 0.12);
  cursor: pointer;
  padding: 0;
}

.study-guided-upload-remove:hover {
  background: #f6fbfd;
}

.study-guided-upload-remove:focus-visible {
  outline: 2px solid rgba(61, 140, 169, 0.3);
  outline-offset: 1px;
}

.study-guided-upload-preview img {
  object-fit: cover;
  border-radius: 7px;
  background: #e5e5e5;
  border: 0;
}

.study-guided-upload-preview img[hidden] {
  display: none;
}

.study-guided-upload-preview img.is-empty {
  background: #e8e8e8;
}

.study-guided-explanation-panel[hidden] {
  display: none;
}

.study-guided-explanation-panel {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.study-guided-history-panel[hidden] {
  display: none;
}

.study-guided-history-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.study-guided-history-card {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.study-guided-history-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.82fr));
  gap: 10px;
}

.study-guided-history-filter {
  display: grid;
  gap: 6px;
}

.study-guided-history-filter__label {
  color: rgba(61, 140, 169, 0.78);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
}

.study-guided-history-filter__control {
  position: relative;
  display: block;
  min-width: 0;
}

.study-guided-history-filter__icon {
  position: absolute;
  top: 50%;
  left: 11px;
  z-index: 1;
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: #ff9f1f;
  pointer-events: none;
  transform: translateY(-50%);
}

.study-guided-history-filter__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-guided-history-filter__icon--button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.study-guided-history-filter__icon--button:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(255, 159, 31, 0.45);
  outline-offset: 3px;
}

.study-guided-history-filter__input,
.study-guided-history-filter__select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px 8px 36px;
  border: 1px solid rgba(61, 140, 169, 0.1);
  border-radius: 14px;
  background: #f1f3f6;
  color: #3d8ca9;
  font: inherit;
  font-size: 0.8rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.study-guided-history-filter__input::-webkit-calendar-picker-indicator {
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.study-guided-history-filter__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f1f3f6 !important;
  background-image: none !important;
  color: var(--history-filter-accent, #3d8ca9) !important;
}

.study-guided-docx-progress {
  position: fixed;
  left: 50%;
  bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  z-index: 240;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgba(61, 140, 169, 0.32);
  border-radius: 16px;
  background: rgba(247, 251, 253, 0.96);
  color: #275e73;
  box-shadow: 0 12px 32px rgba(16, 73, 98, 0.18);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  pointer-events: none;
  transform: translateX(-50%);
}

.study-guided-docx-progress[hidden] {
  display: none;
}

.study-guided-docx-progress__spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid rgba(61, 140, 169, 0.24);
  border-top-color: #3d8ca9;
  border-radius: 50%;
  animation: study-guided-docx-progress-spin 0.75s linear infinite;
}

@keyframes study-guided-docx-progress-spin {
  to { transform: rotate(360deg); }
}

/* Desktop web workspace: three reading columns with natural page scrolling. */
.study-guided-desktop-sidebar,
.study-guided-desktop-main,
.study-guided-desktop-test-panel:empty {
  display: contents;
}

@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  body.parent-visual-light.dashboard-mode-study-guided .app-shell,
  body.parent-visual-light.dashboard-mode-study-guided .mobile-stage,
  body.parent-visual-light.dashboard-mode-study-guided #parentView,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-dashboard-home {
    width: 100%;
    max-width: none;
  }

  body.parent-visual-light.dashboard-mode-study-guided .app-shell {
    padding: 18px 0 56px;
  }

  body.parent-visual-light.dashboard-mode-study-guided .topbar {
    position: relative;
    top: auto;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-dashboard-home {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 2.18fr);
    align-items: start;
    column-gap: clamp(28px, 3vw, 54px);
    row-gap: 26px;
    padding-inline: clamp(22px, 2.4vw, 42px);
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-sidebar,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-main {
    display: grid;
    align-content: start;
    min-width: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-sidebar {
    grid-column: 1;
    gap: 18px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-main {
    grid-column: 2;
    gap: 24px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-test-panel {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 10px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-test-panel:empty {
    display: none;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    > .study-guided-test-group {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 2.18fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: clamp(28px, 3vw, 54px);
    row-gap: 8px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    [data-study-guided-test-intro-shell],
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-intro {
    display: contents;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-intro__animation {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    min-height: 210px;
    aspect-ratio: auto;
    margin: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-intro__scene {
    grid-template-columns: minmax(96px, 132px) max-content;
    width: 100%;
    max-width: 360px;
    padding-inline: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-intro__message {
    font-size: clamp(0.92rem, 1.25vw, 1.2rem);
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-intro__text {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: center;
    margin-bottom: 8px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    [data-study-guided-test-controls-shell] {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    min-width: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-count-shell {
    margin-top: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-hero,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-subjects-panel,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-select-stack,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .post-login-actions,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-explanation-panel,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .question-bank-preview-card,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .inline-test-host {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-hero,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area {
    margin-top: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-explanation-panel {
    padding-top: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation {
    display: grid;
    grid-template-columns: minmax(360px, 1.45fr) minmax(300px, 0.9fr);
    align-items: start;
    column-gap: clamp(24px, 2.4vw, 42px);
    row-gap: 18px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > *:not(.study-guided-mind-map-row):not(.study-guided-math-visual-row):not(.study-guided-generated-infographic-row) {
    grid-column: 1;
    min-width: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > :is(.study-guided-mind-map-row, .study-guided-math-visual-row, .study-guided-generated-infographic-row) {
    grid-column: 2;
    grid-row: 1 / span 8;
    align-self: start;
    min-width: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-mind-map,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-math-visual,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-science-visual {
    width: 100%;
    max-width: none;
    margin-top: 12px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-mind-map__node {
    width: 100%;
    padding-inline: clamp(40px, 4vw, 62px);
  }

  body.dashboard-mode-study-guided .study-guided-followup-composer {
    /* No navegador, a pergunta complementar segue o mapa no fluxo da página,
       como no celular e no tablet, sem cobrir o conteúdo. */
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(800px, calc(100% - 40px));
    max-width: 800px;
    margin: 24px auto 18px;
    z-index: auto;
  }

  body.dashboard-mode-study-guided.study-guided-followup-active {
    padding-bottom: 0;
  }

  body.inline-test-active.dashboard-mode-study-guided #parentView .study-guided-desktop-main {
    grid-column: 1 / -1;
  }

  body.inline-test-active.dashboard-mode-study-guided #parentView .study-guided-desktop-sidebar {
    display: none;
  }

  body.inline-test-active.dashboard-mode-study-guided #parentView .study-guided-desktop-test-panel {
    display: none;
  }

  body.inline-test-active.dashboard-mode-study-guided #parentView .inline-test-host {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 720px);
    margin-inline: auto;
  }

  body.inline-test-active.dashboard-mode-study-guided #parentView #stopTestButton {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* Desktop keeps a single reading column, widened to use the central browser
   workspace without adopting the old multi-column study layout. */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  body.parent-visual-light.dashboard-mode-study-guided .app-shell {
    width: min(1231px, calc(100vw - 20px));
    max-width: 1231px;
    margin: 0 auto;
    padding: 28px 0;
    border-radius: 14px;
    overflow-x: clip;
  }

  /* Em telas amplas, o mapa usa cards maiores; o texto acompanha a escala
     para continuar legível sem alterar a composição do celular/tablet. */
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-mind-map__node {
    min-height: 136px;
    padding-block: clamp(24px, 2.6vw, 34px);
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-mind-map__content {
    gap: 14px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-mind-map__title {
    font-size: clamp(1.18rem, 1.35vw, 1.42rem);
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-mind-map__items {
    gap: 9px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-mind-map__item {
    font-size: clamp(1.04rem, 1.15vw, 1.22rem);
  }

  body.parent-visual-light.dashboard-mode-study-guided .mobile-stage {
    width: min(800px, calc(100% - 40px));
    max-width: 800px;
    margin: 0 auto;
    min-height: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-dashboard-home {
    display: block;
    padding-inline: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-sidebar,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-main,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-test-panel {
    display: contents;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-hero,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-subjects-panel,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-select-stack,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .post-login-actions,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-explanation-panel,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .question-bank-preview-card,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .inline-test-host {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-read-list--explanation {
    display: block;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-read-list--explanation > * {
    width: 100%;
  }
}

/* Planos e assinatura */
.plans-view { width: 100%; }

.plans-dashboard {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 42px) 64px;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.plans-dashboard__header,
.plan-usage-panel__heading,
.current-plan-panel__heading { color: #338aa7; }

.plans-dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.plans-dashboard__eyebrow,
.plan-usage-panel__eyebrow,
.current-plan-panel__eyebrow {
  margin: 0 0 5px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
}

.plans-dashboard__title,
.plan-usage-panel h3,
.current-plan-panel h3 { margin: 0; font-weight: 500; }

.plans-dashboard__title { font-size: clamp(1.65rem, 4vw, 2.35rem); }

.plan-usage-panel,
.current-plan-panel {
  border: 1px solid rgba(51, 138, 167, 0.24);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(51, 138, 167, 0.035);
  box-shadow: 0 12px 34px rgba(28, 76, 92, 0.06);
}

.current-plan-panel { margin-top: 24px; }
.plan-usage-panel__heading, .current-plan-panel__heading { margin-bottom: 22px; }

.plan-usage-month {
  padding: 20px;
  border-radius: 20px;
  background: rgba(22, 82, 103, 0.62);
  color: #fff;
}

.plan-usage-month__topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.plan-usage-month__label,
.plan-usage-month__remaining,
.plan-usage-month strong { display: block; }
.plan-usage-month__label { font-size: 0.85rem; opacity: 0.82; }
.plan-usage-month strong { margin-top: 3px; font-size: clamp(1.55rem, 5vw, 2.25rem); font-weight: 500; }
.plan-usage-month__remaining { padding-bottom: 4px; font-size: 0.9rem; }

.plan-usage-month__track {
  height: 7px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.plan-usage-month__track span { display: block; height: 100%; border-radius: inherit; background: #fff; }

.plan-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.plan-usage-card {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid rgba(51, 138, 167, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #28586a;
}

.plan-usage-card strong { font-size: 1.75rem; font-weight: 500; color: #338aa7; }
.plan-usage-card span { margin-top: 5px; font-size: 0.86rem; line-height: 1.35; }

.plan-usage-summary__note {
  margin: 18px 2px 0;
  color: #66818b;
  font-size: 0.78rem;
  line-height: 1.55;
}

.current-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(51, 138, 167, 0.09);
  color: #28586a;
}

.current-plan-card__status {
  display: flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(117, 181, 158, 0.2);
  color: #43846e;
  font-size: 0.75rem;
}

.current-plan-card h4 { margin: 10px 0 6px; color: #338aa7; font-size: 1.2rem; font-weight: 500; }
.current-plan-card p { max-width: 570px; margin: 0; font-size: 0.88rem; line-height: 1.55; }
.current-plan-card__price { display: block; margin-top: 12px; color: #338aa7; font-size: 1rem; }
.current-plan-card__allowance { min-width: 132px; text-align: center; color: #338aa7; }
.current-plan-card__allowance strong, .current-plan-card__allowance span { display: block; }
.current-plan-card__allowance strong { font-size: 2.25rem; font-weight: 500; }
.current-plan-card__allowance span { font-size: 0.76rem; }

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

.billing-offer-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(51, 138, 167, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: #28586a;
}

.billing-offer-card > span { font-size: 0.76rem; opacity: 0.72; }
.billing-offer-card h4 { margin: 0; color: #338aa7; font-size: 1.08rem; }
.billing-offer-card > strong { font-size: 1.35rem; }
.billing-offer-card button {
  justify-self: start;
  margin-top: 6px;
  padding: 10px 16px;
  border: 1px solid #338aa7;
  border-radius: 999px;
  background: transparent;
  color: #338aa7;
  cursor: pointer;
}
.billing-offer-card button:hover { background: rgba(51, 138, 167, 0.08); }
.billing-offer-card button:disabled { cursor: default; opacity: 0.5; }
.billing-setup-note { margin: 14px 2px 0; color: #66818b; font-size: 0.78rem; }

body[data-app-theme="dark"] .plans-dashboard,
body[data-app-theme="dark"] .plan-usage-card,
body[data-app-theme="dark"] .current-plan-card { color: #c5d2d7; }

body[data-app-theme="dark"] .plans-dashboard {
  border: 0;
}

body[data-app-theme="dark"] .plan-usage-panel,
body[data-app-theme="dark"] .current-plan-panel {
  border-color: rgba(92, 176, 205, 0.25);
  background: rgba(25, 39, 47, 0.52);
  box-shadow: none;
}

body[data-app-theme="dark"] .plan-usage-card {
  border-color: rgba(92, 176, 205, 0.18);
  background: rgba(28, 44, 53, 0.82);
}

body[data-app-theme="dark"] .current-plan-card { background: rgba(28, 44, 53, 0.82); }
body[data-app-theme="dark"] .billing-offer-card {
  border-color: rgba(92, 176, 205, 0.18);
  background: rgba(28, 44, 53, 0.82);
  color: #c5d2d7;
}
body[data-app-theme="dark"] .billing-setup-note { color: #8da2aa; }
body[data-app-theme="dark"] .plan-usage-summary__note { color: #8da2aa; }

@media (max-width: 620px) {
  .plans-dashboard { padding: 22px 14px 48px; }
  .plans-dashboard__header { align-items: flex-start; }
  .plan-usage-panel, .current-plan-panel { border-radius: 22px; padding: 18px; }
  .plan-usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-usage-card { min-height: 100px; padding: 14px; }
  .current-plan-card { align-items: flex-start; flex-direction: column; gap: 18px; }
  .current-plan-card__allowance { min-width: 0; text-align: left; }
  .billing-offers { grid-template-columns: 1fr; }
}

.study-guided-history-filter__select option {
  background: #ffffff;
  color: #3d8ca9;
}

.study-guided-history-filter__input::placeholder {
  color: rgba(61, 140, 169, 0.52);
}

.study-guided-history-filter__input:focus,
.study-guided-history-filter__select:focus {
  border-color: rgba(61, 140, 169, 0.28);
  box-shadow: 0 0 0 3px rgba(61, 140, 169, 0.12);
}

.study-guided-history-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.study-guided-history-chart-shell[hidden] {
  display: none;
}

.study-guided-history-chart-card {
  display: grid;
  gap: 8px;
  padding: 12px 12px 8px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(61, 140, 169, 0.1);
}

.study-guided-history-chart-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.study-guided-history-chart-card__title {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.study-guided-history-chart-card__title-subject {
  font: inherit;
}

.study-guided-history-chart-card__subtitle {
  margin: 0;
  color: rgba(61, 140, 169, 0.72);
  font-size: 0.75rem;
  line-height: 1.4;
}

.study-guided-history-chart-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--history-chart-accent, #3d8ca9) 14%, white);
  color: var(--history-chart-accent, #3d8ca9);
  font-size: 0.78rem;
  font-weight: 700;
}

.study-guided-history-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  padding-bottom: 4px;
}

.study-guided-history-chart-viewport {
  position: relative;
  min-width: 0;
}

.study-guided-history-chart-axis {
  position: absolute;
  top: 0;
  bottom: 4px;
  left: 0;
  z-index: 2;
  width: 34px;
  background: linear-gradient(90deg, #ffffff 0 82%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.study-guided-history-chart-axis__label {
  position: absolute;
  right: 8px;
  color: rgba(61, 140, 169, 0.68);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-50%);
}

.study-guided-history-chart-scroll::-webkit-scrollbar {
  display: none;
}

.study-guided-history-chart {
  display: block;
  width: max(100%, var(--history-chart-width, 360px));
  height: auto;
}

.study-guided-history-chart__grid-line {
  stroke: rgba(61, 140, 169, 0.12);
  stroke-width: 1;
}

.study-guided-history-chart__axis-label {
  fill: rgba(61, 140, 169, 0.68);
  font-size: 10px;
  font-weight: 600;
}

.study-guided-history-chart__line {
  fill: none;
  stroke: var(--history-chart-accent, #3d8ca9);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-guided-history-chart__point-hit {
  fill: transparent;
  cursor: pointer;
}

.study-guided-history-chart__point {
  fill: var(--history-chart-accent, #3d8ca9);
  stroke: #ffffff;
  stroke-width: 2;
  transition: transform 160ms ease, fill 160ms ease, stroke 160ms ease;
}

.study-guided-history-chart__point.is-best {
  fill: #5bb76d;
}

.study-guided-history-chart__point.is-latest {
  stroke: var(--history-chart-accent, #3d8ca9);
  stroke-width: 2.8;
}

.study-guided-history-chart__point.is-active {
  transform: scale(1.08);
  fill: #d979df;
}

.study-guided-history-chart-card__focus {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(61, 140, 169, 0.12);
  background: color-mix(in srgb, var(--history-chart-accent, #3d8ca9) 8%, white);
}

.study-guided-history-chart-card__focus-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.study-guided-history-chart-card__focus-value {
  color: #3d8ca9;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.study-guided-history-chart-card__focus-status,
.study-guided-history-chart-card__focus-meta {
  color: rgba(61, 140, 169, 0.76);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .study-guided-history-chart-card__focus-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.study-guided-history-stat {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 14px;
  background: #f7fafc;
  border: 1px solid rgba(61, 140, 169, 0.09);
  text-align: center;
}

.study-guided-history-stat__value {
  color: #3d8ca9;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.1;
}

.study-guided-history-stat__label {
  color: rgba(61, 140, 169, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.study-guided-history-list {
  display: grid;
  gap: 10px;
}

.study-guided-history-item {
  display: grid;
  gap: 0;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 20px;
  background: #ffffff;
  text-align: left;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}

.study-guided-history-item:hover {
  border-color: rgba(61, 140, 169, 0.32);
  box-shadow: 0 3px 10px rgba(16, 73, 98, 0.035);
}

.study-guided-history-item.is-active {
  border-color: color-mix(in srgb, var(--history-subject-accent, #3d8ca9) 48%, white);
  box-shadow: 0 4px 12px rgba(16, 73, 98, 0.04);
  transform: none;
}

.study-guided-history-item__toggle {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 17px 18px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  font: inherit;
}

.study-guided-history-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.study-guided-history-item__top-meta {
  display: block;
  flex-shrink: 0;
}

.study-guided-history-item__title {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
}

.study-guided-history-item__round-grade {
  font-weight: 600;
  white-space: normal;
}

.study-guided-history-item__date {
  color: rgba(61, 140, 169, 0.68);
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
}

.study-guided-history-item__chevron {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--history-subject-accent, #3d8ca9);
}

.study-guided-history-item__chevron::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.study-guided-history-item__chevron.is-open::before {
  transform: translateY(2px) rotate(225deg);
}

.study-guided-history-item__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.study-guided-history-item__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #3d8ca9;
  font-size: 0.78rem;
  font-weight: 700;
}

.study-guided-history-item__chip.is-success {
  color: #5aa44c;
}

.study-guided-history-item__chip.is-accent {
  color: #b56ad8;
}

.study-guided-history-item__chip.is-neutral,
.study-guided-history-item__chip.is-muted {
  color: #3d8ca9;
}

.study-guided-history-item__chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  color: currentColor;
  font-size: 0.82em;
  line-height: 1;
}

.study-guided-history-item__summary {
  margin: 0;
  color: rgba(39, 112, 143, 0.94);
  font-size: 0.84rem;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.study-guided-history-item__detail {
  display: grid;
  gap: 14px;
  padding: 16px 18px 20px;
  border-top: 1px solid rgba(61, 140, 169, 0.1);
}

@media (max-width: 560px) {
  .study-guided-history-item__toggle {
    gap: 10px;
    padding: 15px 14px 16px;
  }

  .study-guided-history-item__top {
    align-items: flex-start;
    gap: 8px;
  }

  .study-guided-history-item__top-meta {
    gap: 5px;
  }

  .study-guided-history-item__title {
    font-size: 0.84rem;
  }

  .study-guided-history-item__date {
    font-size: 0.68rem;
  }

  .study-guided-history-item__chips {
    gap: 7px 12px;
  }

  .study-guided-history-item__chip {
    font-size: 0.72rem;
  }

  .study-guided-history-item__summary {
    font-size: 0.79rem;
    -webkit-line-clamp: 4;
  }

  .study-guided-history-item__detail {
    padding: 14px 14px 18px;
  }
}

.study-guided-history-item__meta {
  display: grid;
  gap: 6px;
}

.study-guided-history-item__meta-line {
  color: rgba(61, 140, 169, 0.88);
  font-size: 0.8rem;
  line-height: 1.45;
}

.study-guided-history-item__meta-line strong {
  color: #3d8ca9;
}

.study-guided-history-empty {
  margin: 0;
  color: rgba(61, 140, 169, 0.78);
  font-size: 0.86rem;
  line-height: 1.45;
}

.study-guided-history-detail {
  display: grid;
  gap: 14px;
  padding-top: 6px;
  border-top: 1px solid rgba(61, 140, 169, 0.12);
}

.study-guided-history-detail__header {
  display: grid;
  gap: 4px;
}

.study-guided-history-detail__heading {
  display: grid;
  gap: 4px;
}

.study-guided-history-detail__title {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
}

.study-guided-history-detail__subtitle {
  margin: 0;
  color: rgba(61, 140, 169, 0.7);
  font-size: 0.78rem;
  line-height: 1.35;
}

.study-guided-history-detail__section {
  display: grid;
  gap: 8px;
}

.study-guided-history-detail__section-title,
.study-guided-history-detail__block-title {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
}

.study-guided-history-detail__text,
.study-guided-history-detail__empty {
  margin: 0;
  color: rgba(17, 17, 17, 0.82);
  font-size: 0.82rem;
  line-height: 1.55;
}

.study-guided-history-detail__content {
  display: grid;
  gap: 14px;
}

.study-guided-history-detail__content-group {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding-left: 10px;
  border-left: 2px solid rgba(61, 140, 169, 0.22);
}

.study-guided-history-detail__content-label {
  color: rgba(61, 140, 169, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.study-guided-history-detail__text {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.study-guided-history-detail__text p {
  margin: 0;
}

.study-guided-history-detail__reference {
  min-width: 0;
  border-top: 1px solid rgba(61, 140, 169, 0.13);
  border-bottom: 1px solid rgba(61, 140, 169, 0.13);
}

.study-guided-history-detail__reference-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 2px;
  color: #3d8ca9;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.study-guided-history-detail__reference-summary::-webkit-details-marker {
  display: none;
}

.study-guided-history-detail__reference-summary::after {
  content: "⌄";
  flex: 0 0 auto;
  color: rgba(61, 140, 169, 0.72);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.study-guided-history-detail__reference[open] .study-guided-history-detail__reference-summary::after {
  transform: rotate(180deg);
}

.study-guided-history-detail__reference-text {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 2px 2px 12px;
  color: rgba(17, 17, 17, 0.78);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.study-guided-history-detail__reference-text p {
  margin: 0;
}

.study-guided-history-detail__conversation-item,
.study-guided-history-detail__question-item,
.study-guided-history-detail__block {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fbfd;
  border: 1px solid rgba(61, 140, 169, 0.08);
}

.study-guided-history-detail__conversation-title,
.study-guided-history-detail__question-title {
  color: #3d8ca9;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.study-guided-history-detail__conversation-text,
.study-guided-history-detail__question-text {
  color: rgba(17, 17, 17, 0.82);
  font-size: 0.82rem;
  line-height: 1.55;
}

.study-guided-history-detail__question-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.study-guided-history-detail__question-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.study-guided-history-detail__question-mode {
  color: rgba(61, 140, 169, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.study-guided-history-detail__question-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
}

.study-guided-history-detail__question-status.is-correct {
  background: rgba(103, 194, 88, 0.14);
  color: #4ea73c;
}

.study-guided-history-detail__question-status.is-wrong {
  background: rgba(224, 116, 116, 0.14);
  color: #d56767;
}

.study-guided-history-detail__question-status.is-neutral {
  background: rgba(61, 140, 169, 0.12);
  color: #3d8ca9;
}

.study-guided-history-detail__question-answer-block {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.study-guided-history-detail__question-answer-label {
  color: #3d8ca9;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.study-guided-history-detail__question-answer-text {
  margin: 0;
  color: rgba(17, 17, 17, 0.82);
  font-size: 0.81rem;
  line-height: 1.5;
}

.study-guided-history-detail__result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.study-guided-history-detail__result-card {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 14px;
  background: #f7fafc;
  border: 1px solid rgba(61, 140, 169, 0.09);
  text-align: center;
}

.study-guided-history-detail__result-card strong {
  color: #3d8ca9;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

.study-guided-history-detail__result-card span {
  color: rgba(61, 140, 169, 0.72);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.2;
}

.study-guided-history-detail__reinforcement {
  display: grid;
  gap: 14px;
}

.study-guided-history-detail__reinforcement-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(61, 140, 169, 0.16);
  border-radius: 8px;
  color: rgba(61, 140, 169, 0.76);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
}

.study-guided-history-detail__reinforcement-score strong {
  display: block;
  margin-top: 3px;
  color: #3d8ca9;
  font-size: 0.94rem;
}

.study-guided-history-detail__reinforcement-status,
.study-guided-history-detail__reinforcement-consolidated {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

body[data-app-theme="dark"] .test-journey-evaluation__reinforce-body {
  background: var(--dark-page) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__reinforcement-action,
body[data-app-theme="dark"] .test-journey-evaluation__reinforcement-invitation-title,
body[data-app-theme="dark"] .test-journey-evaluation__consolidated,
body[data-app-theme="dark"] .test-journey-evaluation__comparison-status,
body[data-app-theme="dark"] .study-guided-history-detail__reinforcement-status,
body[data-app-theme="dark"] .study-guided-history-detail__reinforcement-consolidated {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__consolidated.is-completed,
body[data-app-theme="dark"] .study-guided-history-detail__reinforcement-consolidated {
  color: #75b59e !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__card--comparison,
body[data-app-theme="dark"] .study-guided-history-detail__reinforcement-score {
  border-color: var(--dark-line) !important;
  background: transparent !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__comparison-scores,
body[data-app-theme="dark"] .study-guided-history-detail__reinforcement-score {
  color: var(--dark-muted) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__comparison-scores strong,
body[data-app-theme="dark"] .study-guided-history-detail__reinforcement-score strong {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__comparison-body {
  border-color: var(--dark-line);
  background: var(--dark-page);
}

.study-guided-history-detail__bullet-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: rgba(17, 17, 17, 0.82);
  font-size: 0.82rem;
  line-height: 1.5;
}

.study-guided-history-detail__comparison {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(61, 140, 169, 0.1);
  background: #f8fbfd;
}

.study-guided-history-detail__comparison-title {
  color: #3d8ca9;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.study-guided-history-detail__comparison-copy {
  margin: 0;
  color: rgba(17, 17, 17, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.study-guided-history-detail__comparison-meta {
  color: rgba(61, 140, 169, 0.72);
  font-size: 0.75rem;
  line-height: 1.3;
}

.study-guided-history-detail__comparison.is-up {
  border-color: rgba(110, 193, 85, 0.22);
  background: rgba(110, 193, 85, 0.08);
}

.study-guided-history-detail__comparison.is-up .study-guided-history-detail__comparison-title,
.study-guided-history-detail__comparison.is-up .study-guided-history-detail__comparison-copy {
  color: #5aa44c;
}

.study-guided-history-detail__comparison.is-down {
  border-color: rgba(227, 109, 127, 0.22);
  background: rgba(227, 109, 127, 0.08);
}

.study-guided-history-detail__comparison.is-down .study-guided-history-detail__comparison-title,
.study-guided-history-detail__comparison.is-down .study-guided-history-detail__comparison-copy {
  color: #cf6173;
}

.study-guided-history-detail__comparison.is-same {
  border-color: rgba(181, 106, 216, 0.22);
  background: rgba(181, 106, 216, 0.08);
}

.study-guided-history-detail__comparison.is-same .study-guided-history-detail__comparison-title,
.study-guided-history-detail__comparison.is-same .study-guided-history-detail__comparison-copy {
  color: #b56ad8;
}

.study-guided-history-detail__comparison.is-first,
.study-guided-history-detail__comparison.is-muted {
  border-color: rgba(61, 140, 169, 0.16);
  background: rgba(61, 140, 169, 0.06);
}

@media (max-width: 1024px) {
  .school-master-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .school-master-dashboard {
    width: min(100%, 560px);
    margin-left: auto;
    margin-right: auto;
  }

  .school-master-top-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-master-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-master-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .study-guided-history-filters,
  .study-guided-history-stats,
  .study-guided-history-detail__result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .study-guided-history-detail__result-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .study-guided-history-detail__comparison {
    width: 100%;
    box-sizing: border-box;
  }

  .school-master-top-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-master-grid,
  .school-master-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-master-grid {
    align-items: stretch;
  }

  .school-master-dashboard__header {
    display: grid;
    justify-content: stretch;
    justify-items: center;
    gap: 12px;
    padding-top: 8px;
  }

  .school-master-dashboard__back {
    position: static;
    top: auto;
    left: auto;
    transform: none;
  }

  .school-master-dashboard__heading {
    gap: 8px;
    padding-inline: 0;
    text-align: center;
  }

  .school-master-dashboard__title,
  .school-master-dashboard__subtitle {
    text-align: center;
  }
}

@media (max-width: 920px) {
  .school-master-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .school-master-filter__label {
    font-size: 0.7rem;
  }

  .school-master-filter__input,
  .school-master-filter__select {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.78rem;
  }
}

@media (max-width: 680px) {
  .study-guided-history-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .study-guided-read-row {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 10px;
  }

  .school-master-top-stats,
  .school-master-grid,
  .school-master-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-master-filter__input,
  .school-master-filter__select {
    font-size: 0.76rem;
  }

  .school-master-dashboard__title {
    font-size: 1.9rem;
  }

  .school-master-dashboard__subtitle {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .school-master-round__top,
  .school-master-student-card__top {
    flex-direction: column;
  }

  .school-master-round__top-meta {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  .school-master-top-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .school-master-dashboard__title {
    font-size: 1.9rem;
  }
}

.study-guided-explanation-title {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  padding-top: 2px;
}

.study-guided-explanation-body {
  color: #111111;
  font-size: 0.9rem;
  line-height: 1.56;
  display: grid;
  gap: 18px;
}

.study-guided-explanation-content {
  display: grid;
  gap: 18px;
  transition: filter 180ms ease, opacity 180ms ease;
}

.study-guided-explanation-content.is-blurred {
  filter: blur(11px);
  opacity: 0.88;
  user-select: none;
  pointer-events: none;
}

.study-guided-explanation-body p {
  margin: 0;
}

.study-guided-math-term {
  white-space: nowrap;
}

.study-guided-math-sup {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
}

.study-guided-math-frac {
  display: inline-grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-items: center;
  margin: 0 0.08em;
  vertical-align: middle;
  line-height: 1;
  min-width: 1.6em;
}

.study-guided-math-frac__top,
.study-guided-math-frac__bottom {
  display: block;
  padding: 0 0.15em;
}

.study-guided-math-frac__top {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.08em;
}

.study-guided-math-frac__bottom {
  padding-top: 0.08em;
}

.study-guided-math-root {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.05em;
  white-space: nowrap;
  vertical-align: middle;
}

.study-guided-math-root__symbol {
  font-weight: 700;
  line-height: 1;
}

.study-guided-math-root__value {
  border-top: 1px solid currentColor;
  padding: 0.02em 0 0 0.1em;
}

.study-guided-inline-equation,
.study-guided-math-term,
.study-guided-math-frac,
.study-guided-math-root {
  color: inherit;
  font-size: 1.22em;
  font-weight: 600;
  line-height: 1.35;
}

.study-guided-inline-equation {
  overflow-wrap: anywhere;
}

.study-guided-math-tex {
  max-width: 100%;
  color: inherit;
}

.study-guided-math-tex--inline {
  display: inline-block;
  vertical-align: middle;
}

.study-guided-math-tex--display {
  display: block;
  width: 100%;
  margin: 0.55rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.22rem 0.1rem 0.38rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.study-guided-math-tex--display .katex-display {
  width: max-content;
  min-width: min(100%, max-content);
  max-width: none;
  margin: 0;
  text-align: left;
}

.study-guided-math-tex .katex {
  color: inherit;
  font-size: clamp(1.05em, 3.8vw, 1.25em);
}

.study-guided-math-tex--fallback {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "Cambria Math", "STIX Two Math", serif;
}

body[data-app-theme="dark"] .study-guided-inline-equation,
body[data-app-theme="dark"] .study-guided-math-term,
body[data-app-theme="dark"] .study-guided-math-frac,
body[data-app-theme="dark"] .study-guided-math-root,
body[data-app-theme="dark"] .study-guided-worked-answer__line,
body[data-app-theme="dark"] .study-guided-math-visual__calculation-line {
  color: #ffffff;
}

body[data-app-theme="dark"] .study-guided-math-tex,
html[data-app-theme="dark"] .study-guided-math-tex {
  color: #ffffff;
}

@media (min-width: 700px) {
  .study-guided-math-tex--display {
    margin-block: 0.7rem;
    padding-block: 0.3rem 0.48rem;
  }
}

.study-guided-worked-answer {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  font-size: 1.12rem;
}

.study-guided-worked-answer__line {
  line-height: 1.55;
}

.study-guided-explanation-group:first-child .study-guided-explanation-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.study-guided-explanation-group:first-child .study-guided-explanation-section p {
  color: #111111;
  font-size: 0.9rem;
  line-height: 1.52;
  font-weight: 400;
}

.study-guided-explanation-body p:last-child,
.study-guided-explanation-body ol:last-child {
  margin-bottom: 0;
}

.study-guided-explanation-body strong {
  color: #3d8ca9;
  font-weight: 700;
}

.study-guided-explanation-body .study-guided-inline-highlight {
  color: inherit;
  font-weight: 700;
}

.study-guided-explanation-body ol {
  margin: 0;
  padding-left: 18px;
}

.study-guided-explanation-section {
  display: grid;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.study-guided-explanation-group {
  display: grid;
  gap: 8px;
}

.study-guided-read-row.study-guided-mind-map-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.study-guided-mind-map-row .study-guided-read-row__text {
  width: 100%;
}

.study-guided-mind-map {
  display: grid;
  justify-items: center;
  width: min(100%, 700px);
  margin: 18px auto 0;
  color: #2a5970;
  text-align: center;
}

.study-guided-mind-map__node {
  position: relative;
  display: grid;
  align-content: center;
  gap: 10px;
  width: min(86%, 610px);
  min-height: 112px;
  padding: clamp(18px, 3vw, 24px) clamp(54px, 8vw, 72px);
  overflow: visible;
  border: 0;
  border-radius: 5px;
  background: rgb(211 211 211 / 23%);
}

.study-guided-mind-map__node::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(28px, 5vw, 38px);
  border-radius: 5px;
  background: color-mix(in srgb, var(--study-guided-mind-map-accent) 42%, transparent);
  content: "";
}

.study-guided-mind-map__node--central {
  min-height: 112px;
  background: rgb(211 211 211 / 23%);
}

.study-guided-mind-map__content {
  display: grid;
  justify-self: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.study-guided-mind-map__title {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  color: var(--study-guided-mind-map-accent);
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  font-weight: 700;
  text-align: center;
}

.study-guided-mind-map__items {
  display: grid;
  justify-self: stretch;
  justify-items: stretch;
  width: 100%;
  max-width: 100%;
  gap: 6px;
  text-align: left;
}

.study-guided-mind-map__item {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-left: 12px;
  color: #2a5970;
  text-align: left;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.study-guided-mind-map__item::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--study-guided-mind-map-accent);
  content: "";
  transform: translateY(-50%);
}

.study-guided-mind-map__arrow {
  position: relative;
  width: 36px;
  height: 44px;
  margin: 0;
  background: transparent;
}

/* Todos os ramos usam a mesma régua interna: título pode permanecer
   centralizado, mas os tópicos jamais acompanham a largura do texto. */
.study-guided-mind-map__node .study-guided-mind-map__content {
  justify-self: stretch !important;
  width: 100% !important;
}

.study-guided-mind-map__node .study-guided-mind-map__items {
  justify-self: stretch !important;
  width: 100% !important;
  margin: 0 !important;
}

/* A lista ocupa sempre toda a régua interna do card. Assim, cada marcador
   parte da mesma coluna vertical mesmo que os títulos ou as respostas tenham
   comprimentos diferentes. */
.study-guided-mind-map__node .study-guided-mind-map__items {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-self: stretch !important;
  justify-items: stretch !important;
}

.study-guided-mind-map__node .study-guided-mind-map__item {
  justify-self: stretch !important;
  min-width: 0 !important;
}

/* A lista forma um grupo compacto, centralizado no card, como a referência.
   Dentro dele, bolinhas e textos mantêm a mesma régua de leitura. */
.study-guided-mind-map__node .study-guided-mind-map__items {
  width: fit-content !important;
  max-width: 100% !important;
  justify-self: center !important;
  justify-items: start !important;
}

.study-guided-mind-map__node .study-guided-mind-map__item {
  width: auto !important;
  padding-left: 14px !important;
}

.study-guided-mind-map__node .study-guided-mind-map__item::before {
  left: 0 !important;
  transform: translateY(-50%) !important;
}

.study-guided-mind-map__arrow::before,
.study-guided-mind-map__arrow::after {
  position: absolute;
  top: 17px;
  width: 20px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--study-guided-mind-map-accent) 42%, transparent);
  content: "";
}

.study-guided-mind-map__arrow::before {
  left: 2px;
  transform: rotate(45deg);
}

.study-guided-mind-map__arrow::after {
  right: 2px;
  transform: rotate(-45deg);
}

body:not([data-app-theme="dark"]) .study-guided-mind-map__node {
  background: rgb(211 211 211 / 23%);
}

body:not([data-app-theme="dark"]) .study-guided-mind-map__node--central {
  background: rgb(211 211 211 / 23%);
}

body:not([data-app-theme="dark"]) .study-guided-mind-map__arrow::before,
body:not([data-app-theme="dark"]) .study-guided-mind-map__arrow::after {
  background: color-mix(in srgb, var(--study-guided-mind-map-accent) 42%, transparent);
}

.study-guided-read-row.study-guided-math-visual-row {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.study-guided-math-visual-row .study-guided-read-row__text {
  width: 100%;
}

.study-guided-generated-infographic-row {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.study-guided-generated-infographic {
  width: min(100%, 720px);
  margin: 26px auto 0;
  overflow: hidden;
  border: 1px solid rgba(69, 148, 174, 0.24);
  border-radius: 24px;
  background: #0d171e;
  box-shadow: 0 14px 34px rgba(20, 49, 62, 0.08);
}

.study-guided-generated-infographic img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  box-sizing: border-box;
}

body[data-app-theme="dark"] .study-guided-generated-infographic {
  border-color: rgba(121, 169, 187, 0.18);
  background: color-mix(in srgb, var(--dark-page) 94%, #17303c);
  box-shadow: none;
  opacity: 0.94;
}

.study-guided-math-visual {
  display: grid;
  width: min(100%, 700px);
  margin: 26px auto 0;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid color-mix(in srgb, var(--study-guided-math-visual-accent) 46%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--study-guided-math-visual-accent) 4%, #ffffff);
  box-shadow: 0 14px 34px rgba(20, 49, 62, 0.07);
}

.study-guided-math-visual__heading {
  display: grid;
  gap: 3px;
  margin-bottom: 20px;
  text-align: center;
}

.study-guided-math-visual__heading span {
  color: var(--study-guided-math-visual-accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.study-guided-math-visual__heading strong {
  color: #183c4d;
  font-size: clamp(1.24rem, 3vw, 1.65rem);
  font-weight: 600;
}

.study-guided-math-visual__heading small {
  color: color-mix(in srgb, var(--study-guided-math-visual-accent) 72%, #526b78);
  font-size: 0.86rem;
  font-weight: 500;
}

.study-guided-math-visual__flow {
  display: grid;
  justify-items: center;
}

.study-guided-math-visual__stage {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid color-mix(in srgb, var(--study-guided-math-visual-accent) 52%, transparent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(22, 54, 68, 0.05);
}

.study-guided-math-visual__stage h5 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #214c60;
  font-size: clamp(0.96rem, 2.4vw, 1.12rem);
  font-weight: 600;
}

.study-guided-math-visual__stage h5 span {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--study-guided-math-visual-accent) 74%, transparent);
  color: #ffffff;
  font-size: 0.88rem;
}

.study-guided-explanation-group:first-child .study-guided-math-visual__stage p {
  margin: 0;
  color: #2a5970;
  font-size: clamp(0.9rem, 2.2vw, 1.04rem);
  line-height: 1.55;
  text-align: left;
}

.study-guided-math-visual__arrow {
  display: block;
  height: 38px;
  color: color-mix(in srgb, var(--study-guided-math-visual-accent) 64%, transparent);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 38px;
}

.study-guided-math-visual__place-grid {
  display: grid;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 2px 0 4px;
  text-align: center;
}

.study-guided-math-visual__place-grid b,
.study-guided-math-visual__place-grid em {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-style: normal;
}

.study-guided-math-visual__place-grid b {
  border-bottom: 1px solid color-mix(in srgb, #59bde7 62%, transparent);
  color: var(--study-guided-math-visual-accent);
}

.study-guided-math-visual__place-grid em {
  color: #3b9bc3;
}

.study-guided-subject-diagram {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: clamp(10px, 2vw, 16px);
  border-radius: 16px;
  background: color-mix(in srgb, var(--study-guided-math-visual-accent) 6%, transparent);
  color: var(--study-guided-math-visual-accent);
}

.study-guided-subject-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 230px;
  overflow: visible;
}

.study-guided-subject-diagram svg text {
  fill: currentColor;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.study-guided-subject-diagram .diagram-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-guided-subject-diagram .diagram-line--thin {
  stroke-width: 1.7;
  opacity: 0.72;
}

.study-guided-subject-diagram .diagram-fill {
  fill: color-mix(in srgb, var(--study-guided-math-visual-accent) 12%, transparent);
  stroke: none;
}

.study-guided-subject-diagram .diagram-field-lines path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  opacity: 0.68;
}

.study-guided-subject-diagram marker path {
  fill: currentColor;
}

.study-guided-subject-diagram .diagram-pole {
  stroke: color-mix(in srgb, currentColor 70%, transparent);
  stroke-width: 1;
}

.study-guided-subject-diagram .diagram-pole--north {
  fill: color-mix(in srgb, #d66f68 74%, transparent);
}

.study-guided-subject-diagram .diagram-pole--south {
  fill: color-mix(in srgb, #5d8fc2 76%, transparent);
}

.study-guided-subject-diagram .diagram-pole + text,
.study-guided-subject-diagram .diagram-pole ~ text {
  fill: #ffffff;
}

.study-guided-subject-diagram .diagram-compass-needle {
  fill: color-mix(in srgb, var(--study-guided-math-visual-accent) 68%, transparent);
  stroke: currentColor;
  stroke-width: 1.4;
}

.study-guided-subject-diagram .diagram-atom-core,
.study-guided-subject-diagram .diagram-process-node {
  fill: color-mix(in srgb, var(--study-guided-math-visual-accent) 32%, transparent);
  stroke: currentColor;
  stroke-width: 2;
}

.study-guided-subject-diagram .diagram-electron {
  fill: color-mix(in srgb, var(--study-guided-math-visual-accent) 78%, #ffffff);
}

.study-guided-subject-diagram .diagram-label {
  font-size: 12px;
  font-weight: 500;
}

.study-guided-subject-diagram .diagram-formula-text {
  font-size: 13px;
  font-weight: 600;
}

.study-guided-subject-diagram__values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.study-guided-subject-diagram__values span {
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--study-guided-math-visual-accent) 30%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--study-guided-math-visual-accent) 78%, #274c5d);
  font-size: 0.78rem;
  line-height: 1.3;
}

.study-guided-explanation-group:first-child .study-guided-math-visual__formula {
  color: #368fb5;
  font-size: clamp(1.1rem, 4vw, 1.55rem);
  font-weight: 600;
  text-align: center;
}

.study-guided-math-visual__result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 20px);
  padding: 12px;
  border: 1px solid color-mix(in srgb, #59bde7 60%, transparent);
  border-radius: 14px;
}

.study-guided-explanation-group:first-child .study-guided-math-visual__result strong,
.study-guided-explanation-group:first-child .study-guided-math-visual__result b {
  color: var(--study-guided-math-visual-accent);
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 600;
}

.study-guided-math-visual__result sub {
  font-size: 0.52em;
}

.study-guided-math-visual__result i {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #6fc980;
  border-radius: 50%;
  color: #5abf70;
  font-style: normal;
  font-weight: 700;
}

.study-guided-math-visual__calculation {
  display: grid;
  width: min(100%, 560px);
  max-width: 100%;
  gap: 9px;
  margin: 0 auto;
  color: #365768;
  font-size: clamp(1.08rem, 2.8vw, 1.22rem);
  line-height: 1.55;
  text-align: left;
}

.study-guided-worked-answer .study-guided-inline-equation,
.study-guided-math-visual__calculation .study-guided-inline-equation {
  font-size: 1em;
}

.study-guided-math-visual__calculation-line {
  display: block;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.study-guided-math-visual__calculation-line--coefficients {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: clamp(18px, 5vw, 42px);
  align-items: center;
  margin-top: 7px;
}

.study-guided-math-visual__calculation-line--coefficients span {
  white-space: nowrap;
}

.study-guided-math-visual__next {
  justify-self: center;
  min-width: min(100%, 270px);
  margin-top: 22px;
  padding: 11px 18px;
  border: 1px solid color-mix(in srgb, var(--study-guided-math-visual-accent) 54%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--study-guided-math-visual-accent);
  font: inherit;
  cursor: pointer;
}

.study-guided-math-visual__next:focus-visible {
  outline: 2px solid var(--study-guided-math-visual-accent);
  outline-offset: 3px;
}

body[data-app-theme="dark"] .study-guided-math-visual {
  border-color: color-mix(in srgb, var(--study-guided-math-visual-accent) 25%, transparent);
  background: color-mix(in srgb, var(--study-guided-math-visual-accent) 3%, var(--dark-page));
  box-shadow: none;
}

body[data-app-theme="dark"] .study-guided-math-visual__heading strong,
body[data-app-theme="dark"] .study-guided-math-visual__stage h5 {
  color: color-mix(in srgb, var(--dark-text) 86%, transparent);
}

body[data-app-theme="dark"] .study-guided-math-visual__heading small {
  color: color-mix(in srgb, var(--study-guided-math-visual-accent) 58%, var(--dark-text));
  opacity: 0.78;
}

body[data-app-theme="dark"] .study-guided-math-visual__stage {
  border-color: color-mix(in srgb, var(--study-guided-math-visual-accent) 24%, transparent);
  background: color-mix(in srgb, var(--dark-text) 3%, transparent);
  box-shadow: none;
}

body[data-app-theme="dark"] .study-guided-math-visual__stage h5 span {
  background: color-mix(in srgb, var(--study-guided-math-visual-accent) 48%, transparent);
  color: color-mix(in srgb, var(--dark-text) 90%, transparent);
}

body[data-app-theme="dark"] .study-guided-explanation-group:first-child .study-guided-math-visual__stage p {
  color: color-mix(in srgb, var(--dark-text) 76%, transparent);
}

body[data-app-theme="dark"] .study-guided-math-visual__place-grid b,
body[data-app-theme="dark"] .study-guided-math-visual__place-grid em,
body[data-app-theme="dark"] .study-guided-explanation-group:first-child .study-guided-math-visual__formula,
body[data-app-theme="dark"] .study-guided-explanation-group:first-child .study-guided-math-visual__result strong,
body[data-app-theme="dark"] .study-guided-explanation-group:first-child .study-guided-math-visual__result b {
  opacity: 0.78;
}

body[data-app-theme="dark"] .study-guided-math-visual__calculation {
  color: #ffffff;
}

body[data-app-theme="dark"] .study-guided-subject-diagram {
  background: color-mix(in srgb, var(--study-guided-math-visual-accent) 5%, transparent);
  opacity: 0.82;
}

body[data-app-theme="dark"] .study-guided-subject-diagram__values span {
  color: color-mix(in srgb, var(--dark-text) 74%, var(--study-guided-math-visual-accent));
}

body[data-app-theme="dark"] .study-guided-math-visual__result,
body[data-app-theme="dark"] .study-guided-math-visual__next {
  border-color: color-mix(in srgb, var(--study-guided-math-visual-accent) 28%, transparent);
}

@media (max-width: 520px) {
  .study-guided-math-visual {
    margin-top: 18px;
    padding: 14px;
    border-radius: 20px;
  }

  .study-guided-math-visual__stage {
    padding: 15px;
    border-radius: 15px;
  }

  .study-guided-math-visual__stage h5 {
    align-items: flex-start;
  }

  .study-guided-math-visual__formula {
    overflow-wrap: anywhere;
  }

  .study-guided-math-visual__calculation {
    width: 100%;
    gap: 8px;
    font-size: clamp(0.9rem, 4.2vw, 1rem);
  }

  .study-guided-math-visual__calculation-line--coefficients {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .study-guided-subject-diagram {
    padding: 8px;
    border-radius: 13px;
  }

  .study-guided-subject-diagram svg {
    max-height: 180px;
  }

  .study-guided-subject-diagram svg text {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .study-guided-mind-map {
    margin-top: 14px;
  }

  .study-guided-mind-map__node {
    width: 94%;
    min-height: 104px;
    padding: 16px 44px;
    border-radius: 5px;
  }

  .study-guided-mind-map__node::before {
    width: 28px;
  }

  .study-guided-mind-map__arrow {
    width: 32px;
    height: 38px;
  }

  .study-guided-mind-map__arrow::before,
  .study-guided-mind-map__arrow::after {
    top: 14px;
    width: 18px;
    height: 4px;
  }

  .study-guided-mind-map__items {
    display: grid;
    gap: 5px;
    justify-items: start;
  }
}

.study-guided-read-list {
  display: grid;
  gap: 12px;
}

.study-guided-read-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
}

.study-guided-read-row__text {
  min-width: 0;
}

.study-guided-read-row__text p {
  margin: 0;
}

.study-guided-read-row__prefix {
  font-weight: 700;
}

.study-guided-read-row__confirm {
  display: grid;
  justify-items: center;
  align-content: center;
  align-self: center;
  padding-top: 0;
}

.study-guided-read-row__checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1.25px solid rgba(61, 140, 169, 0.85);
  background: #ffffff;
  display: inline-grid;
  place-items: center;
  margin: 0;
  cursor: pointer;
}

.study-guided-read-row__checkbox::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #3d8ca9;
  transform: scale(0);
  transition: transform 140ms ease;
}

.study-guided-read-row__checkbox:checked::after {
  transform: scale(1);
}

.study-guided-read-row__checkbox:focus-visible {
  outline: 2px solid rgba(61, 140, 169, 0.22);
  outline-offset: 2px;
}

.study-guided-read-list--explanation > .study-guided-read-row--reveal {
  position: relative;
  display: block;
  min-height: clamp(148px, 20vw, 184px);
  isolation: isolate;
  transition: min-height 220ms ease;
}

.study-guided-read-list--explanation > .study-guided-read-row--reveal.is-revealed {
  min-height: 0;
}

.study-guided-read-row--reveal .study-guided-read-row__text {
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease;
}

.study-guided-read-row--reveal.is-revealed .study-guided-read-row__text {
  opacity: 1;
  visibility: visible;
}

.study-guided-read-list--explanation > .study-guided-read-row--reveal.is-reflecting {
  min-height: clamp(230px, 29vw, 278px);
}

.study-guided-step-reflection {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 16px 12px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--study-guided-reveal-accent, #3d8ca9) 62%, transparent);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(27, 54, 65, 0.09);
}

body[data-app-theme="dark"] .study-guided-step-reflection {
  background: #0e151b;
}

.study-guided-step-reflection__textarea {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 18px 16px;
  box-sizing: border-box;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--study-guided-reveal-accent, #3d8ca9);
  font: inherit;
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
  line-height: 1.55;
  transition: opacity 180ms ease;
}

.study-guided-step-reflection__textarea::placeholder {
  color: color-mix(in srgb, var(--study-guided-reveal-accent, #3d8ca9) 72%, #76828a 28%);
  opacity: 1;
}

body:not([data-app-theme="dark"]) .study-guided-step-reflection__textarea::placeholder {
  color: #7b858d;
}

.study-guided-step-reflection__actions {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.study-guided-step-reflection__action,
.study-guided-step-reflection-trigger {
  border: 0;
  background: transparent;
  color: var(--study-guided-reveal-accent, #3d8ca9);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.study-guided-step-reflection__action:focus-visible,
.study-guided-step-reflection-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--study-guided-reveal-accent, #3d8ca9) 48%, transparent);
  outline-offset: 4px;
  border-radius: 4px;
}

.study-guided-step-reflection__continue[hidden] {
  display: none;
}

.study-guided-read-row--reveal.is-rereading .study-guided-step-reflection {
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.study-guided-read-row--reveal.is-rereading .study-guided-step-reflection__textarea {
  opacity: 0;
  visibility: hidden;
}

.study-guided-read-row--reveal.is-rereading .study-guided-step-reflection__actions {
  pointer-events: auto;
}

.study-guided-read-row--reveal.is-rereading .study-guided-step-reflection__continue {
  display: none;
}

.study-guided-step-reflection-trigger {
  display: block;
  width: min(100%, 420px);
  margin: 18px auto 26px;
  padding: 13px 22px;
  border: 1px solid color-mix(in srgb, var(--study-guided-reveal-accent, #3d8ca9) 66%, transparent);
  border-radius: 999px;
}

.study-guided-reveal-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 34px 28px 26px;
  overflow: hidden;
  border: 1px solid var(--study-guided-reveal-accent, #3d8ca9);
  border-radius: 8px;
  background: var(--study-guided-reveal-accent, #3d8ca9);
  background: color-mix(
    in srgb,
    var(--study-guided-reveal-accent, #3d8ca9) 78%,
    #294653 22%
  );
  color: #ffffff;
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(27, 54, 65, 0.12);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.study-guided-reveal-card:not(:disabled):hover {
  filter: brightness(1.04);
  box-shadow: 0 7px 18px rgba(27, 54, 65, 0.18);
}

.study-guided-reveal-card:not(:disabled):active {
  transform: scale(0.992);
}

.study-guided-reveal-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: -6px;
}

.study-guided-reveal-card:disabled {
  cursor: default;
}

.study-guided-read-row--reveal.is-locked .study-guided-reveal-card {
  opacity: 0.78;
  filter: saturate(0.84);
}

.study-guided-reveal-card.is-revealing {
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
}

.study-guided-reveal-card__number {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--study-guided-reveal-accent, #3d8ca9);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.study-guided-reveal-card__title {
  display: block;
  width: min(100%, 560px);
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(1.18rem, 3.4vw, 1.68rem);
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 680px) {
  .study-guided-read-list--explanation > .study-guided-read-row--reveal {
    min-height: clamp(142px, 39vw, 178px);
  }

  .study-guided-read-list--explanation > .study-guided-read-row--reveal.is-revealed {
    min-height: 0;
  }

  .study-guided-read-list--explanation > .study-guided-read-row--reveal.is-reflecting {
    min-height: 250px;
  }

  .study-guided-step-reflection {
    padding: 12px;
  }

  .study-guided-reveal-card {
    padding: 32px 20px 24px;
  }

  .study-guided-reveal-card__title {
    font-size: clamp(1.08rem, 5.8vw, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .study-guided-read-list--explanation > .study-guided-read-row--reveal,
  .study-guided-read-row--reveal .study-guided-read-row__text,
  .study-guided-reveal-card {
    transition-duration: 1ms;
  }
}

.study-guided-test-readiness {
  margin: 10px 0 0;
  color: #5b97ad;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
}

.study-guided-followup-group[hidden] {
  display: none;
}

.study-guided-followup-history {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.study-guided-followup-message {
  display: grid;
  gap: 6px;
}

.study-guided-followup-message__label {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: #3d8ca9;
}

.study-guided-followup-message__bubble {
  display: grid;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #111111;
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.56;
  font-weight: 400;
}

.study-guided-followup-message--user .study-guided-followup-message__label {
  color: #9d5fe7;
}

.study-guided-followup-message--user .study-guided-followup-message__bubble {
  padding: 10px 14px;
  border-radius: 12px;
  background: #f2f4f7;
  border-color: rgba(61, 140, 169, 0.14);
  color: #3d8ca9;
}

.study-guided-followup-message--user .study-guided-followup-message__bubble p {
  color: #3d8ca9;
  font-size: 0.84rem;
  line-height: 1.48;
  font-weight: 400;
}

.study-guided-followup-message__bubble p {
  margin: 0;
  color: #111111;
  font-size: 0.84rem;
  line-height: 1.48;
  font-weight: 400;
}

.study-guided-followup-message__bubble strong {
  color: #111111;
  font-weight: 700;
}

.study-guided-followup-message__bubble a {
  color: #2f7ea0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  word-break: break-word;
}

.study-guided-followup-typing {
  color: #111111;
  font-size: 0.84rem;
  line-height: 1.56;
  font-weight: 400;
  white-space: normal;
  word-break: break-word;
}

.study-guided-followup-message__attachment {
  display: block;
  width: 88px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(61, 140, 169, 0.26);
  border-radius: 9px;
  background: transparent;
  cursor: zoom-in;
  appearance: none;
}

.study-guided-followup-message__attachment img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-orientation: from-image;
}

.study-guided-followup-message__attachment:focus-visible {
  outline: 2px solid #3d8ca9;
  outline-offset: 2px;
}

.study-guided-followup-message--preparing .study-guided-followup-message__bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #3d8ca9;
  font-weight: 600;
}

.study-guided-followup-preparing__spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid rgba(61, 140, 169, 0.24);
  border-top-color: #3d8ca9;
  border-radius: 50%;
  animation: study-guided-followup-preparing-spin 720ms linear infinite;
}

.study-guided-followup-preparing__dots {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 24px;
}

.study-guided-followup-preparing__dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: study-guided-followup-preparing-dot 1.1s ease-in-out infinite;
}

.study-guided-followup-preparing__dots span:nth-child(2) {
  animation-delay: 140ms;
}

.study-guided-followup-preparing__dots span:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes study-guided-followup-preparing-spin {
  to { transform: rotate(360deg); }
}

@keyframes study-guided-followup-preparing-dot {
  0%, 60%, 100% { opacity: 0.28; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.study-guided-followup-answer-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.study-guided-followup-answer-list li {
  color: #111111;
  font-size: 0.84rem;
  line-height: 1.48;
  font-weight: 400;
}

.study-guided-followup-answer-list--ordered {
  padding-left: 22px;
}

.study-guided-followup-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 8px 0;
  border: 1px solid rgba(32, 83, 104, 0.2);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.study-guided-followup-table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  color: #111111;
  font-size: 0.84rem;
  line-height: 1.4;
}

.study-guided-followup-table th,
.study-guided-followup-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(32, 83, 104, 0.14);
  text-align: left;
  vertical-align: top;
}

.study-guided-followup-table th {
  background: rgba(52, 146, 173, 0.12);
  font-weight: 700;
}

.study-guided-followup-table tr:last-child td {
  border-bottom: 0;
}

.study-guided-followup-topic-title {
  margin: 2px 0 0;
  color: #111111;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.study-guided-followup-exercise-list {
  width: 100%;
  margin: 2px 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.study-guided-followup-exercise-item {
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 4px 8px;
}

.study-guided-followup-exercise-item__label {
  color: #111111;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.48;
  white-space: nowrap;
}

.study-guided-followup-exercise-item__content {
  min-width: 0;
  color: #111111;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.study-guided-followup-equation {
  max-width: 100%;
  width: fit-content;
  margin: 2px 0;
  padding: 7px 10px;
  overflow-x: auto;
  border-left: 2px solid rgba(61, 140, 169, 0.64);
  border-radius: 0 7px 7px 0;
  background: rgba(61, 140, 169, 0.07);
  color: #111111;
  font-size: clamp(0.9rem, 2.6vw, 1.02rem);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  scrollbar-width: thin;
}

.study-guided-followup-equation .study-guided-inline-equation,
.study-guided-followup-equation .study-guided-math-term,
.study-guided-followup-equation .study-guided-math-frac,
.study-guided-followup-equation .study-guided-math-root {
  font-size: 1em;
}

@media (max-width: 520px) {
  .study-guided-followup-exercise-item {
    gap: 3px 7px;
  }

  .study-guided-followup-equation {
    width: 100%;
    padding: 6px 8px;
    font-size: 0.92rem;
  }
}

body.study-guided-followup-active {
  padding-bottom: 110px;
}

/* Simulado final: avaliação local após o teste de reforço. */
.final-simulation {
  width: min(100%, 680px);
  margin: 42px auto 12px;
  color: #171717;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
}

.final-simulation--closed {
  width: min(100%, 620px);
}

.final-simulation__launch {
  display: grid;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

.final-simulation__launch-logo {
  margin-bottom: 8px;
}

.final-simulation__launch-copy {
  width: calc(100% - 68px);
  max-width: none;
  margin-top: 8px;
  margin-right: 34px;
  margin-bottom: 18px;
  margin-left: 34px;
  padding-inline: 0;
  box-sizing: border-box;
  font-size: 0.84rem;
  line-height: 1.52;
  text-align: left;
}

.final-simulation__benefits {
  width: calc(100% - 68px);
  max-width: none;
  margin: 2px 34px 24px;
  color: #3a879e;
  box-sizing: border-box;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

.final-simulation__benefits h4 {
  margin: 0 0 12px;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

.final-simulation__benefit-stages,
.final-simulation__benefit-stages ul {
  margin: 0;
  color: inherit;
}

.final-simulation__benefit-stages {
  display: grid;
  gap: 10px;
  padding-left: 1.2rem;
}

.final-simulation__benefit-stages h5 {
  margin: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
}

.final-simulation__benefit-stages ul {
  display: grid;
  gap: 3px;
  padding: 4px 0 0 1.35rem;
  color: #62abc4;
}

.final-simulation__benefit-stages li::marker {
  color: currentColor;
}

.final-simulation__launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(calc(100% - 24px), 330px);
  min-height: 48px;
  padding: 8px 18px;
  border: 1px solid var(--final-simulation-accent, #3a879e);
  border-radius: 999px;
  background: transparent;
  color: var(--final-simulation-accent, #3a879e);
  font: inherit;
  font-size: clamp(0.95rem, 4vw, 1.65rem);
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.final-simulation__launch-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--final-simulation-accent, #3a879e) 7%, transparent);
}

.final-simulation__launch-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--final-simulation-accent, #3a879e) 28%, transparent);
}

.final-simulation__launch-button:active {
  transform: scale(0.985);
}

.final-simulation__launch-button:disabled {
  opacity: 0.58;
  cursor: default;
  transform: none;
}

.final-simulation__launch-spinner {
  display: none;
  width: 28px;
  height: 28px;
  border: 3px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  flex: 0 0 28px;
}

.final-simulation__launch-button[aria-busy="true"] .final-simulation__launch-spinner {
  display: inline-block;
  animation: final-simulation-loading-spin 1.15s linear infinite;
}

[aria-busy="true"] .final-simulation__launch-spinner {
  display: inline-block;
  animation: final-simulation-loading-spin 1.15s linear infinite;
}

@keyframes final-simulation-loading-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .final-simulation__launch-button[aria-busy="true"] .final-simulation__launch-spinner {
    animation: none;
  }
}

.final-simulation__active-content {
  scroll-margin-top: 24px;
}

.final-simulation--active {
  margin-top: 30px;
}

.final-simulation__subject-banner {
  display: grid;
  min-height: 126px;
  margin: 0 0 -16px;
  padding: 22px 22px 30px;
  place-items: start center;
  border: 1px solid color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 24%, transparent);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  background: color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 16%, transparent);
  color: rgba(255, 255, 255, 0.84);
}

.final-simulation__subject-banner span {
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}

.final-simulation__logo-viewport {
  position: relative;
  width: 260px;
  height: 66px;
  margin: 0 auto -1px;
  overflow: hidden;
}

.final-simulation__logo-viewport.final-simulation__launch-logo {
  margin-bottom: 40px;
}

.final-simulation__logo {
  position: absolute;
  top: -79px;
  left: 50%;
  width: 330px;
  height: 330px;
  max-width: none;
  transform: translateX(-50%);
}

.final-simulation__intro {
  width: min(100% - 32px, 500px);
  margin: 8px auto 22px;
  color: #3a879e;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.final-simulation__frame {
  position: relative;
  display: grid;
  gap: 34px;
  min-height: 0;
  padding: 56px clamp(20px, 7vw, 58px) 52px;
  border: 0;
  border-inline: 1px solid color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 38%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 38%, transparent);
  border-radius: 0 0 30px 30px;
  background: transparent;
}

.final-simulation__timer {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--final-simulation-accent, #3d8ca9);
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.final-simulation__timer.is-warning {
  color: var(--final-simulation-accent, #3d8ca9);
}

.final-simulation__topic {
  margin: 0;
  color: var(--final-simulation-accent, #3d8ca9);
  font-size: clamp(0.78rem, 1.25vw, 0.9rem);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.final-simulation__response-step {
  width: min(100%, 390px);
  margin-inline: auto;
}

.final-simulation__field-shell {
  position: relative;
}

.final-simulation__response-step--audio .final-simulation__field-shell {
  margin-bottom: 48px;
}

.final-simulation__response-step--writing .final-simulation__field-shell {
  margin-bottom: 35px;
}

.final-simulation__field-shell > p,
.final-simulation__response-step textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  margin: 0;
  padding: 24px 28px;
  border: 1px solid color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 44%, transparent);
  border-radius: 18px;
  background: transparent;
  color: #171717;
  box-shadow: 0 3px 10px rgba(61, 140, 169, 0.05);
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.48;
  text-align: left;
}

.final-simulation__field-shell > p {
  display: grid;
  place-items: center;
  color: #3a879e;
  font-size: 0.94rem;
  font-weight: 400;
  text-align: center;
}

.final-simulation__audio-copy {
  display: inline;
}

.final-simulation__audio-hint {
  color: inherit;
  font: inherit;
}

.final-simulation__audio-hint.is-complete {
  color: #75b59e;
}

.final-simulation__audio-transcript {
  display: block;
  width: 100%;
  margin-top: 12px;
  color: #171717;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
}

.final-simulation__audio-transcript > span {
  color: #75b59e;
}

.final-simulation__response-step textarea {
  resize: vertical;
  outline: none;
}

.final-simulation__response-step textarea::placeholder {
  color: #3a879e;
  font-size: 0.94rem;
  font-weight: 400;
  opacity: 1;
  text-align: center;
}

.final-simulation__response-step textarea:placeholder-shown {
  padding-block: 56px;
}

.final-simulation__response-step textarea:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 20%, transparent);
}

.final-simulation__response-step textarea.final-simulation__writing-answer,
.final-simulation__dissertative-answer {
  color: #6b8ea1;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
}

.final-simulation__response-step.is-locked {
  opacity: 0.58;
}

.final-simulation__voice-button,
.final-simulation__keyboard-icon {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--final-simulation-accent, #3d8ca9);
}

.final-simulation__voice-button {
  bottom: -46px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.final-simulation__voice-button img {
  display: none;
}

.final-simulation__voice-button::before {
  width: 28px;
  height: 31px;
  background: var(--final-simulation-accent, #3d8ca9);
  content: "";
  opacity: 0.68;
  -webkit-mask: url("assets/followup-microphone.svg") center / contain no-repeat;
  mask: url("assets/followup-microphone.svg") center / contain no-repeat;
}

.final-simulation__voice-button.is-listening {
  border-radius: 50%;
  background: color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 16%, transparent);
  animation: final-simulation-pulse 1s ease-in-out infinite;
}

.final-simulation__voice-button.is-listening::before {
  opacity: 0.9;
}

.final-simulation__keyboard-icon {
  bottom: -30px;
  width: 52px;
  height: 25px;
  background: var(--final-simulation-accent, #3d8ca9);
  -webkit-mask: url("assets/final-simulation-keyboard.svg") center / contain no-repeat;
  mask: url("assets/final-simulation-keyboard.svg") center / contain no-repeat;
}

.final-simulation__step-status {
  display: block;
  min-height: 18px;
  margin-top: 0;
  color: #747474;
  font-size: 0.72rem;
  text-align: left;
}

.final-simulation__step-status.is-complete {
  color: #75b59e;
}

.final-simulation__question-warning {
  margin: 10px 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 45%, transparent);
  border-radius: 16px;
  color: var(--final-simulation-accent, #3d8ca9);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.final-simulation__question-step {
  display: grid;
  gap: 13px;
  width: min(100%, 480px);
  margin: 14px auto 0;
}

.final-simulation__question-step.is-locked {
  opacity: 0.55;
}

.final-simulation__grade,
.final-simulation__instruction,
.final-simulation__progress {
  margin: 0;
  color: var(--final-simulation-accent, #3d8ca9);
}

.final-simulation__grade {
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
}

.final-simulation__instruction {
  font-size: 0.76rem;
  text-align: center;
}

.final-simulation__question-step h4 {
  margin: 4px auto;
  color: var(--final-simulation-accent, #3d8ca9);
  font-size: 1rem;
  line-height: 1.42;
  text-align: center;
}

.final-simulation__progress {
  font-size: 0.74rem;
  text-align: right;
}

.final-simulation__answers {
  display: grid;
  gap: 8px;
}

.final-simulation__answer {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px solid #dfe9f2;
  border-radius: 6px;
  background: #ffffff;
  color: #6b8ea1;
  box-shadow: 0 3px 10px rgba(61, 140, 169, 0.05);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.42;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.final-simulation__answer > span:first-child {
  width: 18px;
  color: var(--final-simulation-accent, #3d8ca9);
  font-size: 0.92rem;
  font-weight: 600;
}

.final-simulation__answer:hover:not(:disabled),
.final-simulation__answer:focus-visible,
.final-simulation__answer.is-selected {
  border-color: #c7dbe8;
  background: #f8fbff;
  outline: none;
}

.final-simulation__answer > span:last-child {
  display: block;
  min-width: 0;
  color: inherit;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.final-simulation__answer:disabled {
  cursor: default;
}

.final-simulation__dissertative-answer {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 1px solid #dfe9f2;
  border-radius: 6px;
  background: #ffffff;
  color: #6b8ea1;
  box-shadow: 0 3px 10px rgba(61, 140, 169, 0.05);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.48;
  resize: vertical;
}

.final-simulation__dissertative-answer::placeholder {
  color: #9ab1bf;
  opacity: 1;
}

.final-simulation__dissertative-answer:focus,
.final-simulation__dissertative-answer:focus-visible {
  border-color: color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 55%, #dfe9f2);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 14%, transparent);
}

.final-simulation__dissertative-answer:disabled {
  cursor: default;
}

.final-simulation__submit {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-self: center;
  margin-top: 16px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--final-simulation-accent, #3d8ca9);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

.final-simulation__submit > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--final-simulation-accent, #3d8ca9);
  color: #ffffff;
}

.final-simulation__submit:disabled {
  opacity: 0.45;
  cursor: default;
}

.final-simulation--result {
  padding-bottom: 20px;
}

.study-guided-history-detail__simulation {
  width: 100%;
  margin: 0;
  padding-bottom: 0;
}

.final-simulation--result .final-simulation__logo-viewport {
  margin-bottom: 18px;
}

.final-simulation__result-heading {
  display: grid;
  justify-items: center;
  padding: 30px 20px 22px;
  border: 1px solid var(--final-simulation-accent, #3d8ca9);
  border-radius: 28px 28px 0 0;
  background: color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 8%, #ffffff);
  color: var(--final-simulation-accent, #3d8ca9);
}

.final-simulation__result-heading span {
  font-size: 1rem;
}

.final-simulation__result-heading strong {
  font-size: clamp(3rem, 10vw, 5.2rem);
  font-weight: 500;
  line-height: 1;
}

.final-simulation__result-heading p {
  margin: 8px 0 0;
  font-size: 1.1rem;
}

.final-simulation__score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: solid var(--final-simulation-accent, #3d8ca9);
  border-width: 0 1px 1px;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}

.final-simulation__score-grid article {
  display: grid;
  gap: 4px;
  min-height: 120px;
  align-content: center;
  justify-items: center;
  padding: 18px;
  border: solid color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 28%, transparent);
  border-width: 0 0.5px 0.5px 0;
  text-align: center;
}

.final-simulation__score-grid article:nth-child(2n) {
  border-right: 0;
}

.final-simulation__score-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.final-simulation__score-grid span,
.final-simulation__score-grid small {
  color: #656565;
}

.final-simulation__score-grid strong {
  color: var(--final-simulation-accent, #3d8ca9);
  font-size: 1.35rem;
  font-weight: 500;
}

.final-simulation__report {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.final-simulation__report section {
  padding: 22px 24px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 7%, #ffffff);
}

.final-simulation__report h5 {
  margin: 0 0 12px;
  color: var(--final-simulation-accent, #3d8ca9);
  font-size: 1rem;
  font-weight: 500;
}

.final-simulation__report ul,
.final-simulation__report p {
  margin: 0;
  color: #171717;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
}

.final-simulation__report ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.final-simulation__report li {
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-weight: 400;
}

.final-simulation__question-report li {
  display: grid;
  gap: 4px;
}

.final-simulation__question-report li > strong {
  color: var(--final-simulation-accent, #3d8ca9);
  font-weight: 500;
}

.final-simulation__question-explanation {
  margin-top: 3px;
}

.final-simulation__question-explanation b {
  color: var(--final-simulation-accent, #3d8ca9);
  font-weight: 500;
}

.final-simulation__student-answer {
  margin-top: 3px;
}

.final-simulation__student-answer b {
  color: var(--final-simulation-accent, #3d8ca9);
  font-weight: 500;
}

.final-simulation__report .final-simulation__error-summary {
  margin-bottom: 12px;
}

.final-simulation__result-actions {
  display: grid;
  gap: 12px;
  width: min(calc(100% - 32px), 460px);
  margin: 30px auto 8px;
}

.final-simulation__result-action {
  width: 100%;
  min-height: 54px;
  padding: 10px 18px;
  border: 1.5px solid var(--final-simulation-accent, #3d8ca9);
  border-radius: 999px;
  background: transparent;
  color: var(--final-simulation-accent, #3d8ca9);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.final-simulation__result-action:hover:not(.is-disabled),
.final-simulation__result-action:focus-visible:not(.is-disabled) {
  background: color-mix(in srgb, var(--final-simulation-accent, #3d8ca9) 10%, transparent);
  outline: none;
}

.final-simulation__result-action.is-disabled {
  border-color: #aeb8bf;
  color: #8e999f;
  cursor: default;
  opacity: 0.68;
}

.final-simulation__result-action[aria-busy="true"]:disabled {
  cursor: wait;
  opacity: 1;
}

body[data-app-theme="dark"] .final-simulation {
  color: var(--dark-text, #f5f7f8);
}

body[data-app-theme="dark"] .final-simulation__result-heading,
body[data-app-theme="dark"] .final-simulation__report section {
  background: color-mix(in srgb, var(--dark-surface, #111b23) 94%, var(--final-simulation-accent, #3d8ca9) 6%);
}

body[data-app-theme="dark"] .final-simulation__frame {
  border-color: color-mix(in srgb, var(--dark-line-strong, #49606f) 72%, transparent);
  background: transparent;
}

body[data-app-theme="dark"] .final-simulation__field-shell > p,
body[data-app-theme="dark"] .final-simulation__response-step textarea,
body[data-app-theme="dark"] .final-simulation__report ul,
body[data-app-theme="dark"] .final-simulation__report p {
  color: var(--dark-text, #f5f7f8);
}

body[data-app-theme="dark"] .final-simulation__audio-transcript {
  color: var(--dark-text, #f5f7f8);
}

body[data-app-theme="dark"] .final-simulation__answer {
  border-color: var(--dark-line-strong, #49606f);
  background: var(--dark-surface-raised, #1b2a35);
  color: var(--dark-text, #f5f7f8);
  box-shadow: none;
}

body[data-app-theme="dark"] .final-simulation__dissertative-answer {
  border-color: var(--dark-line-strong, #49606f);
  background: var(--dark-surface-raised, #1b2a35);
  color: var(--dark-text, #f5f7f8);
  box-shadow: none;
}

body[data-app-theme="dark"] .final-simulation__dissertative-answer::placeholder {
  color: var(--dark-text-muted, #aebbc4);
}

body[data-app-theme="dark"] .final-simulation__answer:hover:not(:disabled),
body[data-app-theme="dark"] .final-simulation__answer:focus-visible,
body[data-app-theme="dark"] .final-simulation__answer.is-selected {
  border-color: var(--dark-brand-strong, #4da2bf);
  background: rgba(77, 162, 191, 0.15);
}

body[data-app-theme="dark"] .final-simulation__field-shell > p,
body[data-app-theme="dark"] .final-simulation__step-status,
body[data-app-theme="dark"] .final-simulation__score-grid span,
body[data-app-theme="dark"] .final-simulation__score-grid small {
  color: var(--dark-text-muted, #aebbc4);
}

@keyframes final-simulation-pulse {
  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 640px) {
  .final-simulation {
    margin-top: 32px;
  }

  /* Use the same mobile page gutters as the active tests. This keeps the
     simulation frame, its border and every answer from becoming a narrow
     column inside Android WebViews. */
  .final-simulation--active,
  .final-simulation--result {
    width: calc(100% + 24px);
    max-width: none;
    margin-right: -12px;
    margin-left: -12px;
  }

  .final-simulation--closed {
    width: calc(100% + 20px);
    max-width: none;
    margin-inline: -10px;
  }

  .final-simulation__launch-copy {
    width: calc(100% - 88px);
    margin-right: 44px;
    margin-left: 44px;
  }

  .final-simulation__benefits {
    width: calc(100% - 88px);
    margin-right: 44px;
    margin-left: 44px;
  }

  .final-simulation__frame {
    gap: 30px;
    min-height: 0;
    padding: 52px 14px 34px;
    border-radius: 0 0 24px 24px;
  }

  .final-simulation__subject-banner {
    min-height: 104px;
    margin-bottom: -12px;
    padding: 18px 16px 26px;
    border-radius: 24px 24px 0 0;
  }

  .final-simulation__subject-banner span {
    font-size: clamp(2.5rem, 10.5vw, 3.6rem);
  }

  .final-simulation__timer {
    top: 16px;
    right: 17px;
    font-size: 0.9rem;
  }

  .final-simulation__topic {
    max-width: calc(100% - 34px);
    margin-inline: auto;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .final-simulation__response-step {
    width: min(100%, 390px);
  }

  .final-simulation__field-shell > p,
  .final-simulation__response-step textarea {
    min-height: 148px;
    padding: 20px;
    border-radius: 15px;
    font-size: 0.84rem;
  }

  .final-simulation__question-step {
    padding-inline: 0;
  }

  .final-simulation__answer {
    min-height: 62px;
    font-size: 0.82rem;
  }

  .final-simulation__score-grid {
    grid-template-columns: 1fr;
  }

  .final-simulation__score-grid article,
  .final-simulation__score-grid article:nth-child(2n),
  .final-simulation__score-grid article:nth-last-child(-n + 2) {
    min-height: 100px;
    border-width: 0 0 0.5px;
  }

  .final-simulation__score-grid article:last-child {
    border-bottom: 0;
  }
}

.study-guided-followup-group .study-guided-explanation-section-title {
  color: var(--study-guided-followup-accent, #3d8ca9);
}

.study-guided-followup-composer[hidden] {
  display: none;
}

body.login-visual-light .study-guided-followup-composer,
body.login-visual-light .study-guided-followup-group {
  display: none !important;
}

.study-guided-followup-composer {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(calc(100% - 30px), 526px);
  z-index: 95;
}

.study-guided-followup-composer__row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}

.study-guided-followup-attachment-control {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.study-guided-followup-attachment-trigger {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(61, 140, 169, 0.56);
  border-radius: 999px;
  background: #ffffff;
  color: #3d8ca9;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: 0;
  font-weight: 300;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(16, 64, 88, 0.13);
  transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.study-guided-followup-attachment-trigger::before,
.study-guided-followup-attachment-trigger::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.study-guided-followup-attachment-trigger::before {
  width: 12px;
  height: 1.5px;
}

.study-guided-followup-attachment-trigger::after {
  width: 1.5px;
  height: 12px;
}

.study-guided-followup-attachment-trigger:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(61, 140, 169, 0.8);
}

.study-guided-followup-attachment-trigger:focus-visible,
.study-guided-followup-attachment-menu button:focus-visible {
  outline: 3px solid rgba(61, 140, 169, 0.2);
  outline-offset: 2px;
}

.study-guided-followup-attachment-trigger:disabled,
.study-guided-followup-attachment-menu button:disabled {
  opacity: 0.52;
  cursor: default;
}

.study-guided-followup-attachment-menu[hidden] {
  display: none;
}

.study-guided-followup-attachment-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  box-sizing: border-box;
  width: var(--study-guided-attachment-menu-size);
  padding: 10px;
  border: 1px solid rgba(61, 140, 169, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(16, 64, 88, 0.18);
  z-index: 140;
}

.study-guided-followup-attachment-menu::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(61, 140, 169, 0.22);
  border-bottom: 1px solid rgba(61, 140, 169, 0.22);
  background: inherit;
}

.study-guided-followup-attachment-menu button {
  position: relative;
  z-index: 1;
  width: var(--study-guided-attachment-action-size);
  min-width: var(--study-guided-attachment-action-size);
  height: var(--study-guided-attachment-action-size);
  min-height: var(--study-guided-attachment-action-size);
  padding: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(61, 140, 169, 0.1);
  color: #3d8ca9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.study-guided-followup-attachment-menu svg,
.study-guided-followup-composer__file-chip svg {
  width: var(--study-guided-attachment-icon-size);
  height: var(--study-guided-attachment-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-guided-followup-composer__image-preview {
  min-height: 28px;
  margin: 0 0 6px 44px;
  display: flex;
  align-items: center;
}

.study-guided-followup-composer__image-preview[hidden] {
  display: none;
}

.study-guided-followup-composer__image-preview .study-guided-upload-slot {
  width: 32px;
  height: 28px;
}

.study-guided-followup-composer__image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 7px;
  background: #e5e5e5;
  box-shadow: 0 0 0 1px rgba(61, 140, 169, 0.08);
}

.study-guided-followup-composer__tools {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  padding-left: 18px;
  margin-bottom: 7px;
  box-sizing: border-box;
}

.study-guided-followup-tool {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 28px;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.1;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(16, 64, 88, 0.12);
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.study-guided-followup-tool--summary {
  width: 84px;
  background: #75b59e;
}

.study-guided-followup-tool--content {
  width: 112px;
  background: #7397b8;
}

.study-guided-followup-tool svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-guided-followup-tool:hover:not(:disabled) {
  transform: translateY(-1px);
}

.study-guided-followup-tool:focus-visible {
  outline: 3px solid rgba(61, 140, 169, 0.22);
  outline-offset: 2px;
}

.study-guided-followup-tool:disabled,
.study-guided-followup-tool.is-used {
  background: #a9b0b5;
  color: rgba(255, 255, 255, 0.88);
  cursor: default;
  box-shadow: none;
}

.study-guided-followup-composer__inner {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  flex: 1 1 auto;
  min-width: 0;
}

.study-guided-followup-composer__file-chip[hidden] {
  display: none;
}

.study-guided-followup-composer__file-chip {
  position: absolute;
  left: 12px;
  right: 50px;
  top: 8px;
  z-index: 3;
  width: fit-content;
  max-width: calc(100% - 62px);
  min-height: 25px;
  padding: 3px 6px;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 8px;
  background: rgba(61, 140, 169, 0.08);
  color: #3d8ca9;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  line-height: 1.1;
  box-sizing: border-box;
}

.study-guided-followup-composer__file-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.study-guided-followup-composer__file-chip button {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  font-size: 0.88rem;
  line-height: 1;
  cursor: pointer;
}

.study-guided-followup-composer__hint {
  position: absolute;
  left: 14px;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  pointer-events: none;
  z-index: 1;
  transition: opacity 160ms ease;
}

.study-guided-followup-composer__hint-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(29, 107, 136, 0.62);
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
}

.study-guided-followup-composer__inner.has-text .study-guided-followup-composer__hint {
  opacity: 0;
}

.study-guided-followup-composer__inner.has-file .study-guided-followup-composer__hint {
  top: auto;
  bottom: 13px;
  transform: none;
}

.study-guided-followup-composer__input {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  padding: 12px 54px 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(61, 140, 169, 0.42);
  background: #ffffff;
  color: #1d6b88;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  box-sizing: border-box;
  box-shadow: 0 10px 24px rgba(16, 64, 88, 0.16);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.study-guided-followup-composer__input::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.study-guided-followup-composer__input::placeholder {
  color: transparent;
}

.study-guided-followup-composer__input:focus {
  outline: none;
  border-color: rgba(61, 140, 169, 0.48);
  box-shadow: 0 0 0 3px rgba(61, 140, 169, 0.12);
}

.study-guided-followup-composer__input:disabled {
  opacity: 0.72;
}

.study-guided-followup-composer__send {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.study-guided-followup-composer__send:hover {
  transform: translateY(calc(-50% - 1px));
}

.study-guided-followup-composer__send-logo {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.study-guided-followup-composer__send:disabled {
  opacity: 0.72;
  cursor: default;
}

.study-guided-followup-composer.is-generating .study-guided-followup-composer__inner {
  opacity: 0.96;
}

.study-guided-followup-composer__inner.has-file .study-guided-followup-composer__input {
  min-height: 76px;
  padding-top: 40px;
}

@media (max-width: 420px) {
  body.study-guided-followup-active {
    padding-bottom: 108px;
  }

  .study-guided-followup-composer {
    width: min(calc(100% - 22px), 526px);
  }

  .study-guided-followup-composer__row {
    gap: 6px;
  }

  .study-guided-followup-composer__image-preview {
    margin-left: 42px;
  }

  .study-guided-followup-tool {
    font-size: 0.66rem;
  }

  .study-guided-followup-composer__tools {
    padding-left: 12px;
  }

  /* Keep the expanded attachment rail inside the mobile viewport. */
  .study-guided-followup-attachment-menu {
    left: calc(50% + 18px);
  }
}

.study-guided-reflection-group {
  gap: 12px;
  justify-items: center;
}

.study-guided-reflection-progress-wrap {
  width: 100%;
  max-width: 520px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.study-guided-reflection-status {
  margin: 0;
  color: rgba(61, 140, 169, 0.92);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.study-guided-reflection-status--warning {
  color: #c36d4d;
}

.study-guided-reflection-progress-track {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(61, 140, 169, 0.22);
  background: #ffffff;
  box-sizing: border-box;
}

.study-guided-reflection-progress-segment {
  height: 18px;
  border-radius: 3px;
  opacity: 0.28;
  transition: opacity 160ms ease, transform 160ms ease;
}

.study-guided-reflection-progress-segment:nth-child(1) { background: #ff2d2d; }
.study-guided-reflection-progress-segment:nth-child(2) { background: #ff5226; }
.study-guided-reflection-progress-segment:nth-child(3) { background: #ff7521; }
.study-guided-reflection-progress-segment:nth-child(4) { background: #ff9920; }
.study-guided-reflection-progress-segment:nth-child(5) { background: #ffc620; }
.study-guided-reflection-progress-segment:nth-child(6) { background: #f1e61f; }
.study-guided-reflection-progress-segment:nth-child(7) { background: #c7e91d; }
.study-guided-reflection-progress-segment:nth-child(8) { background: #7bcf2f; }

.study-guided-reflection-progress-segment.is-active {
  opacity: 1;
}

.study-guided-reflection-progress-message {
  margin: 0;
  color: rgba(61, 140, 169, 0.82);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
}

.study-guided-reflection-evaluate-button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #55a53f;
  min-width: 0;
  padding: 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: opacity 140ms ease, color 140ms ease;
}

.study-guided-reflection-evaluate-button:hover {
  opacity: 0.9;
}

.study-guided-reflection-evaluate-button:disabled {
  opacity: 0.72;
  cursor: default;
}

.study-guided-reflection-feedback {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(61, 140, 169, 0.12);
  background: rgba(248, 251, 255, 0.96);
  box-sizing: border-box;
}

.study-guided-reflection-feedback-block {
  display: grid;
  gap: 6px;
}

.study-guided-reflection-feedback-title {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
}

.study-guided-reflection-feedback-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.study-guided-reflection-feedback-summary {
  margin: 0;
  color: rgba(17, 17, 17, 0.82);
  font-size: 0.8rem;
  line-height: 1.45;
}

.study-guided-test-group {
  display: grid;
  width: 100%;
  gap: 14px;
}

.study-guided-test-intro {
  display: grid;
  width: 100%;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.study-guided-test-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
  text-align: center;
}

.study-guided-test-intro__animation {
  --test-heading-accent: #3d8ca9;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  aspect-ratio: 5 / 2;
  margin: 6px auto 32px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--test-heading-accent);
}

.study-guided-test-intro__scene {
  display: grid;
  grid-template-columns: clamp(118px, 24vw, 180px) max-content;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 14px);
  width: fit-content;
  max-width: 540px;
  height: 100%;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 18px);
  opacity: 0;
  transform: translateY(10px);
}

.study-guided-test-intro__icon {
  display: block;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1965 / 1986;
  align-self: center;
  justify-self: end;
  background-color: transparent;
  background-image: url("assets/study-guided-test-heading-icon-v2.svg?v=20260728-1");
  background-position: center 40%;
  background-size: 181.5%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translate(-8px, 8px) rotate(-4deg) scale(0.94);
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}

.study-guided-test-intro__message {
  display: grid;
  justify-self: start;
  margin: 0;
  color: var(--test-heading-accent);
  font-size: clamp(1rem, 3.6vw, 1.48rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.018em;
  text-align: left;
}

.study-guided-test-intro__message > span {
  display: block;
  opacity: 0;
  transform: translateY(8px);
}

.study-guided-test-intro__message strong {
  font-weight: 800;
}

.study-guided-test-intro__animation.is-playing .study-guided-test-intro__scene {
  animation: studyTestSceneEnter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.study-guided-test-intro__animation.is-playing .study-guided-test-intro__icon {
  animation: studyTestIconEnter 1050ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
}

.study-guided-test-intro__animation.is-playing .study-guided-test-intro__message > span {
  animation: studyTestTextReveal 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.study-guided-test-intro__animation.is-playing .study-guided-test-intro__message > span:nth-child(1) {
  animation-delay: 760ms;
}

.study-guided-test-intro__animation.is-playing .study-guided-test-intro__message > span:nth-child(2) {
  animation-delay: 930ms;
}

.study-guided-test-intro__animation.is-playing .study-guided-test-intro__message > span:nth-child(3) {
  animation-delay: 1100ms;
}

.study-guided-test-intro__animation.is-playing .study-guided-test-intro__message > span:nth-child(4) {
  animation-delay: 1270ms;
}

.study-guided-test-intro__animation.is-playing .study-guided-test-intro__message > span:nth-child(5) {
  animation-delay: 1440ms;
}

.study-guided-test-intro__animation.is-complete .study-guided-test-intro__scene,
.study-guided-test-intro__animation.is-complete .study-guided-test-intro__icon,
.study-guided-test-intro__animation.is-complete .study-guided-test-intro__message > span {
  opacity: 1;
  transform: none;
}

@keyframes studyTestSceneEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes studyTestIconEnter {
  from {
    opacity: 0;
    transform: translate(-8px, 8px) rotate(-4deg) scale(0.94);
  }
  58% {
    opacity: 1;
    transform: translate(2px, -2px) rotate(1deg) scale(1.015);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes studyTestTextReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.study-guided-test-intro__text {
  margin: 0;
  max-width: none;
  color: #3d8ca9 !important;
  font-size: 0.77rem;
  font-weight: 400 !important;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.study-guided-test-config {
  display: grid;
  gap: 12px;
}

.study-guided-test-count-shell,
.study-guided-test-count-trigger {
  width: 100%;
}

.study-guided-test-count-shell {
  margin-top: 16px;
}

@media (max-width: 520px) {
  .study-guided-test-intro__animation {
    width: 100%;
    margin-bottom: 32px;
  }

  .study-guided-test-intro__scene {
    grid-template-columns: clamp(86px, 25vw, 128px) max-content;
    width: fit-content;
    max-width: 100%;
    gap: 5px;
    padding-inline: 2px;
  }

  .study-guided-test-intro__message {
    font-size: clamp(0.82rem, 4vw, 1.02rem);
  }

  .study-guided-test-intro__message > span {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .study-guided-test-intro__animation .study-guided-test-intro__scene,
  .study-guided-test-intro__animation .study-guided-test-intro__icon,
  .study-guided-test-intro__animation .study-guided-test-intro__message > span {
    animation: none !important;
  }
}

.study-guided-test-choice-row {
  display: flex;
  justify-content: flex-end;
  align-items: start;
}

.study-guided-test-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.study-guided-test-actions > .study-guided-test-generate-button {
  min-width: 0;
  width: auto;
  min-height: 36px !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ff9f1f !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  flex: 0 0 auto;
  white-space: nowrap;
}

.study-guided-test-actions > .study-guided-test-generate-button .import-button__label {
  display: block;
  white-space: nowrap;
}

.study-guided-test-actions > .study-guided-test-generate-button::after {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='%23ff9f1f'%3E%3Ccircle cx='14' cy='4' r='2.2'/%3E%3Ccircle cx='14' cy='14' r='2.2'/%3E%3Ccircle cx='14' cy='24' r='2.2'/%3E%3Ccircle cx='4' cy='14' r='2.2'/%3E%3Ccircle cx='24' cy='14' r='2.2'/%3E%3Ccircle cx='7.2' cy='7.2' r='2.2'/%3E%3Ccircle cx='20.8' cy='7.2' r='2.2'/%3E%3Ccircle cx='7.2' cy='20.8' r='2.2'/%3E%3Ccircle cx='20.8' cy='20.8' r='2.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.study-guided-test-actions > .study-guided-test-generate-button.is-updating::after {
  display: none;
}

.study-guided-test-actions > .study-guided-test-generate-button.is-updating::before {
  border: 2px solid rgba(255, 159, 31, 0.22);
  border-top-color: #ff9f1f;
}

.study-guided-test-config.is-round-locked .study-guided-test-count-trigger,
.study-guided-test-actions > .study-guided-test-generate-button.is-round-locked {
  color: #a5a5a5 !important;
  cursor: not-allowed !important;
  opacity: 0.66;
}

.study-guided-test-config.is-round-locked .study-guided-test-count-shell::after,
.study-guided-test-actions > .study-guided-test-generate-button.is-round-locked::after {
  filter: grayscale(1);
  opacity: 0.62;
}

.study-guided-test-actions > .study-guided-test-generate-button.is-round-locked::after {
  display: none;
}

body[data-app-theme="dark"] .study-guided-test-config.is-round-locked .study-guided-test-count-trigger,
body[data-app-theme="dark"] .study-guided-test-actions > .study-guided-test-generate-button.is-round-locked {
  color: #66757e !important;
  border-color: #52616a !important;
}

.study-guided-test-preview-shell {
  grid-column: auto;
  justify-self: end;
  order: 2;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.study-guided-test-preview-panel {
  margin-top: 0;
}

.study-guided-explanation-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.study-guided-pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.study-guided-pdf-button:hover {
  opacity: 0.86;
}

.study-guided-pdf-button__icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.study-guided-export-group {
  margin-top: 8px;
}

.study-guided-export-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.study-guided-export-label {
  color: #ff9f1f;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.1;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.study-guided-export-label:hover,
.study-guided-export-label:focus-visible {
  opacity: 0.84;
  outline: none;
}

#studyGuidedPdfPrintRoot {
  display: none;
}

@media print {
  body.study-guided-pdf-printing > * {
    display: none !important;
  }

  body.study-guided-pdf-printing #studyGuidedPdfPrintRoot {
    display: block !important;
  }

  body.study-guided-pdf-printing #studyGuidedPdfPrintRoot .pdf-shell {
    max-width: none;
    margin: 0;
  }
}

.study-guided-explanation-section--warning {
  background: rgba(255, 245, 245, 0.96);
  border-color: rgba(229, 91, 91, 0.16);
}

.study-guided-explanation-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.study-guided-explanation-section-head--actions-only {
  justify-content: flex-end;
}

.study-guided-explanation-section-title {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.study-guided-explanation-subject {
  font-weight: 700;
}

.study-guided-explanation-generated-at {
  margin-left: 0.24rem;
  color: rgba(107, 114, 128, 0.9);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}


.study-guided-explanation-subject[data-subject-name="Português"] {
  color: #3d8ca9;
}

.study-guided-explanation-subject[data-subject-name="História"] {
  color: #dc6969;
}

.study-guided-explanation-subject[data-subject-name="Geografia"] {
  color: #7adf57;
}

.study-guided-explanation-subject[data-subject-name="Biologia"],
.study-guided-explanation-subject[data-subject-name="Ciências"] {
  color: #b35cf7;
}

.study-guided-explanation-subject[data-subject-name="Química"] {
  color: #75b59e;
}

.study-guided-explanation-subject[data-subject-name="Física"] {
  color: #2f8df1;
}

.study-guided-explanation-subject[data-subject-name="Matemática"] {
  color: #e86add;
}

.study-guided-explanation-subject[data-subject-name="Inglês"] {
  color: #d47f8f;
}

.study-guided-explanation-subject[data-subject-name="Arte"],
.study-guided-explanation-subject[data-subject-name="Artes"],
.study-guided-explanation-subject[data-subject-name="História da Arte"] {
  color: #e13a32;
}

.study-guided-reflection-label {
  margin: 0;
  color: #3d8ca9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.18;
  display: block;
  text-align: center;
  width: min(100%, 520px);
}

.study-guided-reflection-textarea {
  width: 100%;
  max-width: 520px;
  min-height: 148px;
  box-sizing: border-box;
  resize: vertical;
  margin: 0;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(207, 226, 239, 0.96);
  background-color: #ffffff;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    url("assets/dashboard-selector-classroom-photo.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: calc(100% + 24px) auto;
  background-origin: padding-box;
  background-clip: padding-box;
  color: #3d8ca9;
  font: inherit;
  line-height: 1.45;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-image 140ms ease;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
}

.study-guided-reflection-textarea.has-content {
  background-image: none;
}

.study-guided-reflection-textarea:focus {
  border-color: rgba(61, 140, 169, 0.34);
  box-shadow: 0 0 0 3px rgba(61, 140, 169, 0.08);
}

.study-guided-reflection-textarea::placeholder {
  color: rgba(61, 140, 169, 0.52);
}

.study-guided-explanation-steps {
  display: grid;
  gap: 8px;
}

.study-guided-explanation-steps li {
  padding-left: 2px;
}

.study-guided-explanation-steps li::marker {
  color: #3d8ca9;
}

.question-bank-preview-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(16, 73, 98, 0.16);
  border: 1px solid rgba(61, 140, 169, 0.14);
}

.import-panel {
  width: 100%;
}

.question-bank-preview-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  background: #ececec;
  color: #3d8ca9;
  font-size: 14px;
  font-weight: 700;
}

.question-bank-preview-title__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.question-bank-preview-title__icon svg {
  width: 20px;
  height: 20px;
  stroke: #3d8ca9;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.question-bank-preview-content {
  margin: 0;
  color: #3d8ca9;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-line;
}

.import-button.is-updating {
  cursor: wait;
  opacity: 0.9;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.import-button.is-updating::before {
  content: "";
  display: inline-block;
  box-sizing: border-box;
  width: 15px;
  min-width: 15px;
  max-width: 15px;
  height: 15px;
  min-height: 15px;
  max-height: 15px;
  flex: 0 0 15px;
  margin-right: 6px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: import-spin 0.8s linear infinite;
  vertical-align: -2px;
}

.import-button.is-updating .import-button__label {
  display: inline-block;
  font-size: 0.78rem !important;
  line-height: 1;
  white-space: nowrap;
}

@keyframes import-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.file-button input {
  display: none;
}

.compact-action {
  max-width: 220px;
}

.results-list {
  display: grid;
  gap: 10px;
}

.history-dashboard {
  display: grid;
  align-content: start;
  gap: 26px;
  padding-top: 54px;
}

body.history-static-shell .topbar,
body.school-master-static-shell .topbar {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  margin-bottom: 0;
  padding-left: 20px;
  padding-right: 20px;
  z-index: 30;
  border-bottom: 1px solid rgba(61, 140, 169, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.history-static-shell .topbar-main,
body.history-static-shell .view-switch,
body.school-master-static-shell .topbar-main,
body.school-master-static-shell .view-switch {
  width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
}

body.history-static-shell .app-shell,
body.history-static-shell .mobile-stage,
body.history-static-shell #historyView,
body.school-master-static-shell .app-shell,
body.school-master-static-shell .mobile-stage,
body.school-master-static-shell #schoolMasterView {
  width: 100%;
  max-width: none;
}

body.history-static-shell .mobile-stage,
body.school-master-static-shell .mobile-stage {
  padding-top: 88px;
}

body.history-static-shell #historyView,
body.school-master-static-shell #schoolMasterView {
  display: block !important;
  position: relative;
  top: 0;
  margin: 0;
  padding-top: 36px;
}

body.history-static-shell .history-dashboard,
body.school-master-static-shell .school-master-dashboard {
  margin: 0;
  padding-top: 0;
  width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
}

body.history-static-shell .history-dashboard__header,
body.school-master-static-shell .school-master-dashboard__header {
  padding-top: 0;
  margin-top: 0;
}

body.history-static-shell .study-guided-history-panel {
  margin-top: 0;
}

/* Desktop browser: the shared header spans the viewport and remains in the
   normal document flow. Mobile keeps the compact/fixed navigation behavior. */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  body.history-static-shell .app-shell,
  body.history-static-shell .mobile-stage {
    padding-top: 0;
  }

  body.history-static-shell .topbar {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0;
    padding-left: clamp(22px, 2.4vw, 42px);
    padding-right: clamp(22px, 2.4vw, 42px);
  }

  body.history-static-shell .topbar-main,
  body.history-static-shell .view-switch {
    width: 100%;
    max-width: none;
  }

  body.history-static-shell #historyView {
    padding-top: 36px;
  }
}

.school-master-dashboard {
  display: grid;
  gap: 18px;
}

.school-master-dashboard__header {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: auto;
  padding-top: 0;
  position: relative;
  gap: 12px;
}

.school-master-dashboard__back {
  display: none;
}

.school-master-dashboard__heading {
  display: grid;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  min-width: 0;
}

.school-master-dashboard__title {
  margin: 0;
  color: #ff981a;
  font-size: clamp(2.15rem, 6.2vw, 2.45rem);
  font-weight: 500;
  text-align: center;
  line-height: 1.05;
}

.school-master-dashboard__subtitle {
  margin: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(61, 140, 169, 0.78);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

.school-master-panel {
  display: grid;
  gap: 14px;
  padding: 16px 14px;
  border: 1px solid rgba(61, 140, 169, 0.14);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 73, 98, 0.04);
}

.school-master-panel--hero {
  padding: 18px 16px;
}

.school-master-panel__header {
  display: grid;
  gap: 4px;
}

.school-master-panel__title {
  margin: 0;
  color: #3d8ca9;
  font-size: 1rem;
  font-weight: 700;
}

.school-master-panel__subtitle {
  margin: 0;
  color: rgba(61, 140, 169, 0.74);
  font-size: 0.82rem;
  line-height: 1.4;
}

.school-master-hero {
  display: grid;
  gap: 16px;
}

.school-master-hero__copy {
  display: grid;
  gap: 8px;
}

.school-master-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 152, 26, 0.12);
  color: #ff981a;
  font-size: 0.72rem;
  font-weight: 700;
}

.school-master-hero__title {
  margin: 0;
  color: #3d8ca9;
  font-size: 1.1rem;
  font-weight: 700;
}

.school-master-hero__description {
  margin: 0;
  color: rgba(17, 17, 17, 0.82);
  font-size: 0.86rem;
  line-height: 1.55;
}

.school-master-top-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.school-master-top-stat {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 14px;
  background: #f7fafc;
  border: 1px solid rgba(61, 140, 169, 0.09);
  text-align: center;
}

.school-master-top-stat__value {
  color: #3d8ca9;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.school-master-top-stat__label {
  color: rgba(61, 140, 169, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
}

.school-master-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  width: 100%;
}

.school-master-filter {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.school-master-filter__label {
  color: rgba(61, 140, 169, 0.78);
  font-size: 0.73rem;
  font-weight: 700;
}

.school-master-filter__input,
.school-master-filter__select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(61, 140, 169, 0.1);
  border-radius: 12px;
  background: #f1f3f6;
  color: #3d8ca9;
  font: inherit;
  font-size: 0.8rem;
  box-sizing: border-box;
  outline: none;
}

.school-master-filter__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f1f3f6 !important;
  color: #3d8ca9 !important;
}

.school-master-filter__select option {
  background: #ffffff;
  color: #3d8ca9;
}

.school-master-filter__input::placeholder {
  color: rgba(61, 140, 169, 0.52);
}

.school-master-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.24fr);
  gap: 16px;
  align-items: start;
}

.school-master-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.school-master-student-list,
.school-master-subject-breakdown,
.school-master-alerts,
.school-master-timeline {
  display: grid;
  gap: 12px;
}

.school-master-student-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(61, 140, 169, 0.1);
  background: #f8fbfd;
}

.school-master-student-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.school-master-student-card__name {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.96rem;
  font-weight: 700;
}

.school-master-student-card__meta {
  margin: 4px 0 0;
  color: rgba(61, 140, 169, 0.72);
  font-size: 0.76rem;
}

.school-master-trend {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.school-master-trend.is-up {
  background: rgba(110, 193, 85, 0.15);
  color: #5aa44c;
}

.school-master-trend.is-down {
  background: rgba(227, 109, 127, 0.14);
  color: #cf6173;
}

.school-master-trend.is-same {
  background: rgba(181, 106, 216, 0.14);
  color: #b56ad8;
}

.school-master-trend.is-first {
  background: rgba(61, 140, 169, 0.1);
  color: #3d8ca9;
}

.school-master-student-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(61, 140, 169, 0.84);
  font-size: 0.78rem;
  font-weight: 600;
}

.school-master-student-card__stats strong {
  color: #3d8ca9;
}

.school-master-student-card__summary {
  margin: 0;
  color: rgba(17, 17, 17, 0.82);
  font-size: 0.84rem;
  line-height: 1.5;
}

.school-master-subject-card,
.school-master-alert {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(61, 140, 169, 0.08);
  background: #f8fbfd;
}

.school-master-subject-card__title {
  color: #3d8ca9;
  font-size: 0.84rem;
  font-weight: 700;
}

.school-master-subject-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(61, 140, 169, 0.74);
  font-size: 0.76rem;
  font-weight: 600;
}

.school-master-alert {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.school-master-alert__dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #f79b1a;
}

.school-master-alert__text {
  margin: 0;
  color: rgba(17, 17, 17, 0.82);
  font-size: 0.82rem;
  line-height: 1.5;
}

.school-master-round {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(61, 140, 169, 0.1);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.school-master-round.is-active {
  border-color: rgba(61, 140, 169, 0.28);
  box-shadow: 0 8px 20px rgba(16, 73, 98, 0.06);
}

.school-master-round__toggle {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.school-master-round__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.school-master-round__title-group {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.school-master-round__title {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
}

.school-master-round__student {
  margin: 0;
  color: rgba(61, 140, 169, 0.72);
  font-size: 0.75rem;
  font-weight: 600;
}

.school-master-round__top-meta {
  display: block;
  flex-shrink: 0;
}

.school-master-round__date {
  color: rgba(61, 140, 169, 0.68);
  font-size: 0.75rem;
  white-space: nowrap;
}

.school-master-round__chevron {
  color: rgba(61, 140, 169, 0.78);
  font-size: 0.9rem;
}

.school-master-round__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.school-master-round__chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(61, 140, 169, 0.1);
  color: #3d8ca9;
  font-size: 0.75rem;
  font-weight: 700;
}

.school-master-round__chip.is-success {
  background: rgba(110, 193, 85, 0.15);
  color: #5aa44c;
}

.school-master-round__chip.is-accent {
  background: rgba(181, 106, 216, 0.14);
  color: #b56ad8;
}

.school-master-round__chip.is-neutral,
.school-master-round__chip.is-muted {
  background: rgba(61, 140, 169, 0.1);
  color: #3d8ca9;
}

.school-master-round__summary {
  margin: 0;
  color: rgba(17, 17, 17, 0.82);
  font-size: 0.84rem;
  line-height: 1.5;
}

.school-master-round__detail {
  padding: 0 12px 14px;
  border-top: 1px solid rgba(61, 140, 169, 0.1);
}

.school-master-empty {
  margin: 0;
  color: rgba(61, 140, 169, 0.78);
  font-size: 0.86rem;
  line-height: 1.45;
}

.history-dashboard__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: auto;
  padding-top: 0;
  position: relative;
}

.study-guided-explanation-actions--heading {
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.study-guided-explanation-images-button {
  flex: 0 0 auto;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--study-guided-subject-accent, #3992b2);
  font: inherit;
  font-size: 0.92em;
  font-weight: 500;
  cursor: pointer;
}

.study-guided-explanation-images-button:hover,
.study-guided-explanation-images-button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.study-guided-explanation-image-viewer[hidden] {
  display: none !important;
}

.study-guided-explanation-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
}

.study-guided-explanation-image-viewer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 9, 14, 0.84);
  backdrop-filter: blur(2px);
}

.study-guided-explanation-image-viewer__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(92vw, 760px);
  max-height: calc(100dvh - 44px);
  touch-action: none;
}

.study-guided-explanation-image-viewer__media {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 44px);
  border-radius: 10px;
  border: 3px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  box-sizing: border-box;
  image-orientation: from-image;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
  transform-origin: center center;
  touch-action: none;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.study-guided-explanation-image-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border: 2px solid #55b4d3;
  border-radius: 50%;
  background: #14222d;
  color: #fff;
  font: inherit;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%);
}

.study-guided-explanation-image-viewer__nav--previous {
  left: 12px;
}

.study-guided-explanation-image-viewer__nav--next {
  right: 12px;
}

.study-guided-explanation-image-viewer__nav:hover:not(:disabled),
.study-guided-explanation-image-viewer__nav:focus-visible {
  background: #1c3442;
}

.study-guided-explanation-image-viewer__nav:disabled {
  border-color: rgba(85, 180, 211, 0.45);
  color: rgba(255, 255, 255, 0.5);
  cursor: default;
  opacity: 0.58;
}

.study-guided-explanation-image-viewer.is-zoomed .study-guided-explanation-image-viewer__media {
  cursor: grab;
}

.study-guided-explanation-image-viewer.is-zoomed .study-guided-explanation-image-viewer__counter {
  opacity: 0.54;
}

.study-guided-explanation-image-viewer__close {
  position: absolute;
  top: -17px;
  right: -10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0 0 3px;
  border: 2px solid #55b4d3;
  border-radius: 50%;
  background: #14222d;
  color: #fff;
  font: inherit;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.study-guided-explanation-image-viewer__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 46px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 20, 28, 0.78);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 520px) {
  .study-guided-explanation-actions--heading {
    gap: 12px;
  }

  .study-guided-explanation-images-button {
    font-size: 0.86em;
  }

  .study-guided-explanation-image-viewer {
    padding-inline: 12px;
  }

  .study-guided-explanation-image-viewer__dialog {
    width: 94vw;
  }

  .study-guided-explanation-image-viewer__close {
    right: -4px;
  }

  .study-guided-explanation-image-viewer__nav {
    width: 40px;
    height: 40px;
    font-size: 32px;
  }

  .study-guided-explanation-image-viewer__nav--previous {
    left: 8px;
  }

  .study-guided-explanation-image-viewer__nav--next {
    right: 8px;
  }
}

.history-dashboard__title {
  margin: 0;
  color: #3d8ca9;
  font-size: clamp(1.15rem, 6vw, 2.325rem);
  font-weight: 500;
  text-align: center;
  line-height: 1.05;
  white-space: nowrap;
}

.history-dashboard__close {
  display: none;
}

.history-dashboard__back {
  display: none;
}

.history-chart {
  width: min(100%, 312px);
  min-height: 248px;
  margin: 0 auto;
  padding: 0;
}

.history-chart__grid {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  min-height: 248px;
}

.history-chart__axis {
  position: relative;
  min-height: 248px;
}

.history-chart__axis-label {
  position: absolute;
  left: 0;
  transform: translateY(50%);
  color: #666666;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1;
}

.history-chart__plot {
  position: relative;
  min-height: 248px;
  padding: 0;
}

.history-chart__grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(61, 140, 169, 0.12);
}

.history-chart__bars {
  position: absolute;
  inset: 0 0 0 0;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.history-chart__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 7px;
  min-height: 100%;
}

.history-chart__bar-shell {
  width: 100%;
  max-width: 23px;
  height: 184px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.history-chart__bar {
  width: 100%;
  min-height: 12px;
  border-radius: 4px 4px 0 0;
}

.history-chart__label {
  font-size: 0.68rem;
  font-weight: 500;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  min-height: 74px;
  text-align: center;
}

.history-summary {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 0 18px;
}

.history-summary__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(61, 140, 169, 0.16);
}

.history-summary__label {
  color: #2f6f8f;
  font-size: 0.98rem;
  font-weight: 400;
}

.history-summary__label--purple {
  color: #b35cf7;
}

.history-summary__label--red {
  color: #dc6969;
}

.history-summary__value {
  color: #7d7d7d;
  font-size: 0.95rem;
  font-weight: 400;
  min-height: 1.1em;
}

.history-average {
  display: grid;
  gap: 8px;
  padding: 10px 18px 0;
}

.history-average__label {
  color: #2f6f8f;
  font-size: 1.8rem;
  font-weight: 600;
}

.history-average__value {
  color: #ff9f1f;
  font-size: 3.35rem;
  font-weight: 500;
  line-height: 0.95;
}

.history-results-panel {
  display: none;
}

.result-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.result-card strong {
  font-size: 1.25rem;
}

.result-card p {
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 850;
}

.result-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.parent-hero {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}

.parent-greeting {
  margin: 0;
  color: #ff9f1f;
  font-size: clamp(2rem, 7vw, 2.55rem);
  font-weight: 800;
  line-height: 1.05;
}

.parent-subtitle {
  margin: 0;
  color: #e2727c;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(5, 8, 24, 0.72);
  backdrop-filter: blur(12px);
}

.password-card {
  display: grid;
  width: min(360px, 100%);
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(27, 33, 72, 0.98), rgba(16, 22, 52, 0.98));
  box-shadow: var(--shadow);
}

.password-logo {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.auth-brand {
  margin-bottom: 2px;
  gap: 5px;
}

.auth-brand h1 {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.05;
}

.auth-brand .password-logo {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}

.password-card label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.password-description {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 700;
}

.password-card input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 15, 42, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 850;
  padding: 0 12px;
}

.setup-card {
  gap: 12px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.setup-card h2 {
  font-weight: 800;
}

.setup-card label {
  color: #ffffff;
}

.setup-card label,
.setup-card .password-description,
.setup-card input,
.setup-card select,
.setup-card .primary-button,
.setup-card .password-error {
  font-weight: 400;
}

.password-card:not(.setup-card) .password-description,
.password-card:not(.setup-card) label {
  font-weight: 400;
}

.setup-card select {
  width: 100%;
}

.setup-card .primary-button {
  margin-top: 4px;
}

.setup-gate {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-setup-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #cfc7ff;
  cursor: pointer;
  font: inherit;
  font-size: 0.98rem;
  padding: 0 0 2px;
  text-align: center;
  text-decoration: underline;
}

.password-error {
  min-height: 22px;
  margin: 0;
  color: var(--warning);
  font-weight: 850;
}

.password-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.login-gate-screen {
  padding: 28px 18px 28px;
  background: #ffffff;
  backdrop-filter: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.login-gate-screen::-webkit-scrollbar,
.login-screen::-webkit-scrollbar {
  display: none;
}

.login-screen {
  width: min(344px, 100%);
  min-height: min(78vh, 680px);
  gap: 0;
  padding: 12px 0 12px;
  margin-top: -6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-content: start;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.login-screen__brand {
  display: grid;
  justify-items: center;
  margin-top: -10px;
  margin-bottom: 14px;
}

.login-screen__logo {
  width: min(284px, 82vw);
  height: auto;
  display: block;
  filter: none;
}

.login-screen__hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 16px;
}

.login-screen__headline {
  margin: 0;
  display: grid;
  gap: 2px;
  text-align: center;
  font-size: clamp(1.72rem, 7vw, 2.42rem);
  font-weight: 900;
  line-height: 1.08;
}

.login-screen__headline-line {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.12em;
  flex-wrap: wrap;
}

.login-screen__headline-word--orange {
  color: #ffb329;
  filter: none;
}

.login-screen__headline-word--violet {
  color: #b967ff;
  filter: none;
}

.login-screen__headline-word--green {
  color: #56d765;
  filter: none;
}

.login-screen__headline-punctuation {
  color: currentColor;
  filter: none;
}

.login-screen__description {
  margin: 0;
  color: #3d8ca9;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.login-screen__ai-icon {
  width: min(44px, 12vw);
  height: auto;
  display: block;
  margin-top: 8px;
}

.login-screen__form {
  display: grid;
  gap: 12px;
  width: min(calc(100% - 28px), 316px);
  padding: 0;
  margin-bottom: 0;
  justify-self: center;
}

.login-screen__recognized-hint {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transform: none;
}

.login-screen__label {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}

.login-screen__input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 999px;
  background: #e5e5e5;
  color: #5a5a5a;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 0 20px;
  box-shadow: none;
}

.login-screen .login-screen__input {
  height: 48px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
}

.login-screen__form > .login-screen__input:first-of-type {
  margin-top: 0;
}

.login-screen__password-field {
  position: relative;
  display: flex;
  width: 100%;
}

.login-screen__password-field .login-screen__input {
  padding-right: 58px;
}

.login-screen__password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #66757e;
  transform: translateY(-50%);
}

.login-screen__password-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-screen__password-toggle::after {
  position: absolute;
  width: 0;
  height: 24px;
  border-left: 1.7px solid currentColor;
  content: "";
  opacity: 0;
  transform: rotate(-45deg);
  transition: opacity 160ms ease;
}

.login-screen__password-toggle.is-visible::after {
  opacity: 1;
}

.login-screen__password-toggle:focus-visible {
  outline: 2px solid rgba(61, 140, 169, 0.5);
  outline-offset: 1px;
}

.login-screen__input::placeholder {
  color: #767676;
  opacity: 1;
  font-size: 15px;
}

.login-screen__input:focus {
  outline: none;
  border-color: rgba(61, 140, 169, 0.45);
}

.login-screen__error {
  min-height: 0;
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
}

.login-screen__error:empty {
  display: none;
}

.login-screen__reset-link {
  width: 100%;
  margin: 4px 0 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #3d8ca9;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  text-align: center;
}

.login-screen__submit {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin-top: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #3d8ca9;
  filter: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  box-shadow: none;
}

.login-screen__google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin-top: 0;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #6d6d6d;
  font-size: 15px;
  font-weight: 400;
  box-shadow: none;
}

.login-screen__google-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.login-screen__google-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.login-screen__create-link {
  width: 100%;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #202020;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  text-align: center;
  box-shadow: none;
}

.register-gate-screen {
  padding: 28px 18px 28px;
  background: #ffffff;
  backdrop-filter: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.register-gate-screen::-webkit-scrollbar,
.register-screen::-webkit-scrollbar {
  display: none;
}

.register-screen {
  width: min(344px, 100%);
  gap: 0;
  padding: 18px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.register-screen__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

.register-screen__logo {
  width: 78px;
  height: auto;
  display: block;
  flex: 0 0 78px;
}

.register-screen__brand-name {
  margin: 0;
  color: #3d8ca9;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.register-screen__hero {
  margin-bottom: 14px;
}

.register-screen__title {
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.register-screen__card {
  display: grid;
  gap: 14px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.register-screen__fields {
  display: grid;
  gap: 18px;
}

.register-screen__input,
.register-screen__select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  background: #e5e5e5;
  color: #5a5a5a;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  padding: 0 12px;
  box-shadow: none;
}

.register-screen__select {
  appearance: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2348de61' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E")
      calc(100% - 14px) 50% / 12px 8px no-repeat,
    #e5e5e5;
  color: #3d8ca9;
  padding-right: 34px;
}

.register-screen__input::placeholder {
  opacity: 1;
}

#responsibleNameInput::placeholder {
  color: #3d8ca9;
  filter: none;
  font-size: 12px;
}

#responsibleEmailInput::placeholder {
  color: #3d8ca9;
  filter: none;
  font-size: 12px;
}

#studentNameInput::placeholder {
  color: #3d8ca9;
  filter: none;
  font-size: 12px;
}

#studentNameInput {
  color: #5a5a5a;
  font-size: 12px;
}

#setupPasswordInput::placeholder,
#setupPasswordConfirmInput::placeholder {
  color: #5cbf72;
  filter: none;
  font-size: 12px;
}

.register-screen__input:focus,
.register-screen__select:focus {
  outline: none;
  border-color: rgba(61, 140, 169, 0.28);
}

.register-screen__error {
  min-height: 18px;
  margin: 0;
  color: #ffca75;
  text-align: center;
  font-size: 12px;
}

.register-screen__submit {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #3d8ca9;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  box-shadow: none;
}

.register-screen__back-link {
  width: 100%;
  padding: 14px 0 0;
  border: 0;
  background: transparent;
  color: #202020;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  box-shadow: none;
}

.build-marker {
  display: none !important;
}

body.parent-visual-light {
  background: #ffffff;
}

body.parent-home-only #childView,
body.parent-home-only #historyView {
  display: none !important;
}

body.parent-home-only #parentView {
  display: block !important;
}

.inline-test-host[hidden] {
  display: none !important;
}

.inline-test-host {
  width: min(calc(100% - 54px), 480px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
}

/* Enquanto uma avaliação está em andamento, o conteúdo de estudo e os
   controles externos ficam fora da tela. Permanece somente a avaliação. */
body.study-assessment-active #parentView .parent-dashboard-home > :not(.inline-test-host),
body.study-assessment-active #parentView .study-guided-followup-composer,
body.study-assessment-active .study-guided-followup-composer,
body.study-assessment-active #parentView #stopTestButton {
  display: none !important;
}

body.study-assessment-active #parentView .inline-test-host {
  display: block !important;
  grid-column: 1 / -1 !important;
  width: min(100%, 720px) !important;
  margin-inline: auto !important;
}

body.parent-home-only.unlock-award-active #childView,
body.parent-home-only.test-modal-active.unlock-award-active #childView {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: block !important;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(3px);
}

body.parent-home-only.test-modal-active #childView {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: block !important;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(3px);
}

body.parent-home-only.test-modal-active #childView .phone-frame {
  width: min(100%, 360px);
  min-height: auto;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

body.parent-home-only.test-modal-active #childView .phone-frame::before {
  display: none;
}

body.parent-home-only.test-modal-active #childView .unlocked-state {
  display: none !important;
}

body.parent-home-only.unlock-award-active #childView .phone-frame,
body.parent-home-only.test-modal-active.unlock-award-active #childView .phone-frame {
  width: min(100%, 360px);
  min-height: auto;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

body.parent-home-only.unlock-award-active #childView .unlocked-state,
body.parent-home-only.test-modal-active.unlock-award-active #childView .unlocked-state {
  display: flex !important;
}

body.parent-home-only.unlock-award-active #childView .education-gate,
body.parent-home-only.test-modal-active.unlock-award-active #childView .education-gate {
  display: none !important;
}

body.inline-test-active.parent-home-only #childView,
body.inline-test-active.parent-home-only.test-modal-active #childView,
body.inline-test-active.parent-home-only.unlock-award-active #childView,
body.inline-test-active.parent-home-only.test-modal-active.unlock-award-active #childView {
  display: none !important;
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  padding: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

body.inline-test-active.parent-home-only #parentView {
  display: block !important;
}

body.inline-test-active #parentView .study-guided-test-group {
  display: none !important;
}

/* O resumo permanece no parentView. Mesmo que as classes transitórias do
   modal ainda existam durante a troca de estado, uma view marcada como
   hidden nunca pode voltar a cobrir a tela no Android/WebView. */
body.inline-test-summary-active.parent-home-only #childView,
body.inline-test-summary-active.parent-home-only.test-modal-active #childView,
body.inline-test-summary-active.parent-home-only.unlock-award-active #childView,
body.inline-test-summary-active.parent-home-only.test-modal-active.unlock-award-active #childView,
body.parent-home-only #childView[hidden] {
  display: none !important;
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  padding: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

/* Once a test ends, keep its review in the same study page instead of
   isolating the gate and hiding the explanation, map and follow-up history. */
body.inline-test-summary-active.parent-home-only #parentView {
  display: block !important;
}

body.inline-test-summary-active #parentView .inline-test-host .education-gate {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
}

body.inline-test-active #parentView .inline-test-host .education-gate {
  position: relative !important;
  inset: auto !important;
  margin-top: 0 !important;
  width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
  overscroll-behavior: auto !important;
  -webkit-overflow-scrolling: auto !important;
  touch-action: auto !important;
}

body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout {
  border-radius: 28px !important;
}

body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .test-round-body {
  padding-bottom: 74px !important;
}

/* Durante o teste e o simulado, o cabeçalho permanece disponível. A rolagem
   acontece na área da página abaixo dele — e nunca dentro da borda que faz
   parte do visual do próprio teste. */
html.study-assessment-active,
body.study-assessment-active {
  height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.study-assessment-active #parentView {
  height: calc(100dvh - var(--study-assessment-topbar-height, 0px)) !important;
  max-height: calc(100dvh - var(--study-assessment-topbar-height, 0px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

body.study-assessment-active #parentView .inline-test-host {
  height: auto !important;
  max-height: none !important;
  min-height: 100% !important;
  overflow: visible !important;
}

/* O teste ativo precisa prevalecer sobre o layout de leitura desktop. Sem
   esta regra final, estilos de coluna posteriores mantinham o teste abaixo
   de toda a explicação e davam a impressão de que ele não foi gerado. */
body.study-assessment-active.dashboard-mode-study-guided #parentView
  .parent-dashboard-home > .study-guided-desktop-sidebar,
body.study-assessment-active.dashboard-mode-study-guided #parentView
  .parent-dashboard-home > .study-guided-desktop-main,
body.study-assessment-active.dashboard-mode-study-guided #parentView
  .parent-dashboard-home > .study-guided-desktop-test-panel {
  display: none !important;
}

body.study-assessment-active #parentView .inline-test-host .education-gate,
body.study-assessment-active .education-gate {
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  overscroll-behavior: auto !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: auto !important;
}

body.parent-home-only #parentView .parent-stop-button,
body.parent-home-only #questionBankStatus,
body.parent-home-only [data-view-target="history"] {
  display: none !important;
}

body.parent-visual-light .app-shell,
body.parent-visual-light .mobile-stage,
body.parent-visual-light .dashboard {
  background: #ffffff !important;
  background-image: none !important;
}

body.parent-visual-light {
  background: #ffffff !important;
  background-image: none !important;
  min-height: 100dvh;
  font-family: "Roboto Embedded", Roboto, Arial, sans-serif;
}

body.parent-visual-light .dashboard {
  padding-left: 36px;
  padding-right: 36px;
}

body.parent-visual-light .app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.parent-visual-light .mobile-stage {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100dvh;
  overflow: visible;
}

body.parent-visual-light #parentView,
body.parent-visual-light #parentView .parent-dashboard-home,
body.parent-visual-light #parentView .parent-subjects-panel,
body.parent-visual-light #parentView .parent-select-stack,
body.parent-visual-light #parentView .post-login-actions,
body.parent-visual-light #parentView .apply-test-panel {
  background: #ffffff !important;
}

body.parent-visual-light .topbar {
  background: rgba(255, 255, 255, 0.28) !important;
  background-image: none !important;
  gap: 20px;
  margin-bottom: 8px;
  padding-top: 42px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(61, 140, 169, 0.09);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 24px rgba(61, 140, 169, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.parent-visual-light .brand {
  gap: 10px;
}

body.parent-visual-light .topbar-main {
  align-items: center;
}

body.parent-visual-light .topbar-actions {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding-right: 12px;
}

body.parent-visual-light .topbar-avatar {
  display: none;
}

body.parent-visual-light .brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 0;
  background: url("assets/login-logo-symbol-light.png") center / contain no-repeat !important;
  box-shadow: none !important;
}

body.parent-visual-light .brand-logo span {
  display: none;
}

body.parent-visual-light .brand h1 {
  color: #3d8ca9;
  font-size: 16px;
  font-weight: 700;
}

body.parent-visual-light .menu-button span {
  width: 22px;
  height: 3px;
  background: #454545;
}

body.parent-visual-light .menu-button {
  margin-top: 0;
}

body.parent-visual-light .view-switch {
  border: 0;
  background: transparent;
  padding: 0;
}

body.parent-visual-light .switch-button {
  border-radius: 12px;
  color: #7d7d7d;
  font-weight: 700;
}

body.parent-visual-light .switch-button.active {
  background: #f1f1f1;
  color: #3d8ca9;
  box-shadow: none;
}

body.parent-visual-light #parentView .parent-dashboard-home {
  position: relative;
  gap: 22px;
  padding-top: 12px;
  padding-bottom: 78px;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.parent-subjects-panel {
  position: relative;
}

.study-guided-mind-map--math .study-guided-mind-map__items {
  justify-self: center;
  justify-items: stretch;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  text-align: left;
}

.study-guided-mind-map__item--math {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  min-width: 0;
}

.study-guided-mind-map__math-lines {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 6px;
  font-variant-numeric: lining-nums tabular-nums;
  text-align: left;
}

.study-guided-mind-map__math-line {
  display: block;
  max-width: 100%;
  min-width: 0;
  padding-block: 1px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  text-align: left;
}

.study-guided-mind-map__math-line .study-guided-inline-equation,
.study-guided-mind-map__math-line .study-guided-math-term,
.study-guided-mind-map__math-line .study-guided-math-frac,
.study-guided-mind-map__math-line .study-guided-math-root {
  font-size: 1.08em;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  padding: 8px 0;
}

body.parent-visual-light #parentView .parent-greeting {
  color: #ff9f1f;
  font-size: clamp(1.7rem, 6.3vw, 2.35rem);
  font-weight: 500;
}

body.dashboard-mode-study-guided #parentView .parent-greeting {
  color: #ff9f1f;
  font-size: clamp(1.15rem, 4.1vw, 1.4rem) !important;
  font-weight: 500;
  opacity: 0.78;
}

.study-guided-xp-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: end;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

.study-guided-xp-summary[hidden] { display: none !important; }

.study-guided-xp-summary__heading {
  display: flex;
  flex-direction: column;
  color: #3d8ca9;
  line-height: 1.15;
}

.study-guided-xp-summary__heading span { font-size: 0.67rem; opacity: 0.75; }
.study-guided-xp-summary__heading strong { margin-top: 3px; font-size: 0.9rem; font-weight: 500; }

html[data-app-theme="dark"] .study-guided-xp-summary {
  border-color: transparent;
  background: transparent;
}

html[data-app-theme="dark"] .study-guided-xp-summary__heading { color: #75b59e; }

@media (max-width: 360px) {
  body.dashboard-mode-study-guided #parentView .parent-greeting {
    font-size: 1.02rem !important;
  }

  .study-guided-xp-summary { min-width: 0; padding-inline: 0; }

}

body.parent-visual-light #parentView .parent-subtitle {
  margin-top: 18px;
  color: #e27d8c;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.responsible-entry-view {
  min-height: calc(100dvh - 56px);
  background: #ffffff;
}

.dashboard-selector-view {
  min-height: calc(100dvh - 56px);
  display: flex;
  justify-content: center;
  background: #ffffff;
}

.dashboard-selector-screen {
  width: min(100%, 390px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 34px 26px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: #ffffff;
}

.dashboard-selector-brand {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  transform: translateX(-10px);
}

.dashboard-selector-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 0;
  background: url("assets/login-logo-symbol-light.png") center / contain no-repeat !important;
  box-shadow: none !important;
}

.dashboard-selector-logo span {
  display: none;
}

.dashboard-selector-brand h2 {
  margin: 0;
  color: #3d8ca9;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.dashboard-selector-copy {
  width: 100%;
  max-width: 308px;
  margin-top: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dashboard-selector-hello {
  margin: 0;
  color: #ffab19;
  font-size: clamp(2.6rem, 12vw, 3.65rem);
  font-weight: 500;
  line-height: 1;
}

.dashboard-selector-message {
  margin: 0;
  max-width: 292px;
  color: #3d8ca9;
  font-size: 0.99rem;
  font-weight: 500;
  line-height: 1.28;
  text-align: center;
}

.dashboard-selector-visual-card {
  position: relative;
  width: 100%;
  max-width: 396px;
  min-height: 470px;
  margin: 28px auto 0;
  padding: 56px 28px 36px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.38)),
    url("assets/dashboard-selector-classroom-photo.png") center center / 108% auto no-repeat;
  box-shadow: none;
  clip-path: inset(0 round 28px);
}

.dashboard-selector-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(90deg, transparent 0 15%, rgba(255, 255, 255, 0.06) 15% 15.4%, transparent 15.4% 30%);
  opacity: 0.18;
  pointer-events: none;
}

.dashboard-selector-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 34%, rgba(255, 255, 255, 0.12) 100%);
  opacity: 0.34;
  pointer-events: none;
}

.dashboard-selector-welcome,
.dashboard-selector-start-title,
.dashboard-selector-actions {
  position: relative;
  z-index: 1;
}

.dashboard-selector-welcome {
  margin: 0;
  color: #ffab19;
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.dashboard-selector-start-title {
  margin: 148px 0 18px;
  color: #3d8ca9;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.dashboard-selector-actions {
  width: 100%;
  max-width: 242px;
  margin-top: 166px;
  display: grid;
  gap: 14px;
}

.dashboard-selector-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  box-shadow: none;
}

.dashboard-selector-button--study {
  background: #b35cf4;
}

.dashboard-selector-button--tests {
  background: #ffab19;
}

.responsible-entry-screen {
  width: min(100%, 390px);
  min-height: 100dvh;
  padding: 28px 26px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
}

.responsible-entry-brand {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.responsible-entry-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 0;
  background: url("assets/login-logo-symbol-light.png") center / contain no-repeat !important;
  box-shadow: none !important;
}

.responsible-entry-logo span {
  display: none;
}

.responsible-entry-brand h2 {
  margin: 0;
  color: #3d8ca9;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.responsible-entry-copy {
  width: 100%;
  max-width: 308px;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.responsible-entry-hello {
  margin: 0;
  color: #ffab19;
  font-size: clamp(2.6rem, 12vw, 3.65rem);
  font-weight: 500;
  line-height: 1;
}

.responsible-entry-message {
  margin: 0;
  max-width: 292px;
  color: #3d8ca9;
  font-size: 0.99rem;
  font-weight: 500;
  line-height: 1.28;
  text-align: center;
}

.responsible-entry-assessment {
  width: 100%;
  max-width: 308px;
  margin-top: 44px;
  display: grid;
  gap: 22px;
}

.responsible-entry-assessment__title {
  margin: 0;
  color: #ffab19;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.responsible-entry-assessment__rows {
  display: grid;
  gap: 12px;
}

.responsible-entry-assessment__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(61, 140, 169, 0.18);
}

.responsible-entry-assessment__label {
  display: inline;
  font-size: 0.91rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.responsible-entry-assessment__value {
  display: inline;
  min-height: 0;
  color: #3d8ca9;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.responsible-entry-assessment__row--date .responsible-entry-assessment__label {
  color: #e67676;
}

.responsible-entry-assessment__row--time .responsible-entry-assessment__label {
  color: #61ae44;
}

.responsible-entry-assessment__row--subjects .responsible-entry-assessment__label {
  color: #b967ff;
}

.responsible-entry-assessment__row--correct .responsible-entry-assessment__label {
  color: #3d8ca9;
}

.responsible-entry-assessment__row--wrong .responsible-entry-assessment__label {
  color: #e67676;
}

.responsible-entry-assessment__row--total .responsible-entry-assessment__label {
  color: #ff9f1f;
}

.responsible-entry-assessment__row--result .responsible-entry-assessment__label {
  color: #61ae44;
}

.responsible-entry-assessment__row--score .responsible-entry-assessment__label {
  color: #e67676;
}

.responsible-entry-assessment__dropdown {
  display: grid;
  gap: 8px;
  margin-top: -2px;
}

.responsible-entry-assessment__dropdown-trigger {
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: #efefef;
  color: #3d8ca9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: inherit;
  font-size: calc(0.95rem - 1.5pt);
  font-weight: 500;
  text-align: left;
  box-shadow: none;
}

.responsible-entry-assessment__dropdown-chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 160ms ease;
}

.responsible-entry-assessment__dropdown-trigger[aria-expanded="true"] .responsible-entry-assessment__dropdown-chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.responsible-entry-assessment__dropdown-panel {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(61, 140, 169, 0.16);
  box-shadow: 0 10px 22px rgba(61, 140, 169, 0.08);
}

.responsible-entry-assessment__dropdown-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #3d8ca9;
  font-size: 0.83rem;
  line-height: 1.25;
}

.responsible-entry-assessment__dropdown-item + .responsible-entry-assessment__dropdown-item {
  padding-top: 8px;
  border-top: 1px solid rgba(61, 140, 169, 0.12);
}

.responsible-entry-assessment__dropdown-item strong {
  font-weight: 600;
}

.responsible-entry-assessment__dropdown-empty {
  color: #89a0ad;
  font-size: 0.82rem;
  line-height: 1.24;
}

.responsible-entry-assessment__average {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.responsible-entry-assessment__average-title {
  margin: 0;
  color: #2f6e8e;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.responsible-entry-assessment__average-score {
  margin: 0;
  color: #ffab19;
  font-size: 3rem;
  font-weight: 500;
  line-height: 0.95;
  text-align: left;
}

.responsible-entry-illustration {
  margin-top: 20px;
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
}

.responsible-entry-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.responsible-entry-access {
  margin-top: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.responsible-entry-access-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.responsible-entry-access-main {
  width: 264px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.responsible-entry-password {
  width: 100%;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #e6e6e6;
  color: #3d8ca9;
  font-size: 0.98rem;
  font-weight: 500;
  outline: none;
}

.responsible-entry-password::placeholder {
  color: #a9b0b5;
}

.responsible-entry-password:focus,
.responsible-entry-password:focus-visible {
  box-shadow: 0 0 0 2px rgba(61, 140, 169, 0.24);
}

.responsible-entry-label-row {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.responsible-entry-unlock {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3d8ca9;
  margin: 0;
}

.responsible-entry-unlock img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.responsible-entry-label {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.98rem;
  font-weight: 400;
  text-align: center;
}

.responsible-entry-error {
  width: 100%;
  min-height: 18px;
  margin: 10px 0 0;
  color: #d55f6a;
  font-size: 0.86rem;
  text-align: center;
}

.responsible-entry-dashboard-button {
  margin: 44px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3d8ca9;
  font-size: 1.1rem;
  font-weight: 700;
}

.responsible-entry-dashboard-button svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

@media (max-width: 420px) {
  .responsible-entry-screen {
    padding-left: 20px;
    padding-right: 20px;
  }

  .responsible-entry-brand h2 {
    font-size: 1rem;
  }
}

.test-status-view {
  min-height: calc(100dvh - 56px);
  background: #ffffff;
}

.test-status-screen {
  width: min(100%, 390px);
  min-height: 100dvh;
  padding: 28px 26px 34px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.test-status-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.test-status-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 0;
  background: url("assets/login-logo-symbol-light.png") center / contain no-repeat !important;
  box-shadow: none !important;
}

.test-status-logo span {
  display: none;
}

.test-status-brand h2 {
  margin: 0;
  color: #3d8ca9;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.test-status-content {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.test-status-message {
  max-width: 274px;
  margin: 0;
  color: #3d8ca9;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.28;
}

.test-status-countdown {
  margin: 0;
  color: #3d8ca9;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
}

.test-status-stop-button {
  width: 168px;
  min-height: 44px;
  margin: 0 auto 34px;
  border-radius: 999px;
  background: #3d8ca9;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
}

body.test-status-visual-light {
  background: #ffffff;
}

body.test-status-visual-light .topbar {
  display: none;
}

body.test-status-visual-light .app-shell,
body.test-status-visual-light .mobile-stage {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.responsible-entry-visual-light {
  background: #ffffff;
}

body.responsible-entry-visual-light .topbar {
  display: none;
}

body.responsible-entry-visual-light .app-shell,
body.responsible-entry-visual-light .mobile-stage {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #ffffff !important;
}

body.responsible-entry-visual-light .phone-frame,
body.responsible-entry-visual-light .phone-frame::before {
  background: #ffffff !important;
}

body.dashboard-selector-visual-light {
  background: #ffffff;
}

body.dashboard-selector-visual-light .topbar {
  display: none;
}

body.dashboard-selector-visual-light .app-shell,
body.dashboard-selector-visual-light .mobile-stage {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #ffffff !important;
}

body.dashboard-selector-visual-light .phone-frame,
body.dashboard-selector-visual-light .phone-frame::before {
  background: #ffffff !important;
}

body.parent-visual-light #parentView .parent-subjects-panel {
  margin-top: 18px;
}

body.parent-visual-light #parentView .dashboard-header {
  align-items: center;
  margin-bottom: 14px;
}

body.parent-visual-light #parentView .dashboard-header .eyebrow,
body.parent-visual-light #parentView .dashboard-header h2 {
  color: #5d5d5d;
}

body.parent-visual-light #parentView .summary-grid {
  gap: 12px;
}

body.parent-visual-light #parentView .metric,
body.parent-visual-light #parentView .student-panel,
body.parent-visual-light #parentView .result-card,
body.parent-visual-light #parentView .menu-panel,
body.parent-visual-light #parentView .menu-panel-item {
  border-color: rgba(0, 0, 0, 0.06);
  background: #ffffff !important;
  color: #333333;
  box-shadow: none;
}

body.parent-visual-light #parentView .metric span,
body.parent-visual-light #parentView .student-panel p,
body.parent-visual-light #parentView .menu-panel-item span,
body.parent-visual-light #parentView .result-card span {
  color: #7d7d7d;
}

body.parent-visual-light #parentView .metric strong,
body.parent-visual-light #parentView .result-card p,
body.parent-visual-light #parentView .menu-panel-item strong {
  color: #303030;
}

body.parent-visual-light .menu-summary-panel {
  background: transparent !important;
}

body.parent-visual-light .menu-summary-card {
  background: #ffffff !important;
  border-color: #3d8ca9;
  color: #3d8ca9;
}

body.parent-visual-light .menu-summary-link {
  color: #3d8ca9;
}

body.parent-visual-light #parentView .subject-ranking {
  gap: 0;
}

body.parent-visual-light #parentView .subject-ranking-item {
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.parent-visual-light #parentView .subject-ranking-main {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1 1 auto;
}

body.parent-visual-light #parentView .subject-ranking-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  opacity: 0.72;
}

body.parent-visual-light #parentView .subject-ranking-icon svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.parent-visual-light #parentView .subject-ranking-item:last-child {
  border-bottom: 0;
}

body.parent-visual-light #parentView .subject-ranking-label {
  color: #3d8ca9;
  font-size: 0.96rem;
  font-weight: 700;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Português"] .subject-ranking-label {
  color: #5b97ad;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="História"] .subject-ranking-label {
  color: #d68080;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Geografia"] .subject-ranking-label {
  color: #7cc967;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Biologia"] .subject-ranking-label,
body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Ciências"] .subject-ranking-label {
  color: #aa73de;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Química"] .subject-ranking-label {
  color: #75b59e;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Física"] .subject-ranking-label {
  color: #5d9de0;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Matemática"] .subject-ranking-label {
  color: #d77ac9;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Inglês"] .subject-ranking-label {
  color: #d47f8f;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Arte"] .subject-ranking-label,
body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Artes"] .subject-ranking-label,
body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="História da Arte"] .subject-ranking-label {
  color: #d96d62;
}

body.parent-visual-light #parentView .subject-ranking-check {
  width: 36px;
  height: 20px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 999px;
  background: #d6d6d6;
}

body.parent-visual-light #parentView .subject-ranking-check::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  transform: translateY(-50%);
  transition: transform 160ms ease;
}

body.parent-visual-light #parentView .subject-ranking-check.is-checked::after {
  transform: translate(16px, -50%);
}

body.parent-visual-light #parentView [aria-disabled="true"] {
  cursor: default;
}

body.parent-visual-light #parentView .subject-ranking-check[aria-disabled="true"],
body.parent-visual-light #parentView .apply-test-toggle[aria-disabled="true"],
body.parent-visual-light #parentView button[aria-disabled="true"],
body.parent-visual-light #parentView select[aria-disabled="true"],
body.parent-visual-light .menu-button[aria-disabled="true"] {
  pointer-events: none;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Português"] .subject-ranking-check.is-checked {
  background: #5b97ad;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="História"] .subject-ranking-check.is-checked {
  background: #d68080;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Geografia"] .subject-ranking-check.is-checked {
  background: #7cc967;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Biologia"] .subject-ranking-check.is-checked,
body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Ciências"] .subject-ranking-check.is-checked {
  background: #aa73de;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Química"] .subject-ranking-check.is-checked {
  background: #75b59e;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Física"] .subject-ranking-check.is-checked {
  background: #5d9de0;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Matemática"] .subject-ranking-check.is-checked {
  background: #d77ac9;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Inglês"] .subject-ranking-check.is-checked {
  background: #d47f8f;
}

body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Arte"] .subject-ranking-check.is-checked,
body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="Artes"] .subject-ranking-check.is-checked,
body.parent-visual-light #parentView .subject-ranking-item[data-subject-name="História da Arte"] .subject-ranking-check.is-checked {
  background: #d96d62;
}

body.parent-visual-light #parentView select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 500;
  box-shadow: none;
  padding-inline: 16px 60px;
  outline: none;
  background: transparent !important;
}

body.parent-visual-light #parentView select:focus,
body.parent-visual-light #parentView select:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
}

body.parent-visual-light #parentView .parent-select-shell {
  position: relative;
  display: block;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  overflow: visible;
}

body.parent-visual-light #parentView .parent-select-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3.25 5.25 7 9l3.75-3.75' fill='none' stroke='%233d8ca9' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  pointer-events: none;
}

body.parent-visual-light #parentView .parent-select-shell--indigo {
  background: #ececec !important;
}

body.parent-visual-light #parentView .parent-select-shell--orange {
  background: #ececec !important;
}

body.parent-visual-light #parentView .parent-select-shell--violet {
  background: #ececec !important;
}

body.parent-visual-light #parentView .parent-select-shell select {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 44px;
  cursor: pointer;
  padding: 12px 16px;
}

body.parent-visual-light #parentView .prototype-grade-shell {
  overflow: visible;
}

body.parent-visual-light #parentView .prototype-grade-upper-shell {
  overflow: visible;
}

body.parent-visual-light #parentView .prototype-time-shell {
  overflow: visible;
}

body.parent-visual-light #parentView .prototype-grade-shell select {
  display: none;
}

body.parent-visual-light #parentView .prototype-grade-upper-shell select {
  display: none;
}

body.parent-visual-light #parentView .prototype-time-shell select {
  display: none;
}

body.parent-visual-light #parentView .prototype-grade-trigger {
  width: 100%;
  min-height: 44px;
  padding: 12px 48px 12px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #4d88a5;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

body.parent-visual-light #parentView .prototype-grade-trigger:focus,
body.parent-visual-light #parentView .prototype-grade-trigger:focus-visible {
  outline: none;
  box-shadow: none;
}

body.parent-visual-light #parentView .prototype-grade-shell.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

body.parent-visual-light #parentView .prototype-grade-upper-shell.is-open::after,
body.parent-visual-light #parentView .prototype-time-shell.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

body.parent-visual-light #parentView .prototype-grade-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 6px;
  z-index: 35;
  min-width: 112px;
  padding: 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(61, 140, 169, 0.96), rgba(61, 140, 169, 0.96));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

body.parent-visual-light #parentView .prototype-grade-menu--orange {
  background: linear-gradient(135deg, rgba(61, 140, 169, 0.94), rgba(61, 140, 169, 0.94));
}

body.parent-visual-light #parentView .prototype-grade-menu--violet {
  background: linear-gradient(135deg, rgba(61, 140, 169, 0.94), rgba(61, 140, 169, 0.94));
}

body.parent-visual-light #parentView .prototype-grade-menu[hidden] {
  display: none;
}

body.parent-visual-light #parentView .prototype-grade-option {
  display: block;
  width: 100%;
  padding: 11px 18px !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  text-align: center;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  cursor: pointer;
  line-height: 1.1 !important;
}

body.parent-visual-light #parentView .prototype-grade-option:hover,
body.parent-visual-light #parentView .prototype-grade-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

body.parent-visual-light #parentView .prototype-grade-option:first-child {
  margin-top: 0;
}

body.parent-visual-light #parentView .prototype-grade-option + .prototype-grade-option {
  border-top: 1px solid rgba(255, 255, 255, 0.78);
}

body.parent-visual-light #welcomeGradeSelect {
  background: linear-gradient(135deg, #ffbb39, #ffa629) !important;
}

body.parent-visual-light #parentView .parent-select-stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

body.parent-visual-light #parentView .ai-dashboard-config {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

body.parent-visual-light #parentView .ai-dashboard-config .ai-generation-field {
  gap: 11px;
}

body.parent-visual-light #parentView .ai-dashboard-config .ai-generation-field > span {
  color: #2f6784;
  font-size: 0.94rem;
  font-weight: 500;
}

body.parent-visual-light #parentView .ai-dashboard-config .ai-generation-field--count > span {
  color: #4ca246;
}

body.parent-visual-light #parentView .ai-dashboard-config .ai-generation-field--types > span {
  color: #b868d8;
}

body.parent-visual-light #parentView .ai-dashboard-config .ai-generation-field--knowledge > label:first-child > span,
body.parent-visual-light #parentView .ai-dashboard-config .ai-generation-field--knowledge > span:first-child {
  color: #b56ad8;
}

body.parent-visual-light #parentView .ai-dashboard-config .ai-generation-field__help {
  margin-top: -2px;
  color: #3d8ca9;
  font-size: 0.67rem !important;
  font-weight: 300 !important;
  line-height: 1.18 !important;
}

body.parent-visual-light #parentView #aiDashboardConfig .ai-generation-field__help {
  font-size: 0.67rem !important;
  font-weight: 300 !important;
  line-height: 1.18 !important;
}

body.parent-visual-light #parentView .ai-dashboard-config .ai-generation-count-trigger,
body.parent-visual-light #parentView .ai-dashboard-config textarea {
  border: 1px solid rgba(61, 140, 169, 0.18);
  background: #ffffff;
  color: #3d8ca9;
}

body.parent-visual-light #parentView .ai-dashboard-config .ai-generation-field--count .ai-generation-count-trigger {
  color: #4ca246;
}

body.parent-visual-light #parentView .ai-dashboard-config textarea {
  width: 100%;
  min-height: 108px;
  padding: 14px;
  border-radius: 16px;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.28;
  resize: vertical;
}

body.parent-visual-light #parentView .ai-dashboard-config textarea::placeholder {
  color: #89a8b6;
  font-size: 0.78rem;
  line-height: 1.24;
}

body.parent-visual-light #parentView .ai-dashboard-config .ai-generation-checkbox {
  color: #3d8ca9;
}

body.parent-visual-light #parentView .ai-dashboard-config .ai-generation-field--checkboxes {
  gap: 8px;
}

body.dashboard-mode-study-guided #parentView .prototype-time-shell,
body.dashboard-mode-study-guided #parentView .ai-generation-field--count,
body.dashboard-mode-study-guided #parentView .ai-generation-field--types,
body.dashboard-mode-study-guided #parentView .apply-test-panel {
  display: none !important;
}

body.dashboard-mode-study-guided #parentView .ai-dashboard-config .ai-generation-field--knowledge > label:first-child > span,
body.dashboard-mode-study-guided #parentView .ai-dashboard-config .ai-generation-field--knowledge > span:first-child {
  color: #ffa31a !important;
}

body.dashboard-mode-tests #parentView .ai-dashboard-config .ai-generation-field--knowledge > label:first-child > span,
body.dashboard-mode-tests #parentView .ai-dashboard-config .ai-generation-field--knowledge > span:first-child {
  color: #ffa31a !important;
}

body.dashboard-mode-study-guided #parentView .ai-dashboard-config {
  margin-top: 10px;
  gap: 16px;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-upload-preview {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin-top: 2px;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area {
  margin-top: 10px;
}

body.parent-visual-light #parentView .ai-dashboard-config .ai-generation-count-menu {
  z-index: 30;
  background: linear-gradient(180deg, rgba(76, 162, 70, 0.96), rgba(101, 184, 95, 0.96));
  box-shadow: 0 14px 26px rgba(62, 126, 58, 0.18);
}

body.parent-visual-light #parentView .import-buttons-container {
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 56px;
  align-items: center;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .import-buttons-container {
  grid-template-columns: auto minmax(0, 1fr);
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .import-buttons-container > .import-button {
  order: 2;
  justify-content: flex-end;
  text-align: right;
}

/* O ícone de pontos era exibido mesmo quando o botão estava pronto e fazia a
   tela parecer travada. O indicador de carregamento continua aparecendo só
   durante a geração, por meio da classe .is-updating. */
body.parent-visual-light.dashboard-mode-study-guided #importCurrentGradeButton:not(.is-updating)::after {
  display: none !important;
}

body.parent-visual-light.dashboard-mode-study-guided #importCurrentGradeButton {
  color: #ff9f1f !important;
}

body.parent-visual-light.dashboard-mode-study-guided #importCurrentGradeButton.is-updating::before {
  border: 2px solid rgba(255, 159, 31, 0.22);
  border-top-color: #ff9f1f;
}

body.parent-visual-light.dashboard-mode-study-guided #importCurrentGradeButton::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='%23ff9f1f'%3E%3Ccircle cx='14' cy='4' r='2.2'/%3E%3Ccircle cx='14' cy='14' r='2.2'/%3E%3Ccircle cx='14' cy='24' r='2.2'/%3E%3Ccircle cx='4' cy='14' r='2.2'/%3E%3Ccircle cx='24' cy='14' r='2.2'/%3E%3Ccircle cx='7.2' cy='7.2' r='2.2'/%3E%3Ccircle cx='20.8' cy='7.2' r='2.2'/%3E%3Ccircle cx='7.2' cy='20.8' r='2.2'/%3E%3Ccircle cx='20.8' cy='20.8' r='2.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .question-bank-preview-shell {
  order: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-camera-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 36px !important;
  height: auto !important;
  padding: 0 !important;
  gap: 5px;
  align-items: center;
  justify-content: flex-start;
  background: transparent !important;
  color: #3d8ca9 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-camera-button[hidden] {
  display: none !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-gallery-button {
  flex: 0 0 auto;
  width: 27px !important;
  min-width: 27px !important;
  min-height: 27px !important;
  height: 27px !important;
  padding: 0 !important;
  margin-left: 6px;
  background: transparent !important;
  color: #3d8ca9 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-gallery-button[hidden] {
  display: none !important;
}

.study-mastery-path-modal {
  width: min(92vw, 440px);
}

.study-mastery-path-modal__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.study-mastery-path-modal__actions .professor-master-alert-modal__button:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .study-mastery-path-modal__actions {
    grid-template-columns: 1fr;
  }

  .study-mastery-path-modal__actions .professor-master-alert-modal__button:last-child {
    grid-column: auto;
  }
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-gallery-button .study-guided-gallery-button__icon {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 27px;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-gallery-button .study-guided-gallery-button__icon svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-camera-button .study-guided-camera-button__icon {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 27px;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-camera-button .study-guided-camera-button__icon svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-test-actions {
  justify-content: flex-end;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-test-actions > .study-guided-test-generate-button {
  justify-content: flex-end;
  text-align: right;
}

body.parent-visual-light #parentView .import-buttons-container button {
  min-height: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

body.parent-visual-light #importCurrentGradeButton {
  justify-content: flex-start;
  gap: 10px;
  min-height: 36px !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ff9f1f !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

body.parent-visual-light #importCurrentGradeButton .import-button__label {
  display: inline-flex;
  align-items: center;
}

body.parent-visual-light.dashboard-mode-study-guided #importCurrentGradeButton .import-button__label {
  font-size: 0.88rem;
  white-space: nowrap;
}

body.parent-visual-light #importCurrentGradeButton::after {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='%23ff9f1f'%3E%3Ccircle cx='14' cy='4' r='2.2'/%3E%3Ccircle cx='14' cy='14' r='2.2'/%3E%3Ccircle cx='14' cy='24' r='2.2'/%3E%3Ccircle cx='4' cy='14' r='2.2'/%3E%3Ccircle cx='24' cy='14' r='2.2'/%3E%3Ccircle cx='7.2' cy='7.2' r='2.2'/%3E%3Ccircle cx='20.8' cy='7.2' r='2.2'/%3E%3Ccircle cx='7.2' cy='20.8' r='2.2'/%3E%3Ccircle cx='20.8' cy='20.8' r='2.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

body.parent-visual-light #importCurrentGradeButton.is-updating::after {
  display: none;
}

body.parent-visual-light #importCurrentGradeButton.is-updating::before {
  border: 2px solid rgba(61, 140, 169, 0.22);
  border-top-color: #3d8ca9;
}

body.parent-visual-light #parentView .import-preview-button {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #3d6f83 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .question-bank-preview-shell {
  grid-column: auto;
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-test-preview-shell {
  justify-content: flex-end;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .import-preview-button.import-preview-button--upload {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 36px !important;
  height: auto !important;
  padding: 0 !important;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  color: #3d8ca9 !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .import-preview-button.import-preview-button--upload-icon-only {
  width: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  height: 24px !important;
  margin-left: 6px;
  gap: 0;
  justify-content: center;
  align-items: center;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .import-preview-button.import-preview-button--upload-icon-only .import-preview-button__upload-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .import-preview-button.import-preview-button--upload-icon-only .import-preview-button__upload-icon svg {
  width: 27px;
  height: 27px;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .import-preview-button.import-preview-button--upload .import-preview-button__upload-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .import-preview-button.import-preview-button--upload .import-preview-button__upload-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView svg.study-action-icon--bold {
  stroke-width: 2.3;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .import-preview-button.import-preview-button--upload .import-preview-button__upload-label {
  display: inline-flex;
  align-items: center;
  color: currentColor;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

body.parent-visual-light #parentView .import-preview-button svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke: none;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .import-preview-button svg.study-action-icon--document,
.study-guided-followup-attachment-menu svg.study-action-icon--document {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleX(1.2);
  transform-origin: center;
}

body.parent-visual-light #parentView .question-bank-preview-card {
  background: rgba(255, 255, 255, 0.98);
}

body.parent-visual-light,
body.parent-visual-light .app-shell,
body.parent-visual-light .mobile-stage,
body.parent-visual-light .dashboard,
body.parent-visual-light #parentView {
  background: #ffffff !important;
}

body.parent-visual-light #parentView .question-bank-preview-title {
  background: #ececec;
  color: #3d8ca9;
}

body.parent-visual-light #parentView .question-bank-preview-content {
  color: #3d8ca9;
}

body.parent-visual-light #manualUnlockButton {
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 7px 0 14px !important;
  border: 1px solid #b7d9e6 !important;
  border-radius: 999px !important;
  background: #2e9ab8 !important;
  color: #ffffff !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body.parent-visual-light #manualUnlockButton:disabled,
body.parent-visual-light #manualUnlockButton[aria-disabled="true"] {
  background: #b9d3dd !important;
  border-color: #cfe1e8 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  cursor: default !important;
  opacity: 0.82 !important;
}

body.parent-visual-light #manualUnlockButton:disabled::after,
body.parent-visual-light #manualUnlockButton[aria-disabled="true"]::after {
  opacity: 0.72 !important;
}

body.parent-visual-light #manualUnlockButton .apply-test-primary-button__label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}

.parent-dashboard-back-button {
  position: absolute;
  left: 20px;
  bottom: 18px;
  margin: 0;
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3d8ca9;
  font-size: 0.96rem;
  font-weight: 500;
}

.parent-dashboard-back-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.parent-dashboard-back-button span {
  line-height: 1;
}

body.parent-visual-light #parentView .post-login-actions {
  gap: 12px;
  margin-top: 18px;
}

body.parent-visual-light #parentView .apply-test-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 0;
  width: 100%;
}

body.parent-visual-light #parentView .apply-test-toggle {
  position: relative;
  width: 92px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #d6d6d6 !important;
  box-shadow: none;
  transition: background 160ms ease;
}

body.parent-visual-light #parentView .apply-test-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, #2c6c8b, #3d8ca9) !important;
}

body.parent-visual-light #parentView .apply-test-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 160ms ease;
}

body.parent-visual-light #parentView .apply-test-toggle[aria-pressed="true"] .apply-test-toggle__thumb {
  transform: translateX(48px);
}

body.parent-visual-light #parentView .apply-test-stack {
  display: grid;
  gap: 14px;
  justify-items: center;
  width: 100%;
}

body.parent-visual-light #parentView .apply-test-row {
  display: block;
}

body.parent-visual-light #parentView .apply-test-row__content {
  display: block;
  min-width: 0;
}

body.parent-visual-light #parentView .apply-test-primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: auto;
  min-width: 154px;
  max-width: 154px;
  min-height: 40px;
  height: 40px;
  padding: 0 7px 0 14px;
  border: 1px solid #b7d9e6;
  border-radius: 999px;
  background: #2e9ab8;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  box-shadow: none;
}

body.parent-visual-light #parentView .apply-test-primary-button::after,
.study-guided-test-apply .apply-test-primary-button::after {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background:
    #ffffff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e9ab8' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 5l7 7-7 7'/%3E%3Cpath d='M13 5l7 7-7 7'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
  box-shadow: 0 0 0 1px rgba(46, 154, 184, 0.18);
}

body.parent-visual-light #parentView .apply-test-primary-button .apply-test-primary-button__label {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-align: left;
  line-height: 1;
}

.study-guided-test-apply .apply-test-primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 150px;
  min-height: 40px;
  height: 40px;
  padding: 0 7px 0 14px;
  border: 1px solid #b7d9e6;
  border-radius: 999px;
  background: #2e9ab8;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  box-shadow: none;
}

body.parent-visual-light #parentView .apply-test-toggle--compact {
  width: 50px;
  height: 20px;
}

body.parent-visual-light #parentView .apply-test-toggle--compact .apply-test-toggle__thumb {
  top: 2px;
  left: 2px;
  width: 20px;
  height: 16px;
}

body.parent-visual-light #parentView .apply-test-toggle--compact[aria-pressed="true"] .apply-test-toggle__thumb {
  transform: translateX(26px);
}

body.parent-visual-light #parentView .apply-test-toggle--danger {
  background: #d96969 !important;
}

body.parent-visual-light #parentView .apply-test-toggle--danger[aria-pressed="true"] {
  background: linear-gradient(135deg, #2f9e5c, #43b66e) !important;
}

body.parent-visual-light #parentView .apply-test-toggle--small,
body.parent-visual-light #parentalControlView .apply-test-toggle--small {
  width: 68px;
  height: 26px;
}

body.parent-visual-light #parentView .apply-test-toggle--small .apply-test-toggle__thumb,
body.parent-visual-light #parentalControlView .apply-test-toggle--small .apply-test-toggle__thumb {
  width: 26px;
  height: 18px;
}

body.parent-visual-light #parentView .apply-test-toggle--small[aria-pressed="true"] .apply-test-toggle__thumb,
body.parent-visual-light #parentalControlView .apply-test-toggle--small[aria-pressed="true"] .apply-test-toggle__thumb {
  transform: translateX(36px);
}

body.parent-visual-light #parentView .parent-stop-button {
  align-self: center;
  border: 0;
  background: transparent;
  color: #7d7d7d;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0;
}

body.parent-visual-light #parentView .parent-hidden-tools {
  display: none !important;
}

body.parent-visual-light #stopTestButton,
body.parent-visual-light #accessToggleButton,
body.parent-visual-light #clearResultsButton {
  background: #ffffff !important;
  color: #444444 !important;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

body.parent-visual-light #parentView #questionBankStatus {
  display: block !important;
  color: #7d7d7d;
  text-align: left;
  white-space: pre-line;
  line-height: 1.35;
  font-size: 0.76rem;
}

body.parent-visual-light #parentalControlView .dashboard {
  display: grid;
  gap: 10px;
}

body.parent-visual-light #parentalControlView .parental-control-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 2px;
}

body.parent-visual-light #parentalControlView .parental-control-brand__logo {
  width: 54px;
  height: auto;
  display: block;
}

body.parent-visual-light #parentalControlView .parental-control-brand__name {
  color: #3d8ca9;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

body.parental-control-standalone-open #parentalControlView {
  position: fixed;
  inset: 0;
  z-index: 1200;
  overflow-y: auto;
  background: #ffffff;
  padding: 24px 14px 28px;
}

body.parental-control-standalone-open #parentalControlView .dashboard {
  width: min(100%, 720px);
  margin: 0 auto;
}

body.parent-visual-light #parentalControlView .parental-control-layout {
  display: grid;
  gap: 30px;
}

body.parent-visual-light #parentalControlView .parental-control-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: grid;
  gap: 16px;
}

body.parent-visual-light #parentalControlView .parental-control-card:first-child {
  margin-top: -8px;
}

body.parent-visual-light #parentalControlView .parental-control-card__header {
  display: block;
}

body.parent-visual-light #parentalControlView .parental-control-card__header > div {
  display: grid;
  gap: 12px;
}

body.parent-visual-light #parentalControlView .parental-control-card__copy {
  display: grid;
  gap: 6px;
}

body.parent-visual-light #parentalControlView .parental-control-card__copy h3,
body.parent-visual-light #parentalControlView .parental-control-card__header h3 {
  margin: 0;
  color: #2f6580;
  font-size: 0.92rem;
  font-weight: 700;
}

body.parent-visual-light #parentalControlView .parental-control-card__header h3 {
  font-size: 1.11rem;
}

body.parent-visual-light #parentalControlView .dashboard-header h2 {
  color: #2f6580;
  text-align: center;
}

body.parent-visual-light #parentalControlView .parental-control-card__copy p,
body.parent-visual-light #parentalControlView .parental-control-card__header p,
body.parent-visual-light #parentalControlView .parental-control-main-status {
  margin: 0;
  color: #6f8d9d;
  font-size: 0.8rem;
  line-height: 1.28;
}

body.parent-visual-light #parentalControlView .parental-control-card[aria-label="Aplicativos bloqueados"] .parental-control-card__copy p {
  font-size: 0.77rem;
}

body.parent-visual-light #parentalControlView .parental-control-main-button {
  border: 0;
  background: transparent;
  padding: 0;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.parent-visual-light #parentalControlView .parental-control-main-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-start;
  align-self: flex-start;
  margin-top: 7px;
  margin-bottom: 4px;
}

body.parent-visual-light #parentalControlView .parental-control-main-button svg {
  width: 36px;
  height: 36px;
  display: block;
}

body.parent-visual-light #parentalControlView .parental-control-main-button__phone {
  fill: none;
  stroke: #d96969;
  stroke-width: 3.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: stroke 160ms ease, fill 160ms ease;
}

body.parent-visual-light #parentalControlView .parental-control-main-button__screen {
  fill: none;
  stroke: #d96969;
  stroke-width: 2.2;
  transition: stroke 160ms ease, fill 160ms ease;
}

body.parent-visual-light #parentalControlView .parental-control-main-button__home {
  stroke: #d96969;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 160ms ease;
}

body.parent-visual-light #parentalControlView .parental-control-main-button[aria-pressed="true"] .parental-control-main-button__phone,
body.parent-visual-light #parentalControlView .parental-control-main-button[aria-pressed="true"] .parental-control-main-button__screen,
body.parent-visual-light #parentalControlView .parental-control-main-button[aria-pressed="true"] .parental-control-main-button__home {
  stroke: #43b66e;
}

body.parent-visual-light #parentalControlView .parental-control-main-status--off {
  color: #d96969;
  font-size: 0.99rem;
  font-weight: 700;
}

body.parent-visual-light #parentalControlView .parental-control-main-status--on {
  color: #43b66e;
  font-size: 0.99rem;
  font-weight: 700;
}

body.parent-visual-light #parentalControlView .parental-control-main-button[aria-pressed="true"] + .parental-control-main-status {
  color: #43b66e;
}

body.parent-visual-light #parentalControlView .parental-control-main-button[aria-pressed="false"] + .parental-control-main-status {
  color: #d96969;
}

body.parent-visual-light #parentalControlView .parental-control-option-list {
  display: grid;
  gap: 12px;
}

body.parent-visual-light #parentalControlView .parental-control-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid #2f6580;
}

body.parent-visual-light #parentalControlView .parental-control-option:first-child {
  padding-top: 0;
  border-top: 0;
}

body.parent-visual-light #parentalControlView .parental-control-option__copy {
  display: grid;
  gap: 4px;
}

body.parent-visual-light #parentalControlView .parental-control-option__copy strong {
  color: #2f6580;
  font-size: 0.92rem;
  font-weight: 600;
}

body.parent-visual-light #parentalControlView .parental-control-option__copy span {
  color: #6f8d9d;
  font-size: 0.76rem;
  line-height: 1.45;
}

body.parent-visual-light #parentalControlView .parental-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.parent-visual-light #parentalControlView #parentalBlockedAppsList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 12px;
  margin-top: 10px;
}

body.parent-visual-light #parentalControlView .parental-checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5b8497;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

body.parent-visual-light #parentalControlView .parental-checkbox-box {
  width: 13px;
  height: 13px;
  border: 1.25px solid #8fc7d7;
  border-radius: 3px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #58b6c5;
  flex: 0 0 13px;
}

body.parent-visual-light #parentalControlView .parental-checkbox-item.is-active .parental-checkbox-box {
  border-color: #8fc7d7;
  background: #ffffff;
}

body.parent-visual-light #parentalControlView .parental-checkbox-box svg {
  width: 8px;
  height: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.parent-visual-light #parentalControlView .parental-checkbox-label {
  line-height: 1.1;
  white-space: nowrap;
}

body.parent-visual-light #parentalControlView .parental-chip {
  border: 1px solid rgba(107, 184, 217, 0.28);
  background: #ffffff;
  color: #5b8497;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
}

body.parent-visual-light #parentalControlView .parental-chip.is-active {
  background: linear-gradient(135deg, #2c6c8b, #3d8ca9);
  color: #ffffff;
  border-color: transparent;
}

body.parent-visual-light #parentalControlView #parentalWeekdayList {
  gap: 14px;
  margin-top: 10px;
}

body.parent-visual-light #parentalControlView #parentalWeekdayList .parental-chip {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: #5b8497;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: none;
}

body.parent-visual-light #parentalControlView #parentalWeekdayList .parental-chip.is-active {
  background: transparent;
  color: #43b66e;
  border-color: transparent;
}

body.parent-visual-light #parentalControlView .parental-chip--soft.is-active {
  background: linear-gradient(135deg, #4fae7e, #67bf90);
}

body.parent-visual-light #parentalControlView .parental-schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
}

body.parent-visual-light #parentalControlView .parental-field {
  display: grid;
  gap: 6px;
}

body.parent-visual-light #parentalControlView .parental-field span,
body.parent-visual-light #parentalControlView .parental-protection-level__label {
  color: #2f6580;
  font-size: 0.85rem;
  font-weight: 600;
}

body.parent-visual-light #parentalControlView .parental-field select,
body.parent-visual-light #parentalControlView .parental-field input {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(107, 184, 217, 0.28);
  border-radius: 14px;
  background: #ffffff !important;
  color: #4e7488;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 500;
}

body.parent-visual-light #parentalControlView .parental-field input:disabled {
  opacity: 0.55;
}

body.parent-visual-light #parentalControlView .parental-protection-level {
  display: grid;
  gap: 10px;
}

body.parent-visual-light #parentalControlView .parental-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.parent-visual-light #parentalControlView .parental-segmented__button {
  border: 1px solid rgba(107, 184, 217, 0.28);
  border-radius: 14px;
  background: #ffffff;
  color: #5b8497;
  padding: 11px 10px;
  font-size: 0.84rem;
  font-weight: 600;
}

body.parent-visual-light #parentalControlView .parental-segmented__button.is-active {
  background: linear-gradient(135deg, #2c6c8b, #3d8ca9);
  color: #ffffff;
  border-color: transparent;
}

body.parent-visual-light #parentalControlView .parental-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

body.parent-visual-light #parentalControlView .parental-report-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

body.parent-visual-light #parentalControlView .parental-report-card span {
  color: #6f8d9d;
  font-size: 0.8rem;
  font-weight: 500;
}

body.parent-visual-light #parentalControlView .parental-report-card strong {
  color: #2f6580;
  font-size: 0.95rem;
  font-weight: 700;
}

body.parent-visual-light #parentalControlView .parental-control-close-button {
  width: 100%;
  border: 1px solid rgba(107, 184, 217, 0.32);
  border-radius: 12px;
  background: #ffffff;
  color: #2f6580;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 390px);
    padding: 10px 0;
  }

  body.parent-visual-light .app-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  body.parent-visual-light .mobile-stage {
    width: 100%;
    max-width: none;
  }

  body.parent-visual-light #parentalControlView .parental-schedule-grid,
  body.parent-visual-light #parentalControlView .parental-report-grid {
    grid-template-columns: 1fr;
  }

  body.parent-visual-light #parentalControlView .parental-segmented {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .view-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .switch-button {
    min-width: 0;
  }

  .phone-frame {
    width: min(100%, 390px);
    min-height: 660px;
    padding: 68px 10px 14px;
  }

  .education-gate {
    padding: 20px;
  }

  .student-panel,
  .result-card {
    grid-template-columns: 1fr;
  }

  .student-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .access-toggle-button {
    width: 100%;
    min-width: 0;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-stack {
    gap: 8px;
  }

  .login-screen {
    padding-top: 24px;
  }

  .login-screen__brand {
    margin-bottom: 42px;
  }

  .login-screen__hero {
    margin-bottom: 48px;
  }

  .register-gate-screen {
    padding: 20px 20px 30px;
  }

  .register-screen {
    padding-top: 18px;
  }

  .register-screen__brand {
    margin-bottom: 64px;
  }


  .question {
    font-size: 1.12rem;
  }
}

@media (max-width: 520px) {
  body.parent-visual-light .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.parent-visual-light .topbar-main {
    gap: 8px;
    min-width: 0;
  }

  body.parent-visual-light .brand {
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
  }

  body.parent-visual-light .brand-logo {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  body.parent-visual-light .brand h1 {
    overflow: hidden;
    font-size: 15px;
    line-height: 1.35;
    padding-block: 2px 3px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.parent-visual-light .topbar-actions {
    flex: 0 0 auto;
    padding-right: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .import-buttons-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(6px, 2vw, 12px);
    min-width: 0;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .question-bank-preview-shell {
    order: 1;
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    flex-wrap: nowrap;
    gap: clamp(8px, 2.4vw, 12px);
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .import-buttons-container > .import-button {
    order: 2;
    flex: 0 0 auto;
    width: auto;
    max-width: 48%;
    justify-content: flex-end;
    text-align: right;
  }

  body.parent-visual-light.dashboard-mode-study-guided #importCurrentGradeButton .import-button__label {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
    white-space: nowrap;
  }

  body.parent-visual-light.dashboard-mode-study-guided #importCurrentGradeButton {
    gap: 6px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #importCurrentGradeButton::after {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-camera-button {
    gap: 4px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-gallery-button,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .import-preview-button.import-preview-button--upload-icon-only {
    margin-left: 0;
  }
}

@media (max-height: 760px) {
  h1 {
    font-size: 1.5rem;
  }

  .app-shell {
    padding: 8px 0;
  }

  .topbar {
    gap: 30px;
    margin-bottom: 14px;
  }

  .switch-button {
    padding: 8px 12px;
  }

  .phone-frame {
    height: auto;
    min-height: 620px;
  }

  .education-gate {
    padding: 16px;
  }

  .step-line {
    margin-bottom: 10px;
  }

  .gate-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1.18rem;
  }

  .score-pill {
    min-height: 38px;
    min-width: 58px;
  }

  .progress-track {
    margin: 14px 0 12px;
  }

  .question {
    min-height: 58px;
    padding: 12px;
    font-size: 1.05rem;
  }

  .answer-list {
    gap: 8px;
  }

  .answer-button {
    min-height: 44px;
  }

  .answer-letter {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .feedback {
    margin: 8px 0;
  }

  .primary-button {
    min-height: 44px;
  }

  .summary-grid {
    gap: 8px;
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  }

  .metric {
    min-height: 76px;
    padding: 10px;
  }

  .metric span {
    margin-bottom: 8px;
    font-size: 0.7rem;
  }

  .metric strong {
    font-size: 1.05rem;
  }

  .metric-compact strong {
    font-size: 0.92rem;
  }
}

@media (max-width: 360px) {
  .app-shell {
    width: min(100% - 12px, 1120px);
  }

  h1 {
    font-size: 1.25rem;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  .education-gate {
    padding: 14px;
  }

  .gate-header {
    gap: 10px;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .question {
    font-size: 1rem;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .summary-stack {
    gap: 6px;
  }

  .metric {
    padding: 8px;
  }

  .metric span {
    font-size: 0.64rem;
  }

  .metric strong {
    font-size: 0.92rem;
  }

  .metric-compact strong {
    font-size: 0.86rem;
  }
}

/* Fundo neutro para o modo bloqueio: remove o visual roxo/lilas do app. */
html,
body,
.app-shell,
.mobile-stage,
.topbar,
.phone-frame,
.phone-frame::before,
.education-gate::before,
.education-gate,
.unlocked-state,
.dashboard {
  background: #000 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.password-gate,
.password-card {
  box-shadow: none !important;
}

/* Modal claro da aplicação de testes */
.phone-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px);
}

.education-gate {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: min(92vw, 760px);
  min-height: auto;
  max-height: min(88vh, 980px);
  padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2.8vw, 28px) clamp(24px, 3vw, 36px);
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 42px rgba(16, 73, 98, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  overflow-y: auto;
}

.education-gate::before {
  display: none;
}

.education-gate {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.education-gate::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.step-line {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.step-line span:first-child {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.score-pill {
  min-width: 52px;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.9rem;
}

.gate-header {
  margin-bottom: 10px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
}

.education-gate .gate-header > div {
  width: 100%;
}

.education-gate h2#gateTitle {
  margin: 0 0 6px;
  color: #ffab2f;
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
}

.gate-subtitle {
  margin: 0;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}

.progress-track {
  height: 6px;
  margin: 10px 0 14px;
  background: rgba(255, 255, 255, 0.72);
}

.progress-bar {
  background: linear-gradient(90deg, #22a7d6, #2f5871);
}

.support-text {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto 30px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(61, 140, 169, 0.08);
  border: 1px solid rgba(61, 140, 169, 0.1);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.question {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto clamp(24px, 3.4vh, 38px);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(61, 140, 169, 0.08);
  border: 1px solid rgba(61, 140, 169, 0.1);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.42;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.question.is-message {
  justify-content: center;
  text-align: center;
}

.answer-list {
  flex: 0 0 auto;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 18px;
}

.answer-button {
  align-items: flex-start;
  gap: 14px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 500;
  box-shadow: none;
}

.answer-button.selected {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.answer-letter {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 4px;
  background: #5b8195;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
}

.answer-button > span:last-child {
  padding-top: 2px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.48;
}

.feedback {
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin: 18px auto 12px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.feedback.success {
  color: #149d59;
  font-weight: 500;
}

.feedback.warning {
  color: #d96b6b;
}

.explanation-box {
  flex: 0 0 auto;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.dissertative-answer-feedback {
  text-align: left;
  color: #275e73;
  font-size: 0.84rem;
  line-height: 1.42;
  font-weight: 400;
}

.dissertative-answer-feedback__section + .dissertative-answer-feedback__section {
  margin-top: 16px;
}

.dissertative-answer-feedback__label {
  display: inline-block;
  margin-bottom: 4px;
  color: #275e73 !important;
}

.dissertative-answer-feedback__label--success {
  color: #4ea64d !important;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

@media (min-width: 640px) {
  .education-gate {
    border-radius: 24px;
  }

  .education-gate h2#gateTitle {
    font-size: 1.45rem;
  }

  .gate-subtitle {
    font-size: 1rem;
  }

  .question {
    font-size: 1rem;
    line-height: 1.5;
  }

  .answer-button > span:last-child,
  .support-text,
  .feedback,
  .explanation-box {
    font-size: 0.96rem;
  }
}

.action-icon {
  display: none;
}

.test-logout-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #3d8ca9;
}

.test-logout-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.test-logout-button:hover,
.test-logout-button:focus-visible {
  background: transparent;
  border-color: transparent;
}

.action-row .primary-button,
.education-gate .primary-button {
  width: min(200px, 100%);
  min-height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f5871, #356d89);
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 900;
}

.test-summary-exit-button {
  width: fit-content;
  min-height: 0;
  margin: 16px 0 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  background-color: transparent !important;
  color: #3d8ca9;
  font-size: 0.98rem;
  font-weight: 500;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  outline: none;
}

.test-summary-exit-button,
.test-summary-exit-button:active,
.test-summary-exit-button:focus,
.test-summary-exit-button:hover,
.test-summary-exit-button:visited {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.test-summary-exit-button::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background:
    transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d8ca9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M14 8l4 4-4 4'/%3E%3Cpath d='M18 12H9'/%3E%3C/svg%3E")
    center / 22px 22px no-repeat;
  box-shadow: none;
  flex: 0 0 24px;
}

.test-summary-exit-button:hover,
.test-summary-exit-button:focus-visible {
  background: transparent;
  color: #2f7d99;
}

.test-journey-evaluation {
  display: grid;
  gap: 12px;
  color: #2f4d58;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  width: 100%;
  max-width: none;
  margin: -44px 0 0;
  padding: 0 0 18px;
  -webkit-user-select: text;
  user-select: text;
}

.test-journey-evaluation--loading {
  min-height: clamp(220px, 48vh, 360px);
  place-items: center;
  padding: 24px 0;
}

.test-journey-evaluation__loading-state {
  display: grid;
  width: fit-content;
  max-width: 86vw;
  justify-items: center;
  gap: 14px;
}

.test-journey-evaluation__loading-title {
  margin: 0;
  color: #3d8ca9;
  font-size: clamp(1.55rem, 6vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.test-journey-evaluation--loading .test-journey-evaluation__hero-progress {
  width: 100%;
  height: 12px;
}

.test-journey-evaluation__top-frame {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
  padding-bottom: 12px;
  border: 1px solid rgba(61, 140, 169, 0.42);
  border-radius: 18px 18px 0 0;
  background: #ffffff;
  overflow: hidden;
}

.test-journey-evaluation__top-frame + .test-journey-evaluation__card--reinforce {
  margin-top: -12px;
}

.test-journey-evaluation * {
  -webkit-user-select: text;
  user-select: text;
}

.test-journey-evaluation__hero-grid {
  display: grid;
  gap: 12px;
}

.test-journey-evaluation__hero {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 0;
  background: #ffffff;
  border: 0;
}

.test-journey-evaluation__hero-header {
  display: grid;
  gap: 20px;
  padding: 34px 18px 14px;
  background: transparent;
  color: var(--test-summary-accent, #ab75e6);
}

.test-journey-evaluation__hero-heading {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.test-journey-evaluation__hero-title {
  margin: 0;
  color: #3d8ca9;
  font-size: 1.72rem;
  font-weight: 400;
  line-height: 1.08;
  text-align: center;
}

.test-journey-evaluation__hero-topic {
  margin: 0;
  color: var(--test-summary-accent, #ab75e6);
  font-size: 1.72rem;
  font-weight: 600;
  line-height: 1.08;
  text-align: center;
}

.test-journey-evaluation__hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.test-journey-evaluation__hero-subject-block {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.test-journey-evaluation__hero-result,
.test-journey-evaluation__hero-subject {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
}

.test-journey-evaluation__hero-result {
  text-align: left;
}

.test-journey-evaluation__hero-subject {
  text-align: right;
}

.test-journey-evaluation__hero-datetime {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.15;
  text-align: right;
}

.test-journey-evaluation__hero-body {
  display: grid;
  gap: 20px;
  padding: 14px 12px 18px;
  background: #ffffff;
}

.test-journey-evaluation__hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.test-journey-evaluation__hero-metric-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  min-height: 126px;
  padding: 12px 12px 12px;
  border: 1px solid color-mix(in srgb, var(--test-summary-accent, #ab75e6) 60%, #ffffff 40%);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--test-summary-accent, #ab75e6) 10%, transparent);
  text-align: center;
  position: relative;
  grid-template-rows: auto auto auto 1fr auto;
}

.test-journey-evaluation__hero-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  top: 12px;
  left: 12px;
}

.test-journey-evaluation__hero-metric-card--correct .test-journey-evaluation__hero-metric-icon,
.test-journey-evaluation__hero-metric-icon--correct {
  background-color: #b76cff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.2 12.3l3.5 3.7L17.8 8'/%3E%3C/svg%3E");
}

.test-journey-evaluation__hero-metric-card--wrong .test-journey-evaluation__hero-metric-icon,
.test-journey-evaluation__hero-metric-icon--wrong {
  background-color: #ff4d4f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.2 12.3l3.5 3.7L17.8 8'/%3E%3C/svg%3E");
}

.test-journey-evaluation__hero-metric-card--score .test-journey-evaluation__hero-metric-icon,
.test-journey-evaluation__hero-metric-icon--score {
  background-color: #ffb02f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4.6l7.6 13.2H4.4L12 4.6z' stroke='%23ffffff' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M12 9v4.5' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.6' r='1' fill='%23ffffff'/%3E%3C/svg%3E");
}

.test-journey-evaluation__hero-metric-card--content .test-journey-evaluation__hero-metric-icon,
.test-journey-evaluation__hero-metric-icon--content {
  background-color: #6bb85f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M4.8 6.5c0-.8.7-1.5 1.5-1.5h4.9c.5 0 1 .2 1.3.6.3-.4.8-.6 1.3-.6h4.9c.8 0 1.5.7 1.5 1.5v10.8c0 .3-.2.5-.5.5h-5.9c-.5 0-.9.2-1.3.5-.4-.3-.8-.5-1.3-.5H5.3c-.3 0-.5-.2-.5-.5V6.5zm7 0v9.7c.3-.2.7-.3 1.1-.3h5.1V6.7H13c-.4 0-.8.2-1.1.5-.1.1-.1.1-.1.2v-.9zm-1.6.9c0-.1 0-.1-.1-.2-.3-.3-.7-.5-1.1-.5H6v9.2h5.1c.4 0 .8.1 1.1.3V7.4z'/%3E%3C/svg%3E");
  background-size: 12px 12px;
}

.test-journey-evaluation__hero-metric-label {
  color: var(--test-summary-accent, #ab75e6);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 24px;
}

.test-journey-evaluation__hero-metric-value {
  color: color-mix(in srgb, var(--test-summary-accent, #ab75e6) 78%, #2f4d58 22%);
  display: none;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}

.test-journey-evaluation__hero-metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--test-summary-accent, #ab75e6);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
}

.test-journey-evaluation__hero-metric-caption {
  color: color-mix(in srgb, var(--test-summary-accent, #ab75e6) 70%, #ffffff 30%);
  font-size: 0.46rem;
  font-weight: 700;
  line-height: 1.25;
  max-width: 82px;
}

.test-journey-evaluation__hero-metric-bar {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: #e7e7e7;
  overflow: hidden;
  margin-top: auto;
}

.test-journey-evaluation__hero-metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--test-summary-accent, #ab75e6) 82%, #ffffff 18%) 0%,
    var(--test-summary-accent, #ab75e6) 100%
  );
}

.test-journey-evaluation__hero-metric-card--content {
  gap: 8px;
}

.test-journey-evaluation__hero-metric-card--content .test-journey-evaluation__hero-metric-icon {
  top: 8px;
  left: 12px;
}

.test-journey-evaluation__hero-metric-card--content .test-journey-evaluation__hero-metric-value {
  display: block;
  font-size: 0.9rem;
  margin-top: 24px;
}

.test-journey-evaluation__hero-metric-card--content .test-journey-evaluation__hero-metric-label {
  display: none;
}

.test-journey-evaluation__hero-metric-card--content .test-journey-evaluation__hero-metric-caption {
  font-size: 0.46rem;
  max-width: 90px;
}

.test-journey-evaluation__hero-analysis {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 14px;
}

.test-journey-evaluation__hero-analysis-title {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.test-journey-evaluation__hero-progress {
  width: min(170px, 62vw);
  height: 8px;
  border-radius: 999px;
  background: #eaf2f7;
  overflow: hidden;
}

.test-journey-evaluation__hero-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66d5ea 0%, #3d8ca9 100%);
}

.test-journey-evaluation__hero-progress-fill.is-loading {
  width: 44%;
  animation: testJourneyLoadingBar 1.2s ease-in-out infinite;
}

.test-journey-evaluation__hero-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.test-journey-evaluation__hero-profile-copy {
  color: #3d8ca9;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.test-journey-evaluation__hero-profile-value {
  display: inline-flex;
  align-items: center;
  color: var(--test-summary-accent, #ab75e6);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.test-journey-evaluation__card {
  display: grid;
  gap: 10px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(61, 140, 169, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.test-journey-evaluation__card--summary {
  gap: 12px;
}

.test-journey-evaluation__card--loading,
.test-journey-evaluation__card--warning {
  background: rgba(247, 252, 255, 0.96);
}

.test-journey-evaluation__card--learned {
  gap: 12px;
  padding: 14px 0 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
}

.test-journey-evaluation__card--interest {
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  margin-top: 12px;
}

.test-journey-evaluation__card--reinforce {
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
  margin-top: 0;
}

.test-journey-evaluation__title {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.test-journey-evaluation__card--learned .test-journey-evaluation__title {
  color: #3d8ca9 !important;
  font-size: 0.98rem;
  font-weight: 800;
  text-align: center;
}

.test-journey-evaluation__interest-heading {
  display: block;
  padding-left: 40px;
}

.test-journey-evaluation__card--interest .test-journey-evaluation__title {
  color: #3d8ca9 !important;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.22;
  text-align: left;
}

.test-journey-evaluation__reinforce-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.test-journey-evaluation__reinforce-icon {
  display: block;
  width: 72px;
  height: 72px;
  color: #3d8ca9;
  background: currentColor;
  -webkit-mask: url("assets/test-result-reinforcement-icon.svg?v=20260725-1") 50% 43.5% / 207% 207% no-repeat;
  mask: url("assets/test-result-reinforcement-icon.svg?v=20260725-1") 50% 43.5% / 207% 207% no-repeat;
}

.test-journey-evaluation__card--reinforce .test-journey-evaluation__title {
  color: #3d8ca9;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: clamp(1.2rem, 4.4vw, 1.72rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
  text-align: left;
}

.test-journey-evaluation__reinforce-header .test-journey-evaluation__title {
  color: #3d8ca9 !important;
  margin: 0;
}

@media (max-width: 520px) {
  .test-journey-evaluation__reinforce-header {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 0 4px;
  }

  .test-journey-evaluation__reinforce-icon {
    width: 52px;
    height: 52px;
  }

  .test-journey-evaluation__card--reinforce .test-journey-evaluation__title {
    font-size: 1.08rem;
  }
}

.test-journey-evaluation__reinforce-body {
  padding: 14px 18px 16px;
  background: #ffffff;
}

.test-journey-evaluation__reinforce-body > .test-journey-evaluation__list,
.test-journey-evaluation__reinforce-body > .test-journey-evaluation__empty {
  width: min(100%, 760px);
  box-sizing: border-box;
  margin-inline: auto;
  text-align: left;
}

.test-journey-evaluation__reinforcement-invitation {
  display: grid;
  justify-items: stretch;
  gap: 30px;
  width: 100%;
  margin: 28px auto 4px;
}

.test-journey-evaluation__reinforcement-invitation-header {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 18px;
  width: fit-content;
  max-width: 100%;
}

.test-journey-evaluation__reinforcement-illustration {
  display: block;
  flex: 0 0 82px;
  width: 82px;
  aspect-ratio: 34 / 35;
  height: auto;
  object-fit: contain;
}

.test-journey-evaluation__reinforcement-invitation-title {
  margin: 0;
  color: #3d8ca9;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: clamp(1.7rem, 7vw, 2rem);
  font-weight: 400;
  line-height: 1.12;
}

.test-journey-evaluation__reinforcement-copy {
  width: 100%;
  margin: 0;
  padding: 0 18px;
  box-sizing: border-box;
  color: #75b59e;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.52;
  text-align: left;
}

.test-journey-evaluation__completion {
  display: grid;
  gap: 34px;
  width: min(100%, 470px);
  margin: 36px auto 8px;
  padding: 0 18px 20px;
  box-sizing: border-box;
  color: var(--test-summary-accent, #3d8ca9);
}

.test-journey-evaluation__completion-copy {
  margin: 0;
  color: inherit;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.52;
  text-align: left;
}

.test-journey-evaluation__completion-copy:not(.is-perfect) {
  padding-inline-start: 22px;
  box-sizing: border-box;
}

.test-journey-evaluation__completion-copy.is-perfect {
  display: grid;
  gap: 14px;
}

.test-journey-evaluation__completion-copy.is-perfect strong {
  color: inherit;
  font-weight: 600;
}

.test-journey-evaluation__completion-copy.is-reinforcement-perfect {
  color: #75b59e;
  padding-inline-start: 22px;
  box-sizing: border-box;
  text-align: left;
}

.test-journey-evaluation__completion-copy.is-reinforcement-perfect > * {
  width: 100%;
}

.test-journey-evaluation__completion-actions {
  display: grid;
  justify-self: center;
  gap: 12px;
  width: min(100%, 320px);
}

.test-journey-evaluation__completion-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 18px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.test-journey-evaluation__completion-action:hover:not(.is-disabled) {
  background: color-mix(in srgb, currentColor 8%, transparent);
  transform: translateY(-1px);
}

.test-journey-evaluation__completion-action:focus-visible {
  outline: 3px solid color-mix(in srgb, currentColor 25%, transparent);
  outline-offset: 3px;
}

.test-journey-evaluation__completion-action.is-disabled,
.test-journey-evaluation__completion-action[aria-disabled="true"] {
  border-color: #9ca3aa;
  color: #9ca3aa;
  cursor: pointer;
  opacity: 0.68;
}

.test-journey-evaluation__completion-action[aria-busy="true"] > span:first-child {
  opacity: 0;
}

.test-journey-evaluation__completion-action[aria-busy="true"]
  .test-journey-evaluation__reinforcement-loading {
  border-color: currentColor;
  color: inherit;
  opacity: 1;
}

body[data-app-theme="dark"] .test-journey-evaluation__completion {
  color: var(--test-summary-accent, #3d8ca9);
}

body[data-app-theme="dark"] .test-journey-evaluation__completion-action.is-disabled,
body[data-app-theme="dark"] .test-journey-evaluation__completion-action[aria-disabled="true"] {
  border-color: #6f7982;
  color: #87919a;
}

@media (max-width: 520px) {
  .test-journey-evaluation__completion {
    width: 100%;
    padding-inline: 18px;
  }

  .test-journey-evaluation__completion-actions {
    width: min(100%, 286px);
  }
}

body[data-app-theme="dark"] .test-journey-evaluation__reinforcement-copy {
  color: #75b59e !important;
}

.test-journey-evaluation__reinforcement-actions {
  display: grid;
  justify-self: center;
  gap: 12px;
  width: min(100%, 230px);
}

.test-journey-evaluation__reinforcement-action {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.test-journey-evaluation__reinforcement-action img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 160ms ease;
}

.test-journey-evaluation__reinforcement-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid #3d8ca9;
  border-radius: inherit;
  color: #3d8ca9;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.test-journey-evaluation__reinforcement-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(61, 140, 169, 0.25);
  border-top-color: #3d8ca9;
  border-radius: 50%;
  animation: reinforcement-button-spin 720ms linear infinite;
}

.test-journey-evaluation__reinforcement-action[aria-busy="true"] img {
  opacity: 0;
}

.test-journey-evaluation__reinforcement-action[aria-busy="true"]
  .test-journey-evaluation__reinforcement-loading {
  opacity: 1;
}

.test-journey-evaluation__reinforcement-action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.test-journey-evaluation__reinforcement-action:focus-visible {
  outline: 3px solid rgba(61, 140, 169, 0.28);
  outline-offset: 4px;
  border-radius: 999px;
}

.test-journey-evaluation__reinforcement-action:disabled {
  cursor: default;
  opacity: 0.48;
}

.test-journey-evaluation__reinforcement-action[aria-busy="true"]:disabled {
  cursor: wait;
  opacity: 1;
}

@keyframes reinforcement-button-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .test-journey-evaluation__reinforcement-spinner {
    animation: none;
  }
}

@media (max-width: 520px) {
  .test-journey-evaluation__reinforcement-invitation {
    width: 100%;
    margin-top: 24px;
  }

  .test-journey-evaluation__reinforcement-illustration {
    flex-basis: 76px;
    width: 76px;
  }

  .test-journey-evaluation__reinforcement-actions {
    width: min(100%, 218px);
  }
}

.test-journey-evaluation__consolidated {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.test-journey-evaluation__consolidated.is-completed,
.test-journey-evaluation__overview-learned .test-journey-evaluation__consolidated.is-completed,
.test-journey-evaluation__comparison-inline .test-journey-evaluation__consolidated.is-completed,
.study-guided-history-detail__reinforcement-consolidated {
  color: #75b59e !important;
  text-align: center;
}

.test-journey-evaluation__card--comparison {
  display: grid;
  gap: 16px;
  padding: 20px 18px;
  border: 1px solid rgba(61, 140, 169, 0.22);
  background: transparent;
}

.test-journey-evaluation__comparison-inline {
  display: grid;
  gap: 18px;
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 4px 0 16px;
  border: 0;
  background: transparent;
}

.test-journey-evaluation__comparison-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 16px auto 20px;
  padding: 20px 18px 12px;
  border: 1px solid #3d8ca9;
  border-radius: 14px;
  background: #ffffff;
}

.test-journey-evaluation__comparison-scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
  color: #3d8ca9;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
}

.test-journey-evaluation__comparison-scores strong {
  display: block;
  margin-top: 4px;
  color: #3d8ca9;
  font-size: 1.08rem;
  font-weight: 400;
}

.test-journey-evaluation__comparison-score--initial,
.test-journey-evaluation__comparison-score--initial strong,
.test-journey-evaluation__comparison-score--reinforcement.is-not-improved,
.test-journey-evaluation__comparison-score--reinforcement.is-not-improved strong {
  color: #da7b7b;
}

.test-journey-evaluation__comparison-score--reinforcement.is-improved,
.test-journey-evaluation__comparison-score--reinforcement.is-improved strong {
  color: #75b59e;
}

body[data-app-theme="dark"] .test-journey-evaluation__comparison-score--initial,
body[data-app-theme="dark"] .test-journey-evaluation__comparison-score--initial strong,
body[data-app-theme="dark"] .test-journey-evaluation__comparison-score--reinforcement.is-not-improved,
body[data-app-theme="dark"] .test-journey-evaluation__comparison-score--reinforcement.is-not-improved strong {
  color: #da7b7b !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__comparison-score--reinforcement.is-improved,
body[data-app-theme="dark"] .test-journey-evaluation__comparison-score--reinforcement.is-improved strong {
  color: #75b59e !important;
}

.test-journey-evaluation__comparison-status {
  margin: 0;
  color: #3d8ca9;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.test-journey-evaluation__comparison-group {
  display: grid;
  gap: 8px;
}

.test-journey-evaluation__comparison-group > strong {
  color: #da7b7b;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  text-align: center;
}

.test-journey-evaluation__comparison-inline .test-journey-evaluation__consolidated {
  text-align: center;
}

@media (max-width: 520px) {
  .test-journey-evaluation__comparison-inline {
    width: 100%;
  }

  .test-journey-evaluation__comparison-body {
    gap: 12px;
    padding: 17px 10px 11px;
  }

  .test-journey-evaluation__comparison-scores {
    gap: 8px;
    font-size: 0.78rem;
  }

  .test-journey-evaluation__comparison-scores strong {
    font-size: 0.96rem;
  }

  .test-journey-evaluation__comparison-status {
    font-size: 0.68rem;
  }
}

.test-journey-evaluation__interest-copy {
  margin: 0;
  padding: 2px 18px 0 40px;
  color: #3d3d3d;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

.test-journey-evaluation__learned-panel {
  padding: 22px 24px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #2c6c8b 0%, #3d8ca9 100%);
  box-shadow: 0 6px 14px rgba(61, 140, 169, 0.12);
}

.test-journey-evaluation__top-frame--overview {
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.test-journey-evaluation__overview {
  display: grid;
  gap: 30px;
  padding: 18px 10px 30px;
  background: transparent;
  color: #3d8ca9;
}

.test-journey-evaluation__overview-header,
.test-journey-evaluation__overview-interest-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.test-journey-evaluation__overview-icon,
.test-journey-evaluation__overview-interest-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: #3d8ca9;
}

.test-journey-evaluation__overview-interest-icon {
  width: 64px;
  height: 64px;
}

.test-journey-evaluation__overview-icon {
  background: currentColor;
  -webkit-mask: url("assets/test-result-completed-icon.svg?v=20260727-2") center / contain no-repeat;
  mask: url("assets/test-result-completed-icon.svg?v=20260727-2") center / contain no-repeat;
}

.test-journey-evaluation__overview-icon svg,
.test-journey-evaluation__overview-interest-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.test-journey-evaluation__overview-interest-icon .test-journey-evaluation__overview-interest-happy {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: url("assets/test-result-interest-happy.png?v=20260724-1") 44% 53% / 340% 340% no-repeat;
  mask: url("assets/test-result-interest-happy.png?v=20260724-1") 44% 53% / 340% 340% no-repeat;
}

.test-journey-evaluation__overview-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.test-journey-evaluation__overview-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  padding: 0;
}

.test-journey-evaluation__overview-title,
.test-journey-evaluation__overview-score,
.test-journey-evaluation__overview-interest-title {
  color: #3d8ca9 !important;
}

.test-journey-evaluation__overview-title {
  margin: 0;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: clamp(1.2rem, 4.4vw, 1.72rem);
  font-weight: 400;
  line-height: 1.16;
  text-align: left;
}

.test-journey-evaluation__overview-title span {
  color: var(--test-summary-accent, #3d8ca9) !important;
  font-weight: 500;
}

.test-journey-evaluation__overview-score {
  font-size: clamp(1.2rem, 4.4vw, 1.72rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.test-journey-evaluation__overview-learned {
  width: min(100%, 760px);
  box-sizing: border-box;
  margin-inline: auto;
  padding: 10px 18px 0;
  text-align: left;
}

.test-journey-evaluation__overview-learned .test-journey-evaluation__list,
.test-journey-evaluation__overview-interest-body .test-journey-evaluation__list {
  padding: 0;
  list-style: none;
}

.test-journey-evaluation__overview-learned .test-journey-evaluation__list {
  display: grid;
  gap: 20px;
  margin: 0;
}

.test-journey-evaluation__correct-question-list {
  display: grid;
  gap: 22px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.test-journey-evaluation__correct-question-item {
  display: grid;
  gap: 9px;
  position: relative;
  padding: 0 12px 0 26px;
  color: #111111;
  font-size: 0.9rem;
  line-height: 1.42;
  text-align: left;
}

.test-journey-evaluation__correct-question-item::before {
  position: absolute;
  top: 0;
  left: 7px;
  color: #3d8ca9;
  content: "•";
}

.test-journey-evaluation__correct-question-item > strong {
  color: var(--test-summary-accent, #3d8ca9);
  font-size: 0.92rem;
  font-weight: 400;
}

.test-journey-evaluation__correct-question-item > div {
  display: grid;
  gap: 3px;
}

.test-journey-evaluation__correct-question-item > div > span {
  color: #3d8ca9;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
}

.test-journey-evaluation__correct-question-item p {
  margin: 0;
  color: #111111;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.48;
  text-align: left;
}

.test-journey-evaluation__correct-question-item .study-guided-inline-highlight {
  font-weight: 400;
}

.test-journey-evaluation__overview-learned .test-journey-evaluation__list li {
  position: relative;
  padding: 0 12px 0 26px;
  color: #111111;
  font-size: 0.9rem;
  line-height: 1.42;
}

.test-journey-evaluation__overview-learned .test-journey-evaluation__list li::before,
.test-journey-evaluation__overview-learned .test-journey-evaluation__empty::before,
.test-journey-evaluation__overview-learned .test-journey-evaluation__consolidated::before,
.test-journey-evaluation__overview-interest-body .test-journey-evaluation__list li::before {
  position: absolute;
  left: 7px;
  color: #3d8ca9;
  content: "•";
}

.test-journey-evaluation__overview-learned .test-journey-evaluation__empty,
.test-journey-evaluation__overview-learned .test-journey-evaluation__consolidated {
  position: relative;
  margin: 0;
  padding: 0 12px 0 26px;
  color: #111111;
  font-size: 0.9rem;
  line-height: 1.42;
}

.test-journey-evaluation__reinforcement-review {
  display: grid;
  gap: 30px;
}

.test-journey-evaluation__reinforcement-review-group {
  display: grid;
  gap: 14px;
}

.test-journey-evaluation__reinforcement-review-group > h4 {
  margin: 0;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}

.test-journey-evaluation__reinforcement-review-group.is-correct > h4 {
  color: #75b59e;
}

.test-journey-evaluation__reinforcement-review-group.is-pending > h4 {
  color: #da7b7b;
}

.test-journey-evaluation__reinforcement-review-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.test-journey-evaluation__reinforcement-review-item {
  display: grid;
  gap: 12px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(61, 140, 169, 0.2);
  color: #111111;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  text-align: left;
}

.test-journey-evaluation__reinforcement-review-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.test-journey-evaluation__reinforcement-review-item h5 {
  margin: 0;
  color: var(--test-summary-accent, #3d8ca9);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
}

.test-journey-evaluation__reinforcement-review-item > div {
  display: grid;
  gap: 4px;
}

.test-journey-evaluation__reinforcement-review-item strong {
  color: #3d8ca9;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}

.test-journey-evaluation__reinforcement-review-item strong.is-selected {
  color: #cf6173;
}

.test-journey-evaluation__reinforcement-review-item strong.is-correct {
  color: #75b59e;
}

.test-journey-evaluation__reinforcement-review-item p {
  margin: 0;
  color: #111111;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.52;
}

.test-journey-evaluation__overview-learned
  .test-journey-evaluation__reinforcement-review-group
  .test-journey-evaluation__empty {
  padding-left: 0;
}

.test-journey-evaluation__overview-learned
  .test-journey-evaluation__reinforcement-review-group
  .test-journey-evaluation__empty::before {
  content: none;
}

.test-journey-evaluation__overview-interest {
  display: grid;
  gap: 20px;
}

.test-journey-evaluation__overview-interest-body {
  display: grid;
  gap: 0;
  margin-left: 0;
  padding: 10px 18px 0;
}

.test-journey-evaluation__overview-interest-title {
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: clamp(1.2rem, 4.4vw, 1.72rem);
  font-weight: 400;
  line-height: 1.16;
}

.test-journey-evaluation__overview-interest-body .test-journey-evaluation__list {
  margin: 0;
}

.test-journey-evaluation__overview-interest-body .test-journey-evaluation__list li {
  position: relative;
  padding: 0 12px 0 26px;
  color: #111111;
  font-size: 0.9rem;
  line-height: 1.42;
}

@media (max-width: 520px) {
  .test-journey-evaluation__overview {
    gap: 24px;
    padding: 14px 4px 24px;
  }

  .test-journey-evaluation__overview-header,
  .test-journey-evaluation__overview-interest-header {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .test-journey-evaluation__overview-icon,
  .test-journey-evaluation__overview-interest-icon {
    width: 52px;
    height: 52px;
  }

  .test-journey-evaluation__overview-learned,
  .test-journey-evaluation__overview-interest-body {
    margin-inline: auto;
  }

  .test-journey-evaluation__overview-title,
  .test-journey-evaluation__overview-score,
  .test-journey-evaluation__overview-interest-title {
    font-size: 1.08rem;
  }
}

body[data-app-theme="light"] .test-journey-evaluation__learned-panel .test-journey-evaluation__consolidated {
  color: #ffffff !important;
}

.test-journey-evaluation__summary-grid,
.test-journey-evaluation__result-grid,
.test-journey-evaluation__indicators {
  display: grid;
  gap: 10px;
}

.test-journey-evaluation__summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.test-journey-evaluation__result-grid,
.test-journey-evaluation__indicators {
  grid-template-columns: minmax(0, 1fr);
}

.test-journey-evaluation__summary-item,
.test-journey-evaluation__result-item,
.test-journey-evaluation__indicator {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f9fc;
}

.test-journey-evaluation__profile-inline {
  display: grid;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.test-journey-evaluation__result-item--wide {
  grid-column: 1 / -1;
}

.test-journey-evaluation__summary-label,
.test-journey-evaluation__result-label,
.test-journey-evaluation__indicator-label {
  color: rgba(72, 102, 114, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.test-journey-evaluation__summary-value,
.test-journey-evaluation__result-value,
.test-journey-evaluation__indicator-value {
  color: #557b8c;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}

.test-journey-evaluation__list,
.test-journey-evaluation__domain-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.test-journey-evaluation__list li,
.test-journey-evaluation__domain-list li {
  color: #111111;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.52;
  text-align: left;
}

.test-journey-evaluation__card--learned .test-journey-evaluation__list {
  padding-left: 20px;
  gap: 18px;
}

.test-journey-evaluation__card--learned .test-journey-evaluation__list li,
.test-journey-evaluation__card--learned .test-journey-evaluation__empty {
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.52;
}

.test-journey-evaluation__card--learned .test-journey-evaluation__empty {
  margin: 0;
  text-align: left;
}

.test-journey-evaluation__card--reinforce .test-journey-evaluation__list {
  padding-left: 18px;
  gap: 18px;
}

.test-journey-evaluation__card--reinforce .test-journey-evaluation__list li,
.test-journey-evaluation__card--reinforce .test-journey-evaluation__empty {
  color: #4a4a4a;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.48;
}

.test-journey-evaluation__review-prefix {
  color: var(--test-summary-accent, #3f93ae);
}

.test-journey-evaluation__reinforcement-content-excerpt {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 9px 12px;
  border-left: 3px solid color-mix(in srgb, var(--test-summary-accent, #3f93ae) 68%, transparent);
  background: color-mix(in srgb, var(--test-summary-accent, #3f93ae) 7%, transparent);
}

.test-journey-evaluation__reinforcement-content-excerpt > span {
  color: var(--test-summary-accent, #3f93ae);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
}

.test-journey-evaluation__reinforcement-content-excerpt p {
  margin: 0;
  color: #333333;
  font-size: 0.82rem;
  line-height: 1.5;
}

.test-journey-evaluation__reinforcement-source-highlight {
  display: inline;
  padding: 0.04em 0.12em;
  border-radius: 0.18em;
  background: color-mix(in srgb, var(--test-summary-accent, #3f93ae) 26%, transparent);
  color: inherit;
}

.test-journey-evaluation__review-highlight {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.08em 0.12em;
  background-image: linear-gradient(
    color-mix(in srgb, var(--test-summary-accent, #3f93ae) 34%, transparent),
    color-mix(in srgb, var(--test-summary-accent, #3f93ae) 34%, transparent)
  );
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: test-review-highlight-sweep 720ms ease-out forwards;
  animation-delay: calc(180ms + (var(--review-highlight-index, 0) * 220ms));
}

@keyframes test-review-highlight-sweep {
  from {
    background-size: 0% 100%;
  }

  to {
    background-size: 100% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .test-journey-evaluation__review-highlight {
    animation: none;
    background-size: 100% 100%;
  }
}

.study-guided-history-step-reflections {
  display: grid;
  gap: 14px;
}

.study-guided-history-step-reflection {
  padding: 14px 16px;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 12px;
  background: rgba(61, 140, 169, 0.035);
}

.study-guided-history-step-reflection h6,
.study-guided-history-step-reflection strong {
  display: block;
  margin: 0 0 7px;
  color: #3d8ca9;
  font: inherit;
  font-weight: 600;
}

.study-guided-history-step-reflection p {
  margin: 0;
  line-height: 1.55;
}

/* Destaques da explicação permanecem dentro do mesmo parágrafo do ponto. */
.study-guided-history-step-reflection .study-guided-history-detail__text strong {
  display: inline;
  margin: 0;
  color: inherit;
  font-weight: 700;
}

.test-journey-evaluation__card--reinforce .test-journey-evaluation__empty {
  margin: 0;
  text-align: left;
}

.test-journey-evaluation__card--consultor-callout {
  gap: 0;
  padding: 16px 0 0;
  border: 0;
  background: transparent;
}

.test-journey-evaluation__consultor-callout {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  font-family: "Roboto Embedded", Roboto, Arial, sans-serif;
  text-align: center;
}

.test-journey-evaluation__consultor-heading {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  color: #3d8ca9;
  font-size: clamp(1.2rem, 5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
}

.test-journey-evaluation__consultor-heading img {
  width: 25px;
  height: auto;
}

.test-journey-evaluation__consultor-field {
  display: grid;
  grid-template-columns: auto 14px 1fr;
  align-items: center;
  gap: 3px;
  width: min(76%, 260px);
  min-height: 34px;
  margin: 0 auto;
  padding: 0 9px;
  border: 1px solid rgba(61, 140, 169, 0.42);
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(61, 140, 169, 0.1);
  color: #6aa8be;
  font-size: 0.68rem;
  font-weight: 400;
  text-align: left;
}

.test-journey-evaluation__consultor-spark {
  width: 14px;
  height: auto;
}

.test-journey-evaluation__consultor-logo {
  justify-self: end;
  width: 20px;
  height: 20px;
}

.test-journey-evaluation__consultor-message {
  margin: 6px 8px 0;
  color: #348ba8;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.3;
}

.test-journey-evaluation__consultor-note {
  margin: 0 16px;
  color: #ff7d3d;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.35;
}

.test-journey-evaluation__consultor-note span {
  color: #348ba8;
}

.test-journey-evaluation__domain-list {
  padding-left: 0;
  list-style: none;
  gap: 10px;
}

.test-journey-evaluation__domain-list li {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: flex-start;
  gap: 6px;
}

.test-journey-evaluation__domain-dot {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 0.42rem;
  line-height: 1.1;
  opacity: 0.62;
  transform: translateY(3px);
}

.test-journey-evaluation__domain-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.test-journey-evaluation__domain-status {
  color: #556f79;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.test-journey-evaluation__domain-topic {
  color: #657d86;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.test-journey-evaluation__paragraph,
.test-journey-evaluation__loading-text,
.test-journey-evaluation__empty {
  margin: 0;
  color: #111111;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.52;
  text-align: left;
}

.test-journey-evaluation__loading-text {
  color: #5b8195;
}

.test-journey-evaluation__loading-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 2px 0 4px;
}

.test-journey-evaluation__loading-panel .test-journey-evaluation__loading-text {
  text-align: center;
}

.test-journey-evaluation__loading-bar {
  width: min(160px, 62vw);
  height: 8px;
  border-radius: 999px;
  background: #eef6fa;
  overflow: hidden;
}

.test-journey-evaluation__loading-bar-fill {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66d5ea 0%, #3d8ca9 100%);
  animation: testJourneyLoadingBar 1.2s ease-in-out infinite;
}

@keyframes testJourneyLoadingBar {
  0% {
    transform: translateX(-70%);
  }
  50% {
    transform: translateX(65%);
  }
  100% {
    transform: translateX(-70%);
  }
}

.test-journey-evaluation__errors {
  display: grid;
  gap: 12px;
  padding: 0 10px;
}

.test-journey-evaluation__card--error-summary {
  gap: 12px;
  margin-top: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
}

.test-journey-evaluation__card--error-summary > * {
  position: relative;
  z-index: 1;
}

.test-journey-evaluation__card--error-summary::before,
.test-journey-evaluation__card--error-summary::after {
  content: "";
  position: absolute;
  top: -14px;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  pointer-events: none;
  z-index: 0;
}

.test-journey-evaluation__card--error-summary::before {
  left: -1px;
}

.test-journey-evaluation__card--error-summary::after {
  right: -1px;
}

.test-journey-evaluation__error-summary-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 10px;
}

.test-journey-evaluation__error-summary-icon {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
}

.test-journey-evaluation__error-summary-icon img {
  position: absolute;
  top: 50%;
  left: 54%;
  display: block;
  width: 250%;
  height: 250%;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.test-journey-evaluation__card--error-summary .test-journey-evaluation__title {
  color: #3d8ca9 !important;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: clamp(1.2rem, 4.4vw, 1.72rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
  text-align: left;
  margin: 0;
  padding: 0;
}

@media (max-width: 520px) {
  .test-journey-evaluation__error-summary-header {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 0 4px;
  }

  .test-journey-evaluation__error-summary-icon {
    width: 52px;
    height: 52px;
  }

  .test-journey-evaluation__card--error-summary .test-journey-evaluation__title {
    font-size: 1.08rem;
  }
}

.test-journey-evaluation__error-drop {
  border: 1px solid rgba(61, 140, 169, 0.32);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.test-journey-evaluation__error-drop-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  color: #3d8ca9;
  font-size: 0.92rem;
  font-weight: 400;
}

.test-journey-evaluation__error-drop-summary::-webkit-details-marker {
  display: none;
}

.test-journey-evaluation__error-drop-label {
  display: inline-flex;
  align-items: center;
  color: #3d8ca9 !important;
}

.test-journey-evaluation__error-drop-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d8ca9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    center / 10px 10px no-repeat;
  transition: transform 0.18s ease;
}

.test-journey-evaluation__error-drop[open] .test-journey-evaluation__error-drop-chevron {
  transform: rotate(180deg);
}

.test-journey-evaluation__error-drop-panel {
  display: grid;
  gap: 16px;
  padding: 6px 16px 16px;
}

.test-journey-evaluation__error-title,
.test-journey-evaluation__plan-title {
  margin: 0;
  color: #275e73;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: left;
}

.test-journey-evaluation__error-header {
  display: grid;
  gap: 8px;
}

.test-journey-evaluation__error-badge,
.test-journey-evaluation__plan-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(61, 140, 169, 0.12);
  color: #3d8ca9;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
}

.test-journey-evaluation__error-block {
  display: grid;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.test-journey-evaluation__error-label {
  color: #3d8ca9;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.test-journey-evaluation__error-drop-panel .test-journey-evaluation__paragraph,
.test-journey-evaluation__error-drop-panel .test-journey-evaluation__paragraph strong {
  font-weight: 400;
}

.test-journey-evaluation__error-label--selected {
  color: #cf6173 !important;
}

.test-journey-evaluation__error-label--correct {
  color: #75b59e !important;
}

.test-journey-evaluation__error-label--adjust {
  color: #3d8ca9;
}

.test-journey-evaluation__error-label--explanation {
  color: #3d8ca9;
}

.test-journey-evaluation__plan-group {
  display: grid;
  gap: 8px;
}

.test-journey-evaluation__card--profile {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  --test-summary-accent: var(--test-summary-accent, #a855f7);
}

.test-journey-evaluation__card--profile .test-journey-evaluation__plan-title {
  color: var(--test-summary-accent, #a855f7);
}

.test-journey-evaluation__card .test-journey-evaluation__title {
  color: var(--test-summary-accent, #a855f7);
}

.test-journey-evaluation__card--profile {
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
}

.test-journey-evaluation__profile-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.test-journey-evaluation__profile-icon {
  display: block;
  width: 72px;
  height: 72px;
  color: #3d8ca9;
  background: currentColor;
  -webkit-mask: url("assets/test-study-summary-icon.svg") center / 220% 220% no-repeat;
  mask: url("assets/test-study-summary-icon.svg") center / 220% 220% no-repeat;
}

.test-journey-evaluation__profile-header .test-journey-evaluation__title {
  color: #3d8ca9;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  font-size: clamp(1.2rem, 4.4vw, 1.72rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
  margin: 0;
  text-align: left;
}

@media (max-width: 520px) {
  .test-journey-evaluation__profile-header {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 0 4px;
  }

  .test-journey-evaluation__profile-icon {
    width: 52px;
    height: 52px;
  }

  .test-journey-evaluation__profile-header .test-journey-evaluation__title {
    font-size: 1.08rem;
  }
}

.test-journey-evaluation__profile-body {
  display: grid;
  gap: 14px;
  padding: 10px 18px 0;
}

.test-journey-evaluation__plan-cards {
  display: grid;
  gap: 10px;
}

.test-journey-evaluation__plan-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(61, 140, 169, 0.12);
  background: #f8fcff;
  box-shadow: none;
}

.test-journey-evaluation__plan-card--easy {
  background: linear-gradient(180deg, #f5fcff 0%, #edf8ff 100%);
}

.test-journey-evaluation__plan-card--medium {
  background: linear-gradient(180deg, #fffaf2 0%, #fff4e2 100%);
}

.test-journey-evaluation__plan-card--hard {
  background: linear-gradient(180deg, #fff5f5 0%, #ffe9e9 100%);
}

.test-journey-evaluation__plan-text {
  margin: 0;
  color: #111111;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.52;
  text-align: left;
}

.test-journey-evaluation__plan-lead {
  margin: 0;
  color: #3d8ca9;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

.test-journey-evaluation__card--download,
.test-journey-evaluation__card--closing {
  gap: 12px;
}

.test-journey-evaluation__download-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.test-journey-evaluation__download-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3d8ca9;
  cursor: pointer;
}

.test-journey-evaluation__download-trigger-label {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.2;
}

.test-journey-evaluation__download-trigger-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d8ca9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E")
    center / 22px 22px no-repeat;
}

.test-journey-evaluation__download-trigger:hover,
.test-journey-evaluation__download-trigger:focus-visible {
  opacity: 0.88;
}

.test-journey-evaluation__closing-text {
  text-align: center;
}

.test-journey-evaluation__closing-actions {
  display: grid;
  gap: 10px;
}

.test-journey-evaluation__closing-button {
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(61, 140, 169, 0.22);
  background: #ffffff;
  color: #3d8ca9;
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: none;
}

.test-journey-evaluation__continue-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(61, 140, 169, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #3d8ca9;
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: none;
}

.test-journey-evaluation__closing-button:hover,
.test-journey-evaluation__closing-button:focus-visible,
.test-journey-evaluation__continue-button:hover,
.test-journey-evaluation__continue-button:focus-visible {
  opacity: 0.9;
  outline: none;
}

.education-gate .primary-button.test-summary-retry-button {
  width: 100%;
  max-width: 260px;
  min-width: 220px;
  min-height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: #3d8ca9;
  color: #ffffff;
  box-shadow: none;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
}

.education-gate .primary-button:disabled {
  background: linear-gradient(135deg, #9cb2bd, #aabec8);
  opacity: 1;
}

.test-logout-modal {
  gap: 12px;
}

.test-logout-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #275e73;
  font: inherit;
}

.test-logout-input::placeholder {
  color: rgba(39, 94, 115, 0.68);
}

.test-logout-error {
  min-height: 18px;
  margin: 0;
  font-size: 0.88rem;
  color: #d35252;
}

.test-logout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.test-logout-secondary {
  min-height: 44px;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #275e73;
  font: inherit;
  font-weight: 700;
  box-shadow: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.test-logout-secondary:hover,
.test-logout-secondary:focus-visible {
  background: rgba(61, 140, 169, 0.1);
  color: #3d8ca9;
}

.test-logout-secondary:active {
  transform: translateY(1px);
}

body.parent-visual-light,
body.parent-visual-light .app-shell,
body.parent-visual-light .mobile-stage,
body.parent-visual-light .topbar,
body.parent-visual-light .unlocked-state,
body.parent-visual-light .dashboard,
body.parent-visual-light #parentView,
body.parent-visual-light #parentView .parent-dashboard-home,
body.parent-visual-light #parentView .parent-subjects-panel,
body.parent-visual-light #parentView .parent-select-stack,
body.parent-visual-light #parentView .post-login-actions,
body.parent-visual-light #parentView .apply-test-panel {
  background: #ffffff !important;
  background-image: none !important;
}

body.parent-visual-light,
body.parent-visual-light .app-shell,
body.parent-visual-light .mobile-stage,
body.parent-visual-light .unlocked-state,
body.parent-visual-light .dashboard,
body.parent-visual-light #parentView,
body.parent-visual-light #parentView .parent-dashboard-home {
  min-height: 100dvh;
}

body.login-visual-light,
body.login-visual-light .password-gate.login-gate-screen,
body.login-visual-light .password-card.login-screen {
  background: #fff !important;
  background-image: none !important;
}

body.login-visual-light .password-card.login-screen input.login-screen__input {
  background: #e5e5e5 !important;
  background-image: none !important;
  color: #5a5a5a !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

body.login-visual-light .password-card.login-screen input.login-screen__input::placeholder {
  color: #767676 !important;
}

body.login-visual-light .password-gate.register-gate-screen,
body.login-visual-light .password-card.register-screen {
  background: #fff !important;
  background-image: none !important;
}

body.login-visual-light .password-card.register-screen input.register-screen__input,
body.login-visual-light .password-card.register-screen select.register-screen__select {
  background: #e5e5e5 !important;
  background-image: none !important;
  color: #5a5a5a !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

body.login-visual-light .password-card.register-screen #responsibleNameInput::placeholder,
body.login-visual-light .password-card.register-screen #responsibleEmailInput::placeholder {
  color: #3d8ca9 !important;
}

body.login-visual-light .password-card.register-screen #studentNameInput::placeholder,
body.login-visual-light .password-card.register-screen #setupGradeSelect {
  color: #3d8ca9 !important;
}

body.login-visual-light .password-card.register-screen #setupPasswordInput::placeholder,
body.login-visual-light .password-card.register-screen #setupPasswordConfirmInput::placeholder {
  color: #3d8ca9 !important;
}

.view-switch,
.switch-button.active,
.gate-icon,
.primary-button,
.file-button,
.progress-bar,
.answer-button.selected {
  background: #050505 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.metric,
.student-panel,
.result-card,
.question,
.answer-button,
.explanation-box,
.score-pill,
select,
.password-card input,
.secondary-button {
  background: #0b0b0b !important;
  background-image: none !important;
}

.switch-button.active,
.answer-button.selected,
.primary-button,
.file-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.answer-button.selected {
  background: rgba(182, 124, 255, 0.16) !important;
  background-image: none !important;
  border-color: rgba(234, 219, 255, 0.42) !important;
  color: #ffffff !important;
}

.answer-button.selected .answer-letter {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

body.test-modal-active .education-gate,
body.test-modal-active .education-gate .question,
body.test-modal-active .education-gate .score-pill,
body.test-modal-active .education-gate .explanation-box {
  background-image: none !important;
}

.education-gate.is-summary-layout {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  color: #275e73 !important;
}

.education-gate.is-summary-layout .explanation-box {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #275e73 !important;
}

.education-gate.is-summary-layout {
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
}

.education-gate.is-summary-layout .test-round-top {
  display: none !important;
}

.education-gate.is-summary-layout .test-round-body {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.education-gate.is-summary-layout .explanation-box {
  width: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
}

.education-gate.is-summary-layout .test-journey-evaluation {
  margin-top: 0 !important;
}

body.test-modal-active .education-gate {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #275e73 !important;
  width: 100% !important;
  max-width: none !important;
  max-height: calc(100dvh - 64px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 20px 18px 22px !important;
}

body.test-modal-active .education-gate .counter,
body.test-modal-active .education-gate .eyebrow,
body.test-modal-active .education-gate .gate-subtitle,
body.test-modal-active .education-gate .support-text,
body.test-modal-active .education-gate .question,
body.test-modal-active .education-gate .answer-button > span:last-child,
body.test-modal-active .education-gate .feedback,
body.test-modal-active .education-gate .explanation-box {
  color: #275e73 !important;
}

body.test-modal-active .education-gate .eyebrow,
body.test-modal-active .education-gate .question {
  color: #5b91a6 !important;
  font-weight: 600 !important;
}

body.test-modal-active .education-gate .eyebrow {
  text-transform: none !important;
  margin: 10px 0 8px !important;
  font-size: 0.97rem !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  text-align: center !important;
}

body.test-modal-active .education-gate h2#gateTitle {
  color: #275e73 !important;
  display: none !important;
}

body.test-modal-active .education-gate .gate-header {
  margin-bottom: 0 !important;
}

body.test-modal-active .education-gate .question {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 48px auto 14px !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 292px !important;
  line-height: 1.26 !important;
  font-size: 0.94rem !important;
  text-wrap: balance;
  text-align: center !important;
}

body.test-modal-active .education-gate .support-text {
  display: none !important;
}

body.test-modal-active .education-gate .gate-subtitle {
  margin: 0 auto 6px !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  line-height: 1.24 !important;
  text-align: center !important;
}

body.test-modal-active .education-gate .step-line {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 12px auto 10px !important;
  width: 100% !important;
  max-width: 320px !important;
}

body.test-modal-active .education-gate .score-pill {
  display: none !important;
}

body.test-modal-active .education-gate .counter {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  color: #dca35c !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

body.test-modal-active .education-gate .progress-track {
  display: none !important;
}

body.test-modal-active .education-gate .answer-list {
  width: 100% !important;
  max-width: min(100%, 560px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
}

body.test-modal-active .education-gate .answer-button {
  align-items: flex-start !important;
  background: #ffffff !important;
  border: 1px solid #d7e3ee !important;
  border-radius: 0 !important;
  box-shadow: 0 3px 10px rgba(61, 140, 169, 0.05) !important;
  width: 100% !important;
  min-height: 64px !important;
  padding: 10px 16px !important;
  gap: 12px !important;
}

body.test-modal-active .education-gate .answer-button.selected {
  background: #f7fbff !important;
  border-color: #a9cadd !important;
}

body.test-modal-active .education-gate .answer-letter {
  display: inline-block !important;
  width: 18px !important;
  align-self: center !important;
  height: auto !important;
  flex: 0 0 18px !important;
  background: transparent !important;
  color: var(--answer-accent, #5b91a6) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
}

body.test-modal-active .education-gate .answer-button > span:last-child {
  display: block !important;
  padding-top: 1px !important;
  padding-right: 4px !important;
  color: #5a8395 !important;
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  line-height: 1.48 !important;
  text-align: left !important;
}

body.test-modal-active .education-gate .feedback {
  margin: 42px auto 16px !important;
  font-size: 1.45rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

body.test-modal-active .education-gate .feedback.warning {
  color: #e37c7c !important;
  font-size: 1.45rem !important;
  font-weight: 500 !important;
}

body.test-modal-active .education-gate .feedback.success {
  color: #79b86b !important;
  font-size: 1.45rem !important;
  font-weight: 500 !important;
}

body.test-modal-active .education-gate .explanation-box {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin-top: 18px !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: #6a96a8 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.34 !important;
  text-align: center !important;
}

body.test-modal-active .education-gate .test-answer-feedback {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

body.test-modal-active .education-gate .test-answer-feedback__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  column-gap: 0;
}

body.test-modal-active .education-gate .test-answer-feedback__icon {
  display: none;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

body.test-modal-active .education-gate .test-answer-feedback__line--wrong .test-answer-feedback__icon,
body.test-modal-active .education-gate .test-answer-feedback__line--wrong .test-answer-feedback__lead--wrong {
  color: #e37c7c !important;
}

body.test-modal-active .education-gate .test-answer-feedback__line--success .test-answer-feedback__icon,
body.test-modal-active .education-gate .test-answer-feedback__line--success .test-answer-feedback__lead--success {
  color: #79b86b !important;
}

body.test-modal-active .education-gate .test-answer-feedback__correct-answer {
  color: #6a96a8 !important;
  display: block;
  margin-top: 14px;
  font-weight: 400 !important;
  line-height: 1.4;
}

body.test-modal-active .education-gate .test-answer-feedback__correct-letter {
  color: #79b86b !important;
  font-weight: 600;
}

body.test-modal-active .education-gate .test-answer-feedback--success {
  gap: 8px !important;
}

body.test-modal-active .education-gate .test-answer-feedback__text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  color: #6a96a8 !important;
  max-width: 270px;
}

body.test-modal-active .education-gate .test-answer-feedback__lead {
  font-weight: 600;
  display: inline-block;
  margin-bottom: 16px;
  line-height: 1.35;
}

body.test-modal-active .education-gate .test-answer-feedback__rest {
  color: #6a96a8 !important;
  display: inline-block;
  margin-top: 8px;
  font-weight: 400 !important;
}

body.test-modal-active .education-gate .test-answer-feedback__why-title {
  color: #79b86b !important;
  display: block;
  margin-top: 16px;
  font-weight: 500;
  line-height: 1.35;
}

body.test-modal-active .education-gate .answer-text-input {
  background: #ffffff !important;
  border: 1px solid #d7e3ee !important;
  color: #275e73 !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

body.test-modal-active .education-gate #nextButton,
body.inline-test-active #parentView .inline-test-host .education-gate #nextButton {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  margin: 0 auto !important;
  min-height: 48px !important;
  padding: 7px 12px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #5a9fbc !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}

body.test-modal-active .education-gate #nextButton::before,
body.inline-test-active #parentView .inline-test-host .education-gate #nextButton::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background:
    #5a9fbc
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 18px 18px no-repeat;
}

body.test-modal-active .education-gate #nextButton:disabled,
body.inline-test-active #parentView .inline-test-host .education-gate #nextButton:disabled {
  background: transparent !important;
  color: rgba(90, 159, 188, 0.5) !important;
  opacity: 1 !important;
}

body.test-modal-active .education-gate #nextButton:disabled::before,
body.inline-test-active #parentView .inline-test-host .education-gate #nextButton:disabled::before {
  opacity: 0.55;
}

body.test-modal-active .education-gate .action-row,
body.inline-test-active #parentView .inline-test-host .education-gate .action-row {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) 32px !important;
  align-items: center !important;
  gap: 10px !important;
}

body.test-modal-active .education-gate .action-row[hidden],
body.inline-test-active #parentView .inline-test-host .education-gate .action-row[hidden] {
  display: none !important;
}

body.test-modal-active .education-gate #testLogoutButton {
  grid-column: 1 !important;
  justify-self: start !important;
  align-self: center !important;
}

body.test-modal-active .education-gate .action-row .primary-button,
body.test-modal-active .education-gate .primary-button:not(.test-summary-exit-button) {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

body.test-modal-active .education-gate #nextButton,
body.inline-test-active #parentView .inline-test-host .education-gate #nextButton {
  grid-column: 2 !important;
  justify-self: center !important;
}

body.test-modal-active .education-gate #testLogoutButton {
  opacity: 0.8 !important;
}

body.test-modal-active .education-gate .test-summary-exit-button[hidden] {
  display: none !important;
}

@media (min-width: 700px) {
  body.test-modal-active .education-gate {
    width: min(100%, 560px) !important;
    padding: 18px 20px 26px !important;
  }

  body.test-modal-active .education-gate .question {
    font-size: 0.96rem !important;
  }

  body.test-modal-active .education-gate .answer-button > span:last-child {
    font-size: 0.84rem !important;
    line-height: 1.48 !important;
  }
}

.education-gate.is-test-question-layout,
body.test-modal-active .education-gate.is-test-question-layout,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout {
  background: #ffffff !important;
  border: 1px solid rgba(61, 140, 169, 0.34) !important;
  border-radius: 28px !important;
  padding: 0 !important;
  color: #275e73 !important;
  font-family: "Poppins", "Roboto Embedded", Roboto, Arial, sans-serif;
  overflow-x: hidden !important;
}

.education-gate.is-test-question-layout .test-round-top,
body.test-modal-active .education-gate.is-test-question-layout .test-round-top,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .test-round-top {
  background: transparent !important;
  padding: 44px 28px 18px !important;
  color: var(--test-subject-accent, #5b91a6) !important;
}

.education-gate.is-test-question-layout .test-round-body,
body.test-modal-active .education-gate.is-test-question-layout .test-round-body,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .test-round-body {
  position: relative !important;
  display: flow-root !important;
  background: #ffffff !important;
  border-radius: 24px 24px 0 0 !important;
  padding: 28px 22px 48px !important;
  min-height: 220px;
  overflow: visible !important;
}

.education-gate.is-test-question-layout .gate-header,
body.test-modal-active .education-gate.is-test-question-layout .gate-header,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .gate-header {
  margin: 0 !important;
}

.education-gate.is-test-question-layout .gate-header > div,
body.test-modal-active .education-gate.is-test-question-layout .gate-header > div,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .gate-header > div {
  display: grid !important;
  gap: 12px !important;
}

.education-gate.is-test-question-layout h2#gateTitle,
body.test-modal-active .education-gate.is-test-question-layout h2#gateTitle,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout h2#gateTitle {
  display: none !important;
}

.education-gate.is-test-question-layout .eyebrow,
body.test-modal-active .education-gate.is-test-question-layout .eyebrow,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .eyebrow {
  margin: 0 !important;
  color: #4a90a8 !important;
  font-size: 1.08rem !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

.education-gate.is-test-question-layout .gate-subtitle,
body.test-modal-active .education-gate.is-test-question-layout .gate-subtitle,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .gate-subtitle {
  margin: -4px auto 0 !important;
  color: #4a90a8 !important;
  font-size: 0.79rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.education-gate.is-test-question-layout .question,
body.test-modal-active .education-gate.is-test-question-layout .question,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .question {
  margin: 26px auto 18px !important;
  max-width: 250px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--test-subject-accent, #5b91a6) !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
  text-align: center !important;
}

.education-gate.is-test-question-layout .step-line,
body.test-modal-active .education-gate.is-test-question-layout .step-line,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .step-line {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 18px 0 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.education-gate.is-test-question-layout .counter,
body.test-modal-active .education-gate.is-test-question-layout .counter,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .counter {
  display: block !important;
  width: auto !important;
  margin-left: auto !important;
  text-align: right !important;
  color: #4a90a8 !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.education-gate.is-test-question-layout .score-pill,
.education-gate.is-test-question-layout .progress-track,
.education-gate.is-test-question-layout .support-text,
body.test-modal-active .education-gate.is-test-question-layout .score-pill,
body.test-modal-active .education-gate.is-test-question-layout .progress-track,
body.test-modal-active .education-gate.is-test-question-layout .support-text,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .score-pill,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .progress-track,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .support-text {
  display: none !important;
}

.education-gate.is-test-question-layout .progress-track,
.education-gate.is-test-question-layout .support-text:empty {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.education-gate.is-test-question-layout .answer-list,
body.test-modal-active .education-gate.is-test-question-layout .answer-list,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .answer-list {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  gap: 8px !important;
}

.education-gate.is-test-question-layout .answer-button,
body.test-modal-active .education-gate.is-test-question-layout .answer-button,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .answer-button {
  position: relative !important;
  z-index: 2;
  align-items: center !important;
  min-height: 62px !important;
  padding: 10px 14px !important;
  border: 1px solid #dfe9f2 !important;
  background: #ffffff !important;
  border-radius: 6px !important;
  box-shadow: 0 3px 10px rgba(61, 140, 169, 0.05) !important;
  pointer-events: auto !important;
  touch-action: manipulation;
}

.education-gate.is-test-question-layout .answer-button.selected,
body.test-modal-active .education-gate.is-test-question-layout .answer-button.selected,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .answer-button.selected {
  background: #f8fbff !important;
  border-color: #c7dbe8 !important;
}

.education-gate.is-test-question-layout .answer-letter,
body.test-modal-active .education-gate.is-test-question-layout .answer-letter,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .answer-letter {
  display: inline-block !important;
  width: 18px !important;
  height: auto !important;
  flex: 0 0 18px !important;
  align-self: center !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--answer-accent, #5b91a6) !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
}

.education-gate.is-test-question-layout .answer-button > span:last-child,
body.test-modal-active .education-gate.is-test-question-layout .answer-button > span:last-child,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .answer-button > span:last-child {
  display: block !important;
  flex: 1 1 auto !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  color: #6b8ea1 !important;
  font-size: 0.82rem !important;
  line-height: 1.42 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

.education-gate.is-test-question-layout .answer-option__text strong,
body.test-modal-active .education-gate.is-test-question-layout .answer-option__text strong,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .answer-option__text strong {
  display: inline !important;
  white-space: normal !important;
}

.education-gate.is-test-question-layout .action-row,
body.test-modal-active .education-gate.is-test-question-layout .action-row,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .action-row {
  position: relative !important;
  z-index: 3;
  isolation: isolate;
  background: #ffffff !important;
  grid-template-columns: 32px minmax(0, 1fr) 32px !important;
  gap: 14px !important;
  margin-top: 32px !important;
  padding-bottom: max(14px, env(safe-area-inset-bottom)) !important;
}

.education-gate.is-test-question-layout #nextButton,
body.test-modal-active .education-gate.is-test-question-layout #nextButton,
body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout #nextButton {
  position: relative !important;
  z-index: 2;
  justify-self: end !important;
  pointer-events: auto !important;
  touch-action: manipulation;
}

@media (min-width: 700px) {
  body.test-modal-active .education-gate.is-test-question-layout {
    width: min(100%, 560px) !important;
  }

  body.test-modal-active .education-gate.is-test-question-layout .test-round-top {
    padding: 48px 34px 22px !important;
  }

  body.test-modal-active .education-gate.is-test-question-layout .test-round-body {
    padding: 30px 28px 52px !important;
  }
}

@media (min-width: 560px) {
  .test-journey-evaluation {
    gap: 14px;
  }

  .test-journey-evaluation__result-grid,
  .test-journey-evaluation__indicators {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-journey-evaluation__closing-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .test-journey-evaluation__hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-journey-evaluation__hero-metric-label {
    font-size: 0.64rem;
  }

  .test-journey-evaluation__hero-metric-value {
    font-size: 0.68rem;
  }

  .test-journey-evaluation__hero-metric-chip {
    min-height: 20px;
    padding: 0 9px;
    font-size: 0.6rem;
  }

  .test-journey-evaluation__hero-metric-caption {
    font-size: 0.42rem;
    max-width: 80px;
  }
}

@media (min-width: 920px) {
  .test-journey-evaluation__hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .test-journey-evaluation__hero-metric-card {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .test-journey-evaluation__hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .test-journey-evaluation__card--summary {
    grid-column: 1 / -1;
  }
}

body.test-modal-active .education-gate .primary-button:disabled {
  background: linear-gradient(135deg, #9cbfcb, #b3ced8) !important;
  color: #ffffff !important;
}

body.test-modal-active .education-gate .explanation-box {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: #275e73 !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

body.test-modal-active .education-gate .explanation-box .test-journey-evaluation {
  width: calc(100% + 36px) !important;
  max-width: none !important;
  margin: -44px -18px 0 !important;
}

#unlockAwardActionButton,
#unlockAwardActionButton.unlock-award-action,
.unlock-award-overlay #unlockAwardActionButton {
  background: transparent !important;
  background-color: transparent !important;
  color: #3d8ca9 !important;
  box-shadow: none !important;
  border: 1px solid rgba(61, 140, 169, 0.24) !important;
}

@media (min-width: 768px) and (max-width: 1194px) and (orientation: portrait) {
  .login-screen {
    width: min(100%, 520px);
    min-height: min(76vh, 760px);
    padding-top: 42px;
    margin-top: 36px;
  }

  .login-screen__brand {
    margin-top: -26px;
    margin-bottom: 86px;
  }

  .login-screen__logo {
    width: min(348px, 48vw);
  }

  .login-screen__hero {
    gap: 12px;
    margin-bottom: 130px;
  }

  .login-screen__headline {
    gap: 0;
    font-size: clamp(2.45rem, 4.9vw, 3.15rem);
    line-height: 1.02;
  }

  .login-screen__headline-line {
    gap: 0.08em;
    flex-wrap: nowrap;
  }

  .login-screen__description {
    font-size: 14px;
  }

  .app-shell {
    width: min(100% - 56px, 900px);
    padding: 32px 0 40px;
  }

  .mobile-stage {
    width: min(100%, 760px);
  }

  .topbar {
    margin-bottom: 28px;
    padding-top: 16px;
  }

  .phone-frame {
    width: min(100%, 430px);
    min-height: 840px;
    padding: 82px 18px 24px;
    border-radius: 36px;
  }

  body.test-modal-active .phone-frame {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    padding: 22px 0 30px;
  }

  .education-gate,
  .unlocked-state {
    inset: 30px 18px 22px;
    padding: 24px;
    border-radius: 22px;
  }

  body.test-modal-active .education-gate {
    position: relative;
    inset: auto;
    width: min(100%, 430px);
    max-width: none;
    margin: 0 auto;
    max-height: calc(100dvh - 52px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .question {
    font-size: 1.18rem;
  }

  .answer-button {
    min-height: 58px;
  }

  .answer-text-input {
    min-height: 190px;
    font-size: 1rem;
  }

  body.parent-visual-light .app-shell,
  body.parent-visual-light .mobile-stage,
  body.parent-visual-light .dashboard,
  body.parent-visual-light #parentView {
    width: 100%;
    max-width: none;
  }

  body.parent-visual-light .app-shell {
    padding: 18px 0 36px;
  }

  body.parent-visual-light #parentView .parent-dashboard-home,
  body.parent-visual-light #parentView .parent-subjects-panel,
  body.parent-visual-light #parentView .parent-select-stack,
  body.parent-visual-light #parentView .post-login-actions,
  body.parent-visual-light #parentView .apply-test-panel,
  body.parent-visual-light #parentView .question-bank-preview-card,
  body.parent-visual-light #parentView .dashboard-header {
    width: min(100%, 720px);
    margin-left: auto;
    margin-right: auto;
  }

  body.parent-visual-light #parentView .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.parent-visual-light #parentView .parent-select-stack {
    gap: 16px;
  }

  .responsible-entry-screen,
  .dashboard-selector-screen,
  .test-status-screen {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 42px 36px 42px;
  }

  .responsible-entry-view,
  .dashboard-selector-view,
  .test-status-view {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
  }

  body.responsible-entry-visual-light .app-shell,
  body.responsible-entry-visual-light .mobile-stage {
    display: flex;
    justify-content: center;
  }

  body.responsible-entry-visual-light .phone-frame {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff !important;
  }

  body.dashboard-selector-visual-light .app-shell,
  body.dashboard-selector-visual-light .mobile-stage {
    display: flex;
    justify-content: center;
  }

  body.dashboard-selector-visual-light .phone-frame {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff !important;
  }

  body.dashboard-selector-visual-light .phone-frame::before {
    display: none;
  }

  body.dashboard-selector-visual-light .topbar {
    display: none;
  }

  body.responsible-entry-visual-light .phone-frame::before {
    display: none;
  }

  .responsible-entry-copy {
    max-width: 380px;
    margin-top: 40px;
  }

  .dashboard-selector-copy {
    max-width: 380px;
    margin-top: 92px;
  }

  .dashboard-selector-visual-card {
    max-width: 430px;
    min-height: 560px;
    margin-top: 34px;
    padding: 62px 34px 42px;
  }

  .responsible-entry-message {
    max-width: 360px;
    font-size: 1.06rem;
  }

  .dashboard-selector-message {
    max-width: 360px;
    font-size: 1.06rem;
  }

  .dashboard-selector-actions {
    margin-top: 220px;
  }

  .responsible-entry-assessment {
    max-width: 380px;
    margin-top: 36px;
  }

  .responsible-entry-assessment__title {
    font-size: 1.18rem;
  }

  .responsible-entry-assessment__label,
  .responsible-entry-assessment__average-title,
  .test-status-message {
    font-size: 1.06rem;
  }

  .responsible-entry-assessment__value {
    font-size: 0.92rem;
  }

  .responsible-entry-assessment__average-score {
    font-size: 3.4rem;
  }
}
/* Keep scrolling natural while hiding platform-specific scrollbar chrome. */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Separa o cabeçalho fixo do conteúdo que passa por baixo durante a rolagem. */
body.parent-visual-light .topbar {
  border-bottom-color: rgba(61, 140, 169, 0.08) !important;
  box-shadow:
    0 1px 0 rgba(61, 140, 169, 0.06),
    0 2px 8px rgba(16, 73, 98, 0.06) !important;
}

/* Appearance selector: isolated from the application workflow. */
.menu-appearance {
  display: grid;
  gap: 8px;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(61, 140, 169, 0.12);
  border-bottom: 1px solid rgba(61, 140, 169, 0.12);
}

.menu-appearance__label {
  color: #275e73;
  font-size: 0.82rem;
  font-weight: 700;
}

.menu-appearance__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(61, 140, 169, 0.18);
  border-radius: 8px;
  background: #eef4f6;
}

.menu-appearance__option {
  min-width: 0;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #607985;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.menu-appearance__option svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-appearance__option.is-active {
  background: #ffffff;
  color: #3d8ca9;
  box-shadow: 0 1px 4px rgba(29, 76, 94, 0.12);
}

/* Dark appearance. The light interface remains the untouched default. */
html[data-app-theme="dark"] {
  color-scheme: dark;
  --dark-page: #0e151b;
  --dark-surface: #151e26;
  --dark-surface-raised: #1b2630;
  --dark-surface-soft: #202c36;
  --dark-line: #2b3943;
  --dark-line-strong: #3b5360;
  --dark-text: #f3f6f8;
  --dark-muted: #9eb0bc;
  --dark-brand: #4da2bf;
  --dark-brand-strong: #58b3cf;
  --dark-orange: #ff9d1f;
}

html[data-app-theme="dark"],
html[data-app-theme="dark"] body,
body[data-app-theme="dark"],
body[data-app-theme="dark"].login-visual-light,
body[data-app-theme="dark"].parent-visual-light,
body[data-app-theme="dark"].history-static-shell,
body[data-app-theme="dark"].test-status-visual-light,
body[data-app-theme="dark"].responsible-entry-visual-light,
body[data-app-theme="dark"].dashboard-selector-visual-light {
  background: var(--dark-page) !important;
  color: var(--dark-text);
}

body[data-app-theme="dark"] .app-shell,
body[data-app-theme="dark"] .mobile-stage,
body[data-app-theme="dark"] .phone-frame,
body[data-app-theme="dark"] .phone-frame::before,
body[data-app-theme="dark"] .view,
body[data-app-theme="dark"] .dashboard,
body[data-app-theme="dark"] #parentView,
body[data-app-theme="dark"] #historyView,
body[data-app-theme="dark"] .history-dashboard,
body[data-app-theme="dark"] .test-status-view,
body[data-app-theme="dark"] .test-status-screen,
body[data-app-theme="dark"] .responsible-entry-view,
body[data-app-theme="dark"] .responsible-entry-screen,
body[data-app-theme="dark"] .dashboard-selector-view,
body[data-app-theme="dark"] .dashboard-selector-screen {
  background: var(--dark-page) !important;
  color: var(--dark-text);
}

body[data-app-theme="dark"] .topbar {
  border-bottom: 1px solid rgba(232, 241, 245, 0.16) !important;
  background: rgba(14, 21, 27, 0.98) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16) !important;
}

body[data-app-theme="dark"] .brand h1,
body[data-app-theme="dark"] .topbar .brand h1 {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .menu-button span {
  background: #d7dde1 !important;
}

body[data-app-theme="dark"] .menu-modal-overlay {
  background: rgba(0, 0, 0, 0.62) !important;
}

body[data-app-theme="dark"] .menu-summary-card,
body[data-app-theme="dark"].parent-visual-light .menu-summary-card,
body[data-app-theme="dark"] .menu-panel {
  border-color: var(--dark-line-strong) !important;
  background: var(--dark-surface) !important;
  color: var(--dark-text) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42) !important;
}

body[data-app-theme="dark"] .menu-summary-link,
body[data-app-theme="dark"] .menu-summary-link > span:last-child,
body[data-app-theme="dark"].parent-visual-light .menu-summary-link {
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .menu-summary-link:hover,
body[data-app-theme="dark"] .menu-summary-link:focus-visible,
body[data-app-theme="dark"] .menu-summary-link.is-active {
  background: var(--dark-surface-raised) !important;
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .menu-appearance {
  border-color: var(--dark-line);
}

body[data-app-theme="dark"] .menu-appearance__label {
  color: var(--dark-muted);
}

body[data-app-theme="dark"] .menu-appearance__options {
  border-color: var(--dark-line);
  background: #101820;
}

body[data-app-theme="dark"] .menu-appearance__option {
  color: var(--dark-muted);
}

body[data-app-theme="dark"] .menu-appearance__option.is-active {
  background: var(--dark-surface-soft);
  color: var(--dark-brand-strong);
  box-shadow: none;
}

body[data-app-theme="dark"] .login-screen {
  background: var(--dark-page) !important;
  color: var(--dark-text);
}

body[data-app-theme="dark"] .password-gate.login-gate-screen,
body[data-app-theme="dark"] .password-card.login-screen {
  background: var(--dark-page) !important;
  background-image: none !important;
}

html[data-app-theme="dark"] .splash-screen {
  background: var(--dark-page) !important;
}

body[data-app-theme="dark"] .login-screen__description,
body[data-app-theme="dark"] .login-screen__reset-link {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .login-screen__input {
  border: 1px solid var(--dark-line) !important;
  background: var(--dark-surface-raised) !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .login-screen__input::placeholder {
  color: #8295a1 !important;
}

body[data-app-theme="dark"] .login-screen__input:focus {
  border-color: var(--dark-brand) !important;
  box-shadow: 0 0 0 3px rgba(77, 162, 191, 0.14) !important;
}

body[data-app-theme="dark"] .login-screen__submit {
  background: #1b2630 !important;
  color: #ffffff !important;
}

body[data-app-theme="dark"] .login-screen__google-button {
  border-color: var(--dark-line-strong) !important;
  background: var(--dark-surface) !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .login-screen__create-link {
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"].parent-visual-light #parentView .apply-test-panel,
body[data-app-theme="dark"].parent-visual-light #parentView .question-bank-preview-card,
body[data-app-theme="dark"] .study-guided-history-card,
body[data-app-theme="dark"] .study-guided-history-detail,
body[data-app-theme="dark"] .study-guided-history-chart-card,
body[data-app-theme="dark"] .study-guided-history-item,
body[data-app-theme="dark"] .student-panel,
body[data-app-theme="dark"] .result-card,
body[data-app-theme="dark"] .metric {
  border-color: var(--dark-line) !important;
  background: var(--dark-surface) !important;
  color: var(--dark-text) !important;
  box-shadow: none !important;
}

body[data-app-theme="dark"] .study-guided-explanation-panel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-app-theme="dark"] .study-guided-test-intro__animation {
  --test-heading-accent: var(--dark-brand-strong);
}

body[data-app-theme="dark"] .study-guided-test-intro__message {
  color: #f4f7f9;
}

body[data-app-theme="dark"] .study-guided-test-intro__message strong {
  color: var(--test-heading-accent);
}

body[data-app-theme="dark"] .study-guided-test-intro__icon {
  background-color: transparent;
}

body[data-app-theme="dark"].parent-visual-light #parentView .subject-ranking-item {
  border-bottom-color: var(--dark-line) !important;
}

body[data-app-theme="dark"].parent-visual-light #parentView .subject-ranking-check {
  background-color: #34414a !important;
  border-color: #34414a !important;
}

body[data-app-theme="dark"].parent-visual-light #parentView .subject-ranking-check[aria-pressed="true"] {
  background-color: var(--subject-accent, var(--dark-brand)) !important;
  border-color: var(--subject-accent, var(--dark-brand)) !important;
}

body[data-app-theme="dark"] input,
body[data-app-theme="dark"] textarea,
body[data-app-theme="dark"] select,
body[data-app-theme="dark"] .prototype-grade-trigger,
body[data-app-theme="dark"] .ai-generation-count-trigger,
body[data-app-theme="dark"] .study-guided-history-filter__input,
body[data-app-theme="dark"] .study-guided-history-filter__select,
body[data-app-theme="dark"] .study-guided-history-filter__control,
body[data-app-theme="dark"] .study-guided-followup-input {
  border-color: var(--dark-line-strong) !important;
  background-color: var(--dark-surface-raised) !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] textarea::placeholder,
body[data-app-theme="dark"] input::placeholder {
  color: #8295a1 !important;
}

body[data-app-theme="dark"] .study-guided-history-filter__control {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-app-theme="dark"] select option {
  background: var(--dark-surface-raised) !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .prototype-grade-menu,
body[data-app-theme="dark"] .ai-generation-count-menu {
  border-color: var(--dark-line) !important;
  background: var(--dark-surface-raised) !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .prototype-grade-option:hover,
body[data-app-theme="dark"] .prototype-grade-option:focus-visible,
body[data-app-theme="dark"] .ai-generation-count-option:hover,
body[data-app-theme="dark"] .ai-generation-count-option:focus-visible {
  background: var(--dark-surface-soft) !important;
}

body[data-app-theme="dark"] .study-guided-test-count-menu .ai-generation-count-option:disabled,
body[data-app-theme="dark"] .study-guided-test-count-menu .ai-generation-count-option:disabled:hover,
body[data-app-theme="dark"] .study-guided-test-count-menu .ai-generation-count-option[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #8295a1 !important;
  cursor: not-allowed;
  opacity: 0.82;
}

body[data-app-theme="dark"] .study-guided-explanation-body,
body[data-app-theme="dark"] .study-guided-explanation-body p,
body[data-app-theme="dark"] .study-guided-explanation-section,
body[data-app-theme="dark"] .study-guided-explanation-steps,
body[data-app-theme="dark"] .study-guided-read-row__text,
body[data-app-theme="dark"] .study-guided-followup-message,
body[data-app-theme="dark"] .study-guided-test-intro__text {
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"]
  .study-guided-read-list--explanation
  > .study-guided-read-row:not(.study-guided-mind-map-row)
  .study-guided-read-row__text,
body[data-app-theme="dark"]
  .study-guided-read-list--explanation
  > .study-guided-read-row:not(.study-guided-mind-map-row)
  .study-guided-read-row__text p,
body[data-app-theme="dark"]
  .study-guided-read-list--explanation
  > .study-guided-read-row:not(.study-guided-mind-map-row)
  .study-guided-read-row__text strong {
  color: #bdd0da !important;
}

body[data-app-theme="dark"]
  .study-guided-read-list--explanation
  > .study-guided-read-row:not(.study-guided-mind-map-row)
  .study-guided-read-row__text
  .study-guided-inline-highlight {
  color: #f1f7fa !important;
}

body[data-app-theme="dark"]
  .study-guided-read-list--explanation
  .study-guided-read-row__prefix {
  color: #ffffff !important;
}

body[data-app-theme="dark"] .study-guided-explanation-title,
body[data-app-theme="dark"] .study-guided-explanation-section-title,
body[data-app-theme="dark"] .study-guided-history-detail__title,
body[data-app-theme="dark"] .study-guided-history-detail__section-title,
body[data-app-theme="dark"] .study-guided-history-detail__block-title,
body[data-app-theme="dark"] .history-dashboard__title {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"]
  .study-guided-followup-group
  .study-guided-explanation-section-title {
  color: var(--study-guided-followup-accent, #3d8ca9) !important;
}

body[data-app-theme="dark"] .study-guided-explanation-section,
body[data-app-theme="dark"] .study-guided-followup-message,
body[data-app-theme="dark"] .study-guided-read-row,
body[data-app-theme="dark"] .study-guided-test-config,
body[data-app-theme="dark"] .study-guided-history-detail__content-group,
body[data-app-theme="dark"] .study-guided-history-detail__conversation-item,
body[data-app-theme="dark"] .study-guided-history-detail__question-item,
body[data-app-theme="dark"] .study-guided-history-detail__block {
  border-color: var(--dark-line) !important;
  background: transparent !important;
}

body[data-app-theme="dark"] .study-guided-explanation-generated-at,
body[data-app-theme="dark"] .study-guided-history-detail__subtitle,
body[data-app-theme="dark"] .study-guided-history-detail__empty,
body[data-app-theme="dark"] .study-guided-history-item__date,
body[data-app-theme="dark"] .study-guided-history-chart-card__subtitle,
body[data-app-theme="dark"] .study-guided-history-chart-card__focus-status,
body[data-app-theme="dark"] .study-guided-history-chart-card__focus-meta {
  color: var(--dark-muted) !important;
}

body[data-app-theme="dark"] .study-guided-mind-map__node {
  background: color-mix(
    in srgb,
    var(--dark-text) 6%,
    var(--dark-page)
  ) !important;
}

body[data-app-theme="dark"] .study-guided-mind-map__node--central {
  background: color-mix(
    in srgb,
    var(--dark-text) 6%,
    var(--dark-page)
  ) !important;
}

body[data-app-theme="dark"] .study-guided-mind-map__item {
  color: var(--dark-text) !important;
}

body .study-guided-mind-map--math .study-guided-mind-map__node {
  background: transparent !important;
  box-shadow: none;
}

body .study-guided-mind-map--math .study-guided-mind-map__node::before {
  display: none;
}

body[data-app-theme="dark"] .study-guided-history-filter__label,
body[data-app-theme="dark"] .study-guided-history-stat__value,
body[data-app-theme="dark"] .study-guided-history-stat__label,
body[data-app-theme="dark"] .study-guided-history-item__title,
body[data-app-theme="dark"] .study-guided-history-detail__content-label,
body[data-app-theme="dark"] .study-guided-history-detail__question-title,
body[data-app-theme="dark"] .study-guided-history-detail__conversation-title,
body[data-app-theme="dark"] .study-guided-history-detail__question-answer-label {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .study-guided-history-detail__text,
body[data-app-theme="dark"] .study-guided-history-detail__text p,
body[data-app-theme="dark"] .study-guided-history-detail__reference-text,
body[data-app-theme="dark"] .study-guided-history-detail__reference-text p,
body[data-app-theme="dark"] .study-guided-history-detail__conversation-text,
body[data-app-theme="dark"] .study-guided-history-detail__question-text,
body[data-app-theme="dark"] .study-guided-history-detail__question-answer-text,
body[data-app-theme="dark"] .study-guided-history-detail__bullet-list,
body[data-app-theme="dark"] .study-guided-history-detail__comparison-copy {
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .study-guided-history-detail__question-mode,
body[data-app-theme="dark"] .study-guided-history-detail__comparison-meta,
body[data-app-theme="dark"] .study-guided-history-detail__result-card span {
  color: var(--dark-muted) !important;
}

body[data-app-theme="dark"] .study-guided-history-detail__reference-summary,
body[data-app-theme="dark"] .study-guided-history-detail__comparison-title,
body[data-app-theme="dark"] .study-guided-history-detail__result-card strong {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .study-guided-history-stat,
body[data-app-theme="dark"] .study-guided-history-chart-card__focus,
body[data-app-theme="dark"] .study-guided-history-detail__result-card,
body[data-app-theme="dark"] .study-guided-history-detail__reference {
  border-color: var(--dark-line) !important;
  background: var(--dark-surface-raised) !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .study-guided-history-detail__question-answer-block {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .study-guided-history-chart__grid-line {
  stroke: var(--dark-line) !important;
}

body[data-app-theme="dark"] .study-guided-history-chart__axis-label,
body[data-app-theme="dark"] .study-guided-history-chart-axis__label {
  fill: var(--dark-muted) !important;
  color: var(--dark-muted) !important;
}

body[data-app-theme="dark"] .education-gate,
body[data-app-theme="dark"] .test-round-top,
body[data-app-theme="dark"] .test-round-body,
body[data-app-theme="dark"] .unlocked-state {
  border-color: var(--dark-line) !important;
  background: var(--dark-surface) !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .gate-title,
body[data-app-theme="dark"] .question,
body[data-app-theme="dark"] .test-round-title,
body[data-app-theme="dark"] .test-round-subject,
body[data-app-theme="dark"] .test-round-instruction,
body[data-app-theme="dark"] .question-counter,
body[data-app-theme="dark"] .feedback,
body[data-app-theme="dark"] .explanation-box {
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .answer-button,
body[data-app-theme="dark"] .answer-text-input {
  border-color: var(--dark-line-strong) !important;
  background: var(--dark-surface-raised) !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .answer-button.selected {
  border-color: var(--dark-brand-strong) !important;
  background: rgba(77, 162, 191, 0.13) !important;
}

html[data-app-theme="dark"] .education-gate.is-test-question-layout .answer-text-input,
html[data-app-theme="dark"] body.test-modal-active .education-gate .answer-text-input,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate .answer-text-input {
  border: 1px solid var(--dark-line-strong) !important;
  background: var(--dark-surface-raised) !important;
  color: var(--dark-text) !important;
  caret-color: var(--dark-brand-strong);
  box-shadow: none !important;
}

html[data-app-theme="dark"] .education-gate.is-test-question-layout .answer-text-input::placeholder,
html[data-app-theme="dark"] body.test-modal-active .education-gate .answer-text-input::placeholder,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate .answer-text-input::placeholder {
  color: var(--dark-muted) !important;
  opacity: 1;
}

html[data-app-theme="dark"] .education-gate.is-test-question-layout .answer-text-input:focus,
html[data-app-theme="dark"] .education-gate.is-test-question-layout .answer-text-input:focus-visible,
html[data-app-theme="dark"] body.test-modal-active .education-gate .answer-text-input:focus,
html[data-app-theme="dark"] body.test-modal-active .education-gate .answer-text-input:focus-visible,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate .answer-text-input:focus,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate .answer-text-input:focus-visible {
  outline: none;
  border-color: var(--dark-brand-strong) !important;
  box-shadow: 0 0 0 3px rgba(77, 162, 191, 0.16) !important;
}

body[data-app-theme="dark"] .progress-track,
body[data-app-theme="dark"] .test-journey-evaluation__learning-track {
  background: var(--dark-surface-soft) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation,
body[data-app-theme="dark"] .test-journey-evaluation__card,
body[data-app-theme="dark"] .test-journey-evaluation__result-grid,
body[data-app-theme="dark"] .test-journey-evaluation__review-item,
body[data-app-theme="dark"] .test-journey-evaluation__hero-metric-card {
  border-color: var(--dark-line) !important;
  background: var(--dark-surface) !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__title,
body[data-app-theme="dark"] .test-journey-evaluation__section-title,
body[data-app-theme="dark"] .test-journey-evaluation__learning-title,
body[data-app-theme="dark"] .test-journey-evaluation__consultor-message {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__copy,
body[data-app-theme="dark"] .test-journey-evaluation__summary,
body[data-app-theme="dark"] .test-journey-evaluation__review-copy,
body[data-app-theme="dark"] .test-journey-evaluation__indicator-copy {
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .setup-warning-overlay,
body[data-app-theme="dark"] .professor-master-alert-overlay,
body[data-app-theme="dark"] .test-logout-overlay,
body[data-app-theme="dark"] .unlock-award-overlay {
  background: rgba(0, 0, 0, 0.7) !important;
}

body[data-app-theme="dark"] .professor-master-alert-modal {
  border-color: color-mix(in srgb, var(--professor-master-accent) 36%, transparent);
  background: rgba(17, 30, 38, 0.98);
  color: var(--dark-text);
  box-shadow: 0 26px 78px rgba(0, 0, 0, 0.52);
}

body[data-app-theme="dark"] .professor-master-alert-modal__title,
body[data-app-theme="dark"] .professor-master-alert-modal__status,
body[data-app-theme="dark"] .professor-master-alert-modal__focus p {
  color: var(--dark-text);
}

body[data-app-theme="dark"] .professor-master-alert-modal__progress-label {
  color: var(--dark-text-muted);
}

body[data-app-theme="dark"] .professor-master-alert-modal__focus {
  background: color-mix(in srgb, var(--professor-master-accent) 10%, var(--dark-surface));
}

body[data-app-theme="dark"] .professor-master-alert-modal__button--secondary {
  background: transparent;
  color: var(--professor-master-accent);
}

body[data-app-theme="dark"] .setup-warning-modal,
body[data-app-theme="dark"] .study-guided-docx-progress,
body[data-app-theme="dark"] .test-logout-modal,
body[data-app-theme="dark"] .unlock-award-card {
  border-color: var(--dark-line-strong) !important;
  background: var(--dark-surface-raised) !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .setup-warning-modal__title,
body[data-app-theme="dark"] .setup-warning-modal__message,
body[data-app-theme="dark"] .test-logout-modal h2,
body[data-app-theme="dark"] .test-logout-modal p {
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .setup-warning-modal__icon {
  background: rgba(77, 162, 191, 0.15) !important;
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .setup-warning-modal__button,
body[data-app-theme="dark"] .primary-button,
body[data-app-theme="dark"] .test-logout-confirm,
body[data-app-theme="dark"] .test-status-stop-button {
  background: var(--dark-brand) !important;
  color: #ffffff !important;
}

body[data-app-theme="dark"] .setup-warning-modal__button--secondary,
body[data-app-theme="dark"] .test-logout-secondary {
  border-color: var(--dark-line-strong) !important;
  background: var(--dark-surface-soft) !important;
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .test-status-brand h2,
body[data-app-theme="dark"] .test-status-message,
body[data-app-theme="dark"] .test-status-countdown,
body[data-app-theme="dark"] .responsible-entry-label,
body[data-app-theme="dark"] .responsible-entry-message {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] a:focus-visible,
body[data-app-theme="dark"] button:focus-visible,
body[data-app-theme="dark"] input:focus-visible,
body[data-app-theme="dark"] textarea:focus-visible,
body[data-app-theme="dark"] select:focus-visible {
  outline-color: var(--dark-orange) !important;
}

html[data-app-theme="dark"] body.parent-visual-light .brand-logo {
  background: none !important;
  filter: none;
}

html[data-app-theme="dark"] body.parent-visual-light .brand-logo::before,
html[data-app-theme="dark"] body.parent-visual-light .brand-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("assets/login-logo-symbol-dark-lightblue.png") center / contain no-repeat;
}

html[data-app-theme="dark"] body.parent-visual-light .brand-logo::before {
  filter: brightness(1.28) saturate(0.55);
}

html[data-app-theme="dark"] body.parent-visual-light .brand-logo::after {
  clip-path: circle(3.5% at 84.8% 64.8%);
}

html[data-app-theme="dark"] body.parent-visual-light .topbar .brand h1,
html[data-app-theme="dark"] body .test-status-brand h2,
html[data-app-theme="dark"] body .menu-summary-link--primary > span:last-child {
  color: #e8f1f5 !important;
}

html[data-app-theme="dark"] body .menu-summary-logo {
  content: url("assets/login-logo-symbol-dark-lightblue.png");
}

html[data-app-theme="dark"] body.parent-visual-light #parentView .parent-dashboard-home,
html[data-app-theme="dark"] body.parent-visual-light #parentView .parent-subjects-panel,
html[data-app-theme="dark"] body.parent-visual-light #parentView .parent-select-stack,
html[data-app-theme="dark"] body.parent-visual-light #parentView .post-login-actions,
html[data-app-theme="dark"] body.parent-visual-light #parentView .import-buttons-container,
html[data-app-theme="dark"] body.parent-visual-light #parentView .apply-test-panel {
  background: transparent !important;
}

html[data-app-theme="dark"] body.parent-visual-light #parentView .parent-select-shell--indigo,
html[data-app-theme="dark"] body.parent-visual-light #parentView .parent-select-shell--orange,
html[data-app-theme="dark"] body.parent-visual-light #parentView .parent-select-shell--violet {
  background: var(--dark-surface-raised) !important;
  border-color: var(--dark-line-strong) !important;
  overflow: visible !important;
}

html[data-app-theme="dark"] body.parent-visual-light #parentView .parent-select-shell select,
html[data-app-theme="dark"] body.parent-visual-light #parentView .prototype-grade-trigger {
  background: transparent !important;
  color: var(--dark-brand) !important;
}

html[data-app-theme="dark"] body .splash-screen {
  background: var(--dark-page) !important;
}

html[data-app-theme="dark"] body .splash-logo {
  background-image: url("assets/login-logo-symbol-dark-lightblue.png") !important;
}

/* Keep the year menu interactive and the study actions visually unframed. */
body.parent-visual-light #parentView .parent-select-stack {
  position: relative;
  z-index: 40;
}

body.parent-visual-light #parentView .prototype-grade-upper-shell,
body.parent-visual-light #parentView .prototype-grade-upper-shell.is-open {
  overflow: visible !important;
}

body.parent-visual-light #parentView .prototype-grade-upper-shell.is-open {
  z-index: 120;
}

body.parent-visual-light #parentView .prototype-grade-upper-shell .prototype-grade-menu {
  z-index: 130;
}

body.parent-visual-light:not(.profile-menu-open) .topbar {
  z-index: 150;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-camera-button,
body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-gallery-button,
body.parent-visual-light.dashboard-mode-study-guided #parentView .import-preview-button,
body.parent-visual-light.dashboard-mode-study-guided #parentView #importCurrentGradeButton {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* A escolha de matéria é a própria página, portanto não recebe a superfície
   elevada reservada para cartões de resultado e painéis de detalhe. */
body[data-app-theme="dark"].parent-visual-light #parentView .parent-dashboard-home,
body[data-app-theme="dark"].parent-visual-light #parentView .parent-subjects-panel,
body[data-app-theme="dark"] #parentView .subject-ranking,
body[data-app-theme="dark"] #parentView .subject-ranking-item {
  background-color: #0e151b !important;
  background-image: none !important;
}

/* The content and follow-up attachment menus share the same large vertical layout. */
body.parent-visual-light.dashboard-mode-study-guided #parentView .question-bank-preview-shell {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  overflow: visible;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-trigger {
  flex: 0 0 28px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-trigger[hidden],
body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu[hidden] {
  display: none !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu {
  position: absolute;
  left: 14px;
  bottom: calc(100% + 10px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 9px;
  box-sizing: border-box;
  width: var(--study-guided-attachment-menu-size);
  padding: 10px;
  border: 1px solid rgba(61, 140, 169, 0.22) !important;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 22px rgba(16, 64, 88, 0.16) !important;
  transform-origin: center bottom;
  animation: study-guided-content-menu-in 160ms ease both;
  z-index: 140;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(61, 140, 169, 0.22);
  border-bottom: 1px solid rgba(61, 140, 169, 0.22);
  background: inherit;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu > button {
  position: relative;
  z-index: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center !important;
  flex: 0 0 var(--study-guided-attachment-action-size) !important;
  width: var(--study-guided-attachment-action-size) !important;
  min-width: var(--study-guided-attachment-action-size) !important;
  height: var(--study-guided-attachment-action-size) !important;
  min-height: var(--study-guided-attachment-action-size) !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(61, 140, 169, 0.1) !important;
  color: #3d8ca9 !important;
  box-shadow: none !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu > button:hover {
  background: rgba(61, 140, 169, 0.18) !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu svg,
body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu span {
  width: var(--study-guided-attachment-icon-size) !important;
  height: var(--study-guided-attachment-icon-size) !important;
  flex-basis: var(--study-guided-attachment-icon-size) !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu > #questionBankPreviewButton.import-preview-button--upload-icon-only {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 var(--study-guided-attachment-action-size) !important;
  width: var(--study-guided-attachment-action-size) !important;
  min-width: var(--study-guided-attachment-action-size) !important;
  height: var(--study-guided-attachment-action-size) !important;
  min-height: var(--study-guided-attachment-action-size) !important;
  margin: 0 !important;
  padding: 12px !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu > #questionBankPreviewButton .import-preview-button__upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--study-guided-attachment-icon-size) !important;
  width: var(--study-guided-attachment-icon-size) !important;
  height: var(--study-guided-attachment-icon-size) !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView #studyGuidedCameraButton {
  order: 1;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView #studyGuidedGalleryButton {
  order: 2;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView #questionBankPreviewButton {
  order: 3;
}

html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu {
  border-color: rgba(82, 176, 210, 0.2) !important;
  background: rgba(27, 42, 53, 0.98) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26) !important;
}

html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu::before {
  border-color: rgba(82, 176, 210, 0.2);
}

html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu > button {
  background: rgba(82, 176, 210, 0.09) !important;
  color: #52b0d2 !important;
}

@keyframes study-guided-content-menu-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu {
    left: 38px;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-content-action-menu::before {
    left: calc(50% - 24px);
  }
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .post-login-actions,
body.parent-visual-light.dashboard-mode-study-guided #parentView .import-buttons-container,
body.parent-visual-light.dashboard-mode-study-guided #parentView .question-bank-preview-shell {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView #questionBankStatus[hidden],
body.parent-visual-light.dashboard-mode-study-guided #parentView #questionBankStatus:empty,
body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-upload-preview[hidden],
body.parent-visual-light.dashboard-mode-study-guided #parentView .question-bank-preview-panel[hidden] {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Dark theme repairs: preserve the light DOM and restyle only dark surfaces. */
body[data-app-theme="dark"].history-static-shell .history-dashboard,
body[data-app-theme="dark"].history-static-shell .history-dashboard__header,
body[data-app-theme="dark"].history-static-shell .study-guided-history-panel,
body[data-app-theme="dark"].history-static-shell .study-guided-history-card {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-app-theme="dark"].history-static-shell .history-dashboard__header::before,
body[data-app-theme="dark"].history-static-shell .history-dashboard__header::after {
  content: none !important;
  display: none !important;
}

body[data-app-theme="dark"] .study-guided-history-chart-axis {
  background: linear-gradient(
    90deg,
    var(--dark-surface) 0 82%,
    rgba(21, 30, 38, 0)
  ) !important;
}

body[data-app-theme="dark"] .study-guided-history-chart-axis__label,
body[data-app-theme="dark"] .study-guided-history-chart__axis-label {
  color: var(--dark-muted) !important;
  fill: var(--dark-muted) !important;
  text-shadow: none !important;
}

body[data-app-theme="dark"] .study-guided-history-chart__point {
  stroke: var(--dark-surface) !important;
}

body[data-app-theme="dark"] .study-guided-history-chart__point.is-latest {
  stroke: var(--history-chart-accent, var(--dark-brand)) !important;
}

body[data-app-theme="dark"] .study-guided-history-chart-card__badge {
  border: 1px solid var(--dark-line) !important;
  background: var(--dark-surface-soft) !important;
  color: var(--history-chart-accent, var(--dark-brand-strong)) !important;
}

body[data-app-theme="dark"] .study-guided-followup-composer__input {
  border-width: 1px !important;
  border-color: var(--dark-text) !important;
  background: var(--dark-surface-raised) !important;
  color: var(--dark-text) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34) !important;
}

body[data-app-theme="dark"] .study-guided-followup-attachment-trigger:not(.study-guided-content-action-trigger) {
  border-color: var(--dark-text) !important;
  background: var(--dark-page) !important;
  color: var(--dark-text) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

body[data-app-theme="dark"] .study-guided-content-action-trigger {
  border-color: var(--dark-muted) !important;
  background: var(--dark-page) !important;
  color: var(--dark-muted) !important;
  box-shadow: none !important;
}

body[data-app-theme="dark"] .study-guided-content-action-trigger:disabled {
  border-color: var(--dark-muted) !important;
  background: var(--dark-page) !important;
  color: var(--dark-muted) !important;
  box-shadow: none !important;
  opacity: 0.58;
}

body[data-app-theme="dark"] .study-guided-followup-attachment-menu {
  border-color: var(--dark-line) !important;
  background: var(--dark-surface-raised) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34) !important;
}

body[data-app-theme="dark"] .study-guided-followup-attachment-menu button,
body[data-app-theme="dark"] .study-guided-followup-composer__file-chip {
  border-color: var(--dark-line) !important;
  background: rgba(78, 180, 218, 0.08) !important;
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .study-guided-followup-message--user .study-guided-followup-message__bubble {
  border: 1px solid var(--dark-line) !important;
  background: var(--dark-surface-raised) !important;
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .study-guided-followup-message--user .study-guided-followup-message__bubble p {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .study-guided-followup-message--assistant .study-guided-followup-message__bubble,
body[data-app-theme="dark"] .study-guided-followup-message--assistant .study-guided-followup-message__bubble p,
body[data-app-theme="dark"] .study-guided-followup-message__bubble strong,
body[data-app-theme="dark"] .study-guided-followup-answer-list li,
body[data-app-theme="dark"] .study-guided-followup-topic-title,
body[data-app-theme="dark"] .study-guided-followup-exercise-item__label,
body[data-app-theme="dark"] .study-guided-followup-exercise-item__content,
body[data-app-theme="dark"] .study-guided-followup-typing {
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .study-guided-followup-equation {
  border-left-color: rgba(78, 180, 218, 0.7);
  background: rgba(78, 180, 218, 0.08);
  color: #ffffff !important;
}

body[data-app-theme="dark"] .study-guided-followup-message__bubble a {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .study-guided-followup-composer__hint-text {
  color: var(--dark-text) !important;
  opacity: 0.9;
}

body[data-app-theme="dark"] .test-journey-evaluation__consultor-heading img,
body[data-app-theme="dark"] .test-journey-evaluation__consultor-spark {
  content: url("assets/consultor-inteligente-ia-icon-dark.png");
  display: block !important;
}

body[data-app-theme="dark"] .study-guided-followup-composer__send-logo {
  content: url("assets/login-logo-symbol-dark-lightblue.png");
}

body[data-app-theme="dark"].dashboard-mode-study-guided:not(.login-visual-light)
  .study-guided-followup-composer:not([hidden]) {
  display: block !important;
}

html[data-app-theme="dark"] body.test-modal-active .education-gate,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate,
html[data-app-theme="dark"] body.test-modal-active .education-gate.is-summary-layout,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate.is-summary-layout {
  border-color: var(--dark-line) !important;
  background: var(--dark-page) !important;
  color: var(--dark-text) !important;
}

html[data-app-theme="dark"] body.test-modal-active .education-gate .test-round-top,
html[data-app-theme="dark"] body.test-modal-active .education-gate .test-round-body,
html[data-app-theme="dark"] body.test-modal-active .education-gate .action-row,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate .test-round-top,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate .test-round-body,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate .action-row {
  border-color: var(--dark-line) !important;
  background: var(--dark-surface) !important;
  color: var(--dark-text) !important;
}

html[data-app-theme="dark"] .education-gate.is-test-question-layout,
html[data-app-theme="dark"] body.test-modal-active .education-gate.is-test-question-layout,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout {
  border: 1px solid var(--dark-line-strong) !important;
  border-radius: 28px !important;
  background: var(--dark-page) !important;
  box-shadow: none !important;
}

html[data-app-theme="dark"] .education-gate.is-test-question-layout .test-round-top,
html[data-app-theme="dark"] .education-gate.is-test-question-layout .test-round-body,
html[data-app-theme="dark"] .education-gate.is-test-question-layout .action-row,
html[data-app-theme="dark"] body.test-modal-active .education-gate.is-test-question-layout .test-round-top,
html[data-app-theme="dark"] body.test-modal-active .education-gate.is-test-question-layout .test-round-body,
html[data-app-theme="dark"] body.test-modal-active .education-gate.is-test-question-layout .action-row,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .test-round-top,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .test-round-body,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .action-row {
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--dark-page) !important;
  box-shadow: none !important;
}

html[data-app-theme="dark"] .education-gate.is-test-question-layout .answer-button,
html[data-app-theme="dark"] body.test-modal-active .education-gate .answer-button,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate .answer-button {
  border-color: var(--dark-line-strong) !important;
  background: var(--dark-surface-raised) !important;
  box-shadow: none !important;
}

html[data-app-theme="dark"] .education-gate.is-test-question-layout .answer-button > span:last-child,
html[data-app-theme="dark"] .education-gate.is-test-question-layout .answer-text-input,
html[data-app-theme="dark"] body.test-modal-active .education-gate .answer-button > span:last-child,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate .answer-button > span:last-child,
html[data-app-theme="dark"] body.test-modal-active .education-gate .answer-text-input,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate .answer-text-input {
  color: var(--dark-text) !important;
}

html[data-app-theme="dark"] .education-gate.is-test-question-layout .answer-button.selected,
html[data-app-theme="dark"] body.test-modal-active .education-gate .answer-button.selected,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate .answer-button.selected {
  border-color: var(--dark-brand-strong) !important;
  background: rgba(77, 162, 191, 0.15) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__top-frame,
body[data-app-theme="dark"] .test-journey-evaluation__hero,
body[data-app-theme="dark"] .test-journey-evaluation__hero-header,
body[data-app-theme="dark"] .test-journey-evaluation__hero-body,
body[data-app-theme="dark"] .test-journey-evaluation__card--learned,
body[data-app-theme="dark"] .test-journey-evaluation__card--profile,
body[data-app-theme="dark"] .test-journey-evaluation__profile-body,
body[data-app-theme="dark"] .test-journey-evaluation__reinforce-body,
body[data-app-theme="dark"] .test-journey-evaluation__error-drop,
body[data-app-theme="dark"] .test-journey-evaluation__error-drop-panel {
  border-color: var(--dark-line) !important;
  background: var(--dark-surface) !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__top-frame {
  border-color: var(--dark-line-strong) !important;
  background: var(--dark-page) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__hero,
body[data-app-theme="dark"] .test-journey-evaluation__hero-header,
body[data-app-theme="dark"] .test-journey-evaluation__hero-body {
  background: var(--dark-page) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__card--learned,
body[data-app-theme="dark"] .test-journey-evaluation__card--interest,
body[data-app-theme="dark"] .test-journey-evaluation__card--profile,
body[data-app-theme="dark"] .test-journey-evaluation__card--reinforce,
body[data-app-theme="dark"] .test-journey-evaluation__profile-body,
body[data-app-theme="dark"] .test-journey-evaluation__reinforce-body {
  background: var(--dark-page) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__learned-panel {
  background: linear-gradient(135deg, #1d4a5d 0%, #275f76 100%) !important;
  box-shadow: none !important;
}

body[data-app-theme="dark"] .test-journey-evaluation {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-app-theme="dark"] .education-gate.is-summary-layout,
body[data-app-theme="dark"] .education-gate.is-summary-layout .explanation-box {
  border: 0 !important;
  outline: 0 !important;
  overflow: visible !important;
}

html[data-app-theme="dark"] body.test-modal-active .education-gate.is-summary-layout,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate.is-summary-layout {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-app-theme="dark"] body.test-modal-active .education-gate.is-summary-layout .test-round-body,
html[data-app-theme="dark"] body.inline-test-active #parentView .inline-test-host .education-gate.is-summary-layout .test-round-body {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__card--interest,
body[data-app-theme="dark"] .test-journey-evaluation__card--error-summary,
body[data-app-theme="dark"] .test-journey-evaluation__card--consultor-callout {
  background: transparent !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__card--error-summary::before,
body[data-app-theme="dark"] .test-journey-evaluation__card--error-summary::after {
  content: none !important;
  display: none !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__card--error-summary {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__hero-title,
body[data-app-theme="dark"] .test-journey-evaluation__hero-result,
body[data-app-theme="dark"] .test-journey-evaluation__hero-subject,
body[data-app-theme="dark"] .test-journey-evaluation__hero-datetime,
body[data-app-theme="dark"] .test-journey-evaluation__hero-analysis-title,
body[data-app-theme="dark"] .test-journey-evaluation__loading-title,
body[data-app-theme="dark"] .test-journey-evaluation__hero-profile-copy,
body[data-app-theme="dark"] .test-journey-evaluation__interest-copy,
body[data-app-theme="dark"] .test-journey-evaluation__paragraph,
body[data-app-theme="dark"] .test-journey-evaluation__empty,
body[data-app-theme="dark"] .test-journey-evaluation__loading-text,
body[data-app-theme="dark"] .test-journey-evaluation__list li,
body[data-app-theme="dark"] .test-journey-evaluation__correct-question-item,
body[data-app-theme="dark"] .test-journey-evaluation__correct-question-item p,
body[data-app-theme="dark"] .test-journey-evaluation__plan-text,
body[data-app-theme="dark"] .test-journey-evaluation__domain-topic {
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__review-prefix {
  color: var(--test-summary-accent, #3f93ae) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__reinforcement-content-excerpt {
  border-left-color: color-mix(in srgb, var(--test-summary-accent, var(--dark-brand-strong)) 72%, transparent);
  background: color-mix(in srgb, var(--test-summary-accent, var(--dark-brand-strong)) 12%, transparent);
}

body[data-app-theme="dark"] .test-journey-evaluation__reinforcement-content-excerpt > span {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__reinforcement-content-excerpt p {
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__reinforcement-source-highlight {
  background: color-mix(in srgb, var(--test-summary-accent, var(--dark-brand-strong)) 34%, transparent);
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__reinforcement-review-item,
body[data-app-theme="dark"] .test-journey-evaluation__reinforcement-review-item p {
  color: var(--dark-text);
}

body[data-app-theme="dark"] .test-journey-evaluation__reinforcement-review-item {
  border-bottom-color: rgba(82, 178, 211, 0.18);
}

body[data-app-theme="dark"] .test-journey-evaluation__domain-status,
body[data-app-theme="dark"] .test-journey-evaluation__error-drop-summary,
body[data-app-theme="dark"] .test-journey-evaluation__error-label,
body[data-app-theme="dark"] .test-journey-evaluation__plan-title,
body[data-app-theme="dark"] .test-journey-evaluation__plan-lead,
body[data-app-theme="dark"] .test-journey-evaluation__consultor-heading,
body[data-app-theme="dark"] .test-journey-evaluation__consultor-field {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__error-label--selected {
  color: #cf6173 !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__error-label--correct {
  color: #75b59e !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__hero-progress,
body[data-app-theme="dark"] .test-journey-evaluation__hero-metric-bar,
body[data-app-theme="dark"] .test-journey-evaluation__loading-bar {
  background: var(--dark-surface-soft) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__top-frame--overview {
  border: 0 !important;
  background: transparent !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__overview-title,
body[data-app-theme="dark"] .test-journey-evaluation__overview-score,
body[data-app-theme="dark"] .test-journey-evaluation__overview-interest-title,
body[data-app-theme="dark"] .test-journey-evaluation__overview-icon,
body[data-app-theme="dark"] .test-journey-evaluation__overview-interest-icon {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__overview-title span {
  color: color-mix(in srgb, var(--test-summary-accent, var(--dark-brand-strong)) 78%, #ffffff 22%) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__correct-question-item > strong,
body[data-app-theme="dark"] .test-journey-evaluation__correct-question-item > div > span {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__overview-learned .test-journey-evaluation__list li::before,
body[data-app-theme="dark"] .test-journey-evaluation__correct-question-item::before,
body[data-app-theme="dark"] .test-journey-evaluation__overview-learned .test-journey-evaluation__empty::before,
body[data-app-theme="dark"] .test-journey-evaluation__overview-learned .test-journey-evaluation__consolidated::before,
body[data-app-theme="dark"] .test-journey-evaluation__overview-interest-body .test-journey-evaluation__list li::before {
  color: var(--dark-brand-strong);
}

body[data-app-theme="dark"] .test-journey-evaluation__plan-card,
body[data-app-theme="dark"] .test-journey-evaluation__plan-card--easy,
body[data-app-theme="dark"] .test-journey-evaluation__plan-card--medium,
body[data-app-theme="dark"] .test-journey-evaluation__plan-card--hard,
body[data-app-theme="dark"] .test-journey-evaluation__summary-item,
body[data-app-theme="dark"] .test-journey-evaluation__result-item,
body[data-app-theme="dark"] .test-journey-evaluation__indicator {
  border-color: var(--dark-line) !important;
  background: var(--dark-surface-raised) !important;
  color: var(--dark-text) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__consultor-field {
  border-color: var(--dark-line-strong) !important;
  background: var(--dark-surface-raised) !important;
  box-shadow: none !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__consultor-logo {
  content: url("assets/login-logo-symbol-dark-lightblue.png");
  object-fit: contain;
}

body[data-app-theme="dark"] .test-journey-evaluation__consultor-note {
  color: var(--dark-orange) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__consultor-note span {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__profile-header,
body[data-app-theme="dark"] .test-journey-evaluation__profile-header .test-journey-evaluation__title,
body[data-app-theme="dark"] .test-journey-evaluation__profile-icon,
body[data-app-theme="dark"] .test-journey-evaluation__reinforce-header,
body[data-app-theme="dark"] .test-journey-evaluation__reinforce-header .test-journey-evaluation__title,
body[data-app-theme="dark"] .test-journey-evaluation__reinforce-icon {
  color: var(--dark-brand-strong) !important;
  background-color: transparent !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__profile-icon,
body[data-app-theme="dark"] .test-journey-evaluation__reinforce-icon {
  background: currentColor !important;
}

/* Keep the test generator independent from the compact upload toolbar. */
body.parent-visual-light.dashboard-mode-study-guided #parentView
  .study-guided-explanation-body
  > .study-guided-test-group:not([hidden]) {
  display: block !important;
  overflow: visible !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-test-choice-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-test-actions.import-buttons-container {
  display: flex !important;
  width: auto !important;
  min-width: max-content;
  max-width: none !important;
  flex: 0 0 auto;
  overflow: visible !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView
  .study-guided-test-actions
  > .study-guided-test-generate-button {
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__card--error-summary > .test-journey-evaluation__title {
  color: #ffffff !important;
}

.test-journey-evaluation__consultor-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1.8vw, 14px);
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
}

.test-journey-evaluation__consultor-robot {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3d8ca9;
}

.test-journey-evaluation__consultor-robot svg {
  display: block;
  width: clamp(62px, 12vw, 88px);
  max-width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.test-journey-evaluation__consultor-content {
  display: grid;
  gap: clamp(10px, 1.8vw, 14px);
  width: min(100%, 495px);
  margin: 0 auto;
  min-width: 0;
}

.test-journey-evaluation__consultor-content .test-journey-evaluation__consultor-field {
  width: 100%;
  max-width: none;
  min-height: clamp(34px, 6vw, 42px);
  margin: 0;
  padding-inline: clamp(7px, 1.8vw, 12px);
  font-size: clamp(0.62rem, 1.8vw, 0.76rem);
}

.test-journey-evaluation__consultor-benefits {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: clamp(18px, 4vw, 28px);
  color: #3d8ca9;
  font-size: clamp(0.82rem, 2.4vw, 1rem);
  font-weight: 400;
  line-height: 1.26;
}

.test-journey-evaluation__consultor-benefits li {
  padding-left: 2px;
}

.test-journey-evaluation__consultor-save-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(9px, 2vw, 12px);
  min-height: clamp(34px, 6vw, 38px);
  padding-left: clamp(20px, 4vw, 30px);
  color: #3d8ca9;
  font-size: clamp(0.82rem, 2.4vw, 1rem);
  font-weight: 400;
  line-height: 1.26;
}

.test-journey-evaluation__consultor-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid #b8d9e3;
  border-radius: 18px;
  background: #ffffff;
  color: #348ba8;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.test-journey-evaluation__consultor-save-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.test-journey-evaluation__consultor-save-button:hover,
.test-journey-evaluation__consultor-save-button:focus-visible {
  border-color: #3d8ca9;
  outline: none;
}

.test-journey-evaluation__consultor-save-button.is-saved {
  border-color: #9cc9b2;
  color: #2f8b57;
}

.test-journey-evaluation__consultor-save-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.test-journey-evaluation__card--profile,
.test-journey-evaluation__card--reinforce {
  margin-top: 18px;
}

@media (min-width: 521px) and (max-width: 1024px) {
  .test-journey-evaluation__overview-header,
  .test-journey-evaluation__overview-interest-header,
  .test-journey-evaluation__error-summary-header,
  .test-journey-evaluation__profile-header,
  .test-journey-evaluation__reinforce-header {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .test-journey-evaluation__overview-icon,
  .test-journey-evaluation__overview-interest-icon,
  .test-journey-evaluation__error-summary-icon,
  .test-journey-evaluation__profile-icon,
  .test-journey-evaluation__reinforce-icon {
    width: 52px;
    height: 52px;
  }

  .test-journey-evaluation__overview-heading {
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    gap: 10px;
    min-width: 0;
  }

  .test-journey-evaluation__overview-title,
  .test-journey-evaluation__overview-score,
  .test-journey-evaluation__overview-interest-title,
  .test-journey-evaluation__card--error-summary .test-journey-evaluation__title,
  .test-journey-evaluation__profile-header .test-journey-evaluation__title,
  .test-journey-evaluation__card--reinforce .test-journey-evaluation__title {
    font-size: 1.08rem;
  }

  .test-journey-evaluation__overview-title {
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .test-journey-evaluation__overview-interest-title {
    white-space: nowrap;
  }

  .test-journey-evaluation__overview-learned,
  .test-journey-evaluation__overview-interest-body {
    margin-left: 0;
  }
}

body[data-app-theme="dark"] .test-journey-evaluation__consultor-robot,
body[data-app-theme="dark"] .test-journey-evaluation__consultor-benefits,
body[data-app-theme="dark"] .test-journey-evaluation__consultor-save-row {
  color: var(--dark-brand-strong) !important;
}

body[data-app-theme="dark"] .test-journey-evaluation__consultor-save-button {
  border-color: var(--dark-line-strong);
  background: var(--dark-surface-raised);
  color: var(--dark-brand-strong);
}

body[data-app-theme="dark"] .test-journey-evaluation__consultor-save-button:hover,
body[data-app-theme="dark"] .test-journey-evaluation__consultor-save-button:focus-visible {
  border-color: var(--dark-brand-strong);
}

/* The active test survives dashboard navigation. Keep its action independent
   from transient body classes so legacy global button rules cannot take over. */
.education-gate.is-test-question-layout #nextButton {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 48px !important;
  margin: 0 auto !important;
  padding: 7px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #5a9fbc !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}

.education-gate.is-test-question-layout #nextButton::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background:
    #5a9fbc
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 18px 18px no-repeat;
}

.education-gate.is-test-question-layout #nextButton:disabled {
  color: rgba(90, 159, 188, 0.5) !important;
  opacity: 1 !important;
}

.education-gate.is-test-question-layout #nextButton:disabled::before {
  opacity: 0.55;
}

body[data-app-theme="dark"] .education-gate.is-test-question-layout #nextButton {
  background: transparent !important;
  color: var(--dark-brand-strong) !important;
}

@media (max-width: 520px) {
  .test-journey-evaluation__card--error-summary {
    margin-top: 20px;
  }

  .test-journey-evaluation__card--profile,
  .test-journey-evaluation__card--reinforce {
    margin-top: 14px;
  }

  .test-journey-evaluation__consultor-callout {
    gap: 8px;
  }

  .test-journey-evaluation__consultor-robot {
    justify-self: center;
  }

  .test-journey-evaluation__consultor-robot svg {
    width: 62px;
  }

  .test-journey-evaluation__consultor-content {
    gap: 10px;
  }

  .test-journey-evaluation__consultor-content .test-journey-evaluation__consultor-field {
    min-height: 34px;
    padding: 0 7px;
    font-size: 0.62rem;
  }

  .test-journey-evaluation__consultor-benefits {
    gap: 3px;
    padding-left: 18px;
    font-size: 0.82rem;
    line-height: 1.24;
  }

  .test-journey-evaluation__consultor-save-row {
    gap: 9px;
    min-height: 34px;
    padding-left: 20px;
    font-size: 0.82rem;
  }

  .test-journey-evaluation__consultor-save-button {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.72rem;
  }
}

@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  body.dashboard-mode-study-guided .study-guided-followup-composer {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(calc(100% - 56px), 960px);
    margin: 0;
    z-index: 95;
  }
}

/* Desktop only: test invitation mirrors the three-column reading workspace. */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  body.dashboard-mode-study-guided #parentView .parent-dashboard-home {
    grid-template-rows: auto auto auto !important;
    align-items: stretch !important;
    row-gap: 0 !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-desktop-sidebar,
  body.dashboard-mode-study-guided #parentView .study-guided-desktop-main {
    grid-row: 1 !important;
    align-self: stretch !important;
    min-height: 100%;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-desktop-sidebar {
    grid-column: 1 !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-desktop-main {
    grid-column: 2 !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-explanation-panel,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-body,
  body.dashboard-mode-study-guided #parentView .study-guided-read-list--explanation {
    min-height: 100%;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-read-list--explanation {
    align-items: stretch !important;
  }

  /* The three visible reading columns share one real bottom edge on desktop. */
  body.dashboard-mode-study-guided #parentView .study-guided-desktop-main {
    --study-guided-desktop-reading-row-gap: 18px;
    height: var(--study-guided-desktop-reading-height, auto);
    min-height: 0 !important;
    overflow: hidden;
  }

  body.inline-test-summary-active.dashboard-mode-study-guided #parentView .study-guided-desktop-main {
    height: auto !important;
    overflow: visible !important;
  }

  /* Complementary answers continue below the complete cards and mind map. */
  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-main:has(.study-guided-explanation-body.has-followup-messages) {
    height: auto !important;
    min-height: var(--study-guided-desktop-reading-height, 0) !important;
    overflow: visible !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-explanation-panel:has(.study-guided-explanation-body.has-followup-messages),
  body.dashboard-mode-study-guided #parentView
    .study-guided-explanation-body.has-followup-messages {
    height: auto !important;
    min-height: var(--study-guided-desktop-reading-height, 0) !important;
    overflow: visible !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-explanation-body.has-followup-messages
    > .study-guided-explanation-content {
    height: var(--study-guided-desktop-reading-height, auto) !important;
    min-height: var(--study-guided-desktop-reading-height, 0) !important;
    overflow: visible !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-explanation-body.has-followup-messages
    > .study-guided-followup-group {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 8px;
  }

  body.inline-test-summary-active.dashboard-mode-study-guided #parentView .study-guided-explanation-panel,
  body.inline-test-summary-active.dashboard-mode-study-guided #parentView .study-guided-explanation-body,
  body.inline-test-summary-active.dashboard-mode-study-guided #parentView .study-guided-explanation-content {
    height: auto !important;
    overflow: visible !important;
  }

  body.inline-test-summary-active.dashboard-mode-study-guided #parentView
    .study-guided-explanation-group:first-child {
    height: var(--study-guided-desktop-reading-height, auto) !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-explanation-panel,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-body,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-content,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-group:first-child,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-group:first-child .study-guided-explanation-section {
    height: 100%;
    min-height: 0;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-explanation-content {
    overflow: hidden;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-explanation-group:first-child {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  body.dashboard-mode-study-guided #parentView .study-guided-read-list--explanation {
    grid-template-rows: repeat(5, minmax(0, 1fr));
    height: var(--study-guided-desktop-reading-content-height, 100%) !important;
    min-height: 0;
    gap: var(--study-guided-desktop-reading-row-gap) 12px !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > .study-guided-read-row--reveal {
    height: 100%;
    min-height: 0 !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > :is(.study-guided-mind-map-row, .study-guided-math-visual-row, .study-guided-generated-infographic-row) {
    grid-row: 1 / 6 !important;
    min-height: 0;
    overflow: hidden;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map-row .study-guided-read-row__text {
    height: 100%;
    min-height: 0;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map-row {
    overflow: visible !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map-row .study-guided-read-row__text > p {
    display: none;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map {
    grid-template-rows:
      repeat(
        4,
        minmax(112px, auto) var(--study-guided-desktop-reading-row-gap)
      )
      minmax(112px, auto);
    align-items: stretch;
    height: auto;
    min-height: 0;
    gap: 0 !important;
    margin: 0;
    padding-bottom: 4px;
    box-sizing: border-box;
    transform: translateY(-8px);
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__node,
  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__node--central {
    width: 100%;
    height: auto;
    min-height: 112px;
    padding: 8px clamp(28px, 3vw, 44px);
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__arrow {
    width: 18px;
    height: var(--study-guided-desktop-reading-row-gap);
    align-self: center;
    justify-self: center;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__arrow::before,
  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__arrow::after {
    top: calc(50% - 2px);
    width: 11px;
    height: 3px;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__arrow::before {
    left: 1px;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__arrow::after {
    right: 1px;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__title {
    font-size: clamp(0.78rem, 0.92vw, 1rem);
    line-height: 1.16;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__items {
    gap: 2px;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__item {
    font-size: clamp(0.66rem, 0.72vw, 0.82rem);
    line-height: 1.18;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-reveal-card {
    padding: 24px 22px 18px;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-reveal-card__title {
    font-size: clamp(1rem, 1.35vw, 1.34rem);
  }

  body.dashboard-mode-study-guided #parentView .study-guided-step-reflection__textarea {
    padding: 10px 12px;
    font-size: clamp(0.72rem, 0.76vw, 0.82rem);
    line-height: 1.35;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > :is(.study-guided-mind-map-row, .study-guided-math-visual-row, .study-guided-generated-infographic-row) {
    align-self: stretch !important;
    height: 100%;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-desktop-test-panel {
    grid-row: 2 !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-desktop-test-panel {
    grid-column: 1 / -1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 14px 0 6px !important;
    box-sizing: border-box;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-desktop-test-panel:empty {
    display: none !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-group {
    display: grid !important;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 2.18fr) !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    column-gap: clamp(28px, 3vw, 54px) !important;
    row-gap: 0 !important;
    width: 100% !important;
    min-height: 142px;
    min-width: 0;
    margin: 0 !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    [data-study-guided-test-intro-shell],
  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-intro {
    display: contents !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-intro__animation {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: start !important;
    place-items: start center !important;
    width: 100% !important;
    height: 142px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-self: stretch !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-intro__scene {
    grid-template-columns: minmax(82px, 108px) minmax(0, 220px) !important;
    align-items: center !important;
    justify-content: start !important;
    width: 100% !important;
    max-width: 380px !important;
    height: 142px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-intro__icon {
    max-width: 108px !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-intro__message {
    font-size: clamp(0.9rem, 1.2vw, 1.15rem) !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-intro__text {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    justify-self: center !important;
    width: 100% !important;
    margin: 0 0 10px !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    [data-study-guided-test-controls-shell] {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    width: 100% !important;
    min-width: 0;
    padding: 0 !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-config {
    gap: 8px !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-choice-row {
    margin-top: 2px !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-config,
  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-count-shell,
  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-count-trigger {
    width: 100% !important;
    min-width: 0;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-desktop-test-panel
    .study-guided-test-count-shell {
    margin-top: 0 !important;
  }

  body.inline-test-active.dashboard-mode-study-guided #parentView .study-guided-desktop-test-panel,
  body.inline-test-summary-active.dashboard-mode-study-guided #parentView .study-guided-desktop-test-panel {
    display: none !important;
  }

  body.inline-test-active.dashboard-mode-study-guided #parentView .study-guided-desktop-main {
    display: none !important;
  }

  body.inline-test-active.dashboard-mode-study-guided #parentView .inline-test-host,
  body.inline-test-active.dashboard-mode-study-guided #parentView #stopTestButton {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
  }

  body.inline-test-active.dashboard-mode-study-guided #parentView .inline-test-host {
    grid-row: 1 !important;
    width: min(100%, 720px) !important;
    margin-inline: auto !important;
  }

  body.inline-test-active.dashboard-mode-study-guided #parentView #stopTestButton {
    grid-row: 2 !important;
  }

  body.inline-test-summary-active.dashboard-mode-study-guided #parentView .inline-test-host {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    width: min(100%, 960px) !important;
    margin: 26px auto 0 !important;
  }
}

/* O navegador usa a mesma coluna única do print de referência. Não deixe as
   regras antigas de três colunas limitarem a altura da explicação e cortarem
   os cards seguintes. */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-explanation-panel,
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-explanation-body,
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-explanation-content,
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-explanation-group:first-child,
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-explanation-group:first-child .study-guided-explanation-section {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > .study-guided-read-row--reveal {
    height: auto !important;
    min-height: clamp(148px, 20vw, 184px) !important;
  }

  /* Depois de aberto, cada ponto deve ocupar somente a altura do texto,
     como no celular e no tablet. */
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > .study-guided-read-row--reveal.is-revealed {
    min-height: 0 !important;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > :is(.study-guided-mind-map-row, .study-guided-math-visual-row, .study-guided-generated-infographic-row) {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

/* O navegador usa a mesma coluna única do print de referência. Não deixe as
   regras antigas de três colunas limitarem a altura da explicação e cortarem
   os cards seguintes. */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-explanation-panel,
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-explanation-body,
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-explanation-content,
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-explanation-group:first-child,
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-explanation-group:first-child .study-guided-explanation-section {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > .study-guided-read-row--reveal {
    height: auto !important;
    min-height: clamp(148px, 20vw, 184px) !important;
  }

  /* Depois de aberto, cada ponto deve ocupar somente a altura do texto,
     como no celular e no tablet. */
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > .study-guided-read-row--reveal.is-revealed {
    min-height: 0 !important;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > :is(.study-guided-mind-map-row, .study-guided-math-visual-row, .study-guided-generated-infographic-row) {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

/* Android phones and tablets keep the active test at the full width of the
   study content. The narrower 720px presentation remains desktop-only. */
@media (max-width: 1199px) {
  body.inline-test-active.dashboard-mode-study-guided #parentView .inline-test-host {
    width: calc(100% + 24px) !important;
    max-width: none !important;
    margin-inline: -12px !important;
    justify-self: stretch !important;
  }

  /* Some Android WebViews restore the inline test before all dashboard
     state classes are reapplied. Keep the same width in that transition so
     the older `100% - 54px` host rule can never narrow the test again. */
  body.inline-test-active #parentView .inline-test-host {
    width: calc(100% + 24px) !important;
    max-width: none !important;
    margin-inline: -12px !important;
  }

  /* After the last answer, keep the result/review at the same standard
     Android width as the active test. The old host width removed 54px and
     left the explanatory text in an unnecessarily narrow column. */
  body.inline-test-summary-active #parentView .inline-test-host {
    width: calc(100% + 24px) !important;
    max-width: none !important;
    margin-inline: -12px !important;
    justify-self: stretch !important;
  }

  body.inline-test-summary-active #parentView
    .inline-test-host
    .education-gate.is-summary-layout,
  body.inline-test-summary-active #parentView
    .inline-test-host
    .test-journey-evaluation {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body.inline-test-active.dashboard-mode-study-guided #parentView
    .inline-test-host
    .education-gate {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body.inline-test-active #parentView
    .inline-test-host
    .education-gate.is-test-question-layout
    .test-round-body {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  body.inline-test-active #parentView
    .inline-test-host
    .education-gate.is-test-question-layout
    .question {
    width: 100% !important;
    max-width: 300px !important;
  }

  /* Mobile and tablet post-test summaries must remain part of the page itself.
     The generic dark education surface is useful while answering questions,
     but must not return as a rectangular panel around the result/review. */
  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host,
  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .education-gate.is-summary-layout,
  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .education-gate.is-summary-layout
    .test-round-body,
  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .education-gate.is-summary-layout
    .explanation-box {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .education-gate.is-summary-layout,
  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .education-gate.is-summary-layout
    .test-round-body {
    border: 0 !important;
    outline: 0 !important;
    overflow: visible !important;
  }
}

/* Desktop post-test review: keep the result in the document flow without
   rebuilding the dark panel that is used while a question is active. */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .education-gate.is-summary-layout,
  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .education-gate.is-summary-layout
    .test-round-body,
  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .education-gate.is-summary-layout
    .explanation-box,
  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .test-journey-evaluation__top-frame,
  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .test-journey-evaluation__hero,
  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .test-journey-evaluation__hero-header,
  html[data-app-theme="dark"]
    body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .test-journey-evaluation__hero-body {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .education-gate.is-summary-layout,
  body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .test-journey-evaluation {
    width: min(100%, 900px) !important;
    margin-inline: auto !important;
    text-align: left !important;
  }

  body.inline-test-summary-active.dashboard-mode-study-guided
    #parentView
    .inline-test-host
    .test-journey-evaluation__top-frame {
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
}

/* Stable Android/tablet layout.
   Mobile content must never become wider than its viewport. Previous rules
   widened tests and simulations with negative margins; Android WebViews could
   retain that horizontal offset after a state transition and shift the whole
   dashboard. Desktop remains isolated by its min-width rules above. */
@keyframes mobileStableFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1199px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
  }

  .app-shell,
  .mobile-stage,
  .dashboard,
  #parentView,
  #parentView .parent-dashboard-home,
  #parentView .study-guided-desktop-sidebar,
  #parentView .study-guided-desktop-main,
  #parentView .study-guided-desktop-test-panel,
  #parentView .inline-test-host {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.dashboard-mode-study-guided .app-shell,
  body.dashboard-mode-study-guided .mobile-stage,
  body.dashboard-mode-study-guided #parentView {
    width: 100% !important;
    margin-inline: 0 !important;
  }

  body.dashboard-mode-study-guided .dashboard {
    width: 100% !important;
    padding-right: clamp(14px, 4vw, 24px) !important;
    padding-left: clamp(14px, 4vw, 24px) !important;
  }

  body.inline-test-active.dashboard-mode-study-guided #parentView .inline-test-host,
  body.inline-test-active #parentView .inline-test-host,
  body.inline-test-summary-active #parentView .inline-test-host {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    justify-self: stretch !important;
  }

  body.test-modal-active .education-gate .explanation-box .test-journey-evaluation,
  body.inline-test-summary-active #parentView .inline-test-host .test-journey-evaluation,
  body.inline-test-summary-active #parentView .inline-test-host .education-gate.is-summary-layout {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  .final-simulation--active,
  .final-simulation--result,
  .final-simulation--closed {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  .study-guided-followup-composer {
    left: 50%;
    width: min(calc(100vw - 20px), 526px);
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
  }

  .action-driven-entry {
    animation-name: mobileStableFade;
    transform: none !important;
  }
}

/* Android phones and tablets can expose a desktop-sized CSS viewport inside
   a WebView. Keep touch devices on the single-column reading layout even when
   that reported viewport is wider than the desktop breakpoint. */
@media (hover: none) and (pointer: coarse) {
  /* Android WebView: filtros sobre superfícies altas promovem tiles extras e
     podem deixar apenas os elementos fixos pintados ao retomar o aplicativo. */
  body.parent-visual-light .topbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-reveal-card {
    filter: none !important;
  }

  html,
  body,
  .app-shell,
  .mobile-stage,
  .dashboard,
  #parentView,
  #parentView .parent-dashboard-home,
  #parentView .study-guided-desktop-sidebar,
  #parentView .study-guided-desktop-main,
  #parentView .study-guided-desktop-test-panel {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html,
  body {
    width: 100% !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
  }

  body.dashboard-mode-study-guided .app-shell,
  body.dashboard-mode-study-guided .mobile-stage,
  body.dashboard-mode-study-guided #parentView,
  body.dashboard-mode-study-guided #parentView .parent-dashboard-home {
    width: 100% !important;
    margin-inline: auto !important;
  }

  body.dashboard-mode-study-guided #parentView .parent-dashboard-home,
  body.dashboard-mode-study-guided #parentView .study-guided-desktop-sidebar,
  body.dashboard-mode-study-guided #parentView .study-guided-desktop-main,
  body.dashboard-mode-study-guided #parentView .study-guided-desktop-test-panel {
    display: block !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-explanation-panel,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-body,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-content,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-group,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-section,
  body.dashboard-mode-study-guided #parentView .study-guided-read-list--explanation,
  body.dashboard-mode-study-guided #parentView .study-guided-read-row,
  body.dashboard-mode-study-guided #parentView .study-guided-read-row__text,
  body.dashboard-mode-study-guided #parentView .study-guided-mind-map,
  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__node {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-read-list--explanation {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Give the revealed explanation copy a comfortable reading gutter on
     Android phones and tablets without narrowing cards or visual diagrams. */
  body.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > .study-guided-read-row:not(.study-guided-mind-map-row):not(.study-guided-math-visual-row):not(.study-guided-generated-infographic-row)
    > .study-guided-read-row__text {
    box-sizing: border-box;
    padding-inline: clamp(10px, 3.5vw, 16px);
  }

  /* Keep complementary answers comfortably away from the Android viewport
     edges without moving the student's question or attached thumbnails. */
  .study-guided-followup-message--assistant .study-guided-followup-message__bubble > p,
  .study-guided-followup-message--assistant .study-guided-followup-message__bubble > .study-guided-followup-answer-list,
  .study-guided-followup-message--assistant .study-guided-followup-message__bubble > .study-guided-followup-topic-title,
  .study-guided-followup-message--assistant .study-guided-followup-message__bubble > .study-guided-followup-exercise-list,
  .study-guided-followup-message--assistant .study-guided-followup-message__bubble > .study-guided-followup-equation,
  .study-guided-followup-message--assistant .study-guided-followup-message__bubble > .study-guided-followup-typing {
    box-sizing: border-box;
    width: calc(100% - 16px);
    margin-right: 8px;
    margin-left: 8px;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > .study-guided-read-row,
  body.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > .study-guided-read-row--reveal,
  body.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > :is(.study-guided-mind-map-row, .study-guided-math-visual-row, .study-guided-generated-infographic-row) {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > .study-guided-read-row--reveal:not(.is-revealed) {
    min-height: clamp(142px, 39vw, 178px) !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-reveal-card,
  body.dashboard-mode-study-guided #parentView .study-guided-reveal-card__title,
  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__title,
  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__item {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map {
    width: 100% !important;
    height: auto !important;
    margin: 14px auto 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__node {
    width: min(94%, 610px) !important;
    height: auto !important;
    min-height: 104px !important;
    margin-inline: auto !important;
    padding: 16px 44px !important;
  }

  /* Keep the learning prompt inside Android viewports. It should read as a
     compact two-line message instead of extending beyond the screen. */
  .study-guided-test-intro__text {
    width: min(100%, 330px) !important;
    max-width: 330px !important;
    margin-inline: auto !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    text-wrap: balance;
    line-height: 1.35 !important;
  }
}

@media (max-width: 360px) {
  body.dashboard-mode-study-guided .dashboard {
    padding-inline: 8px !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-reveal-card {
    padding-inline: 12px !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-reveal-card__title {
    width: 100% !important;
    font-size: clamp(0.82rem, 5.5vw, 1.08rem) !important;
    line-height: 1.2 !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__node {
    width: 100% !important;
    padding-inline: 34px !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__title {
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
  }

  body.dashboard-mode-study-guided #parentView .study-guided-mind-map__item {
    font-size: 0.68rem !important;
    line-height: 1.22 !important;
  }
}

/* A prova no navegador não deve ocupar mais que a área útil da janela.
   Em desktop, reduzimos apenas o espaço visual: a página ainda pode rolar
   quando a pergunta ou a alternativa realmente precisar de mais altura. */
@media (min-width: 700px) {
  /* Quando uma resposta abre a explicação, o painel do navegador deve rolar
     dentro da altura que sobra abaixo do cabeçalho — nunca ficar recortado. */
  body.inline-test-active #parentView,
  body.study-assessment-active #parentView {
    height: calc(100dvh - 152px) !important;
    max-height: calc(100dvh - 152px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.inline-test-active #parentView .inline-test-host,
  body.study-assessment-active #parentView .inline-test-host {
    min-height: 0 !important;
    padding-bottom: 28px !important;
  }

  /* O navegador usa inline-test-active; ele precisa receber a mesma escala
     compacta do modo de avaliação do aplicativo. */
  body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout {
    width: min(calc(100% - 48px), 720px) !important;
    margin: 12px auto !important;
  }

  body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .test-round-top {
    padding: 20px 28px 10px !important;
  }

  body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .test-round-body {
    min-height: 0 !important;
    padding: 16px 22px 18px !important;
  }

  body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .question {
    margin: 12px auto 10px !important;
    max-width: 420px !important;
  }

  body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .step-line {
    margin-top: 10px !important;
  }

  body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .answer-list {
    gap: 6px !important;
  }

  body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .answer-button {
    min-height: 48px !important;
    padding: 8px 14px !important;
  }

  body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .action-row {
    margin-top: 16px !important;
    padding-bottom: 8px !important;
  }

  body.study-assessment-active #parentView .inline-test-host .education-gate.is-test-question-layout {
    width: min(calc(100% - 48px), 900px) !important;
    margin: 12px auto !important;
  }

  body.study-assessment-active #parentView .inline-test-host .education-gate.is-test-question-layout .test-round-top {
    padding: 20px 28px 10px !important;
  }

  body.study-assessment-active #parentView .inline-test-host .education-gate.is-test-question-layout .test-round-body {
    min-height: 0 !important;
    padding: 16px 22px 18px !important;
  }

  body.inline-test-active #parentView .inline-test-host .education-gate.is-test-question-layout .test-round-body {
    padding-bottom: 18px !important;
  }

  body.study-assessment-active #parentView .inline-test-host .education-gate.is-test-question-layout .question {
    margin: 12px auto 10px !important;
    max-width: 420px !important;
  }

  body.study-assessment-active #parentView .inline-test-host .education-gate.is-test-question-layout .step-line {
    margin-top: 10px !important;
  }

  body.study-assessment-active #parentView .inline-test-host .education-gate.is-test-question-layout .answer-list {
    gap: 6px !important;
  }

  body.study-assessment-active #parentView .inline-test-host .education-gate.is-test-question-layout .answer-button {
    min-height: 48px !important;
    padding: 8px 14px !important;
  }

  body.study-assessment-active #parentView .inline-test-host .education-gate.is-test-question-layout .action-row {
    margin-top: 16px !important;
    padding-bottom: 8px !important;
  }
}

.study-guided-progressive-status {
  align-items: center;
  color: var(--muted, #9aabb7);
  display: flex;
  font-size: 0.92rem;
  gap: 0.65rem;
  justify-content: center;
  margin: 1.25rem auto 0;
  max-width: 32rem;
  padding: 0.75rem 1rem;
}

.study-guided-progressive-status__spinner {
  animation: study-guided-progressive-spin 0.9s linear infinite;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 50%;
  border-top-color: currentColor;
  flex: 0 0 auto;
  height: 1rem;
  width: 1rem;
}

@keyframes study-guided-progressive-spin {
  to { transform: rotate(360deg); }
}
/* Primeiro acesso: cards verticais responsivos para celular e tablet. */
.first-access-onboarding {
  --onboarding-navy: #092746;
  --onboarding-teal: #087f9c;
  --onboarding-cyan: #20a6c2;
  --onboarding-orange: #ff7a00;
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--onboarding-navy);
  color-scheme: light;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms ease, transform 620ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.first-access-onboarding.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.first-access-onboarding[hidden] {
  display: none !important;
}

.first-access-onboarding__frame {
  position: relative;
  container-type: inline-size;
  height: min(100%, calc(177.8vw - 14px), 996px);
  max-width: 100%;
  aspect-ratio: 941 / 1672;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.first-access-onboarding__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.first-access-onboarding__card {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #fff;
  animation: firstAccessOnboardingCardIn 420ms ease both;
}

.first-access-onboarding__card[hidden] {
  display: none !important;
}

.first-access-onboarding__card--art {
  display: block;
  padding: 0;
}

.first-access-onboarding__art {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* O primeiro card SVG já possui toda a composição visual; os textos HTML
   continuam no DOM apenas como alternativa de leitura e não são duplicados. */
.first-access-onboarding__card--svg-art .first-access-onboarding__webcopy {
  display: none;
}

/* Garante que nenhum texto legado reapareça sobre a segunda arte SVG. */
.first-access-onboarding__card[data-onboarding-step="2"].first-access-onboarding__card--svg-art
  .first-access-onboarding__webcopy,
.first-access-onboarding__card[data-onboarding-step="2"].first-access-onboarding__card--svg-art
  .first-access-onboarding__webcopy > * {
  display: none !important;
}

/* A arte continua cuidando das ilustrações. Os textos da apresentação são
   HTML selecionável para leitura, acessibilidade e adaptação responsiva. */
.first-access-onboarding__webcopy {
  position: absolute;
  inset: 0;
  z-index: 3;
  color: var(--onboarding-navy);
  font-family: Arial, Helvetica, sans-serif;
  pointer-events: none;
}

.first-access-onboarding__webcopy :is(h3, h4, p, ul) {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  background: #fff;
  box-shadow: 0 0 0 1.25cqw #fff;
  pointer-events: auto;
}

.first-access-onboarding__webcopy h3 {
  font-size: clamp(1.35rem, 6.5cqw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.first-access-onboarding__webcopy h3 span,
.first-access-onboarding__webcopy h4 span {
  color: var(--onboarding-teal);
}

.first-access-onboarding__webcopy p,
.first-access-onboarding__webcopy li {
  font-size: clamp(0.8rem, 4.05cqw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.42;
}

.first-access-onboarding__webcopy h4 {
  font-size: clamp(1rem, 4.65cqw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.first-access-onboarding__webcopy--step-1 h3 {
  top: 14%;
  left: 11%;
  width: 78%;
  min-height: 8.5%;
  color: var(--onboarding-teal);
  font-size: clamp(1.5rem, 7.2cqw, 4.2rem);
  white-space: nowrap;
}

.first-access-onboarding__webcopy--step-1 h4 {
  top: 24%;
  left: 11%;
  width: 68%;
  min-height: 21%;
  padding-bottom: 0.35cqw;
  font-size: clamp(1.2rem, 5.4cqw, 3.2rem);
  line-height: 1.12;
}

/* O texto fixo deste card já vem na arte; não o sobreponha ao livro. */
.first-access-onboarding__webcopy--step-1 h4 {
  visibility: hidden;
  background: transparent;
  box-shadow: none;
}

.first-access-onboarding__webcopy--step-1 p {
  top: 68%;
  left: 11%;
  width: 78%;
  min-height: 24%;
  padding-right: 1cqw;
}

.first-access-onboarding__webcopy--step-2 h3 {
  top: 13%;
  left: 20%;
  width: 72%;
}

/* Este card também já traz títulos, ícones e textos na própria arte. */
.first-access-onboarding__webcopy--step-2 {
  visibility: hidden;
}

.first-access-onboarding__webcopy--step-2 h3 span {
  color: var(--onboarding-teal);
}

.first-access-onboarding__step-2-intro {
  top: 25%;
  left: 20%;
  width: 68%;
  padding-top: 0.4cqw;
}

.first-access-onboarding__step-2-options {
  top: 40%;
  left: 20%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5%;
  width: 67%;
  padding: 8% 0 0;
  list-style: none;
  text-align: center;
}

.first-access-onboarding__step-2-options li {
  min-height: 12cqw;
  padding: 0 0.4cqw;
  font-size: clamp(0.62rem, 3.1cqw, 1.8rem);
  line-height: 1.3;
}

.first-access-onboarding__step-2-footer {
  top: 77%;
  left: 20%;
  width: 66%;
  padding-top: 0.5cqw;
}

.first-access-onboarding__webcopy--step-3 h3 {
  top: 11%;
  left: 13%;
  width: 78%;
  min-height: 14%;
}

/* A arte já traz os ícones e os textos deste card alinhados. */
.first-access-onboarding__webcopy--step-3 {
  visibility: hidden;
}

.first-access-onboarding__step-3-intro {
  top: 25%;
  left: 13%;
  width: 76%;
  min-height: 10%;
}

.first-access-onboarding__step-3-list,
.first-access-onboarding__step-4-list {
  left: 31%;
  width: 56%;
  padding: 0;
  list-style: none;
}

.first-access-onboarding__step-3-list {
  top: 38%;
}

.first-access-onboarding__step-3-list li {
  min-height: 8.4cqw;
  padding: 1.6cqw 0 1.5cqw;
  font-size: clamp(0.7rem, 3.45cqw, 2rem);
  line-height: 1.25;
}

.first-access-onboarding__step-3-list li:last-child,
.first-access-onboarding__step-4-list li:last-child {
  font-weight: 700;
}

.first-access-onboarding__step-3-footer {
  top: 78%;
  left: 17%;
  width: 67%;
  min-height: 10%;
  padding-top: 0.6cqw;
  color: var(--onboarding-teal);
  font-size: clamp(0.9rem, 4.5cqw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.first-access-onboarding__webcopy .first-access-onboarding__step-3-footer {
  font-weight: 700;
}

.first-access-onboarding__webcopy--step-4 h3 {
  top: 10%;
  left: 13%;
  width: 72%;
  min-height: 14%;
}

/* A arte já traz os ícones, textos e a ilustração do Chat alinhados. */
.first-access-onboarding__webcopy--step-4 {
  visibility: hidden;
}

.first-access-onboarding__webcopy--step-4 h4 {
  top: 25%;
  left: 13%;
  width: 65%;
  color: var(--onboarding-teal);
}

.first-access-onboarding__step-4-intro {
  top: 29%;
  left: 13%;
  width: 75%;
}

.first-access-onboarding__step-4-list {
  top: 36%;
}

.first-access-onboarding__step-4-list li {
  min-height: 6.6cqw;
  padding: 1.7cqw 0 1.5cqw;
  font-size: clamp(0.72rem, 3.45cqw, 2rem);
  line-height: 1.2;
}

.first-access-onboarding__step-4-footer {
  top: 78%;
  left: 28%;
  width: 63%;
  min-height: 15%;
  padding-top: 0.45cqw;
  font-size: clamp(0.65rem, 3.55cqw, 2rem);
  line-height: 1.35;
}

.first-access-onboarding__webcopy--step-5 h3 {
  top: 11%;
  left: 13%;
  width: 70%;
  min-height: 16%;
}

/* A arte já traz o número, o ícone e o texto deste card alinhados. */
.first-access-onboarding__webcopy--step-5 {
  visibility: hidden;
}

/* O SVG do quinto card tem bastante respiro no canvas original. Ampliamos
   somente o conteúdo da arte sem alterar o tamanho do card ou dos controles. */
.first-access-onboarding__card[data-onboarding-step="5"] .first-access-onboarding__art {
  transform: none;
}

.first-access-onboarding__webcopy--step-5 h3 span,
.first-access-onboarding__step-5-intro span {
  color: var(--onboarding-teal);
}

.first-access-onboarding__step-5-number {
  position: absolute;
  top: 22%;
  left: 28%;
  display: grid;
  place-items: center;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f8fbfd;
  color: var(--onboarding-teal);
  font-size: clamp(4rem, 20cqw, 11rem);
  font-weight: 300;
  line-height: 1;
}

.first-access-onboarding__step-5-intro {
  top: 48%;
  left: 13%;
  width: 76%;
  padding-top: 0.5cqw;
  font-size: clamp(0.75rem, 3.7cqw, 2.1rem);
}

.first-access-onboarding__step-5-footer {
  top: 57%;
  left: 35%;
  width: 53%;
  min-height: 19%;
  padding: 1cqw 0.5cqw 0;
  font-size: clamp(0.75rem, 4.2cqw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
}

.first-access-onboarding__webcopy .first-access-onboarding__step-5-footer {
  font-weight: 700;
}

.first-access-onboarding__webcopy--step-6 h3 {
  top: 10%;
  left: 13%;
  width: 64%;
  min-height: 14%;
}

/* A arte já traz todo o conteúdo deste card alinhado. */
.first-access-onboarding__webcopy--step-6 {
  visibility: hidden;
}

.first-access-onboarding__webcopy--step-6 h4 {
  top: 25%;
  left: 15%;
  width: 70%;
}

.first-access-onboarding__step-6-intro {
  top: 30%;
  left: 15%;
  width: 72%;
  min-height: 11%;
}

.first-access-onboarding__step-6-slogan {
  top: 63%;
  left: 20%;
  width: 61%;
  min-height: 13%;
  padding-top: 0.6cqw;
  font-size: clamp(0.78rem, 4.15cqw, 2.4rem);
  text-align: center;
}

.first-access-onboarding__step-6-brand {
  top: 79%;
  left: 28%;
  width: 55%;
  padding-top: 0.5cqw;
  font-size: clamp(0.62rem, 3.3cqw, 1.9rem);
  line-height: 1.35;
}

.first-access-onboarding__step-6-brand strong {
  font-size: 1.06em;
}

.first-access-onboarding__name {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
  background: #fff;
  color: #008ca3;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.04;
  white-space: nowrap;
  box-shadow: 0 0 0.8cqw 0.45cqw #fff;
}

/* As novas artes ja trazem a saudacao na propria composicao. */
.first-access-onboarding__card--art .first-access-onboarding__name {
  display: none;
}

.first-access-onboarding__name--welcome {
  top: 12.75%;
  left: 11.8%;
  width: 47.2%;
  min-height: 5.5%;
  font-size: clamp(1.32rem, 7cqw, 3.2rem);
}

.first-access-onboarding__name--ready {
  top: 26.55%;
  left: 13.1%;
  width: 55%;
  min-height: 3.65%;
  color: var(--onboarding-navy);
  font-size: clamp(0.78rem, 3.75cqw, 1.72rem);
  letter-spacing: -0.025em;
}

.first-access-onboarding__name--ready [data-onboarding-student-name] {
  color: #008ca3;
}

.first-access-onboarding__name--welcome.is-long-name {
  font-size: clamp(1rem, 5.5cqw, 2.52rem);
}

.first-access-onboarding__name--ready.is-long-name {
  font-size: clamp(0.68rem, 3.2cqw, 1.46rem);
}

.first-access-onboarding__name--welcome.is-extra-long-name {
  font-size: clamp(0.84rem, 4.7cqw, 2.16rem);
}

.first-access-onboarding__name--ready.is-extra-long-name {
  font-size: clamp(0.61rem, 2.7cqw, 1.24rem);
}

.first-access-onboarding__name--welcome.is-ultra-long-name {
  font-size: clamp(0.68rem, 3.1cqw, 1.42rem);
}

.first-access-onboarding__name--ready.is-ultra-long-name {
  font-size: clamp(0.55rem, 2.25cqw, 1.03rem);
}

.first-access-onboarding__progress {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  height: 11%;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

/* Cobre os indicadores estáticos das artes e apresenta o progresso real. */
.first-access-onboarding__progress {
  display: flex;
}

.first-access-onboarding__dots {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.55cqw, 12px);
  transform: translate(-50%, -50%);
}

.first-access-onboarding__dots span {
  display: block;
  width: clamp(8px, 2.35cqw, 15px);
  height: clamp(8px, 2.35cqw, 15px);
  border: 1px solid #c5d5d8;
  border-radius: 50%;
  background: #dceff0;
  transition: border-color 260ms ease, background-color 260ms ease, transform 260ms ease;
}

.first-access-onboarding__dots span.is-complete {
  border-color: #b8dedc;
  background: #b8dedc;
}

.first-access-onboarding__dots span.is-active {
  border-color: var(--onboarding-teal);
  background: var(--onboarding-teal);
  transform: scale(1.18);
}

.first-access-onboarding[data-current-step="4"] .first-access-onboarding__dots span.is-active {
  border-color: #1262dc;
  background: #1262dc;
}

.first-access-onboarding[data-current-step="6"] .first-access-onboarding__dots span.is-active {
  border-color: var(--onboarding-orange);
  background: var(--onboarding-orange);
}

.first-access-onboarding__counter {
  display: none;
  min-width: clamp(42px, 11cqw, 76px);
  margin-left: auto;
  padding: clamp(3px, 0.9cqw, 7px) clamp(7px, 2cqw, 14px);
  border: 1px solid rgba(8, 127, 156, 0.2);
  border-radius: 999px;
  background: #eaf7f5;
  color: var(--onboarding-teal);
  font-size: clamp(0.72rem, 3.2cqw, 1.35rem);
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

.first-access-onboarding__actions {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10%;
  background: #fff;
  box-shadow: 0 0 1.1cqw 0.65cqw #fff;
  pointer-events: none;
}

.first-access-onboarding[data-current-step="4"] .first-access-onboarding__actions {
  bottom: 0;
  height: 10%;
  box-shadow: none;
}

/* O quarto SVG já traz a navegação desenhada: preservamos a arte e deixamos
   apenas alvos transparentes sobre os controles. */
.first-access-onboarding[data-current-step="4"] .first-access-onboarding__progress {
  height: 7%;
  background: transparent;
}

.first-access-onboarding[data-current-step="4"] .first-access-onboarding__actions {
  inset: 0;
  height: auto;
  background: transparent;
  box-shadow: none;
}

.first-access-onboarding[data-current-step="4"] .first-access-onboarding__button {
  top: 87%;
  right: auto;
  bottom: auto;
  left: 31%;
  width: 41%;
  height: 6%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
}

.first-access-onboarding[data-current-step="4"] #firstAccessOnboardingBack {
  top: 87%;
  right: auto;
  bottom: auto;
  left: 20%;
  width: 10%;
  height: 6%;
  min-height: 0;
  background: transparent;
  opacity: 0;
}

.first-access-onboarding[data-current-step="4"] :is(.first-access-onboarding__button, .first-access-onboarding__back):focus-visible {
  opacity: 1;
  outline-color: rgba(8, 127, 156, 0.55);
}

.first-access-onboarding[data-current-step="5"] .first-access-onboarding__actions {
  bottom: 0;
  height: 13%;
  box-shadow: none;
}

/* O quinto SVG já inclui as bolinhas e os controles; não sobrepomos faixas
   da página e usamos apenas alvos transparentes para a navegação. */
.first-access-onboarding[data-current-step="5"] .first-access-onboarding__progress {
  height: 7%;
  background: transparent;
}

.first-access-onboarding[data-current-step="5"] .first-access-onboarding__actions {
  inset: 0;
  height: auto;
  background: transparent;
  box-shadow: none;
}

.first-access-onboarding[data-current-step="5"] .first-access-onboarding__button {
  top: 87%;
  right: auto;
  bottom: auto;
  left: 31%;
  width: 41%;
  height: 6%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
}

.first-access-onboarding[data-current-step="5"] #firstAccessOnboardingBack {
  top: 87%;
  right: auto;
  bottom: auto;
  left: 20%;
  width: 10%;
  height: 6%;
  min-height: 0;
  background: transparent;
  opacity: 0;
}

.first-access-onboarding[data-current-step="5"] :is(.first-access-onboarding__button, .first-access-onboarding__back):focus-visible {
  opacity: 1;
  outline-color: rgba(8, 127, 156, 0.55);
}

/* Remove por completo o botão que está impresso nas artes 2 e 5. */
.first-access-onboarding[data-current-step="2"] .first-access-onboarding__actions {
  inset: 0;
  height: auto;
  background: transparent;
  box-shadow: none;
}

/* No segundo SVG, as bolinhas não devem criar uma faixa branca sobre o título. */
.first-access-onboarding[data-current-step="2"] .first-access-onboarding__progress {
  height: 7%;
  background: transparent;
}

.first-access-onboarding[data-current-step="2"] .first-access-onboarding__button {
  top: 87%;
  right: auto;
  bottom: auto;
  left: 31%;
  width: 41%;
  height: 6%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
}

.first-access-onboarding[data-current-step="2"] #firstAccessOnboardingBack {
  top: 87%;
  right: auto;
  bottom: auto;
  left: 20%;
  width: 10%;
  height: 6%;
  min-height: 0;
  background: transparent;
  opacity: 0;
}

.first-access-onboarding[data-current-step="2"] :is(.first-access-onboarding__button, .first-access-onboarding__back):focus-visible {
  opacity: 1;
  outline-color: rgba(8, 127, 156, 0.55);
}

/* A terceira arte também traz os controles no SVG: somente as áreas de toque
   nativas permanecem sobre Voltar e Continuar. */
.first-access-onboarding[data-current-step="3"] .first-access-onboarding__progress {
  height: 7%;
  background: transparent;
}

.first-access-onboarding[data-current-step="3"] .first-access-onboarding__actions {
  inset: 0;
  height: auto;
  background: transparent;
  box-shadow: none;
}

.first-access-onboarding[data-current-step="3"] .first-access-onboarding__button {
  top: 87%;
  right: auto;
  bottom: auto;
  left: 31%;
  width: 41%;
  height: 6%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
}

.first-access-onboarding[data-current-step="3"] #firstAccessOnboardingBack {
  top: 87%;
  right: auto;
  bottom: auto;
  left: 20%;
  width: 10%;
  height: 6%;
  min-height: 0;
  background: transparent;
  opacity: 0;
}

.first-access-onboarding[data-current-step="3"] :is(.first-access-onboarding__button, .first-access-onboarding__back):focus-visible {
  opacity: 1;
  outline-color: rgba(8, 127, 156, 0.55);
}

/* A arte SVG da primeira etapa já contém o seu próprio "Continuar". Mantém-se
   só uma área de toque transparente sobre ele, sem o segundo botão visual. */
.first-access-onboarding[data-current-step="1"] .first-access-onboarding__actions {
  inset: 0;
  height: auto;
  background: transparent;
  box-shadow: none;
}

.first-access-onboarding[data-current-step="1"] .first-access-onboarding__button {
  top: 85.8%;
  right: auto;
  bottom: auto;
  left: 30.5%;
  width: 40%;
  height: 6%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
}

.first-access-onboarding[data-current-step="1"] .first-access-onboarding__button:focus-visible {
  opacity: 1;
  outline-color: rgba(8, 127, 156, 0.55);
}

.first-access-onboarding__back,
.first-access-onboarding__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: min(66%, 64px);
  min-height: 44px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  pointer-events: auto;
}

.first-access-onboarding__back {
  position: absolute;
  bottom: 8%;
  left: 4%;
  flex: none;
  width: 11%;
  min-width: 0;
  height: 42%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.first-access-onboarding__back-icon {
  display: block;
  width: clamp(22px, 6cqw, 36px);
  max-width: 100%;
  height: auto;
  pointer-events: none;
}

.first-access-onboarding__back[hidden] {
  display: none !important;
}

.first-access-onboarding__button {
  position: absolute;
  right: 9%;
  bottom: 8%;
  flex: none;
  gap: 0;
  width: 64%;
  max-width: none;
  min-width: 0;
  height: 42%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: clamp(12px, 3cqw, 24px);
  background: linear-gradient(90deg, #087f9c, #076d8a);
  color: #fff;
  font-size: clamp(0.84rem, 4cqw, 1.7rem);
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: none;
}

.first-access-onboarding[data-current-step="4"] .first-access-onboarding__button {
  background: linear-gradient(90deg, #087f9c, #076d8a);
}

.first-access-onboarding[data-current-step="6"] .first-access-onboarding__button {
  background: linear-gradient(90deg, #ff6b00, #ff4f00);
  font-size: clamp(0.72rem, 3.2cqw, 1.3rem);
}

/* O último SVG possui sua própria navegação. O botão real apenas recebe o
   toque sobre a arte e conclui a apresentação normalmente. */
.first-access-onboarding[data-current-step="6"] .first-access-onboarding__progress {
  height: 7%;
  background: transparent;
}

.first-access-onboarding[data-current-step="6"] .first-access-onboarding__actions {
  inset: 0;
  height: auto;
  background: transparent;
  box-shadow: none;
}

.first-access-onboarding[data-current-step="6"] .first-access-onboarding__button {
  top: 87%;
  right: auto;
  bottom: auto;
  left: 31%;
  width: 41%;
  height: 6%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  opacity: 0;
}

.first-access-onboarding[data-current-step="6"] #firstAccessOnboardingBack {
  top: 87%;
  right: auto;
  bottom: auto;
  left: 20%;
  width: 10%;
  height: 6%;
  min-height: 0;
  background: transparent;
  opacity: 0;
}

.first-access-onboarding[data-current-step="6"] :is(.first-access-onboarding__button, .first-access-onboarding__back):focus-visible {
  opacity: 1;
  outline-color: rgba(8, 127, 156, 0.55);
}

.first-access-onboarding__button:hover,
.first-access-onboarding__button:focus-visible {
  filter: brightness(0.95);
  outline: 3px solid rgba(32, 166, 194, 0.3);
  outline-offset: 2px;
}

/* A seta de voltar já faz parte da arte; o alvo de toque não pode desenhar moldura. */
.first-access-onboarding__back:hover,
.first-access-onboarding__back:focus-visible {
  filter: none;
  outline: none;
}

.first-access-onboarding__back:disabled,
.first-access-onboarding__button:disabled {
  cursor: wait;
  opacity: 0.65;
}

body.first-access-onboarding-active {
  background: #fff !important;
  overflow: hidden;
}

body.first-access-onboarding-active .study-guided-desktop-sidebar > :not(.parent-hero):not(.first-access-onboarding),
body.first-access-onboarding-active .study-guided-followup-composer {
  display: none !important;
}

body.first-access-onboarding-active #parentView,
body.first-access-onboarding-active #parentView .dashboard,
body.first-access-onboarding-active #parentView .study-guided-desktop-sidebar {
  background: #fff !important;
}

@keyframes firstAccessOnboardingCardIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 640px) {
  .first-access-onboarding {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .first-access-onboarding,
  .first-access-onboarding__card,
  .first-access-onboarding__dots span,
  .first-access-onboarding__back,
  .first-access-onboarding__button {
    animation: none !important;
    transition: none !important;
  }
}

/* First-use guidance that continues after the onboarding presentation. */
.first-access-guidance {
  position: absolute;
  top: 50%;
  z-index: 50;
  display: block;
  max-width: calc(100% - 16px);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transform: translate3d(0, -50%, 0);
  transform-origin: center;
  transition:
    opacity 320ms ease;
  will-change: opacity;
}

.first-access-guidance[hidden] {
  display: none !important;
}

.first-access-guidance.is-visible {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}

.first-access-guidance.is-leaving {
  opacity: 0;
  transform: translate3d(0, -50%, 0);
}

.first-access-guidance__art {
  display: block;
  width: 100%;
  height: auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

/* Setas sequenciais do primeiro Reforço: indicam a ação sem bloquear a tela. */
.first-access-guidance__arrow {
  display: grid;
  width: clamp(42px, 13vw, 58px);
  height: clamp(42px, 13vw, 58px);
  place-items: center;
  color: #e48215;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.7rem, 12vw, 4rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 3px 7px rgba(78, 42, 5, 0.2);
}

.first-access-guidance__label {
  display: grid;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  place-items: center;
  box-sizing: border-box;
  border: 2px solid #0097b2;
  border-radius: 13px;
  background: #ffffff;
  color: #1c5e79;
  box-shadow: 0 5px 14px rgba(28, 94, 121, 0.10);
  font-size: clamp(0.86rem, 3.9vw, 0.96rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}

.first-access-guidance--subject {
  top: 0;
  left: clamp(148px, 24%, 210px);
  right: auto;
  width: clamp(42px, 13vw, 58px);
}

.first-access-guidance--subject .first-access-guidance__label {
  padding-inline: 6px;
  font-size: clamp(0.72rem, 3.2vw, 0.82rem);
  letter-spacing: -0.01em;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

.first-access-guidance--grade {
  top: calc(100% + 7px);
  left: clamp(154px, 25%, 224px);
  right: auto;
  width: clamp(42px, 13vw, 58px);
}

.first-access-guidance--content {
  top: calc(50% - 7px);
  left: 28px;
  width: clamp(42px, 13vw, 58px);
  z-index: 45;
}


body.parent-visual-light.dashboard-mode-study-guided #parentView .import-buttons-container {
  position: relative;
}

.first-access-guidance.is-visible .first-access-guidance__arrow {
  animation: first-access-guidance-arrow-fade 1.5s ease-in-out infinite;
}

@keyframes first-access-guidance-arrow-fade {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.32;
  }
}

@media (prefers-reduced-motion: reduce) {
  .first-access-guidance,
  .first-access-guidance.is-visible,
  .first-access-guidance.is-leaving {
    transition: none !important;
    will-change: auto;
  }

  .first-access-guidance,
  .first-access-guidance.is-leaving {
    transform: translate3d(0, -50%, 0) scale(1);
  }

  .first-access-guidance__arrow {
    animation: none !important;
  }
}

/* Desktop keeps the same vertical reading order as Android and tablet, with
   a small visible gutter between consecutive explanation cards. */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation
    > .study-guided-read-row--reveal:not(:last-child) {
    margin-bottom: 8px !important;
  }
}

/* O navegador pode informar uma viewport CSS menor que 1200px (zoom ou
   escala do sistema). Nessa situação ele ainda deve usar o mesmo fluxo
   vertical do celular/tablet, sem deixar o mapa ocupar uma coluna paralela. */
@media (hover: hover) and (pointer: fine) {
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-panel,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-body,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-content,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-group,
  body.dashboard-mode-study-guided #parentView .study-guided-explanation-section,
  body.dashboard-mode-study-guided #parentView .study-guided-read-list--explanation {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-explanation-body > * {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-explanation-body > * + * {
    margin-top: 18px !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation > * {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-read-list--explanation > .study-guided-read-row--reveal:not(.is-revealed) {
    min-height: clamp(148px, 20vw, 184px) !important;
  }

  body.dashboard-mode-study-guided #parentView
    .study-guided-followup-group {
    clear: both !important;
    position: relative !important;
    margin-top: 24px !important;
  }

  body.dashboard-mode-study-guided .study-guided-followup-composer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(800px, calc(100% - 40px)) !important;
    max-width: 800px !important;
    margin: 24px auto 18px !important;
    z-index: auto !important;
  }

  body.dashboard-mode-study-guided.study-guided-followup-active {
    padding-bottom: 0 !important;
  }
}

/* Regra terminal: o layout de uma coluna acima aplica display:block a todos os
   filhos do painel principal. O compositor é uma exceção: quando está oculto,
   nunca pode ocupar a tela de preparação; quando ativo, permanece preso ao
   rodapé e não à área rolável. */
body.parent-visual-light.dashboard-mode-study-guided #parentView
  .study-guided-desktop-main > .study-guided-followup-composer[hidden] {
  display: none !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView
  .study-guided-desktop-main > .study-guided-followup-composer:not([hidden]) {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) !important;
  width: min(calc(100% - 30px), 800px) !important;
  max-width: 800px !important;
  margin: 0 !important;
  z-index: 95 !important;
}

/* Durante uma questão, o espaço é do teste: a navegação retorna ao encerrar. */
body.study-assessment-active .topbar,
body.inline-test-active .topbar,
body.test-modal-active .topbar {
  display: none !important;
}

/* Durante uma questão, o espaço é do teste: a navegação retorna ao encerrar. */
body.study-assessment-active .topbar,
body.inline-test-active .topbar,
body.test-modal-active .topbar {
  display: none !important;
}

/* Durante uma questão, o espaço é do teste: a navegação retorna ao encerrar. */
body.study-assessment-active .topbar,
body.inline-test-active .topbar,
body.test-modal-active .topbar {
  display: none !important;
}

/* Fundo único da página de escolha: a lista não pode receber a superfície
   elevada usada por cards em nenhuma variação de classe do painel. */
body[data-app-theme="dark"] #parentView .parent-dashboard-home,
body[data-app-theme="dark"] #parentView .parent-subjects-panel,
body[data-app-theme="dark"] #parentView .subject-ranking,
body[data-app-theme="dark"] #parentView .subject-ranking-item {
  background-color: #0e151b !important;
  background-image: none !important;
}

body[data-app-theme="dark"] #parentView .subject-ranking-item {
  border-bottom-color: #2b3943 !important;
}

/* Fundo único da página de escolha: a lista não pode receber a superfície
   elevada usada por cards em nenhuma variação de classe do painel. */
body[data-app-theme="dark"] #parentView .parent-dashboard-home,
body[data-app-theme="dark"] #parentView .parent-subjects-panel,
body[data-app-theme="dark"] #parentView .subject-ranking,
body[data-app-theme="dark"] #parentView .subject-ranking-item {
  background-color: #0e151b !important;
  background-image: none !important;
}

body[data-app-theme="dark"] #parentView .subject-ranking-item {
  border-bottom-color: #2b3943 !important;
}

/* A camada de compatibilidade do navegador desktop usa seletores claros com
   alta especificidade. Reafirmar o fundo escuro aqui impede que a lista de
   matérias volte ao branco quando o tema Escuro estiver ativo. */
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-dashboard-home,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-subjects-panel,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-select-stack,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .post-login-actions,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .apply-test-panel {
  background: var(--dark-page) !important;
  color: var(--dark-text) !important;
}

html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .subject-ranking-item {
  background: #0e151b !important;
  border-bottom-color: var(--dark-line) !important;
}

/* No navegador, a camada visual clara ainda atribui branco a alguns blocos
   auxiliares da seleção e do compositor. Eles pertencem à mesma página de
   estudo e precisam herdar a superfície escura, inclusive entre as linhas. */
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-hero,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-subjects-panel,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-select-stack,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .ai-dashboard-config,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .ai-generation-field--knowledge,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-knowledge-header {
  background: var(--dark-page) !important;
  background-image: none !important;
  color: var(--dark-text) !important;
}

/* A preferência é aplicada no elemento body. Esta camada final não depende do
   atributo no html, para que o Chrome/WebView não revele as regras claras de
   compatibilidade nas faixas vazias entre os controles. */
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .parent-dashboard-home,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-sidebar,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .parent-hero,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .parent-subjects-panel,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .parent-select-stack,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .ai-dashboard-config,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .ai-generation-field--knowledge,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-knowledge-header {
  background: var(--dark-page) !important;
  background-image: none !important;
  color: var(--dark-text) !important;
}

/* Cada chave já recebe --subject-accent no HTML. Fora do estado selecionado,
   a cor aparece discretamente; ao selecionar, a faixa fica na cor integral
   da matéria e a bolinha se desloca normalmente. */
body[data-app-theme="dark"].parent-visual-light #parentView .subject-ranking-check {
  background-color: color-mix(in srgb, var(--subject-accent, var(--dark-brand)) 28%, var(--dark-page)) !important;
  border-color: color-mix(in srgb, var(--subject-accent, var(--dark-brand)) 46%, var(--dark-page)) !important;
}

body[data-app-theme="dark"].parent-visual-light #parentView .subject-ranking-check:is(.is-checked, [aria-pressed="true"]) {
  background-color: var(--subject-accent, var(--dark-brand)) !important;
  border-color: var(--subject-accent, var(--dark-brand)) !important;
}

/* A relação de matérias é parte do fundo da página, não um cartão elevado. */
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .subject-ranking,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .subject-ranking-item {
  background: var(--dark-page) !important;
}

/* A relação de matérias é parte do fundo da página, não um cartão elevado. */
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .subject-ranking,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .subject-ranking-item {
  background: var(--dark-page) !important;
}

/* A preferência é aplicada no elemento body. Esta camada final não depende do
   atributo no html, para que o Chrome/WebView não revele as regras claras de
   compatibilidade nas faixas vazias entre os controles. */
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .parent-dashboard-home,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-sidebar,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .parent-hero,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .parent-subjects-panel,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .parent-select-stack,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .ai-dashboard-config,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .ai-generation-field--knowledge,
body[data-app-theme="dark"].parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-knowledge-header {
  background: var(--dark-page) !important;
  background-image: none !important;
  color: var(--dark-text) !important;
}

/* Cada chave já recebe --subject-accent no HTML. Fora do estado selecionado,
   a cor aparece discretamente; ao selecionar, a faixa fica na cor integral
   da matéria e a bolinha se desloca normalmente. */
body[data-app-theme="dark"].parent-visual-light #parentView .subject-ranking-check {
  background-color: color-mix(in srgb, var(--subject-accent, var(--dark-brand)) 28%, var(--dark-page)) !important;
  border-color: color-mix(in srgb, var(--subject-accent, var(--dark-brand)) 46%, var(--dark-page)) !important;
}

body[data-app-theme="dark"].parent-visual-light #parentView .subject-ranking-check:is(.is-checked, [aria-pressed="true"]) {
  background-color: var(--subject-accent, var(--dark-brand)) !important;
  border-color: var(--subject-accent, var(--dark-brand)) !important;
}

/* No navegador, a camada visual clara ainda atribui branco a alguns blocos
   auxiliares da seleção e do compositor. Eles pertencem à mesma página de
   estudo e precisam herdar a superfície escura, inclusive entre as linhas. */
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-hero,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-subjects-panel,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-select-stack,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-composer-lock-area,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .ai-dashboard-config,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .ai-generation-field--knowledge,
html[data-app-theme="dark"] body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-knowledge-header {
  background: var(--dark-page) !important;
  background-image: none !important;
  color: var(--dark-text) !important;
}

/* Celular e tablet mantêm a rolagem natural do documento durante testes e
   simulados. A área fixa foi útil no desktop, mas em WebViews podia prender
   o fim da questão ou o botão de avanço fora da tela. */
@media (max-width: 1199px) {
  html.study-assessment-active,
  body.study-assessment-active {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: auto !important;
  }

  body.study-assessment-active #parentView,
  body.inline-test-active #parentView {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
  }

  body.study-assessment-active #parentView .inline-test-host,
  body.inline-test-active #parentView .inline-test-host {
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 28px !important;
    overflow: visible !important;
  }
}

/* Celular e tablet mantêm a rolagem natural do documento durante testes e
   simulados. A área fixa foi útil no desktop, mas em WebViews podia prender
   o fim da questão ou o botão de avanço fora da tela. */
@media (max-width: 1199px) {
  html.study-assessment-active,
  body.study-assessment-active {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: auto !important;
  }

  body.study-assessment-active #parentView,
  body.inline-test-active #parentView {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
  }

  body.study-assessment-active #parentView .inline-test-host,
  body.inline-test-active #parentView .inline-test-host {
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 28px !important;
    overflow: visible !important;
  }
}

/* O campo multimodal permanece disponível no rodapé em toda a experiência
   de estudo, independente da rolagem, do zoom ou do tipo de ponteiro. */
body.dashboard-mode-study-guided .study-guided-followup-composer {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) !important;
  width: min(calc(100% - 30px), 800px) !important;
  max-width: 800px !important;
  margin: 0 !important;
  z-index: 95 !important;
}

body.dashboard-mode-study-guided.study-guided-followup-active {
  padding-bottom: 110px !important;
}

/* O compositor é criado antecipadamente para responder rápido após a
   explicação, mas o atributo hidden precisa sempre vencer os estilos do painel
   pai. Sem esta regra, um painel oculto poderia continuar visível na tela de
   preparação por causa de um display: block !important herdado do layout. */
body.parent-visual-light.dashboard-mode-study-guided .study-guided-followup-composer[hidden] {
  display: none !important;
}

/* A tela de preparação e a explicação usam a rolagem natural do documento.
   Nunca deixe o eixo vertical em clip: isso prende conteúdo abaixo da dobra
   em navegadores embutidos e em janelas redimensionadas. */
html,
body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* Mantém a mesma geometria em mouse e teclado, sem alterar a experiência
   tátil definida acima. */
@media (hover: hover) and (pointer: fine) {
  body.dashboard-mode-study-guided .study-guided-followup-composer {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    width: min(calc(100% - 30px), 800px) !important;
    max-width: 800px !important;
    margin: 0 !important;
    z-index: 95 !important;
  }

  body.dashboard-mode-study-guided.study-guided-followup-active {
    padding-bottom: 110px !important;
  }
}

/* Compatibilidade final para Chrome desktop: o estudo deve permanecer em uma
   única coluna vertical. As regras históricas de desktop usam uma grade com
   altura calculada e podem posicionar o convite do teste sobre um card. */
@media (hover: hover) and (pointer: fine) {
  body.parent-visual-light.dashboard-mode-study-guided #parentView .parent-dashboard-home,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-sidebar,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-main,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-test-panel {
    display: block !important;
    position: static !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-sidebar > *,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-main > *,
  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-desktop-test-panel > * {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView .study-guided-test-group:not([hidden]) {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 24px 0 0 !important;
    clear: both !important;
    overflow: visible !important;
  }

  body.parent-visual-light.dashboard-mode-study-guided #parentView
    .study-guided-test-group:not([hidden]) > * {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }
}

/* Precedência final sobre a regra desktop genérica que torna todos os filhos
   do painel visíveis. */
body.parent-visual-light.dashboard-mode-study-guided #parentView
  .study-guided-desktop-main > .study-guided-followup-composer[hidden] {
  display: none !important;
}

body.parent-visual-light.dashboard-mode-study-guided #parentView
  .study-guided-desktop-main > .study-guided-followup-composer:not([hidden]) {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) !important;
  width: min(calc(100% - 30px), 800px) !important;
  max-width: 800px !important;
  margin: 0 !important;
  z-index: 95 !important;
}
