.trader-theme .artoption-topbar.theme-topbar .top-brand {
  box-sizing: border-box;
  width: 164px !important;
  min-width: 164px !important;
  flex: 0 0 164px !important;
  padding: 0 2px !important;
  overflow: hidden !important;
}
.trader-theme .artoption-topbar.theme-topbar .top-brand .top-brand-identity.top-brand-identity-optitrade {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 160px !important;
  min-width: 0 !important;
  max-width: 160px !important;
  height: 44px !important;
  flex: 0 0 160px !important;
  overflow: hidden !important;
}
.trader-theme .top-brand-identity.top-brand-identity-optitrade .top-brand-optitrade-logo {
  display: block !important;
  width: 160px !important;
  max-width: none !important;
  height: 44px !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  flex-shrink: 0;
}
.trader-theme .top-brand-identity.top-brand-identity-optitrade.top-brand-identity-standalone {
  width: 240px !important;
  max-width: 75vw !important;
  height: 72px !important;
  overflow: hidden;
}
.trader-theme .top-brand-identity-standalone.top-brand-identity-optitrade .top-brand-optitrade-logo {
  width: 240px !important;
  height: 72px !important;
}
@media (max-width: 700px) {
  .trader-theme .artoption-topbar.theme-topbar .top-brand {
    width: 116px !important;
    min-width: 116px !important;
    flex-basis: 116px !important;
  }
  .trader-theme .artoption-topbar.theme-topbar .top-brand .top-brand-identity.top-brand-identity-optitrade {
    width: 112px !important;
    max-width: 112px !important;
    height: 40px !important;
    flex-basis: 112px !important;
  }
  .trader-theme .artoption-topbar.theme-topbar .top-brand .top-brand-optitrade-logo {
    width: 112px !important;
    height: 40px !important;
  }
}

.trader-theme .artoption-topbar.theme-topbar .top-tabs-scroll { justify-content: flex-start !important; }

.trader-theme .artoption-topbar.theme-topbar > .top-brand { margin: 0 !important; display: flex !important; align-items: center !important; }

/* Keep the supplied artwork readable directly on the dark terminal. */
.trader-theme .artoption-topbar.theme-topbar .top-brand {
  width: 188px !important; min-width: 188px !important; flex-basis: 188px !important;
  padding: 0 4px !important;
}
.trader-theme .artoption-topbar.theme-topbar .top-brand .top-brand-identity.top-brand-identity-optitrade {
  width: 180px !important; max-width: 180px !important; flex-basis: 180px !important;
  height: 44px !important; border-radius: 7px;
  background: transparent; box-shadow: none;
}
.trader-theme .artoption-topbar.theme-topbar .top-brand .top-brand-optitrade-logo {
  width: 180px !important; height: 44px !important;
}
.trader-theme .top-brand-identity-standalone.top-brand-identity-optitrade {
  background: transparent; border-radius: 0;
}
.optitrade-loading-logo {
  box-sizing: border-box; background: transparent; padding: 0;
  border: 0; border-radius: 0;
  box-shadow: none;
}
@media (max-width: 700px) {
  .trader-theme .artoption-topbar.theme-topbar .top-brand {
    width: 132px !important; min-width: 132px !important; flex-basis: 132px !important;
  }
  .trader-theme .artoption-topbar.theme-topbar .top-brand .top-brand-identity.top-brand-identity-optitrade {
    width: 124px !important; max-width: 124px !important; flex-basis: 124px !important; height: 40px !important;
  }
  .trader-theme .artoption-topbar.theme-topbar .top-brand .top-brand-optitrade-logo {
    width: 124px !important; height: 40px !important;
  }
}

/* Inversion lifts the dark lettering to silver; hue rotation keeps the green accent. No glow. */
.trader-theme .top-brand-optitrade-logo, .optitrade-loading-logo { filter: invert(1) hue-rotate(180deg) saturate(.8) brightness(.9); }
