body.lite-shell {
  background: linear-gradient(180deg, #f8fff9 0%, #edf7f0 100%);
}

body.lite-shell {
  display: flex;
}

.lite-sidebar {
  width: 250px;
  min-height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--green-mist);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 20px 12px;
  overflow-y: auto;
}

.lite-sidebar-brand {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: var(--white);
  border-radius: 22px;
  margin-bottom: 14px;
  min-height: 96px;
  box-shadow: 0 12px 28px rgba(45,106,79,0.16);
}

.lite-sidebar-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lite-sidebar-brand-lockup svg {
  width: 54px;
  height: 40px;
  flex: 0 0 auto;
}

.lite-sidebar-brand-copy {
  display: grid;
  gap: 2px;
}

.lite-sidebar-wordmark {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  color: var(--white);
}

.lite-sidebar-sub {
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lite-sidebar-nav {
  display: grid;
  gap: 6px;
}

.lite-sidebar-nav button {
  border: 0;
  background: transparent;
  color: var(--text-mid);
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 44px;
}

.lite-sidebar-nav button.is-active,
.lite-sidebar-nav button:hover {
  background: var(--green-mist);
}

.lite-quick-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lite-page .page-inner {
  max-width: 980px;
}

.lite-main {
  width: calc(100% - 250px);
  margin-left: 250px;
}

.lite-tabbar {
  position: fixed;
  inset: auto 0 0;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 12px 14px;
  background: var(--white);
  border-top: 1px solid var(--green-mist);
  z-index: 40;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

.lite-tabbar button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.lite-tabbar button.is-active {
  background: var(--green-mid);
  color: var(--white);
}

.lite-hero-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 20px 22px;
}

.lite-hero-banner:hover,
.lite-hero-banner:focus-within {
  transform: none;
  box-shadow: 0 10px 24px rgba(45,106,79,0.08);
  border-color: rgba(116,198,157,0.18);
}

.lite-hero-copy {
  display: grid;
  gap: 8px;
}

.lite-hero-kicker {
  margin: 0;
  color: var(--green-mid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lite-hero-banner h3,
.lite-hero-banner p {
  margin: 0;
}

.lite-hero-banner h3 {
  font-size: 26px;
}

.lite-hero-graphic {
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  gap: 8px;
  justify-items: end;
  color: rgba(64,145,108,0.24);
  line-height: 1;
  pointer-events: none;
}

.lite-hero-graphic span:first-child {
  font-size: 30px;
}

.lite-hero-graphic span:last-child {
  font-size: 24px;
}

.lite-quick-card {
  min-height: 180px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 18px 16px;
}

.lite-quick-card strong {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.lite-quick-icon {
  font-size: 42px;
  line-height: 1;
}

.lite-topic-grid,
.lite-page .topic-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lite-topic-card {
  display: grid;
  grid-template-rows: auto minmax(84px, 1fr) auto auto;
  gap: 10px;
  min-height: 100%;
  padding: 14px;
}

.lite-topic-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.lite-topic-icon {
  font-size: 24px;
  line-height: 1;
}

.lite-topic-head strong {
  font-size: 17px;
  line-height: 1.18;
}

.lite-topic-card .muted {
  margin: 0;
  min-height: 84px;
  line-height: 1.38;
  font-size: 14px;
}

.lite-topic-meta-row {
  display: flex;
  align-items: center;
}

.lite-topic-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(223,244,224,0.85);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.lite-topic-status.is-complete {
  background: rgba(101,154,117,0.12);
  color: var(--green-dark);
}

.lite-topic-button {
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 10px 14px;
}

.lite-topic-controls-panel {
  margin-bottom: 16px;
}

.lite-flashcard-card {
  grid-template-rows: auto minmax(18px, auto) auto;
}

.lite-flashcard-card .muted {
  min-height: 18px;
}

.flashcard-browser-card-lite {
  padding: 18px;
  border-radius: 20px;
}

.flashcard-browser-card-lite .flashcard-browser-row {
  padding: 12px 14px;
}

.flashcard-browser-card-lite .flashcard-browser-open {
  min-width: 120px;
}

#lite-flashcards-shell .flashcard-session {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

#lite-flashcards-shell .flashcard-session-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#lite-flashcards-shell .flashcard-session-chip {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(116,198,157,0.28);
  background: var(--green-snow);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

#lite-flashcards-shell button.flashcard-session-chip {
  cursor: pointer;
}

#lite-flashcards-shell button.flashcard-session-chip.is-active {
  background: var(--green-mid);
  color: var(--white);
  border-color: transparent;
}

#lite-flashcards-shell .flashcard-session-stage {
  display: grid;
}

#lite-flashcards-shell .flashcard-stage-card {
  min-height: 250px;
  padding: 28px 22px;
  border-radius: 24px;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  background: linear-gradient(140deg, rgba(101,154,117,0.95), rgba(58,102,78,0.95));
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
}

#lite-flashcards-shell .flashcard-stage-card.is-revealed {
  background: rgba(255,255,255,0.96);
  color: var(--text-mid);
  border: 1px solid rgba(74,138,98,0.18);
  cursor: default;
}

