;(function () {
/* TradeTopBar — top chrome for the Leveraged Trade sub-app.
   White background, ~108px tall (54 safe-area + 60 row + 14 bottom padding).
   Three columns: left = back button + page name; absolute-centered = account
   chip showing TRADE_ACCOUNT details; right = bell + user buttons (matching
   PageHeader's right cluster). Designed to sit above a cross-fading page
   stack inside the LeveragedTradeShell. */

/* Inject the text-swap stylesheet once. Three-phase animation: exit (slide
   up + blur + fade), instant jump to below position with no transition,
   then settle back to 0 with the default transition. Used by TextSwap
   below for the page-name title in the top bar. */
if (typeof document !== 'undefined' && !document.getElementById('text-swap-css')) {
  const _s = document.createElement('style');
  _s.id = 'text-swap-css';
  _s.textContent = [
    ':root {',
    '  --text-swap-dur: 200ms;',
    '  --text-swap-translate-y: 8px;',
    '  --text-swap-blur: 2px;',
    '  --text-swap-ease: ease-out;',
    '}',
    '.t-text-swap {',
    '  display: inline-block;',
    '  transform: translateY(0);',
    '  filter: blur(0);',
    '  opacity: 1;',
    '  transition:',
    '    transform var(--text-swap-dur) var(--text-swap-ease),',
    '    filter    var(--text-swap-dur) var(--text-swap-ease),',
    '    opacity   var(--text-swap-dur) var(--text-swap-ease);',
    '  will-change: transform, filter, opacity;',
    '}',
    '.t-text-swap.is-exit {',
    '  transform: translateY(calc(var(--text-swap-translate-y) * -1));',
    '  filter: blur(var(--text-swap-blur));',
    '  opacity: 0;',
    '}',
    '.t-text-swap.is-enter-start {',
    '  transform: translateY(var(--text-swap-translate-y));',
    '  filter: blur(var(--text-swap-blur));',
    '  opacity: 0;',
    '  transition: none;',
    '}',
    '@media (prefers-reduced-motion: reduce) {',
    '  .t-text-swap { transition: none !important; }',
    '}',
  ].join('\n');
  document.head.appendChild(_s);
}

/* TextSwap — three-phase text crossfade. When `value` changes, the current
   text slides up + blurs + fades, the text content swaps, the new text
   jumps to a below position with transition disabled, then animates back
   to rest. Mirrors the user-supplied transitions.dev recipe. */
const TEXT_SWAP_DUR = 200;
const TextSwap = ({ value, style }) => {
  const ref = React.useRef(null);
  const [displayed, setDisplayed] = React.useState(value);
  const prevValueRef = React.useRef(value);
  const exitTimerRef = React.useRef(null);
  React.useEffect(() => {
    if (value === prevValueRef.current) return;
    const el = ref.current;
    if (!el) return;
    if (exitTimerRef.current) clearTimeout(exitTimerRef.current);
    el.classList.remove('is-enter-start');
    el.classList.add('is-exit');
    exitTimerRef.current = setTimeout(() => {
      prevValueRef.current = value;
      setDisplayed(value);
    }, TEXT_SWAP_DUR);
    return () => { if (exitTimerRef.current) clearTimeout(exitTimerRef.current); };
  }, [value]);
  React.useLayoutEffect(() => {
    const el = ref.current;
    if (!el) return;
    if (el.classList.contains('is-exit')) {
      el.classList.remove('is-exit');
      el.classList.add('is-enter-start');
      void el.offsetWidth; /* force reflow so the no-transition jump commits */
      el.classList.remove('is-enter-start');
    }
  }, [displayed]);
  return <span ref={ref} className="t-text-swap" style={style}>{displayed}</span>;
};

/* MT5 — composite TradingView/MetaTrader-style "5" icon. Inlined from
   icons/trade/mt5.svg so it can sit inside the AccountChip without a
   network request. Multi-coloured fills are baked in (gold/green/blue);
   no `color` prop. */
const MT5Icon = ({ width = 16, height = 16 }) => (
  <svg width={width} height={height} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M7.87304 22C7.53638 21.9089 7.19362 21.8355 6.86388 21.7233C6.10327 21.464 5.4862 20.9841 4.94089 20.4054C4.80982 20.2662 4.98328 20.2584 5.04092 20.2284C5.81067 19.8283 6.51059 19.3339 6.83645 18.4976C7.3535 17.1708 7.05729 15.8321 5.45572 15.4072C4.51888 15.1588 3.66932 15.4873 2.89985 15.9907C2.54462 16.223 2.45013 16.1958 2.39194 15.7812C2.14949 14.0574 2.49558 12.5178 3.72336 11.2263C4.92869 9.95871 6.42747 9.23655 8.09804 8.82949C8.37762 8.76141 8.66441 8.72279 8.94898 8.67667C8.98749 8.67055 9.03183 8.69973 9.07339 8.71251C9.05011 8.74808 9.03432 8.79309 9.00245 8.81754C8.0271 9.5672 7.2942 10.4914 6.85474 11.6573C6.78076 11.8531 6.46681 11.9546 6.27064 12.1088C5.95254 12.3589 5.64525 12.6223 5.43438 12.9763C5.40639 13.0232 5.37647 13.1018 5.3967 13.1371C5.43078 13.1966 5.4995 13.1535 5.55741 13.1371C5.85223 13.0532 6.14789 12.9724 6.44465 12.8954C6.54163 12.8701 6.60259 12.8954 6.59344 13.0199C6.45712 14.8621 7.07807 16.4092 8.43802 17.6443C8.76416 17.9405 9.01492 18.282 9.2438 18.6432C9.34272 18.7991 9.11052 18.8032 9.03903 18.8838C8.96837 18.9633 8.8725 19.0197 8.78743 19.0864C8.91545 19.1 9.04513 19.1333 9.1712 19.1225C9.38234 19.1047 9.54998 19.0653 9.71457 19.3017C10.1707 19.9561 10.7592 20.4832 11.4444 20.8963C11.5414 20.9547 11.5132 21.0005 11.4322 21.0522C10.6916 21.526 9.89413 21.8449 9.01742 21.9514C8.98528 21.9553 8.95618 21.9833 8.92542 22H7.87304Z" fill="#EAAA08"/>
    <path d="M12.3606 2C12.5784 2.12782 12.8319 2.17755 13.0312 2.35149C13.8267 3.04503 14.0697 3.92251 13.9256 4.94141C13.8245 5.6569 13.5252 6.26958 12.9117 6.65803C11.9375 7.27515 10.9508 6.90504 10.3398 5.73581C9.67145 4.45683 10.1575 2.73549 11.3584 2.13587C11.4664 2.08197 11.5828 2.04501 11.6953 2.00028C11.917 2.00028 12.1392 2 12.3606 2Z" fill="#17B26A"/>
    <path d="M22.0004 18.4445C21.904 18.7118 21.8583 18.9972 21.684 19.2353C21.219 19.8708 20.5623 20.075 19.8292 19.9877C18.8832 19.8749 18.1281 19.4062 17.6515 18.5584C17.2256 17.8004 17.1896 17.0466 17.7818 16.3453C18.0561 16.0205 18.4268 15.8329 18.8377 15.7846C20.2869 15.6148 21.5189 16.4339 21.935 17.8143C21.9592 17.8944 21.9054 17.9955 22.0002 18.0555L22.0004 18.4445Z" fill="#2E90FA"/>
    <path d="M2.00028 18.1111C2.09781 17.8243 2.1222 17.5159 2.27764 17.2456C2.77142 16.387 3.49905 15.8996 4.48382 15.7624C5.35167 15.6412 6.17268 16.0344 6.50934 16.8327C6.83797 17.6118 6.58194 18.3114 6.08512 18.9222C5.54369 19.5879 4.81938 19.9697 3.95985 19.9819C3.13579 19.9939 2.16875 19.5787 2.04711 18.4265C2.04378 18.394 2.01635 18.3642 2 18.3331C2 18.2589 2.00028 18.1853 2.00028 18.1111Z" fill="#EAAA08"/>
    <path d="M18.2421 9.37715C18.2341 10.657 18.0371 11.9004 17.5203 13.081C17.5034 13.1196 17.4649 13.1488 17.4366 13.1821C17.4256 13.141 17.4073 13.1005 17.4039 13.0588C17.3092 11.8343 16.8561 10.7614 16.0562 9.83256C15.8567 9.6011 15.9722 9.30157 15.9149 9.03677C15.8287 8.63916 15.7896 8.23098 15.5873 7.86726C15.5638 7.82475 15.5267 7.78974 15.4959 7.7514C15.4696 7.79724 15.4322 7.84031 15.4189 7.88977C15.3377 8.19486 15.2626 8.50162 15.1845 8.80754C15.1518 8.93591 15.0974 8.96536 14.973 8.88256C14.1883 8.35963 13.3321 8.05676 12.3839 7.98869C11.5959 7.93201 10.8547 8.08622 10.1046 8.30461C9.70724 8.4202 9.26334 8.41854 8.84466 8.3952C8.67342 8.38575 8.79672 8.12234 8.75876 7.97952C8.74325 7.92145 8.73715 7.8606 8.72662 7.80086C8.68478 7.84754 8.64128 7.89311 8.60165 7.94173C8.5817 7.96618 8.55677 7.99536 8.55372 8.02425C8.508 8.46105 8.19212 8.51329 7.84326 8.55441C7.15386 8.6361 6.5149 8.87951 5.90613 9.20905C5.86845 9.22961 5.76842 9.3388 5.7626 9.17181C5.7022 7.49438 6.11534 5.98727 7.38274 4.81332C7.99815 4.24315 8.74103 3.89416 9.56094 3.713C9.69643 3.68299 9.69477 3.75273 9.68673 3.85026C9.59474 4.95919 9.74631 5.99894 10.6313 6.78167C11.8248 7.83726 13.1063 7.39768 13.8514 6.18372C14.2978 5.45656 14.3341 4.64132 14.2942 3.81886C14.2861 3.65298 14.3343 3.62019 14.4806 3.67048C16.2363 4.27566 17.4386 5.42155 17.9648 7.2368C18.1679 7.93701 18.2615 8.6486 18.2421 9.37715Z" fill="#17B26A"/>
    <path d="M16.1111 21.9052C14.1329 21.8986 12.8794 21.3206 11.7173 20.4984C10.9841 19.9797 10.3224 19.3806 9.7757 18.6621C9.74827 18.626 9.73801 18.5771 9.71973 18.534C9.76212 18.5448 9.80673 18.5498 9.84636 18.5671C10.9805 19.0628 12.1429 19.1186 13.3488 18.8671C13.5779 18.8193 13.8605 19.0416 14.121 19.1322C14.4106 19.2328 14.6987 19.3456 15.0138 19.3303C15.0603 19.3281 15.1063 19.3092 15.1526 19.2981C15.1243 19.2575 15.1011 19.2122 15.0667 19.1775C14.8703 18.9788 14.6702 18.7838 14.4732 18.5857C14.4133 18.5254 14.3903 18.4809 14.4956 18.4228C15.6248 17.8018 16.4558 16.9038 16.9756 15.719C17.1892 15.2325 17.2637 14.7079 17.4087 14.203C17.517 13.8251 17.7129 13.4672 17.9099 13.1235C17.975 13.0102 18.1058 13.1716 18.2064 13.2074C18.3014 13.2413 18.3959 13.2775 18.4904 13.3127C18.5009 13.1969 18.4364 13.103 18.3635 13.0388C17.8891 12.62 18.3183 12.2291 18.4148 11.8473C18.5594 11.2735 18.6888 10.7034 18.6772 10.1093C18.6741 9.95871 18.7312 9.94065 18.8473 10.0071C20.2383 10.804 21.2752 11.8943 21.6556 13.5003C21.8626 14.3747 21.7736 15.2464 21.5013 16.098C21.4519 16.2525 21.3613 16.1375 21.2993 16.0952C20.6243 15.6348 19.9086 15.285 19.0654 15.3369C18.2458 15.3875 17.5439 15.7357 17.156 16.4567C16.7597 17.193 16.8864 17.9797 17.2998 18.6985C17.7082 19.4087 18.3472 19.8635 19.0629 20.2236C19.1416 20.2631 19.2674 20.2848 19.1258 20.4137C18.123 21.3287 16.9828 21.9114 16.1111 21.9052Z" fill="#2E90FA"/>
    <path d="M12 18.3962C9.35799 18.4526 7.12271 16.1647 7.14626 13.4311C7.16954 10.7095 9.34053 8.49745 12.0302 8.50078C14.6961 8.50412 16.8596 10.7492 16.8463 13.5225C16.8338 16.1411 14.7072 18.4365 12 18.3962ZM8.14988 13.4342C8.10748 15.5776 9.89 17.4301 12.0812 17.395C14.0616 17.3634 15.8216 15.6023 15.8521 13.5992C15.8884 11.2171 14.0896 9.58693 12.1624 9.53997C9.89859 9.48468 8.15487 11.2132 8.14988 13.4342Z" fill="#475467"/>
    <path d="M12.2227 16.0696C11.8913 16.0696 11.5947 16.0075 11.3328 15.8832C11.071 15.7572 10.863 15.5849 10.7089 15.3661C10.5564 15.1474 10.4752 14.8971 10.4653 14.6154H11.3602C11.3767 14.8242 11.4671 14.9949 11.6311 15.1275C11.7952 15.2584 11.9924 15.3239 12.2227 15.3239C12.4034 15.3239 12.5641 15.2824 12.705 15.1996C12.8459 15.1167 12.9569 15.0015 13.0381 14.854C13.1193 14.7066 13.1591 14.5384 13.1574 14.3494C13.1591 14.1572 13.1185 13.9865 13.0356 13.8374C12.9527 13.6882 12.8392 13.5714 12.695 13.4869C12.5509 13.4007 12.3852 13.3576 12.1979 13.3576C12.0454 13.3559 11.8954 13.3841 11.748 13.4421C11.6005 13.5001 11.4836 13.5763 11.3975 13.6708L10.5647 13.5341L10.8307 10.9091H13.7838V11.6797H11.5938L11.4472 13.0295H11.477C11.5715 12.9184 11.7049 12.8265 11.8772 12.7536C12.0496 12.679 12.2385 12.6417 12.444 12.6417C12.7522 12.6417 13.0273 12.7146 13.2693 12.8604C13.5112 13.0046 13.7018 13.2035 13.841 13.457C13.9802 13.7106 14.0498 14.0006 14.0498 14.3271C14.0498 14.6635 13.9719 14.9634 13.8161 15.2269C13.662 15.4888 13.4474 15.6951 13.1723 15.8459C12.8989 15.995 12.5824 16.0696 12.2227 16.0696Z" fill="#475467"/>
  </svg>
);

/* AllIcon — 4-square glyph from icons/trade/all.svg, used as the back affordance.
   Stroke is parameterized so the parent can drive color (defaults to teal2). */
const AllIcon = ({ width = 22, height = 22, color = '#006B67' }) => (
  <svg width={width} height={height} viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M7 2.5H3.83333C3.36662 2.5 3.13327 2.5 2.95501 2.59083C2.79821 2.67072 2.67072 2.79821 2.59083 2.95501C2.5 3.13327 2.5 3.36662 2.5 3.83333V7C2.5 7.46671 2.5 7.70007 2.59083 7.87833C2.67072 8.03513 2.79821 8.16261 2.95501 8.24251C3.13327 8.33333 3.36662 8.33333 3.83333 8.33333H7C7.46671 8.33333 7.70007 8.33333 7.87833 8.24251C8.03513 8.16261 8.16261 8.03513 8.24251 7.87833C8.33333 7.70007 8.33333 7.46671 8.33333 7V3.83333C8.33333 3.36662 8.33333 3.13327 8.24251 2.95501C8.16261 2.79821 8.03513 2.67072 7.87833 2.59083C7.70007 2.5 7.46671 2.5 7 2.5Z" stroke={color} strokeWidth="1.66667" strokeLinecap="round" strokeLinejoin="round"/>
    <path d="M16.1667 2.5H13C12.5333 2.5 12.2999 2.5 12.1217 2.59083C11.9649 2.67072 11.8374 2.79821 11.7575 2.95501C11.6667 3.13327 11.6667 3.36662 11.6667 3.83333V7C11.6667 7.46671 11.6667 7.70007 11.7575 7.87833C11.8374 8.03513 11.9649 8.16261 12.1217 8.24251C12.2999 8.33333 12.5333 8.33333 13 8.33333H16.1667C16.6334 8.33333 16.8667 8.33333 17.045 8.24251C17.2018 8.16261 17.3293 8.03513 17.4092 7.87833C17.5 7.70007 17.5 7.46671 17.5 7V3.83333C17.5 3.36662 17.5 3.13327 17.4092 2.95501C17.3293 2.79821 17.2018 2.67072 17.045 2.59083C16.8667 2.5 16.6334 2.5 16.1667 2.5Z" stroke={color} strokeWidth="1.66667" strokeLinecap="round" strokeLinejoin="round"/>
    <path d="M16.1667 11.6667H13C12.5333 11.6667 12.2999 11.6667 12.1217 11.7575C11.9649 11.8374 11.8374 11.9649 11.7575 12.1217C11.6667 12.2999 11.6667 12.5333 11.6667 13V16.1667C11.6667 16.6334 11.6667 16.8667 11.7575 17.045C11.8374 17.2018 11.9649 17.3293 12.1217 17.4092C12.2999 17.5 12.5333 17.5 13 17.5H16.1667C16.6334 17.5 16.8667 17.5 17.045 17.4092C17.2018 17.3293 17.3293 17.2018 17.4092 17.045C17.5 16.8667 17.5 16.6334 17.5 16.1667V13C17.5 12.5333 17.5 12.2999 17.4092 12.1217C17.3293 11.9649 17.2018 11.8374 17.045 11.7575C16.8667 11.6667 16.6334 11.6667 16.1667 11.6667Z" stroke={color} strokeWidth="1.66667" strokeLinecap="round" strokeLinejoin="round"/>
    <path d="M7 11.6667H3.83333C3.36662 11.6667 3.13327 11.6667 2.95501 11.7575C2.79821 11.8374 2.67072 11.9649 2.59083 12.1217C2.5 12.2999 2.5 12.5333 2.5 13V16.1667C2.5 16.6334 2.5 16.8667 2.59083 17.045C2.67072 17.2018 2.79821 17.3293 2.95501 17.4092C3.13327 17.5 3.36662 17.5 3.83333 17.5H7C7.46671 17.5 7.70007 17.5 7.87833 17.4092C8.03513 17.3293 8.16261 17.2018 8.24251 17.045C8.33333 16.8667 8.33333 16.6334 8.33333 16.1667V13C8.33333 12.5333 8.33333 12.2999 8.24251 12.1217C8.16261 11.9649 8.03513 11.8374 7.87833 11.7575C7.70007 11.6667 7.46671 11.6667 7 11.6667Z" stroke={color} strokeWidth="1.66667" strokeLinecap="round" strokeLinejoin="round"/>
  </svg>
);

/* Bell icon — copied verbatim from PageHeader so the right cluster reads
   identical to the existing header on Wallet/News/Performance. The red dot
   is baked into the SVG (no separate badge overlay needed). */
const PageHeaderBell = ({ width = 40, height = 40, color }) => (
  <svg width={width} height={height} viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M17.3542 29C18.0593 29.6224 18.9856 30 20 30C21.0145 30 21.9407 29.6224 22.6458 29M26 16C26 14.4087 25.3679 12.8826 24.2427 11.7574C23.1174 10.6321 21.5913 10 20 10C18.4087 10 16.8826 10.6321 15.7574 11.7574C14.6322 12.8826 14 14.4087 14 16C14 19.0902 13.2205 21.206 12.3497 22.6054C11.6151 23.7859 11.2479 24.3761 11.2613 24.5408C11.2763 24.7231 11.3149 24.7926 11.4618 24.9016C11.5945 25 12.1926 25 13.3889 25H26.6112C27.8074 25 28.4056 25 28.5382 24.9016C28.6852 24.7926 28.7238 24.7231 28.7387 24.5408C28.7522 24.3761 28.3849 23.7859 27.6504 22.6054C26.7795 21.206 26 19.0902 26 16Z" stroke={color} strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
    <circle cx="26" cy="14" r="4.5" fill="#F04438"/>
  </svg>
);

/* User icon — copied verbatim from PageHeader. */
const PageHeaderUser = ({ width = 24, height = 24, color }) => (
  <svg width={width} height={height} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2 M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
  </svg>
);

/* Account chip — compact pill with 3 segments: [icon-placeholder] · {id} ·
   {mode}. The icon (added later by user) will visually represent the
   account type (Standard/Premier), so we don't duplicate that in text.
   ID is the most informative at-a-glance value; mode color tells live vs demo. */
const AccountChip = () => {
  const acct = window.TRADE_ACCOUNT;
  const modeColor = acct.mode === 'Live' ? colors.teal2 : colors.muted2;
  const segStyle = {
    fontFamily: 'Gilroy',
    fontWeight: 600,
    fontSize: '12px',
    lineHeight: 1,
    whiteSpace: 'nowrap',
  };
  return (
    <div style={{
      display: 'flex',
      flexDirection: 'row',
      alignItems: 'center',
      height: '30px',
      padding: '0 10px',
      borderRadius: '9999px',
      backgroundColor: colors.bg,
      border: `1px solid ${colors.line}`,
      gap: '6px',
    }}>
      {/* MT5 — TradingView/MetaTrader account-type glyph. Composite multi-
         coloured fill conveys the "live trading" feel; replaces the v1
         empty placeholder. */}
      <div style={{ display: 'flex', alignItems: 'center', flexShrink: 0 }}>
        <MT5Icon width={16} height={16} />
      </div>
      <span style={{ ...segStyle, color: colors.ink2, fontVariantNumeric: 'tabular-nums' }}>{acct.id}</span>
      <span style={{ ...segStyle, color: colors.muted2 }}>·</span>
      <span style={{ ...segStyle, color: modeColor }}>{acct.mode}</span>
    </div>
  );
};

const TradeTopBar = ({ pageName, onBack }) => (
  <div style={{
    backgroundColor: colors.white,
    /* paddingTop = 54 + env(safe-area-inset-top) so on mobile iOS PWA the
       white bar extends UP into the safe-area-top zone (covering under
       the status bar with white) while the back button + page-name row
       stays at 54px below the visible top — matching PageHeader on the
       home tabs. Non-mobile env() = 0, paddingTop stays 54. */
    paddingTop: 'calc(54px + env(safe-area-inset-top, 0px))',
    paddingLeft: '14px',
    paddingRight: '14px',
    paddingBottom: '14px',
    display: 'flex',
    flexDirection: 'row',
    alignItems: 'center',
    /* space-between distributes the three groups: left (back+name), center
       (account chip), right (bell+user). No absolute positioning — the
       three flex children jostle for space naturally so we never get a
       chip overlapping the page name on a 390-wide row. */
    justifyContent: 'space-between',
    gap: '8px',
    position: 'relative',
  }}>
    {/* Left cluster — back button + page name. */}
    <div style={{
      display: 'flex',
      flexDirection: 'row',
      alignItems: 'center',
      gap: '8px',
      flexShrink: 0,
    }}>
      <button
        onClick={onBack}
        style={{
          border: 'none',
          background: colors.bg,
          padding: 0,
          margin: 0,
          cursor: 'pointer',
          font: 'inherit',
          color: 'inherit',
          textAlign: 'inherit',
          width: '34px',
          height: '34px',
          borderRadius: '17px',
          display: 'flex',
          alignItems: 'center',
          justifyContent: 'center',
          flexShrink: 0,
        }}
      >
        <AllIcon width={20} height={20} color={colors.teal2} />
      </button>
      <TextSwap value={pageName} style={{
        fontFamily: 'Gilroy',
        fontWeight: 600,
        fontSize: '17px',
        color: colors.ink,
        whiteSpace: 'nowrap',
      }} />
    </div>

    {/* Center — account chip. flexShrink 0 keeps it at its natural width. */}
    <div style={{ flexShrink: 0 }}>
      <AccountChip />
    </div>

    {/* Right cluster — bell with badge + user, matching PageHeader. */}
    <div style={{
      display: 'flex',
      flexDirection: 'row',
      alignItems: 'center',
      gap: '4px',
      flexShrink: 0,
    }}>
      <HeaderIconBtn>
        <PageHeaderBell width={36} height={36} color={colors.ink2} />
      </HeaderIconBtn>
      <HeaderIconBtn>
        <PageHeaderUser width={22} height={22} color={colors.ink2} />
      </HeaderIconBtn>
    </div>
  </div>
);

Object.assign(window, { TradeTopBar });
})();
