body[data-page="simulados"] {
  position: relative;
}

body[data-page="simulados"] main,
body[data-page="simulados"] footer {
  position: relative;
  z-index: 1;
}

.simulados-symbols {
  position: fixed;
  inset: 64px 0 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.simulados-symbol {
  --size: 4rem;
  --rot: 0deg;
  --duration: 14s;
  --delay: 0s;
  position: absolute;
  width: var(--size);
  height: var(--size);
  object-fit: contain;
  opacity: 0.28;
  transform: rotate(var(--rot));
  animation: simulados-symbol-float var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  filter:
    drop-shadow(0 0 12px rgba(0, 229, 255, 0.14))
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.18));
}

.simulados-symbol-left-1 {
  --size: clamp(3rem, 4.8vw, 5.2rem);
  --rot: -12deg;
  --duration: 12.5s;
  top: 8%;
  left: max(1.25rem, calc((100vw - 1180px) / 2 - 5.2rem));
}

.simulados-symbol-left-2 {
  --size: clamp(2.7rem, 4.3vw, 4.7rem);
  --rot: 14deg;
  --duration: 15s;
  --delay: -4s;
  top: 29%;
  left: max(2.8rem, calc((100vw - 1180px) / 2 - 2.8rem));
}

.simulados-symbol-left-3 {
  --size: clamp(2.6rem, 4vw, 4.4rem);
  --rot: -8deg;
  --duration: 13.2s;
  --delay: -7s;
  top: 55%;
  left: max(1.5rem, calc((100vw - 1180px) / 2 - 5rem));
}

.simulados-symbol-left-4 {
  --size: clamp(2.8rem, 4.5vw, 4.9rem);
  --rot: 17deg;
  --duration: 16s;
  --delay: -2s;
  bottom: 8%;
  left: max(3rem, calc((100vw - 1180px) / 2 - 2.2rem));
}

.simulados-symbol-right-1 {
  --size: clamp(3.2rem, 5vw, 5.5rem);
  --rot: 12deg;
  --duration: 13s;
  --delay: -3s;
  top: 10%;
  right: max(1.4rem, calc((100vw - 1180px) / 2 - 4.8rem));
}

.simulados-symbol-right-2 {
  --size: clamp(2.7rem, 4.2vw, 4.6rem);
  --rot: -15deg;
  --duration: 15.6s;
  --delay: -6s;
  top: 32%;
  right: max(3rem, calc((100vw - 1180px) / 2 - 2.5rem));
}

.simulados-symbol-right-3 {
  --size: clamp(2.8rem, 4.4vw, 4.8rem);
  --rot: 9deg;
  --duration: 12.8s;
  --delay: -8s;
  top: 58%;
  right: max(1.6rem, calc((100vw - 1180px) / 2 - 5rem));
}

.simulados-symbol-right-4 {
  --size: clamp(2.9rem, 4.6vw, 5rem);
  --rot: -10deg;
  --duration: 16.3s;
  --delay: -1s;
  bottom: 7%;
  right: max(3.2rem, calc((100vw - 1180px) / 2 - 2.4rem));
}

.simulados-main {
  min-height: calc(100vh - 104px);
}

.simulados-hero {
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(0.55rem, 1.5vw, 0.9rem);
}

.simulados-stage.section {
  padding-top: 0;
  padding-bottom: clamp(1rem, 2vw, 1.6rem);
}

.simulados-hero-grid,
.simulados-workbench,
.simulados-product-grid {
  display: grid;
  gap: 1rem;
}

.simulados-hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.9fr);
  align-items: center;
}

.simulados-hero-grid--library {
  grid-template-columns: minmax(0, 1fr);
}

.simulados-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.simulados-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-weight: 900;
}

.simulados-copy h1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0;
  max-width: none;
  font-size: clamp(2.15rem, 4.2vw, 3.55rem);
  line-height: 1.02;
  white-space: nowrap;
}

.simulados-copy h1 i {
  color: var(--accent);
  font-size: 0.9em;
  line-height: 1;
}

.simulados-copy p:not(.simulados-kicker) {
  max-width: 46rem;
  margin-top: 0.55rem;
  margin-inline: auto;
  font-size: 1rem;
}

.simulados-answer-panel,
.simulados-pdf-panel {
  border: 1px solid rgba(150, 173, 222, 0.16);
  border-radius: 8px;
  background: rgba(8, 14, 32, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.simulados-panel-head span,
.simulados-pdf-toolbar span {
  display: block;
  color: var(--ink-500);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.simulados-panel-head strong,
.simulados-pdf-toolbar strong {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--font-title);
}

.simulados-section-head {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 0.75rem;
  text-align: center;
}

.simulados-section-head h2 {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.simulados-section-head p:last-child {
  margin-top: 0.45rem;
}

.simulados-product-grid {
  --simulado-card-width: 300px;
  grid-template-columns: repeat(auto-fit, var(--simulado-card-width));
  justify-content: center;
  align-items: start;
  gap: clamp(0.85rem, 1.5vw, 1.2rem);
}

.simulados-product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  inline-size: var(--simulado-card-width);
  min-inline-size: var(--simulado-card-width);
  max-inline-size: var(--simulado-card-width);
  justify-self: center;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(0, 229, 255, 0.26);
  border-radius: 28px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--app-blue) 18%, #071326), color-mix(in srgb, #38d6a6 10%, #081326));
  color: var(--ink-900);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.28),
    0 0 34px color-mix(in srgb, var(--app-blue) 9%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.simulados-product-card::before,
.simulados-product-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.simulados-product-card::before {
  inset: 0.55rem 0.55rem auto;
  aspect-ratio: 16 / 9;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  opacity: 0.84;
}

.simulados-product-card::after {
  display: none;
}

.simulados-product-card:hover,
.simulados-product-card:focus-visible {
  z-index: 2;
  border-color: color-mix(in srgb, var(--app-blue) 72%, rgba(255, 255, 255, 0.34));
  box-shadow:
    0 34px 72px rgba(0, 0, 0, 0.42),
    0 0 0 1px color-mix(in srgb, var(--app-blue) 30%, transparent),
    0 0 52px color-mix(in srgb, var(--app-blue) 28%, transparent),
    0 0 92px rgba(56, 214, 166, 0.14);
  outline: none;
  transform: translateY(-10px) scale(1.018);
}

.simulados-product-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin: 0.55rem 0.55rem 0;
  border-radius: 24px;
  overflow: hidden;
}

.simulados-product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--app-blue) 68%, #38d6a6 32%);
  border-radius: 22px;
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 12px color-mix(in srgb, var(--app-blue) 34%, transparent),
    0 0 24px rgba(56, 214, 166, 0.22);
  filter: saturate(1.06) contrast(1.03);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.simulados-product-card:hover .simulados-product-media img,
.simulados-product-card:focus-visible .simulados-product-media img {
  filter: saturate(1.2) contrast(1.08);
  transform: scale(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 16px color-mix(in srgb, var(--app-blue) 42%, transparent),
    0 0 34px rgba(56, 214, 166, 0.3);
}

.simulados-product-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.62rem 0.82rem 0.35rem;
  background: linear-gradient(180deg, rgba(7, 15, 30, 0.12), rgba(7, 15, 30, 0.36));
}

.simulados-product-body > div:first-child {
  display: grid;
  gap: 0.22rem;
  align-content: start;
}

.simulados-product-body h3 {
  max-width: 18ch;
  min-height: 0;
  margin: 0 auto;
  color: #eef7ff;
  font-family: var(--font-title);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.44),
    0 0 16px color-mix(in srgb, var(--app-blue) 44%, transparent),
    0 0 28px rgba(56, 214, 166, 0.24);
}

