/* Agent header — Bonton-style, design system tokens */

body.agent-app.skin-black-light .main-header.agent-header,
body.agent-app .main-header.agent-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: var(--width-full) !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--agent-header-bg) !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: var(--z-index-fixed);
  float: none !important;
}

body.agent-app .main-header.agent-header.fixed {
  position: sticky;
  top: 0;
  z-index: var(--z-index-sticky);
}

/* Override skins-common / sidebar-menu.css white sidebar */
body.agent-app .main-sidebar,
body.agent-app.skin-black-light .main-sidebar {
  background: var(--agent-rail-bg) !important;
}

body.agent-app .main-header.agent-header.fixed .agent-header__masthead {
  background-color: var(--gradient-section-top);
  background-image: var(--agent-header-hero-bg-image), var(--agent-header-hero-overlay);
  background-size: cover;
  background-position: center top;
}

/* ── Masthead — dark hero band (Bonton-style) ── */
body.agent-app .agent-header__masthead {
  position: relative;
  background-color: var(--gradient-section-top);
  background-image: var(--agent-header-hero-bg-image), var(--agent-header-hero-overlay);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding-bottom: var(--spacing-2);
  overflow: visible;
}

body.agent-app .agent-header__masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent 0%, var(--agent-canvas-bg) 100%);
  pointer-events: none;
  z-index: 0;
}

body.agent-app .agent-header__hero {
  background: transparent !important;
  background-image: none !important;
  padding: var(--spacing-4) 0 var(--spacing-3);
  position: relative;
  overflow: visible;
  z-index: 20;
}

body.agent-app .agent-header__hero:has(.dropdown-menu.show),
body.agent-app .agent-header__hero:has(.dropdown.show) {
  z-index: calc(var(--z-index-popover) + 5);
}

body.agent-app .agent-header__hero::before {
  display: none;
}

body.agent-app .agent-header__masthead .agent-header__brand-text {
  color: var(--agent-header-hero-text);
}

body.agent-app .agent-header__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-4);
  width: var(--width-full);
  min-height: var(--button-height-md);
}

body.agent-app .agent-header__brand-wrap {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  flex-shrink: 0;
}

body.agent-app .main-header.agent-header .sidebar-toggle {
  display: none !important;
}

body.agent-app .agent-header__brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  text-decoration: none !important;
  min-height: var(--size-lg);
}

body.agent-app .agent-header__brand-logo {
  height: var(--size-lg);
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

body.agent-app .agent-header__brand.is-text-brand .agent-header__brand-logo,
body.agent-app .agent-header__brand-logo[style*="display: none"] {
  display: none !important;
}

body.agent-app .agent-header__brand-text {
  display: none;
  color: var(--agent-header-text);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-none);
  white-space: nowrap;
}

body.agent-app .agent-header__brand.is-text-brand .agent-header__brand-text {
  display: block;
}

/* ── Top utilities — glass strip on dark hero ── */
body.agent-app .agent-header__utilities {
  --agent-header-util-height: 44px;
  --agent-header-util-btn-size: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
}

body.agent-app .agent-header__util-cluster {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: var(--agent-header-util-height);
  min-height: var(--agent-header-util-height);
  padding: 0 6px 0 4px;
  border-radius: var(--border-radius-full);
  background: color-mix(in srgb, var(--color-white) 10%, transparent);
  border: var(--border-width-thin) solid color-mix(in srgb, var(--color-white) 16%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 12%, transparent);
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: visible;
}

body.agent-app .agent-header__util-cluster .dropdown {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  height: var(--agent-header-util-btn-size);
  width: auto;
  max-width: none;
}

body.agent-app .agent-header__util-cluster .agent-header__profile {
  position: relative;
  width: max-content;
  max-width: 100%;
}

body.agent-app .agent-header__util-cluster .agent-header__notify {
  position: relative;
  width: max-content;
  max-width: 100%;
}

body.agent-app .agent-header__util-cluster .dropdown-toggle::after,
body.agent-app .agent-header__util-cluster .dropdown-toggle::before {
  display: none !important;
  content: none !important;
}

body.agent-app .agent-header__action-group,
body.agent-app .agent-header__util-divider {
  display: none !important;
}

/* Wallet pill */
body.agent-app .agent-header .agent-header__wallet-pill,
body.agent-app .skin-black-light .main-header.agent-header .agent-header__wallet-pill,
body.agent-app .skin-black-light .main-header.agent-header .balane_msgs.agent-header__wallet-pill {
  display: grid !important;
  grid-template-columns: 32px minmax(0, max-content) 20px;
  align-items: center !important;
  align-content: center !important;
  column-gap: 10px !important;
  row-gap: 0 !important;
  gap: 0 10px !important;
  height: var(--agent-header-util-height) !important;
  min-height: var(--agent-header-util-height) !important;
  max-height: var(--agent-header-util-height) !important;
  padding: 0 10px 0 6px !important;
  margin: 0 !important;
  border-radius: var(--border-radius-full) !important;
  overflow: hidden !important;
  text-decoration: none !important;
  background: color-mix(in srgb, var(--color-white) 10%, transparent) !important;
  border: var(--border-width-thin) solid color-mix(in srgb, var(--color-white) 16%, transparent) !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 12%, transparent) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex: 0 0 auto !important;
  float: none !important;
  box-sizing: border-box !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  line-height: 1 !important;
}

