/*
 * OtoPrep Daily Dx public shell
 *
 * Public-page wrapper that reuses the OtoPrep app visual language without
 * depending on body.otoprep-app or leaking styles into the rest of the site.
 */

.otoprep-dailydx-shell,
.otoprep-dailydx-shell__frame,
.otoprep-dailydx-shell__topbar,
.otoprep-dailydx-shell__topbar-row,
.otoprep-dailydx-shell__brand,
.otoprep-dailydx-shell__brand-copy,
.otoprep-dailydx-shell__meta,
.otoprep-dailydx-shell__hero,
.otoprep-dailydx-shell__card,
.otoprep-dailydx-shell__quiz,
.otoprep-dailydx-shell__cta-row,
.otoprep-dailydx-shell__empty-state,
.otoprep-dailydx-shell__footer-note {
  box-sizing: border-box;
}

.otoprep-dailydx-shell {
  --otoprep-blue: #1075BC;
  --otoprep-orange: #E7694B;
  --otoprep-ink: #13202A;
  --otoprep-muted: #5b6b77;
  --otoprep-border: #e6eef5;
  --otoprep-surface: #F3F6F9;
  --otoprep-white: #ffffff;

  width: 100%;
  margin: 24px 0;
  color: var(--otoprep-ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
}

.otoprep-dailydx-shell a {
  color: inherit;
}

.otoprep-dailydx-shell__frame {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(16px, 2.6vw, 26px);
  border-radius: 28px;
  background: var(--otoprep-surface);
  border: 1px solid rgba(16, 117, 188, 0.10);
  box-shadow: 0 18px 48px rgba(16, 117, 188, 0.10);
}

.otoprep-dailydx-shell__topbar {
  padding: clamp(16px, 2.2vw, 24px);
  border-radius: 24px;
  border: 1px solid var(--otoprep-border);
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.06), rgba(255, 255, 255, 1));
  box-shadow: 0 10px 30px rgba(16, 117, 188, 0.10);
}

.otoprep-dailydx-shell__topbar-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.otoprep-dailydx-shell__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.otoprep-dailydx-shell__brand-logo,
.otoprep-dailydx-shell__brand-logo-slot,
.otoprep-dailydx-shell__brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(16, 117, 188, 0.14);
  background: var(--otoprep-white);
  box-shadow: 0 8px 18px rgba(16, 117, 188, 0.08);
}

.otoprep-dailydx-shell__brand-logo {
  display: block;
  object-fit: contain;
}

.otoprep-dailydx-shell__brand-logo-slot {
  display: block;
  background: rgba(255, 255, 255, 0.92);
}

.otoprep-dailydx-shell__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--otoprep-blue);
  font-size: 20px;
  font-weight: 950;
}

.otoprep-dailydx-shell__brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.otoprep-dailydx-shell__eyebrow {
  color: var(--otoprep-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.otoprep-dailydx-shell__brand-name {
  font-size: 19px;
  font-weight: 950;
  line-height: 1.15;
}

.otoprep-dailydx-shell__meta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.otoprep-dailydx-shell__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 117, 188, 0.18);
  background: rgba(16, 117, 188, 0.08);
  color: var(--otoprep-blue);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.otoprep-dailydx-shell__pill--case {
  min-width: 16ch;
  background: rgba(231, 105, 75, 0.10);
  border-color: rgba(231, 105, 75, 0.24);
  color: var(--otoprep-orange);
}

.otoprep-dailydx-shell__pill--countdown {
  justify-content: flex-start;
  min-width: 19ch;
  padding-left: 14px;
  padding-right: 14px;
}

.otoprep-dailydx-shell__countdown-label {
  color: var(--otoprep-muted);
  font-weight: 800;
}

.otoprep-dailydx-shell__countdown-value {
  color: var(--otoprep-blue);
  font-weight: 950;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.otoprep-dailydx-shell__pill--countdown.is-live {
  background: rgba(231, 105, 75, 0.12);
  border-color: rgba(231, 105, 75, 0.30);
}

.otoprep-dailydx-shell__pill--countdown.is-live .otoprep-dailydx-shell__countdown-value {
  color: var(--otoprep-orange);
}

.otoprep-dailydx-shell__hero {
  margin-top: 18px;
}

.otoprep-dailydx-shell__headline {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.otoprep-dailydx-shell__subheadline {
  margin-top: 12px;
  max-width: 760px;
  color: var(--otoprep-muted);
  font-size: 16px;
  line-height: 1.65;
}

.otoprep-dailydx-shell__subheadline p {
  margin: 0;
}

.otoprep-dailydx-shell__subheadline p + p {
  margin-top: 10px;
}

.otoprep-dailydx-shell__card {
  margin-top: 18px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 24px;
  border: 1px solid var(--otoprep-border);
  background: var(--otoprep-white);
  box-shadow: 0 10px 30px rgba(16, 117, 188, 0.10);
  overflow: hidden;
}

.otoprep-dailydx-shell__quiz {
  width: 100%;
}

.otoprep-dailydx-shell__empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(8px, 1vw, 16px) 0;
}

.otoprep-dailydx-shell__empty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 117, 188, 0.16);
  background: rgba(16, 117, 188, 0.08);
  color: var(--otoprep-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.otoprep-dailydx-shell__empty-title {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 30px);
  line-height: 1.18;
  font-weight: 900;
}

.otoprep-dailydx-shell__empty-copy {
  margin: 0;
  max-width: 680px;
  color: var(--otoprep-muted);
  font-size: 15px;
  line-height: 1.7;
}

.otoprep-dailydx-shell__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.otoprep-dailydx-shell__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px solid transparent;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
  cursor: pointer;
}

.otoprep-dailydx-shell__btn:hover,
.otoprep-dailydx-shell__btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(16, 117, 188, 0.12);
}

.otoprep-dailydx-shell__btn--primary {
  background: var(--otoprep-blue);
  color: var(--otoprep-white);
}

.otoprep-dailydx-shell__btn--accent {
  background: rgba(231, 105, 75, 0.12);
  border-color: rgba(231, 105, 75, 0.28);
  color: var(--otoprep-orange);
}

.otoprep-dailydx-shell__btn--ghost {
  background: var(--otoprep-white);
  border-color: rgba(16, 117, 188, 0.20);
  color: var(--otoprep-blue);
}

.otoprep-dailydx-shell__btn--disabled,
.otoprep-dailydx-shell__btn--disabled:hover,
.otoprep-dailydx-shell__btn--disabled:focus {
  background: rgba(19, 32, 42, 0.06);
  border-color: rgba(19, 32, 42, 0.08);
  color: rgba(19, 32, 42, 0.46);
  box-shadow: none;
  cursor: default;
  transform: none;
}

.otoprep-dailydx-shell__footer-note {
  margin-top: 14px;
  color: var(--otoprep-muted);
  font-size: 13px;
  line-height: 1.65;
}

.otoprep-dailydx-shell__footer-note p {
  margin: 0;
}

.otoprep-dailydx-shell__footer-note p + p {
  margin-top: 8px;
}

@media (max-width: 782px) {
  .otoprep-dailydx-shell__topbar-row {
    flex-direction: column;
  }

  .otoprep-dailydx-shell__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: stretch;
    width: 100%;
    justify-content: stretch;
  }

  .otoprep-dailydx-shell__pill {
    width: 100%;
  }

  .otoprep-dailydx-shell__pill--countdown {
    justify-content: center;
    min-width: 0;
  }

  .otoprep-dailydx-shell__btn {
    width: 100%;
  }
}

/*
 * Native Daily Dx case presentation
 * These rules sit underneath the shared public shell above.
 */

.otoprep-ddx-case,
.otoprep-ddx-case__header,
.otoprep-ddx-case__meta,
.otoprep-ddx-case__section,
.otoprep-ddx-case__clues,
.otoprep-ddx-case__differentials,
.otoprep-ddx-case__bullet-list,
.otoprep-ddx-answer-form,
.otoprep-ddx-answer-form__row,
.otoprep-ddx-answer-form__combobox,
.otoprep-ddx-answer-form__suggestions,
.otoprep-ddx-case__option-list,
.otoprep-ddx-case__option,
.otoprep-ddx-case__context-group {
  box-sizing: border-box;
}

.otoprep-ddx-case {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.otoprep-ddx-case__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.otoprep-ddx-case__header--challenge {
  gap: 10px;
}

.otoprep-ddx-case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.otoprep-ddx-case__mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 117, 188, 0.12);
  background: rgba(16, 117, 188, 0.06);
  color: var(--otoprep-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.otoprep-ddx-case__mini-pill--muted {
  color: var(--otoprep-muted);
  background: rgba(19, 32, 42, 0.04);
  border-color: rgba(19, 32, 42, 0.08);
}

.otoprep-ddx-case__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 900;
}

.otoprep-ddx-case__title--challenge {
  font-size: clamp(26px, 4vw, 34px);
}

.otoprep-ddx-case__intro,
.otoprep-ddx-case__stem,
.otoprep-ddx-case__rich-text,
.otoprep-ddx-case__question-stem,
.otoprep-ddx-case__answer,
.otoprep-ddx-case__differential p,
.otoprep-ddx-case__empty-copy,
.otoprep-ddx-answer-form__help,
.otoprep-ddx-case__clue-body,
.otoprep-ddx-answer-form__suggestion-empty {
  color: var(--otoprep-ink);
  line-height: 1.72;
  font-size: 15px;
}

.otoprep-ddx-case__intro {
  margin: 0;
  color: var(--otoprep-muted);
}

.otoprep-ddx-case__intro p,
.otoprep-ddx-case__stem p,
.otoprep-ddx-case__rich-text p,
.otoprep-ddx-case__differential p,
.otoprep-ddx-case__clue-body p {
  margin: 0 0 0.9em;
}

.otoprep-ddx-case__intro p:last-child,
.otoprep-ddx-case__stem p:last-child,
.otoprep-ddx-case__rich-text p:last-child,
.otoprep-ddx-case__differential p:last-child,
.otoprep-ddx-case__clue-body p:last-child {
  margin-bottom: 0;
}

.otoprep-ddx-case__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 22px;
  border: 1px solid var(--otoprep-border);
  background: var(--otoprep-card);
  box-shadow: 0 12px 28px rgba(16, 117, 188, 0.06);
}

.otoprep-ddx-case__section--play {
  gap: 18px;
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.03), rgba(255, 255, 255, 1));
}

.otoprep-ddx-case__section--pearl {
  border-color: rgba(231, 105, 75, 0.16);
  background: linear-gradient(180deg, rgba(231, 105, 75, 0.06), rgba(255, 255, 255, 1));
}

.otoprep-ddx-case__section-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}


.otoprep-ddx-case__eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  color: var(--otoprep-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.otoprep-ddx-case__mini-pill--warning {
  color: #8a3b2d;
  background: rgba(231, 105, 75, 0.10);
  border-color: rgba(231, 105, 75, 0.24);
}

.otoprep-ddx-case__mini-pill--success {
  color: #155724;
  background: rgba(34, 139, 34, 0.10);
  border-color: rgba(34, 139, 34, 0.24);
}

.otoprep-ddx-case__editor-note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--otoprep-border);
  background: rgba(16, 117, 188, 0.04);
  color: var(--otoprep-ink);
  font-size: 14px;
  line-height: 1.65;
}

