.challenge-inline-region {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0;
  visibility: hidden;
  scroll-margin-top: 5.5rem;
  transition: grid-template-rows 0.35s ease, margin 0.35s ease, visibility 0s linear 0.35s;
}

.challenge-inline-region.is-open {
  grid-template-rows: 1fr;
  margin: 0 0 2.75rem;
  visibility: visible;
  transition: grid-template-rows 0.35s ease, margin 0.35s ease, visibility 0s;
}

.challenge-inline-region__clip {
  min-height: 0;
  overflow: hidden;
}

.challenge-inline {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 20px;
  color: #e5e7eb;
  background:
    radial-gradient(circle at 100% 0, rgba(14, 116, 144, 0.2), transparent 34rem),
    #171f2a;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
  font-family: "Montserrat", sans-serif;
}

.challenge-inline__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 18, 28, 0.34);
}

.challenge-inline__topbar p {
  margin: 0;
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.challenge-inline__topbar button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border: 0;
  border-radius: 7px;
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.challenge-inline__topbar button:hover,
.challenge-inline__topbar button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.challenge-inline__intro {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.challenge-inline__intro > div:first-child {
  min-width: 0;
}

.challenge-inline__eyebrow {
  margin: 0;
  color: #ecbe13;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.challenge-inline__intro h2 {
  margin: 0.45rem 0 0;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.challenge-inline__description {
  max-width: 47rem;
  margin: 0.75rem 0 0;
  color: #aeb8c4;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.challenge-inline__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.challenge-inline__benefits li {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 999px;
  color: #d7e2eb;
  background: rgba(125, 211, 252, 0.07);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.challenge-inline__benefits li::before {
  content: "\2713";
  color: #ffd558;
  font-weight: 900;
}

.challenge-inline__progress-card {
  flex: 0 0 15rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(26, 50, 69, 0.72);
}

.challenge-inline__progress-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d1d5db;
  font-size: 0.75rem;
  font-weight: 700;
}

.challenge-inline__progress-card strong {
  color: #ffd558;
  font-size: 0.84rem;
}

.challenge-inline__progress-track {
  height: 6px;
  margin-top: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.challenge-inline__progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #ffd558);
  transition: width 0.3s ease;
}

.challenge-inline__progress-card p {
  margin: 0.45rem 0 0;
  color: #6b7280;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.7rem;
  text-align: right;
}

.challenge-inline__loading {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  min-height: 21rem;
  margin: 0 clamp(1rem, 3vw, 2.25rem) 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #aeb8c4;
  background: rgba(34, 39, 46, 0.82);
  font-family: "Source Sans Pro", sans-serif;
}

.challenge-inline__spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(125, 211, 252, 0.2);
  border-top-color: #7dd3fc;
  border-radius: 50%;
  animation: challenge-inline-spin 0.8s linear infinite;
}

@keyframes challenge-inline-spin {
  to {
    transform: rotate(360deg);
  }
}

.challenge-inline__error {
  margin: 0 clamp(1rem, 3vw, 2.25rem) 2.25rem;
  padding: 2rem;
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 16px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.12);
  text-align: center;
}

.challenge-inline__error h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.challenge-inline__error p {
  margin: 0.55rem 0 1rem;
  font-family: "Source Sans Pro", sans-serif;
}

.challenge-inline__error button {
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 8px;
  color: #18364d;
  background: #ecbe13;
  cursor: pointer;
  font-weight: 800;
}

.challenge-inline__completion {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0 clamp(1rem, 3vw, 2.25rem) 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(74, 222, 128, 0.24);
  border-radius: 14px;
  background: rgba(20, 83, 45, 0.14);
}

.challenge-inline__completion > div {
  flex: 1 1 auto;
  min-width: 0;
}

.challenge-inline__completion > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 11px;
  color: #86efac;
  background: rgba(74, 222, 128, 0.1);
}

.challenge-inline__completion p,
.challenge-inline__completion strong,
.challenge-inline__completion small {
  display: block;
}

.challenge-inline__completion p {
  margin: 0 0 0.15rem;
  color: #86efac;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.challenge-inline__completion strong {
  color: #fff;
  font-size: 0.95rem;
}

.challenge-inline__completion small {
  margin-top: 0.18rem;
  color: #9ca3af;
  font-family: "Source Sans Pro", sans-serif;
}

