/* Napisto v49.03 - isolated clean chat styles.
   This file is loaded after style.css and is the only authoritative layer
   for the front-end private chat thread. Older .np-message-bubble rules in
   style.css are considered legacy fallback and should not style the current
   .np-thread-* markup. */

.np-messages-shell--v489 .np-messages-layout--modern{
  align-items:start;
}

.np-messages-shell--v489 .np-messages-main{
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
  min-width:0!important;
}

.np-messages-shell--v489 .np-messages-head--actions{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  min-width:0!important;
}

.np-messages-shell--v489 .np-message-chat-user{
  min-width:0!important;
}

.np-messages-shell--v489 .np-message-delete-conversation{
  flex:0 0 auto!important;
  margin:0!important;
}

.np-messages-shell--v489 .np-chat-thread[data-np-messages-list],
.np-messages-shell--v489 .np-messages-list[data-np-messages-list]{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-height:none!important;
  height:auto!important;
  overflow:visible!important;
  padding:14px!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,rgba(244,239,255,.42),rgba(255,255,255,.80))!important;
  border:1px solid rgba(98,72,158,.12)!important;
  scroll-behavior:auto!important;
}

.np-messages-shell--v489 .np-chat-thread[data-np-messages-list]::-webkit-scrollbar,
.np-messages-shell--v489 .np-messages-list[data-np-messages-list]::-webkit-scrollbar{
  display:none!important;
}

.np-messages-shell--v489 .np-thread-row{
  box-sizing:border-box!important;
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  clear:both!important;
  position:relative!important;
}

.np-messages-shell--v489 .np-thread-row--other{justify-content:flex-start!important;}
.np-messages-shell--v489 .np-thread-row--own{justify-content:flex-end!important;}

.np-messages-shell--v489 .np-thread-bubble{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  width:auto!important;
  min-width:min(260px,100%)!important;
  max-width:min(72%,680px)!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:13px 15px!important;
  border-radius:22px!important;
  overflow:visible!important;
  position:relative!important;
  transform:none!important;
  opacity:1!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.45!important;
  box-shadow:0 12px 30px rgba(34,22,58,.08)!important;
}

.np-messages-shell--v489 .np-thread-bubble--other{
  align-self:flex-start!important;
  margin-right:auto!important;
  background:#fff!important;
  color:#211937!important;
  border:1px solid rgba(98,72,158,.14)!important;
}

.np-messages-shell--v489 .np-thread-bubble--own{
  align-self:flex-end!important;
  margin-left:auto!important;
  background:#6d51bb!important;
  background-image:linear-gradient(135deg,#5e4696,#8064cb)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:0 14px 34px rgba(94,70,150,.22)!important;
}

.np-messages-shell--v489 .np-thread-bubble__head{
  box-sizing:border-box!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:inherit!important;
  overflow:visible!important;
  position:static!important;
}

.np-messages-shell--v489 .np-thread-bubble__meta{
  box-sizing:border-box!important;
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:inherit!important;
  font-size:.84rem!important;
  font-weight:900!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  opacity:.92!important;
}

.np-messages-shell--v489 .np-thread-bubble__delete,
.np-messages-shell--v489 .np-message-delete-form{
  box-sizing:border-box!important;
  display:block!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  line-height:1!important;
}

.np-messages-shell--v489 .np-thread-bubble__delete-button,
.np-messages-shell--v489 .np-message-delete-button{
  appearance:none!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  min-height:24px!important;
  height:auto!important;
  margin:0!important;
  padding:5px 10px!important;
  border:0!important;
  border-radius:999px!important;
  font-size:.72rem!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-decoration:none!important;
  box-shadow:none!important;
  cursor:pointer!important;
}

.np-messages-shell--v489 .np-thread-bubble--other .np-thread-bubble__delete-button,
.np-messages-shell--v489 article.np-message-bubble:not(.is-own) .np-message-delete-button{
  background:rgba(127,29,29,.08)!important;
  color:#9b1c1c!important;
}

.np-messages-shell--v489 .np-thread-bubble--own .np-thread-bubble__delete-button,
.np-messages-shell--v489 article.np-message-bubble.is-own .np-message-delete-button{
  background:rgba(255,255,255,.20)!important;
  color:#fff!important;
}

.np-messages-shell--v489 .np-thread-bubble__text{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:inherit!important;
  font-size:1.02rem!important;
  font-weight:650!important;
  line-height:1.5!important;
  white-space:pre-wrap!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  text-align:left!important;
  opacity:1!important;
  position:static!important;
}

.np-messages-shell--v489 .np-thread-bubble .np-message-media{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  max-width:min(100%,520px)!important;
  margin:4px 0 0!important;
  padding:0!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.14)!important;
}

.np-messages-shell--v489 .np-thread-bubble .np-message-media img,
.np-messages-shell--v489 .np-thread-bubble .np-message-media video{
  display:block!important;
  max-width:100%!important;
  height:auto!important;
  border-radius:16px!important;
}