.otoprep-ddx-case__editor-note--warning {
  border-color: rgba(231, 105, 75, 0.24);
  background: rgba(231, 105, 75, 0.08);
  color: #8a3b2d;
}

.otoprep-ddx-case__section--sources,
.otoprep-ddx-case__section--followup-module,
.otoprep-ddx-case__section--reflection {
  gap: 14px;
}

.otoprep-ddx-case__section--followup-module {
  border-color: rgba(16, 117, 188, 0.16);
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.05), rgba(255, 255, 255, 1));
}

.otoprep-ddx-case__module-copy {
  margin: 0;
  color: var(--otoprep-muted);
  font-size: 14px;
  line-height: 1.65;
}

.otoprep-ddx-case__module-tip {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(16, 117, 188, 0.12);
  background: rgba(16, 117, 188, 0.04);
  color: var(--otoprep-muted);
  font-size: 13px;
  line-height: 1.6;
}

.otoprep-ddx-case__bullet-list--sources {
  gap: 10px;
}

.otoprep-ddx-case__bullet-list--sources li {
  line-height: 1.65;
}

.otoprep-ddx-reflection-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.otoprep-ddx-reflection-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.otoprep-ddx-reflection-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.otoprep-ddx-reflection-form__field--stacked {
  width: 100%;
}

.otoprep-ddx-reflection-form__label {
  color: var(--otoprep-ink);
  font-size: 14px;
  font-weight: 850;
}

.otoprep-ddx-reflection-form__input.otoprep-input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
}

.otoprep-ddx-reflection-form__textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--otoprep-border);
  background: #fff;
  color: var(--otoprep-ink);
  box-shadow: inset 0 1px 1px rgba(19, 32, 42, 0.03);
  resize: vertical;
}

.otoprep-ddx-reflection-form__input.otoprep-input:focus,
.otoprep-ddx-reflection-form__textarea:focus {
  outline: 0;
  border-color: rgba(16, 117, 188, 0.46);
  box-shadow: 0 0 0 4px rgba(16, 117, 188, 0.12);
}

.otoprep-ddx-reflection-form__actions {
  margin-top: 2px;
}

.otoprep-ddx-reflection-form__feedback {
  margin-top: 2px;
  padding: 14px 16px;
  border-radius: 18px;
}

.otoprep-ddx-archive {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0;
}

.otoprep-ddx-archive__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.otoprep-ddx-archive__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  font-weight: 900;
}

.otoprep-ddx-archive__copy {
  margin: 0;
  color: var(--otoprep-muted);
  font-size: 15px;
  line-height: 1.7;
}

.otoprep-ddx-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.otoprep-ddx-archive__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--otoprep-border);
  background: var(--otoprep-card);
  box-shadow: 0 12px 28px rgba(16, 117, 188, 0.06);
}

.otoprep-ddx-archive__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.otoprep-ddx-archive__card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.otoprep-ddx-archive__stem {
  margin: 0;
  color: var(--otoprep-muted);
  font-size: 15px;
  line-height: 1.7;
}

.otoprep-ddx-archive__chips {
  margin-top: auto;
}

.otoprep-ddx-case__clue-progress {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 117, 188, 0.10);
  border: 1px solid rgba(16, 117, 188, 0.18);
  color: var(--otoprep-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.otoprep-ddx-case__clues {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.otoprep-ddx-case__clue-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 117, 188, 0.12);
  background: rgba(16, 117, 188, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.otoprep-ddx-case__clue-card.is-latest {
  border-color: rgba(16, 117, 188, 0.24);
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.08), rgba(255, 255, 255, 0.95));
}

.otoprep-ddx-case__clue-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.otoprep-ddx-case__clue-step,
.otoprep-ddx-case__clue-tag,
.otoprep-ddx-case__clue-total {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.otoprep-ddx-case__clue-step {
  background: rgba(16, 117, 188, 0.10);
  color: var(--otoprep-blue);
}

.otoprep-ddx-case__clue-tag {
  background: rgba(231, 105, 75, 0.10);
  color: var(--otoprep-orange);
}

.otoprep-ddx-case__clue-total {
  background: rgba(19, 32, 42, 0.05);
  color: var(--otoprep-muted);
}

.otoprep-ddx-answer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.otoprep-ddx-answer-form__label {
  font-weight: 800;
}

.otoprep-ddx-answer-form__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.otoprep-ddx-answer-form__combobox {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.otoprep-ddx-answer-form__input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 117, 188, 0.18);
  background: #fff;
  color: var(--otoprep-ink);
  font-size: 16px;
  box-shadow: inset 0 1px 1px rgba(19, 32, 42, 0.03);
}

.otoprep-ddx-answer-form__input:focus {
  outline: 0;
  border-color: rgba(16, 117, 188, 0.46);
  box-shadow: 0 0 0 4px rgba(16, 117, 188, 0.12);
}

.otoprep-ddx-answer-form__suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 0;
  border-radius: 18px;
  border: 1px solid rgba(16, 117, 188, 0.18);
  background: #fff;
  box-shadow: 0 18px 38px rgba(19, 32, 42, 0.16);
}

.otoprep-ddx-answer-form__suggestion,
.otoprep-ddx-answer-form__suggestion-empty {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--otoprep-ink);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}

.otoprep-ddx-answer-form__suggestion {
  cursor: pointer;
}

.otoprep-ddx-answer-form__suggestion:hover,
.otoprep-ddx-answer-form__suggestion:focus,
.otoprep-ddx-answer-form__suggestion.is-active {
  background: rgba(16, 117, 188, 0.08);
  outline: none;
}

.otoprep-ddx-answer-form__help {
  margin: 0;
  color: var(--otoprep-muted);
}

.otoprep-ddx-answer-form__feedback {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--otoprep-border);
  font-weight: 700;
  line-height: 1.6;
}

.otoprep-ddx-answer-form__feedback.is-correct {
  color: #155724;
  border-color: rgba(34, 139, 34, 0.24);
  background: rgba(34, 139, 34, 0.08);
}

.otoprep-ddx-answer-form__feedback.is-incorrect {
  color: #8a3b2d;
  border-color: rgba(231, 105, 75, 0.28);
  background: rgba(231, 105, 75, 0.08);
}

.otoprep-ddx-answer-form__feedback.is-neutral {
  color: var(--otoprep-ink);
  background: rgba(16, 117, 188, 0.05);
}

.otoprep-ddx-answer-form.is-loading {
  opacity: 0.88;
}

.otoprep-ddx-case__discussion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.otoprep-ddx-case__answer {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  font-weight: 950;
  color: var(--otoprep-blue);
}

.otoprep-ddx-case__differentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.otoprep-ddx-case__differential {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--otoprep-border);
  background: rgba(19, 32, 42, 0.02);
}

.otoprep-ddx-case__differential h5 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.otoprep-ddx-case__bullet-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.otoprep-ddx-case__question-stem,
.otoprep-ddx-case__question-answer {
  margin: 0;
}

.otoprep-ddx-case__option-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.otoprep-ddx-case__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--otoprep-border);
  background: rgba(19, 32, 42, 0.02);
}

.otoprep-ddx-case__option.is-correct {
  border-color: rgba(34, 139, 34, 0.24);
  background: rgba(34, 139, 34, 0.08);
}

.otoprep-ddx-case__option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(16, 117, 188, 0.10);
  color: var(--otoprep-blue);
  font-weight: 900;
  flex: 0 0 28px;
}

.otoprep-ddx-case__option-text {
  flex: 1 1 auto;
  line-height: 1.6;
}

.otoprep-ddx-case__section-copy {
  margin: 0;
  color: var(--otoprep-muted);
  font-size: 14px;
  line-height: 1.6;
}

.otoprep-ddx-case__section--context {
  gap: 14px;
}

