/* Shared light-theme overrides + theme toggle button.
   Loaded after each page's inline <style>; html[data-theme="light"] has
   higher specificity than :root, so these win when the theme is light. */

html[data-theme="light"] {
  --bg: #f5f3fb;
  --input-bg: #ffffff;
  --input-border: #ddd6ee;
  --text: #1c1533;
  --muted: #6b6580;
  --placeholder: #a49bb8;
  --link: #6a4dd8;
  --accent: #7b5ce5;
  --accent-hover: #6a4dd8;
  --error: #dc2626;
  --success: #15803d;
  --card: #ffffff;
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--input-bg, #272135);
  border: 1px solid var(--input-border, #3a3350);
  border-radius: 50%;
  color: var(--text, #f5f3fb);
  cursor: pointer;
  font-size: 1rem;
  z-index: 50;
  transition: border-color 0.15s;
}

.theme-toggle:hover { border-color: var(--accent, #7b5ce5); }
