.sc-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 28px;
  padding: 0 !important;
  border-radius: 999px;
  border: 1px solid var(--border, #d3dddb) !important;
  background: var(--soft, #f5f7f6) !important;
  color: var(--muted, #3b5458) !important;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.sc-theme-toggle:hover { border-color: var(--strong, #b9c8c5) !important; }
.sc-theme-toggle:focus-visible { outline: 2px solid var(--accent, #00747c); outline-offset: 2px; }
.sc-theme-toggle .stt-sun { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #c25e0c; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(15,37,41,.14); }
.sc-theme-toggle .stt-sun svg { width: 14px; height: 14px; color: #c25e0c; }
.sc-theme-toggle .stt-moon,.sc-theme-toggle .stt-stars { display: none; }

html[data-theme="dark"] .sc-theme-toggle { background: #112124 !important; border-color: #2f5054 !important; }
html[data-theme="dark"] .sc-theme-toggle .stt-sun { display: none; }
html[data-theme="dark"] .sc-theme-toggle .stt-moon { position: absolute; top: 4px; left: 6px; display: grid; place-items: center; color: #c6dcda; }
html[data-theme="dark"] .sc-theme-toggle .stt-moon svg { width: 13px; height: 13px; color: #c6dcda; }
html[data-theme="dark"] .sc-theme-toggle .stt-stars { position: absolute; top: 50%; right: 6px; display: block; color: #86a5a2; transform: translateY(-50%); }
html[data-theme="dark"] .sc-theme-toggle .stt-stars svg { display: block; width: 15px; height: 15px; color: #86a5a2; }