.np-messages-shell--v489 .np-message-compose{
  position:relative!important;
  z-index:1!important;
  margin-top:10px!important;
}

.np-messages-shell--v489 .np-message-compose textarea{
  width:100%!important;
  min-width:0!important;
  line-height:1.45!important;
}

/* Legacy fallback: only for temporarily cached old AJAX/HTML. */
.np-messages-shell--v489 .np-chat-thread[data-np-messages-list] > article.np-message-bubble,
.np-messages-shell--v489 .np-messages-list[data-np-messages-list] > article.np-message-bubble{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:8px!important;
  width:auto!important;
  min-width:min(260px,100%)!important;
  max-width:min(72%,680px)!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:13px 15px!important;
  border-radius:22px!important;
  overflow:visible!important;
  position:relative!important;
  float:none!important;
  clear:both!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  line-height:1.45!important;
  opacity:1!important;
  transform:none!important;
}

.np-messages-shell--v489 .np-chat-thread[data-np-messages-list] > article.np-message-bubble:not(.is-own),
.np-messages-shell--v489 .np-messages-list[data-np-messages-list] > article.np-message-bubble:not(.is-own){
  align-self:flex-start!important;
  margin-right:auto!important;
  background:#fff!important;
  color:#211937!important;
  border:1px solid rgba(98,72,158,.14)!important;
  box-shadow:0 10px 26px rgba(34,22,58,.07)!important;
}

.np-messages-shell--v489 .np-chat-thread[data-np-messages-list] > article.np-message-bubble.is-own,
.np-messages-shell--v489 .np-messages-list[data-np-messages-list] > article.np-message-bubble.is-own{
  align-self:flex-end!important;
  margin-left:auto!important;
  background:#6d51bb!important;
  background-image:linear-gradient(135deg,#5e4696,#8064cb)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:0 12px 28px rgba(94,70,150,.22)!important;
}

.np-messages-shell--v489 article.np-message-bubble > .np-message-bubble__meta,
.np-messages-shell--v489 article.np-message-bubble > .np-message-bubble__body{
  box-sizing:border-box!important;
  background:transparent!important;
  color:inherit!important;
  border:0!important;
  box-shadow:none!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  overflow:visible!important;
  position:static!important;
}

.np-messages-shell--v489 article.np-message-bubble > .np-message-bubble__meta{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  padding:0!important;
  opacity:.92!important;
}

.np-messages-shell--v489 article.np-message-bubble > .np-message-bubble__body{
  display:block!important;
  width:100%!important;
  padding:0!important;
  font-size:1.02rem!important;
  font-weight:650!important;
  line-height:1.5!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
}

@media (max-width:980px){
  .np-messages-shell--v489 .np-messages-head--actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
  }
  .np-messages-shell--v489 .np-message-delete-conversation,
  .np-messages-shell--v489 .np-message-delete-conversation__button{
    width:100%!important;
  }
}

