:root {
  --header-icon-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
  --header-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --header-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6h14a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Zm3-3v5m8-5v5M3 11h18m-13 5h.01m4 0h.01m4 0h.01'/%3E%3C/svg%3E");
  --header-icon-guide: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7a6 6 0 0 0-4.8-2.5H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3.2A6 6 0 0 1 12 21a6 6 0 0 1 4.8-2.5H20a1 1 0 0 0 1-1v-12a1 1 0 0 0-1-1h-3.2A6 6 0 0 0 12 7Zm0 0v14'/%3E%3C/svg%3E");
  --header-icon-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h4m4 0h10M3 12h10m4 0h4M3 18h4m4 0h10M11 6a2 2 0 1 0-4 0 2 2 0 0 0 4 0Zm6 6a2 2 0 1 0-4 0 2 2 0 0 0 4 0Zm-6 6a2 2 0 1 0-4 0 2 2 0 0 0 4 0Z'/%3E%3C/svg%3E");
  --header-icon-logout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5m0-8h10m-4-4 4 4-4 4'/%3E%3C/svg%3E");
}

.topbar .mobile-menu-button .topbar-menu-icon { --header-icon: var(--header-icon-menu); --header-icon-size: 21px; }

.topbar :is(.account-chevron, .oz-profile-chevron) {
  --header-icon: var(--header-icon-chevron);
  --header-icon-size: 16px;
  color: #657086;
  border: 0;
  transform: none;
}

.topbar [aria-expanded="true"] > :is(.account-chevron, .oz-profile-chevron) { transform: rotate(180deg); }

.topbar .wbl-guide-btn .wbl-guide-icon,
.topbar .oz-learning-start .topbar-guide-icon {
  --header-icon: var(--header-icon-guide);
}

.topbar .oz-learning-start .oz-guide-label {
  background: transparent;
  border-radius: 0;
  font: inherit;
}

.topbar .wb-market-chevron path {
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:is(.period-picker-icon, .oz-range-trigger .topbar-calendar-icon),
.topbar .oz-period-chip::before {
  --header-icon: var(--header-icon-calendar);
  color: #1152ef;
}

:is(.period-picker-chevron, .oz-range-chevron) {
  --header-icon: var(--header-icon-chevron);
  --header-icon-size: 14px;
  color: #657086;
  transform: none;
}

.topbar .oz-period-chip,
.topbar :is(.account-menu-item, .oz-profile-popover [role="menuitem"]) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.topbar [role="menuitem"]:is([href="/settings"], [href="/settings/"], [href="/ozon/settings"], [href="/ozon/settings/"])::before {
  --header-icon: var(--header-icon-settings);
}

.topbar [role="menuitem"]:is([href="/help"], [href="/help/"], [href="/help/ozon"], [href="/help/ozon/"])::before {
  --header-icon: var(--header-icon-guide);
}

.topbar button.account-menu-item.danger::before { --header-icon: var(--header-icon-logout); }

.topbar .oz-period-chip::before {
  content: "";
}

.topbar [role="menuitem"]:is([href="/settings"], [href="/settings/"], [href="/ozon/settings"], [href="/ozon/settings/"], [href="/help"], [href="/help/"], [href="/help/ozon"], [href="/help/ozon/"], button.account-menu-item.danger)::before {
  content: "";
  color: inherit;
}

.topbar .mobile-menu-button .topbar-menu-icon,
.topbar :is(.account-chevron, .oz-profile-chevron),
.topbar .wbl-guide-btn .wbl-guide-icon,
.topbar .oz-learning-start .topbar-guide-icon,
.topbar .oz-period-chip::before,
.topbar [role="menuitem"]::before,
:is(.period-picker-icon, .period-picker-chevron, .oz-range-trigger .topbar-calendar-icon, .oz-range-chevron) {
  inline-size: var(--header-icon-size, 18px);
  block-size: var(--header-icon-size, 18px);
  flex: 0 0 var(--header-icon-size, 18px);
  background: currentColor;
  border-radius: 0;
  mask: var(--header-icon) center / contain no-repeat;
}

@media (max-width: 620px) {
  .topbar .account-chevron { display: none; }
}