body.agent-app .agent-header__wallet-pill > * {
  margin: 0;
  min-width: 0;
}

body.agent-app .agent-header .agent-header__wallet-pill:hover,
body.agent-app .skin-black-light .main-header.agent-header .agent-header__wallet-pill:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--color-white) 14%, transparent) !important;
  border-color: color-mix(in srgb, var(--color-white) 24%, transparent) !important;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-black) 16%, transparent) !important;
}

body.agent-app .agent-header__wallet-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  margin: 0;
  border-radius: var(--border-radius-circle);
  background: linear-gradient(145deg, var(--gradient-orange-start) 0%, var(--color-primary-primary) 100%);
  color: var(--color-white);
  box-shadow: none;
  justify-self: center;
  align-self: center;
}

body.agent-app .agent-header__wallet-icon .bi {
  font-size: 15px;
  line-height: 1;
  display: block;
  margin: 0;
  transform: translateY(0);
}

body.agent-app .agent-header__wallet-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-self: center;
  justify-self: start;
  gap: 3px;
  height: 32px;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  color: var(--agent-header-hero-text) !important;
  min-width: 0;
  line-height: 1;
}

body.agent-app .agent-header__wallet-label {
  display: block;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--color-white) 62%, transparent);
  line-height: 1;
  margin: 0;
  padding: 0;
}

body.agent-app .agent-header__wallet-amount {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
  line-height: 1;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
  margin: 0;
  padding: 0;
}

body.agent-app .agent-header__wallet-chevron {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  margin: 0;
  justify-self: center;
  align-self: center;
  border-radius: var(--border-radius-circle);
  background: color-mix(in srgb, var(--color-white) 10%, transparent);
  color: color-mix(in srgb, var(--color-white) 78%, transparent) !important;
  transition: background 0.2s ease;
}

body.agent-app .agent-header__wallet-chevron .bi {
  font-size: 11px;
  line-height: 1;
  display: block;
  margin: 0;
}

body.agent-app .agent-header__wallet-pill:hover .agent-header__wallet-chevron {
  transform: none;
  background: color-mix(in srgb, var(--color-white) 16%, transparent);
}

body.agent-app .agent-header__wallet-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Utility buttons inside cluster */
body.agent-app .agent-header__util-btn {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--agent-header-util-btn-size) !important;
  height: var(--agent-header-util-btn-size) !important;
  min-width: var(--agent-header-util-btn-size) !important;
  min-height: var(--agent-header-util-btn-size) !important;
  max-height: var(--agent-header-util-btn-size) !important;
  border-radius: var(--border-radius-circle) !important;
  text-decoration: none !important;
  flex-shrink: 0;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  color: color-mix(in srgb, var(--color-white) 88%, transparent) !important;
  box-shadow: none !important;
  line-height: 1 !important;
  vertical-align: middle;
  box-sizing: border-box !important;
  transition: background 0.2s ease, color 0.2s ease;
}

body.agent-app .agent-header__util-btn .bi {
  font-size: 17px;
  line-height: 1;
  display: block;
}

body.agent-app .agent-header__util-btn:hover,
body.agent-app .agent-header__util-btn:focus-visible {
  transform: none;
  background: color-mix(in srgb, var(--color-white) 14%, transparent) !important;
  color: var(--color-white) !important;
  outline: none !important;
  box-shadow: none !important;
}

body.agent-app .agent-header__util-btn.dropdown-toggle:focus,
body.agent-app .agent-header__util-btn.dropdown-toggle.show {
  outline: none !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-white) 24%, transparent) !important;
}

body.agent-app .agent-header__util-btn--notify.is-active,
body.agent-app .agent-header__notify.show .agent-header__util-btn--notify {
  background: color-mix(in srgb, var(--color-white) 16%, transparent) !important;
  color: var(--color-white) !important;
}

body.agent-app .agent-header__util-btn--support:hover {
  background: color-mix(in srgb, var(--color-danger-primary) 22%, transparent) !important;
  color: #fecaca !important;
}

/* Legacy icon-btn aliases */
body.agent-app .agent-header__icon-btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-circle);
  text-decoration: none !important;
  flex-shrink: 0;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  color: color-mix(in srgb, var(--color-white) 88%, transparent) !important;
  box-shadow: none !important;
}