.challenge-inline__completion > .challenge-inline__offer {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
}

.challenge-inline__price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.challenge-inline__price[hidden],
.challenge-inline__old-price[hidden] {
  display: none;
}

.challenge-inline__completion .challenge-inline__old-price {
  color: #9ca3af;
  font-size: 1rem;
  font-weight: 600;
  text-decoration-color: rgba(248, 113, 113, 0.8);
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
}

.challenge-inline__completion .challenge-inline__price strong {
  color: #fff;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1;
}

.challenge-inline__completion .challenge-inline__price small {
  width: 100%;
  margin: 0;
  color: #9ca3af;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: right;
}

.challenge-inline__purchase {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.95rem;
  border-radius: 8px;
  color: #18364d !important;
  background: linear-gradient(135deg, #ffd558, #ecbe13);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none !important;
}

.challenge-inline__purchase:hover,
.challenge-inline__purchase:focus-visible {
  color: #18364d !important;
  box-shadow: 0 8px 20px rgba(236, 190, 19, 0.2);
}

.challenge-inline__workspace {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2.25rem) 2.25rem;
}

.challenge-inline__navigator {
  align-self: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(26, 50, 69, 0.74);
}

.challenge-inline__navigator > p:first-child {
  margin: 0 0 0.75rem;
  color: #6b7280;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.challenge-inline__question-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.challenge-inline__question-nav button {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #87919d;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
}

.challenge-inline__question-nav button:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.challenge-inline__question-nav button.is-current {
  border-color: #ffd558;
  color: #18364d;
  background: #ffd558;
}

.challenge-inline__question-nav button.is-correct:not(.is-current) {
  border-color: rgba(74, 222, 128, 0.3);
  color: #86efac;
  background: rgba(74, 222, 128, 0.12);
}

.challenge-inline__question-nav button.is-incorrect:not(.is-current) {
  border-color: rgba(248, 113, 113, 0.25);
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.14);
}

.challenge-inline__unlock {
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 213, 88, 0.15);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.challenge-inline__unlock[hidden] {
  display: none;
}

.challenge-inline__unlock-summary {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.challenge-inline__unlock-summary > i {
  margin-top: 0.15rem;
  color: #ffd558;
  font-size: 0.8rem;
}

.challenge-inline__unlock-summary strong,
.challenge-inline__unlock-summary span {
  display: block;
}

.challenge-inline__unlock-summary strong {
  color: #fff;
  font-size: 0.76rem;
}

.challenge-inline__unlock-summary span {
  margin-top: 0.25rem;
  color: #8f9aa7;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.7rem;
  line-height: 1.4;
}

.challenge-inline__unlock > a {
  display: inline-flex;
  margin-top: 0.7rem;
  color: #ffd558 !important;
  font-size: 0.7rem;
  font-weight: 900;
  text-decoration: none !important;
}

.challenge-inline__unlock > a:hover,
.challenge-inline__unlock > a:focus-visible {
  color: #ecbe13 !important;
  text-decoration: underline !important;
}

.challenge-inline__legend {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8f9aa7;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.72rem;
}

.challenge-inline__legend p {
  margin: 0.35rem 0 0;
}

.challenge-inline__legend span {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.4rem;
  border-radius: 50%;
}

.challenge-inline__legend span.is-correct {
  background: #4ade80;
}

.challenge-inline__legend span.is-incorrect {
  background: #f87171;
}

.challenge-inline__question-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: #22272e;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.challenge-inline__question-head {
  padding: 1.25rem clamp(1.1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 50, 69, 0.75);
}

.challenge-inline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.challenge-inline__meta span {
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.challenge-inline__meta span:first-child {
  color: #ffd558;
  background: rgba(236, 190, 19, 0.12);
}

.challenge-inline__meta span:last-child {
  margin-left: auto;
  color: #6b7280;
  background: transparent;
}

.challenge-inline__question-head h3 {
  margin: 0.9rem 0 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
}

.challenge-inline__question-body {
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
}

.challenge-inline__prompt {
  margin: 0 0 1rem;
  color: #d8dee6;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  white-space: pre-line;
}

.challenge-inline__code {
  margin: 0 0 1.15rem;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #f3f4f6;
  background: #111827;
  font-size: 0.87rem;
  line-height: 1.6;
}

.challenge-inline fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.challenge-inline__choices {
  display: grid;
  gap: 0.65rem;
}

.challenge-inline__code-editor[hidden],
.challenge-inline__choices[hidden],
.challenge-inline__execution[hidden],
.challenge-inline__model-answer[hidden] {
  display: none;
}

.challenge-inline__code-editor label {
  display: block;
  margin-bottom: 0.5rem;
  color: #d1d5db;
  font-size: 0.82rem;
  font-weight: 800;
}

.challenge-inline__code-editor textarea {
  display: block;
  width: 100%;
  min-height: 15rem;
  padding: 1rem;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  outline: none;
  color: #f3f4f6;
  background: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.87rem;
  line-height: 1.6;
}

.challenge-inline__code-editor textarea:focus {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1);
}