.simulados-product-body p {
  max-width: 30ch;
  margin: 0 auto;
  color: rgba(236, 246, 255, 0.76);
  font-size: 0.84rem;
  line-height: 1.18;
  text-align: center;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.simulados-product-body .open-btn {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.08rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--app-blue));
  color: #061326;
  box-shadow:
    0 14px 24px color-mix(in srgb, var(--app-blue) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 950;
  white-space: nowrap;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.simulados-product-body .open-btn:hover {
  filter: brightness(1.08) saturate(1.08);
  transform: translateY(-2px);
}

.simulados-workbench {
  grid-template-columns: minmax(20rem, 0.44fr) minmax(0, 1fr);
  align-items: start;
}

.simulados-workbench[hidden] {
  display: none;
}

body[data-page="simulado-runner"] {
  min-height: 100vh;
  background-color: #07101f;
  background-image: linear-gradient(180deg, #07101f 0%, #0a1425 100%);
}

.simulados-exam-header {
  position: sticky;
  top: 0;
  z-index: 35;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(10rem, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem clamp(0.75rem, 2vw, 1.25rem);
  border-bottom: 1px solid rgba(150, 173, 222, 0.16);
  background: rgba(5, 11, 24, 0.94);
  backdrop-filter: blur(12px);
}

.simulados-exam-brand,
.simulados-exam-actions {
  display: inline-flex;
  align-items: center;
}

.simulados-exam-brand {
  min-width: 0;
  gap: 0.5rem;
  color: #eef7ff;
  font-family: var(--font-title);
  font-weight: 800;
  text-decoration: none;
}

.simulados-exam-brand:focus-visible {
  border-radius: 0.4rem;
  outline: 2px solid var(--app-blue);
  outline-offset: 0.25rem;
}

.simulados-exam-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.simulados-exam-title {
  min-width: 0;
  text-align: center;
}

.simulados-exam-title span {
  display: block;
  color: var(--ink-500);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.simulados-exam-title strong {
  display: block;
  overflow: hidden;
  color: var(--ink-900);
  font-family: var(--font-title);
  font-size: 0.98rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simulados-exam-actions {
  justify-content: flex-end;
  gap: 0.45rem;
}

.simulados-runner-main {
  display: grid;
  align-items: start;
  padding: clamp(0.6rem, 1.3vw, 1rem);
}

.simulados-runner-shell {
  width: min(1580px, 100%);
  margin: 0 auto;
}

.simulados-runner-loading {
  width: min(28rem, calc(100% - 2rem));
  min-height: 12rem;
  display: grid;
  place-items: center;
  gap: 0.7rem;
  margin: clamp(4rem, 16vh, 8rem) auto 0;
  border: 1px solid rgba(150, 173, 222, 0.16);
  border-radius: 8px;
  background: rgba(8, 14, 32, 0.84);
  color: var(--ink-700);
  font-weight: 900;
  text-align: center;
}

.simulados-runner-loading[hidden] {
  display: none;
}

.simulados-runner-loading i {
  color: var(--accent);
  font-size: 1.5rem;
}

.simulados-runner-loading.is-error {
  color: #ffb6b6;
}

.simulados-runner-loading.is-success {
  color: #9df5c5;
}

body[data-page="simulado-runner"] .simulados-workbench {
  grid-template-columns: minmax(18.5rem, 340px) minmax(0, 1fr);
  gap: clamp(0.6rem, 1.2vw, 0.9rem);
  align-items: start;
}

body[data-page="simulado-runner"] .simulados-answer-panel {
  top: calc(64px + 0.8rem);
  max-height: calc(100vh - 64px - 1.6rem);
  box-shadow: none;
}

body[data-page="simulado-runner"] .simulados-pdf-panel {
  min-height: calc(100vh - 64px - 1.6rem);
  box-shadow: none;
}

body[data-page="simulado-runner"] .simulados-pdf-frame {
  height: calc(100vh - 64px - 1.6rem - 64px);
  min-height: 560px;
}

.simulados-answer-panel {
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6rem);
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1rem;
  overflow: hidden;
}

.simulados-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(150, 173, 222, 0.12);
}

.simulados-panel-toggle,
.simulados-step-button,
.simulados-current-actions button,
.simulados-pdf-actions button {
  min-height: 38px;
  border: 1px solid rgba(150, 173, 222, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-900);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.simulados-panel-toggle,
.simulados-step-button {
  width: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
}

.simulados-answer-body {
  min-height: 0;
  display: grid;
  gap: 0.8rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.simulados-answer-body[hidden] {
  display: none;
}

.simulados-workbench.is-answer-panel-collapsed {
  grid-template-columns: minmax(4.5rem, 0.08fr) minmax(0, 1fr);
}

.simulados-workbench.is-answer-panel-collapsed .simulados-answer-panel {
  align-self: start;
}

.simulados-progress {
  display: grid;
  gap: 0.45rem;
}

.simulados-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink-500);
  font-size: 0.84rem;
  font-weight: 900;
}

.simulados-progress-head strong {
  color: #9df5c5;
}

.simulados-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.simulados-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #079cff, #00e5ff 55%, #7af7ff);
  transition: width 0.2s ease;
}

.simulados-current-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(150, 173, 222, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.simulados-attempt-tools {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(150, 173, 222, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.simulados-room-context {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(150, 173, 222, 0.12);
}

.simulados-room-context span {
  color: var(--ink-500);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.simulados-room-context strong {
  font-family: var(--font-title);
}

.simulados-attempt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.simulados-attempt-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(150, 173, 222, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-900);
  font: 900 0.88rem/1.1 var(--font-body);
  cursor: pointer;
}

.simulados-attempt-actions button:first-child {
  border-color: rgba(56, 214, 166, 0.38);
  background: rgba(56, 214, 166, 0.14);
  color: #9df5c5;
}

.simulados-attempt-actions button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.simulados-attempt-clock {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--app-blue);
  font: 900 0.95rem/1 var(--font-title);
}

.simulados-current-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.simulados-current-top span,
.simulados-question-select span,
.simulados-local-note {
  color: var(--ink-500);
  font-size: 0.8rem;
  font-weight: 900;
}

.simulados-current-top strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.15rem;
}

.simulados-current-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.simulados-current-options button {
  min-height: 48px;
  border: 1px solid rgba(150, 173, 222, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-900);
  cursor: pointer;
}

.simulados-current-options button span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font: 900 1rem/1 var(--font-title);
}

.simulados-current-options button.is-selected {
  border-color: rgba(56, 214, 166, 0.62);
  background: rgba(56, 214, 166, 0.18);
  color: #9df5c5;
}

.simulados-current-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.simulados-current-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.7rem;
}

.simulados-question-tools {
  display: grid;
  gap: 0.5rem;
}

.simulados-question-select {
  display: grid;
  gap: 0.3rem;
}

.simulados-question-select select {
  width: 100%;
  min-height: 42px;
  padding: 0 0.7rem;
  border: 1px solid rgba(150, 173, 222, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-900);
  font: 900 0.95rem/1 var(--font-body);
}

.simulados-question-select input {
  width: 100%;
  min-height: 46px;
  padding: 0 0.8rem;
  border: 1px solid rgba(150, 173, 222, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-900);
  font: 900 1rem/1 var(--font-title);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.simulados-question-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
}

.simulados-question-chip,
.simulados-tabs button,
.simulados-icon-link {
  min-height: 34px;
  border: 1px solid rgba(150, 173, 222, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-900);
  font: 900 0.85rem/1 var(--font-body);
  cursor: pointer;
}

.simulados-question-chip {
  min-width: 0;
  padding: 0;
  font-family: var(--font-title);
  font-size: 0.78rem;
}

.simulados-question-chip.is-current {
  border-color: rgba(0, 229, 255, 0.5);
  color: var(--app-blue);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.14) inset;
}

.simulados-question-chip.is-answered {
  border-color: rgba(56, 214, 166, 0.62);
  background: rgba(56, 214, 166, 0.18);
  color: #9df5c5;
}

.simulados-local-note {
  min-height: 1.2rem;
}

.simulados-local-note.is-error {
  color: #ffb6b6;
}

.simulados-local-note.is-success {
  color: #9df5c5;
}

.simulados-pdf-panel {
  min-height: 720px;
  overflow: hidden;
}

.simulados-pdf-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(150, 173, 222, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.simulados-icon-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
}

.simulados-pdf-actions {
  display: inline-flex;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.simulados-pdf-frame {
  width: 100%;
  height: 656px;
  display: block;
  border: 0;
  background: #eaf4ff;
}

.simulados-access-dialog {
  width: min(94vw, 460px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-900);
}

.simulados-login-dialog {
  width: min(94vw, 440px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-900);
}

.simulados-confirm-dialog {
  width: min(94vw, 470px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-900);
}

.simulados-access-dialog::backdrop {
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(8px);
}

.simulados-login-dialog::backdrop {
  background: rgba(3, 7, 18, 0.76);
  backdrop-filter: blur(10px);
}

.simulados-confirm-dialog::backdrop {
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(12px);
}

.simulados-access-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 1.35rem);
  border: 1px solid rgba(150, 173, 222, 0.18);
  border-radius: 8px;
  background: rgba(8, 14, 32, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.simulados-login-card {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: clamp(1.15rem, 4vw, 1.5rem);
  border: 1px solid rgba(150, 173, 222, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 192, 103, 0.16), transparent 38%),
    rgba(8, 14, 32, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.simulados-confirm-card {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.15rem, 4vw, 1.55rem);
  border: 1px solid rgba(150, 173, 222, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 200, 255, 0.18), transparent 36%),
    rgba(8, 14, 32, 0.98);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.44);
}

.simulados-confirm-card--submit {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 200, 69, 0.18), transparent 38%),
    rgba(8, 14, 32, 0.98);
}

.simulados-confirm-card--complete {
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 214, 166, 0.18), transparent 38%),
    rgba(8, 14, 32, 0.98);
}

.simulados-confirm-card--exit {
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 200, 255, 0.14), transparent 36%),
    rgba(8, 14, 32, 0.98);
}

.simulados-confirm-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 200, 255, 0.34);
  border-radius: 8px;
  background: rgba(0, 200, 255, 0.12);
  color: #9feeff;
  font-size: 1.6rem;
}

.simulados-confirm-card--submit .simulados-confirm-icon {
  border-color: rgba(255, 200, 69, 0.38);
  background: rgba(255, 200, 69, 0.13);
  color: #ffda78;
}

.simulados-confirm-card--complete .simulados-confirm-icon {
  border-color: rgba(56, 214, 166, 0.42);
  background: rgba(56, 214, 166, 0.14);
  color: #9df5c5;
}

.simulados-confirm-card--exit .simulados-confirm-icon {
  border-color: rgba(0, 200, 255, 0.34);
  background: rgba(0, 200, 255, 0.12);
  color: #9feeff;
}

.simulados-confirm-kicker {
  display: block;
  margin-bottom: 0.22rem;
  color: #9cabca;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.simulados-confirm-card h2 {
  color: #f7fbff;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.simulados-confirm-card p {
  max-width: 42ch;
  margin-top: 0.35rem;
  color: #cbd7ed;
  font-weight: 800;
}

.simulados-confirm-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.simulados-confirm-summary span {
  display: grid;
  gap: 0.12rem;
  padding: 0.72rem;
  border: 1px solid rgba(150, 173, 222, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #9cabca;
  font-size: 0.78rem;
  font-weight: 900;
}

.simulados-confirm-summary strong {
  color: #f7fbff;
  font: 950 1.25rem/1 var(--font-title);
}

.simulados-login-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 192, 103, 0.36);
  border-radius: 50%;
  background: rgba(255, 192, 103, 0.12);
  color: var(--accent);
  font-size: 1.65rem;
}

.simulados-login-card h2 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.simulados-login-card p {
  max-width: 34ch;
  color: var(--ink-700);
  font-weight: 800;
}