body.agent-app .agent-header__notify-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 8px;
  width: 8px;
  height: 8px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  border-radius: var(--border-radius-circle);
  background: #ef4444 !important;
  border: 2px solid color-mix(in srgb, var(--gradient-section-top) 88%, var(--color-black)) !important;
  box-shadow: none !important;
}

body.agent-app .agent-header__notify-badge:empty {
  display: none;
}

body.agent-app .agent-header__notify-badge:not(:empty) {
  min-width: 16px;
  width: auto;
  height: 16px;
  padding: 0 4px;
  font-size: 9px;
  font-weight: var(--font-weight-bold);
  line-height: 12px;
  top: 4px;
  right: 4px;
  border-width: 2px;
}

body.agent-app .agent-header__notify-menu {
  min-width: 320px;
  border-radius: var(--border-radius-xl) !important;
  border: var(--border-width-thin) solid var(--border-color-light) !important;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--color-black) 14%, transparent) !important;
  margin-top: var(--spacing-2) !important;
  overflow: hidden;
}

body.agent-app .agent-header__notify .agent-header__notify-menu,
body.agent-app .agent-header__profile .profile-dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  transform-origin: top right !important;
  perspective: none !important;
  width: 360px !important;
  min-width: 320px !important;
  max-width: min(360px, calc(100vw - 24px)) !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 8px 0 0 0 !important;
  display: none;
  opacity: 1 !important;
  visibility: visible !important;
  float: none !important;
  animation: none !important;
  transition: none !important;
  backface-visibility: visible !important;
  z-index: calc(var(--z-index-popover) + 10) !important;
  background: var(--color-white) !important;
  pointer-events: auto !important;
  overflow: hidden !important;
  box-shadow: 0 16px 48px color-mix(in srgb, var(--color-black) 18%, transparent) !important;
}

body.agent-app .agent-header__notify .agent-header__notify-menu.is-fixed-panel,
body.agent-app .agent-header__profile .profile-dropdown-menu.is-fixed-panel {
  position: fixed !important;
  margin: 0 !important;
  z-index: calc(var(--z-index-popover) + 20) !important;
}

body.agent-app.is-agent-header-dropdown-open .main-header.agent-header {
  z-index: calc(var(--z-index-popover) + 15) !important;
}

body.agent-app.is-agent-header-dropdown-open .agent-header__menu-shell,
body.agent-app.is-agent-header-dropdown-open .agent-header__nav-shell {
  pointer-events: none;
}

body.agent-app .agent-header .dropdown-menu.agent-header__notify-menu.show,
body.agent-app .agent-header .dropdown-menu.profile-dropdown-menu.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  max-height: none !important;
}

body.agent-app .agent-header__notify .agent-header__notify-menu.show,
body.agent-app .agent-header__profile .profile-dropdown-menu.show {
  display: block !important;
}

/* Notification dropdown panel */
body.agent-app .agent-header__notify-menu > li {
  list-style: none;
  margin: 0;
  padding: 0;
  float: none;
  display: block;
  width: 100%;
}

