html.theme-b {
  --sw-bg: #faf9fe;
  --sw-surface: #ffffff;
  --sw-surface-soft: #f7f3ec;
  --sw-line: #ebe4da;
  --sw-text: #1d1b18;
  --sw-muted: #746b60;
  --sw-blue: #fe9400;
  --sw-blue-dark: #633700;
  --sw-blue-soft: #ffdcbf;
  --sw-green: #008733;
  --sw-green-soft: #dbffe1;
  --sw-shadow: 0 14px 34px rgba(92, 61, 15, 0.11);
  --sw-shadow-soft: 0 8px 22px rgba(92, 61, 15, 0.08);
  --sw-radius: 22px;
}

html.theme-b body {
  background:
    radial-gradient(circle at 50% -8%, rgba(254, 148, 0, 0.16), transparent 34%),
    #faf9fe !important;
}

html.theme-b .app {
  background: #faf9fe;
}

html.theme-b .topbar {
  justify-items: stretch;
  min-height: 74px;
  border-bottom-color: #ebe4da;
}

html.theme-b h1 {
  color: #1d1b18;
  text-align: left;
}

html.theme-b .progress {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(92, 61, 15, 0.08);
}

html.theme-b .progress strong {
  color: #fe9400;
}

html.theme-b .tabs {
  top: auto;
  margin-top: 14px;
  border-color: #ebe4da;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(92, 61, 15, 0.08);
}

html.theme-b.free-hub .tabs:empty,
html.theme-b.zero-study .tabs:empty {
  display: none;
}

html.theme-b .free-style-bar {
  display: none;
}

html.theme-b .free-a-hero {
  position: relative;
  overflow: hidden;
  margin: 18px 0 14px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 34%, rgba(255, 255, 255, 0.34) 0 17%, transparent 18%),
    linear-gradient(135deg, #fe9400 0%, #ffb25a 100%);
  color: #2d1600;
  box-shadow: 0 14px 34px rgba(92, 61, 15, 0.11);
}

html.theme-b .free-a-hero__copy span,
html.theme-b .free-a-hero__copy p,
html.theme-b .free-a-hero__score {
  color: #2d1600;
}

html.theme-b .free-a-hero__copy span {
  opacity: 0.78;
}

html.theme-b .free-a-hero__copy p {
  opacity: 0.82;
}

html.theme-b .free-a-hero__bar {
  background: rgba(99, 55, 0, 0.16);
}

html.theme-b .free-a-hero__bar i {
  background: #2d1600;
}

html.theme-b .free-a-stats div {
  border-color: #ebe4da;
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(92, 61, 15, 0.08);
}

html.theme-b .free-a-stats strong {
  color: #fe9400;
}

html.theme-b .study-level-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}

html.theme-b .study-level-tabs button {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid #ebe4da;
  border-radius: 999px;
  background: #ffffff;
  color: #746b60;
  box-shadow: 0 8px 22px rgba(92, 61, 15, 0.08);
}

html.theme-b.free-hub .study-level-tabs {
  gap: 14px;
}

html.theme-b.free-hub .study-level-tabs button {
  min-height: 126px;
  align-content: center;
  border-radius: 28px;
}

html.theme-b.free-hub .study-level-tabs strong {
  font-size: 20px;
}

html.theme-b.free-hub .study-level-tabs span {
  font-size: 13px;
  line-height: 1.45;
}

html.theme-b.free-hub .stage {
  display: none;
}

html.theme-b .study-level-tabs button.active {
  border-color: #ffdcbf;
  background: #fe9400;
  color: #2d1600;
}

html.theme-b .study-level-tabs strong,
html.theme-b .study-level-tabs span {
  display: block;
}

html.theme-b .study-level-tabs strong {
  font-size: 14px;
}

html.theme-b .study-level-tabs span {
  font-size: 11px;
  line-height: 1.25;
}

html.theme-b .free-style-bar a,
html.theme-b .free-bottom-nav a {
  border-radius: 999px;
}

html.theme-b .free-style-bar .theme-b-link,
html.theme-b .free-bottom-nav a.active {
  background: #ffdcbf;
  color: #633700;
}