.challenge-inline__editor-shell {
  position: relative;
  min-width: 0;
}

.challenge-inline__editor-shell.is-loading textarea {
  visibility: hidden;
}

.challenge-inline__editor-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  color: #cbd5e1;
  background: #111827;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.87rem;
  font-weight: 700;
  text-align: center;
}

.challenge-inline__editor-loading[hidden] {
  display: none;
}

.challenge-inline__editor-loading-spinner {
  width: 1.45rem;
  height: 1.45rem;
  border: 2px solid rgba(125, 211, 252, 0.2);
  border-top-color: #7dd3fc;
  border-radius: 50%;
  animation: challenge-editor-spin 0.75s linear infinite;
}

.challenge-inline__editor-loading button {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 7px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.14);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.challenge-inline__editor-fallback {
  margin: 0.55rem 0 0;
  color: #facc15;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.78rem;
}

@keyframes challenge-editor-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .challenge-inline__editor-loading-spinner {
    animation: none;
  }
}

.challenge-inline__code-editor .CodeMirror {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 15rem;
  max-height: 30rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  color: #f3f4f6;
  background: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.87rem;
  line-height: 1.6;
}

.challenge-inline__code-editor .CodeMirror-focused {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.1);
}

.challenge-inline__code-editor .CodeMirror-scroll {
  min-height: 15rem;
  max-height: 30rem;
  overscroll-behavior: contain;
}

@media (max-width: 575.98px) {
  .challenge-inline__editor-loading,
  .challenge-inline__code-editor .CodeMirror,
  .challenge-inline__code-editor .CodeMirror-scroll {
    min-height: 12rem;
    max-height: 65vh;
  }
}

.challenge-inline__code-help,
.challenge-inline__python-status {
  margin: 0.55rem 0 0;
  color: #8f9aa7;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.78rem;
}

.challenge-inline__python-status {
  color: #7dd3fc;
  font-weight: 700;
}

.challenge-inline__execution {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: #d8dee6;
  background: rgba(17, 24, 39, 0.72);
  font-family: "Source Sans Pro", sans-serif;
}

.challenge-inline__execution h4 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.challenge-inline__execution ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.challenge-inline__execution li.is-passed {
  color: #86efac;
}

.challenge-inline__execution li.is-failed,
.challenge-inline__runtime-error {
  color: #fca5a5;
}

.challenge-inline__runtime-error {
  margin: 0 0 0.65rem;
  white-space: pre-wrap;
}

.challenge-inline__execution pre,
.challenge-inline__model-answer {
  max-height: 18rem;
  margin: 0.8rem 0 0;
  padding: 0.85rem;
  overflow: auto;
  border-radius: 8px;
  color: #d1d5db;
  background: rgba(0, 0, 0, 0.24);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.challenge-inline__choice {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  color: #e5e7eb;
  background: rgba(0, 0, 0, 0.13);
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.challenge-inline__choice:hover:not(:disabled),
.challenge-inline__choice:focus-visible {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(125, 211, 252, 0.06);
}

.challenge-inline__choice.is-selected {
  border-color: #7dd3fc;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.14);
}

.challenge-inline__choice.is-correct {
  border-color: rgba(74, 222, 128, 0.55);
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.24);
}

.challenge-inline__choice.is-incorrect {
  border-color: rgba(248, 113, 113, 0.52);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.2);
}

.challenge-inline__choice:disabled {
  cursor: default;
}

.challenge-inline__action-error {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.15);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.84rem;
}

.challenge-inline__feedback {
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 12px;
  color: #d8dee6;
  background: rgba(20, 83, 45, 0.16);
  font-family: "Source Sans Pro", sans-serif;
}