body.agent-app .agent-header-notify-menu__header {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border-bottom: var(--border-width-thin) solid var(--agent-surface-border, var(--border-color-light)) !important;
  background: var(--agent-surface, #fff) !important;
}

body.agent-app .agent-header-notify-menu__header-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: color-mix(in srgb, #ea580c 14%, white);
  color: #ea580c;
  font-size: 1.05rem;
  line-height: 1;
}

body.agent-app .agent-header-notify-menu__header-icon .bi {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  display: inline !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

body.agent-app .agent-header-notify-menu__header-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 1px;
}

body.agent-app .agent-header-notify-menu__title {
  display: block;
  margin: 0;
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--gradient-section-top, #0f172a) 90%, var(--color-black));
  line-height: 1.25;
}

body.agent-app .agent-header-notify-menu__subtitle {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: var(--font-weight-normal);
  color: var(--color-text-secondary);
  line-height: 1.35;
}

body.agent-app .agent-header-notify-menu__body {
  padding: 12px;
  max-height: 320px;
  overflow: auto;
}

body.agent-app .agent-header-notify-menu__footer {
  border-top: var(--border-width-thin) solid var(--border-color-light);
  background: color-mix(in srgb, var(--color-text-secondary) 3%, white);
  padding: 0;
}

body.agent-app .agent-header-notify-menu__list,
body.agent-app .agent-header-notify-menu__list.menu,
body.agent-app #notification_dropdown {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

body.agent-app .agent-header-notify-item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.agent-app .agent-header-notify-item__link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  color: inherit !important;
  background: var(--color-bg-primary, #fff) !important;
  border: var(--border-width-thin) solid color-mix(in srgb, var(--agent-surface-border, #e5e7eb) 88%, transparent) !important;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-black) 4%, transparent) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

body.agent-app .agent-header-notify-item__link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--color-primary-primary) 24%, var(--agent-surface-border, #e5e7eb)) !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-black) 6%, transparent) !important;
  background: color-mix(in srgb, var(--color-primary-primary) 4%, white) !important;
}

body.agent-app .agent-header-notify-item__icon {
  flex-shrink: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, #ca8a04 14%, white);
  color: #ca8a04;
  font-size: 0.95rem;
}

body.agent-app .agent-header-notify-item__icon .bi {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  display: inline !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

body.agent-app .agent-header-notify-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.agent-app .agent-header-notify-item__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.agent-app .agent-header-notify-item__title {
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.agent-app .agent-header-notify-item__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
}

body.agent-app .agent-header-notify-item__badge.is-success {
  background: color-mix(in srgb, #16a34a 14%, white);
  color: #15803d;
}

body.agent-app .agent-header-notify-item__badge.is-danger {
  background: color-mix(in srgb, #dc2626 12%, white);
  color: #b91c1c;
}

body.agent-app .agent-header-notify-item__badge.is-warning {
  background: color-mix(in srgb, #ca8a04 14%, white);
  color: #a16207;
}

body.agent-app .agent-header-notify-item__text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-secondary);
  word-break: break-word;
}

body.agent-app .agent-header-notify-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

body.agent-app .agent-header-notify-item__meta .bi {
  font-size: 11px;
}

body.agent-app .agent-header-notify-item__chevron {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 2px;
  color: color-mix(in srgb, var(--color-text-secondary) 70%, transparent);
  transition: transform 0.2s ease, color 0.2s ease;
}

body.agent-app .agent-header-notify-item__chevron .bi {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  display: inline !important;
  font-size: 14px !important;
  line-height: 1 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

body.agent-app .agent-header-notify-item__link:hover .agent-header-notify-item__chevron {
  transform: translateX(2px);
  color: var(--color-primary-primary);
}

body.agent-app .agent-header-notify-empty,
body.agent-app .agent-header-notify-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 16px;
  text-align: center;
  list-style: none;
}

body.agent-app .agent-header-notify-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-text-secondary) 10%, white);
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

body.agent-app .agent-header-notify-empty__text {
  font-size: 13px;
  color: var(--color-text-secondary);
}

body.agent-app .agent-header-notify-loading img {
  width: 36px;
  height: 36px;
}

body.agent-app .agent-header-notify-menu__footer-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px !important;
  font-size: 13px !important;
  font-weight: var(--font-weight-semibold) !important;
  color: var(--color-primary-primary) !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.agent-app .agent-header-notify-menu__footer-link:hover {
  background: color-mix(in srgb, var(--color-primary-primary) 8%, white) !important;
  color: var(--color-primary-primary) !important;
}

body.agent-app .agent-header-notify-menu__footer-link .bi {
  font-size: 12px;
}

/* Legacy notification markup inside header dropdown (AdminLTE items only) */
body.agent-app .agent-header__notify-menu .menu > li:not(.agent-header-notify-item):not(.agent-header-notify-empty):not(.agent-header-notify-loading),
body.agent-app .agent-header__notify-menu .menu > li:not(.agent-header-notify-item):not(.agent-header-notify-empty):not(.agent-header-notify-loading) > a {
  float: none !important;
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.agent-app .agent-header__notify-menu .menu > li.agent-header-notify-item > a.agent-header-notify-item__link {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 12px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  color: inherit !important;
  background: var(--color-bg-primary, #fff) !important;
  border: var(--border-width-thin) solid color-mix(in srgb, var(--agent-surface-border, #e5e7eb) 88%, transparent) !important;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-black) 4%, transparent) !important;
  box-sizing: border-box !important;
}

body.agent-app .agent-header__notify-menu .menu > li.agent-header-notify-item > a.agent-header-notify-item__link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--color-primary-primary) 24%, var(--agent-surface-border, #e5e7eb)) !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-black) 6%, transparent) !important;
  background: color-mix(in srgb, var(--color-primary-primary) 4%, white) !important;
}

body.agent-app .agent-header__notify-menu .noticewrp,
body.agent-app .agent-header__notify-menu .noticemsgagent,
body.agent-app .agent-header__notify-menu .timenotice,
body.agent-app .agent-header__notify-menu .even-time-moments {
  display: block !important;
  width: auto !important;
  white-space: normal !important;
}

body.agent-app .agent-header__notify .agent-header__notify-menu {
  padding: 0 !important;
}

/* Profile control */
body.agent-app .agent-header__profile,
body.agent-app .agent-header__notify {
  position: relative;
  z-index: calc(var(--z-index-popover) + 2);
}

body.agent-app .agent-header__profile.show,
body.agent-app .agent-header__notify.show,
body.agent-app .agent-header__profile:has(.profile-dropdown-menu.show),
body.agent-app .agent-header__notify:has(.agent-header__notify-menu.show) {
  z-index: calc(var(--z-index-popover) + 12);
}

body.agent-app .agent-header__profile {
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.agent-app .agent-header__util-btn--profile {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: var(--agent-header-util-btn-size) !important;
  min-height: var(--agent-header-util-btn-size) !important;
  max-height: var(--agent-header-util-btn-size) !important;
  padding: 0 8px 0 2px !important;
  gap: 8px;
  border-radius: var(--border-radius-full) !important;
  align-items: center !important;
}

body.agent-app .agent-header__util-btn--profile::after {
  display: none !important;
}

body.agent-app .agent-header__avatar-btn,
body.agent-app .agent-header__avatar-btn:hover {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  float: none !important;
}

body.agent-app .agent-header__avatar,
body.agent-app .agent-header__avatar-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: var(--border-radius-circle);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, var(--color-white) 34%, transparent);
  background: color-mix(in srgb, var(--color-info) 72%, var(--gradient-section-top));
  box-shadow: none;
  align-self: center;
}

body.agent-app .agent-header__avatar-img,
body.agent-app .agent-header__avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-circle);
  overflow: hidden;
}

body.agent-app .agent-header__avatar-img {
  object-fit: cover;
  border: none;
  box-sizing: border-box;
}

body.agent-app .agent-header__avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--color-info) 88%, white) 0%, var(--color-info) 100%);
  color: var(--color-white);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  border: none;
  box-sizing: border-box;
}

