:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #fff;
  --ink: #191d26;
  --secondary: #626b7b;
  --subtle: #e8ebf0;
  --blue: #315deb;
  --blue-soft: #eef2ff;
  --line: #e6e9ee;
  --radius: 22px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
body.sheet-open {
  overflow: hidden;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #315deb;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
button {
  border: 0;
}
svg.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: none;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
}
.skip-link:focus {
  top: 16px;
}
.app-shell {
  max-width: 1000px;
  margin: auto;
  min-height: 100dvh;
}
.app-header {
  height: 94px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: max(20px, env(safe-area-inset-top));
  gap: 20px;
}
.wordmark {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.1px;
}
.wordmark strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.app-mark {
  height: 36px;
  width: 36px;
  background: #19223a;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: none;
}
.app-mark i {
  display: block;
  width: 4px;
  background: #fff;
  border-radius: 2px;
}
.app-mark i:nth-child(1) {
  height: 12px;
}
.app-mark i:nth-child(2) {
  height: 21px;
}
.app-mark i:nth-child(3) {
  height: 16px;
}
.account-avatar {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-avatar > a {
  width: 40px;
  height: 40px;
  background: #e8ecf4;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #44516b;
}
.account-avatar .cl-avatarBox {
  width: 38px;
  height: 38px;
}
.account-avatar .cl-userButtonTrigger {
  padding: 3px;
  min-width: 44px;
  min-height: 44px;
}
.page {
  padding: 15px 28px 125px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 9px 0 30px;
}
.overline {
  font-size: 10px;
  letter-spacing: 1.55px;
  font-weight: 650;
  color: var(--secondary);
  margin-bottom: 9px;
}
h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
  font-weight: 750;
}
.quiet-pill {
  font-size: 11px;
  padding: 7px 10px;
  border: 1px solid #dfe4ec;
  border-radius: 24px;
  white-space: nowrap;
  color: #556074;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.section-title h2 {
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.45px;
}
.section-title > span {
  font-size: 12px;
  color: var(--secondary);
  white-space: nowrap;
}
.continue-card {
  isolation: isolate;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
  width: 100%;
  min-height: 290px;
  background: #1a2849;
  color: #fff;
  border-radius: var(--radius);
  padding: 27px 28px;
  margin-bottom: 31px;
}
.continue-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -68px;
  top: -82px;
  width: 340px;
  height: 340px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  box-shadow:
    0 0 0 36px #ffffff04,
    0 0 0 72px #ffffff04;
}
.hero-index {
  position: absolute;
  right: 30px;
  top: 23px;
  font-size: 140px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -13px;
  color: #ffffff07;
  z-index: -1;
}
.course-tag {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: #b8c8f4;
}
.hero-title {
  font-size: 32px;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 18px 0 13px;
  max-width: 75%;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #c2cce2;
}
.hero-meta .icon {
  width: 14px;
  height: 14px;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 27px;
  gap: 16px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.hero-cta .icon {
  width: 18px;
  height: 18px;
}
.hero-play {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #ffffff36;
  border-radius: 50%;
  background: #ffffff0a;
}
.hero-play .icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke-width: 0;
  margin-left: 2px;
}
.continue-card:active {
  transform: scale(0.992);
}
.course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.course-row {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 17px;
  min-width: 0;
}
.course-art {
  width: 75px;
  height: 89px;
  flex: none;
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.art-foundation {
  background: #e8edf9;
  color: #273e77;
}
.art-foundation b {
  font-family: Georgia, serif;
  font-size: 47px;
  font-weight: 400;
  letter-spacing: -5px;
  position: relative;
  left: -2px;
}
.art-line {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid #ccd7ef;
  transform: rotate(35deg);
  right: -40px;
  top: 15px;
}
.art-ads {
  background: #f4e3d6;
  color: #8d4d29;
}
.art-window {
  width: 39px;
  height: 48px;
  border: 1px solid #cfab8d;
  border-radius: 5px;
  position: absolute;
  transform: rotate(-10deg);
  left: 14px;
  top: 17px;
}
.art-window::after {
  content: "";
  display: block;
  height: 12px;
  border-bottom: 1px solid #cfab8d;
}
.art-ads .icon {
  width: 34px;
  height: 34px;
  margin-left: 20px;
  margin-top: 27px;
  stroke-width: 1.4;
}
.course-row-body {
  display: block;
  flex: 1;
  min-width: 0;
}
.row-kicker {
  display: block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.15px;
  color: var(--secondary);
  margin-bottom: 5px;
}
.course-row strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.3px;
  font-weight: 650;
  margin-bottom: 6px;
}
.row-meta {
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.5;
}
.progress-track {
  display: block;
  background: #edf0f5;
  height: 3px;
  width: 100%;
  max-width: 170px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 11px;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 5px;
  width: 0;
  transition: width 0.25s;
}
.course-state {
  color: #8a93a2;
}
.course-state .icon {
  height: 16px;
  width: 16px;
}
.course-state.is-complete {
  color: var(--blue);
}
.library-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 21px 20px;
  background: #eef1f7;
  border-radius: 18px;
  margin-top: 24px;
}
.banner-symbol {
  width: 42px;
  height: 42px;
  background: white;
  border: 1px solid #e1e6f0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #4a5f86;
}
.library-banner > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.library-banner strong,
.tracker-card strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.library-banner span span,
.tracker-card span span {
  display: block;
  font-size: 12px;
  color: var(--secondary);
}
.library-banner > .icon {
  width: 18px;
  color: #6d7c95;
}
.device-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--secondary);
  margin-top: 23px;
}
.device-note .icon {
  width: 13px;
  height: 13px;
}
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  border-top: 1px solid #e0e4ec;
  background: #fafbfbef;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  padding: 9px 12px calc(9px + var(--safe-bottom));
  gap: 6px;
}
.tab-bar a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-height: 47px;
  max-width: 160px;
  color: #707989;
  font-size: 10px;
  font-weight: 550;
  border-radius: 12px;
}
.tab-bar .icon {
  height: 23px;
  width: 23px;
  stroke-width: 1.6;
}
.tab-bar a[aria-current="page"] {
  color: var(--blue);
}
.tab-bar a[aria-current="page"] .icon {
  stroke-width: 2;
}
.tab-bar a:active {
  background: #e9edf6;
}
.page-description {
  font-size: 14px;
  color: var(--secondary);
  margin-top: -15px;
  margin-bottom: 25px;
}
.heading-icon {
  width: 48px;
  height: 48px;
  background: #e9edf7;
  color: #5c6e96;
  border-radius: 15px;
  display: grid;
  place-items: center;
}
.library-controls {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 8px 0 17px;
  background: var(--bg);
  margin-top: -8px;
}
.search-field {
  display: flex;
  align-items: center;
  background: #e9ecf1;
  border-radius: 12px;
  height: 46px;
  padding: 0 13px;
  gap: 9px;
  color: #798291;
  margin-bottom: 16px;
}
.search-field > .icon {
  height: 19px;
  width: 19px;
}
.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline-offset: 2px;
  padding: 10px 0;
  color: var(--ink);
  line-height: 1.3;
}
.search-field input::placeholder {
  color: #687284;
}
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search-field button {
  background: transparent;
  display: grid;
  place-items: center;
  width: 34px;
  height: 40px;
  padding: 0;
  color: #626c7f;
}
.search-field button .icon {
  width: 17px;
  height: 17px;
}
.segmented-control {
  display: flex;
  background: #e9ecf1;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}
.segmented-control button {
  flex: 1;
  background: transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  min-height: 36px;
  padding: 7px 4px;
  color: #646e80;
  white-space: nowrap;
}
.segmented-control button[aria-selected="true"] {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px #15203a12;
}
.library-page section[role="tabpanel"] {
  padding-top: 5px;
}
.section-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--secondary);
  max-width: 580px;
  margin: -4px 0 20px;
}
.resource-list {
  border: 1px solid var(--line);
  background: white;
  border-radius: 18px;
  overflow: hidden;
}
.resource-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: white;
  padding: 17px 18px;
  min-height: 94px;
  position: relative;
}
.resource-row + .resource-row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18px;
  left: 88px;
  height: 1px;
  background: var(--line);
}
.resource-row:active {
  background: #f4f6fa;
}
.resource-row img {
  width: 54px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
}
.resource-row-copy {
  display: block;
  flex: 1;
  min-width: 0;
}
.resource-row strong {
  font-size: 15px;
  font-weight: 650;
  display: block;
  margin-bottom: 3px;
  letter-spacing: -0.25px;
}
.resource-row .resource-meta {
  display: block;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.5;
}
.resource-row > .icon {
  width: 17px;
  height: 17px;
  color: #8b94a1;
}
.resource-initial {
  flex: none;
  width: 54px;
  height: 58px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 27px;
  color: #4d576d;
  background: #edf0f7;
}
.resource-initial .icon {
  width: 24px;
  height: 24px;
}
.rights-note {
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.65;
  margin: 17px 4px 0;
}
.small-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 550;
  min-height: 44px;
  flex-shrink: 0;
}
.small-link .icon {
  height: 14px;
  width: 14px;
}
.tracker-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #e9eefb;
  border-radius: 18px;
  padding: 20px;
  margin-top: 22px;
}
.tracker-card > span:nth-child(2) {
  flex: 1;
}
.tracker-card > .icon {
  height: 18px;
  width: 18px;
  color: #536b9b;
}
.tracker-icon {
  width: 39px;
  height: 39px;
  background: white;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #50699b;
}
.empty-state {
  text-align: center;
  border: 1px dashed #cbd2df;
  border-radius: 18px;
  padding: 34px 22px;
  margin-top: 16px;
  color: var(--secondary);
}
.empty-state > .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
}
.empty-state h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.loading-list {
  display: grid;
  gap: 10px;
}
.loading-list div {
  height: 88px;
  border-radius: 18px;
  background: #e8ecf2;
  animation: breathe 1.5s ease-in-out infinite;
}
.loading-list div:nth-child(2) {
  animation-delay: 0.15s;
}
.loading-list div:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes breathe {
  50% {
    opacity: 0.4;
  }
}
.detail-sheet {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 24px;
  width: min(950px, calc(100vw - 64px));
  height: min(820px, calc(100dvh - 64px));
  max-width: none;
  max-height: none;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 24px 100px #09162d33;
}
.detail-sheet::backdrop {
  background: #111a30a6;
  backdrop-filter: blur(5px);
}
.sheet-bar {
  height: 72px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  background: #ffffffee;
  min-width: 0;
}
.sheet-bar > span:first-of-type {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.icon-button {
  background: transparent;
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--blue);
  padding: 0;
}
.icon-button:active {
  background: var(--blue-soft);
}
.sheet-count {
  font-size: 11px;
  color: var(--secondary);
  flex: none;
}
.sheet-scroll {
  height: calc(100% - 72px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--safe-bottom);
}
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  align-items: start;
}
.lesson-content {
  min-width: 0;
  padding: 24px;
}
.lesson-player {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 15px;
  overflow: hidden;
  background: #14213d;
  position: relative;
  color: #dce6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lesson-player iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
  inset: 0;
  z-index: 1;
}
.player-status {
  padding: 20px;
  text-align: center;
  max-width: 290px;
  font-size: 13px;
  line-height: 1.7;
}
.player-status .icon {
  width: 25px;
  height: 25px;
  margin-bottom: 12px;
}
.player-status strong {
  display: block;
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.player-status > span {
  display: block;
}
.video-fallback {
  position: absolute;
  bottom: 7px;
  left: 12px;
  right: 12px;
  font-size: 11px;
  text-align: center;
  color: #d8e3ff;
  z-index: 0;
}
.lesson-info {
  padding: 23px 0;
}
.lesson-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lesson-topline .overline {
  font-size: 9px;
  color: var(--blue);
  margin: 0;
}
.lesson-info h1 {
  font-size: 27px;
  letter-spacing: -0.9px;
  margin: 15px 0 14px;
  line-height: 1.17;
}
.lesson-copy {
  font-size: 14px;
  line-height: 1.75;
  color: var(--secondary);
  margin-bottom: 24px;
}
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 13px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.primary-button {
  background: var(--blue);
  color: white;
}
.primary-button .icon {
  height: 19px;
  width: 19px;
}
.primary-button[aria-pressed="true"] {
  background: #e8eefc;
  color: #2549ac;
}
.primary-button:disabled {
  background: #e7eaf0;
  color: #657085;
}
.primary-button:active,
.secondary-button:active {
  transform: scale(0.985);
}
.secondary-button {
  background: #edf1fa;
  color: #3157ac;
  border: 1px solid #dce3f3;
}
.secondary-button .icon {
  height: 17px;
  width: 17px;
}
.lesson-list-section {
  padding: 28px 20px 28px 0;
}
.lesson-list-section .section-title {
  margin-bottom: 16px;
}
.lesson-list-section h2 {
  font-size: 14px;
}
.lesson-list-section .section-title > span {
  font-size: 10px;
}
#lessons {
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}
#lessons button {
  background: #fff;
  text-align: left;
  width: 100%;
  padding: 17px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 84px;
}
#lessons button + button {
  border-top: 1px solid var(--line);
}
#lessons button[aria-current="true"] {
  background: #edf2ff;
}
.lesson-leading {
  width: 29px;
  height: 29px;
  flex: none;
  background: #eef1f6;
  color: #536784;
  border-radius: 50%;
  font-size: 11px;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
#lessons button[aria-current="true"] .lesson-leading {
  background: var(--blue);
  color: white;
}
.lesson-leading .icon {
  width: 13px;
  height: 13px;
}
.lesson-row-body {
  flex: 1;
  min-width: 0;
}
.lesson-row-body strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 3px;
}
.lesson-row-body small {
  font-size: 10px;
  color: var(--secondary);
}
.lesson-done {
  color: var(--blue);
  height: 15px !important;
  width: 15px !important;
}
.resource-sheet {
  max-width: 680px;
}
.resource-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 25px 25px 20px;
}
.resource-profile img {
  width: 65px;
  height: 77px;
  border-radius: 15px;
  object-fit: cover;
}
.resource-profile h1 {
  font-size: 27px;
  margin: 4px 0;
  letter-spacing: -0.8px;
}
.resource-profile .overline {
  font-size: 9px;
  margin-bottom: 7px;
}
.resource-profile p:last-child {
  font-size: 12px;
  color: var(--secondary);
}
.resource-body {
  padding: 0 25px 28px;
}
.portrait-player {
  display: block;
  width: 100%;
  height: min(50dvh, 460px);
  object-fit: contain;
  border-radius: 16px;
  background: #131c2d;
}
.clip-tabs {
  display: flex;
  gap: 8px;
  margin: 15px 0 23px;
}
.clip-tabs button {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 4px;
  border-radius: 11px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 550;
}
.clip-tabs button[aria-pressed="true"] {
  background: var(--blue-soft);
  border-color: #c5d3fb;
  color: #294eb8;
}
.download-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.download-stack > .primary-button {
  grid-column: 1/-1;
}
.download-stack .secondary-button {
  font-size: 12px;
  padding: 11px 8px;
}
.download-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--secondary);
  margin: 14px 0 0;
  text-align: center;
}
.kit-detail-intro {
  padding: 27px 25px 24px;
}
.kit-detail-intro > .resource-initial {
  margin-bottom: 21px;
  width: 64px;
  height: 68px;
  font-size: 32px;
}
.kit-detail-intro h1 {
  font-size: 30px;
  margin: 10px 0 12px;
}
.kit-detail-intro p:last-child {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.7;
}
.detail-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 19px;
  margin-bottom: 15px;
}
.detail-block h2 {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 12px;
}
.detail-block p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--secondary);
  white-space: pre-line;
}
.detail-block details + details {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 15px;
}
.detail-block summary {
  font-size: 13px;
  cursor: pointer;
  min-height: 28px;
  font-weight: 550;
}
.detail-block details p {
  margin-top: 12px;
}
.kit-script {
  margin-top: 16px;
}
.kit-script h3 {
  font-size: 13px;
  margin-bottom: 7px;
}
.kit-download {
  width: 100%;
  margin-top: 8px;
}
.profile-card {
  padding: 28px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: center;
}
.profile-symbol {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #edf1fa;
  color: #607292;
  margin: 0 auto 16px;
}
.profile-symbol .icon {
  height: 29px;
  width: 29px;
}
.profile-card h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.6px;
  margin-bottom: 5px;
}
.profile-card > p {
  font-size: 13px;
  color: var(--secondary);
  overflow-wrap: anywhere;
}
.profile-card .secondary-button {
  margin-top: 22px;
}
.settings-group {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  margin-top: 25px;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 18px;
  min-height: 89px;
}
.settings-row + .settings-row {
  border-top: 1px solid var(--line);
}
.setting-icon {
  color: #6e7e9c;
}
.settings-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.settings-row strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.settings-row span span {
  display: block;
  font-size: 11px;
  color: var(--secondary);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.setting-value {
  font-size: 10px;
  color: var(--secondary);
  white-space: nowrap;
}
.settings-row > .icon {
  width: 17px;
  height: 17px;
  color: #7b879b;
}
.signout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  min-height: 52px;
  background: #fff;
  color: #b33642;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 24px;
  font-weight: 550;
  font-size: 14px;
}
.signout-button .icon {
  width: 18px;
  height: 18px;
}
.account-footnote {
  text-align: center;
  font-size: 11px;
  color: #687486;
  margin-top: 30px;
  line-height: 1.9;
}
.account-footnote > span {
  color: #828b99;
}
.toast {
  position: fixed;
  z-index: 80;
  bottom: calc(90px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #19243b;
  color: #fff;
  border-radius: 14px;
  padding: 13px 20px;
  font-size: 12px;
  box-shadow: 0 5px 30px #18233b30;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.storage-warning {
  margin-top: 18px;
  font-size: 12px;
  color: #7d5223;
  background: #fff6df;
  border-radius: 12px;
  padding: 12px 15px;
}
.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
}
.auth-shell {
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.auth-shell .app-mark {
  margin: 0 auto 17px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.auth-brand {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1px;
  color: #59667c;
  margin-bottom: 26px;
}
.auth-shell h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin-bottom: 11px;
}
.auth-intro {
  font-size: 14px;
  line-height: 1.65;
  color: var(--secondary);
  max-width: 300px;
  margin: 0 auto 28px;
}
.auth-widget {
  display: flex;
  justify-content: center;
  text-align: left;
  min-height: 200px;
}
.auth-shell #auth-status {
  font-size: 13px;
  color: var(--secondary);
  padding: 25px 12px;
}
.auth-footer {
  font-size: 11px;
  color: var(--secondary);
  margin-top: 24px;
}
.auth-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-shell .cl-rootBox {
  max-width: 100%;
  width: 100%;
}
.auth-shell .cl-cardBox {
  width: 100%;
  max-width: 100%;
  box-shadow: 0 4px 25px #1b284b08;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.auth-shell .cl-card {
  box-shadow: none;
}
.auth-shell .cl-formFieldInput {
  min-height: 46px;
  font-size: 16px;
}
.auth-shell .cl-formButtonPrimary {
  min-height: 46px;
}
.auth-shell .cl-header {
  display: none;
}
.auth-shell .cl-footerAction {
  font-size: 12px;
}
.app-error {
  padding: 30px;
  text-align: center;
  background: var(--bg);
  min-height: 100dvh;
  display: grid;
  place-content: center;
}
.app-error p {
  max-width: 350px;
  margin: 15px auto 25px;
  color: var(--secondary);
  line-height: 1.7;
}
.app-error h1 {
  font-size: 32px;
}
.app-error a {
  justify-self: center;
}
@media (min-width: 761px) {
  .app-header {
    padding-left: 40px;
    padding-right: 40px;
  }
  .page {
    padding-left: 40px;
    padding-right: 40px;
  }
  .continue-card {
    min-height: 310px;
    padding: 30px 34px;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-index {
    font-size: 195px;
    right: 65px;
    top: 35px;
  }
  .hero-bottom {
    max-width: 390px;
  }
  .continue-card::after {
    right: 30px;
    top: -65px;
    width: 440px;
    height: 440px;
  }
  .tab-bar {
    width: 340px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 20px;
    border: 1px solid #dce2ed;
    border-radius: 22px;
    padding: 7px 10px;
    box-shadow: 0 6px 30px #2032530b;
  }
  .tab-bar a {
    min-height: 49px;
  }
  .tab-bar a[aria-current="page"] {
    background: #eef2fc;
  }
  .account-page {
    max-width: 720px;
    margin: auto;
  }
  .library-page {
    max-width: 850px;
    margin: auto;
  }
  .resource-list {
    border-radius: 20px;
  }
  .library-controls {
    top: 0;
    padding-bottom: 22px;
  }
  .resource-row {
    padding: 19px 23px;
  }
  .page-heading h1 {
    font-size: 42px;
  }
}
@media (max-width: 760px) {
  .app-header {
    height: 86px;
    padding: 17px 22px;
  }
  .page {
    padding: 9px 22px calc(110px + var(--safe-bottom));
  }
  .page-heading {
    margin: 8px 0 27px;
  }
  h1 {
    font-size: 35px;
  }
  .course-list {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .course-row {
    padding: 15px;
    gap: 14px;
  }
  .course-art {
    height: 80px;
    width: 69px;
  }
  .course-row strong {
    font-size: 15px;
  }
  .course-row-body .row-meta {
    font-size: 11px;
  }
  .progress-track {
    max-width: 190px;
  }
  .continue-card {
    padding: 24px 23px;
    min-height: 276px;
  }
  .hero-title {
    font-size: 32px;
    margin-top: 17px;
  }
  .hero-index {
    font-size: 143px;
    right: 24px;
    top: 26px;
  }
  .hero-meta {
    font-size: 11px;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .section-title > span {
    font-size: 11px;
  }
  .quiet-pill {
    font-size: 10px;
  }
  .library-banner {
    padding: 18px 17px;
    margin-top: 22px;
  }
  .device-note {
    font-size: 10px;
    line-height: 1.6;
  }
  .detail-sheet {
    width: 100%;
    height: 100dvh;
    max-width: 100%;
    inset: 0;
    border: 0;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
  }
  .detail-sheet::backdrop {
    backdrop-filter: none;
  }
  .sheet-bar {
    height: calc(62px + env(safe-area-inset-top, 0px));
    padding: 9px 16px;
    padding-top: calc(9px + env(safe-area-inset-top, 0px));
    gap: 7px;
  }
  .sheet-bar > span:first-of-type {
    font-size: 13px;
  }
  .sheet-count {
    font-size: 10px;
  }
  .sheet-scroll {
    height: calc(100% - 62px - env(safe-area-inset-top, 0px));
  }
  .lesson-layout {
    display: flex;
    flex-direction: column;
  }
  .lesson-content {
    width: 100%;
    padding: 18px 18px 0;
  }
  .lesson-player {
    border-radius: 13px;
  }
  .lesson-info {
    padding: 23px 4px 20px;
  }
  .lesson-info h1 {
    font-size: 26px;
  }
  .lesson-copy {
    font-size: 14px;
    margin-bottom: 22px;
  }
  .lesson-info .primary-button {
    width: 100%;
  }
  .lesson-list-section {
    padding: 0 22px 28px;
    width: 100%;
  }
  .lesson-list-section h2 {
    font-size: 16px;
  }
  .lesson-list-section .section-title > span {
    font-size: 11px;
  }
  #lessons button {
    min-height: 84px;
    padding: 17px 15px;
  }
  .lesson-row-body strong {
    font-size: 13px;
  }
  .lesson-row-body small {
    font-size: 11px;
  }
  .lesson-leading {
    width: 33px;
    height: 33px;
  }
  .resource-profile {
    padding: 24px 22px 20px;
  }
  .resource-body {
    padding: 0 22px 27px;
  }
  .kit-detail-intro {
    padding: 24px 22px 22px;
  }
  .portrait-player {
    height: min(49dvh, 420px);
  }
  .resource-row {
    padding: 16px 15px;
    gap: 13px;
  }
  .resource-row + .resource-row::before {
    right: 15px;
    left: 82px;
  }
  .resource-row strong {
    font-size: 14px;
  }
  .resource-row .resource-meta {
    font-size: 11px;
  }
  .resource-row img {
    width: 53px;
    height: 60px;
  }
  .resource-initial {
    width: 53px;
  }
  .small-link {
    font-size: 11px;
  }
  .profile-card {
    padding: 28px 16px;
  }
  .settings-row {
    padding: 18px 14px;
    gap: 10px;
  }
  .setting-value {
    font-size: 9px;
  }
  .settings-row strong {
    font-size: 12px;
  }
  .settings-row span span {
    font-size: 10px;
  }
  .auth-page {
    align-items: flex-start;
    padding: calc(50px + env(safe-area-inset-top, 0px)) 20px 35px;
  }
  .auth-shell h1 {
    font-size: 28px;
  }
  .auth-shell .cl-card {
    padding: 25px 21px;
  }
  .auth-shell .cl-footer {
    padding: 18px 21px;
  }
  .auth-brand {
    margin-bottom: 24px;
  }
}
@media (max-width: 359px) {
  .page {
    padding-left: 17px;
    padding-right: 17px;
  }
  .app-header {
    padding-left: 17px;
    padding-right: 17px;
  }
  .quiet-pill {
    font-size: 9px;
    padding: 6px 8px;
  }
  .hero-title {
    font-size: 29px;
  }
  .course-row {
    gap: 11px;
    padding: 12px;
  }
  .course-art {
    width: 60px;
    height: 75px;
  }
  .course-row strong {
    font-size: 14px;
  }
  .settings-row .setting-value {
    display: none;
  }
  .segmented-control button {
    font-size: 11px;
  }
  .small-link {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (hover: hover) {
  .course-row:hover,
  .resource-row:hover {
    background: #fafbfe;
  }
  .continue-card:hover {
    background: #203154;
  }
  .tab-bar a:hover {
    background: #edf1f8;
  }
}
/* Keep verification instructions visible after the first authentication step. */
.auth-page.auth-step .cl-header {
  display: flex;
}
.auth-step .auth-shell > h1,
.auth-step .auth-intro {
  display: none;
}
.auth-step .auth-brand {
  margin-bottom: 28px;
}
.auth-shell .cl-formButtonPrimary {
  background: #315deb;
  background-image: none;
  box-shadow: none;
}
.auth-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.segmented-control button {
  min-height: 40px;
}
.player-help {
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.6;
  padding: 8px 3px 0;
}
.player-help a {
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
}
.player-help .icon {
  height: 12px;
  width: 12px;
}
.auth-step .cl-headerTitle {
  font-size: 23px;
  letter-spacing: -0.6px;
}
.auth-step .cl-headerSubtitle {
  font-size: 13px;
}
.wordmark {
  min-height: 44px;
}
.hero-play.is-reading .icon {
  fill: none;
  stroke-width: 1.6;
}
/* Maintain readable contrast for small labels on light surfaces. */
.tab-bar a {
  color: #626c7d;
}
.search-field input::placeholder {
  color: #5e697b;
}
.account-footnote > span {
  color: #697385;
}
.detail-block summary {
  min-height: 44px;
  padding: 10px 0;
}
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  background: var(--blue-soft);
  color: #284fb5;
  padding: 10px 13px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 13px;
}
.copy-button .icon {
  width: 16px;
  height: 16px;
}
.prompt-text {
  user-select: text;
  -webkit-user-select: text;
}
.detail-sheet > .toast {
  bottom: calc(20px + var(--safe-bottom));
}
.search-field button {
  width: 44px;
  height: 44px;
}
.player-help a {
  min-height: 44px;
}
