:root {
  --cp-deep-navy: #0b1d3a;
  --cp-portal-orange: #f97316;
  --cp-success-green: #10b981;
  --cp-soft-gray: #f1f3f6;
  --cp-off-white: #fafafc;
}

/* Shared Commission Portal wordmark. */
.ce-brand-commission { color: var(--cp-deep-navy); }
.ce-brand-portal { color: var(--cp-portal-orange); }

/* Global shared header, including pages where the legacy topbar is enabled. */
.boss-topbar {
  background: var(--cp-off-white);
  color: var(--cp-deep-navy);
  border-bottom: 1px solid #e4e7ec;
}
.boss-topbar-sub,
.boss-topbar-subline {
  color: #667085;
}
.boss-topbar-logo {
  object-fit: contain;
}
.boss-topbar-brand {
  font-weight: 800;
  letter-spacing: -.025em;
}

/* Auth and invitation surfaces. Loaded after auth.css/users.css. */
.ce-auth-brand {
  position: absolute;
  left: 8.3vw;
  top: 43.5%;
  display: grid;
  align-items: start;
  gap: clamp(7px, .55vw, 11px);
  width: clamp(320px, 29vw, 500px);
}
.ce-auth-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 118px;
}
.ce-auth-brand-tagline {
  margin-left: 19.5%;
  color: #74839a;
  font-size: clamp(16px, 1.02vw, 21px);
  line-height: 1.35;
}
.ce-invite-shell .ce-auth-brand {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  align-self: center;
  justify-self: center;
  width: min(400px, 88%);
  transform: none;
}
.ce-invite-shell .ce-auth-logo {
  width: 100%;
  max-height: 170px;
}
.ce-invite-shell .ce-auth-brand-tagline {
  margin-left: 0;
  text-align: center;
  font-size: 15px;
}

/* Authenticated sidebar. */
.boss-main.commission-exchange .ce-portal-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}
.boss-main.commission-exchange .ce-portal-brand-mark img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.boss-main.commission-exchange .ce-portal-brand-copy strong {
  color: var(--cp-deep-navy);
  font-weight: 850;
  letter-spacing: -.02em;
}
.boss-main.commission-exchange .ce-portal-brand-copy small {
  color: #667085;
}

@media (max-width: 1440px) {
  .ce-auth-brand {
    left: 7.3vw;
    width: clamp(300px, 30vw, 430px);
  }
  .ce-auth-brand-tagline { font-size: 16px; }
}
@media (max-width: 1100px) {
  .ce-auth-brand {
    left: 5vw;
    width: min(360px, 34vw);
  }
}
@media (max-width: 980px) {
  .ce-auth-brand {
    top: auto;
    bottom: 14px;
    left: 50%;
    width: min(390px, 78vw);
    transform: translateX(-50%);
  }
  .ce-auth-brand-tagline { font-size: 14px; }
  .ce-invite-shell .ce-auth-brand {
    bottom: auto;
    left: auto;
    width: min(380px, 82vw);
    transform: none;
  }
}
@media (max-width: 620px) {
  .ce-auth-brand {
    bottom: 7px;
    width: min(340px, 86vw);
    gap: 5px;
  }
  .ce-auth-brand-tagline { font-size: 12px; }
  .ce-invite-shell .ce-auth-brand {
    width: min(330px, 88vw);
  }
  .boss-main.commission-exchange .ce-portal-brand-mark,
  .boss-main.commission-exchange .ce-portal-brand-mark img {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ce-auth-logo,
  .boss-topbar-logo,
  .ce-portal-brand-mark img {
    transition: none;
  }
}