html.theme-b .free-bottom-nav {
  border-top-color: #ebe4da;
}

html.theme-b .tab,
html.theme-b .category-select,
html.theme-b .zero-group-select,
html.theme-b .lesson-select,
html.theme-b .search,
html.theme-b .voice-select,
html.theme-b .play-btn,
html.theme-b .mini-btn,
html.theme-b .solid-btn,
html.theme-b .soft-btn,
html.theme-b .ghost-btn,
html.theme-b .danger-btn {
  border-radius: 999px;
}

html.theme-b .solid-btn,
html.theme-b .soft-btn,
html.theme-b .ghost-btn,
html.theme-b .danger-btn {
  min-height: 42px;
  border: 0;
  padding: 10px 16px;
  font-weight: 900;
}

html.theme-b .solid-btn {
  background: #fe9400;
  color: #2d1600;
}

html.theme-b .soft-btn,
html.theme-b .ghost-btn {
  background: #f7f3ec;
  color: #633700;
}

html.theme-b .danger-btn {
  background: #ffdad6;
  color: #7c1d1d;
}

html.theme-b .zero-group-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ebe4da;
  background: #ffffff;
  color: #1d1b18;
  padding: 10px 38px 10px 12px;
  font-weight: 800;
  outline: none;
}

html.theme-b .tab.active {
  background: #fe9400;
  color: #2d1600;
}

html.theme-b .lesson-panel,
html.theme-b .card,
html.theme-b .empty {
  border-color: #ebe4da;
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(92, 61, 15, 0.08);
}

html.theme-b .cover {
  min-height: 112px;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  background:
    radial-gradient(circle at 86% 18%, rgba(254, 148, 0, 0.22) 0 18%, transparent 19%),
    linear-gradient(135deg, #fff8ef 0%, #ffe1bf 100%) !important;
  color: #2d1600;
}

html.theme-b .cover small {
  color: #633700;
  font-size: 12px;
}

html.theme-b .cover h2 {
  color: #2d1600;
  font-size: 25px;
}

html.theme-b.zero-study .lesson-panel .panel-body {
  display: none;
}

html.theme-b.zero-study .lesson-panel {
  margin-bottom: 14px;
}

html.theme-b .zero-group-grid {
  display: grid;
  gap: 12px;
}

html.theme-b .zero-group-card {
  cursor: default;
}

html.theme-b .zero-chip-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

html.theme-b .zero-chip-line .thai-chip {
  display: inline-grid;
  gap: 2px;
  min-width: 54px;
  padding: 7px 9px;
  border-radius: 14px;
  background: #fff8ef;
  color: #2d1600;
  text-align: center;
}

html.theme-b .zero-chip-line .thai-chip b {
  font-size: 19px;
}

html.theme-b .zero-chip-line .thai-chip small {
  color: #746b60;
  font-size: 11px;
  font-weight: 800;
}

html.theme-b .zero-group-foot,
html.theme-b .zero-practice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: #746b60;
  font-size: 13px;
  font-weight: 900;
}

html.theme-b .zero-practice-head {
  margin: 0 0 10px;
}

html.theme-b .zero-practice-head .ghost-btn {
  min-height: 36px;
  padding: 8px 12px;
}

html.theme-b .zero-practice-card .prompt {
  color: #1d1b18;
  font-size: clamp(44px, 18vw, 76px);
}

html.theme-b .meter span {
  background: linear-gradient(90deg, #fe9400, #633700);
}

html.theme-b .speaker,
html.theme-b .token b,
html.theme-b .vocab-word {
  color: #fe9400;
}

html.theme-b .play-btn,
html.theme-b .mini-btn.primary {
  background: #fe9400;
  color: #2d1600;
}

html.theme-b .word-play {
  background: #f7f3ec;
  color: #633700;
}

html.theme-b .word-save,
html.theme-b .word-save.saved {
  background: #ffdcbf;
  color: #633700;
}

html.theme-b .zero-card .speaker {
  min-width: 72px;
}

html.theme-b .zero-prompt {
  color: #1d1b18;
  font-size: clamp(28px, 9vw, 38px);
  font-weight: 900;
}