body.agent-app .agent-header__profile-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-self: center;
  gap: 1px;
  min-width: 0;
  max-width: 132px;
  line-height: 1.1;
}

body.agent-app .agent-header__profile-name {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin: 0;
}

body.agent-app .agent-header__profile-role {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  line-height: 1.1;
  color: color-mix(in srgb, var(--color-white) 58%, transparent);
  white-space: nowrap;
  margin: 0;
}

body.agent-app .agent-header__profile-chevron {
  font-size: 11px !important;
  line-height: 1 !important;
  color: color-mix(in srgb, var(--color-white) 55%, transparent) !important;
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  transition: transform 0.2s ease;
}

body.agent-app .agent-header__profile.show .agent-header__profile-chevron,
body.agent-app .agent-header__util-btn--profile[aria-expanded="true"] .agent-header__profile-chevron {
  transform: rotate(180deg);
}

body.agent-app .agent-header__profile .profile-dropdown-menu {
  overflow: hidden;
}

body.agent-app .agent-header__profile .profile-dropdown-menu > li,
body.agent-app .agent-header__profile .profile-dropdown-menu > li.profile-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  float: none;
  display: block;
  width: 100%;
}

body.agent-app .agent-header__profile .profile-dropdown-menu .user-header,
body.agent-app .agent-header__profile .profile-dropdown-menu .profile-header {
  height: auto !important;
  min-height: 0 !important;
  padding: 16px !important;
  background: var(--color-white) !important;
  border-bottom: var(--border-width-thin) solid var(--border-color-light) !important;
  overflow: visible !important;
  text-align: left !important;
}

body.agent-app .agent-header__profile .profile-dropdown-menu .user-header::before,
body.agent-app .agent-header__profile .profile-dropdown-menu .user-header::after {
  display: none !important;
  content: none !important;
}

body.agent-app .agent-header__profile .profile-header-content {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100%;
}

