html.scc-modal-open,
html.scc-modal-open body {
  overflow: hidden;
}

:root {
  --scc-brand: #174273;
  --scc-brand-hover: #10345e;
  --scc-brand-soft: #eef5fc;
  --scc-brand-border: #cadbef;
  --scc-brand-ring: rgba(23, 66, 115, 0.16);
  --scc-ink: #162033;
  --scc-muted: #66758a;
  --scc-line: #dce5ef;
  --scc-success: #18764a;
  --scc-success-soft: #eef8f2;
  --scc-error: #b04444;
  --scc-error-soft: #fff5f4;
}

.scc-home-card {
  position: relative;
  width: 100%;
  min-height: 128px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  padding: 18px 18px 18px 20px;
  border: 1px solid #d4e0ec;
  border-radius: 8px;
  background: #fbfdff;
  color: #0f172a;
  text-align: left;
  box-shadow: 0 9px 24px rgba(23, 66, 115, 0.06);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.scc-home-card::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--scc-brand);
}

.scc-home-card:hover,
.scc-home-card:focus-visible {
  border-color: var(--scc-brand);
  background: #f5f9fd;
  box-shadow: 0 12px 28px rgba(23, 66, 115, 0.11);
  outline: none;
  transform: translateY(-1px);
}

.scc-card-icon {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--scc-brand);
  border-radius: 50%;
  background: var(--scc-brand);
  box-shadow: 0 0 0 5px #eef5fc;
}

.scc-card-monogram {
  position: static;
  color: #ffffff;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
}

.scc-card-pulse {
  display: none;
}

.scc-card-pulse::before {
  content: none;
}

.scc-card-content {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
}

