.tem-theme-toggle {
  position: fixed;
  z-index: 99998;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid #4a5359;
  border-radius: 999px;
  background: rgba(16, 19, 21, .96);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.tem-theme-toggle:hover { transform: translateY(-2px); box-shadow: 0 11px 28px rgba(0,0,0,.35); }
.tem-theme-toggle:focus-visible { outline: 3px solid #18cfb0; outline-offset: 3px; }
.tem-theme-toggle__icon { font-size: 19px; line-height: 1; }
body.olam-dark-mode { background-color: #050505 !important; color: #f3f5f6; }
body.olam-dark-mode .page-top,
body.olam-dark-mode #footer,
body.olam-dark-mode .paper,
body.olam-dark-mode article.post,
body.olam-dark-mode article.download,
body.olam-dark-mode article.page,
body.olam-dark-mode article.hentry,
body.olam-dark-mode .sidebar,
body.olam-dark-mode .blog-sidebar,
body.olam-dark-mode .edd_download_inner,
body.olam-dark-mode .product-item {
  background-color: #101214 !important;
  border-color: #272c30 !important;
}
body.olam-dark-mode .tem-theme-toggle {
  border-color: #d4b000;
  background: #d8ad00;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
}
@media (max-width: 600px) {
  .tem-theme-toggle { left: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); min-height: 44px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tem-theme-toggle { transition: none; }
}
