#demo-app {
  --itd-ink: #251b44;
  --itd-muted: #665e73;
  --itd-line: #e6e0ed;
  --itd-lilac: #f1edff;
  --itd-paper: #fffdfa;
  display: block;
  flex: 1 1 0;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c6bed9 transparent;
  container-type: inline-size;
  color: var(--itd-ink);
  background: var(--itd-paper);
  text-align: left;
  font: 400 15px/1.45 "Lexend", "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  color-scheme: light;
}

#demo-app *, #demo-app *::before, #demo-app *::after { box-sizing: border-box; }
#demo-app :is(h2, p, button) { margin: 0; }
#demo-app button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#demo-app button:disabled { cursor: default; }
#demo-app button:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
#demo-app .itd-title:focus { outline: none; }
.itd-icon { display: inline-block; width: 19px; height: 19px; flex: none; }
.itd-screen {
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-height: 100%;
  width: 100%;
  padding: 5px clamp(16px, 7cqw, 24px) 12px;
}
.itd-screen .itd-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}
.itd-brand { display: block; width: 106px; height: auto; }
.itd-header-inner { font-size: 13px; font-weight: 600; }
.itd-back, .itd-header-balance { width: 34px; height: 34px; }
.itd-back {
  display: grid;
  place-items: center;
  color: var(--itd-ink);
  border: 1px solid var(--itd-line);
  border-radius: 50%;
  background: transparent;
}
.itd-back .itd-icon { width: 16px; height: 16px; }
.itd-title {
  color: var(--itd-ink);
  font: 750 clamp(25px, 9.4cqw, 33px)/1.11 "Lexend", "Segoe UI", sans-serif;
  letter-spacing: -.055em;
  overflow-wrap: break-word;
}
.itd-description { color: var(--itd-muted); font-size: 15px; line-height: 1.5; }
.itd-eyebrow {
  color: var(--violet);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.itd-actions { flex: none; margin-top: auto; width: 100%; padding: 2px 0; }
.itd-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 10px;
  border: 0;
  border-radius: 13px;
  background: var(--violet);
  color: white;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  text-align: center;
  transition: background-color 140ms, transform 140ms;
}
.itd-primary:disabled { background: #ede9f0; color: #6b6474; }
.itd-primary:not(:disabled):active { transform: scale(.98); }
@media (hover: hover) {
  .itd-primary:not(:disabled):hover { background: #3511d4; }
  .itd-back:hover { background: var(--itd-lilac); }
}
.itd-preview-body { display: flex; flex: 1 0 auto; flex-direction: column; justify-content: center; gap: clamp(19px, 7.4cqw, 27px); }
.itd-art { flex: none; width: 100%; overflow: hidden; border-radius: 15px; background: #d8cfff; aspect-ratio: 800 / 421; }
.itd-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.itd-preview-copy { display: grid; gap: 9px; }
.itd-preview-copy .itd-title { font-size: clamp(27px, 10.5cqw, 35px); }
.itd-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 4px; color: #5f586b; font-size: 12px; font-weight: 500; }
.itd-meta span, .itd-finish-count { display: inline-flex; align-items: center; gap: 5px; }
.itd-meta i { width: 3px; height: 3px; border-radius: 50%; background: #aa9fba; }
.itd-meta .itd-icon { width: 14px; height: 14px; }

.itd-week-body, .itd-reading, .itd-quiz-body, .itd-practice-body, .itd-finish {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.itd-week-body .itd-title { font-size: clamp(23px, 8.7cqw, 29px); }
.itd-week-body .itd-description { font-size: 14px; }
.itd-orbit {
  position: relative;
  width: min(100%, 216px);
  height: 203px;
  margin: 2px auto;
}
.itd-orbit-line { position: absolute; inset: 22px 29px 27px; border: 2px dashed #d7cceb; border-radius: 50%; }
.itd-orbit-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--orange);
}
.itd-orbit-center strong { font-size: 19px; line-height: 1.35; font-weight: 750; letter-spacing: -.06em; }
.itd-orbit-center span { font-size: 10px; color: #64471b; }
#demo-app .itd-day {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 1px solid #d8d0e7;
  border-radius: 50%;
  background: #faf7ff;
  color: var(--itd-ink);
  font-size: 12px;
  font-weight: 650;
}
#demo-app .itd-day[aria-pressed="true"] { background: var(--violet); color: white; border-color: var(--violet); box-shadow: 0 0 0 3px #e6dfff; }
.itd-day-0 { left: 50%; top: 12%; }
.itd-day-1 { left: 79%; top: 26%; }
.itd-day-2 { left: 87%; top: 56%; }
.itd-day-3 { left: 66.5%; top: 85%; }
.itd-day-4 { left: 33.5%; top: 85%; }
.itd-day-5 { left: 13%; top: 56%; }
.itd-day-6 { left: 21%; top: 26%; }
.itd-node-done {
  position: absolute;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  right: -3px;
  top: -2px;
  border: 2px solid var(--itd-paper);
  border-radius: 50%;
  background: var(--orange);
  color: var(--itd-ink);
}
.itd-node-done .itd-icon { width: 10px; height: 10px; stroke-width: 3px; }
.itd-day-summary { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--itd-lilac); }
.itd-summary-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--violet); background: #fff; }
.itd-day-summary small, .itd-day-summary b { display: block; }
.itd-day-summary small { color: var(--itd-muted); font-size: 11px; }
.itd-day-summary b { font-size: 14px; font-weight: 650; }

.itd-progress { display: flex; gap: 5px; flex: none; }
.itd-progress span {
  flex: 1;
  overflow: hidden;
  height: 4px;
  border-radius: 5px;
  background: #e9e3ef;
  color: transparent;
  font-size: 0;
}
.itd-progress .itd-progress-filled { background: var(--violet); }
.itd-example, .itd-wallet { margin-top: 7px; padding: 15px; border-radius: 14px; background: var(--itd-lilac); }
.itd-example-label, .itd-wallet-label { display: inline-flex; align-items: center; gap: 7px; color: var(--violet); font-size: 13px; font-weight: 650; }
.itd-example p { padding-top: 6px; font-size: 14px; line-height: 1.5; }
.itd-quiz-body .itd-title { font-size: clamp(22px, 8cqw, 28px); }
.itd-answers { display: grid; gap: 7px; margin-top: 3px; }
#demo-app .itd-answer {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--itd-line);
  border-radius: 10px;
  background: transparent;
  color: var(--itd-ink);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}
.itd-answer i { width: 15px; height: 15px; flex: none; border: 1.5px solid #b6adc5; border-radius: 50%; }
#demo-app .itd-answer[aria-pressed="true"] { border-color: #ae842c; background: #fff4d9; }
.itd-answer[aria-pressed="true"] i { border: 4px solid #946a14; }
#demo-app .itd-answer.itd-answer-right { border-color: var(--violet); background: var(--itd-lilac); }
.itd-answer.itd-answer-right i { border-color: var(--violet); }
.itd-feedback { font-size: 13px; line-height: 1.4; color: #72521a; }
.itd-feedback:empty { display: none; }
.itd-feedback.itd-feedback-right { color: #493887; }
.itd-wallet { text-align: center; padding: 19px 13px 15px; border: 1px solid #e6dff7; }
.itd-wallet-label .itd-icon { width: 17px; height: 17px; }
.itd-stepper { display: flex; align-items: center; justify-content: space-between; gap: 3px; margin: 19px 0 12px; }
.itd-stepper button {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d1c6ed;
  border-radius: 50%;
  background: white;
  color: var(--violet);
}
.itd-stepper button:disabled { color: #aca4ba; background: #f8f5ff; }
.itd-amount { color: var(--itd-ink); font: 700 clamp(23px, 8.8cqw, 30px)/1.1 "Lexend", sans-serif; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.itd-remaining { color: var(--itd-muted); font-size: 12px; }
.itd-finish { align-items: center; text-align: center; }
.itd-award { position: relative; width: 156px; height: 122px; margin-bottom: 5px; display: grid; place-items: center; }
.itd-award > span { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--orange); border: 7px solid #ffe39a; box-shadow: inset 0 0 0 2px #e49a2b, 0 5px 0 #d39223; transform: rotate(-11deg); }
.itd-award .itd-icon { width: 45px; height: 45px; color: #512414; stroke-width: 3; }
.itd-glint { position: absolute; color: var(--violet); font-size: 28px; font-style: normal; line-height: 1; }
.glint-a { top: 2%; left: 5%; }
.glint-b { right: 2%; bottom: 25%; color: var(--orange); font-size: 22px; }
.glint-c { left: 6%; bottom: 13%; font-size: 18px; }
.itd-finish .itd-description strong { font-weight: 650; color: var(--itd-ink); }
.itd-finish-count { margin-top: 6px; color: var(--violet); font-size: 12px; }
.itd-finish-count .itd-icon { width: 15px; height: 15px; }
@container (max-width: 275px) {
  .itd-screen { padding-inline: 14px; gap: 12px; }
  .itd-meta { gap: 6px; }
  .itd-preview-copy .itd-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .itd-primary { transition: none; }
}
