/* MaggotClaw design kit: the look of the theme controls that theme.js fills in. Reads only the kit's variables.
   Works with or without components.css. */
[data-mc-theme-toggle] {
  min-height: 32px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: var(--font-caption-size);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
[data-mc-theme-toggle]:hover { background: var(--color-surface-2); }

[data-mc-theme-switch] {
  display: inline-flex;
  width: fit-content;
  gap: var(--space-1);
  padding: var(--space-1);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-surface);
}
[data-mc-theme-switch] button {
  min-height: 32px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: var(--font-label-size);
  font-weight: 500;
  cursor: pointer;
}
[data-mc-theme-switch] button:hover { background: var(--color-surface-2); color: var(--color-text); }
[data-mc-theme-switch] button[aria-pressed="true"] {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}
[data-mc-theme-toggle]:focus-visible,
[data-mc-theme-switch] button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
