/* Luxoria v18.74.4 — final Luxury Light visual completion */
:root{
  --lux744-ivory:#fffdf9;
  --lux744-ivory-soft:#faf6ef;
  --lux744-champagne:#f5ead7;
  --lux744-ink:#302a27;
  --lux744-muted:#77716c;
  --lux744-gold:#d5a03e;
  --lux744-gold-dark:#9d6a17;
  --lux744-border:rgba(181,132,56,.20);
  --lux744-border-strong:rgba(205,151,50,.42);
  --lux744-lavender:rgba(162,107,239,.10);
  --lux744-shadow:0 8px 24px rgba(77,49,21,.06),inset 0 1px 0 rgba(255,255,255,.94);
}

/* Clean sticker SVGs — no black raster halo */
html[data-theme="light"] body .profile-sticker-svg-v18744{
  display:block!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
  outline:0!important;
}

/* Complete profile: remove every remaining legacy dark section */
html[data-theme="light"] body .completion-shell-v1843 :where(
  .completion-card,
  .profile-preferences-photo-v1844,
  .profile-preferences-pane-v1844,
  .profile-photo-pane-v1844,
  .profile-photo-manager-v1844,
  .person-profile-card-v1820,
  .person-profile-head-v1819,
  .profile-introduction-editor-v1814,
  .dynamic-section,
  fieldset
){
  color:var(--lux744-ink)!important;
  background:linear-gradient(145deg,rgba(255,253,249,.98),rgba(250,246,239,.94))!important;
  border-color:var(--lux744-border)!important;
  box-shadow:var(--lux744-shadow)!important;
}
html[data-theme="light"] body .completion-shell-v1843 :where(.profile-preferences-pane-v1844,.profile-photo-pane-v1844){
  border:1px solid var(--lux744-border)!important;
  border-radius:20px!important;
  padding:18px!important;
}
html[data-theme="light"] body .completion-shell-v1843 :where(.person-profile-head-v1819,.dynamic-section>h2,.dynamic-section>h3){
  color:#4a3022!important;
  background:linear-gradient(90deg,rgba(245,234,215,.70),rgba(249,244,255,.50))!important;
  border:0!important;
  border-bottom:1px solid var(--lux744-border)!important;
  border-radius:14px 14px 0 0!important;
  box-shadow:none!important;
}
html[data-theme="light"] body .completion-shell-v1843 :where(h1,h2,h3,h4,strong,label){color:var(--lux744-ink)!important}
html[data-theme="light"] body .completion-shell-v1843 :where(p,small,span){color:var(--lux744-muted)!important}
html[data-theme="light"] body .completion-shell-v1843 :where(input,textarea,select){
  color:var(--lux744-ink)!important;
  background:#fffdfa!important;
  border:1px solid rgba(126,96,60,.18)!important;
  box-shadow:inset 0 1px 2px rgba(77,49,21,.025)!important;
}
html[data-theme="light"] body .completion-shell-v1843 :where(button[type="submit"],.primary,.profile-photo-upload-button-v1844){
  color:#5b3b08!important;
  background:linear-gradient(180deg,#f6d77f,#e7b64a)!important;
  border:1px solid rgba(168,108,17,.38)!important;
  box-shadow:0 7px 17px rgba(190,128,29,.16),inset 0 1px 0 rgba(255,255,255,.70)!important;
}
html[data-theme="light"] body .completion-shell-v1843 .person-profile-card-v1820{overflow:hidden!important}

/* Member profile albums */
html[data-theme="light"] body .embedded-profile-v173 :where(.profile-stage-albums-v172,.stage-album-grid,.stage-album-grid>a,.album-card,.profile-album-card-v173){
  color:var(--lux744-ink)!important;
  background:linear-gradient(145deg,#fffdfa,#faf6ef)!important;
  border-color:var(--lux744-border)!important;
  box-shadow:var(--lux744-shadow)!important;
}
html[data-theme="light"] body .embedded-profile-v173 .stage-album-grid>a{
  min-height:160px!important;
  border:1px solid var(--lux744-border)!important;
  border-radius:17px!important;
}
html[data-theme="light"] body .embedded-profile-v173 .stage-album-grid :where(svg,.lucide-local-icon-v1835){color:var(--lux-admin-album-accent,var(--lux744-gold))!important}
html[data-theme="light"] body .embedded-profile-v173 .stage-album-grid :where(strong,b){color:#44372d!important}
html[data-theme="light"] body .embedded-profile-v173 .stage-album-grid :where(span,small){color:#8a8178!important}

/* Header: Settings must be a clean icon, not a boxed tile */
html[data-theme="light"] body :where(.settings-header-button-v1826,.topbar-action-v1832[data-settings-toggle]){
  background:transparent!important;
  border-color:transparent!important;
  border-radius:12px!important;
  box-shadow:none!important;
  filter:none!important;
  outline:0!important;
}
html[data-theme="light"] body :where(.settings-header-button-v1826,.topbar-action-v1832[data-settings-toggle]):is(:hover,:focus-visible,[aria-expanded="true"]){
  color:var(--lux744-gold-dark)!important;
  background:rgba(245,234,215,.42)!important;
  border-color:transparent!important;
  box-shadow:none!important;
  transform:none!important;
}

/* Uploaded header logo replaces the text brand */
html[data-theme="light"] body .top-brand.has-uploaded-logo-v18744{
  width:auto!important;
  min-width:0!important;
  max-width:min(230px,22vw)!important;
  gap:0!important;
  overflow:visible!important;
}
html[data-theme="light"] body .top-brand.has-uploaded-logo-v18744 .top-brand-logo-uploaded-v18744{
  width:auto!important;
  min-width:0!important;
  max-width:210px!important;
  height:50px!important;
  max-height:50px!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:left center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
}

/* Private Messenger */
html[data-theme="light"] body .messenger-layout-v187{
  color:var(--lux744-ink)!important;
  background:#fffaf5!important;
  border-color:var(--lux744-border)!important;
  box-shadow:var(--lux744-shadow)!important;
}
html[data-theme="light"] body .messenger-layout-v187 :where(.conversation-list,.conversation-list-head,.direct-chat,.direct-chat-header,.direct-messages){
  color:var(--lux744-ink)!important;
  background:linear-gradient(180deg,#fffdfa,#faf7f1)!important;
  border-color:var(--lux744-border)!important;
  box-shadow:none!important;
}
html[data-theme="light"] body .messenger-layout-v187 .conversation-list-head{
  min-height:58px!important;
  border-bottom:1px solid var(--lux744-border)!important;
}
html[data-theme="light"] body .messenger-layout-v187 .conversation-list-head strong{color:#4a3022!important}
html[data-theme="light"] body .messenger-layout-v187 .conversation-list-head button{
  color:#6a470d!important;
  background:linear-gradient(180deg,#f5d786,#e7b54a)!important;
  border-color:rgba(169,109,17,.34)!important;
  box-shadow:0 5px 14px rgba(190,128,29,.14)!important;
}
html[data-theme="light"] body .messenger-layout-v187 .conversation-list>a{
  color:var(--lux744-ink)!important;
  background:transparent!important;
  border-color:transparent!important;
}
html[data-theme="light"] body .messenger-layout-v187 .conversation-list>a:is(:hover,.active){
  background:linear-gradient(90deg,rgba(245,234,215,.62),rgba(162,107,239,.08))!important;
  border-color:var(--lux744-border)!important;
}
html[data-theme="light"] body .messenger-layout-v187 .empty-state{
  color:var(--lux744-ink)!important;
  background:rgba(255,253,249,.76)!important;
  border-color:var(--lux744-border)!important;
}

/* Public chatroom is the page itself: remove the nested outer shell */
html[data-theme="light"] body.chat-window-mode-v1860 .community-main{padding:0!important;background:transparent!important}
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-shell-v1874{
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  border:0!important;
  border-radius:0!important;
  background:#fffaf5!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-layout-v1874{
  grid-template-columns:minmax(270px,29%) minmax(0,1fr)!important;
  gap:0!important;
  padding:0!important;
  background:#fffaf5!important;
}
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874{
  border:0!important;
  border-right:1px solid var(--chat-gold-border)!important;
  border-radius:0!important;
  background:#fcf8f1!important;
  box-shadow:none!important;
}
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-conversation-v1874{
  border:0!important;
  border-radius:0!important;
  background:#fdfaf6!important;
  box-shadow:none!important;
}
/* Remove inherited full-width orange message strips; retain only the bubble */
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-messages-v1874 .chat-message{
  width:100%!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-messages-v1874 .chat-message>div:nth-child(2){
  width:auto!important;
  max-width:min(72%,680px)!important;
}
/* Two compact member cards per row */
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-members-list-v1844{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  padding:12px!important;
}
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-members-list-v1844>a,
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-member-live-v1847{
  min-height:128px!important;
  grid-template-columns:1fr!important;
  justify-items:center!important;
  align-content:center!important;
  gap:7px!important;
  padding:10px 8px!important;
  text-align:center!important;
  border-radius:17px!important;
}
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-members-list-v1844>a>img,
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-members-list-v1844>a>span,
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-member-live-v1847>img,
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-member-live-v1847>span{
  width:58px!important;
  height:58px!important;
  font-size:20px!important;
}
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-members-list-v1844 strong,
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-member-live-v1847 strong{
  max-width:100%!important;
  font-family:Manrope,system-ui,sans-serif!important;
  font-size:13px!important;
  font-weight:700!important;
}
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-members-list-v1844 small,
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-member-live-v1847 small{font-size:9px!important}
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-members-list-v1844 a>i,
html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-member-live-v1847>i{
  top:55px!important;
  left:calc(50% + 15px)!important;
  width:12px!important;
  height:12px!important;
  border-width:2px!important;
}

/* Mobile chat fixes: visible drawer, Name Effect and viewport-safe attachment menu */
@media(max-width:820px){
  html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-shell-v1874{border-radius:0!important}
  html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-layout-v1874{grid-template-columns:1fr!important}
  html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874{
    z-index:1502!important;
    background:#fffaf5!important;
    opacity:0!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    filter:none!important;
    box-shadow:0 18px 48px rgba(77,49,21,.16)!important;
  }
  html[data-theme="light"] body.chat-window-mode-v1860.chat-members-open-v1874 .chatroom-members-v1874{opacity:1!important}
  html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-backdrop-v1874{
    z-index:1501!important;
    background:rgba(76,61,48,.18)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    filter:none!important;
  }
  html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-members-list-v1844{grid-template-columns:1fr!important}
  html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-members-list-v1844>a{grid-template-columns:62px minmax(0,1fr)!important;justify-items:start!important;text-align:left!important;min-height:88px!important}
  html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-members-list-v1844>a>img,
  html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-members-list-v1844>a>span{width:62px!important;height:62px!important}
  html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-members-v1874 .room-members-list-v1844 a>i{top:58px!important;left:58px!important}
  html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-header-tools-v1874>[data-chat-more-toggle]{display:grid!important}
  html[data-theme="light"] body.chat-window-mode-v1860 .chatroom-composer-v1874 .message-attach-menu{
    position:fixed!important;
    z-index:1800!important;
    left:10px!important;
    right:10px!important;
    bottom:calc(88px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    overflow:visible!important;
    transform:none!important;
  }
  html[data-theme="light"] body.chat-window-mode-v1860 .message-media-dialog{
    width:calc(100vw - 16px)!important;
    max-width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - 24px)!important;
    margin:8px!important;
    overflow:auto!important;
  }
}

/* Sidebar footer: replace black fade with a warm ivory fade */
html[data-theme="light"] body .community-sidebar{
  -webkit-mask-image:none!important;
  mask-image:none!important;
}
html[data-theme="light"] body .sidebar-footer-v1862{
  color:var(--lux744-ink)!important;
  background:linear-gradient(180deg,rgba(255,253,249,.90),#fffaf4 46%)!important;
  border-top:1px solid var(--lux744-border)!important;
  box-shadow:0 -14px 30px rgba(166,126,63,.07)!important;
  filter:none!important;
}
html[data-theme="light"] body .sidebar-footer-v1862::before,
html[data-theme="light"] body .sidebar-footer-v1862::after{content:none!important;display:none!important}

/* Upcoming Event widget: no black bookmark and larger readable typography */
html[data-theme="light"] body .feed-event-widget-v1865>header>button{
  color:var(--lux744-gold-dark)!important;
  background:#fffdfa!important;
  border:1px solid var(--lux744-border-strong)!important;
  box-shadow:0 5px 14px rgba(77,49,21,.06)!important;
}
html[data-theme="light"] body .feed-event-widget-v1865>header>button:is(:hover,:focus-visible){
  background:#faf3e7!important;
  color:#765016!important;
  box-shadow:0 7px 18px rgba(77,49,21,.08)!important;
}
html[data-theme="light"] body .feed-event-widget-v1865>header small{font-size:11px!important;letter-spacing:.15em!important}
html[data-theme="light"] body .feed-event-widget-v1865 .feed-event-preview-v1865 h3{font-size:22px!important;line-height:1.18!important}
html[data-theme="light"] body .feed-event-widget-v1865 .feed-event-preview-v1865 p{font-size:12px!important;line-height:1.55!important}
html[data-theme="light"] body .feed-event-widget-v1865 .feed-event-preview-v1865 :where(time,span){font-size:11.5px!important;line-height:1.5!important}
html[data-theme="light"] body .feed-event-widget-v1865 .feed-event-open-v1865{font-size:13px!important;font-weight:700!important}

/* Popup close buttons — soft ivory everywhere */
html[data-theme="light"] body :where(
  .modal-close,
  .luxoria-popup-close-v1860,
  .feed-event-close-v1865,
  .feed-invite-close-v18651,
  .video-popup-close-v1833,
  [data-close-modal],
  [data-feed-edit-close]
){
  color:#6d5b4b!important;
  background:#fffdfa!important;
  border:1px solid var(--lux744-border-strong)!important;
  border-radius:50%!important;
  box-shadow:0 7px 18px rgba(77,49,21,.09),inset 0 1px 0 rgba(255,255,255,.96)!important;
  filter:none!important;
  text-shadow:none!important;
}
html[data-theme="light"] body :where(
  .modal-close,
  .luxoria-popup-close-v1860,
  .feed-event-close-v1865,
  .feed-invite-close-v18651,
  .video-popup-close-v1833,
  [data-close-modal],
  [data-feed-edit-close]
):is(:hover,:focus-visible){
  color:#8453b8!important;
  background:#faf5ff!important;
  border-color:rgba(162,107,239,.26)!important;
  box-shadow:0 8px 20px rgba(77,49,21,.10)!important;
  transform:none!important;
}

/* Admin color opacity controls */
.theme-opacity-control-v18744{
  display:grid;
  grid-template-columns:1fr auto;
  gap:6px 12px;
  margin-top:9px;
  color:var(--muted,#8a8f98);
  font-size:12px;
  font-weight:600;
}
.theme-opacity-control-v18744 output{color:var(--gold,#d59a2d);font-weight:800}
.theme-opacity-control-v18744 input[type="range"]{grid-column:1/-1;width:100%}

@media(max-width:700px){
  html[data-theme="light"] body .top-brand.has-uploaded-logo-v18744{max-width:155px!important}
  html[data-theme="light"] body .top-brand.has-uploaded-logo-v18744 .top-brand-logo-uploaded-v18744{max-width:150px!important;height:42px!important;max-height:42px!important}
}
