body.nxa-premium-messages{--nx:#ff5a00;--soft:#fff3ea;--ink:#17191d;--muted:#687386;--line:#e4e7eb}
body.nxa-premium-messages .nxa160-shell{display:grid;grid-template-columns:255px minmax(0,1fr);width:100%;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 32px rgba(17,24,39,.06);overflow:hidden}
body.nxa-premium-messages .nxa160-native{grid-column:2;min-width:0;width:100%!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}

/* Do not set height/display/flex/grid/position/overflow on any Better Messages thread,
   message-list or composer internals. Native v1.0 send behavior stays untouched. */
body.nxa-premium-messages .nxa160-native input[type=text],body.nxa-premium-messages .nxa160-native input[type=search]{border:1px solid #d7dce2!important;border-radius:10px!important;box-shadow:none!important}
body.nxa-premium-messages .nxa160-native input:focus,body.nxa-premium-messages .nxa160-native textarea:focus{border-color:var(--nx)!important;box-shadow:0 0 0 3px rgba(255,90,0,.09)!important}
body.nxa-premium-messages .nxa160-native .bm-thread-row,body.nxa-premium-messages .nxa160-native .thread,body.nxa-premium-messages .nxa160-native .thread-item,body.nxa-premium-messages .nxa160-native .conversation{transition:.16s ease!important}
body.nxa-premium-messages .nxa160-native .bm-thread-row:hover,body.nxa-premium-messages .nxa160-native .thread:hover,body.nxa-premium-messages .nxa160-native .thread-item:hover,body.nxa-premium-messages .nxa160-native .conversation:hover{background:#fff8f3!important}
body.nxa-premium-messages .nxa160-native .nxa160-unread{background:#fff8f2!important;position:relative!important;font-weight:700!important}
body.nxa-premium-messages .nxa160-native .nxa160-unread:after{content:"";position:absolute;right:12px;top:50%;width:9px;height:9px;border-radius:50%;background:var(--nx);transform:translateY(-50%);box-shadow:0 0 0 3px rgba(255,90,0,.1)}
body.nxa-premium-messages .nxa160-native .bm-composer{border-top-color:#eceff3!important;background:#fff!important}
body.nxa-premium-messages .nxa160-native .bm-composer [contenteditable=true]{border-radius:14px!important}
body.nxa-premium-messages .nxa160-native [aria-label="Send Message"]:not([aria-disabled="true"]){color:var(--nx)!important}

/* Nexaura left navigation */
.nxa160-nav{grid-column:1;padding:16px 14px;background:#fff;border-right:1px solid var(--line);font-family:inherit;color:#344054}
.nxa160-title{height:52px;display:flex;align-items:center;gap:11px;padding:0 11px 10px;border-bottom:1px solid #f0f1f4;margin-bottom:8px;font-size:20px;color:var(--ink)}
.nxa160-title svg,.nxa160-nav button svg,.nxa160-folder svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.nxa160-title svg{width:23px;height:23px;color:var(--nx)}
.nxa160-nav button{appearance:none;border:0;background:transparent;width:100%;height:43px;border-radius:10px;display:flex;align-items:center;gap:12px;padding:0 12px;color:#344054;font:500 14px/1.2 inherit;text-align:left;cursor:pointer;margin:2px 0;box-shadow:none!important}
.nxa160-nav button span{flex:1}.nxa160-nav button:hover{background:#fff8f3}.nxa160-nav button.active{background:#fff0e5;color:#e84f00;font-weight:700}
.nxa160-nav button b{font:800 11px/21px inherit;background:var(--nx);color:#fff;border-radius:999px;min-width:21px;height:21px;text-align:center;padding:0 6px}.nxa160-nav button b:empty{display:none}
.nxa160-folders{border-top:1px solid var(--line);margin-top:12px;padding:17px 11px 8px;display:flex;justify-content:space-between;align-items:center;color:var(--ink);font-size:14px}.nxa160-folders span{width:27px;height:27px;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center}
.nxa160-folder{display:flex;align-items:center;gap:11px;padding:9px 12px;color:#667085;font-size:13px}
.nxa160-connect{margin-top:14px;border:1px solid var(--line);border-radius:13px;padding:9px 10px;min-height:82px;display:flex;align-items:center;gap:9px;background:linear-gradient(135deg,#fff,#fff9f4);box-shadow:0 5px 18px rgba(16,24,40,.045)}
.nxa160-squirrel{width:64px;height:64px;flex:none;filter:drop-shadow(0 7px 9px rgba(0,0,0,.1));animation:nxa160Float 3.2s ease-in-out infinite}.nxa160-connect strong{display:block;font-size:13px;color:var(--ink)}.nxa160-connect small{display:block;font-size:10.5px;color:#667085;line-height:1.35;margin-top:3px}
@keyframes nxa160Float{50%{transform:translateY(-5px)}}

@media(max-width:900px){
 body.nxa-premium-messages .nxa160-shell{display:block;border-radius:10px;overflow:visible}
 .nxa160-nav{display:none}
 body.nxa-premium-messages .nxa160-native{width:100%!important}
}

/* v1.6.2 surgical layout patch.
   Based on working v1.6.0. Better Messages inbox/thread/composer DOM is NOT replaced. */
@media (min-width:901px){
  body.nxa-premium-messages .nxa160-shell{
    grid-template-columns:220px minmax(0,1fr) !important;
  }
  body.nxa-premium-messages .nxa160-nav{
    padding:14px 11px;
  }
  body.nxa-premium-messages .nxa160-title{
    font-size:18px;
    height:48px;
  }
  body.nxa-premium-messages .nxa160-nav button{
    height:40px;
    padding:0 10px;
    font-size:13px;
    gap:10px;
  }
  body.nxa-premium-messages .nxa160-connect{
    padding:8px;
    gap:7px;
  }
  body.nxa-premium-messages .nxa160-connect .nxa160-squirrel{
    width:54px;
    height:54px;
  }
  body.nxa-premium-messages .nxa160-connect strong{font-size:12px}
  body.nxa-premium-messages .nxa160-connect small{font-size:9.5px}
}

/* Never hide native Better Messages columns/content. */
body.nxa-premium-messages .nxa160-native,
body.nxa-premium-messages .nxa160-native .bm-thread-col,
body.nxa-premium-messages .nxa160-native .bm-thread-col__main,
body.nxa-premium-messages .nxa160-native .bm-msg-list-wrap,
body.nxa-premium-messages .nxa160-native .bm-msg-list,
body.nxa-premium-messages .nxa160-native .bm-composer{
  visibility:visible !important;
}

/* Keep the native composer/send behavior from the working v1.6.0. */
body.nxa-premium-messages .nxa160-native .bm-composer{
  opacity:1 !important;
}


/* v1.6.4 — Nexaura branded empty state only. Native messaging stays mounted. */
body.nxa-premium-messages .nxa164-empty-host{
  position:relative !important;
  min-width:420px;
  min-height:430px;
  isolation:isolate;
}
body.nxa-premium-messages .nxa164-empty-host > *{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
body.nxa-premium-messages .nxa164-empty-host::before{
  content:"";
  position:absolute;
  left:50%; top:42%;
  width:168px; height:168px;
  transform:translate(-50%,-50%);
  z-index:20; pointer-events:none;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cdefs%3E%3ClinearGradient id='a' x2='1' y2='1'%3E%3Cstop stop-color='%23ffad5d'/%3E%3Cstop offset='.55' stop-color='%23ff5a00'/%3E%3Cstop offset='1' stop-color='%23c94700'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='112' cy='198' rx='67' ry='11' fill='%23000' opacity='.08'/%3E%3Cpath d='M79 151C25 148 18 88 47 52c24-29 69-20 72 14 2 27-25 38-45 26 29 2 42-18 31-31-15-17-42 0-43 29-1 23 15 38 35 44z' fill='url(%23a)'/%3E%3Cpath d='M92 69L84 44l23 14m31 11 13-25 16 23' fill='url(%23a)' stroke='%23c94700' stroke-width='3'/%3E%3Ccircle cx='123' cy='95' r='49' fill='url(%23a)'/%3E%3Cellipse cx='125' cy='112' rx='35' ry='31' fill='%23fff3e5'/%3E%3Ccircle cx='103' cy='87' r='8' fill='%2320242b'/%3E%3Ccircle cx='146' cy='87' r='8' fill='%2320242b'/%3E%3Ccircle cx='100' cy='84' r='2.5' fill='white'/%3E%3Ccircle cx='143' cy='84' r='2.5' fill='white'/%3E%3Cpath d='M121 98q4-5 8 0q-4 7-8 0' fill='%234a2c1d'/%3E%3Cpath d='M105 112q20 15 39 0' fill='none' stroke='%234a2c1d' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M91 130q32 17 64 0v44q-32 21-64 0z' fill='white' stroke='%23f0d2bb' stroke-width='2'/%3E%3Ctext x='123' y='166' text-anchor='middle' font-size='38' font-weight='900' font-family='Arial' fill='%23ff5a00'%3EN%3C/text%3E%3Crect x='157' y='137' width='43' height='31' rx='7' fill='white' stroke='%23ff5a00' stroke-width='3'/%3E%3Cpath d='M160 141l18 14 18-14' fill='none' stroke='%23ff5a00' stroke-width='3'/%3E%3C/svg%3E");
  filter:drop-shadow(0 12px 16px rgba(255,90,0,.12));
  animation:nxa164float 3.2s ease-in-out infinite;
}
body.nxa-premium-messages .nxa164-empty-host::after{
  content:"Stay connected on Nexaura\A Select a conversation to read and reply to buyers and sellers.\A\A Fast replies build buyer confidence";
  white-space:pre-wrap;
  position:absolute; left:50%; top:calc(42% + 102px);
  transform:translateX(-50%); width:min(560px,90%);
  text-align:center; color:#17191d; z-index:21; pointer-events:none;
  font:800 24px/1.45 inherit;
}
@keyframes nxa164float{50%{transform:translate(-50%,calc(-50% - 6px))}}
@media(max-width:900px){
 body.nxa-premium-messages .nxa164-empty-host{min-width:0;min-height:340px}
 body.nxa-premium-messages .nxa164-empty-host::before{width:126px;height:126px}
 body.nxa-premium-messages .nxa164-empty-host::after{top:calc(42% + 80px);font-size:18px;line-height:1.45;width:92%}
}

/* v1.6.5-surgical — branding only; no layout/composer/sidebar behavior changed */
body.nxa-premium-messages .bm-reaction,
body.nxa-premium-messages .bm-reactions .bm-reaction,
body.nxa-premium-messages .bm-message-reaction,
body.nxa-premium-messages [class*="reaction"] [class*="count"],
body.nxa-premium-messages [class*="reaction"].active{
  background:#ff5a00 !important;
  border-color:#ff5a00 !important;
  color:#fff !important;
}
/* Move only the branded empty-state artwork upward. */
body.nxa-premium-messages .nxa164-empty-host::before{top:35% !important}
body.nxa-premium-messages .nxa164-empty-host::after{
  top:calc(35% + 102px) !important;
  color:#17191d !important;
  line-height:1.55 !important;
}
/* Orange brand divider below the empty-state copy. */
body.nxa-premium-messages .nxa164-empty-host{
  background-image:linear-gradient(90deg,transparent,transparent) !important;
}
@media(max-width:900px){
 body.nxa-premium-messages .nxa164-empty-host::before{top:34% !important}
 body.nxa-premium-messages .nxa164-empty-host::after{top:calc(34% + 80px) !important}
}
