/*
 * Luxoria v18.74.7 — Luxury Mobile Header
 * Rebuilds the mobile header actions as a consistent Luxury Light control set.
 */
html[data-theme="light"]{
  --lux747-ink:#2f2a27;
  --lux747-muted:#77716c;
  --lux747-ivory:#fffdfa;
  --lux747-ivory-soft:#faf7f1;
  --lux747-gold:#d5a03e;
  --lux747-gold-dark:#9b6a18;
  --lux747-purple:#8b5bd6;
  --lux747-purple-soft:rgba(139,91,214,.10);
  --lux747-teal:#2ea99f;
  --lux747-teal-soft:rgba(46,169,159,.10);
  --lux747-border:rgba(173,126,60,.18);
  --lux747-shadow:0 5px 15px rgba(77,49,21,.07),inset 0 1px 0 rgba(255,255,255,.96);
}

@media(max-width:760px){
  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar.luxoria-unified-topbar-v1863{
    min-height:76px!important;
    height:76px!important;
    padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 7px max(8px,env(safe-area-inset-left))!important;
    grid-template-columns:46px minmax(0,1fr)!important;
    gap:8px!important;
    background:rgba(255,253,249,.99)!important;
    border-bottom:1px solid rgba(205,151,50,.22)!important;
    box-shadow:0 4px 16px rgba(77,49,21,.05)!important;
  }

  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar .mobile-menu-v1861{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    padding:0!important;
    color:var(--lux747-ink)!important;
    background:linear-gradient(145deg,#fffefa,#f8f3eb)!important;
    border:1px solid rgba(205,151,50,.26)!important;
    border-radius:15px!important;
    box-shadow:var(--lux747-shadow)!important;
  }
  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar .mobile-menu-v1861:is(:hover,:focus-visible,[aria-expanded="true"]){
    color:var(--lux747-purple)!important;
    background:linear-gradient(145deg,#fffefa,#f5effd)!important;
    border-color:rgba(139,91,214,.28)!important;
  }
  html[data-theme="light"] body .mobile-menu-v1861 .mobile-menu-icon-v1861,
  html[data-theme="light"] body .mobile-menu-v1861 .mobile-menu-icon-v1861 svg{
    width:21px!important;
    height:21px!important;
    color:inherit!important;
    stroke:currentColor!important;
    opacity:1!important;
    visibility:visible!important;
    filter:none!important;
  }

  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar .top-links{
    height:62px!important;
    gap:4px!important;
    justify-content:flex-end!important;
    overflow:visible!important;
  }

  html[data-theme="light"] body .community-topbar .top-links > a.topbar-action-v1832,
  html[data-theme="light"] body .community-topbar .top-links .notification-header-menu,
  html[data-theme="light"] body .community-topbar .top-links .member-header-menu{
    flex:0 0 45px!important;
    width:45px!important;
    min-width:45px!important;
    max-width:45px!important;
    height:58px!important;
    margin:0!important;
  }

  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832,
  html[data-theme="light"] body .community-topbar .top-links .notification-header-button,
  html[data-theme="light"] body .community-topbar .top-links .settings-header-button-v1826{
    position:relative!important;
    width:45px!important;
    min-width:45px!important;
    height:58px!important;
    min-height:58px!important;
    padding:3px 1px 1px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:3px!important;
    color:var(--lux747-ink)!important;
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    border-radius:15px!important;
    box-shadow:none!important;
    filter:none!important;
    opacity:1!important;
    overflow:visible!important;
  }

  /* The icon itself is the visual button. This keeps all four actions aligned. */
  html[data-theme="light"] body .community-topbar .top-links .top-modern-icon,
  html[data-theme="light"] body .community-topbar .top-links .top-lucide-icon-v1837{
    flex:0 0 36px!important;
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    color:var(--lux747-ink)!important;
    background:linear-gradient(145deg,#fffefa,#f8f3eb)!important;
    border:1px solid rgba(173,126,60,.17)!important;
    border-radius:13px!important;
    box-shadow:var(--lux747-shadow)!important;
    opacity:1!important;
    visibility:visible!important;
    filter:none!important;
  }
  html[data-theme="light"] body .community-topbar .top-links .top-modern-icon svg,
  html[data-theme="light"] body .community-topbar .top-links .top-lucide-icon-v1837 svg{
    width:18px!important;
    height:18px!important;
    display:block!important;
    color:inherit!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    opacity:1!important;
    visibility:visible!important;
    filter:none!important;
  }

  /* Subtle individual accents, all within the same visual system. */
  html[data-theme="light"] body .community-topbar .top-links > a[href*="page=messages"] .top-modern-icon{
    color:var(--lux747-purple)!important;
    background:linear-gradient(145deg,#fffefa,#f5effd)!important;
    border-color:rgba(139,91,214,.20)!important;
  }
  html[data-theme="light"] body .community-topbar .notification-header-button .top-modern-icon{
    color:var(--lux747-gold-dark)!important;
    background:linear-gradient(145deg,#fffefa,#fbf4e3)!important;
    border-color:rgba(213,160,62,.24)!important;
  }
  html[data-theme="light"] body .community-topbar .top-links > a[href*="page=search"] .top-modern-icon{
    color:var(--lux747-teal)!important;
    background:linear-gradient(145deg,#fffefa,#eef9f7)!important;
    border-color:rgba(46,169,159,.20)!important;
  }
  html[data-theme="light"] body .community-topbar .settings-header-button-v1826 .top-modern-icon{
    color:#6f55a5!important;
    background:linear-gradient(145deg,#fffefa,#f6f1fc)!important;
    border-color:rgba(139,91,214,.18)!important;
  }

  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832:is(:hover,:focus-visible,[aria-expanded="true"]) .top-modern-icon,
  html[data-theme="light"] body .community-topbar .top-links .notification-header-button:is(:hover,:focus-visible,[aria-expanded="true"]) .top-modern-icon,
  html[data-theme="light"] body .community-topbar .top-links .settings-header-button-v1826:is(:hover,:focus-visible,[aria-expanded="true"]) .top-modern-icon{
    transform:translateY(-1px)!important;
    border-color:rgba(205,151,50,.38)!important;
    box-shadow:0 8px 18px rgba(77,49,21,.10),0 0 0 3px rgba(213,160,62,.055),inset 0 1px 0 rgba(255,255,255,.98)!important;
  }

  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832 > span:not(.top-modern-icon):not(.top-lucide-icon-v1837),
  html[data-theme="light"] body .community-topbar .top-links .notification-header-button > span:not(.top-modern-icon):not(.top-lucide-icon-v1837),
  html[data-theme="light"] body .community-topbar .top-links .settings-header-button-v1826 > span:not(.top-modern-icon):not(.top-lucide-icon-v1837){
    display:block!important;
    width:45px!important;
    max-width:45px!important;
    color:#514b47!important;
    font-size:7.5px!important;
    font-weight:650!important;
    line-height:1!important;
    letter-spacing:-.01em!important;
    text-align:center!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    opacity:1!important;
  }

  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832 > b,
  html[data-theme="light"] body .community-topbar .top-links .notification-header-button > b{
    position:absolute!important;
    top:0!important;
    right:1px!important;
    min-width:14px!important;
    height:14px!important;
    padding:0 3px!important;
    display:grid!important;
    place-items:center!important;
    color:#fff!important;
    font-size:7px!important;
    font-weight:800!important;
    line-height:1!important;
    background:linear-gradient(145deg,#a978ef,#8050cc)!important;
    border:2px solid #fffdfa!important;
    border-radius:999px!important;
    box-shadow:0 3px 8px rgba(128,80,204,.22)!important;
    z-index:3!important;
  }

  html[data-theme="light"] body .community-topbar .top-links .member-header-avatar.member-header-profile-link-v1826{
    flex:0 0 43px!important;
    width:43px!important;
    min-width:43px!important;
    height:43px!important;
    margin:0 0 10px 2px!important;
    padding:2px!important;
    background:linear-gradient(145deg,#fffefa,#f7edda)!important;
    border:1px solid rgba(205,151,50,.64)!important;
    border-radius:50%!important;
    box-shadow:0 6px 16px rgba(77,49,21,.13),0 0 0 2px rgba(255,255,255,.85)!important;
  }
  html[data-theme="light"] body .community-topbar .top-links .member-header-avatar.member-header-profile-link-v1826 img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    border-radius:50%!important;
  }
}

@media(max-width:390px){
  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar.luxoria-unified-topbar-v1863{
    grid-template-columns:43px minmax(0,1fr)!important;
    gap:5px!important;
    padding-left:max(6px,env(safe-area-inset-left))!important;
    padding-right:max(6px,env(safe-area-inset-right))!important;
  }
  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar .mobile-menu-v1861{
    width:41px!important;
    min-width:41px!important;
    height:41px!important;
  }
  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar .top-links{gap:1px!important;}
  html[data-theme="light"] body .community-topbar .top-links > a.topbar-action-v1832,
  html[data-theme="light"] body .community-topbar .top-links .notification-header-menu,
  html[data-theme="light"] body .community-topbar .top-links .member-header-menu{
    flex-basis:42px!important;
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
  }
  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832,
  html[data-theme="light"] body .community-topbar .top-links .notification-header-button,
  html[data-theme="light"] body .community-topbar .top-links .settings-header-button-v1826{
    width:42px!important;
    min-width:42px!important;
  }
  html[data-theme="light"] body .community-topbar .top-links .top-modern-icon,
  html[data-theme="light"] body .community-topbar .top-links .top-lucide-icon-v1837{
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    flex-basis:34px!important;
  }
  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832 > span:not(.top-modern-icon):not(.top-lucide-icon-v1837),
  html[data-theme="light"] body .community-topbar .top-links .notification-header-button > span:not(.top-modern-icon):not(.top-lucide-icon-v1837),
  html[data-theme="light"] body .community-topbar .top-links .settings-header-button-v1826 > span:not(.top-modern-icon):not(.top-lucide-icon-v1837){
    width:42px!important;
    max-width:42px!important;
    font-size:7px!important;
  }
  html[data-theme="light"] body .community-topbar .top-links .member-header-avatar.member-header-profile-link-v1826{
    flex-basis:39px!important;
    width:39px!important;
    min-width:39px!important;
    height:39px!important;
    margin-left:1px!important;
  }
}

@media(max-width:350px){
  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832 > span:not(.top-modern-icon):not(.top-lucide-icon-v1837),
  html[data-theme="light"] body .community-topbar .top-links .notification-header-button > span:not(.top-modern-icon):not(.top-lucide-icon-v1837),
  html[data-theme="light"] body .community-topbar .top-links .settings-header-button-v1826 > span:not(.top-modern-icon):not(.top-lucide-icon-v1837){
    display:none!important;
  }
  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar.luxoria-unified-topbar-v1863{
    min-height:66px!important;
    height:66px!important;
  }
  html[data-theme="light"] body .community-topbar .top-links > a.topbar-action-v1832,
  html[data-theme="light"] body .community-topbar .top-links .notification-header-menu,
  html[data-theme="light"] body .community-topbar .top-links .member-header-menu,
  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832,
  html[data-theme="light"] body .community-topbar .top-links .notification-header-button,
  html[data-theme="light"] body .community-topbar .top-links .settings-header-button-v1826{
    height:42px!important;
    min-height:42px!important;
  }
  html[data-theme="light"] body .community-topbar .top-links .member-header-avatar.member-header-profile-link-v1826{
    margin-bottom:0!important;
  }
}