.simulados-login-actions,
.simulados-confirm-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.simulados-login-actions--single {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.simulados-login-actions--single .btn {
  width: min(100%, 18rem);
  justify-content: center;
}

.simulados-access-card h2 {
  font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.simulados-dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(150, 173, 222, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-900);
  cursor: pointer;
}

.simulados-access-note {
  min-height: 1.2rem;
  color: var(--ink-500);
  font-size: 0.9rem;
  font-weight: 800;
}

.simulados-access-note.is-error {
  color: #ffb6b6;
}

.simulados-access-note.is-success {
  color: #9df5c5;
}

.simulados-access-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

html[data-theme="light"] .simulados-answer-panel,
html[data-theme="light"] .simulados-pdf-panel,
html[data-theme="light"] .simulados-product-card,
html[data-theme="light"] .simulados-access-card,
html[data-theme="light"] .simulados-login-card,
html[data-theme="light"] .simulados-confirm-card {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(10, 31, 68, 0.12);
}

html[data-theme="light"] .simulados-confirm-card h2,
html[data-theme="light"] .simulados-confirm-summary strong {
  color: var(--ink-900);
}

html[data-theme="light"] .simulados-confirm-card p,
html[data-theme="light"] .simulados-confirm-kicker,
html[data-theme="light"] .simulados-confirm-summary span {
  color: var(--ink-700);
}

html[data-theme="light"] .simulados-panel-toggle,
html[data-theme="light"] .simulados-step-button,
html[data-theme="light"] .simulados-current-card,
html[data-theme="light"] .simulados-attempt-tools,
html[data-theme="light"] .simulados-attempt-actions button,
html[data-theme="light"] .simulados-current-options button,
html[data-theme="light"] .simulados-current-options button span,
html[data-theme="light"] .simulados-current-actions button,
html[data-theme="light"] .simulados-question-select select,
html[data-theme="light"] .simulados-question-select input,
html[data-theme="light"] .simulados-question-chip,
html[data-theme="light"] .simulados-icon-link,
html[data-theme="light"] .simulados-dialog-close {
  background: rgba(10, 31, 68, 0.05);
  border-color: rgba(10, 31, 68, 0.12);
}

html[data-theme="light"] .simulados-attempt-clock {
  background: rgba(0, 125, 186, 0.09);
  color: #0a4e78;
}

html[data-theme="light"] .simulados-product-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.96));
  box-shadow:
    0 20px 44px rgba(31, 91, 145, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

html[data-theme="light"] .simulados-product-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(223, 240, 255, 0.44));
}

html[data-theme="light"] .simulados-product-body h3 {
  color: #10233d;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(37, 91, 145, 0.12);
}

html[data-theme="light"] .simulados-product-body p {
  color: #38506e;
}