.scc-card-kicker,
.scc-kicker {
  margin: 0;
  color: var(--scc-brand);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.scc-card-content strong {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.scc-card-status {
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.scc-card-detail {
  color: #64748b;
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.45;
}

.scc-card-action {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--scc-brand);
  border-radius: 7px;
  color: #ffffff;
  background: var(--scc-brand);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-transform: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.scc-card-action::after {
  content: "\2192";
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.scc-home-card:hover .scc-card-action,
.scc-home-card:focus-visible .scc-card-action {
  border-color: var(--scc-brand-hover);
  background: var(--scc-brand-hover);
  color: #ffffff;
}

@media (max-width: 620px) {
  .scc-home-card {
    min-height: 0;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px 15px 17px;
  }

  .scc-card-icon {
    width: 46px;
    height: 46px;
    box-shadow: 0 0 0 4px #eef5fc;
  }

  .scc-card-monogram {
    font-size: 24px;
  }

  .scc-card-content strong {
    font-size: 18px;
  }

  .scc-card-action {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 3px;
  }
}

.scc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.35);
}

.scc-dialog {
  width: min(760px, 100%);
  max-height: min(88vh, 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
  animation: scc-dialog-enter 210ms ease both;
}

@keyframes scc-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scc-dialog-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.scc-dialog-header h2 {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: 0;
}

.scc-attempt-counter {
  align-self: center;
  padding: 7px 10px;
  border: 1px solid var(--scc-brand-border);
  border-radius: 8px;
  background: var(--scc-brand-soft);
  color: var(--scc-brand);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.scc-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.scc-close:hover,
.scc-close:focus-visible {
  border-color: var(--scc-brand);
  color: var(--scc-brand);
  outline: none;
}

.scc-dialog-body {
  overflow-y: auto;
  padding: 22px;
}

.scc-case-block,
.scc-clue,
.scc-answer-form,
.scc-resolution,
.scc-landing,
.scc-history {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.scc-case-block,
.scc-clue,
.scc-resolution,
.scc-landing,
.scc-history {
  padding: 16px;
}

.scc-case-block p:last-child,
.scc-clue p:last-child,
.scc-answer-block p:last-child,
.scc-landing p:last-child {
  margin-bottom: 0;
}

.scc-case-block p,
.scc-clue p,
.scc-answer-block p,
.scc-landing p,
.scc-resolution li {
  color: #334155;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.scc-clue-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.scc-clue {
  animation: scc-clue-in 220ms ease both;
}

@keyframes scc-clue-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scc-muted,
.scc-history-empty,
.scc-meta-line {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.scc-feedback {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #78350f;
}

.scc-feedback.is-correct {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}

.scc-feedback strong {
  font-size: 14px;
  font-weight: 850;
}

.scc-feedback span {
  font-size: 13px;
  font-weight: 600;
}

.scc-answer-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
}

.scc-answer-label {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.scc-autocomplete {
  position: relative;
}

.scc-autocomplete input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

.scc-autocomplete input:focus {
  border-color: var(--scc-brand);
  box-shadow: 0 0 0 3px var(--scc-brand-ring);
}

.scc-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 2;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.scc-suggestion,
.scc-suggestion-empty {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}

.scc-suggestion:last-child {
  border-bottom: 0;
}

.scc-suggestion:hover,
.scc-suggestion.is-active,
.scc-suggestion:focus-visible {
  background: var(--scc-brand-soft);
  color: var(--scc-brand);
  outline: none;
}

.scc-primary {
  min-height: 42px;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #0f172a;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.scc-primary:hover,
.scc-primary:focus-visible {
  border-color: var(--scc-brand);
  background: var(--scc-brand);
  outline: none;
}

.scc-primary:disabled {
  cursor: not-allowed;
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #94a3b8;
}

.scc-resolution {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.scc-resolution-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
}

.scc-resolution h3 {
  margin: 3px 0 3px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
}

.scc-answer-block {
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.scc-answer-block ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.scc-performance {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--scc-brand-border);
  border-radius: 8px;
  background: var(--scc-brand-soft);
  color: var(--scc-brand-hover);
  font-size: 13px;
  font-weight: 750;
}

.scc-landing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scc-landing p {
  margin: 0;
}

.scc-history {
  margin-top: 14px;
}

.scc-history-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.scc-history-header span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.scc-history-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.scc-history-item {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.scc-history-item:hover,
.scc-history-item:focus-visible {
  border-color: var(--scc-brand);
  background: var(--scc-brand-soft);
  outline: none;
}

.scc-history-date {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.scc-history-main {
  overflow: hidden;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scc-history-status {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.scc-history-status.is-solved {
  color: #047857;
}

@media (max-width: 760px) {
  .scc-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .scc-dialog {
    max-height: calc(100vh - 20px);
  }

  .scc-dialog-header {
    grid-template-columns: 1fr auto;
    padding: 16px;
  }

  .scc-attempt-counter {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .scc-dialog-body {
    padding: 14px;
  }

  .scc-answer-form {
    padding: 14px;
  }

  .scc-primary {
    width: 100%;
    justify-self: stretch;
  }

  .scc-resolution-grid,
  .scc-landing,
  .scc-history-item {
    grid-template-columns: 1fr;
  }

  .scc-landing {
    align-items: stretch;
  }

  .scc-history-status,
  .scc-history-main {
    white-space: normal;
  }
}

/* Daily diagnostic experience */
#semiomed-clinical-challenge-root,
#semiomed-clinical-challenge-root * {
  box-sizing: border-box;
}

#semiomed-clinical-challenge-root {
  position: relative;
  z-index: 9999;
  font-family: Inter, Montserrat, Arial, sans-serif;
  color: var(--scc-ink);
}

.scc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  background: rgba(12, 27, 48, 0.48);
  backdrop-filter: none;
}

.scc-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(94vh, 980px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #c7d3e0;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--scc-ink);
  box-shadow: 0 28px 70px rgba(8, 24, 44, 0.24);
  animation: scc-dialog-enter 220ms ease both;
}

.scc-dialog button,
.scc-dialog input {
  font: inherit;
  letter-spacing: 0;
}

.scc-dialog-header {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px 13px 22px;
  border-bottom: 1px solid var(--scc-line);
  background: #ffffff;
}

.scc-dialog-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.scc-dialog-brand > div {
  min-width: 0;
}

.scc-dialog-brand .scc-kicker {
  margin: 0 0 2px;
  color: var(--scc-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.scc-dialog-brand > div > span {
  display: block;
  overflow: hidden;
  color: #6b788a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scc-brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--scc-brand-border);
  border-radius: 10px;
  background: var(--scc-brand-soft);
  color: var(--scc-brand);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.scc-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d4dde7;
  border-radius: 10px;
  background: #ffffff;
  color: #566579;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.scc-close span {
  transform: translateY(-1px);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.scc-close:hover,
.scc-close:focus-visible {
  border-color: var(--scc-brand);
  background: var(--scc-brand-soft);
  color: var(--scc-brand);
  outline: none;
}

.scc-dialog-body {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 32px 36px;
  background: #f8fafc;
  scrollbar-gutter: stable;
}

.scc-challenge-main {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.scc-challenge-intro {
  margin: 2px 0 26px;
  text-align: center;
}

.scc-challenge-intro.is-review {
  margin-bottom: 24px;
}

.scc-section-kicker {
  margin: 0;
  color: var(--scc-brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.scc-challenge-intro h2 {
  margin: 6px 0 9px;
  color: var(--scc-ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.14;
}

.scc-title-rule {
  width: 44px;
  height: 3px;
  display: block;
  margin: 0 auto;
  border-radius: 3px;
  background: var(--scc-brand);
}

.scc-case-block {
  margin: 0;
  padding: 24px 26px 26px;
  border: 1px solid #c9dbef;
  border-radius: 18px;
  background: #eef5fc;
  box-shadow: none;
}

.scc-case-heading,
.scc-section-heading,
.scc-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.scc-case-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.scc-case-meta span {
  padding: 4px 8px;
  border: 1px solid #c6d8ec;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #52657c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: capitalize;
}

.scc-case-text,
.scc-case-block p.scc-case-text {
  margin: 14px 0 0;
  color: #26384e;
  font-size: 18px;
  font-weight: 560;
  line-height: 1.65;
}

.scc-attempts,
.scc-clues-section {
  margin-top: 28px;
}

.scc-section-heading h3,
.scc-history-header h3,
.scc-attempts-heading h3 {
  margin: 3px 0 0;
  color: var(--scc-ink);
  font-size: 18px;
  font-weight: 780;
  line-height: 1.25;
}

.scc-section-heading > p {
  max-width: 330px;
  margin: 2px 0 0;
  color: var(--scc-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: right;
}

.scc-attempts-heading {
  align-items: center;
}

.scc-attempt-label {
  color: #53647a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.scc-attempt-track {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 4px 12px;
}

.scc-attempt-dot {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d4deea;
  border-radius: 50%;
  background: #ffffff;
  color: #7b8999;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.scc-attempt-dot:not(:last-child) {
  margin-right: 50px;
}

.scc-attempt-dot:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(100% + 2px);
  top: 50%;
  width: 46px;
  height: 2px;
  transform: translateY(-50%);
  background: #dce5ef;
}

.scc-attempt-dot.is-current {
  border-color: var(--scc-brand);
  background: var(--scc-brand);
  color: #ffffff;
  box-shadow: 0 0 0 5px var(--scc-brand-ring);
  transform: scale(1.04);
}

.scc-attempt-dot.is-incorrect {
  border-color: #d89a9a;
  background: var(--scc-error-soft);
  color: var(--scc-error);
}

.scc-attempt-dot.is-correct {
  border-color: var(--scc-success);
  background: var(--scc-success);
  color: #ffffff;
  transform: scale(1.04);
}

.scc-attempt-dot.is-incorrect:not(:last-child)::after,
.scc-attempt-dot.is-correct:not(:last-child)::after {
  background: #cbd9e7;
}

.scc-clue-stack {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.scc-clue {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 17px;
  border-radius: 12px;
  box-shadow: none;
}

.scc-clue.is-locked {
  border: 1px dashed #cfd9e5;
  background: #f5f7fa;
}

.scc-clue.is-unlocked {
  border: 1px solid #c8d9eb;
  border-left: 3px solid var(--scc-brand);
  background: #ffffff;
  animation: scc-clue-in 260ms ease both;
}

.scc-clue-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.scc-clue-number {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ced9e6;
  border-radius: 50%;
  background: #ffffff;
  color: #607086;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.scc-clue.is-unlocked .scc-clue-number {
  border-color: var(--scc-brand-border);
  background: var(--scc-brand-soft);
  color: var(--scc-brand);
}

.scc-clue-label {
  color: #526278;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.scc-clue-state {
  margin-left: auto;
  color: #8a96a6;
  font-size: 11px;
  font-weight: 650;
}

.scc-clue.is-unlocked .scc-clue-state {
  color: var(--scc-brand);
}

.scc-clue-text,
.scc-clue p.scc-clue-text {
  margin: 10px 0 0 35px;
  color: #2f4055;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.58;
}

.scc-clue-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0 35px;
  color: #7d8998;
  font-size: 13px;
  font-weight: 650;
}

.scc-lock-mark {
  position: relative;
  width: 12px;
  height: 10px;
  display: inline-block;
  border: 1.5px solid #8995a4;
  border-radius: 2px;
}

.scc-lock-mark::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -7px;
  width: 6px;
  height: 7px;
  border: 1.5px solid #8995a4;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.scc-feedback {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 24px 0 0;
  padding: 12px 14px;
  border: 0;
  border-left: 3px solid var(--scc-error);
  border-radius: 0 8px 8px 0;
  background: var(--scc-error-soft);
  color: #7d3535;
}

.scc-feedback.is-correct {
  border: 0;
  border-left: 3px solid var(--scc-success);
  background: var(--scc-success-soft);
  color: #165d3e;
}

.scc-feedback strong {
  font-size: 14px;
  font-weight: 800;
}

.scc-feedback span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.scc-answer-form {
  display: block;
  margin-top: 24px;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--scc-line);
  border-radius: 0;
  background: transparent;
}

.scc-answer-form.is-error .scc-autocomplete {
  animation: scc-input-error 260ms ease both;
}

@keyframes scc-input-error {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-3px); }
  70% { transform: translateX(3px); }
}

.scc-answer-label {
  display: block;
  margin-bottom: 9px;
  color: var(--scc-ink);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.3;
}

.scc-answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.scc-autocomplete {
  position: relative;
  min-width: 0;
}

.scc-autocomplete input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid #bccbdd;
  border-radius: 12px;
  background: #ffffff;
  color: var(--scc-ink);
  font-size: 15px;
  font-weight: 550;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.scc-autocomplete input::placeholder {
  color: #8996a7;
}

.scc-autocomplete input:focus {
  border-color: var(--scc-brand);
  box-shadow: 0 0 0 4px var(--scc-brand-ring);
}

.scc-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 6;
  max-height: 260px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #c4d1df;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(13, 35, 61, 0.16);
}

.scc-suggestion,
.scc-suggestion-empty {
  width: 100%;
  min-height: 42px;
  display: block;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #ffffff;
  color: #34465b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.scc-suggestion:last-child {
  border-bottom: 0;
}

.scc-suggestion:hover,
.scc-suggestion.is-active,
.scc-suggestion:focus-visible {
  background: var(--scc-brand-soft);
  color: var(--scc-brand);
  outline: none;
}

.scc-dialog .scc-primary {
  min-width: 180px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--scc-brand);
  border-radius: 12px;
  background: var(--scc-brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.scc-dialog .scc-primary:hover,
.scc-dialog .scc-primary:focus-visible {
  border-color: var(--scc-brand-hover);
  background: var(--scc-brand-hover);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--scc-brand-ring);
  outline: none;
}

.scc-dialog .scc-primary:disabled {
  border-color: #d2dae4;
  background: #e4e9ef;
  color: #939eac;
  box-shadow: none;
  cursor: not-allowed;
}

.scc-resolution {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--scc-line);
  border-radius: 0;
  background: transparent;
}

.scc-resolution-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d7e3ed;
  border-radius: 12px;
  background: #ffffff;
}

.scc-resolution-heading.is-solved {
  border-color: #bcdcca;
  background: var(--scc-success-soft);
}

.scc-resolution-heading.is-failed {
  border-color: #ead2d2;
  background: var(--scc-error-soft);
}

.scc-resolution-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--scc-success);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  animation: scc-result-in 220ms ease both;
}

.scc-resolution-heading.is-failed .scc-resolution-mark {
  background: var(--scc-error);
}

@keyframes scc-result-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.scc-resolution h3 {
  margin: 3px 0 2px;
  color: var(--scc-ink);
  font-size: 23px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.2;
}

.scc-performance {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #53667b;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.scc-resolution-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.scc-resolution-meta span {
  padding: 5px 8px;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  background: #ffffff;
  color: #5d6c7f;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.scc-answer-block {
  padding-top: 16px;
  border-top: 1px solid var(--scc-line);
}

.scc-answer-block p:not(.scc-section-kicker),
.scc-answer-block li {
  color: #3d4c60;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.scc-answer-block p:not(.scc-section-kicker) {
  margin: 7px 0 0;
}

.scc-answer-block ul {
  margin: 8px 0 0;
  padding-left: 19px;
}

.scc-history {
  margin-top: 32px;
  padding: 26px 0 0;
  border: 0;
  border-top: 1px solid var(--scc-line);
  border-radius: 0;
  background: transparent;
}

.scc-history-header {
  align-items: center;
  margin-bottom: 12px;
}

.scc-history-header > span {
  color: #8490a0;
  font-size: 11px;
  font-weight: 650;
}

.scc-text-action {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--scc-brand);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.scc-text-action:hover,
.scc-text-action:focus-visible {
  color: var(--scc-brand-hover);
  text-decoration: underline;
  outline: none;
}

.scc-history-list {
  display: grid;
  gap: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
  border-top: 1px solid #e4eaf1;
}

.scc-history--all .scc-history-list {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.scc-history-item {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border: 0;
  border-bottom: 1px solid #e4eaf1;
  border-radius: 0;
  background: transparent;
  color: var(--scc-ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.scc-history-item:hover,
.scc-history-item:focus-visible {
  border-color: #e4eaf1;
  background: var(--scc-brand-soft);
  outline: none;
}

.scc-history-date {
  color: #65758a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.scc-history-main {
  overflow: hidden;
  color: #394a5f;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scc-history-status {
  color: #778497;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
}

.scc-history-status.is-solved {
  color: var(--scc-success);
}

.scc-history-status.is-available {
  color: var(--scc-brand);
}

.scc-clinical-summary {
  margin-inline: -2px;
  padding: 16px 14px 2px;
  border: 1px solid var(--scc-brand-border);
  border-radius: 8px;
  background: var(--scc-brand-soft);
}

.scc-clinical-summary p:not(.scc-section-kicker) {
  color: #263b56;
}

.scc-history-arrow {
  color: #8b98a8;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
}

.scc-history-empty,
.scc-muted,
.scc-meta-line {
  margin: 0;
  color: var(--scc-muted);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}

.scc-landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--scc-brand-border);
  border-radius: 16px;
  background: var(--scc-brand-soft);
}

.scc-landing h2 {
  margin: 5px 0 7px;
  color: var(--scc-ink);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.scc-landing p:not(.scc-section-kicker) {
  margin: 0;
  color: #526278;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .scc-backdrop {
    align-items: stretch;
    padding: 0;
  }

  .scc-dialog {
    width: 100%;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .scc-dialog-header {
    min-height: 62px;
    padding: 12px 14px 12px 16px;
  }

  .scc-dialog-body {
    padding: 22px 16px 30px;
    scrollbar-gutter: auto;
  }

  .scc-challenge-intro {
    margin-bottom: 22px;
  }

  .scc-challenge-intro h2 {
    font-size: 28px;
  }

  .scc-case-block {
    padding: 18px;
    border-radius: 16px;
  }

  .scc-case-heading,
  .scc-section-heading,
  .scc-attempts-heading {
    gap: 12px;
  }

  .scc-case-meta {
    max-width: 48%;
  }

  .scc-case-text,
  .scc-case-block p.scc-case-text {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.62;
  }

  .scc-section-heading {
    flex-direction: column;
  }

  .scc-section-heading > p {
    max-width: none;
    margin-top: -4px;
    text-align: left;
  }

  .scc-attempts-heading {
    flex-direction: row;
  }

  .scc-attempt-track {
    justify-content: space-between;
    padding: 4px 8px;
  }

  .scc-attempt-dot {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .scc-attempt-dot:not(:last-child) {
    margin-right: 0;
  }

  .scc-attempt-dot:not(:last-child)::after {
    left: calc(100% + 2px);
    width: calc((100vw - 40px - 5 * 28px) / 4);
    max-width: 52px;
  }

  .scc-clue {
    min-height: 88px;
    padding: 14px;
  }

  .scc-clue-text,
  .scc-clue p.scc-clue-text,
  .scc-clue-locked {
    margin-left: 0;
  }

  .scc-answer-row {
    grid-template-columns: 1fr;
  }

  .scc-dialog .scc-primary {
    width: 100%;
    min-width: 0;
  }

  .scc-resolution-heading {
    align-items: flex-start;
    padding: 16px;
  }

  .scc-resolution h3 {
    font-size: 21px;
  }

  .scc-history-item {
    grid-template-columns: 70px minmax(0, 1fr) 16px;
    gap: 8px;
  }

  .scc-history-status {
    grid-column: 2 / 3;
    white-space: normal;
  }

  .scc-history-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .scc-landing {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .scc-dialog-brand > div > span {
    max-width: 210px;
  }

  .scc-case-heading {
    flex-direction: column;
  }

  .scc-case-meta {
    max-width: none;
    justify-content: flex-start;
  }

  .scc-attempt-label {
    font-size: 11px;
  }

  .scc-attempt-dot {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .scc-attempt-dot:not(:last-child)::after {
    width: calc((100vw - 40px - 5 * 26px) / 4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scc-dialog,
  .scc-clue,
  .scc-resolution-mark,
  .scc-answer-form.is-error .scc-autocomplete {
    animation: none;
  }
}

/* Correct diagnosis interstitial */
.scc-brand-mark.is-success {
  border-color: #b9dcc8;
  background: var(--scc-success-soft);
  color: var(--scc-success);
}

.scc-success-body {
  padding: 0;
  overflow: hidden;
  background: #f8fafc;
}

.scc-success-stage {
  position: relative;
  min-height: 555px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 38px;
  isolation: isolate;
}

.scc-success-watermark {
  position: absolute;
  z-index: -1;
  right: -58px;
  bottom: -88px;
  width: 390px;
  height: 390px;
  object-fit: contain;
  opacity: 0.055;
  filter: saturate(0.78);
  pointer-events: none;
  user-select: none;
}

.scc-success-content {
  width: min(600px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: scc-success-enter 320ms ease both;
}

@keyframes scc-success-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scc-success-brand {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.scc-success-brand-symbol {
  width: 40px;
  height: 40px;
  display: block;
  border: 1px solid #c8d8e9;
  border-radius: 9px;
  object-fit: cover;
}

.scc-success-brand-wordmark {
  width: 142px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.scc-success-emblem {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid #a9d3bb;
  border-radius: 50%;
  background: var(--scc-success-soft);
  color: var(--scc-success);
  box-shadow: 0 0 0 8px rgba(24, 118, 74, 0.06);
  font-size: 34px;
  font-weight: 750;
  line-height: 1;
  animation: scc-result-in 260ms ease both;
}

.scc-success-content h2 {
  margin: 7px 0 10px;
  color: var(--scc-ink);
  font-size: 32px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.16;
}

.scc-success-diagnosis {
  margin: 0;
  color: var(--scc-brand);
  font-size: 19px;
  font-weight: 780;
  line-height: 1.35;
}

.scc-success-copy {
  max-width: 510px;
  margin: 12px 0 0;
  color: #5c6b7e;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.6;
}

.scc-dialog .scc-success-action {
  min-width: 220px;
  margin-top: 24px;
}

.scc-success-progress {
  width: 210px;
  height: 3px;
  overflow: hidden;
  margin-top: 22px;
  border-radius: 3px;
  background: #dfe7ef;
}

.scc-success-progress span {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--scc-brand);
  transform: scaleX(0);
  transform-origin: left center;
  animation: scc-success-progress 4.6s linear forwards;
}

@keyframes scc-success-progress {
  to {
    transform: scaleX(1);
  }
}

.scc-success-auto {
  margin: 8px 0 0;
  color: #8793a2;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .scc-success-stage {
    min-height: calc(100dvh - 62px);
    padding: 34px 20px;
  }

  .scc-success-watermark {
    right: -76px;
    bottom: -44px;
    width: 290px;
    height: 290px;
    opacity: 0.045;
  }

  .scc-success-brand {
    margin-bottom: 25px;
  }

  .scc-success-brand-symbol {
    width: 36px;
    height: 36px;
  }

  .scc-success-brand-wordmark {
    width: 126px;
    height: 32px;
  }

  .scc-success-emblem {
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    font-size: 30px;
  }

  .scc-success-content h2 {
    font-size: 28px;
  }

  .scc-success-diagnosis {
    font-size: 17px;
  }

  .scc-dialog .scc-success-action {
    width: min(300px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scc-success-content,
  .scc-success-emblem,
  .scc-success-progress span {
    animation: none;
  }

  .scc-success-progress span {
    transform: scaleX(1);
  }
}
