:root { --massar-logo-url: url("../../assets/massar_logo_small.png"); }

  .logo-icon,
  .sidebar-logo .logo-icon,
  .logo .logo-icon,
  .left-logo-icon,
  .right-logo-icon,
  .topbar-logo .logo-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 9px !important;
    background: var(--massar-logo-url) center / cover no-repeat !important;
    color: transparent !important;
    font-size: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
  }

  .logo-icon > *,
  .left-logo-icon > *,
  .right-logo-icon > * {
    display: none !important;
  }

  .sidebar-logo,
  .logo,
  .left-logo,
  .right-logo,
  .topbar-logo,
  .footer-logo,
  .preview-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .footer-logo::before,
  .preview-logo::before {
    content: "";
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9px;
    background: var(--massar-logo-url) center / cover no-repeat;
    display: inline-block;
    vertical-align: middle;
  }

/* Welcome title sparkle icon — replaces the former waving-hand/user icon. */
#welcomeTitle.welcome-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

#welcomeTitle .welcome-sparkles.massar-icon {
  --massar-icon-size: 27px;
  color: #f4b400;
  flex: 0 0 auto;
  margin: 0;
  overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(244, 180, 0, 0.15));
}

/* Keep the sparkles to the visual left of the title in both languages. */
html[dir="rtl"] #welcomeTitle.welcome-title {
  direction: ltr;
  justify-content: flex-end;
}

html[dir="rtl"] #welcomeTitle .welcome-title-text {
  direction: rtl;
}

html[dir="ltr"] #welcomeTitle.welcome-title {
  direction: ltr;
  justify-content: flex-start;
}

html[dir="ltr"] #welcomeTitle .welcome-title-text {
  direction: ltr;
}

@media (max-width: 768px) {
  #welcomeTitle .welcome-sparkles.massar-icon {
    --massar-icon-size: 24px;
  }
}