html[data-theme="light"] .simulados-product-body .open-btn {
  border-color: color-mix(in srgb, var(--app-blue) 28%, rgba(10, 62, 105, 0.16));
  color: #0b2a44;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, white), color-mix(in srgb, var(--app-blue) 44%, white));
  box-shadow:
    0 12px 24px color-mix(in srgb, var(--app-blue) 13%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

html[data-theme="light"] .simulados-login-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 169, 40, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] body[data-page="simulado-runner"] {
  background-color: #f7fbff;
  background-image: linear-gradient(180deg, #f8fcff 0%, #edf7ff 100%);
}

html[data-theme="light"] .simulados-exam-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(10, 31, 68, 0.12);
  box-shadow: 0 10px 24px rgba(31, 91, 145, 0.08);
}

html[data-theme="light"] .simulados-exam-brand {
  color: #10233d;
}

html[data-theme="light"] .simulados-runner-loading {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(10, 31, 68, 0.12);
  color: #38506e;
}

@media (max-width: 1040px) {
  .simulados-symbol {
    opacity: 0.18;
  }

  .simulados-symbol-left-2,
  .simulados-symbol-right-2 {
    display: none;
  }

  .simulados-hero-grid,
  .simulados-workbench,
  .simulados-product-grid {
    grid-template-columns: 1fr;
  }

  .simulados-product-grid {
    grid-template-columns: repeat(auto-fit, var(--simulado-card-width));
    justify-items: center;
  }

  .simulados-answer-panel {
    position: relative;
    top: auto;
    max-height: none;
  }

  .simulados-answer-body {
    max-height: none;
    overflow: visible;
  }

  .simulados-workbench.is-answer-panel-collapsed {
    grid-template-columns: 1fr;
  }

  .simulados-pdf-panel {
    min-height: 620px;
  }

  .simulados-pdf-frame {
    height: 556px;
  }

  body[data-page="simulado-runner"] .simulados-workbench {
    grid-template-columns: 1fr;
  }

  body[data-page="simulado-runner"] .simulados-answer-panel {
    position: relative;
    top: auto;
    max-height: none;
  }

  body[data-page="simulado-runner"] .simulados-pdf-panel {
    min-height: 620px;
  }

  body[data-page="simulado-runner"] .simulados-pdf-frame {
    height: 556px;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .simulados-symbols {
    display: none;
  }

  .simulados-hero {
    padding-top: 5.35rem;
  }

  .simulados-product-grid {
    --simulado-card-width: min(100%, 300px);
    grid-template-columns: 1fr;
  }

  .simulados-product-card {
    border-radius: 24px;
    transform: none;
  }

  .simulados-product-body {
    padding: 0.62rem 0.82rem 0.35rem;
  }

  .simulados-product-body h3 {
    max-width: 18ch;
    font-size: clamp(1rem, 4.5vw, 1.18rem);
  }

  .simulados-copy h1 {
    gap: 0.55rem;
    white-space: normal;
  }

  .simulados-pdf-toolbar {
    align-items: flex-start;
  }

  .simulados-question-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .simulados-pdf-panel {
    min-height: 520px;
  }

  .simulados-pdf-frame {
    height: 456px;
  }

  .simulados-access-actions {
    grid-template-columns: 1fr;
  }

  .simulados-login-actions,
  .simulados-confirm-actions,
  .simulados-confirm-summary {
    grid-template-columns: 1fr;
  }

  .simulados-exam-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .simulados-exam-brand span {
    display: none;
  }

  .simulados-exam-title {
    order: 3;
    grid-column: 1 / -1;
    text-align: left;
  }

  body[data-page="simulado-runner"] .simulados-pdf-panel {
    min-height: 520px;
  }

  body[data-page="simulado-runner"] .simulados-pdf-frame {
    height: 456px;
  }
}

@media (max-width: 420px) {
  .simulados-current-options,
  .simulados-question-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .simulados-current-actions {
    grid-template-columns: 1fr;
  }

  .simulados-attempt-actions {
    grid-template-columns: 1fr;
  }

  .simulados-pdf-actions {
    flex-direction: column;
  }
}

/* Runner redesenhado */
body[data-page="simulado-runner"] {
  min-height: 100vh;
  overflow: hidden;
  overflow-y: hidden;
  background: #06111d;
  color: #eef7ff;
}

html:has(body[data-page="simulado-runner"]) {
  overflow: hidden;
}

body[data-page="simulado-runner"] .simulados-runner-stage {
  --runner-header-height: 68px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: var(--runner-header-height) minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(10, 22, 36, 0.96), rgba(5, 12, 22, 0.98)),
    #06111d;
}

body[data-page="simulado-runner"] .simulados-runner-stage:fullscreen {
  width: 100vw;
  height: 100vh;
}

body[data-page="simulado-runner"] .simulados-exam-header {
  position: relative;
  top: auto;
  min-height: var(--runner-header-height);
  display: grid;
  grid-template-columns: minmax(9rem, auto) minmax(12rem, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem clamp(0.75rem, 1.4vw, 1rem);
  border-bottom: 1px solid rgba(169, 187, 218, 0.16);
  background: rgba(7, 15, 27, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

body[data-page="simulado-runner"] .simulados-exam-brand {
  min-width: 0;
  gap: 0.55rem;
  color: #eef7ff;
}

body[data-page="simulado-runner"] .simulados-exam-brand img {
  width: 36px;
  height: 36px;
}

body[data-page="simulado-runner"] .simulados-exam-title {
  min-width: 0;
  text-align: left;
}

body[data-page="simulado-runner"] .simulados-exam-title span,
body[data-page="simulado-runner"] .simulados-exam-status span,
body[data-page="simulado-runner"] .simulados-panel-head span,
body[data-page="simulado-runner"] .simulados-pdf-toolbar span,
body[data-page="simulado-runner"] .simulados-room-context span,
body[data-page="simulado-runner"] .simulados-current-top span,
body[data-page="simulado-runner"] .simulados-question-select span,
body[data-page="simulado-runner"] .simulados-progress-head span {
  display: block;
  color: rgba(207, 220, 239, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page="simulado-runner"] .simulados-exam-title strong {
  display: block;
  max-width: 52vw;
  margin-top: 0.08rem;
  overflow: hidden;
  color: #f7fbff;
  font-family: var(--font-title);
  font-size: 0.98rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="simulado-runner"] .simulados-exam-status {
  min-width: 13rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(169, 187, 218, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

body[data-page="simulado-runner"] .simulados-exam-status strong {
  color: #9df5c5;
  font: 900 0.95rem/1 var(--font-title);
  white-space: nowrap;
}

body[data-page="simulado-runner"] .simulados-exam-actions {
  justify-content: end;
  gap: 0.45rem;
}

body[data-page="simulado-runner"] .header-account-wrap--simulado-runner {
  flex: 0 1 12.5rem;
  min-width: 0;
}

body[data-page="simulado-runner"] .header-account-wrap--simulado-runner .header-account {
  width: 100%;
  min-height: 40px;
  padding: 0 0.65rem 0 0.45rem;
  border-color: rgba(169, 187, 218, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #eef7ff;
  box-shadow: none;
}

body[data-page="simulado-runner"] .header-account-wrap--simulado-runner .header-account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.72rem;
}

body[data-page="simulado-runner"] .header-account-wrap--simulado-runner .header-account-name {
  min-width: 0;
  max-width: 8.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}

body[data-page="simulado-runner"] .header-account-wrap--simulado-runner .header-account-menu {
  top: calc(100% + 0.45rem);
  right: 0;
  left: auto;
  z-index: 80;
}

body[data-page="simulado-runner"] .simulados-icon-link,
body[data-page="simulado-runner"] .simulados-action-button,
body[data-page="simulado-runner"] .simulados-step-button,
body[data-page="simulado-runner"] .simulados-current-actions button,
body[data-page="simulado-runner"] .simulados-current-options button,
body[data-page="simulado-runner"] .simulados-question-chip,
body[data-page="simulado-runner"] .simulados-question-select select {
  border: 1px solid rgba(169, 187, 218, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #eef7ff;
  font: inherit;
}

body[data-page="simulado-runner"] .simulados-icon-link,
body[data-page="simulado-runner"] .simulados-step-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

body[data-page="simulado-runner"] .simulados-action-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0 0.82rem;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

body[data-page="simulado-runner"] .simulados-action-button--primary {
  border-color: rgba(56, 214, 166, 0.42);
  background: linear-gradient(135deg, rgba(56, 214, 166, 0.92), rgba(0, 229, 255, 0.72));
  color: #06111d;
}

body[data-page="simulado-runner"] button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body[data-page="simulado-runner"] .simulados-runner-main {
  min-height: 0;
  display: grid;
  padding: clamp(0.5rem, 1vw, 0.8rem);
}

body[data-page="simulado-runner"] .simulados-runner-shell {
  width: 100%;
  min-height: 0;
  margin: 0;
}

body[data-page="simulado-runner"] .simulados-runner-loading {
  align-self: center;
  width: min(28rem, calc(100% - 2rem));
  min-height: 12rem;
  margin: 0 auto;
  border: 1px solid rgba(169, 187, 218, 0.16);
  border-radius: 8px;
  background: rgba(9, 20, 35, 0.92);
}

body[data-page="simulado-runner"] .simulados-workbench {
  height: calc(100vh - var(--runner-header-height) - clamp(1rem, 2vw, 1.6rem));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 360px);
  gap: clamp(0.55rem, 1vw, 0.75rem);
  align-items: stretch;
}

body[data-page="simulado-runner"] .simulados-workbench[hidden] {
  display: none;
}

body[data-page="simulado-runner"] .simulados-pdf-panel,
body[data-page="simulado-runner"] .simulados-answer-panel {
  min-height: 0;
  border: 1px solid rgba(169, 187, 218, 0.16);
  border-radius: 8px;
  background: rgba(9, 20, 35, 0.86);
  box-shadow: none;
  overflow: hidden;
}

body[data-page="simulado-runner"] .simulados-pdf-panel {
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
}

body[data-page="simulado-runner"] .simulados-pdf-toolbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(169, 187, 218, 0.13);
  background: rgba(255, 255, 255, 0.045);
}

body[data-page="simulado-runner"] .simulados-pdf-toolbar strong,
body[data-page="simulado-runner"] .simulados-panel-head strong,
body[data-page="simulado-runner"] .simulados-room-context strong,
body[data-page="simulado-runner"] .simulados-current-top strong {
  color: #f7fbff;
  font-family: var(--font-title);
}

body[data-page="simulado-runner"] .simulados-pdf-actions {
  display: inline-flex;
  gap: 0.4rem;
}

body[data-page="simulado-runner"] .simulados-pdf-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border: 0;
  background: #f8fafc;
}

body[data-page="simulado-runner"] .simulados-answer-panel {
  position: relative;
  top: auto;
  max-height: none;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
  padding: 0;
}

body[data-page="simulado-runner"] .simulados-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(169, 187, 218, 0.13);
  background: rgba(255, 255, 255, 0.045);
}

body[data-page="simulado-runner"] .simulados-answer-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 0.62rem;
  overflow: hidden;
  padding: 0.65rem;
}

body[data-page="simulado-runner"] .simulados-room-context {
  display: grid;
  gap: 0.12rem;
  padding: 0;
  border: 0;
}

body[data-page="simulado-runner"] .simulados-progress {
  display: grid;
  gap: 0.35rem;
}

body[data-page="simulado-runner"] .simulados-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

body[data-page="simulado-runner"] .simulados-progress-head strong {
  color: #ffc067;
}

body[data-page="simulado-runner"] .simulados-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

body[data-page="simulado-runner"] .simulados-progress-track span {
  background: linear-gradient(90deg, #079cff, #00e5ff 55%, #7af7ff);
}

body[data-page="simulado-runner"] .simulados-current-card {
  display: grid;
  gap: 0.6rem;
  padding: 0.65rem;
  border: 1px solid rgba(169, 187, 218, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

body[data-page="simulado-runner"] .simulados-current-top {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

body[data-page="simulado-runner"] .simulados-current-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}

body[data-page="simulado-runner"] .simulados-current-options button {
  min-height: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

body[data-page="simulado-runner"] .simulados-current-options button span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font: 950 0.98rem/1 var(--font-title);
}

body[data-page="simulado-runner"] .simulados-current-options button.is-selected,
body[data-page="simulado-runner"] .simulados-question-chip.is-answered {
  border-color: rgba(56, 214, 166, 0.62);
  background: rgba(56, 214, 166, 0.2);
  color: #9df5c5;
}

body[data-page="simulado-runner"] .simulados-current-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

body[data-page="simulado-runner"] .simulados-current-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0 0.55rem;
  font-weight: 900;
  cursor: pointer;
}

body[data-page="simulado-runner"] .simulados-question-select {
  display: grid;
  gap: 0.25rem;
}

body[data-page="simulado-runner"] .simulados-question-select select {
  width: 100%;
  min-height: 38px;
  padding: 0 0.62rem;
  font-weight: 900;
}

body[data-page="simulado-runner"] .simulados-question-list {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-content: start;
  gap: 0.26rem;
}

body[data-page="simulado-runner"] .simulados-question-chip {
  min-width: 0;
  min-height: 27px;
  padding: 0;
  color: rgba(238, 247, 255, 0.86);
  font: 900 0.7rem/1 var(--font-title);
  cursor: pointer;
}

body[data-page="simulado-runner"] .simulados-question-chip.is-current {
  border-color: rgba(0, 229, 255, 0.62);
  color: #9ceeff;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.18) inset;
}

body[data-page="simulado-runner"] .simulados-local-note {
  min-height: 2.2rem;
  margin: 0;
  color: rgba(207, 220, 239, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
}

body[data-page="simulado-runner"] .simulados-local-note.is-error {
  color: #ffb6b6;
}

body[data-page="simulado-runner"] .simulados-local-note.is-success {
  color: #9df5c5;
}

html[data-theme="light"] .simulados-symbol {
  opacity: 0.3;
  filter:
    drop-shadow(0 0 10px rgba(0, 125, 186, 0.12))
    drop-shadow(0 12px 22px rgba(42, 91, 145, 0.12));
}

@keyframes simulados-symbol-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--rot));
  }

  35% {
    transform: translate3d(0.42rem, -0.54rem, 0) rotate(calc(var(--rot) + 5deg));
  }

  68% {
    transform: translate3d(-0.34rem, 0.36rem, 0) rotate(calc(var(--rot) - 4deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .simulados-symbol {
    animation: none;
  }
}

html[data-theme="light"] body[data-page="simulado-runner"] {
  background: #edf5fb;
  color: #10233d;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-runner-stage {
  background: linear-gradient(180deg, #f8fcff 0%, #eaf3f8 100%);
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-exam-header,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-pdf-panel,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-answer-panel,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-runner-loading {
  border-color: rgba(10, 31, 68, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #10233d;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-exam-title span,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-exam-status span,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-panel-head span,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-pdf-toolbar span,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-room-context span,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-current-top span,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-select span,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-progress-head span,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-local-note {
  color: #536981;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-exam-title strong,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-pdf-toolbar strong,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-panel-head strong,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-room-context strong,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-current-top strong {
  color: #10233d;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-icon-link,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-action-button,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-step-button,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-current-actions button,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-current-options button,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-chip,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-select select,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-exam-status,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-current-card {
  border-color: rgba(10, 31, 68, 0.12);
  background: rgba(10, 31, 68, 0.05);
  color: #10233d;
}

html[data-theme="light"] body[data-page="simulado-runner"] .header-account-wrap--simulado-runner .header-account {
  border-color: rgba(10, 31, 68, 0.12);
  background: rgba(10, 31, 68, 0.05);
  color: #10233d;
  box-shadow: none;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-select,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-map,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-runner-card {
  border-color: rgba(10, 31, 68, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-select select,
html[data-theme="light"] body[data-page="simulado-runner"] #simulado-foreign-language,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-trigger {
  border-color: rgba(0, 125, 186, 0.2);
  background: #ffffff;
  color: #10233d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

html[data-theme="light"] body[data-page="simulado-runner"] #simulado-foreign-language option {
  background: #ffffff;
  color: #10233d;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-select select:invalid,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-trigger {
  color: #38506e;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-options {
  border-color: rgba(0, 125, 186, 0.22);
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 125, 186, 0.1), transparent 38%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(31, 91, 145, 0.16);
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-options button {
  background: rgba(10, 31, 68, 0.05);
  color: #10233d;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-trigger:hover,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-trigger:focus-visible,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-trigger[aria-expanded="true"],
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-options button:hover,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-options button:focus-visible,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-options button[aria-selected="true"] {
  border-color: rgba(0, 125, 186, 0.34);
  background: rgba(0, 125, 186, 0.1);
  color: #0a4e78;
  box-shadow: 0 0 0 1px rgba(0, 125, 186, 0.08) inset;
}

@media (max-width: 1120px) {
  body[data-page="simulado-runner"] .simulados-exam-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body[data-page="simulado-runner"] .simulados-exam-status {
    display: none;
  }

  body[data-page="simulado-runner"] .simulados-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(305px, 330px);
  }

  body[data-page="simulado-runner"] .header-account-wrap--simulado-runner {
    flex-basis: 10rem;
  }

  body[data-page="simulado-runner"] .header-account-wrap--simulado-runner .header-account-name {
    max-width: 6.2rem;
  }
}

@media (max-width: 860px) {
  body[data-page="simulado-runner"] .simulados-runner-stage {
    --runner-header-height: 116px;
  }

  body[data-page="simulado-runner"] .simulados-exam-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-content: center;
  }

  body[data-page="simulado-runner"] .simulados-exam-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  body[data-page="simulado-runner"] .simulados-action-button {
    flex: 1 1 auto;
  }

  body[data-page="simulado-runner"] .simulados-action-button span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-page="simulado-runner"] .header-account-wrap--simulado-runner {
    flex: 1 1 10rem;
  }

  body[data-page="simulado-runner"] .header-account-wrap--simulado-runner .header-account-name {
    max-width: none;
  }

  body[data-page="simulado-runner"] .simulados-workbench {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 342px;
  }

  body[data-page="simulado-runner"] .simulados-pdf-panel {
    min-height: 0;
  }

  body[data-page="simulado-runner"] .simulados-answer-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  body[data-page="simulado-runner"] .simulados-room-context {
    display: none;
  }

  body[data-page="simulado-runner"] .simulados-progress,
  body[data-page="simulado-runner"] .simulados-question-select {
    grid-column: 2;
  }

  body[data-page="simulado-runner"] .simulados-current-card {
    grid-row: 1 / 4;
  }

  body[data-page="simulado-runner"] .simulados-question-list {
    grid-column: 2;
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  body[data-page="simulado-runner"] .simulados-local-note {
    grid-column: 1 / -1;
    min-height: 1.3rem;
  }
}

@media (max-width: 620px) {
  body[data-page="simulado-runner"] .simulados-runner-stage {
    --runner-header-height: 124px;
  }

  body[data-page="simulado-runner"] .simulados-exam-brand span,
  body[data-page="simulado-runner"] .simulados-pdf-toolbar strong {
    display: none;
  }

  body[data-page="simulado-runner"] .simulados-exam-title strong {
    max-width: none;
    font-size: 0.88rem;
  }

  body[data-page="simulado-runner"] .simulados-action-button {
    min-width: 0;
    padding: 0 0.55rem;
    font-size: 0.82rem;
  }

  body[data-page="simulado-runner"] .header-account-wrap--simulado-runner {
    flex: 1 1 100%;
  }

  body[data-page="simulado-runner"] .simulados-workbench {
    grid-template-rows: minmax(0, 1fr) 348px;
  }

  body[data-page="simulado-runner"] .simulados-pdf-toolbar {
    min-height: 50px;
    padding: 0.45rem 0.55rem;
  }

  body[data-page="simulado-runner"] .simulados-answer-panel {
    grid-template-rows: minmax(0, 1fr);
  }

  body[data-page="simulado-runner"] .simulados-panel-head {
    padding: 0.42rem 0.55rem;
  }

  body[data-page="simulado-runner"] .simulados-answer-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    padding: 0.5rem;
  }

  body[data-page="simulado-runner"] .simulados-progress,
  body[data-page="simulado-runner"] .simulados-question-select {
    display: none;
  }

  body[data-page="simulado-runner"] .simulados-current-card,
  body[data-page="simulado-runner"] .simulados-question-list,
  body[data-page="simulado-runner"] .simulados-local-note {
    grid-column: 1;
    grid-row: auto;
  }

  body[data-page="simulado-runner"] .simulados-current-card {
    gap: 0.45rem;
    padding: 0.5rem;
  }

  body[data-page="simulado-runner"] .simulados-current-options button {
    min-height: 38px;
  }

  body[data-page="simulado-runner"] .simulados-question-chip {
    min-height: 22px;
    font-size: 0.64rem;
  }
}

/* Runner jovem e focado */
body[data-page="simulado-runner"] {
  --runner-page-background: #dbeafe;
  --runner-yellow: #ffc845;
  --runner-orange: #ff9654;
  min-height: 100vh;
  overflow: hidden;
  background: var(--runner-page-background);
  color: #172033;
}

html:has(body[data-page="simulado-runner"]) {
  overflow: hidden;
}

body[data-page="simulado-runner"] .simulados-runner-stage {
  --runner-header-height: 76px;
  --runner-blue: #2563ff;
  --runner-cyan: #00c8ff;
  --runner-green: #20cf87;
  --runner-pink: #ff5c8a;
  --runner-purple: #6d5dfc;
  --runner-ink: #172033;
  --runner-muted: #617089;
  --runner-panel: #0c142b;
  --runner-panel-raised: #121d38;
  --runner-panel-card: #172441;
  --runner-panel-border: rgba(129, 167, 255, 0.18);
  --runner-panel-text: #f1f6ff;
  --runner-panel-muted: #9cabca;
  min-height: 100vh;
  display: grid;
  grid-template-rows: var(--runner-header-height) minmax(0, 1fr);
  background:
    linear-gradient(135deg, rgba(37, 99, 255, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(32, 207, 135, 0.12), transparent 36%),
    var(--runner-page-background);
}

body[data-page="simulado-runner"] .simulados-runner-stage:fullscreen {
  width: 100vw;
  height: 100vh;
}

body[data-page="simulado-runner"] .simulados-exam-header {
  position: relative;
  top: auto;
  z-index: 35;
  min-height: var(--runner-header-height);
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto auto;
  align-items: center;
  gap: clamp(0.55rem, 1vw, 0.9rem);
  padding: 0.65rem clamp(0.85rem, 1.8vw, 1.35rem);
  border: 0;
  background: #111833;
  color: #fff;
  box-shadow: 0 18px 38px rgba(28, 40, 80, 0.22);
  backdrop-filter: none;
}

body[data-page="simulado-runner"] .simulados-exam-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--runner-cyan), var(--runner-green), var(--runner-yellow), var(--runner-pink));
}

body[data-page="simulado-runner"] .simulados-exam-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-family: var(--font-title);
  font-weight: 950;
}

body[data-page="simulado-runner"] .simulados-exam-brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 200, 255, 0.24);
  object-fit: contain;
}

body[data-page="simulado-runner"] .simulados-exam-brand .simulados-exam-brain {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="simulado-runner"] .simulados-exam-title {
  min-width: 0;
  text-align: left;
}

body[data-page="simulado-runner"] .simulados-exam-title span,
body[data-page="simulado-runner"] .simulados-exam-status span,
body[data-page="simulado-runner"] .simulados-panel-head span,
body[data-page="simulado-runner"] .simulados-pdf-toolbar span,
body[data-page="simulado-runner"] .simulados-room-context span,
body[data-page="simulado-runner"] .simulados-current-top span,
body[data-page="simulado-runner"] .simulados-question-select span,
body[data-page="simulado-runner"] .simulados-progress-head span,
body[data-page="simulado-runner"] .simulados-map-head span {
  display: block;
  color: var(--runner-muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page="simulado-runner"] .simulados-exam-title span,
body[data-page="simulado-runner"] .simulados-exam-status span {
  color: rgba(255, 255, 255, 0.68);
}

body[data-page="simulado-runner"] .simulados-exam-title strong {
  display: block;
  max-width: 46vw;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="simulado-runner"] .simulados-exam-status {
  min-width: 13.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.48rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

body[data-page="simulado-runner"] .simulados-exam-status strong {
  min-width: 7ch;
  color: #9effcf;
  font: 950 0.98rem/1 var(--font-title);
  text-align: right;
  white-space: nowrap;
}

body[data-page="simulado-runner"] .simulados-exam-actions {
  justify-content: end;
  gap: 0.48rem;
}

body[data-page="simulado-runner"] .header-account-wrap--simulado-runner {
  flex: 0 1 12rem;
  min-width: 0;
}

body[data-page="simulado-runner"] .header-account-wrap--simulado-runner .header-account {
  width: 100%;
  min-height: 42px;
  padding: 0 0.65rem 0 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  box-shadow: none;
}

body[data-page="simulado-runner"] .header-account-wrap--simulado-runner .header-account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--runner-yellow), var(--runner-pink));
  color: #161a2b;
  font-size: 0.72rem;
}

body[data-page="simulado-runner"] .header-account-wrap--simulado-runner .header-account-name {
  display: none;
}

body[data-page="simulado-runner"] .header-account-wrap--simulado-runner .header-account-menu {
  top: calc(100% + 0.45rem);
  right: 0;
  left: auto;
  z-index: 80;
}

body[data-page="simulado-runner"] .simulados-icon-link,
body[data-page="simulado-runner"] .simulados-action-button,
body[data-page="simulado-runner"] .simulados-step-button,
body[data-page="simulado-runner"] .simulados-current-actions button,
body[data-page="simulado-runner"] .simulados-current-options button,
body[data-page="simulado-runner"] .simulados-question-chip,
body[data-page="simulado-runner"] .simulados-question-select select {
  border: 0;
  border-radius: 8px;
  color: inherit;
  font: inherit;
}

body[data-page="simulado-runner"] .simulados-icon-link,
body[data-page="simulado-runner"] .simulados-step-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

body[data-page="simulado-runner"] .simulados-action-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.86rem;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
}

body[data-page="simulado-runner"] .simulados-action-button--primary {
  background: linear-gradient(135deg, var(--runner-green), var(--runner-cyan));
  color: #07152a;
  box-shadow: 0 12px 24px rgba(0, 200, 255, 0.22);
}

body[data-page="simulado-runner"] .simulados-action-button--finish {
  background: linear-gradient(135deg, var(--runner-yellow), var(--runner-orange));
  color: #24150a;
}

body[data-page="simulado-runner"] .simulados-confirm-card--pause [data-confirm-dialog="pause"][data-confirm-dialog-action="cancel"] {
  border-color: rgba(255, 150, 84, 0.72);
  background: linear-gradient(135deg, var(--runner-yellow), var(--runner-orange));
  color: #24150a;
  box-shadow: 0 9px 20px rgba(255, 150, 84, 0.22);
}

body[data-page="simulado-runner"] .simulados-confirm-card--pause [data-confirm-dialog="pause"][data-confirm-dialog-action="cancel"]:hover,
body[data-page="simulado-runner"] .simulados-confirm-card--pause [data-confirm-dialog="pause"][data-confirm-dialog-action="cancel"]:focus-visible {
  border-color: #ffd08a;
  background: linear-gradient(135deg, #ffd15f, #ff8748);
  box-shadow: 0 11px 24px rgba(255, 150, 84, 0.32);
}

body[data-page="simulado-runner"] .simulados-action-button--quiet {
  background: #eaf4ff;
  color: #17406f;
}

body[data-page="simulado-runner"] button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

body[data-page="simulado-runner"] .simulados-runner-main {
  min-height: 0;
  display: grid;
  padding: 0;
}

body[data-page="simulado-runner"] .simulados-runner-shell {
  width: 100%;
  min-height: 0;
  margin: 0;
}

body[data-page="simulado-runner"] .simulados-runner-loading {
  align-self: center;
  width: min(28rem, calc(100% - 2rem));
  min-height: 12rem;
  display: grid;
  place-items: center;
  gap: 0.65rem;
  margin: 0 auto;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--runner-muted);
  box-shadow: 0 20px 54px rgba(30, 58, 138, 0.14);
}

/* O estado da interface e o atributo HTML devem ser a fonte de verdade.
   Esta regra precisa acompanhar a especificidade do tema do runner. */
body[data-page="simulado-runner"] .simulados-runner-loading[hidden] {
  display: none;
}

body[data-page="simulado-runner"] .simulados-runner-loading a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.95rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--runner-blue), var(--runner-cyan));
  color: #fff;
  font-weight: 950;
  text-decoration: none;
}

