/* Shared sizing for section icons and labels in the top panel. */
:root { --header-icon-size:28px;--header-text-size:14px; }
body .topbar .header-inner :is(.wallet-illustration,.how-illustration,.section-icon,.header-filter-symbol),
body .topbar .header-inner .language-trigger img {
  width:var(--header-icon-size);height:var(--header-icon-size);flex-shrink:0;
}
body .topbar .header-inner :is(.wallet-link,.wallet-name,.wallet-link>strong,.how-link,.favorites-link,.auth-entry,.language-trigger,.header-filter-button,.nav-entry-label,.favorites-link-label,[data-favorites-count]) {
  font-family:var(--ui-font,Arial,sans-serif);font-size:var(--header-text-size);font-weight:500;line-height:1.2;
}
body .topbar .header-inner :is(.wallet-link,.how-link,.favorites-link,.auth-entry,.language-trigger,.header-filter-button) { align-items:center;gap:6px; }
@media(max-width:800px) {
  :root { --header-icon-size:20px;--header-text-size:10px; }
  body .topbar .header-inner :is(.wallet-link,.how-link,.favorites-link,.auth-entry,.language-trigger,.header-filter-button) { gap:3px; }
}
@media(max-width:380px) { :root { --header-text-size:9px; } }

body .topbar .search-wallet.catalog-search-only{grid-template-columns:minmax(0,1fr)}

/* Count belongs to the heart icon, independent of the text label. */
body .favorites-icon-wrap{position:relative;display:inline-grid;flex:none;line-height:1;overflow:visible}
body .favorites-icon-wrap>.illustrated-icon{display:block}
body .topbar .header-inner .favorites-icon-wrap .favorites-count-badge,
body .mobile-bottom-nav .favorites-icon-wrap .favorites-count-badge{position:absolute;top:-6px;right:-7px;z-index:1;display:grid;place-items:center;min-width:18px;height:18px;box-sizing:border-box;padding:0 4px;border:1.5px solid #fffaf5;border-radius:12px;background:#b64b0d;color:#fff;font:700 10px/1 Arial,sans-serif;white-space:nowrap;box-shadow:0 2px 5px #71300f26;pointer-events:none}
body .favorites-count-badge[hidden]{display:none!important}