body.agent-app .agent-header__profile .profile-avatar {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: cover !important;
  border-radius: var(--border-radius-circle) !important;
  border: 2px solid var(--border-color-light) !important;
  box-shadow: none !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

body.agent-app .agent-header__profile .profile-info {
  min-width: 0;
  flex: 1 1 auto;
}

body.agent-app .agent-header__profile .profile-info .profile-name {
  margin: 0 0 2px !important;
  font-size: 14px !important;
  font-weight: var(--font-weight-bold) !important;
  color: var(--color-text-primary) !important;
  line-height: 1.3 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.agent-app .agent-header__profile .profile-info small {
  display: block;
  font-size: 11px !important;
  color: var(--color-text-secondary) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.agent-app .agent-header__profile .profile-contacts,
body.agent-app .agent-header__profile .profile-dropdown-menu .user-body {
  padding: 12px 16px !important;
  background: var(--color-white) !important;
  border-bottom: var(--border-width-thin) solid var(--border-color-light) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body.agent-app .agent-header__profile .contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.agent-app .agent-header__profile .contact-item i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-md);
  background: color-mix(in srgb, var(--color-primary-primary) 10%, transparent);
  color: var(--color-primary-primary) !important;
  font-size: 13px;
  flex-shrink: 0;
}

body.agent-app .agent-header__profile .contact-value {
  font-size: 12px !important;
  color: var(--color-text-primary) !important;
  word-break: break-word;
}

body.agent-app .agent-header__profile .profile-actions {
  padding: 12px 16px 16px !important;
  background: var(--color-white) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body.agent-app .agent-header__profile .profile-action-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 10px 12px !important;
  border-radius: var(--border-radius-md) !important;
  border: var(--border-width-thin) solid var(--border-color-light) !important;
  background: var(--color-bg-primary) !important;
  color: var(--color-text-primary) !important;
  font-size: 13px !important;
  font-weight: var(--font-weight-medium) !important;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.agent-app .agent-header__profile .profile-action-btn::before {
  display: none !important;
  content: none !important;
}

body.agent-app .agent-header__profile .profile-action-btn:hover {
  background: color-mix(in srgb, var(--color-primary-primary) 8%, transparent) !important;
  border-color: color-mix(in srgb, var(--color-primary-primary) 24%, transparent) !important;
  color: var(--color-primary-primary) !important;
  transform: none !important;
  box-shadow: none !important;
}

body.agent-app .agent-header__profile .profile-action-btn i {
  color: var(--color-primary-primary) !important;
  font-size: 15px;
  width: 18px;
  text-align: center;
}

body.agent-app .agent-header__profile .profile-action-btn.profile-logout {
  background: color-mix(in srgb, var(--color-danger-primary) 6%, transparent) !important;
  border-color: color-mix(in srgb, var(--color-danger-primary) 18%, transparent) !important;
  color: var(--color-danger-primary) !important;
}

body.agent-app .agent-header__profile .profile-action-btn.profile-logout:hover {
  background: var(--color-danger-primary) !important;
  border-color: var(--color-danger-primary) !important;
  color: var(--color-white) !important;
}

body.agent-app .agent-header__profile .profile-action-btn.profile-logout i {
  color: inherit !important;
}

body.agent-app .agent-header li.dropdown.notifications-menu.open > a.dropdown-toggle,
body.agent-app .agent-header .agent-header__profile.show > a.dropdown-toggle,
body.agent-app .agent-header .agent-header__util-cluster a.dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  float: none !important;
}

body.agent-app .agent-header li.dropdown.notifications-menu.open > a.dropdown-toggle,
body.agent-app .agent-header .agent-header__profile.show > a.dropdown-toggle {
  background: color-mix(in srgb, var(--color-white) 16%, transparent) !important;
  color: var(--color-white) !important;
}

body.agent-app .agent-header li.dropdown.notifications-menu a.dropdown-toggle::before,
body.agent-app .agent-header li.dropdown.user.user-menu a.dropdown-toggle::before {
  display: none !important;
  content: none !important;
}

/* Legacy circle-btn aliases */
body.agent-app .agent-header__circle-btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0 !important;
  border: none !important;
}

body.agent-app .agent-header__circle-btn--light {
  background: var(--color-bg-primary) !important;
  color: var(--color-text-primary) !important;
  border: var(--border-width-thin) solid var(--agent-surface-border) !important;
}

body.agent-app .agent-header__circle-btn--support {
  background: var(--color-danger-primary) !important;
  color: var(--color-white) !important;
  border-radius: var(--border-radius-circle) !important;
}

body.agent-app .agent-header .navbar-nav,
body.agent-app .agent-header .navbar-nav > li {
  float: none !important;
  margin: 0 !important;
  display: block !important;
}

body.agent-app .agent-header .navbar-nav > li > a {
  padding: 0 !important;
  background: none !important;
  height: auto !important;
  line-height: normal !important;
}

/* ── Main menu (inside masthead) ── */
body.agent-app .agent-header__menu-shell {
  position: relative;
  z-index: 1;
  padding: var(--spacing-2) 0 var(--spacing-4);
  width: var(--width-full);
  box-sizing: border-box;
  background: transparent;
  overflow: visible;
}

body.agent-app:not(.agent-page--dashboard) .agent-header__menu-shell {
  padding-bottom: var(--spacing-2);
}

/* ── Module list bar — floating card below masthead ── */
body.agent-app .agent-header__nav-shell {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--spacing-5) * -1);
  padding: var(--spacing-2) 0 var(--spacing-0);
  width: var(--width-full);
  box-sizing: border-box;
}

body.agent-app .agent-header__nav-card {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap !important;
  gap: 0;
  width: var(--width-full);
  min-height: var(--size-2xl);
  padding: var(--spacing-0) 0;
  background: var(--agent-surface);
  border-radius: var(--border-radius-2xl) var(--border-radius-2xl) 0 0;
  border: var(--border-width-thin) solid var(--agent-surface-border);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--color-black) 8%, transparent);
  box-sizing: border-box;
  overflow: hidden;
}