body[data-page="simulado-runner"] .simulados-runner-loading a[hidden] {
  display: none;
}

body[data-page="simulado-runner"] .simulados-workbench {
  height: calc(100vh - var(--runner-header-height));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  gap: 0;
  align-items: stretch;
}

body[data-page="simulado-runner"] .simulados-workbench[hidden] {
  display: none;
}

body[data-page="simulado-runner"] .simulados-pdf-panel,
body[data-page="simulado-runner"] .simulados-answer-panel {
  min-height: 0;
  border: 1px solid rgba(37, 99, 255, 0.11);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(30, 58, 138, 0.13);
  overflow: hidden;
}

body[data-page="simulado-runner"] .simulados-pdf-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  border-color: rgba(82, 130, 235, 0.28);
  background: #0c142b;
  box-shadow: 0 22px 60px rgba(3, 8, 24, 0.3);
}

body[data-page="simulado-runner"] .simulados-pdf-toolbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.62rem 0.78rem 0.62rem 0.9rem;
  border-bottom: 1px solid rgba(129, 167, 255, 0.18);
  background: linear-gradient(135deg, #151f3c, #101a34);
}

body[data-page="simulado-runner"] .simulados-pdf-toolbar span {
  color: var(--runner-panel-muted);
}

html body[data-page="simulado-runner"] .simulados-pdf-toolbar strong[data-pdf-file-label] {
  color: var(--runner-panel-text);
}

