.umi-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  color: var(--umi-ink);
  font-family: var(--umi-font);
  line-height: 1;
  white-space: nowrap;
}
.umi-brand-mark { display: block; width: 25px; height: 25px; flex: 0 0 25px; }
.umi-brand-copy { display: flex; align-items: center; gap: 0.7rem; }
.umi-wordmark { color: var(--umi-ink); font-size: 1.45rem; font-weight: 650; letter-spacing: -0.065em; }
.umi-wordmark strong { color: var(--umi-brand); font: inherit; }
.umi-brand-tool { padding-left: 0.7rem; border-left: 1px solid var(--umi-line); color: var(--umi-muted); font-size: 0.8rem; font-weight: 550; letter-spacing: 0; }
.umi-theme-control {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  color: var(--umi-ink);
  background: var(--umi-surface);
  border: 1px solid var(--umi-line);
  border-radius: 0.65rem;
}
.umi-theme-control:hover { background: var(--umi-surface-subtle); }
.umi-theme-control svg { position: absolute; width: 20px; height: 20px; pointer-events: none; }
.umi-theme-control select {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 44px;
  height: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: inherit;
  color: transparent !important;
  background: transparent !important;
  font: 1rem var(--umi-font);
  cursor: pointer;
  box-shadow: none;
}
.umi-theme-control select option { color: var(--umi-ink) !important; background: var(--umi-surface) !important; }
.umi-theme-control select:focus-visible { outline: 3px solid var(--umi-focus); outline-offset: 3px; }
.umi-theme-sun { display: block; }
.umi-theme-moon { display: none; }
:root[data-theme="dark"] .umi-theme-sun { display: none; }
:root[data-theme="dark"] .umi-theme-moon { display: block; }
@media (max-width: 620px) {
  .umi-wordmark { font-size: 1.22rem; }
  .umi-brand { gap: 0.45rem; }
  .umi-brand-mark { width: 22px; height: 22px; flex-basis: 22px; }
  .umi-brand-tool { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .umi-theme-control { transition: none; }
}
/* Theme changes must keep foreground/background pairs together; hover and
 * layout transitions resume after the new appearance has painted. */
.umi-theme-changing,
.umi-theme-changing *,
.umi-theme-changing *::before,
.umi-theme-changing *::after { transition: none !important; }