.challenge-inline__feedback.is-incorrect {
  border-color: rgba(248, 113, 113, 0.27);
  background: rgba(127, 29, 29, 0.14);
}

.challenge-inline__feedback h4 {
  margin: 0 0 0.45rem;
  color: #86efac;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.challenge-inline__feedback.is-incorrect h4 {
  color: #fca5a5;
}

.challenge-inline__feedback p {
  margin: 0;
  line-height: 1.55;
}

.challenge-inline__feedback strong {
  display: block;
  margin-top: 0.55rem;
  color: #fff;
  font-size: 0.88rem;
}

.challenge-inline__question-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.1rem, 2.5vw, 1.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.1);
}

.challenge-inline__question-actions button {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #d1d5db;
  background: transparent;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease,
    transform 0.15s ease;
}

.challenge-inline__question-actions button:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.challenge-inline__question-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.challenge-inline__question-actions .challenge-inline__submit {
  min-width: 12rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  color: #18364d;
  background: linear-gradient(90deg, #ffd558, #ecbe13);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.22),
    0 4px 6px -4px rgba(0, 0, 0, 0.22);
  font-weight: 900;
}

.challenge-inline__question-actions .challenge-inline__submit:hover:not(:disabled) {
  color: #18364d;
  background: linear-gradient(90deg, #ffd558, #ecbe13);
  transform: translateY(-0.125rem);
}

.challenge-inline__question-actions .challenge-inline__submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.challenge-inline__question-actions .challenge-inline__submit.is-correct {
  background: #4ade80;
}

.challenge-inline__question-actions .challenge-inline__submit.is-correct:hover:not(:disabled) {
  background: #86efac;
}

.challenge-inline__question-actions .challenge-inline__next.is-primary {
  border-color: transparent;
  color: #18364d;
  background: linear-gradient(90deg, #ffd558, #ecbe13);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.22),
    0 4px 6px -4px rgba(0, 0, 0, 0.22);
}

.challenge-inline__question-actions .challenge-inline__next.is-primary:hover:not(:disabled) {
  color: #18364d;
  background: linear-gradient(90deg, #ffd558, #ecbe13);
  transform: translateY(-0.125rem);
}

.challenge-inline__privacy,
.challenge-inline__noscript {
  margin: -1rem 1rem 1.25rem;
  color: #737e8a;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.75rem;
  text-align: center;
}

.challenge-inline__noscript {
  margin-top: 0;
  color: #fca5a5;
}

@media (max-width: 767px) {
  .challenge-inline__intro {
    display: block;
  }

  .challenge-inline__progress-card {
    margin-top: 1.25rem;
  }

  .challenge-inline__workspace {
    grid-template-columns: 1fr;
  }

  .challenge-inline__navigator {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
  }

  .challenge-inline__navigator > p:first-child,
  .challenge-inline__legend {
    display: none;
  }

  .challenge-inline__question-nav {
    grid-template-columns: repeat(5, 2.4rem);
  }

  .challenge-inline__question-nav button {
    width: 2.4rem;
  }

  .challenge-inline__unlock {
    flex: 1 1 12rem;
    margin-top: 0;
  }

  .challenge-inline__completion {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .challenge-inline__purchase {
    width: 100%;
  }

  .challenge-inline__completion > .challenge-inline__offer {
    width: 100%;
    align-items: stretch;
  }

  .challenge-inline__price {
    justify-content: flex-start;
  }

  .challenge-inline__completion .challenge-inline__price small {
    text-align: left;
  }
}

@media (max-width: 639px) {
  .challenge-inline-region.is-open {
    margin-bottom: 2rem;
  }

  .challenge-inline {
    border-radius: 15px;
  }

  .challenge-inline__topbar,
  .challenge-inline__intro {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .challenge-inline__topbar p {
    letter-spacing: 0.08em;
  }

  .challenge-inline__benefits {
    gap: 0.45rem;
  }

  .challenge-inline__benefits li {
    width: 100%;
  }

  .challenge-inline__question-actions {
    flex-direction: column;
  }

  .challenge-inline__question-actions button,
  .challenge-inline__question-actions .challenge-inline__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .challenge-inline-region,
  .challenge-inline__progress-track span,
  .challenge-inline__choice,
  .challenge-inline__question-actions button {
    transition: none;
  }

  .challenge-inline__spinner {
    animation: none;
  }
}
