:root {
  color-scheme: light;
  --page: #f6f8fc;
  --surface: #ffffff;
  --surface-muted: #f2f4f8;
  --surface-hover: #f4f6fa;
  --text: #202a42;
  --text-secondary: #49546c;
  --text-muted: #667085;
  --text-faint: #758098;
  --border: #dbe1ec;
  --border-soft: #e9edf5;
  --input-border: #d7deeb;
  --accent: #253fd3;
  --accent-fill: #253fd3;
  --accent-hover: #1a2fad;
  --accent-soft: #eef1fd;
  --focus: #8f9cf1;
  --success: #20664e;
  --success-soft: #e8f5ee;
  --warning: #886624;
  --warning-soft: #fff8e8;
  --warning-border: #ecdbaa;
  --error: #a4362b;
  --error-soft: #fff1f0;
  --error-border: #f7c7c2;
  --shadow: #20396805;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme='dark']) {
    color-scheme: dark;
    --page: #101522;
    --surface: #192132;
    --surface-muted: #222d40;
    --surface-hover: #27334a;
    --text: #e6ebf5;
    --text-secondary: #c4cede;
    --text-muted: #a7b3c8;
    --text-faint: #93a1bb;
    --border: #36435b;
    --border-soft: #2d3950;
    --input-border: #42516a;
    --accent: #a5b4ff;
    --accent-fill: #465cd2;
    --accent-hover: #394dbb;
    --accent-soft: #283451;
    --focus: #a5b4ff;
    --success: #7edbb1;
    --success-soft: #1c3a33;
    --warning: #edca7c;
    --warning-soft: #392f20;
    --warning-border: #655233;
    --error: #ffa89d;
    --error-soft: #3c252b;
    --error-border: #75434b;
    --shadow: #00000020;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #101522;
  --surface: #192132;
  --surface-muted: #222d40;
  --surface-hover: #27334a;
  --text: #e6ebf5;
  --text-secondary: #c4cede;
  --text-muted: #a7b3c8;
  --text-faint: #93a1bb;
  --border: #36435b;
  --border-soft: #2d3950;
  --input-border: #42516a;
  --accent: #a5b4ff;
  --accent-fill: #465cd2;
  --accent-hover: #394dbb;
  --accent-soft: #283451;
  --focus: #a5b4ff;
  --success: #7edbb1;
  --success-soft: #1c3a33;
  --warning: #edca7c;
  --warning-soft: #392f20;
  --warning-border: #655233;
  --error: #ffa89d;
  --error-soft: #3c252b;
  --error-border: #75434b;
  --shadow: #00000020;
}
pma-theme-picker {
  display: inline-block;
}
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 88px;
  height: 44px;
  padding: 4px 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface-muted);
  box-shadow: inset 0 1px 3px #00000014;
  cursor: pointer;
}
.theme-toggle::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 5px #00000020;
  transition:
    transform 180ms ease,
    background 180ms ease;
}
.theme-toggle[data-dark='true'] {
  background: var(--page);
}
.theme-toggle[data-dark='true']::before {
  transform: translateX(44px);
  background: var(--accent-soft);
}
.theme-toggle[data-dark='false'] .theme-sun,
.theme-toggle[data-dark='true'] .theme-moon {
  color: var(--text);
}
.theme-toggle:hover {
  border-color: var(--text-faint);
}
.theme-toggle svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle::before {
    transition: none;
  }
}
.theme-toggle:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