#lite-flashcards-shell .flashcard-stage-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

#lite-flashcards-shell .flashcard-stage-body {
  display: grid;
  gap: 12px;
}

#lite-flashcards-shell .flashcard-stage-body h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

#lite-flashcards-shell .flashcard-stage-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

#lite-flashcards-shell .flashcard-session-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
}

#lite-flashcards-shell .flashcard-session-counter {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

#lite-flashcards-shell .flashcard-session-actions {
  justify-content: center;
}

#lite-flashcards-shell .flashcard-session-actions .action-button {
  min-height: 36px;
  padding: 9px 14px;
}

#lite-flashcards-shell .flashcard-session-stats,
#lite-flashcards-shell .flashcard-prompt-card {
  border-radius: 20px;
  border: 1px solid rgba(116,198,157,0.2);
  background: var(--green-snow);
  padding: 14px 16px;
}

#lite-flashcards-shell .flashcard-session-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

#lite-flashcards-shell .flashcard-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 700;
}

#lite-flashcards-shell .flashcard-stat-chip.is-correct {
  color: var(--green-dark);
}

#lite-flashcards-shell .flashcard-stat-chip.is-retry {
  color: #b45555;
}

#lite-flashcards-shell .flashcard-prompt-card h4 {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 900;
}

#lite-flashcards-shell .flashcard-prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#lite-flashcards-shell .flashcard-prompt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(116,198,157,0.22);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .lite-sidebar {
    display: none;
  }

  .lite-main {
    width: 100%;
    margin-left: 0;
    padding: 18px 14px calc(var(--tabbar-h) + 30px) !important;
  }

  .lite-page .page-inner {
    max-width: 100%;
  }

  .lite-tabbar {
    display: grid;
  }

  .lite-quick-grid,
  .topic-grid,
  .lite-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lite-hero-graphic {
    display: none;
  }

  #lite-flashcards-shell .flashcard-session-actions {
    width: 100%;
  }

  #lite-flashcards-shell .flashcard-session-actions .action-button {
    flex: 1 1 140px;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .lite-quick-grid,
  .topic-grid,
  .lite-topic-grid {
    grid-template-columns: 1fr;
  }
}

body.theme-dark.lite-shell {
  background: linear-gradient(180deg, #020604 0%, #06110d 100%) !important;
}

body.theme-dark.lite-shell .lite-main,
body.theme-dark.lite-shell .lite-page {
  background: transparent !important;
}

body.theme-dark.lite-shell .lite-sidebar,
body.theme-dark.lite-shell .lite-tabbar,
body.theme-dark.lite-shell .card,
body.theme-dark.lite-shell .topic-card,
body.theme-dark.lite-shell .topic-grid-card,
body.theme-dark.lite-shell .lite-quick-card,
body.theme-dark.lite-shell .lite-topic-card,
body.theme-dark.lite-shell .flashcard-browser-card,
body.theme-dark.lite-shell .flashcard-browser-card-lite,
body.theme-dark.lite-shell .flashcard-browser-row,
body.theme-dark.lite-shell .flashcard-session-stats,
body.theme-dark.lite-shell .flashcard-prompt-card {
  background: #07140f !important;
  border-color: rgba(134,239,172,0.18);
  color: var(--text-dark);
  box-shadow: 0 14px 34px rgba(0,0,0,0.34);
}

body.theme-dark.lite-shell .lite-hero-banner,
body.theme-dark.lite-shell .lite-sidebar-brand {
  background: linear-gradient(135deg, #0d241b, #04100b) !important;
  border-color: rgba(134,239,172,0.18);
}

body.theme-dark.lite-shell .lite-sidebar-nav button:hover,
body.theme-dark.lite-shell .lite-sidebar-nav button.is-active,
body.theme-dark.lite-shell .lite-tabbar button.is-active,
body.theme-dark.lite-shell .flashcard-session-chip,
body.theme-dark.lite-shell .lite-topic-status,
body.theme-dark.lite-shell .flashcard-prompt-chip {
  background: #10251c !important;
  border-color: rgba(134,239,172,0.2);
  color: var(--text-dark);
}

body.theme-dark.lite-shell #lite-flashcards-shell .flashcard-stage-card {
  background: linear-gradient(140deg, #123d2c, #061b13) !important;
  border-color: rgba(134,239,172,0.22);
  color: var(--text-dark);
}

body.theme-dark.lite-shell #lite-flashcards-shell .flashcard-stage-card.is-revealed {
  background: #07140f !important;
  border-color: rgba(134,239,172,0.2);
  color: var(--text-dark);
}

body.theme-dark.lite-shell .flashcard-browser-open,
body.theme-dark.lite-shell .action-button {
  background: #132d22 !important;
  border-color: rgba(134,239,172,0.22);
  color: var(--text-dark);
}

body.theme-dark.lite-shell .action-button.is-primary,
body.theme-dark.lite-shell #lite-flashcards-shell button.flashcard-session-chip.is-active {
  background: #34d399 !important;
  color: #04100b;
}