.otoprep-ddx-case__context-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.otoprep-ddx-case__context-label {
  color: var(--otoprep-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.otoprep-ddx-case__context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.otoprep-ddx-case__context-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 117, 188, 0.12);
  background: rgba(16, 117, 188, 0.06);
  color: var(--otoprep-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.otoprep-ddx-case__context-chip--muted {
  background: rgba(19, 32, 42, 0.04);
  border-color: rgba(19, 32, 42, 0.08);
  color: var(--otoprep-muted);
  text-transform: none;
}

.otoprep-ddx-case__quiz-wrap {
  padding-top: 8px;
}

.otoprep-ddx-case__quiz-wrap .ays-quiz-container,
.otoprep-ddx-case__quiz-wrap [id^="ays-quiz-container-"] {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.otoprep-ddx-case__quiz-wrap .ays-questions-container,
.otoprep-ddx-case__quiz-wrap [id^="ays_finish_quiz_"] {
  background: transparent !important;
}

.otoprep-ddx-case__quiz-wrap .ays-quiz-questions-nav-wrap,
.otoprep-ddx-case__quiz-wrap .ays-quiz-question-state-box,
.otoprep-ddx-case__quiz-wrap .ays-quiz-questions-nav-bookmark-box,
.otoprep-ddx-case__quiz-wrap .ays-question-review-later-toggle,
.otoprep-ddx-case__quiz-wrap .ays_early_finish.action-button,
.otoprep-ddx-case__quiz-wrap input.ays_early_finish.action-button {
  display: none !important;
}

.otoprep-ddx-case__quiz-wrap .ays-fs-title {
  margin: 0 0 12px !important;
  color: var(--otoprep-ink) !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
}

.otoprep-ddx-case__quiz-wrap .ays-fs-subtitle,
.otoprep-ddx-case__quiz-wrap .ays-fs-subtitle p,
.otoprep-ddx-case__quiz-wrap .ays_quiz_question,
.otoprep-ddx-case__quiz-wrap .ays_quiz_question p,
.otoprep-ddx-case__quiz-wrap .ays_message,
.otoprep-ddx-case__quiz-wrap .ays_score_message,
.otoprep-ddx-case__quiz-wrap .right_answer_text,
.otoprep-ddx-case__quiz-wrap .wrong_answer_text,
.otoprep-ddx-case__quiz-wrap .ays_questtion_explanation {
  color: var(--otoprep-ink) !important;
  line-height: 1.72 !important;
}

.otoprep-ddx-case__quiz-wrap .ays_quiz_question,
.otoprep-ddx-case__quiz-wrap .ays_message,
.otoprep-ddx-case__quiz-wrap .ays_score_message,
.otoprep-ddx-case__quiz-wrap .right_answer_text,
.otoprep-ddx-case__quiz-wrap .wrong_answer_text,
.otoprep-ddx-case__quiz-wrap .ays_questtion_explanation {
  padding: 16px !important;
  border-radius: 18px !important;
  border: 1px solid var(--otoprep-border) !important;
  background: var(--otoprep-card) !important;
  box-shadow: 0 12px 28px rgba(16, 117, 188, 0.06) !important;
}

.otoprep-ddx-case__quiz-wrap .ays-text-input,
.otoprep-ddx-case__quiz-wrap textarea,
.otoprep-ddx-case__quiz-wrap input[type="text"],
.otoprep-ddx-case__quiz-wrap input[type="email"],
.otoprep-ddx-case__quiz-wrap input[type="number"] {
  width: 100% !important;
  min-height: 52px !important;
  padding: 12px 16px !important;
  border-radius: 16px !important;
  border: 1px solid var(--otoprep-border) !important;
  background: #fff !important;
  color: var(--otoprep-ink) !important;
  box-shadow: inset 0 1px 1px rgba(19, 32, 42, 0.03) !important;
}

.otoprep-ddx-case__quiz-wrap .ays-text-input:focus,
.otoprep-ddx-case__quiz-wrap textarea:focus,
.otoprep-ddx-case__quiz-wrap input[type="text"]:focus,
.otoprep-ddx-case__quiz-wrap input[type="email"]:focus,
.otoprep-ddx-case__quiz-wrap input[type="number"]:focus {
  outline: 0 !important;
  border-color: rgba(16, 117, 188, 0.46) !important;
  box-shadow: 0 0 0 4px rgba(16, 117, 188, 0.12) !important;
}

.otoprep-ddx-case__quiz-wrap .ays_buttons_div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.otoprep-ddx-case__quiz-wrap input#ays-submit,
.otoprep-ddx-case__quiz-wrap [id^="ays_finish_quiz_"] .action-button,
.otoprep-ddx-case__quiz-wrap .ays-quiz-category-selective-submit-bttn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 12px 18px !important;
  border-radius: 14px !important;
  border: 2px solid transparent !important;
  background: var(--otoprep-blue) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.otoprep-ddx-case__quiz-wrap input#ays-submit:hover,
.otoprep-ddx-case__quiz-wrap input#ays-submit:focus,
.otoprep-ddx-case__quiz-wrap [id^="ays_finish_quiz_"] .action-button:hover,
.otoprep-ddx-case__quiz-wrap [id^="ays_finish_quiz_"] .action-button:focus,
.otoprep-ddx-case__quiz-wrap .ays-quiz-category-selective-submit-bttn:hover,
.otoprep-ddx-case__quiz-wrap .ays-quiz-category-selective-submit-bttn:focus {
  box-shadow: 0 10px 18px rgba(16, 117, 188, 0.12) !important;
  transform: translateY(-1px);
}

.otoprep-ddx-case__quiz-wrap .ays-field {
  border-radius: 18px !important;
}

.otoprep-ddx-case__quiz-wrap .ays-field.ays-text-field,
.otoprep-ddx-case__quiz-wrap .ays-field.ays-short-text-field {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.otoprep-ddx-case__quiz-wrap .ays_question_hint_container {
  margin-top: 12px !important;
}

@media (max-width: 640px) {
  .otoprep-ddx-case__follow-on-next-step {
    padding: 16px;
  }
}

@media (max-width: 900px) {
  .otoprep-ddx-answer-form__row {
    flex-direction: column;
  }

  .otoprep-ddx-answer-form__row .otoprep-dailydx-shell__btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .otoprep-ddx-case__clue-card-meta {
    align-items: flex-start;
  }

  .otoprep-ddx-case__differentials {
    grid-template-columns: 1fr;
  }
}

.otoprep-dailydx-shell__btn:focus-visible,
.otoprep-ddx-answer-form__input:focus-visible,
.otoprep-ddx-answer-form__suggestion:focus-visible {
  outline: 3px solid rgba(16, 117, 188, 0.24);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .otoprep-dailydx-shell__btn,
  .otoprep-dailydx-shell__btn:hover,
  .otoprep-dailydx-shell__btn:focus {
    transition: none;
    transform: none;
  }
}


/*
 * 1.0.6 app-fidelity pass
 * - make the managed public page feel like the OtoPrep app shell
 * - widen to the viewport instead of the theme content column
 * - keep autocomplete usable on mobile
 */
body.otoprep-dailydx-page {
  background: #F3F6F9;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 24px;
  margin-left: -50vw;
  padding: 0;
  background: var(--otoprep-surface);
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__frame {
  max-width: 960px;
  padding: 14px 14px calc(90px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(10px + env(safe-area-inset-top)) 12px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.06), rgba(255, 255, 255, 1));
  border: 1px solid #e6eef5;
  box-shadow: 0 10px 30px rgba(16, 117, 188, 0.10);
  backdrop-filter: blur(10px);
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__brand-logo,
body.otoprep-dailydx-page .otoprep-dailydx-shell__brand-logo-slot,
body.otoprep-dailydx-page .otoprep-dailydx-shell__brand-mark {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
  display: block;
  max-width: none;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__brand-name {
  font-size: 18px;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__headline {
  font-size: clamp(24px, 4vw, 32px);
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__subheadline {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.6;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__card {
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e6eef5;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 117, 188, 0.10);
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__cta-row {
  gap: 10px;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__btn {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: none;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__btn:hover,
body.otoprep-dailydx-page .otoprep-dailydx-shell__btn:focus {
  transform: none;
  box-shadow: 0 10px 22px rgba(16, 117, 188, 0.06);
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__btn--primary {
  background: var(--otoprep-blue);
  color: #fff;
  border: 1px solid rgba(16, 117, 188, 0.35);
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__btn--ghost {
  background: #fff;
  color: var(--otoprep-blue);
  border: 1px solid rgba(16, 117, 188, 0.24);
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__btn--accent {
  background: rgba(231, 105, 75, 0.12);
  color: var(--otoprep-orange);
  border: 1px solid rgba(231, 105, 75, 0.28);
}

body.otoprep-dailydx-page .otoprep-ddx-case {
  gap: 18px;
}

body.otoprep-dailydx-page .otoprep-ddx-case__header {
  gap: 10px;
}

body.otoprep-dailydx-page .otoprep-ddx-case__title--challenge {
  font-size: clamp(24px, 4vw, 30px);
}

body.otoprep-dailydx-page .otoprep-ddx-case__intro--challenge {
  font-size: 15px;
  line-height: 1.6;
}

body.otoprep-dailydx-page .otoprep-ddx-case__clue-progress {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 117, 188, 0.18);
  background: rgba(16, 117, 188, 0.08);
  color: var(--otoprep-blue);
  font-size: 13px;
  font-weight: 850;
}

body.otoprep-dailydx-page .otoprep-ddx-case__clue-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e6eef5;
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.05), rgba(255, 255, 255, 1));
  box-shadow: 0 10px 22px rgba(16, 117, 188, 0.04);
}

body.otoprep-dailydx-page .otoprep-ddx-case__clue-card.is-latest {
  border-color: rgba(16, 117, 188, 0.22);
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.08), rgba(255, 255, 255, 1));
}

body.otoprep-dailydx-page .otoprep-ddx-answer-form {
  gap: 10px;
}

body.otoprep-dailydx-page .otoprep-ddx-answer-form__label {
  font-size: 15px;
  font-weight: 900;
}

body.otoprep-dailydx-page .otoprep-ddx-answer-form__input {
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid rgba(16, 117, 188, 0.16);
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(19, 32, 42, 0.03);
}

body.otoprep-dailydx-page .otoprep-ddx-answer-form__input:focus {
  border-color: rgba(16, 117, 188, 0.42);
  box-shadow: 0 0 0 4px rgba(16, 117, 188, 0.10);
}

body.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestions {
  z-index: 60;
  padding: 6px 0;
  border-radius: 18px;
  border: 1px solid #e6eef5;
  background: #fff;
  box-shadow: 0 18px 38px rgba(19, 32, 42, 0.12);
  overflow: hidden;
}

body.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestion {
  font-weight: 800;
}

body.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestion.is-freeform {
  color: var(--otoprep-blue);
}

body.otoprep-dailydx-page .otoprep-ddx-answer-form__help {
  font-size: 14px;
  line-height: 1.55;
}

body.otoprep-dailydx-page .otoprep-ddx-answer-form__feedback {
  border-radius: 16px;
}

@media (max-width: 900px) {
  body.otoprep-dailydx-page .otoprep-dailydx-shell__frame {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.otoprep-dailydx-page .otoprep-ddx-answer-form__row {
    gap: 10px;
  }

  body.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestions {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 8px;
    max-height: 260px;
  }
}

@media (max-width: 640px) {
  body.otoprep-dailydx-page .otoprep-dailydx-shell__topbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.otoprep-dailydx-page .otoprep-dailydx-shell__topbar-row {
    gap: 12px;
  }

  body.otoprep-dailydx-page .otoprep-dailydx-shell__meta {
    width: 100%;
  }

  body.otoprep-dailydx-page .otoprep-dailydx-shell__headline {
    font-size: 24px;
  }
}

/*
 * 1.0.7 app-shell parity + suggestion-library pass
 * - load against the real OtoPrep /app wrapper classes when Quiz Maker is active
 * - keep native Daily Dx controls visually aligned with the /app quiz card
 * - make suggestion rows feel like tappable app surfaces on mobile and desktop
 */
body.otoprep-app.otoprep-dailydx-page {
  background: #F3F6F9;
  color: var(--otoprep-ink);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell.otoprep-shell {
  padding-top: 0;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__frame {
  max-width: 960px;
  padding: 14px 14px calc(90px + env(safe-area-inset-bottom));
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__topbar.otoprep-topbar {
  border-radius: 18px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__card.otoprep-card.otoprep-quiz-card {
  padding: 22px 20px 24px;
  border-radius: 26px;
  border: 1px solid rgba(16, 117, 188, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__cta-row.otoprep-actions {
  margin-top: 14px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__btn.otoprep-btn {
  min-height: 54px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.2;
  padding: 12px 18px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__btn.otoprep-btn.otoprep-btn--outline {
  background: #fff;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__header--challenge {
  gap: 12px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__title--challenge {
  margin: 0;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.12;
  font-weight: 950;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__intro--challenge {
  margin: 0;
  color: var(--otoprep-muted);
  font-size: 15px;
  line-height: 1.6;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__clue-progress {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 117, 188, 0.08);
  border: 1px solid rgba(16, 117, 188, 0.18);
  color: var(--otoprep-blue);
  font-weight: 850;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__clue-card {
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(16, 117, 188, 0.12);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__clue-card.is-latest {
  background: rgba(239, 246, 252, 0.92);
  border-color: rgba(16, 117, 188, 0.22);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__clue-card-meta {
  gap: 10px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__clue-step.otoprep-pill,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__clue-tag.otoprep-pill,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__clue-total.otoprep-pill,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__mini-pill.otoprep-pill {
  min-height: 30px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 850;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form {
  gap: 12px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__label.otoprep-label {
  margin-bottom: 0;
  color: var(--otoprep-ink);
  font-size: 15px;
  font-weight: 900;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px 168px;
  align-items: start;
  gap: 12px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__combobox {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__input.otoprep-input {
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid rgba(16, 117, 188, 0.16);
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(19, 32, 42, 0.03);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__input.otoprep-input:focus {
  border-color: rgba(16, 117, 188, 0.42);
  box-shadow: 0 0 0 4px rgba(16, 117, 188, 0.10);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestions {
  z-index: 70;
  margin-top: 8px;
  padding: 6px 0;
  border-radius: 18px;
  border: 1px solid #e6eef5;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(19, 32, 42, 0.12);
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestion,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestion-empty {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--otoprep-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  box-shadow: none;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestion {
  cursor: pointer;
  font-weight: 800;
  touch-action: manipulation;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestion:hover,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestion:focus,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestion.is-active {
  background: rgba(16, 117, 188, 0.10);
  color: var(--otoprep-blue);
  outline: none;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestion.is-freeform {
  color: var(--otoprep-blue);
  background: rgba(16, 117, 188, 0.04);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__help {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--otoprep-muted);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__feedback {
  margin: 0;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__feedback.right_answer_text,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__feedback.wrong_answer_text,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__feedback.ays_questtion_explanation,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__discussion.ays_questtion_explanation {
  margin-top: 0;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(16, 117, 188, 0.12);
  background-color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__feedback.right_answer_text {
  background-color: rgba(239, 246, 252, 0.90);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__feedback.wrong_answer_text {
  background-color: rgba(255, 246, 246, 0.92);
  border-color: rgba(185, 77, 98, 0.16);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__feedback.ays_questtion_explanation,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__discussion.ays_questtion_explanation {
  background-color: rgba(255, 255, 255, 0.98);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__discussion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__section-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__differential,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__option {
  border-radius: 18px;
  border: 1px solid #e6eef5;
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 900px) {
  body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__row {
    grid-template-columns: 1fr;
  }

  body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__suggestions {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    max-height: 260px;
  }
}

@media (max-width: 640px) {
  body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__card.otoprep-card.otoprep-quiz-card {
    padding: 18px 16px 20px;
    border-radius: 22px;
  }

  body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__btn.otoprep-btn {
    width: 100%;
  }

  body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__input.otoprep-input {
    font-size: 16px;
  }
}

/*
 * 1.0.8 wider play surface + interactive follow-up questions
 * - remove the extra nested play-panel constriction so clue cards and inputs sit wider
 * - align widths more closely to the real /app shell
 * - turn next-best-step / related questions into answerable SBA blocks
 */
body.otoprep-dailydx-page .otoprep-dailydx-shell__frame,
body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__frame {
  max-width: 1100px;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__card,
body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__card.otoprep-card.otoprep-quiz-card {
  padding-left: 14px;
  padding-right: 14px;
}

body.otoprep-dailydx-page .otoprep-ddx-case__section--play,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__section--play {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: 16px;
}

body.otoprep-dailydx-page .otoprep-ddx-case__clue-card,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__clue-card {
  padding: 22px 20px;
  border-radius: 24px;
}

body.otoprep-dailydx-page .otoprep-ddx-case__discussion,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__discussion {
  width: 100%;
  gap: 18px;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-card,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-card {
  gap: 14px;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-head,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-fieldset,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-fieldset > legend,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-fieldset > legend {
  margin: 0 0 12px;
  padding: 0;
  width: 100%;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-options,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-options {
  display: grid;
  gap: 10px;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-option,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--otoprep-border);
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-option:hover,
body.otoprep-dailydx-page .otoprep-ddx-case__question-option:focus-within,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-option:hover,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-option:focus-within {
  border-color: rgba(16, 117, 188, 0.24);
  background: rgba(16, 117, 188, 0.04);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-option.is-selected,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-option.is-selected {
  border-color: rgba(16, 117, 188, 0.30);
  background: rgba(16, 117, 188, 0.08);
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-option.is-correct,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-option.is-correct {
  border-color: rgba(22, 163, 74, 0.20);
  background: rgba(22, 163, 74, 0.06);
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-option.is-incorrect,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-option.is-incorrect {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.05);
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-radio,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-option-key,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-option-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  background: rgba(16, 117, 188, 0.10);
  color: var(--otoprep-blue);
  font-weight: 900;
  font-size: 13px;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-option-text,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-option-text {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--otoprep-ink);
  line-height: 1.55;
  font-size: 15px;
  font-weight: 700;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-actions,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-actions {
  margin-top: 2px;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-feedback,
body.otoprep-dailydx-page .otoprep-ddx-case__question-explanation,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-feedback,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-explanation {
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(16, 117, 188, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-feedback.right_answer_text,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-feedback.right_answer_text {
  border-color: rgba(22, 163, 74, 0.18);
  background: rgba(22, 163, 74, 0.05);
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-feedback.wrong_answer_text,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-feedback.wrong_answer_text {
  border-color: rgba(220, 38, 38, 0.16);
  background: rgba(220, 38, 38, 0.04);
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-answer,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-answer {
  margin: 0 0 10px;
  color: var(--otoprep-ink);
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-card.is-answered .otoprep-ddx-case__question-option,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-card.is-answered .otoprep-ddx-case__question-option {
  cursor: default;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-card.is-answered .otoprep-ddx-case__question-option:hover,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-card.is-answered .otoprep-ddx-case__question-option:hover {
  box-shadow: none;
}

@media (max-width: 900px) {
  body.otoprep-dailydx-page .otoprep-dailydx-shell__frame,
  body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__frame {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 640px) {
  body.otoprep-dailydx-page .otoprep-dailydx-shell__card,
  body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__card.otoprep-card.otoprep-quiz-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.otoprep-dailydx-page .otoprep-ddx-case__clue-card,
  body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__clue-card {
    padding: 18px 16px;
  }

  body.otoprep-dailydx-page .otoprep-ddx-case__question-option,
  body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-option {
    padding: 13px 14px;
  }
}
body.otoprep-dailydx-page .otoprep-ddx-case__question-option.is-correct .otoprep-ddx-case__question-option-key,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-option.is-correct .otoprep-ddx-case__question-option-key {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

body.otoprep-dailydx-page .otoprep-ddx-case__question-option.is-incorrect .otoprep-ddx-case__question-option-key,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__question-option.is-incorrect .otoprep-ddx-case__question-option-key {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

/*
 * 1.0.9 standalone page takeover + lead gate + sticky collapse pass
 */
html,
body.otoprep-dailydx-standalone,
html body.otoprep-dailydx-standalone {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #F3F6F9;
}

body.otoprep-dailydx-standalone .otoprep-dailydx-standalone-main {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.otoprep-dailydx-standalone .otoprep-dailydx-shell {
  position: relative;
  left: auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-left: 0;
  padding: 0;
  background: var(--otoprep-surface);
}

body.otoprep-dailydx-standalone .otoprep-dailydx-shell__frame {
  width: 100%;
  max-width: min(100%, 1260px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) 12px calc(120px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__frame {
  max-width: min(100vw - 8px, 1260px);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__topbar.otoprep-topbar {
  position: sticky;
  top: max(0px, env(safe-area-inset-top));
  z-index: 40;
  transition: padding .22s ease, box-shadow .22s ease, transform .22s ease, border-radius .22s ease;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__hero {
  max-height: 320px;
  overflow: hidden;
  transition: max-height .22s ease, opacity .22s ease, margin-top .22s ease;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell.is-condensed .otoprep-dailydx-shell__hero {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell.is-condensed .otoprep-dailydx-shell__topbar.otoprep-topbar {
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__card.otoprep-card.otoprep-quiz-card {
  padding: 22px 22px 26px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__section--play {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__clues,
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__discussion {
  width: 100%;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form {
  gap: 14px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__combobox {
  z-index: 5;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__feedback {
  margin: 0;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__lead-slot {
  margin-top: 18px;
}

.otoprep-ddx-lead-gate__account-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(16, 117, 188, 0.12);
  background: rgba(16, 117, 188, 0.04);
}

.otoprep-ddx-lead-gate__account-note strong {
  display: block;
  color: var(--otoprep-ink, #111827);
}

.otoprep-ddx-lead-gate__account-note p {
  margin: 6px 0 0;
  color: var(--otoprep-muted, #5b6b77);
  line-height: 1.6;
}

.otoprep-ddx-lead-gate__next-step-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(16, 117, 188, 0.16);
  background: rgba(16, 117, 188, 0.06);
}

.otoprep-ddx-lead-gate__next-step-note strong {
  display: block;
  color: var(--otoprep-ink, #111827);
}

.otoprep-ddx-lead-gate__next-step-note p {
  margin: 6px 0 0;
  color: var(--otoprep-muted, #5b6b77);
  line-height: 1.6;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-gate__card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(16, 117, 188, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-gate__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-gate__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-gate__copy {
  margin: 0;
  color: var(--otoprep-muted);
  font-size: 14px;
  line-height: 1.6;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-form__label {
  color: var(--otoprep-ink);
  font-size: 14px;
  font-weight: 850;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-form__input.otoprep-input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-form__actions {
  margin-top: 14px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--otoprep-muted);
  font-size: 14px;
  line-height: 1.5;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-form__checkbox input {
  margin-top: 2px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__section--unlock-hint {
  margin-bottom: 18px;
  border: 1px solid rgba(16, 117, 188, 0.14);
  background: rgba(16, 117, 188, 0.04);
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__unlock-copy {
  margin: 0;
  color: var(--otoprep-muted);
  font-size: 15px;
  line-height: 1.65;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-form__feedback {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__feedback[hidden],
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__lead-slot[hidden],
body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-case__discussion[hidden],
body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__btn[hidden] {
  display: none !important;
}

body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__footer-note {
  padding: 0 4px 12px;
}

@media (max-width: 900px) {
  .otoprep-ddx-reflection-form__grid {
    grid-template-columns: 1fr;
  }

  body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-answer-form__actions,
  body.otoprep-app.otoprep-dailydx-page .otoprep-ddx-lead-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.otoprep-dailydx-standalone .otoprep-dailydx-shell__frame {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__topbar.otoprep-topbar {
    border-radius: 16px;
  }

  body.otoprep-app.otoprep-dailydx-page .otoprep-dailydx-shell__card.otoprep-card.otoprep-quiz-card {
    padding: 18px 14px 22px;
  }
}

.otoprep-ddx-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.otoprep-ddx-summary__card {
  padding: 18px 18px 16px;
}

.otoprep-ddx-summary__value {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.otoprep-ddx-summary__label {
  display: block;
  color: var(--otoprep-muted, #5b6474);
  font-size: 0.95rem;
}

.otoprep-ddx-archive,
.otoprep-ddx-portfolio {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 0 24px;
}

.otoprep-ddx-archive__head,
.otoprep-ddx-portfolio__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.otoprep-ddx-archive__title,
.otoprep-ddx-portfolio__title {
  margin: 0 0 6px;
}

.otoprep-ddx-archive__copy,
.otoprep-ddx-portfolio__copy {
  margin: 0;
  color: var(--otoprep-muted, #5b6474);
}

.otoprep-ddx-archive__filters,
.otoprep-ddx-portfolio__filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(160px, 1fr)) auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.otoprep-ddx-archive__filter-field,
.otoprep-ddx-portfolio__filter-field {
  display: flex;
}

.otoprep-ddx-portfolio__filters {
  grid-template-columns: repeat(4, minmax(140px, 1fr)) minmax(220px, 2fr) auto;
}

.otoprep-ddx-profile-card {
  padding: 18px;
  margin-bottom: 16px;
}

.otoprep-ddx-profile-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.otoprep-ddx-profile-card__title {
  margin: 0 0 6px;
}

.otoprep-ddx-profile-card__copy {
  margin: 0;
  color: var(--otoprep-muted, #5b6474);
}

.otoprep-ddx-profile-form {
  display: grid;
  gap: 14px;
}

.otoprep-ddx-log-card__actions {
  flex-wrap: wrap;
}

.otoprep-ddx-portfolio__filter-field--search {
  grid-column: span 2;
}

.otoprep-ddx-archive__difficulty-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.otoprep-ddx-archive__difficulty-label {
  color: var(--otoprep-muted, #5b6474);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 4px;
}

.otoprep-ddx-archive__difficulty-chip {
  appearance: none;
  border: 1px solid rgba(16, 117, 188, 0.14);
  border-radius: 999px;
  background: rgba(16, 117, 188, 0.04);
  color: var(--otoprep-blue, #1075BC);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 36px;
  padding: 8px 14px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.otoprep-ddx-archive__difficulty-chip:hover,
.otoprep-ddx-archive__difficulty-chip:focus {
  border-color: rgba(16, 117, 188, 0.28);
  background: rgba(16, 117, 188, 0.08);
  outline: none;
}

.otoprep-ddx-archive__difficulty-chip.is-active {
  border-color: rgba(16, 117, 188, 0.34);
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.16), rgba(16, 117, 188, 0.08));
  box-shadow: 0 8px 18px rgba(16, 117, 188, 0.08);
}

.otoprep-ddx-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.otoprep-ddx-archive__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.otoprep-ddx-archive__meta,
.otoprep-ddx-log-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.otoprep-ddx-archive__card-title,
.otoprep-ddx-log-card__title {
  margin: 0;
}

.otoprep-ddx-archive__stem {
  margin: 0;
  color: var(--otoprep-muted, #5b6474);
}

.otoprep-ddx-archive__empty {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(10, 18, 43, 0.04);
  color: var(--otoprep-muted, #5b6474);
}

.otoprep-ddx-portfolio__status {
  margin-bottom: 14px;
}

.otoprep-ddx-portfolio__empty {
  padding: 18px;
  margin-bottom: 14px;
}

.otoprep-ddx-portfolio__list {
  display: grid;
  gap: 14px;
}

.otoprep-ddx-log-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.otoprep-ddx-log-card__notes {
  display: grid;
  gap: 10px;
}

.otoprep-ddx-log-card__note {
  color: var(--otoprep-ink, #111827);
  line-height: 1.55;
}

.otoprep-ddx-log-card__note strong {
  font-weight: 700;
}

.otoprep-ddx-log-card__actions {
  margin-top: 4px;
}

.otoprep-ddx-case__module-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.otoprep-ddx-case__module-meta-item {
  color: var(--otoprep-ink, #111827);
  line-height: 1.55;
}

.otoprep-ddx-case__follow-on-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.otoprep-ddx-case__follow-on-next-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 117, 188, 0.14);
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.06), rgba(255, 255, 255, 1));
  box-shadow: 0 12px 24px rgba(16, 117, 188, 0.06);
}

.otoprep-ddx-case__follow-on-next-step-title {
  margin: 0;
  color: var(--otoprep-ink, #111827);
  font-size: 22px;
  line-height: 1.3;
}

.otoprep-ddx-case__follow-on-next-step-copy {
  margin: 0;
  color: var(--otoprep-muted, #5b6474);
  line-height: 1.65;
}

.otoprep-ddx-case__follow-on-next-step-actions {
  align-items: center;
}

.otoprep-ddx-case__follow-on-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.otoprep-ddx-case__follow-on-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 117, 188, 0.12);
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.05), rgba(255, 255, 255, 1));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(16, 117, 188, 0.05);
}

.otoprep-ddx-case__follow-on-card:hover,
.otoprep-ddx-case__follow-on-card:focus {
  border-color: rgba(16, 117, 188, 0.24);
  box-shadow: 0 14px 28px rgba(16, 117, 188, 0.08);
  text-decoration: none;
}

.otoprep-ddx-case__follow-on-kicker {
  color: var(--otoprep-muted, #5b6474);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.otoprep-ddx-case__follow-on-title {
  color: var(--otoprep-blue, #1075BC);
  font-size: 18px;
  line-height: 1.25;
}

.otoprep-ddx-case__follow-on-copy {
  color: var(--otoprep-ink, #111827);
  line-height: 1.5;
}

.otoprep-dailydx-shell__cta-row--utility {
  margin-bottom: -4px;
}

@media (max-width: 900px) {
  .otoprep-ddx-archive__head,
  .otoprep-ddx-portfolio__head,
  .otoprep-ddx-profile-card__head {
    flex-direction: column;
  }

  .otoprep-ddx-archive__filters,
  .otoprep-ddx-portfolio__filters {
    grid-template-columns: 1fr 1fr;
  }

  .otoprep-ddx-portfolio__filter-field--search {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .otoprep-ddx-archive__filters,
  .otoprep-ddx-portfolio__filters {
    grid-template-columns: 1fr;
  }

  .otoprep-ddx-portfolio__filter-field--search {
    grid-column: auto;
  }
}

@media print {
  .otoprep-ddx-portfolio__actions,
  .otoprep-ddx-archive__head-actions,
  .otoprep-ddx-archive__filters,
  .otoprep-ddx-portfolio__filters,
  .otoprep-ddx-profile-card,
  .otoprep-dailydx-shell__cta-row,
  .otoprep-dailydx-shell__topbar {
    display: none !important;
  }

  .otoprep-ddx-portfolio,
  .otoprep-ddx-log-card,
  .otoprep-ddx-summary__card {
    box-shadow: none !important;
    border: 1px solid #d1d5db;
  }
}

.otoprep-ddx-case__mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--otoprep-border);
  background: rgba(16, 117, 188, 0.06);
}

.otoprep-ddx-case__mode-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--otoprep-muted, #5b6474);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.otoprep-ddx-case__mode-button.is-active {
  background: #fff;
  color: var(--otoprep-blue, #1075BC);
  box-shadow: 0 8px 18px rgba(16, 117, 188, 0.12);
}

.otoprep-ddx-case__mode-copy {
  margin: -4px 0 2px;
  color: var(--otoprep-muted, #5b6474);
  font-size: 14px;
  line-height: 1.65;
}

.otoprep-ddx-result-strip {
  padding-top: 2px;
}

.otoprep-ddx-result-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.otoprep-ddx-result-strip__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--otoprep-border);
  background: rgba(16, 117, 188, 0.05);
}

.otoprep-ddx-result-strip__label {
  color: var(--otoprep-muted, #5b6474);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.otoprep-ddx-result-strip__value {
  color: var(--otoprep-ink, #111827);
  font-size: 16px;
  line-height: 1.35;
}

.otoprep-ddx-reflection-form__benchmark {
  margin-top: 4px;
}

.otoprep-ddx-benchmark-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 117, 188, 0.18);
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.07), rgba(255, 255, 255, 1));
}

.otoprep-ddx-benchmark-card__eyebrow {
  color: var(--otoprep-blue, #1075BC);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.otoprep-ddx-benchmark-card__title {
  margin: 0;
  color: var(--otoprep-ink, #111827);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.otoprep-ddx-benchmark-card__meta,
.otoprep-ddx-benchmark-card__copy {
  margin: 0;
  color: var(--otoprep-muted, #5b6474);
  font-size: 14px;
  line-height: 1.65;
}

.otoprep-ddx-benchmark-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.otoprep-ddx-benchmark-card__fact {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 117, 188, 0.15);
  background: rgba(16, 117, 188, 0.08);
  color: var(--otoprep-ink, #111827);
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 640px) {
  .otoprep-ddx-case__mode-switch {
    width: 100%;
  }

  .otoprep-ddx-case__mode-button {
    flex: 1 1 0;
    text-align: center;
  }
}

.otoprep-ddx-profile-card__status {
  margin-bottom: 14px;
}

.otoprep-ddx-resume-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(16, 117, 188, 0.14);
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.05), rgba(255, 255, 255, 1));
}

.otoprep-ddx-resume-card__copy-wrap {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 320px;
}

.otoprep-ddx-resume-card__title {
  margin: 0;
  color: var(--otoprep-ink, #111827);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 850;
}

.otoprep-ddx-resume-card__copy {
  margin: 0;
  color: var(--otoprep-muted, #5b6474);
  font-size: 14px;
  line-height: 1.65;
}

.otoprep-ddx-resume-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.otoprep-ddx-resume-card__actions .otoprep-dailydx-shell__btn,
.otoprep-ddx-resume-card__actions .otoprep-btn {
  margin: 0;
}

@media (max-width: 782px) {
  .otoprep-ddx-resume-card {
    flex-direction: column;
    align-items: stretch;
  }

  .otoprep-ddx-resume-card__actions {
    width: 100%;
  }

  .otoprep-ddx-resume-card__actions .otoprep-dailydx-shell__btn,
  .otoprep-ddx-resume-card__actions .otoprep-btn {
    width: 100%;
  }
}


/* 1.9.16 Daily Dx oral follow-up polish: customer-facing full-width Keep Going card. */
.otoprep-ddx-case__section--follow-on,
.otoprep-ddx-case__follow-on-stack,
.otoprep-ddx-case__follow-on-next-step {
  width: 100%;
  max-width: none;
  align-self: stretch;
  box-sizing: border-box;
}

.otoprep-ddx-case__section--follow-on {
  border-color: rgba(16, 117, 188, 0.16);
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.045), rgba(255, 255, 255, 1));
}

.otoprep-ddx-case__follow-on-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(18px, 3vw, 28px);
  border-radius: 24px;
}

.otoprep-ddx-case__follow-on-next-step-title {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.16;
}

.otoprep-ddx-case__follow-on-next-step-copy {
  font-size: clamp(16px, 2.15vw, 21px);
  line-height: 1.58;
}

.otoprep-ddx-case__follow-on-next-step-actions {
  width: 100%;
  align-items: stretch;
  justify-content: center;
}

.otoprep-ddx-case__follow-on-next-step-actions .otoprep-dailydx-shell__btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 820px) {
  .otoprep-ddx-case__follow-on-next-step {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

/* Keep Going card fine tuning for 1.9.16. */
.otoprep-ddx-case__follow-on-next-step-body {
  min-width: 0;
}

.otoprep-ddx-case__module-tip {
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.55;
}

.otoprep-ddx-case__section--follow-on .otoprep-ddx-case__context-chips {
  gap: 8px;
}

/* 1.9.17 Daily Dx completion layout: no nested cards inside already-carded sections. */
.otoprep-ddx-case__section--follow-on,
.otoprep-ddx-case__section--context,
.otoprep-ddx-case__section--reflection {
  width: 100%;
  max-width: none;
  align-self: stretch;
  box-sizing: border-box;
}

.otoprep-ddx-case__section--follow-on {
  gap: clamp(14px, 2vw, 20px);
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
}

.otoprep-ddx-case__section--follow-on .otoprep-ddx-case__section-copy {
  max-width: 760px;
}

.otoprep-ddx-case__follow-on-stack {
  width: 100%;
  max-width: none;
  gap: clamp(12px, 2vw, 18px);
}

.otoprep-ddx-case__follow-on-next-step {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.otoprep-ddx-case__follow-on-next-step-body {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.otoprep-ddx-case__follow-on-next-step-title {
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.18;
}

.otoprep-ddx-case__follow-on-next-step-copy {
  max-width: 760px;
  font-size: clamp(15px, 1.75vw, 18px);
  line-height: 1.55;
}

.otoprep-ddx-case__section--follow-on .otoprep-ddx-case__module-tip {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--otoprep-muted, #5b6474);
  font-size: 14px;
  line-height: 1.55;
}

.otoprep-ddx-case__section--follow-on .otoprep-ddx-case__module-meta {
  margin: 0;
  padding-top: 2px;
}

.otoprep-ddx-case__follow-on-next-step-actions {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.otoprep-ddx-case__follow-on-next-step-actions .otoprep-dailydx-shell__btn,
.otoprep-ddx-case__follow-on-next-step-actions .otoprep-btn {
  width: 100%;
  justify-content: center;
}

.otoprep-ddx-case__follow-on-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2px;
  border-top: 1px solid rgba(16, 117, 188, 0.12);
}

.otoprep-ddx-case__follow-on-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(96px, 0.25fr) minmax(92px, 0.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(16, 117, 188, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}

.otoprep-ddx-case__follow-on-card:hover,
.otoprep-ddx-case__follow-on-card:focus {
  border-color: rgba(16, 117, 188, 0.18);
  background: rgba(16, 117, 188, 0.035);
  box-shadow: none;
  text-decoration: none;
}

.otoprep-ddx-case__follow-on-card .otoprep-ddx-case__follow-on-title,
.otoprep-ddx-case__follow-on-card .otoprep-ddx-case__follow-on-copy {
  min-width: 0;
}

.otoprep-ddx-case__section--context,
.otoprep-ddx-case__section--reflection {
  padding: clamp(18px, 3vw, 30px);
}

.otoprep-ddx-case__section--context .otoprep-ddx-case__context-group {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.otoprep-ddx-case__section--context .otoprep-ddx-case__context-group + .otoprep-ddx-case__context-group {
  padding-top: 14px;
  border-top: 1px solid rgba(16, 117, 188, 0.10);
}

.otoprep-ddx-case__section--reflection .otoprep-ddx-reflection-form {
  width: 100%;
}

.otoprep-ddx-case__section--reflection .otoprep-ddx-reflection-form__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.otoprep-ddx-case__section--reflection .otoprep-ddx-reflection-form__actions .otoprep-dailydx-shell__btn,
.otoprep-ddx-case__section--reflection .otoprep-ddx-reflection-form__actions .otoprep-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 760px) {
  .otoprep-ddx-case__section--follow-on,
  .otoprep-ddx-case__section--context,
  .otoprep-ddx-case__section--reflection {
    padding: clamp(16px, 4vw, 22px);
  }

  .otoprep-ddx-case__follow-on-next-step {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .otoprep-ddx-case__follow-on-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
  }
}

/* 1.9.18 Themed completion-section colour polish. */
.otoprep-ddx-case__section--follow-on,
.otoprep-ddx-case__section--context,
.otoprep-ddx-case__section--reflection {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-width: 1px;
  box-shadow: 0 16px 36px rgba(16, 117, 188, 0.08);
}

.otoprep-ddx-case__section--follow-on::before,
.otoprep-ddx-case__section--context::before,
.otoprep-ddx-case__section--reflection::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

.otoprep-ddx-case__section--follow-on {
  border-color: rgba(16, 117, 188, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(231, 105, 75, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(16, 117, 188, 0.105), rgba(255, 255, 255, 0.96) 58%, rgba(16, 117, 188, 0.045));
}

.otoprep-ddx-case__section--follow-on::before {
  background: linear-gradient(180deg, var(--otoprep-blue, #1075BC), var(--otoprep-orange, #E7694B));
}

.otoprep-ddx-case__section--follow-on .otoprep-ddx-case__section-title {
  color: var(--otoprep-blue, #1075BC);
}

.otoprep-ddx-case__section--follow-on .otoprep-ddx-case__section-copy,
.otoprep-ddx-case__section--follow-on .otoprep-ddx-case__follow-on-next-step-copy {
  color: #40515f;
}

.otoprep-ddx-case__section--follow-on .otoprep-ddx-case__follow-on-next-step {
  padding-block: clamp(8px, 1.6vw, 16px) clamp(14px, 2vw, 20px);
  border-bottom: 1px solid rgba(16, 117, 188, 0.14);
}

.otoprep-ddx-case__section--follow-on .otoprep-ddx-case__follow-on-kicker,
.otoprep-ddx-case__section--follow-on .otoprep-ddx-case__follow-on-next-step-title {
  color: #0b5f9d;
}

.otoprep-ddx-case__section--follow-on .otoprep-ddx-case__module-tip {
  color: #526170;
}

.otoprep-ddx-case__section--follow-on .otoprep-ddx-case__context-chip {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 117, 188, 0.18);
  color: #0b5f9d;
}

.otoprep-ddx-case__follow-on-grid {
  gap: 10px;
  border-top: 0;
}

.otoprep-ddx-case__follow-on-card {
  padding: 14px 16px;
  border: 1px solid rgba(16, 117, 188, 0.10);
  border-left-width: 5px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.otoprep-ddx-case__follow-on-card:hover,
.otoprep-ddx-case__follow-on-card:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 117, 188, 0.10);
}

.otoprep-ddx-case__follow-on-card--easier {
  border-color: rgba(18, 132, 132, 0.20);
  border-left-color: #128484;
  background: linear-gradient(90deg, rgba(18, 132, 132, 0.115), rgba(255, 255, 255, 0.74));
}

.otoprep-ddx-case__follow-on-card--easier .otoprep-ddx-case__follow-on-kicker,
.otoprep-ddx-case__follow-on-card--easier .otoprep-ddx-case__follow-on-title {
  color: #0f6f72;
}

.otoprep-ddx-case__follow-on-card--tougher {
  border-color: rgba(231, 105, 75, 0.22);
  border-left-color: var(--otoprep-orange, #E7694B);
  background: linear-gradient(90deg, rgba(231, 105, 75, 0.12), rgba(255, 255, 255, 0.74));
}

.otoprep-ddx-case__follow-on-card--tougher .otoprep-ddx-case__follow-on-kicker,
.otoprep-ddx-case__follow-on-card--tougher .otoprep-ddx-case__follow-on-title {
  color: #a2442f;
}

.otoprep-ddx-case__follow-on-card .otoprep-ddx-case__follow-on-copy {
  color: #40515f;
}

.otoprep-ddx-case__section--context {
  border-color: rgba(79, 106, 198, 0.20);
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 106, 198, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(16, 117, 188, 0.055), rgba(255, 255, 255, 0.96) 56%, rgba(79, 106, 198, 0.06));
}

.otoprep-ddx-case__section--context::before {
  background: linear-gradient(180deg, #4f6ac6, var(--otoprep-blue, #1075BC));
}

.otoprep-ddx-case__section--context .otoprep-ddx-case__section-title {
  color: #3d55a8;
}

.otoprep-ddx-case__section--context .otoprep-ddx-case__context-label {
  color: #4b5c73;
}

.otoprep-ddx-case__section--context .otoprep-ddx-case__context-chip {
  border-color: rgba(79, 106, 198, 0.16);
  background: rgba(79, 106, 198, 0.08);
  color: #3d55a8;
}

.otoprep-ddx-case__section--context .otoprep-ddx-case__context-chip--muted {
  border-color: rgba(16, 117, 188, 0.12);
  background: rgba(16, 117, 188, 0.055);
  color: #526170;
}

.otoprep-ddx-case__section--context .otoprep-ddx-case__context-group + .otoprep-ddx-case__context-group {
  border-top-color: rgba(79, 106, 198, 0.13);
}

.otoprep-ddx-case__section--reflection {
  border-color: rgba(231, 105, 75, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(231, 105, 75, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(231, 105, 75, 0.085), rgba(255, 255, 255, 0.96) 58%, rgba(16, 117, 188, 0.04));
}

.otoprep-ddx-case__section--reflection::before {
  background: linear-gradient(180deg, var(--otoprep-orange, #E7694B), var(--otoprep-blue, #1075BC));
}

.otoprep-ddx-case__section--reflection .otoprep-ddx-case__section-title {
  color: #a2442f;
}

.otoprep-ddx-case__section--reflection .otoprep-ddx-case__rich-text,
.otoprep-ddx-case__section--reflection .otoprep-ddx-case__rich-text p {
  color: #465766;
}

.otoprep-ddx-case__section--reflection .otoprep-ddx-reflection-form__field {
  border-color: rgba(231, 105, 75, 0.16);
  background: rgba(255, 255, 255, 0.68);
}

.otoprep-ddx-case__section--reflection .otoprep-ddx-reflection-form__label {
  color: #7e3c2e;
}

@media (max-width: 760px) {
  .otoprep-ddx-case__section--follow-on::before,
  .otoprep-ddx-case__section--context::before,
  .otoprep-ddx-case__section--reflection::before {
    width: 4px;
  }

  .otoprep-ddx-case__follow-on-card {
    padding: 14px;
  }
}

/* Daily Dx 1.9.22: same-case tier switcher */
.otoprep-ddx-case__tier-switcher {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: clamp(14px, 2vw, 18px);
  border: 1px solid rgba(16, 117, 188, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 117, 188, 0.055), rgba(255, 255, 255, 0.98));
}

.otoprep-ddx-case__tier-switcher-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.otoprep-ddx-case__tier-switcher-head strong {
  color: var(--otoprep-ink, #13202A);
  font-size: 15px;
  font-weight: 900;
}

.otoprep-ddx-case__tier-switcher-head span {
  color: var(--otoprep-muted, #5b6b77);
  font-size: 13px;
  line-height: 1.45;
}

.otoprep-ddx-case__tier-switcher-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.otoprep-ddx-case__tier-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 117, 188, 0.18);
  background: #fff;
  color: var(--otoprep-blue, #1075BC);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(16, 117, 188, 0.07);
}

.otoprep-ddx-case__tier-option:hover,
.otoprep-ddx-case__tier-option:focus {
  border-color: rgba(16, 117, 188, 0.36);
  box-shadow: 0 8px 20px rgba(16, 117, 188, 0.12);
}

.otoprep-ddx-case__tier-option.is-active {
  background: var(--otoprep-blue, #1075BC);
  border-color: var(--otoprep-blue, #1075BC);
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 117, 188, 0.22);
}

.otoprep-ddx-case__tier-option--hard:not(.is-active) {
  border-color: rgba(231, 105, 75, 0.28);
  color: var(--otoprep-orange, #E7694B);
}

@media (max-width: 640px) {
  .otoprep-ddx-case__tier-switcher-options {
    display: grid;
    grid-template-columns: 1fr;
  }
}


/* 1.9.24 Daily Dx task clarity: show the clinical scenario as Clue 1 within the six-clue ladder. */
.otoprep-ddx-case__task-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(16, 117, 188, 0.18);
  background: rgba(16, 117, 188, 0.07);
}

.otoprep-ddx-case__task-label,
.otoprep-ddx-case__scenario-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 117, 188, 0.12);
  color: var(--otoprep-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.otoprep-ddx-case__task-text {
  color: var(--otoprep-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.otoprep-ddx-case__scenario {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 20px);
  border-radius: 22px;
  border: 1px solid rgba(19, 32, 42, 0.10);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(16, 117, 188, 0.05);
}

.otoprep-ddx-case__scenario-body {
  color: var(--otoprep-ink);
  line-height: 1.72;
  font-size: 15px;
}

.otoprep-ddx-case__scenario-body p {
  margin: 0 0 0.9em;
}

.otoprep-ddx-case__scenario-body p:last-child {
  margin-bottom: 0;
}

/* 1.9.34 production Daily Dx UX/UI polish */
body.otoprep-dailydx-page {
  --otoprep-ddx-surface: #F4F8FC;
  --otoprep-ddx-surface-strong: #EAF4FB;
  --otoprep-ddx-card: #FFFFFF;
  --otoprep-ddx-border: rgba(16, 117, 188, 0.16);
  --otoprep-ddx-border-strong: rgba(16, 117, 188, 0.28);
  --otoprep-ddx-shadow: 0 18px 46px rgba(16, 117, 188, 0.10);
  --otoprep-ddx-soft-shadow: 0 10px 24px rgba(16, 117, 188, 0.07);
  --otoprep-ddx-ink: var(--otoprep-ink, #13202A);
  --otoprep-ddx-muted: var(--otoprep-muted, #5F6F7E);
  overflow-x: hidden;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell,
body.otoprep-dailydx-page .otoprep-ddx-utility-view {
  box-sizing: border-box;
  position: relative;
  left: auto !important;
  width: min(100%, calc(100vw - 24px));
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__frame {
  width: 100%;
  max-width: 980px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 2.4vw, 22px);
  padding-right: clamp(12px, 2.4vw, 22px);
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__card.otoprep-card.otoprep-quiz-card,
body.otoprep-dailydx-page .otoprep-ddx-utility-view {
  border-radius: clamp(22px, 4vw, 32px) !important;
  border: 1px solid rgba(16, 117, 188, 0.12) !important;
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.98), rgba(235, 246, 252, 0.92)) !important;
  box-shadow: var(--otoprep-ddx-shadow) !important;
}

body.otoprep-dailydx-page .otoprep-ddx-utility-view {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(12px, 2.6vw, 24px) !important;
  margin-bottom: clamp(30px, 5vw, 56px) !important;
  padding: clamp(14px, 2.8vw, 24px) !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__head,
body.otoprep-dailydx-page .otoprep-ddx-portfolio__head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: start;
  gap: clamp(12px, 2vw, 18px);
  margin: 0 !important;
  padding: clamp(16px, 2.4vw, 22px);
  border-radius: clamp(20px, 3vw, 26px);
  border: 1px solid var(--otoprep-ddx-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.94));
  box-shadow: var(--otoprep-ddx-soft-shadow);
}

body.otoprep-dailydx-page .otoprep-ddx-archive__title,
body.otoprep-dailydx-page .otoprep-ddx-portfolio__title {
  margin: 0 0 8px !important;
  max-width: 100%;
  color: var(--otoprep-ddx-ink) !important;
  font-family: var(--otoprep-font-ui, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
  font-size: clamp(26px, 5vw, 38px) !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  text-transform: none !important;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__copy,
body.otoprep-dailydx-page .otoprep-ddx-portfolio__copy {
  margin: 0 !important;
  max-width: 62ch;
  color: var(--otoprep-ddx-muted) !important;
  font-size: clamp(15px, 2.6vw, 17px) !important;
  line-height: 1.65 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__head-actions,
body.otoprep-dailydx-page .otoprep-ddx-portfolio__actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: stretch;
  width: 100%;
  margin: 0 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio__actions > :last-child:nth-child(odd),
body.otoprep-dailydx-page .otoprep-ddx-portfolio__actions > :nth-child(5) {
  grid-column: 1 / -1;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__head-actions .otoprep-dailydx-shell__btn,
body.otoprep-dailydx-page .otoprep-ddx-portfolio__actions .otoprep-dailydx-shell__btn,
body.otoprep-dailydx-page .otoprep-ddx-archive__filters > .otoprep-dailydx-shell__btn,
body.otoprep-dailydx-page .otoprep-ddx-portfolio__filters > .otoprep-dailydx-shell__btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  justify-content: center !important;
  white-space: normal !important;
  text-align: center !important;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__btn.otoprep-btn {
  border-radius: 999px !important;
  font-family: var(--otoprep-font-ui, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__btn.otoprep-btn--outline,
body.otoprep-dailydx-page .otoprep-dailydx-shell__btn--ghost {
  border: 1px solid var(--otoprep-ddx-border-strong) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--otoprep-blue, #1075BC) !important;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__btn.otoprep-btn--primary,
body.otoprep-dailydx-page .otoprep-dailydx-shell__btn--primary {
  border-color: var(--otoprep-blue, #1075BC) !important;
  background: var(--otoprep-blue, #1075BC) !important;
  color: #FFFFFF !important;
}

body.otoprep-dailydx-page .otoprep-dailydx-shell__btn:hover,
body.otoprep-dailydx-page .otoprep-dailydx-shell__btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 117, 188, 0.13) !important;
  text-decoration: none !important;
}

body.otoprep-dailydx-page .otoprep-ddx-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-summary--archive {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.otoprep-dailydx-page .otoprep-ddx-summary__card.otoprep-card {
  min-height: 96px;
  padding: clamp(16px, 2.4vw, 20px) !important;
  border-radius: 22px !important;
  border: 1px solid rgba(16, 117, 188, 0.10) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 22px rgba(16, 117, 188, 0.06) !important;
}

body.otoprep-dailydx-page .otoprep-ddx-summary__value {
  display: block;
  margin: 0 0 6px !important;
  color: var(--otoprep-ddx-ink) !important;
  font-size: clamp(30px, 6vw, 46px) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em;
}

body.otoprep-dailydx-page .otoprep-ddx-summary__label {
  display: block;
  color: var(--otoprep-ddx-muted) !important;
  font-size: clamp(14px, 2.6vw, 16px) !important;
  line-height: 1.35 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__filters,
body.otoprep-dailydx-page .otoprep-ddx-portfolio__filters {
  display: grid !important;
  gap: 12px;
  margin: 0 !important;
  padding: clamp(14px, 2.4vw, 18px) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(16, 117, 188, 0.12) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--otoprep-ddx-soft-shadow) !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__filters {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio__filters {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

body.otoprep-dailydx-page .otoprep-ddx-archive__difficulty-chips {
  grid-column: 1 / -1;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 0 2px;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__difficulty-label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 4px 0 0 !important;
  color: var(--otoprep-ddx-muted) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__difficulty-chip {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  min-width: 0 !important;
  padding: 8px 14px !important;
  border: 1px solid var(--otoprep-ddx-border) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--otoprep-blue, #1075BC) !important;
  box-shadow: none !important;
  cursor: pointer;
  font-family: var(--otoprep-font-ui, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__difficulty-chip:hover,
body.otoprep-dailydx-page .otoprep-ddx-archive__difficulty-chip:focus {
  border-color: var(--otoprep-ddx-border-strong) !important;
  background: rgba(16, 117, 188, 0.08) !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(16, 117, 188, 0.10) !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__difficulty-chip.is-active {
  border-color: var(--otoprep-blue, #1075BC) !important;
  background: var(--otoprep-blue, #1075BC) !important;
  color: #FFFFFF !important;
  box-shadow: 0 10px 22px rgba(16, 117, 188, 0.18) !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__filter-field,
body.otoprep-dailydx-page .otoprep-ddx-portfolio__filter-field {
  display: block !important;
  min-width: 0;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__filter-field:nth-of-type(1) {
  grid-column: span 5;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__filter-field:nth-of-type(2),
body.otoprep-dailydx-page .otoprep-ddx-archive__filter-field:nth-of-type(3) {
  grid-column: span 3;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__filters > .otoprep-dailydx-shell__btn {
  grid-column: span 1;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio__filter-field {
  grid-column: span 2;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio__filter-field--search {
  grid-column: span 3;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio__filters > .otoprep-dailydx-shell__btn {
  grid-column: span 1;
}

body.otoprep-dailydx-page .otoprep-ddx-archive .otoprep-input,
body.otoprep-dailydx-page .otoprep-ddx-portfolio .otoprep-input,
body.otoprep-dailydx-page .otoprep-ddx-profile-card .otoprep-input {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(19, 32, 42, 0.14) !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  color: var(--otoprep-ddx-ink) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  box-shadow: inset 0 1px 2px rgba(19, 32, 42, 0.03) !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive .otoprep-input:focus,
body.otoprep-dailydx-page .otoprep-ddx-portfolio .otoprep-input:focus,
body.otoprep-dailydx-page .otoprep-ddx-profile-card .otoprep-input:focus {
  border-color: rgba(16, 117, 188, 0.46) !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(16, 117, 188, 0.11) !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__grid,
body.otoprep-dailydx-page .otoprep-ddx-portfolio__list {
  display: grid !important;
  gap: clamp(12px, 2vw, 16px);
  margin: 0 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

body.otoprep-dailydx-page .otoprep-ddx-archive__card.otoprep-card,
body.otoprep-dailydx-page .otoprep-ddx-log-card.otoprep-card,
body.otoprep-dailydx-page .otoprep-ddx-portfolio__empty.otoprep-card,
body.otoprep-dailydx-page .otoprep-ddx-profile-card.otoprep-card {
  border-radius: 24px !important;
  border: 1px solid rgba(16, 117, 188, 0.12) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: var(--otoprep-ddx-soft-shadow) !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__card.otoprep-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.6vw, 24px) !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__card-title,
body.otoprep-dailydx-page .otoprep-ddx-log-card__title,
body.otoprep-dailydx-page .otoprep-ddx-profile-card__title {
  margin: 0 !important;
  color: var(--otoprep-ddx-ink) !important;
  font-family: var(--otoprep-font-ui, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__card-title {
  font-size: clamp(20px, 4.6vw, 28px) !important;
  line-height: 1.12 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-log-card__title,
body.otoprep-dailydx-page .otoprep-ddx-profile-card__title {
  font-size: clamp(19px, 4vw, 24px) !important;
  line-height: 1.18 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__stem,
body.otoprep-dailydx-page .otoprep-ddx-profile-card__copy,
body.otoprep-dailydx-page .otoprep-ddx-resume-card__copy,
body.otoprep-dailydx-page .otoprep-ddx-log-card__note,
body.otoprep-dailydx-page .otoprep-ddx-portfolio__empty {
  color: var(--otoprep-ddx-muted) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-profile-card.otoprep-card {
  padding: clamp(16px, 2.6vw, 22px) !important;
  margin: 0 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-profile-card__head {
  margin-bottom: 14px !important;
}

body.otoprep-dailydx-page .otoprep-ddx-resume-card {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(16, 117, 188, 0.20);
  background: rgba(16, 117, 188, 0.04);
}

body.otoprep-dailydx-page .otoprep-ddx-resume-card__title {
  margin: 0 0 6px !important;
  color: var(--otoprep-ddx-ink) !important;
  font-family: var(--otoprep-font-ui, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio__status,
body.otoprep-dailydx-page .otoprep-ddx-archive__empty {
  margin: 0 !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(16, 117, 188, 0.12) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--otoprep-ddx-muted) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-case__task-card {
  display: none !important;
}

body.otoprep-dailydx-page .otoprep-ddx-case__title--challenge {
  max-width: min(100%, 30ch);
}

body.otoprep-dailydx-page .otoprep-ddx-case__intro--challenge,
body.otoprep-dailydx-page .otoprep-ddx-case__mode-copy {
  max-width: 62ch;
}

@media (max-width: 900px) {
  body.otoprep-dailydx-page .otoprep-ddx-archive__head,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio__head {
    grid-template-columns: 1fr;
  }

  body.otoprep-dailydx-page .otoprep-ddx-archive__filters,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.otoprep-dailydx-page .otoprep-ddx-archive__difficulty-chips,
  body.otoprep-dailydx-page .otoprep-ddx-archive__filter-field:nth-of-type(1),
  body.otoprep-dailydx-page .otoprep-ddx-archive__filter-field:nth-of-type(2),
  body.otoprep-dailydx-page .otoprep-ddx-archive__filter-field:nth-of-type(3),
  body.otoprep-dailydx-page .otoprep-ddx-portfolio__filter-field,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio__filter-field--search,
  body.otoprep-dailydx-page .otoprep-ddx-archive__filters > .otoprep-dailydx-shell__btn,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio__filters > .otoprep-dailydx-shell__btn {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body.otoprep-dailydx-page .otoprep-dailydx-shell,
  body.otoprep-dailydx-page .otoprep-ddx-utility-view {
    width: min(100%, calc(100vw - 16px));
    max-width: calc(100vw - 16px) !important;
  }

  body.otoprep-dailydx-page .otoprep-dailydx-shell__frame {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.otoprep-dailydx-page .otoprep-dailydx-shell__card.otoprep-card.otoprep-quiz-card,
  body.otoprep-dailydx-page .otoprep-ddx-utility-view {
    border-radius: 22px !important;
  }

  body.otoprep-dailydx-page .otoprep-ddx-utility-view {
    padding: 12px !important;
    gap: 14px;
  }

  body.otoprep-dailydx-page .otoprep-ddx-archive__head,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio__head {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  body.otoprep-dailydx-page .otoprep-ddx-archive__head-actions,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.otoprep-dailydx-page .otoprep-ddx-archive__head-actions .otoprep-dailydx-shell__btn,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio__actions .otoprep-dailydx-shell__btn {
    min-height: 42px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  body.otoprep-dailydx-page .otoprep-ddx-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.otoprep-dailydx-page .otoprep-ddx-summary__card.otoprep-card {
    min-height: 88px;
    padding: 16px !important;
  }

  body.otoprep-dailydx-page .otoprep-ddx-archive__filters,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio__filters {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
    border-radius: 20px !important;
  }

  body.otoprep-dailydx-page .otoprep-ddx-archive__difficulty-label {
    width: 100%;
    min-height: 0;
  }

  body.otoprep-dailydx-page .otoprep-ddx-archive__difficulty-chip {
    flex: 1 1 calc(50% - 8px);
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.otoprep-dailydx-page .otoprep-ddx-archive__card-title {
    font-size: clamp(20px, 8vw, 26px) !important;
  }

  body.otoprep-dailydx-page .otoprep-ddx-log-card__actions,
  body.otoprep-dailydx-page .otoprep-ddx-resume-card__actions,
  body.otoprep-dailydx-page .otoprep-ddx-lead-form__actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.otoprep-dailydx-page .otoprep-ddx-log-card__actions .otoprep-dailydx-shell__btn,
  body.otoprep-dailydx-page .otoprep-ddx-resume-card__actions .otoprep-dailydx-shell__btn,
  body.otoprep-dailydx-page .otoprep-ddx-lead-form__actions .otoprep-dailydx-shell__btn {
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  body.otoprep-dailydx-page .otoprep-ddx-archive__head-actions,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.otoprep-dailydx-page .otoprep-ddx-portfolio__actions > :nth-child(5) {
    grid-column: 1 / -1;
  }

  body.otoprep-dailydx-page .otoprep-ddx-archive__title,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio__title {
    font-size: clamp(25px, 9vw, 32px) !important;
  }

  body.otoprep-dailydx-page .otoprep-ddx-archive__copy,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio__copy {
    font-size: 15px !important;
  }
}


/* Daily Dx CPD portfolio upgrade */
body.otoprep-dailydx-page .otoprep-ddx-case-complete {
  border-color: rgba(21, 120, 191, 0.22) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,247,255,0.7)) !important;
}

body.otoprep-dailydx-page .otoprep-ddx-case-complete__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

body.otoprep-dailydx-page .otoprep-ddx-case-complete__eyebrow {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--otoprep-blue, #1578bf);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.otoprep-dailydx-page .otoprep-ddx-case-complete__title {
  margin: 0 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-case-complete__summary {
  display: grid;
  gap: 3px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(21, 120, 191, 0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
}

body.otoprep-dailydx-page .otoprep-ddx-case-complete__summary strong {
  color: var(--otoprep-ink, #0e1d2a);
  font-size: 16px;
  line-height: 1.25;
}

body.otoprep-dailydx-page .otoprep-ddx-case-complete__summary span {
  color: var(--otoprep-muted, #5d6d7c);
  font-size: 13px;
  font-weight: 700;
}

body.otoprep-dailydx-page .otoprep-ddx-reflection-form__grid--compact {
  grid-template-columns: minmax(100px, 0.7fr) repeat(2, minmax(150px, 1fr));
}

body.otoprep-dailydx-page .otoprep-ddx-reflection-form__starter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

body.otoprep-dailydx-page .otoprep-ddx-reflection-form__starter {
  appearance: none;
  border: 1px solid rgba(21, 120, 191, 0.26);
  border-radius: 999px;
  background: rgba(238,247,255,0.92);
  color: var(--otoprep-blue, #1578bf);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  padding: 9px 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

body.otoprep-dailydx-page .otoprep-ddx-reflection-form__starter:hover,
body.otoprep-dailydx-page .otoprep-ddx-reflection-form__starter:focus-visible,
body.otoprep-dailydx-page .otoprep-ddx-reflection-form__starter.is-active {
  background: var(--otoprep-blue, #1578bf);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 120, 191, 0.18);
  transform: translateY(-1px);
  outline: none;
}

body.otoprep-dailydx-page .otoprep-ddx-reflection-form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

body.otoprep-dailydx-page .otoprep-ddx-reflection-form__checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(21, 120, 191, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--otoprep-ink, #0e1d2a);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

body.otoprep-dailydx-page .otoprep-ddx-reflection-form__checks input {
  accent-color: var(--otoprep-blue, #1578bf);
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio-insights.otoprep-card,
body.otoprep-dailydx-page .otoprep-ddx-manual-cpd.otoprep-card {
  max-width: 100%;
  margin: 18px 0;
  padding: 20px !important;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio-insights__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio-insights__head h3 {
  margin: 0 !important;
  color: var(--otoprep-ink, #0e1d2a) !important;
  font-size: clamp(19px, 3vw, 24px) !important;
  line-height: 1.15 !important;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio-insights__head span {
  border: 1px solid rgba(21, 120, 191, 0.24);
  border-radius: 999px;
  background: rgba(238,247,255,0.9);
  color: var(--otoprep-blue, #1578bf);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
  white-space: nowrap;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio-insights__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio-insights__grid > div {
  border: 1px solid rgba(21, 120, 191, 0.13);
  border-radius: 16px;
  background: rgba(238,247,255,0.55);
  padding: 12px;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio-insights__grid strong {
  display: block;
  color: var(--otoprep-ink, #0e1d2a);
  font-size: 24px;
  line-height: 1;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio-insights__grid span,
body.otoprep-dailydx-page .otoprep-ddx-manual-cpd__copy {
  color: var(--otoprep-muted, #5d6d7c);
  font-size: 13px;
  font-weight: 700;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio-insights__needs {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

body.otoprep-dailydx-page .otoprep-ddx-manual-cpd details {
  width: 100%;
}

body.otoprep-dailydx-page .otoprep-ddx-manual-cpd summary {
  cursor: pointer;
  color: var(--otoprep-blue, #1578bf);
  font-size: 18px;
  font-weight: 900;
  list-style-position: inside;
}

body.otoprep-dailydx-page .otoprep-ddx-manual-cpd__form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

body.otoprep-dailydx-page .otoprep-ddx-archive__personal-state {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

body.otoprep-dailydx-page .otoprep-ddx-log-card__note strong {
  color: var(--otoprep-ink, #0e1d2a);
}

@media (max-width: 720px) {
  body.otoprep-dailydx-page .otoprep-ddx-reflection-form__grid--compact,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio-insights__grid {
    grid-template-columns: 1fr;
  }

  body.otoprep-dailydx-page .otoprep-ddx-case-complete__head,
  body.otoprep-dailydx-page .otoprep-ddx-portfolio-insights__head {
    display: grid;
  }

  body.otoprep-dailydx-page .otoprep-ddx-reflection-form__starter,
  body.otoprep-dailydx-page .otoprep-ddx-reflection-form__checks label {
    width: 100%;
    justify-content: center;
  }
}

body.otoprep-dailydx-page .otoprep-ddx-case__benchmark {
  margin-top: 14px;
}

body.otoprep-dailydx-page .otoprep-ddx-portfolio-insights__subhead {
  margin: 16px 0 10px;
  color: var(--otoprep-blue, #1578bf);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.otoprep-dailydx-page .otoprep-ddx-decile-strip {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}

body.otoprep-dailydx-page .otoprep-ddx-decile-strip__item {
  display: grid;
  gap: 3px;
  justify-items: center;
  border: 1px solid rgba(21, 120, 191, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 8px 4px;
  color: var(--otoprep-ink, #0e1d2a);
}

body.otoprep-dailydx-page .otoprep-ddx-decile-strip__item strong {
  color: var(--otoprep-blue, #1578bf);
  font-size: 12px;
  line-height: 1;
}

body.otoprep-dailydx-page .otoprep-ddx-decile-strip__item em {
  color: var(--otoprep-muted, #5d6d7c);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 640px) {
  body.otoprep-dailydx-page .otoprep-ddx-decile-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
