.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--control-border, #767d86);
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary, inherit);
  cursor: pointer;
}

.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--background-accent, #edf2f7); }
.theme-toggle:focus-visible {
  outline: 2px solid var(--primary-color, currentColor);
  outline-offset: 3px;
}

.theme-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .theme-moon,
:root[data-theme="light"] .theme-toggle .theme-sun { display: none; }
:root[data-theme="light"] .theme-toggle .theme-moon { display: block; }