body.agent-app .agent-header__modules {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.agent-app .agent-header__modules::-webkit-scrollbar {
  display: none;
}

body.agent-app .agent-header__module-list,
body.agent-app .agent-header .navbar-nav.agent_menu,
body.agent-app .skin-black-light .main-header.agent-header .navbar-nav.agent_menu {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  width: max-content !important;
  min-width: max-content !important;
  gap: 0 !important;
}

body.agent-app .agent-header__module-item,
body.agent-app .agent-header .navbar-nav.agent_menu > li.normal_srchreali {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  float: none !important;
  display: block !important;
}

/* Beat legacy agent.css hide on small screens */
body.agent-app .agent-header .nav > li.normal_srchreali,
body.agent-app .agent-header .navbar-nav.agent_menu > li.normal_srchreali {
  display: block !important;
}

body.agent-app .agent-header__module-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: var(--size-lg);
  border-right: var(--border-width-medium) var(--border-style-dotted) var(--border-color-medium);
  pointer-events: none;
}

body.agent-app .agent-header__module-item > a,
body.agent-app .agent-header .navbar-nav.agent_menu > li.normal_srchreali > a,
body.agent-app .skin-black-light .main-header.agent-header .navbar-nav.agent_menu > li.normal_srchreali > a {
  position: relative;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--spacing-1) !important;
  min-width: 84px !important;
  width: 84px !important;
  height: 72px !important;
  min-height: 72px !important;
  padding: var(--spacing-2) var(--spacing-1) !important;
  border-radius: 0 !important;
  font-size: var(--font-size-xs) !important;
  font-weight: var(--font-weight-semibold) !important;
  line-height: var(--line-height-snug) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--color-text-secondary) !important;
  background: transparent !important;
  border: none !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

body.agent-app .agent-header__module-item.is-active > a::after,
body.agent-app .agent-header .navbar-nav.agent_menu > li.is-active > a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 6px;
  height: 3px;
  border-radius: var(--border-radius-full);
  background: var(--color-info);
}

body.agent-app .agent-header__module-item > a:hover,
body.agent-app .agent-header .navbar-nav.agent_menu > li.normal_srchreali > a:hover {
  color: var(--color-info) !important;
  transform: none !important;
  background: transparent !important;
}

body.agent-app .agent-header__module-item.is-active > a,
body.agent-app .agent-header__module-item.bg-blue > a,
body.agent-app .agent-header .navbar-nav.agent_menu > li.is-active > a,
body.agent-app .agent-header .navbar-nav.agent_menu > li.bg-blue > a {
  color: var(--color-info) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.agent-app .agent-header__module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-size-lg);
  height: var(--icon-size-lg);
  flex-shrink: 0;
  opacity: 0.85;
}

body.agent-app .agent-header__module-item.is-active .agent-header__module-icon,
body.agent-app .agent-header__module-item > a:hover .agent-header__module-icon {
  opacity: 1;
}

body.agent-app .agent-header__module-icon .tmx-icon,
body.agent-app .agent-header__module-icon svg,
body.agent-app .agent-header .navbar-nav.agent_menu > li.normal_srchreali > a svg.tmx-icon {
  width: var(--icon-size-md) !important;
  height: var(--icon-size-md) !important;
  min-width: var(--icon-size-md) !important;
  min-height: var(--icon-size-md) !important;
}

body.agent-app .agent-header__module-label,
body.agent-app .agent-header .navbar-nav.agent_menu > li.normal_srchreali > a span {
  display: block !important;
  text-align: center;
  white-space: nowrap;
  font-size: var(--font-size-xs) !important;
  line-height: var(--line-height-tight) !important;
}

/* CTA buttons — pinned right, same row */
body.agent-app .agent-header__cta-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  flex: 0 0 auto;
  flex-shrink: 0;
  padding: var(--spacing-2) var(--spacing-3);
  margin-left: auto;
  border-left: var(--border-width-medium) var(--border-style-dotted) var(--border-color-medium);
  height: auto;
  align-self: stretch;
}

body.agent-app .agent-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  height: var(--button-height-sm);
  min-width: 120px;
  padding: 0 var(--spacing-4);
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-decoration: none !important;
  white-space: nowrap;
  transition: var(--transition-transform), var(--transition-shadow);
  line-height: var(--line-height-none);
  border: none !important;
}

body.agent-app .agent-header__cta--dashboard {
  background-color: var(--agent-cta-dashboard-solid) !important;
  background-image: var(--agent-cta-dashboard-bg) !important;
  color: var(--color-white) !important;
  box-shadow: none !important;
}

body.agent-app .agent-header__cta--dashboard:hover {
  color: var(--color-white) !important;
  background-color: var(--agent-cta-dashboard-hover) !important;
  background-image: var(--agent-cta-dashboard-bg) !important;
  box-shadow: none !important;
}

body.agent-app .agent-header__cta--bookings {
  background-color: var(--agent-cta-bookings-solid) !important;
  background-image: var(--agent-cta-bookings-bg) !important;
  color: var(--color-white) !important;
  box-shadow: none !important;
}

body.agent-app .agent-header__cta--bookings:hover {
  color: var(--color-white) !important;
  background-color: var(--agent-cta-bookings-hover) !important;
  background-image: var(--agent-cta-bookings-bg) !important;
  box-shadow: none !important;
}

