/* Light is the default. Dark is used only after an explicit choice. */
:root {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}
.theme-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.theme-toggle,
#oa-inspection .theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--oa-line, var(--hair));
  border-radius: 5px;
  background: transparent;
  color: var(--oa-text, var(--ink));
  font: inherit;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.theme-toggle:hover,
#oa-inspection .theme-toggle:hover {
  background: light-dark(#e7eaed, #2c343d);
}
.theme-toggle[aria-pressed="true"],
#oa-inspection .theme-toggle[aria-pressed="true"] {
  border-color: var(--oa-secondary, var(--muted));
}
.theme-toggle:focus-visible,
#oa-inspection .theme-toggle:focus-visible {
  outline: 2px solid var(--oa-red-readable, var(--red));
  outline-offset: 3px;
}
.theme-toggle-icon {
  display: block;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
@media (max-width: 1000px) {
  #oa-inspection .theme-toggle-label {
    display: none;
  }
  #oa-inspection .theme-toggle {
    padding: 10px;
  }
  #oa-inspection .theme-actions {
    gap: 8px;
  }
}
@media (max-width: 760px) {
  #oa-inspection .site-header > nav {
    display: none;
  }
}
@media (max-width: 640px) {
  .site-header > .brand {
    order: 0;
  }
  .site-header > .theme-actions {
    order: 1;
  }
  .site-header > nav {
    order: 2;
    width: 100%;
  }
}
@media (max-width: 610px) {
  #oa-inspection .site-header {
    gap: 10px;
  }
  #oa-inspection .theme-actions {
    gap: 6px;
  }
  #oa-inspection .oa-account {
    padding: 9px 10px;
  }
}
@media (max-width: 360px) {
  #oa-inspection .site-header .oa-brand {
    font-size: 18px;
    letter-spacing: -1px;
  }
  #oa-inspection .oa-account {
    padding: 10px 8px;
  }
  #oa-inspection .oa-account > span {
    display: none;
  }
}
