:root {
  --theme-browser: #11171b;
  --theme-control-bg: #182126;
  --theme-control-fg: #edf0e9;
  --theme-control-line: #354148;
  --theme-focus: #9fffd0;
}

html[data-theme="light"] {
  --night: #f2f5ef;
  --panel: #ffffff;
  --mint: #087f62;
  --paper: #11171b;
  --line: #c9d2cc;
  --muted: #596762;
  --theme-browser: #f2f5ef;
  --theme-control-bg: #ffffff;
  --theme-control-fg: #11171b;
  --theme-control-line: #c9d2cc;
  --theme-focus: #087f62;
}

.nav-tools,
.topline-tools,
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.systems-link {
  padding: 8px 10px;
  border: 1px solid var(--theme-control-line);
  color: var(--theme-control-fg);
  font: 700 10px/1 ui-monospace, monospace;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
}

.systems-link:hover {
  border-color: var(--theme-control-fg);
}

.theme-toggle {
  width: 40px !important;
  height: 40px;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--theme-control-line) !important;
  border-radius: 50% !important;
  background: var(--theme-control-bg) !important;
  color: var(--theme-control-fg) !important;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--theme-control-fg) !important;
  background: var(--theme-control-bg) !important;
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 3px;
}

.theme-icon {
  font: 700 19px/1 Georgia, serif;
}

html[data-theme="light"] .theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

.brand-unit:not(.aixcel) img {
  padding: 4px;
  background: #11171b;
}

html[data-theme="light"] input,
html[data-theme="light"] select {
  color: var(--paper);
  background: #f8faf6;
}

html[data-theme="light"] button:not(.theme-toggle) {
  color: #ffffff;
}

html[data-theme="light"] .warning {
  color: #5b4616;
  background: #fff3d5;
}

@media (max-width: 760px) {
  .systems-link:first-of-type {
    display: none;
  }

  .pill {
    display: none;
  }

  .theme-toggle {
    width: 36px !important;
    height: 36px;
  }
}