body[data-page="simulado-runner"] .simulados-pdf-toolbar .simulados-action-button--quiet {
  border: 1px solid rgba(0, 200, 255, 0.22);
  background: rgba(0, 200, 255, 0.1);
  color: #aeeeff;
}

body[data-page="simulado-runner"] .simulados-pdf-toolbar strong,
body[data-page="simulado-runner"] .simulados-panel-head strong,
body[data-page="simulado-runner"] .simulados-room-context strong,
body[data-page="simulado-runner"] .simulados-current-top strong,
body[data-page="simulado-runner"] .simulados-map-head strong {
  color: var(--runner-ink);
  font-family: var(--font-title);
}

body[data-page="simulado-runner"] .simulados-pdf-actions {
  display: inline-flex;
  gap: 0.4rem;
}

body[data-page="simulado-runner"] .simulados-pdf-viewer {
  position: relative;
  min-height: 0;
  background: linear-gradient(180deg, #eff8ff, #dceeff);
}

body[data-page="simulado-runner"] .simulados-pdf-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border: 0;
  background: #eaf4ff;
}

body[data-page="simulado-runner"] .simulados-mobile-pdf {
  height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.8rem;
  background: #d7e6f7;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

body[data-page="simulado-runner"] .simulados-mobile-pdf[hidden] {
  display: none;
}

body[data-page="simulado-runner"] .simulados-pdf-viewer.is-mobile-pdf .simulados-pdf-frame {
  display: none;
}

body[data-page="simulado-runner"] .simulados-mobile-pdf-page {
  width: max-content;
  min-width: 100%;
  min-height: 62vh;
  display: grid;
  place-items: center;
  margin: 0 auto 0.85rem;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: 0 10px 24px rgba(15, 35, 71, 0.18);
}

body[data-page="simulado-runner"] .simulados-mobile-pdf-page span,
body[data-page="simulado-runner"] .simulados-mobile-pdf-message {
  color: #405472;
  font-weight: 900;
}

body[data-page="simulado-runner"] .simulados-mobile-pdf-page canvas {
  max-width: none;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #fff;
}

body[data-page="simulado-runner"] .simulados-mobile-pdf-message {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
}

body[data-page="simulado-runner"] .simulados-mobile-pdf-message.is-error {
  color: #9f1d2f;
}

body[data-page="simulado-runner"] .simulados-pause-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.55rem;
  padding: clamp(1rem, 4vw, 2rem);
  background:
    linear-gradient(135deg, rgba(12, 20, 43, 0.94), rgba(9, 15, 32, 0.97)),
    #0c142b;
  color: var(--runner-panel-text);
  text-align: center;
}

body[data-page="simulado-runner"] .simulados-pause-cover[hidden] {
  display: none;
}

body[data-page="simulado-runner"] .simulados-pause-cover span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 200, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 200, 255, 0.11);
  color: #9feeff;
  font-size: 1.85rem;
}

body[data-page="simulado-runner"] .simulados-pause-cover strong {
  color: #f7fbff;
  font: 950 clamp(1.15rem, 3vw, 1.55rem)/1.1 var(--font-title);
}

body[data-page="simulado-runner"] .simulados-pause-cover p {
  max-width: 38ch;
  color: var(--runner-panel-muted);
  font-weight: 850;
}

body[data-page="simulado-runner"] .simulados-workbench.is-runner-paused .simulados-pdf-frame,
body[data-page="simulado-runner"] .simulados-workbench.is-runner-waiting-start .simulados-pdf-frame {
  filter: blur(4px);
}

body[data-page="simulado-runner"] .simulados-answer-panel {
  position: relative;
  top: auto;
  max-height: none;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
  padding: 0;
  border-color: rgba(82, 130, 235, 0.28);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 200, 255, 0.1), transparent 34%),
    var(--runner-panel);
  box-shadow: 0 22px 60px rgba(3, 8, 24, 0.34);
}

body[data-page="simulado-runner"] .simulados-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.62rem 0.78rem;
  border-bottom: 1px solid rgba(129, 167, 255, 0.18);
  background: linear-gradient(135deg, #151f3c, #101a34);
}

body[data-page="simulado-runner"] .simulados-answer-panel .simulados-panel-head span,
body[data-page="simulado-runner"] .simulados-answer-panel .simulados-room-context span,
body[data-page="simulado-runner"] .simulados-answer-panel .simulados-current-top span,
body[data-page="simulado-runner"] .simulados-answer-panel .simulados-question-select span,
body[data-page="simulado-runner"] .simulados-answer-panel .simulados-progress-head span,
body[data-page="simulado-runner"] .simulados-answer-panel .simulados-map-head span {
  color: var(--runner-panel-muted);
}

body[data-page="simulado-runner"] .simulados-answer-panel .simulados-panel-head strong,
body[data-page="simulado-runner"] .simulados-answer-panel .simulados-room-context strong,
body[data-page="simulado-runner"] .simulados-answer-panel .simulados-current-top strong,
body[data-page="simulado-runner"] .simulados-answer-panel .simulados-map-head strong {
  color: var(--runner-panel-text);
}

body[data-page="simulado-runner"] .simulados-answer-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(12rem, 1fr);
  gap: 0.66rem;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 0.72rem;
  background: transparent;
}

body[data-page="simulado-runner"] .simulados-runner-card,
body[data-page="simulado-runner"] .simulados-current-card {
  border: 1px solid var(--runner-panel-border);
  border-radius: 8px;
  background: var(--runner-panel-card);
  box-shadow: 0 10px 24px rgba(2, 7, 20, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body[data-page="simulado-runner"] .simulados-runner-card--status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.66rem;
  border-color: rgba(109, 93, 252, 0.28);
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.17), rgba(0, 200, 255, 0.08)), var(--runner-panel-card);
}

body[data-page="simulado-runner"] .simulados-room-context {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  padding: 0;
  border: 0;
}

body[data-page="simulado-runner"] .simulados-room-context strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="simulado-runner"] .simulados-attempt-state {
  display: inline-grid;
  justify-items: end;
  gap: 0.2rem;
}

body[data-page="simulado-runner"] .simulados-attempt-state span {
  color: var(--runner-panel-muted);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

body[data-page="simulado-runner"] .simulados-attempt-state strong {
  min-width: 3rem;
  min-height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--runner-purple), var(--runner-blue));
  color: #fff;
  font: 950 0.95rem/1 var(--font-title);
}

body[data-page="simulado-runner"] .simulados-progress {
  display: grid;
  gap: 0.42rem;
  padding: 0.5rem 0.58rem;
  border: 1px solid var(--runner-panel-border);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(32, 207, 135, 0.12), rgba(0, 200, 255, 0.08)), var(--runner-panel-raised);
  box-shadow: 0 8px 18px rgba(2, 7, 20, 0.14);
}

body[data-page="simulado-runner"] .simulados-map-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
}

body[data-page="simulado-runner"] .simulados-progress-track {
  position: relative;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

body[data-page="simulado-runner"] .simulados-progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #079cff, #00e5ff 55%, #7af7ff);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.72);
}

body[data-page="simulado-runner"] .simulados-progress-track strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font: 950 0.78rem/1 var(--font-title);
  letter-spacing: 0.025em;
  text-shadow: 0 1px 3px rgba(2, 7, 20, 0.8);
}

body[data-page="simulado-runner"] .simulados-current-card {
  display: grid;
  gap: 0.68rem;
  padding: 0.72rem;
  border-color: rgba(0, 200, 255, 0.24);
  background: linear-gradient(155deg, rgba(0, 200, 255, 0.07), transparent 42%), var(--runner-panel-card);
}