body.agent-app .agent-header__cta--dashboard .material-icons,
body.agent-app .agent-header__cta--bookings .material-icons,
body.agent-app .agent-header__cta--dashboard span,
body.agent-app .agent-header__cta--bookings span {
  color: var(--color-white) !important;
}

body.agent-app .agent-header__cta:hover {
  transform: translateY(-1px);
}

body.agent-app .agent-header__cta .material-icons {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-none);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  body.agent-app .agent-header__hero {
    padding: var(--spacing-3) 0 var(--spacing-3);
  }

  body.agent-app .agent-header__menu-shell {
    padding: var(--spacing-2) 0 var(--spacing-4);
  }

  body.agent-app .agent-header__nav-shell {
    padding: 0 0 var(--spacing-4);
    margin-top: calc(var(--spacing-4) * -1);
  }

  body.agent-app .agent-header__module-item > a,
  body.agent-app .agent-header .navbar-nav.agent_menu > li.normal_srchreali > a {
    min-width: 80px !important;
    width: 80px !important;
  }

  body.agent-app .agent-header__cta {
    padding: 0 var(--spacing-4);
    font-size: var(--font-size-sm);
  }

  body.agent-app .agent-header__wallet-body {
    padding: 0 !important;
  }
}

@media (max-width: 992px) {
  body.agent-app .agent-header__brand-logo {
    height: var(--size-md);
    max-width: 110px;
  }

  body.agent-app .agent-header__brand-text {
    font-size: var(--font-size-lg);
  }

  body.agent-app .agent-header__utilities {
    gap: 8px;
  }

  body.agent-app .agent-header__wallet-pill {
    grid-template-columns: 30px minmax(0, max-content) 18px !important;
    column-gap: 8px !important;
    gap: 0 8px !important;
    padding: 0 8px 0 5px !important;
  }

  body.agent-app .agent-header__wallet-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
  }

  body.agent-app .agent-header__wallet-body {
    height: 30px;
    gap: 2px;
  }

  body.agent-app .agent-header__wallet-label {
    font-size: 9px;
  }

  body.agent-app .agent-header__wallet-amount {
    font-size: var(--font-size-xs);
  }

  body.agent-app .agent-header__wallet-chevron {
    display: none;
  }

  body.agent-app .agent-header__profile-meta,
  body.agent-app .agent-header__profile-chevron {
    display: none;
  }

  body.agent-app .agent-header__util-btn--profile {
    width: var(--agent-header-util-btn-size) !important;
    min-width: var(--agent-header-util-btn-size) !important;
    padding: 0 !important;
  }

  body.agent-app .agent-header__util-cluster {
    padding: 0 4px;
    gap: 2px;
  }

  body.agent-app .agent-header__module-item > a,
  body.agent-app .agent-header .navbar-nav.agent_menu > li.normal_srchreali > a {
    min-width: 76px !important;
    width: 76px !important;
    height: 68px !important;
    min-height: 68px !important;
    padding: var(--spacing-2) var(--spacing-1) !important;
  }

  body.agent-app .agent-header__cta-group {
    height: auto;
    padding: var(--spacing-2);
  }

  body.agent-app .agent-header__cta {
    min-width: auto;
    height: var(--size-lg);
    padding: 0 var(--spacing-3);
    font-size: var(--font-size-xs);
  }

  body.agent-app .agent-header__cta span {
    display: none;
  }

  body.agent-app .agent-header__cta {
    width: var(--size-lg);
    padding: 0;
  }
}

@media (max-width: 576px) {
  body.agent-app .agent-header__hero {
    padding: var(--spacing-3) 0 var(--spacing-2);
  }

  body.agent-app .agent-header__menu-shell {
    padding: var(--spacing-2) 0 var(--spacing-3);
  }

  body.agent-app .agent-header__nav-shell {
    padding: 0 0 var(--spacing-3);
    margin-top: calc(var(--spacing-3) * -1);
  }

  body.agent-app .agent-header__wallet-pill {
    display: none;
  }

  body.agent-app .agent-header__util-cluster {
    padding: 0 3px;
    gap: 1px;
  }

  body.agent-app .agent-header__utilities {
    --agent-header-util-height: 40px;
    --agent-header-util-btn-size: 34px;
  }

  body.agent-app .agent-header__nav-card {
    padding: var(--spacing-1) 0;
    border-radius: var(--border-radius-xl);
    flex-wrap: nowrap !important;
  }

  body.agent-app .agent-header__module-label {
    display: block !important;
    font-size: 10px !important;
  }

  body.agent-app .agent-header__module-item > a {
    min-width: 64px !important;
    width: 64px !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: var(--spacing-1) !important;
  }

  body.agent-app .agent-header__cta-group {
    padding: var(--spacing-1) var(--spacing-2);
    gap: var(--spacing-1);
    flex-shrink: 0;
  }

  body.agent-app .agent-header__cta span {
    display: none;
  }
}
