.site-header {
  height: auto;
  min-height: 0;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  border-bottom-color: var(--theme-line, #ffffff28);
}
.site-header .site-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--theme-text, #f2ebde) !important;
  text-decoration: none;
}
.site-brand img { width: 42px; height: 42px; border-radius: 10px; }
.site-brand strong { display: block; font: 600 21px/1.1 Georgia, serif; }
.site-brand small { display: block; margin-top: 4px; font-size: 11px; color: var(--theme-muted, #aab5bf); }
.site-header-tools, .site-header-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.site-header-tools { gap: 8px 14px; }
.site-header-links a {
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--theme-text, #f2ebde);
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}
.site-header-links a:hover { background: var(--theme-surface, #213346); }
.site-header .gallery-appearance { margin: 0; }
.site-header .chat-launch { white-space: nowrap; min-height: 34px; }
body[data-gallery-theme] .site-header { height: auto; padding-block: 12px; gap: 10px 20px; }
@media (max-width: 680px) {
  .site-header-tools { width: 100%; }
  .site-header-links a { padding-inline: 6px; }
  .site-header .gallery-appearance { max-width: 100%; }
  .site-brand img { width: 34px; height: 34px; }
}
