:root,
html[data-theme="dark"] {
  --theme-browser: #0b0d10;
  --theme-control-bg: #151920;
  --theme-control-fg: #f3f5f3;
  --theme-control-line: #3b4550;
  --theme-focus: #7cf0c5;
}

html[data-theme="light"] {
  --theme-browser: #f2f3f0;
  --theme-control-bg: #ffffff;
  --theme-control-fg: #121619;
  --theme-control-line: #bcc4bd;
  --theme-focus: #087f5b;
}

.header-tools,
.nav-tools,
.topline-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  color: var(--theme-control-fg);
  background: var(--theme-control-bg);
  border: 1px solid var(--theme-control-line);
  border-radius: 50%;
  cursor: pointer;
}

.theme-toggle:hover { border-color: var(--theme-control-fg); }
.theme-toggle:focus-visible { outline: 3px solid var(--theme-focus); outline-offset: 3px; }
.theme-icon { font: 700 18px/1 Georgia, serif; }
html[data-theme="light"] .theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun { display: none; }
.brand-unit:not(.brand-unit-aixcel) img { padding: 4px; background: #0b0d10; }

@media (max-width: 800px) {
  .theme-toggle { width: 34px; height: 34px; }
}
