/* TradePlexa 3.5.98 — brand integration: separate transparent astronaut + wordmark.
   Graphic update only. No dashboard, account, animation or auth logic changes. */

.tp3598-brand-lockup {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(2px, 0.5vw, 8px);
  width:100%;
  min-width:0;
  max-width:100%;
  padding:0;
  margin:0;
  background:none!important;
  border:none!important;
  box-shadow:none!important;
  text-decoration:none;
  flex:0 1 auto;
  isolation:isolate;
}
.tp3598-brand-lockup > img {
  display:block;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
  margin:0!important;
  min-width:0;
  object-fit:contain;
}
.tp3598-brand-lockup .tp3598-astronaut {
  flex:0 0 29%;
  width:29%;
  max-width:29%;
  height:auto;
  filter:drop-shadow(0 0 6px rgba(2,211,243,.22));
}
.tp3598-brand-lockup .tp3598-wordmark {
  flex:1 1 0;
  width:69%;
  max-width:69%;
  height:auto;
  filter:drop-shadow(0 0 4px rgba(9,139,232,.20));
}

/* Brand is directly on the sidebar canvas: no opaque rectangular strip. */
body:not(.public-mode) #appSidebar.ta-sidebar > .ta-sidebar-brand {
  background:
    radial-gradient(ellipse at 19% 48%, rgba(6,160,242,.115) 0%,rgba(5,104,212,.035) 38%, transparent 77%),
    radial-gradient(ellipse at 89% 58%, rgba(156,57,216,.09) 0%, transparent 66%)!important;
  border-bottom:1px solid rgba(43,166,223,.17)!important;
  overflow:hidden!important;
}
body:not(.public-mode) #appSidebar.ta-sidebar > .ta-sidebar-brand::after {
  left:4%!important;right:4%!important;
  height:1px!important;
  background:linear-gradient(90deg,transparent,rgba(14,201,255,.38) 25%,rgba(164,58,239,.22) 80%,transparent)!important;
  box-shadow:0 0 6px rgba(14,213,255,.15)!important;
}
body:not(.public-mode) #appSidebar.ta-sidebar > .ta-sidebar-brand > .tp3598-sidebar {
  width:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  height:auto!important;
  z-index:1;
  position:relative;
}
body:not(.public-mode) #appSidebar.ta-sidebar .tp3598-sidebar .tp3598-astronaut {
  flex-basis:29%!important;
  width:29%!important;
  max-width:29%!important;
}
body:not(.public-mode) #appSidebar.ta-sidebar .tp3598-sidebar .tp3598-wordmark {
  flex-basis:67%!important;
  width:67%!important;
  max-width:67%!important;
}

/* Public navigation/login use the same transparent pieces, no mismatch when scaled. */
body.public-mode .public-header .public-brand > .tp3598-public {
  width:clamp(154px,17vw,244px)!important;
  flex:0 0 auto!important;
}
body.public-mode .public-header .public-brand > .public-brand-mark,
body.public-mode .public-header .public-brand > .public-brand-name {
  display:none!important;
}
#authGate .auth-card .auth-brand > .tp3598-auth {
  width:min(100%,360px)!important;
  max-height:102px!important;
  margin:0 auto!important;
}
#authGate .auth-card .auth-brand > .auth-logo,
#authGate .auth-card .auth-brand > img:not(.tp3597-auth-banner) {
  display:none!important;
}
@media(max-width:760px){
  body.public-mode .public-header .public-brand > .tp3598-public {
    width:clamp(124px,33vw,178px)!important;
  }
}

/* Collapsible smartphone sidebar retains the correct close-button column. */
html.tp3595-phone-desktop body:not(.public-mode) #appSidebar.ta-sidebar > .ta-sidebar-brand > .tp3598-sidebar {
  grid-column:1!important;
  grid-row:1!important;
  width:100%!important;
  max-width:100%!important;
  max-height:185px!important;
  align-self:center!important;
  justify-self:center!important;
}
html.tp3595-phone-desktop body:not(.public-mode) #appSidebar.ta-sidebar > .ta-sidebar-brand > #taSidebarClose {
  grid-column:2!important;
  grid-row:1!important;
  justify-self:center!important;
  z-index:5!important;
}