@media (max-width:760px){
  .np-messages-shell--v489 .np-chat-thread[data-np-messages-list],
  .np-messages-shell--v489 .np-messages-list[data-np-messages-list]{
    gap:12px!important;
    padding:10px!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
  }
  .np-messages-shell--v489 .np-thread-bubble,
  .np-messages-shell--v489 .np-chat-thread[data-np-messages-list] > article.np-message-bubble,
  .np-messages-shell--v489 .np-messages-list[data-np-messages-list] > article.np-message-bubble{
    max-width:94%!important;
    min-width:min(230px,100%)!important;
    padding:12px 13px!important;
    border-radius:20px!important;
  }
  .np-messages-shell--v489 .np-thread-bubble__head,
  .np-messages-shell--v489 article.np-message-bubble > .np-message-bubble__meta{
    align-items:flex-start!important;
  }
  .np-messages-shell--v489 .np-thread-bubble__meta,
  .np-messages-shell--v489 article.np-message-bubble > .np-message-bubble__meta > span{
    font-size:.78rem!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  .np-messages-shell--v489 .np-thread-bubble__text,
  .np-messages-shell--v489 article.np-message-bubble > .np-message-bubble__body{
    font-size:1rem!important;
    line-height:1.5!important;
  }
  .np-messages-shell--v489 .np-message-compose{
    margin-top:8px!important;
    bottom:auto!important;
    box-shadow:0 10px 28px rgba(34,22,58,.10)!important;
  }
  .np-messages-shell--v489 .np-message-compose textarea{
    min-height:52px!important;
    max-height:150px!important;
    font-size:1rem!important;
  }
}

@media (max-width:430px){
  .np-messages-shell--v489 .np-thread-bubble,
  .np-messages-shell--v489 .np-chat-thread[data-np-messages-list] > article.np-message-bubble,
  .np-messages-shell--v489 .np-messages-list[data-np-messages-list] > article.np-message-bubble{
    max-width:100%!important;
    min-width:0!important;
  }
}

/* ===== v49.17 Mobilné správy: inteligentné presunutie po odoslaní/otvorení ===== */
@media (max-width:760px){
  .np-messages-shell--v489 [data-np-chat-message]{
    scroll-margin-top:82px!important;
    scroll-margin-bottom:110px!important;
  }
  .np-messages-shell--v489 .np-message-compose{
    scroll-margin-top:18px!important;
    scroll-margin-bottom:22px!important;
  }
}

/* ===== v49.18 Mobilné správy: tok zoznam → chat → zoznam ===== */
@media (max-width:760px){
  .np-messages-shell--v489 [data-np-messages-sidebar]{
    scroll-margin-top:76px!important;
  }
  .np-messages-shell--v489 .np-message-compose{
    scroll-margin-top:16px!important;
    scroll-margin-bottom:18px!important;
  }
}

/* ===== v49.19 Správy: postupné zobrazovanie starších správ po 20 ===== */
.np-messages-shell--v489 .np-message-older-wrap{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin:10px 0 12px!important;
  padding:8px 10px!important;
  border-radius:18px!important;
  background:linear-gradient(135deg, rgba(124,78,216,.08), rgba(255,255,255,.9))!important;
  border:1px solid rgba(124,78,216,.14)!important;
}
.np-messages-shell--v489 .np-message-load-older{
  min-height:38px!important;
  padding:9px 18px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#6d44c9!important;
  border:1px solid rgba(124,78,216,.22)!important;
  box-shadow:0 10px 26px rgba(124,78,216,.10)!important;
  font-size:.92rem!important;
  font-weight:800!important;
}
.np-messages-shell--v489 .np-message-load-older:hover,
.np-messages-shell--v489 .np-message-load-older:focus{
  background:#f3edff!important;
  color:#5530af!important;
  transform:translateY(-1px);
}
.np-messages-shell--v489 .np-message-older-note{
  color:#786d90!important;
  font-size:.82rem!important;
  font-weight:700!important;
}
@media (max-width:760px){
  .np-messages-shell--v489 .np-message-older-wrap{
    margin:8px 0 10px!important;
    padding:7px 8px!important;
  }
  .np-messages-shell--v489 .np-message-load-older{
    width:100%!important;
  }
  .np-messages-shell--v489 .np-message-older-note{
    display:block!important;
    width:100%!important;
    text-align:center!important;
    font-size:.78rem!important;
  }
}


/* v49.26: private message text is lighter and a bit smaller */
.np-messages-shell--v489 .np-thread-bubble__text{font-size:.92rem!important;font-weight:400!important;line-height:1.45!important;}
@media(max-width:760px){
  .np-messages-shell--v489 .np-thread-bubble__text,
  .np-messages-shell--v489 article.np-message-bubble > .np-message-bubble__body{font-size:.9rem!important;font-weight:400!important;line-height:1.45!important;}
  .np-messages-shell--v489 .np-message-compose__actions{display:grid!important;grid-template-columns:minmax(62px,1fr) minmax(0,4fr)!important;gap:8px!important;align-items:stretch!important;}
  .np-messages-shell--v489 .np-message-compose__actions > *,
  .np-messages-shell--v489 .np-message-file-button,
  .np-messages-shell--v489 .np-message-compose .button{width:100%!important;min-width:0!important;height:100%!important;min-height:48px!important;}
  .np-messages-shell--v489 .np-message-file-button{padding:8px 6px!important;font-size:.72rem!important;line-height:1.05!important;white-space:normal!important;text-align:center!important;}
}

/* v49.32: delete/block controls and report modal in private chat */
.np-messages-shell--v489 .np-message-chat-controls{display:grid!important;grid-template-columns:minmax(0,7fr) minmax(96px,3fr)!important;gap:8px!important;align-items:stretch!important;flex:0 0 min(420px,100%)!important;}
.np-messages-shell--v489 .np-message-chat-controls form{margin:0!important;min-width:0!important;}
.np-messages-shell--v489 .np-message-chat-controls .button{width:100%!important;height:100%!important;min-height:42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:normal!important;line-height:1.1!important;}
.np-messages-shell--v489 .np-message-block-user__button{background:#fff!important;color:#7c2d12!important;border-color:rgba(194,65,12,.26)!important;box-shadow:0 8px 20px rgba(124,45,18,.07)!important;}
.np-messages-shell--v489 .np-message-block-user__button--unblock{color:#166534!important;border-color:rgba(22,101,52,.25)!important;background:#f0fdf4!important;}
.np-messages-shell--v489 .np-message-delete-conversation--empty{display:block!important;min-height:42px!important;}
.np-message-blocked-note{margin-top:4px!important;}
.np-report-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:18px;}
.np-report-modal[hidden]{display:none!important;}
.np-report-modal__backdrop{position:absolute;inset:0;background:rgba(20,15,34,.55);backdrop-filter:blur(4px);}
.np-report-modal__dialog{position:relative;z-index:1;width:min(560px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:22px;border-radius:26px;background:#fff;border:1px solid rgba(98,72,158,.16);box-shadow:0 32px 90px rgba(17,12,30,.32);}
.np-report-modal__close{position:absolute;right:12px;top:10px;width:36px;height:36px;border:0;border-radius:999px;background:#f5f0ff;color:#2c2147;font-size:1.4rem;font-weight:900;cursor:pointer;}
.np-report-modal__dialog h2{margin:.25rem 0 .45rem;font-size:1.35rem;line-height:1.18;}
.np-report-form{display:grid;gap:12px;margin-top:12px;}
.np-report-reasons{display:grid;gap:8px;}
.np-report-reasons label{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:16px;background:#faf8ff;border:1px solid rgba(98,72,158,.12);font-weight:800;color:#332750;}
.np-report-reasons input{margin-top:3px;}
.np-report-form textarea{width:100%;border-radius:16px;border:1px solid rgba(98,72,158,.18);padding:10px 12px;}
.np-report-modal__actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;}
@media(max-width:980px){.np-messages-shell--v489 .np-message-chat-controls{width:100%!important;}}
@media(max-width:760px){.np-messages-shell--v489 .np-message-chat-controls{grid-template-columns:minmax(0,7fr) minmax(82px,3fr)!important;width:100%!important;}.np-messages-shell--v489 .np-message-chat-controls .button{font-size:.82rem!important;padding:8px 6px!important;}.np-report-modal{align-items:flex-end;padding:10px;}.np-report-modal__dialog{border-radius:22px;padding:18px;}}

/* ===== v49.38: kompaktná hlavička otvorenej konverzácie ===== */
.np-messages-shell--v489 .np-messages-main{
  gap:4px!important;
}
.np-messages-shell--v489 .np-messages-head--actions{
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
}
.np-messages-shell--v489 .np-message-chat-user,
.np-messages-shell--v489 .np-message-chat-user--link{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  margin:0!important;
  padding:2px 4px!important;
  min-width:0!important;
}
.np-messages-shell--v489 .np-message-chat-user__avatar{
  flex:0 0 auto!important;
}
.np-messages-shell--v489 .np-message-chat-user__avatar img{
  width:50px!important;
  height:50px!important;
}
.np-messages-shell--v489 .np-message-chat-user__body{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:1px!important;
  min-width:0!important;
}
.np-messages-shell--v489 .np-message-chat-user__name,
.np-messages-shell--v489 .np-message-chat-user--link h2{
  margin:0!important;
  font-size:clamp(1.2rem,2.1vw,1.8rem)!important;
  line-height:1.02!important;
  overflow-wrap:anywhere!important;
}
.np-messages-shell--v489 .np-message-chat-user__status,
.np-messages-shell--v489 .np-message-chat-user--link p{
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  font-size:.78rem!important;
  line-height:1.1!important;
}
.np-messages-shell--v489 .np-message-status-dot{
  width:7px!important;
  height:7px!important;
  margin-right:0!important;
  flex:0 0 auto!important;
}
.np-messages-shell--v489 .np-messages-head--actions + .np-message-older-wrap{
  margin-top:-10px!important;
}
.np-messages-shell--v489 .np-message-older-wrap{
  margin-bottom:5px!important;
}
@media(max-width:980px){
  .np-messages-shell--v489 .np-messages-head--actions{
    gap:4px!important;
  }
  .np-messages-shell--v489 .np-messages-head--actions + .np-message-older-wrap{
    margin-top:-8px!important;
  }
}
@media(max-width:760px){
  .np-messages-shell--v489 .np-messages-main{
    gap:3px!important;
  }
  .np-messages-shell--v489 .np-message-chat-user,
  .np-messages-shell--v489 .np-message-chat-user--link{
    gap:7px!important;
    padding:1px 2px!important;
  }
  .np-messages-shell--v489 .np-message-chat-user__avatar img{
    width:42px!important;
    height:42px!important;
  }
  .np-messages-shell--v489 .np-message-chat-user__name,
  .np-messages-shell--v489 .np-message-chat-user--link h2{
    font-size:1.18rem!important;
    line-height:1.02!important;
  }
  .np-messages-shell--v489 .np-message-chat-user__status,
  .np-messages-shell--v489 .np-message-chat-user--link p{
    font-size:.68rem!important;
    line-height:1.05!important;
  }
  .np-messages-shell--v489 .np-messages-head--actions + .np-message-older-wrap{
    margin-top:-7px!important;
  }
}

/* ===== v49.39: mobilné konverzácie najprv 4, ostatné cez tlačidlo ===== */
.np-messages-shell--v489 .np-message-more-conversations{
  display:none!important;
}
@media(max-width:760px){
  .np-messages-shell--v489 .np-messages-conversations-wrap{
    display:grid!important;
    gap:8px!important;
  }
  .np-messages-shell--v489 .np-messages-conversations-wrap:not(.is-expanded) .np-message-conversation-item[data-np-mobile-extra-conversation="1"]{
    display:none!important;
  }
  .np-messages-shell--v489 .np-messages-conversations-wrap.is-expanded .np-message-conversation-item[data-np-mobile-extra-conversation="1"]{
    display:grid!important;
  }
  .np-messages-shell--v489 .np-message-more-conversations{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    width:100%!important;
    min-height:38px!important;
    margin:2px 0 0!important;
    padding:9px 12px!important;
    border-radius:16px!important;
    border:1px solid rgba(111,71,197,.18)!important;
    background:linear-gradient(135deg,#fff,#f5f0ff)!important;
    color:#62489e!important;
    font-size:.86rem!important;
    font-weight:900!important;
    line-height:1.1!important;
    cursor:pointer!important;
    box-shadow:0 8px 22px rgba(58,38,96,.06)!important;
  }
  .np-messages-shell--v489 .np-message-more-conversations small{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:20px!important;
    height:20px!important;
    padding:0 6px!important;
    border-radius:999px!important;
    background:#efe8ff!important;
    color:#62489e!important;
    font-size:.68rem!important;
    font-weight:950!important;
  }
}


/* ===== v49.41: autoritatívne zmenšenie tlačidiel v Správach/Chate ===== */
.np-messages-shell--v489 .np-message-chat-controls{
  width:min(252px,100%)!important;
  max-width:252px!important;
  flex:0 0 min(252px,100%)!important;
  grid-template-columns:minmax(0,7fr) minmax(54px,3fr)!important;
  gap:5px!important;
  align-items:stretch!important;
}
.np-messages-shell--v489 .np-message-chat-controls .button,
.np-messages-shell--v489 .np-message-delete-conversation__button,
.np-messages-shell--v489 .np-message-block-user__button{
  min-height:16px!important;
  height:auto!important;
  padding:3px 7px!important;
  font-size:.58rem!important;
  line-height:1.05!important;
  border-radius:999px!important;
  box-shadow:0 3px 8px rgba(34,22,58,.04)!important;
}
.np-messages-shell--v489 .np-message-delete-conversation--empty{
  min-height:16px!important;
}
.np-messages-shell--v489 .np-message-load-older{
  min-height:24px!important;
  padding:5px 10px!important;
  font-size:.66rem!important;
  line-height:1.05!important;
  border-radius:999px!important;
}
.np-messages-shell--v489 .np-message-delete-button,
.np-messages-shell--v489 .np-thread-bubble__delete-button{
  font-size:.58rem!important;
  padding:3px 6px!important;
  min-height:0!important;
  line-height:1.05!important;
}
@media(max-width:760px){
  .np-messages-shell--v489 .np-message-chat-controls{
    width:min(235px,100%)!important;
    max-width:235px!important;
    flex-basis:min(235px,100%)!important;
    grid-template-columns:minmax(0,7fr) minmax(50px,3fr)!important;
    gap:4px!important;
  }
  .np-messages-shell--v489 .np-message-chat-controls .button,
  .np-messages-shell--v489 .np-message-delete-conversation__button,
  .np-messages-shell--v489 .np-message-block-user__button{
    min-height:15px!important;
    padding:3px 5px!important;
    font-size:.53rem!important;
  }
  .np-messages-shell--v489 .np-message-load-older{
    min-height:22px!important;
    padding:4px 9px!important;
    font-size:.62rem!important;
  }
}

/* ===== v49.49: textové akcie konverzácie napravo ===== */
.np-messages-shell--v489 .np-messages-head--actions{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}
.np-messages-shell--v489 .np-message-chat-user,
.np-messages-shell--v489 .np-message-chat-user--link{
  flex:1 1 auto!important;
  min-width:0!important;
}
.np-messages-shell--v489 .np-message-chat-controls{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  justify-content:center!important;
  gap:3px!important;
  width:auto!important;
  max-width:none!important;
  flex:0 0 auto!important;
  margin-left:auto!important;
  padding:0!important;
}
.np-messages-shell--v489 .np-message-chat-controls form,
.np-messages-shell--v489 .np-message-delete-conversation,
.np-messages-shell--v489 .np-message-block-user{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
}
.np-messages-shell--v489 .np-message-chat-controls .button,
.np-messages-shell--v489 .np-message-delete-conversation__button,
.np-messages-shell--v489 .np-message-block-user__button{
  appearance:none!important;
  display:inline!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline-offset:2px!important;
  color:#a94b4b!important;
  font-size:.58rem!important;
  font-weight:800!important;
  font-style:italic!important;
  line-height:1.15!important;
  text-align:right!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}
.np-messages-shell--v489 .np-message-block-user__button,
.np-messages-shell--v489 .np-message-block-user__button--unblock{
  color:#8f6b79!important;
}
.np-messages-shell--v489 .np-message-chat-controls .button:hover,
.np-messages-shell--v489 .np-message-chat-controls .button:focus-visible,
.np-messages-shell--v489 .np-message-delete-conversation__button:hover,
.np-messages-shell--v489 .np-message-delete-conversation__button:focus-visible,
.np-messages-shell--v489 .np-message-block-user__button:hover,
.np-messages-shell--v489 .np-message-block-user__button:focus-visible{
  background:transparent!important;
  box-shadow:none!important;
  text-decoration:underline!important;
  transform:none!important;
}
.np-messages-shell--v489 .np-message-delete-conversation--empty{
  display:none!important;
  min-height:0!important;
}
@media(max-width:760px){
  .np-messages-shell--v489 .np-messages-head--actions{
    gap:8px!important;
  }
  .np-messages-shell--v489 .np-message-chat-user,
  .np-messages-shell--v489 .np-message-chat-user--link{
    flex:1 1 auto!important;
    max-width:calc(100% - 82px)!important;
  }
  .np-messages-shell--v489 .np-message-chat-controls{
    width:auto!important;
    max-width:none!important;
    flex:0 0 auto!important;
    gap:2px!important;
  }
  .np-messages-shell--v489 .np-message-chat-controls .button,
  .np-messages-shell--v489 .np-message-delete-conversation__button,
  .np-messages-shell--v489 .np-message-block-user__button{
    font-size:.52rem!important;
    padding:0!important;
  }
}


/* ===== v49.55: kompaktnejšie správy a stabilnejší návrat k odpovedi ===== */
.np-messages-shell--v489 .np-message-chat-user__status,
.np-messages-shell--v489 .np-message-chat-user--link p{
  font-size:.702rem!important;
  line-height:1.05!important;
}
.np-messages-shell--v489 .np-message-older-wrap{
  width:fit-content!important;
  max-width:100%!important;
  margin:4px auto 5px!important;
  padding:6px 9px!important;
  gap:7px!important;
}
.np-messages-shell--v489 .np-message-load-older{
  display:inline-flex!important;
  width:auto!important;
  max-width:max-content!important;
  min-height:25px!important;
  padding:5px 11px!important;
  font-size:.693rem!important;
  line-height:1.05!important;
}
.np-messages-shell--v489 .np-message-older-note{
  width:auto!important;
  font-size:.684rem!important;
  line-height:1.15!important;
}
.np-messages-shell--v489 .np-chat-thread[data-np-messages-list],
.np-messages-shell--v489 .np-messages-list[data-np-messages-list]{
  gap:10.8px!important;
}
.np-messages-shell--v489 .np-thread-bubble{
  gap:7.5px!important;
}
.np-messages-shell--v489 .np-thread-bubble__meta{
  font-size:.756rem!important;
  line-height:1.2!important;
}
@media(max-width:760px){
  .np-messages-shell--v489 .np-message-chat-user__status,
  .np-messages-shell--v489 .np-message-chat-user--link p{
    font-size:.612rem!important;
    line-height:1.02!important;
  }
  .np-messages-shell--v489 .np-message-older-wrap{
    width:fit-content!important;
    max-width:calc(100% - 10px)!important;
    margin:4px auto 5px!important;
    padding:5px 8px!important;
    gap:5px!important;
  }
  .np-messages-shell--v489 .np-message-load-older{
    width:auto!important;
    max-width:max-content!important;
    min-height:23px!important;
    padding:4px 9px!important;
    font-size:.651rem!important;
  }
  .np-messages-shell--v489 .np-message-older-note{
    display:inline-flex!important;
    width:auto!important;
    text-align:center!important;
    font-size:.615rem!important;
    line-height:1.1!important;
  }
  .np-messages-shell--v489 .np-chat-thread[data-np-messages-list],
  .np-messages-shell--v489 .np-messages-list[data-np-messages-list]{
    gap:9.7px!important;
  }
  .np-messages-shell--v489 .np-thread-bubble{
    gap:7px!important;
  }
  .np-messages-shell--v489 .np-thread-bubble__meta{
    font-size:.68rem!important;
    line-height:1.18!important;
  }
}

/* ===== v49.56: chat bez horneho riadku + vacsi fotoaparat ===== */
.np-messages-shell--v489 > .np-messages-titlebar,
.np-messages-shell--v489 > .np-section-title.np-messages-titlebar{
  display:none!important;
}
.np-messages-shell--v489 > .np-messages-layout--modern{
  margin-top:0!important;
}
.np-messages-shell--v489 .np-message-file-button > span[aria-hidden="true"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:1.8rem!important;
  line-height:1!important;
  transform:translateY(1px);
}
@media(max-width:760px){
  .np-messages-shell--v489 .np-message-file-button > span[aria-hidden="true"]{
    font-size:2rem!important;
  }
}


/* v49.58: iba centrované tlačidlo starších správ */
.np-messages-shell--v489 .np-message-older-wrap{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}
.np-messages-shell--v489 .np-message-load-older{
  margin-left: auto;
  margin-right: auto;
}
.np-messages-shell--v489 .np-message-older-note{
  display: none !important;
}


/* ===== v49.59: kompaktnejšie chat akcie ===== */
.np-messages-shell--v489 .np-message-chat-controls{gap:1.5px!important;}
@media(max-width:760px){.np-messages-shell--v489 .np-message-chat-controls{gap:1px!important;}}
.np-messages-shell--v489 .np-message-chat-user__status .np-message-status-dot{display:none!important;}


/* v49.62 clickable chat URLs and website previews */
.np-messages-shell--v489 .np-message-link{color:inherit;text-decoration:underline;text-underline-offset:.16em;font-weight:800;overflow-wrap:anywhere;}
.np-messages-shell--v489 .np-thread-bubble--own .np-message-link{color:#fff;}
.np-messages-shell--v489 .np-message-link-preview{margin-top:.62rem;max-width:min(100%,420px);}
.np-messages-shell--v489 .np-message-link-preview__card{display:flex;gap:.7rem;align-items:stretch;border:1px solid rgba(118,86,196,.18);border-radius:16px;overflow:hidden;background:rgba(255,255,255,.88);color:#211b32;text-decoration:none;box-shadow:0 10px 24px rgba(32,20,58,.08);}
.np-messages-shell--v489 .np-thread-bubble--own .np-message-link-preview__card{background:rgba(255,255,255,.96);}
.np-messages-shell--v489 .np-message-link-preview__image{flex:0 0 96px;width:96px;min-height:86px;background:#ede8f8;}
.np-messages-shell--v489 .np-message-link-preview__image img{display:block;width:100%;height:100%;min-height:86px;object-fit:cover;}
.np-messages-shell--v489 .np-message-link-preview__body{display:flex;flex-direction:column;gap:.18rem;min-width:0;padding:.62rem .72rem .62rem 0;}
.np-messages-shell--v489 .np-message-link-preview__body:first-child{padding-left:.72rem;}
.np-messages-shell--v489 .np-message-link-preview__body small{color:#765fc1;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.np-messages-shell--v489 .np-message-link-preview__body strong{color:#211b32;font-size:.9rem;line-height:1.2;font-weight:900;}
.np-messages-shell--v489 .np-message-link-preview__body span{color:#686279;font-size:.78rem;line-height:1.32;}
@media(max-width:640px){.np-messages-shell--v489 .np-message-link-preview{max-width:100%;}.np-messages-shell--v489 .np-message-link-preview__card{border-radius:14px;gap:.55rem;}.np-messages-shell--v489 .np-message-link-preview__image{flex-basis:76px;width:76px;min-height:76px;}.np-messages-shell--v489 .np-message-link-preview__image img{min-height:76px;}.np-messages-shell--v489 .np-message-link-preview__body{padding:.52rem .58rem .52rem 0;}.np-messages-shell--v489 .np-message-link-preview__body strong{font-size:.84rem;}.np-messages-shell--v489 .np-message-link-preview__body span{font-size:.74rem;}}

/* ===== v49.98: chat notifications per conversation + Admin Napisto.sk support chat ===== */
.np-messages-shell--v489 .np-message-chat-controls{
  grid-template-columns:minmax(0,1.35fr) minmax(112px,.85fr) minmax(96px,.8fr)!important;
  gap:2px!important;
}
.np-messages-shell--v489 .np-message-chat-controls .button,
.np-messages-shell--v489 .np-message-block-user__button,
.np-messages-shell--v489 .np-message-delete-conversation__button,
.np-messages-shell--v489 .np-message-chat-watch__button{
  line-height:.99!important;
}
.np-messages-shell--v489 .np-message-chat-watch__button.is-active{
  background:linear-gradient(135deg,#6d39d3,#8b5cf6)!important;
  border-color:rgba(109,57,211,.35)!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(109,57,211,.16)!important;
}
.np-messages-shell--v489 .np-message-contact--support{
  border-color:rgba(109,57,211,.35)!important;
  background:linear-gradient(135deg,#7c3aed,#5b21b6)!important;
  color:#fff!important;
  box-shadow:0 16px 32px rgba(91,33,182,.18)!important;
}
.np-messages-shell--v489 .np-message-contact--support strong,
.np-messages-shell--v489 .np-message-contact--support small,
.np-messages-shell--v489 .np-message-contact--support .np-message-mini-tag{color:#fff!important;}
.np-messages-shell--v489 .np-message-contact--support .np-message-mini-tag{background:rgba(255,255,255,.20)!important;border-color:rgba(255,255,255,.35)!important;}
.np-messages-shell--v489 .np-message-support-note{
  margin:0 0 12px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(109,57,211,.18);
  background:linear-gradient(135deg,rgba(246,240,255,.96),rgba(255,255,255,.94));
  box-shadow:0 12px 28px rgba(66,35,126,.08);
}
.np-messages-shell--v489 .np-message-support-note strong{display:block;color:#5b21b6;font-size:.9rem;line-height:1.1;margin:0 0 4px;font-weight:900;}
.np-messages-shell--v489 .np-message-support-note p{margin:0;color:#5f5870;font-size:.78rem;line-height:1.35;}
@media(max-width:760px){
  .np-messages-shell--v489 .np-message-chat-controls{grid-template-columns:minmax(0,1fr) minmax(88px,.76fr) minmax(82px,.72fr)!important;}
  .np-messages-shell--v489 .np-message-chat-controls .button{font-size:.76rem!important;padding:7px 5px!important;min-height:38px!important;}
  .np-messages-shell--v489 .np-message-chat-watch__button span[aria-hidden="true"]{display:none!important;}
}

/* ===== v49.99: compact mobile chat controls + message reactions ===== */
.np-messages-shell--v489 .np-thread-bubble__tools{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:3px!important;
  flex:0 0 auto!important;
  min-width:0!important;
}
.np-messages-shell--v489 .np-message-reactions{
  display:inline-flex!important;
  align-items:center!important;
  gap:1px!important;
  padding:1px 2px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.72)!important;
  border:1px solid rgba(94,70,150,.10)!important;
  line-height:1!important;
}
.np-messages-shell--v489 .np-message-reaction{
  appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  box-shadow:none!important;
  cursor:pointer!important;
  font-size:.58rem!important;
  line-height:1!important;
  opacity:.66!important;
  transform:none!important;
}
.np-messages-shell--v489 .np-message-reaction:hover,
.np-messages-shell--v489 .np-message-reaction:focus-visible,
.np-messages-shell--v489 .np-message-reaction.is-active{opacity:1!important;background:rgba(109,57,211,.12)!important;}
.np-messages-shell--v489 .np-message-reaction--dislike.is-active{background:rgba(220,38,38,.12)!important;}
.np-messages-shell--v489 .np-message-reaction--heart.is-active{background:rgba(236,72,153,.12)!important;}
.np-messages-shell--v489 .np-thread-bubble__delete-button,
.np-messages-shell--v489 .np-message-delete-button{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  padding:0!important;
  font-size:.82rem!important;
  line-height:1!important;
}
@media(max-width:760px){
  .np-messages-shell--v489 .np-message-chat-controls{gap:.9px!important;row-gap:.9px!important;}
  .np-messages-shell--v489 .np-message-chat-controls .button,
  .np-messages-shell--v489 .np-message-block-user__button,
  .np-messages-shell--v489 .np-message-delete-conversation__button,
  .np-messages-shell--v489 .np-message-chat-watch__button{line-height:.89!important;min-height:36px!important;padding-top:6px!important;padding-bottom:6px!important;}
  .np-messages-shell--v489 .np-message-reaction{width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;font-size:.55rem!important;}
  .np-messages-shell--v489 .np-thread-bubble__tools{gap:2px!important;}
}

/* ===== v49.102: chat action controls as emojis only ===== */
.np-messages-shell--v489 .np-message-chat-controls--emoji{display:inline-flex!important;grid-template-columns:none!important;align-items:center!important;justify-content:flex-end!important;gap:3ch!important;row-gap:0!important;width:auto!important;min-width:0!important;}
.np-messages-shell--v489 .np-message-chat-controls--emoji form{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important;}
.np-messages-shell--v489 .np-message-chat-controls--emoji .button,.np-messages-shell--v489 .np-message-chat-controls--emoji .np-message-chat-watch__button,.np-messages-shell--v489 .np-message-chat-controls--emoji .np-message-block-user__button,.np-messages-shell--v489 .np-message-chat-controls--emoji .np-message-delete-conversation__button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:auto!important;width:auto!important;min-height:auto!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:.84rem!important;line-height:1!important;color:inherit!important;text-decoration:none!important;}
.np-messages-shell--v489 .np-message-chat-controls--emoji .button span[aria-hidden="true"],.np-messages-shell--v489 .np-message-chat-controls--emoji .np-message-chat-watch__button span[aria-hidden="true"]{display:inline-flex!important;line-height:1!important;}
.np-messages-shell--v489 .np-message-chat-controls--emoji .np-message-chat-watch__button.is-active{color:#6d39d3!important;background:transparent!important;border:0!important;box-shadow:none!important;filter:drop-shadow(0 1px 4px rgba(109,57,211,.22));}
.np-messages-shell--v489 .np-message-chat-controls--emoji .np-message-block-user__button{color:#7c2d12!important;}
.np-messages-shell--v489 .np-message-chat-controls--emoji .np-message-delete-conversation__button{color:#b91c1c!important;}
.np-messages-shell--v489 .np-message-chat-controls--emoji .button:hover,.np-messages-shell--v489 .np-message-chat-controls--emoji .button:focus-visible{transform:translateY(-1px)!important;opacity:.82!important;outline:0!important;}
@media(max-width:760px){.np-messages-shell--v489 .np-message-chat-controls--emoji{gap:3ch!important;justify-content:flex-end!important;}.np-messages-shell--v489 .np-message-chat-controls--emoji .button,.np-messages-shell--v489 .np-message-chat-controls--emoji .np-message-chat-watch__button,.np-messages-shell--v489 .np-message-chat-controls--emoji .np-message-block-user__button,.np-messages-shell--v489 .np-message-chat-controls--emoji .np-message-delete-conversation__button{font-size:.84rem!important;line-height:1!important;padding:0!important;min-height:auto!important;}}