body[data-page="simulado-runner"] .simulados-current-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

body[data-page="simulado-runner"] .simulados-step-button {
  border: 1px solid rgba(129, 167, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #8fcbff;
}

body[data-page="simulado-runner"] .simulados-current-top strong {
  display: block;
  font-size: 1.18rem;
}

body[data-page="simulado-runner"] .simulados-current-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
}

body[data-page="simulado-runner"] .simulados-current-options button {
  position: relative;
  min-height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #3f557d;
  background: linear-gradient(180deg, #293a5b 0%, #192744 58%, #111a30 100%);
  color: #f7faff;
  cursor: pointer;
  box-shadow:
    0 4px 0 #070d1a,
    0 9px 18px rgba(2, 7, 18, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

body[data-page="simulado-runner"] .simulados-current-options button span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid #617ba8;
  background: linear-gradient(180deg, #243858, #14223b);
  color: var(--app-logo-blue);
  font: 950 1.14rem/1 var(--font-title);
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.78),
    0 0 7px rgba(0, 229, 255, 0.44);
  box-shadow:
    0 3px 0 #080e1c,
    0 6px 12px rgba(2, 7, 18, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
}

body[data-page="simulado-runner"] .simulados-current-options button i {
  position: absolute;
  top: 0.28rem;
  right: 0.32rem;
  color: #fff;
  font-size: 0.78rem;
  opacity: 0;
  transform: scale(0.7) rotate(-12deg);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body[data-page="simulado-runner"] .simulados-current-options button:hover {
  transform: translateY(-2px);
  border-color: #6684b6;
  background: linear-gradient(180deg, #304466 0%, #1d2d4c 58%, #14203a 100%);
  box-shadow:
    0 6px 0 #070d1a,
    0 12px 22px rgba(2, 7, 18, 0.34),
    0 0 14px rgba(0, 229, 255, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
}

body[data-page="simulado-runner"] .simulados-current-options button:hover span {
  border-color: rgba(0, 229, 255, 0.72);
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.78),
    0 0 10px rgba(0, 229, 255, 0.68);
  box-shadow:
    0 3px 0 #080e1c,
    0 0 12px rgba(0, 229, 255, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

body[data-page="simulado-runner"] .simulados-current-options button:focus-visible {
  border-color: var(--app-logo-blue);
  outline: 2px solid var(--app-logo-blue);
  outline-offset: 3px;
}

body[data-page="simulado-runner"] .simulados-current-options button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #070d1a,
    0 5px 10px rgba(2, 7, 18, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

body[data-page="simulado-runner"] .simulados-current-options button.is-locked {
  cursor: not-allowed;
  opacity: 0.68;
}

body[data-page="simulado-runner"] .simulados-current-options button.is-locked:hover,
body[data-page="simulado-runner"] .simulados-current-options button.is-locked:focus-visible,
body[data-page="simulado-runner"] .simulados-current-options button:disabled:hover {
  transform: none;
}

body[data-page="simulado-runner"] .simulados-current-options button.is-selected {
  border-color: var(--app-logo-blue);
  background: linear-gradient(180deg, #274563, #142a43);
  color: #fff;
  box-shadow:
    0 4px 0 #075b6a,
    0 0 18px rgba(0, 229, 255, 0.26),
    0 10px 20px rgba(2, 7, 18, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
  transform: translateY(-2px);
}

body[data-page="simulado-runner"] .simulados-current-options button.is-selected span {
  border-color: #8ff6ff;
  background: linear-gradient(180deg, #18344d, #0b2035);
  color: var(--app-logo-blue);
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.78),
    0 0 10px rgba(0, 229, 255, 0.76);
  box-shadow:
    0 3px 0 #06111e,
    0 0 15px rgba(0, 229, 255, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

body[data-page="simulado-runner"] .simulados-current-options button.is-selected i {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body[data-page="simulado-runner"] .simulados-current-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

body[data-page="simulado-runner"] .simulados-current-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.62rem;
  border: 1px solid rgba(0, 200, 255, 0.18);
  background: rgba(0, 200, 255, 0.09);
  color: #aeeeff;
  font-weight: 950;
  cursor: pointer;
}

body[data-page="simulado-runner"] .simulados-current-actions [data-confirm-answer] {
  border-color: rgba(74, 222, 128, 0.24);
  background: rgba(74, 222, 128, 0.1);
  color: #9df5c5;
}

body[data-page="simulado-runner"] .simulados-question-select {
  position: relative;
  display: grid;
  padding: 0.42rem;
  border-color: rgba(0, 200, 255, 0.24);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.08), rgba(32, 207, 135, 0.05)), var(--runner-panel-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body[data-page="simulado-runner"] .simulados-question-select select {
  width: 100%;
  min-height: 36px;
  padding: 0 2.15rem 0 0.68rem;
  border: 1px solid rgba(0, 200, 255, 0.24);
  border-radius: 8px;
  background: #173b63;
  color: var(--runner-panel-text);
  font-weight: 950;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body[data-page="simulado-runner"] #simulado-foreign-language {
  padding-right: 2.15rem;
  padding-left: 2.15rem;
  text-align: center;
  text-align-last: center;
}

body[data-page="simulado-runner"] #simulado-foreign-language option {
  background: #173b63;
  color: #e9f8ff;
  text-align: center;
}

body[data-page="simulado-runner"] .simulados-question-select select:invalid {
  color: #9feeff;
}

body[data-page="simulado-runner"] .simulados-language-trigger {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  align-items: center;
  padding: 0 0.55rem 0 2.05rem;
  border: 1px solid rgba(0, 200, 255, 0.24);
  border-radius: 8px;
  background: #173b63;
  color: #9feeff;
  font: 950 0.84rem/1.2 var(--font-body);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body[data-page="simulado-runner"] .simulados-language-trigger span {
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="simulado-runner"] .simulados-language-trigger i {
  transition: transform 0.18s ease;
}

body[data-page="simulado-runner"] .simulados-language-trigger[aria-expanded="true"] i {
  transform: rotate(180deg);
}

body[data-page="simulado-runner"] .simulados-language-trigger:hover,
body[data-page="simulado-runner"] .simulados-language-trigger:focus-visible,
body[data-page="simulado-runner"] .simulados-language-trigger[aria-expanded="true"] {
  border-color: rgba(120, 231, 255, 0.96);
  outline: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(37, 99, 255, 0.18)), #1b4775;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.72) inset,
    0 0 18px rgba(0, 229, 255, 0.3);
  color: #e9fbff;
}

body[data-page="simulado-runner"] .simulados-language-trigger:disabled {
  cursor: not-allowed;
}

body[data-page="simulado-runner"] .simulados-language-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.35rem);
  right: 0.42rem;
  left: 0.42rem;
  display: grid;
  gap: 0.3rem;
  padding: 0.38rem;
  border: 1px solid rgba(0, 229, 255, 0.38);
  border-radius: 8px;
  background: #101d35;
  box-shadow: 0 14px 30px rgba(2, 7, 18, 0.48), 0 0 18px rgba(0, 229, 255, 0.12);
}

body[data-page="simulado-runner"] .simulados-language-options[hidden] {
  display: none;
}

body[data-page="simulado-runner"] .simulados-language-options button {
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #172844;
  color: #e9f8ff;
  font: 900 0.84rem/1.2 var(--font-body);
  text-align: center;
  cursor: pointer;
}

body[data-page="simulado-runner"] .simulados-language-options button:hover,
body[data-page="simulado-runner"] .simulados-language-options button:focus-visible,
body[data-page="simulado-runner"] .simulados-language-options button[aria-selected="true"] {
  border-color: rgba(0, 229, 255, 0.62);
  outline: 0;
  background: #1b4775;
  color: var(--app-logo-blue);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.16);
}

body[data-page="simulado-runner"] .simulados-question-select:hover,
body[data-page="simulado-runner"] .simulados-question-select:focus-within {
  border-color: rgba(0, 229, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.92),
    0 0 0 4px rgba(0, 229, 255, 0.24) inset,
    0 0 22px rgba(0, 229, 255, 0.62),
    0 0 42px rgba(37, 99, 255, 0.38);
  transform: translateY(-1px);
}

body[data-page="simulado-runner"] .simulados-question-select:hover #simulado-foreign-language,
body[data-page="simulado-runner"] #simulado-foreign-language:focus {
  border-color: rgba(120, 231, 255, 0.96);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(37, 99, 255, 0.18)), #1b4775;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.72) inset,
    0 0 18px rgba(0, 229, 255, 0.46);
  color: #e9fbff;
}

body[data-page="simulado-runner"] .simulados-question-select:focus-within,
body[data-page="simulado-runner"] .simulados-question-select.is-language-attention {
  border-color: rgba(0, 229, 255, 0.64);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.24), 0 0 22px rgba(0, 229, 255, 0.18);
}

body[data-page="simulado-runner"] .simulados-question-select.is-language-attention .simulados-language-trigger {
  animation: simulados-language-pulse 0.9s ease-in-out 3;
}

@keyframes simulados-language-pulse {
  0%,
  100% {
    border-color: rgba(0, 229, 255, 0.42);
    box-shadow:
      0 0 0 1px rgba(0, 229, 255, 0.2) inset,
      0 0 10px rgba(0, 229, 255, 0.16);
  }

  50% {
    border-color: var(--app-logo-blue);
    box-shadow:
      0 0 0 2px rgba(0, 229, 255, 0.62) inset,
      0 0 18px rgba(0, 229, 255, 0.58),
      0 0 32px rgba(0, 229, 255, 0.3);
  }
}

body[data-page="simulado-runner"] .simulados-question-map {
  min-height: 12rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.62rem;
}

body[data-page="simulado-runner"] .simulados-map-head strong {
  color: #73e4ff;
  font-size: 0.78rem;
}

body[data-page="simulado-runner"] .simulados-question-list {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-content: start;
  gap: 0.28rem;
  overflow: auto;
  padding-right: 0.08rem;
  scrollbar-color: var(--app-logo-blue) rgba(0, 229, 255, 0.1);
  scrollbar-width: thin;
}

body[data-page="simulado-runner"] .simulados-question-list::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

body[data-page="simulado-runner"] .simulados-question-list::-webkit-scrollbar-track {
  background: rgba(0, 229, 255, 0.1);
  border-radius: 999px;
}

body[data-page="simulado-runner"] .simulados-question-list::-webkit-scrollbar-thumb {
  background: var(--app-logo-blue);
  border-radius: 999px;
  border: 2px solid rgba(14, 24, 48, 0.9);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.34);
}

body[data-page="simulado-runner"] .simulados-question-list::-webkit-scrollbar-thumb:hover {
  background: #8ff6ff;
}

body[data-page="simulado-runner"] .simulados-question-chip {
  min-width: 0;
  min-height: 28px;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #bdc9e1;
  font: 900 0.7rem/1 var(--font-title);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(129, 167, 255, 0.16) inset;
}

body[data-page="simulado-runner"] .simulados-question-chip.is-current {
  background: var(--app-logo-blue);
  color: #07152a;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.72) inset,
    0 0 12px rgba(0, 229, 255, 0.42),
    0 6px 16px rgba(0, 229, 255, 0.2);
}

body[data-page="simulado-runner"] .simulados-question-chip.is-answered {
  background: rgba(32, 207, 135, 0.15);
  color: #7aefbd;
  box-shadow: 0 0 0 1px rgba(32, 207, 135, 0.38) inset;
}

body[data-page="simulado-runner"] .simulados-question-chip.is-current.is-answered {
  background: linear-gradient(135deg, var(--runner-green), var(--app-logo-blue));
  color: #07152a;
}

body[data-page="simulado-runner"] .simulados-local-note {
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.55rem 0.66rem;
  border-radius: 8px;
  border: 1px solid var(--runner-panel-border);
  background: var(--runner-panel-raised);
  color: var(--runner-panel-muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
}

body[data-page="simulado-runner"] .simulados-local-note.is-error {
  border-color: rgba(255, 92, 138, 0.28);
  background: rgba(255, 92, 138, 0.11);
  color: #ffb4c9;
}

body[data-page="simulado-runner"] .simulados-local-note.is-success {
  border-color: rgba(32, 207, 135, 0.28);
  background: rgba(32, 207, 135, 0.11);
  color: #8ff1c5;
}

html[data-theme="light"] body[data-page="simulado-runner"],
html[data-theme="dark"] body[data-page="simulado-runner"] {
  background: var(--runner-page-background);
  color: #172033;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-select {
  border-color: rgba(10, 31, 68, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-select select,
html[data-theme="light"] body[data-page="simulado-runner"] #simulado-foreign-language,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-trigger,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-select button[data-language-trigger].simulados-language-trigger {
  border-color: rgba(0, 125, 186, 0.2);
  background: #ffffff;
  color: #38506e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

html[data-theme="light"] body[data-page="simulado-runner"] #simulado-foreign-language option {
  background: #ffffff;
  color: #10233d;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-options {
  border-color: rgba(0, 125, 186, 0.22);
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 125, 186, 0.1), transparent 38%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(31, 91, 145, 0.16);
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-options button {
  background: rgba(10, 31, 68, 0.05);
  color: #10233d;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-trigger:hover,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-trigger:focus-visible,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-trigger[aria-expanded="true"],
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-select button[data-language-trigger].simulados-language-trigger:hover,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-select button[data-language-trigger].simulados-language-trigger:focus-visible,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-question-select button[data-language-trigger].simulados-language-trigger[aria-expanded="true"],
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-options button:hover,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-options button:focus-visible,
html[data-theme="light"] body[data-page="simulado-runner"] .simulados-language-options button[aria-selected="true"] {
  border-color: rgba(0, 125, 186, 0.34);
  background: rgba(0, 125, 186, 0.1);
  color: #0a4e78;
  box-shadow: 0 0 0 1px rgba(0, 125, 186, 0.08) inset;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-current-options button {
  border-color: rgba(35, 96, 148, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #edf7ff 100%);
  color: #10233d;
  box-shadow:
    0 3px 0 rgba(86, 121, 160, 0.32),
    0 8px 16px rgba(31, 91, 145, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-current-options button span {
  border-color: rgba(0, 125, 186, 0.24);
  background: #ffffff;
  color: #0a5a8f;
  text-shadow: none;
  box-shadow:
    0 2px 0 rgba(86, 121, 160, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-current-options button.is-selected {
  border-color: rgba(0, 125, 186, 0.38);
  background: linear-gradient(180deg, #e7fbff, #dff5ff);
  color: #0a4e78;
  box-shadow:
    0 3px 0 rgba(0, 125, 186, 0.26),
    0 10px 18px rgba(31, 91, 145, 0.14),
    0 0 0 1px rgba(0, 125, 186, 0.08) inset;
}

html[data-theme="light"] body[data-page="simulado-runner"] .simulados-current-options button.is-selected span {
  border-color: rgba(0, 125, 186, 0.34);
  background: #ffffff;
  color: #0a5a8f;
  text-shadow: none;
}

@media (max-width: 1180px) {
  body[data-page="simulado-runner"] .simulados-exam-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body[data-page="simulado-runner"] .simulados-exam-status {
    display: none;
  }

  body[data-page="simulado-runner"] .simulados-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 350px);
  }

  body[data-page="simulado-runner"] .header-account-wrap--simulado-runner {
    flex-basis: 10rem;
  }
}

@media (max-width: 900px) {
  body[data-page="simulado-runner"] {
    overflow: auto;
  }

  html:has(body[data-page="simulado-runner"]) {
    overflow: auto;
  }

  body[data-page="simulado-runner"] .simulados-runner-stage {
    --runner-header-height: auto;
    min-height: 100vh;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body[data-page="simulado-runner"] .simulados-exam-header {
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
  }

  body[data-page="simulado-runner"] .simulados-exam-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  body[data-page="simulado-runner"] .simulados-action-button {
    flex: 1 1 9rem;
  }

  body[data-page="simulado-runner"] .header-account-wrap--simulado-runner {
    flex: 1 1 100%;
  }

  body[data-page="simulado-runner"] .simulados-runner-main {
    min-height: 0;
  }

  body[data-page="simulado-runner"] .simulados-workbench {
    height: auto;
    min-height: calc(100vh - 152px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(520px, 62vh) auto;
  }

  body[data-page="simulado-runner"] .simulados-answer-panel {
    min-height: 440px;
  }

  body[data-page="simulado-runner"] .simulados-answer-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  body[data-page="simulado-runner"] .simulados-runner-card--status {
    grid-column: 1 / -1;
  }

  body[data-page="simulado-runner"] .simulados-current-card {
    grid-row: 2 / 4;
  }

  body[data-page="simulado-runner"] .simulados-progress,
  body[data-page="simulado-runner"] .simulados-question-select,
  body[data-page="simulado-runner"] .simulados-question-map {
    grid-column: 2;
  }

  body[data-page="simulado-runner"] .simulados-local-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body[data-page="simulado-runner"] .simulados-exam-header {
    gap: 0.5rem;
    padding: 0.55rem;
  }

  body[data-page="simulado-runner"] .simulados-exam-title {
    order: initial;
    grid-column: auto;
  }

  body[data-page="simulado-runner"] .simulados-exam-brand span {
    display: none;
  }

  body[data-page="simulado-runner"] .simulados-exam-title strong {
    max-width: none;
    font-size: 0.9rem;
  }

  body[data-page="simulado-runner"] .simulados-action-button {
    min-height: 40px;
    padding: 0 0.62rem;
    font-size: 0.78rem;
  }

  body[data-page="simulado-runner"] .simulados-exam-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 40px;
    gap: 0.4rem;
  }

  body[data-page="simulado-runner"] .header-account-wrap--simulado-runner {
    width: 100%;
    min-width: 0;
  }

  body[data-page="simulado-runner"] .header-account-wrap--simulado-runner .header-account {
    min-height: 38px;
  }

  body[data-page="simulado-runner"] .simulados-exam-actions > .simulados-action-button,
  body[data-page="simulado-runner"] .simulados-exam-actions > .simulados-icon-link {
    width: 100%;
    min-width: 0;
  }

  body[data-page="simulado-runner"] .simulados-exam-actions > .simulados-icon-link {
    height: 40px;
    min-height: 40px;
  }

  body[data-page="simulado-runner"] .simulados-workbench {
    grid-template-rows: minmax(430px, 56vh) auto;
  }

  body[data-page="simulado-runner"] .simulados-pdf-toolbar strong {
    display: none;
  }

  body[data-page="simulado-runner"] .simulados-answer-body {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    overflow: visible;
  }

  body[data-page="simulado-runner"] .simulados-current-card,
  body[data-page="simulado-runner"] .simulados-progress,
  body[data-page="simulado-runner"] .simulados-question-select,
  body[data-page="simulado-runner"] .simulados-question-map,
  body[data-page="simulado-runner"] .simulados-local-note {
    grid-column: 1;
    grid-row: auto;
  }

  body[data-page="simulado-runner"] .simulados-current-options button {
    min-height: 44px;
  }

  body[data-page="simulado-runner"] .simulados-current-actions {
    grid-template-columns: 1fr;
  }

  body[data-page="simulado-runner"] .simulados-question-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-height: 11rem;
  }
}

@media (max-width: 480px) {
  body[data-page="simulado-runner"] .simulados-exam-actions {
    grid-template-columns: minmax(0, 1fr) repeat(3, 40px);
  }

  body[data-page="simulado-runner"] .simulados-exam-actions > [data-attempt-save-later],
  body[data-page="simulado-runner"] .simulados-exam-actions > [data-attempt-submit] {
    padding-inline: 0;
  }

  body[data-page="simulado-runner"] .simulados-exam-actions > [data-attempt-save-later] span,
  body[data-page="simulado-runner"] .simulados-exam-actions > [data-attempt-submit] span {
    display: none;
  }
}
