.hl-theme-control {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #bac7c7;
  border-radius: 8px;
  background: #fff;
  color: #172a35;
  box-shadow: 0 4px 16px rgb(17 39 52 / 18%);
  font: 600 13px 'DM Sans', sans-serif;
}

.hl-theme-control select {
  min-height: 34px;
  max-width: 180px;
  padding: 5px 8px;
  border: 1px solid #97aaa8;
  border-radius: 5px;
  background: #fff;
  color: #172a35;
  font: inherit;
}

.hl-theme-control :focus-visible {
  outline: 3px solid #e8b638;
  outline-offset: 2px;
}

body[data-hl-theme='light'] { background-color: #fbfaf6 !important; color: #172a35; }
body[data-hl-theme='dark'] { background-color: #18262c !important; color: #edf3f1; }
body[data-hl-theme='dark'] .section,
body[data-hl-theme='dark'] .lesson-card,
body[data-hl-theme='dark'] .game-card,
body[data-hl-theme='dark'] .card,
body[data-hl-theme='dark'] .course-row,
body[data-hl-theme='dark'] .welcome,
body[data-hl-theme='dark'] .story-section { background-color: #24363d !important; color: #edf3f1 !important; }
body[data-hl-theme='dark'] h1,
body[data-hl-theme='dark'] h2,
body[data-hl-theme='dark'] h3,
body[data-hl-theme='dark'] p,
body[data-hl-theme='dark'] .course-row h2 { color: #edf3f1; }
body[data-hl-theme='dark'] .course-header,
body[data-hl-theme='dark'] .site-header,
body[data-hl-theme='dark'] .navbar { background-color: #101a1e !important; }
body[data-hl-theme='dark'] .hl-theme-control { background: #24363d; color: #edf3f1; border-color: #66817f; }
body[data-hl-theme='dark'] .hl-theme-control select { background: #18262c; color: #edf3f1; border-color: #66817f; }

body[data-hl-theme='independence-day'] { background-color: #fff8ee !important; color: #18334e; }
body[data-hl-theme='independence-day'] .site-header,
body[data-hl-theme='independence-day'] .course-header,
body[data-hl-theme='independence-day'] .navbar { background: linear-gradient(100deg, #a9363e 0 33%, #fff 33% 67%, #244f7a 67%) !important; }
body[data-hl-theme='independence-day'] .site-nav a,
body[data-hl-theme='independence-day'] .course-nav a,
body[data-hl-theme='independence-day'] .navbar a { color: #18334e !important; }
body[data-hl-theme='independence-day'] .primary-link,
body[data-hl-theme='independence-day'] .open-course { background-color: #244f7a; border-color: #244f7a; color: #fff; }
body[data-hl-theme='independence-day'] .section,
body[data-hl-theme='independence-day'] .lesson-card,
body[data-hl-theme='independence-day'] .course-row { border-color: #d5bfc0; }

body[data-hl-theme='halloween'] { background-color: #fff6e9 !important; color: #2e2a29; }
body[data-hl-theme='halloween'] .site-header,
body[data-hl-theme='halloween'] .course-header,
body[data-hl-theme='halloween'] .navbar { background-color: #332b29 !important; }
body[data-hl-theme='halloween'] .primary-link,
body[data-hl-theme='halloween'] .open-course { background-color: #b94d25; border-color: #b94d25; color: #fff; }

body[data-hl-theme='winter-holiday'] { background-color: #f2faf7 !important; color: #183d35; }
body[data-hl-theme='winter-holiday'] .site-header,
body[data-hl-theme='winter-holiday'] .course-header,
body[data-hl-theme='winter-holiday'] .navbar { background-color: #155b4b !important; }
body[data-hl-theme='winter-holiday'] .primary-link,
body[data-hl-theme='winter-holiday'] .open-course { background-color: #a83f42; border-color: #a83f42; color: #fff; }

body[data-hl-theme='new-year'] { background-color: #fff9e9 !important; color: #28364d; }
body[data-hl-theme='new-year'] .site-header,
body[data-hl-theme='new-year'] .course-header,
body[data-hl-theme='new-year'] .navbar { background-color: #243451 !important; }
body[data-hl-theme='new-year'] .primary-link,
body[data-hl-theme='new-year'] .open-course { background-color: #c38b20; border-color: #c38b20; color: #172a35; }

.theme-switch-wrapper { display: none !important; }

.hl-language-control {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2001;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #bac7c7;
  border-radius: 8px;
  background: #fff;
  color: #172a35;
  box-shadow: 0 4px 16px rgb(17 39 52 / 18%);
  font: 600 13px 'DM Sans', sans-serif;
}

.hl-language-control select {
  min-height: 34px;
  max-width: 140px;
  padding: 5px 8px;
  border: 1px solid #97aaa8;
  border-radius: 5px;
  background: #fff;
  color: #172a35;
  font: inherit;
}

.hl-language-control :focus-visible {
  outline: 3px solid #e8b638;
  outline-offset: 2px;
}

body[data-hl-theme='dark'] .hl-language-control { background: #24363d; color: #edf3f1; border-color: #66817f; }
body[data-hl-theme='dark'] .hl-language-control select { background: #18262c; color: #edf3f1; border-color: #66817f; }

@media (max-width: 520px) {
  .hl-theme-control { right: 10px; bottom: 10px; }
  .hl-theme-control select { max-width: 150px; }
  .hl-language-control { left: 10px; bottom: 70px; }
  .hl-language-control select { max-width: 110px; }
}