/* Shared light-theme token overrides + bottom-right toggle button.
   Load AFTER page's inline :root tokens so [data-theme="light"] wins on source order. */

html[data-theme="light"] {
  --bg:           #eeebe4;
  --glass-bg:     rgba(255,255,255,0.55);
  --glass-bg-h:   rgba(255,255,255,0.75);
  --glass-border: rgba(0,0,0,0.10);
  --glass-hi:     rgba(0,0,0,0.22);
  --text:         #111111;
  --muted:        #5a5d63;
  --micro:        #a5a7ab;
  --wire:         rgba(0,0,0,0.20);
}

/* Toggle button */
#theme-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483600;
  width: 38px;
  height: 38px;
  border-radius: 100px;
  background: var(--glass-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.10));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--muted, #8a8d91);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
#theme-toggle:hover {
  color: var(--text, #fff);
  border-color: var(--glass-hi, rgba(255,255,255,0.22));
  transform: translateY(-1px);
}
#theme-toggle .theme-ico { display: block; }
#theme-toggle .theme-ico-moon { display: none; }
[data-theme="light"] #theme-toggle .theme-ico-sun { display: none; }
[data-theme="light"] #theme-toggle .theme-ico-moon { display: block; }

@media (max-width: 520px) {
  #theme-toggle { right: 14px; bottom: 14px; width: 34px; height: 34px; }
}
