/* AGENT_REH_LOGO_RETURN_V1 */

.reh-agent-brand{
  display:inline-flex!important;
  align-items:center!important;
  min-width:0!important;
  text-decoration:none!important;
}
.reh-agent-brand-logo{
  display:block!important;
  width:auto!important;
  height:34px!important;
  max-width:210px!important;
  object-fit:contain!important;
  object-position:left center!important;
  filter:none!important;
}
.reh-agent-brand-logo.reh-agent-logo-dark{display:none!important}
html[data-reh-theme="dark"] .reh-agent-brand-logo.reh-agent-logo-light{display:none!important}
html[data-reh-theme="dark"] .reh-agent-brand-logo.reh-agent-logo-dark{display:block!important}

.reh-agent-brand-context{
  margin-left:12px!important;
  white-space:nowrap!important;
  color:var(--reh-muted,#697985)!important;
  font:600 11px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
}
html[data-reh-theme="dark"] .reh-agent-brand-context{color:#b5b5b5!important}

/* Main workspace/header */
#reh-v2-app .brand-wrap .reh-agent-brand-logo{
  height:38px!important;
  max-width:220px!important;
}

/* Logged-out gateway */
.agent-auth-header .reh-agent-brand-logo{
  height:33px!important;
  max-width:200px!important;
}
.agent-auth-card-brand .reh-agent-brand-logo{
  height:30px!important;
  max-width:185px!important;
}
.agent-auth-card-brand{
  display:flex!important;
  align-items:center!important;
  min-height:58px!important;
}

/* Registration + legacy login */
.agent-legacy-top .reh-agent-brand-logo{
  height:35px!important;
  max-width:210px!important;
}

/* Account & Settings header */
.ah-tools-head .reh-agent-tools-logo{
  display:block!important;
  width:auto!important;
  height:28px!important;
  max-width:190px!important;
  object-fit:contain!important;
}
.ah-tools-head .reh-agent-tools-logo.reh-agent-logo-dark{display:none!important}
html[data-reh-theme="dark"] .ah-tools-head .reh-agent-tools-logo.reh-agent-logo-light{display:none!important}
html[data-reh-theme="dark"] .ah-tools-head .reh-agent-tools-logo.reh-agent-logo-dark{display:block!important}
.ah-tools-head .reh-agent-tools-title{
  margin-top:3px!important;
  color:var(--reh-muted,#697985)!important;
  font:700 11px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
}
html[data-reh-theme="dark"] .ah-tools-head .reh-agent-tools-title{color:#b5b5b5!important}

/* Registration success shown on gateway after account creation. */
.agent-registration-success{
  margin:0 0 18px!important;
  padding:11px 13px!important;
  color:#146247!important;
  background:#eef9f4!important;
  border:1px solid #a8d7c4!important;
  border-radius:10px!important;
  font:650 12px/1.35 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
}
html[data-reh-theme="dark"] .agent-registration-success{
  color:#bcebd6!important;
  background:#1f352d!important;
  border-color:#38604f!important;
}

/* Do not let the old custom A mark show anywhere this layer owns. */
.agent-host-lockup,
.agent-tools-brand>img[src*="agent-host-mark-v2"]{
  display:none!important;
}

@media(max-width:700px){
  .reh-agent-brand-context{display:none!important}
  .reh-agent-brand-logo{height:30px!important;max-width:175px!important}
}