/* Brand placement: navigation headers only; store attribution stays quiet and textual. */
.site-brand-image {
  display: inline-block;
  width: auto;
  height: 1.6em;
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
}
.site-brand-header {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  direction: ltr;
}
.site-brand-header .site-brand-full {
  display: block;
  width: auto;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
}
.site-brand-header .site-brand-compact { display: none; }
.dash-sidebar-head .site-brand-header .site-brand-full,
.dash-topbar .site-brand-header .site-brand-full { height: 32px; }
.dash-topbar .brand-logo { flex-shrink: 0; }
/* Legacy form-button rules must not consume the mobile logo's space. */
.dash-topbar .dash-burger {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 0;
}
.ban-logo .site-brand-header .site-brand-full { height: 44px; }
.sys-footer .site-brand-credit {
  display: inline-block;
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.sys-footer .site-brand-credit:hover {
  color: #5B6270;
  text-decoration: underline;
}
.sidebar-collapsed .dash-sidebar-head {
  flex-direction: column;
  padding: 12px 6px;
  gap: 8px;
}
.sidebar-collapsed .dash-sidebar-head .brand-logo { flex: none; }
.sidebar-collapsed .dash-sidebar-head .site-brand-full { display: none; }
.sidebar-collapsed .dash-sidebar-head .site-brand-compact {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
@media (max-width: 480px) {
  .site-brand-header .site-brand-full { height: 30px; }
  /* Keep the single navbar logo readable beside the existing account actions. */
  .navbar .navbar-inner { padding-inline: 8px; gap: 8px; }
  .navbar .brand-logo { flex-shrink: 0; }
  .navbar .site-brand-full { height: 24px; }
  .navbar .nav-actions { gap: 4px; }
  .navbar .nav-actions .btn { padding-inline: 6px; }
  .navbar .nav-burger { width: 32px; flex-shrink: 0; }
}
