.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  flex-shrink: 0; min-width: 36px; min-height: 36px; padding: 7px 10px;
  border: 1px solid #303a47; border-radius: 10px; background: #151c25;
  color: #d7e1ed; font: 500 12px/1.2 Inter, Arial, sans-serif; cursor: pointer;
  touch-action: manipulation; transition: background-color 140ms, border-color 140ms;
}
.theme-toggle:hover { background: #23312e; border-color: #68cdb1; }
.theme-toggle:active { transform: translateY(1px); }
.theme-toggle:focus-visible { outline: 2px solid #68cdb1; outline-offset: 3px; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.theme-dark-label, html[data-theme="light"] .theme-light-label { display: none; }
html[data-theme="light"] .theme-dark-label { display: inline-flex; }
.theme-light-label, .theme-dark-label { align-items: center; gap: 7px; }
.header .theme-toggle .theme-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.header .theme-toggle { width: 36px; height: 36px; padding: 0; }
.theme-page-control { display: flex; justify-content: flex-end; padding: 12px 24px 0; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="light"] .theme-toggle { color: #24423b; background: #fff; border-color: #cbd8df; }
html[data-theme="light"] .theme-toggle:hover { background: #e5f5ef; border-color: #379579; }
html[data-theme="light"] .theme-toggle:focus-visible { outline-color: #087d60; }
@media(max-width:540px) {
  .header .theme-toggle { width: 30px; min-width: 30px; }
  .theme-page-control { padding: 10px 16px 0; }
  .rewards-nav { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .rewards-nav .theme-toggle { margin-left: auto; }
  .rewards-nav nav { order: 3; width: 100%; justify-content: center; }
  .top .theme-toggle .theme-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media(prefers-reduced-motion:reduce) { .theme-toggle { transition: none; } }
