.cp-compact-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  flex: none;
  box-sizing: border-box;
  padding: 6px clamp(12px, 1.5vw, 26px);
  overflow: hidden;
  background: linear-gradient(105deg, #0a2239, #094c71);
  border-bottom: 3px solid #10b8d0;
  color: #fff;
  font-family: system-ui, sans-serif;
}
.cp-compact-brand::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at calc(100% - 46px) 50%, transparent 34px, #1687b83d 35px 47px, transparent 48px 61px, #1687b82b 62px 76px, transparent 77px 88px, #1687b820 89px 103px, transparent 104px);
  pointer-events: none;
  content: '';
}
.cp-compact-brand .cp-brand-home {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}
.cp-compact-brand img { width: 52px; height: 40px; object-fit: contain; }
.cp-compact-brand .cp-brand-name,
.cp-compact-brand .cp-brand-tagline { display: grid; line-height: 1.15; }
.cp-compact-brand .cp-brand-name strong { font-size: clamp(15px, 1.55vw, 22px); }
.cp-compact-brand .cp-brand-name small { font-size: 12px; color: #adeaf4; }
.cp-compact-brand .cp-brand-tagline { gap: 3px; text-align: right; }
.cp-compact-brand .cp-brand-tagline strong { font-size: clamp(13px, 1.4vw, 20px); font-weight: 850; font-style: italic; }
.cp-compact-brand .cp-brand-tagline small { color: #63dcf0; font-size: clamp(10px, .95vw, 14px); font-weight: 700; }

html[data-cp-shell=unified] .layout > .main > .clearpayoff-banner.cp-compact-brand {
  min-height: 0;
  flex-wrap: nowrap;
  padding: 6px clamp(12px, 1.5vw, 26px);
}
html[data-cp-shell=unified] .layout > .main > .top {
  min-height: 0 !important;
  height: auto !important;
  padding-block: 5px !important;
}
html[data-cp-shell=unified] .top .hub-brand-account { row-gap: 2px !important; padding: 0; grid-template-rows: auto auto !important; }
html[data-cp-shell=unified] .top .hub-brand-account .header-brand img { width: 100%; height: 35px; object-fit: contain; object-position: right center; }
html[data-cp-shell=unified] .top .hub-quick-controls { height: auto; min-height: 36px; }
html[data-cp-shell=unified] .top .notification-bell { width: 36px; height: 36px; color: #095b80; }
html[data-cp-shell=unified] .top .notification-bell svg { width: 22px; height: 22px; }
html[data-cp-shell=unified] .top .sidebar[hidden] { display: none !important; }

.cp-main-header:has(.cp-help-identity) { padding-block: 5px; }
.cp-help-identity { flex: none; display: grid; gap: 2px; justify-items: end; }
.cp-help-identity .cp-help-logo img { display: block; height: 35px; object-fit: contain; object-position: right center; }
.cp-help-account-row { display: flex; align-items: center; gap: 7px; }
.cp-help-account-row .cp-help-account:not(:empty)::before {
  content: '';
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 7px;
  vertical-align: middle;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #edf5fa 0 4px, transparent 4.5px),
    radial-gradient(circle at 50% 99%, #edf5fa 0 9px, transparent 9.5px), #96aab7;
}
.cp-help-account-row .cp-help-bell { width: 36px; min-width: 36px; height: 36px; color: #095b80 !important; }
.cp-help-bell svg { width: 22px; height: 22px; }

@media (max-width: 550px) {
  .cp-compact-brand { gap: 6px; }
  .cp-compact-brand img { width: 35px; height: 33px; }
  .cp-compact-brand .cp-brand-home { gap: 4px; }
  .cp-compact-brand .cp-brand-name small { font-size: 10px; }
  .cp-compact-brand .cp-brand-tagline { max-width: 113px; }
  .cp-help-identity .cp-help-logo img { height: 26px; }
}
@media (max-width: 360px) {
  .cp-compact-brand .cp-brand-name strong { font-size: 13px; }
  .cp-compact-brand .cp-brand-tagline strong { font-size: 11px; }
}
@media print { .cp-compact-brand { display: none !important; } }
