/* PACKERO v3.8.26.286 — Nicola feedback: real UI implementation, not a static mockup.
   Scoped to existing functional DOM. Respects light/dark themes and authorizations. */

/* 1. Community posts: remove the native/browser button box around the author's identity. */
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-post{
  min-width:0;padding:clamp(14px,2.8vw,21px)!important;
  border:1px solid color-mix(in srgb,var(--line,#d9d4e4) 82%,#b06ad8 18%)!important;
  border-radius:19px!important;background:var(--panel,#fff)!important;
  box-shadow:0 8px 26px rgba(39,17,61,.055)!important;
  transition:border-color .16s ease,box-shadow .16s ease!important;
}
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-post:hover{
  border-color:color-mix(in srgb,#b55ada 48%,var(--line) 52%)!important;
  box-shadow:0 10px 30px rgba(75,32,108,.095)!important;
}
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-post>header{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  flex-wrap:wrap!important;gap:8px 12px!important;margin-bottom:12px!important;
}
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-post>header>.pk286-community-author{
  -webkit-appearance:none!important;appearance:none!important;display:inline-flex!important;
  flex:1 1 230px!important;align-items:center!important;justify-content:flex-start!important;
  gap:12px!important;min-width:0!important;max-width:100%!important;min-height:50px!important;
  margin:0!important;padding:2px 5px 2px 0!important;background:transparent!important;
  border:0!important;border-radius:14px!important;box-shadow:none!important;
  color:var(--text,#252235)!important;cursor:pointer!important;text-align:left!important;
  text-transform:none!important;font:inherit!important;outline-offset:3px!important;
}
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-author:is(:hover,:focus-visible){
  background:color-mix(in srgb,#9e41d8 7%,transparent)!important;
}
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-author:focus-visible{
  outline:3px solid #c45ce3!important;
}
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-author .avatar{
  display:block!important;width:48px!important;height:48px!important;min-width:48px!important;
  object-fit:cover!important;border-radius:50%!important;
  border:2px solid color-mix(in srgb,#bc62e5 48%,var(--line) 52%)!important;
  box-shadow:0 2px 10px rgba(103,35,139,.13)!important;flex:none!important;
}
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-author-copy{
  display:flex!important;flex:1 1 auto!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:center!important;gap:3px!important;min-width:0!important;
}
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-author-copy>b{
  display:block!important;max-width:100%;overflow-wrap:anywhere!important;
  color:var(--text,#211b30)!important;font-size:clamp(14px,2.5vw,16px)!important;
  font-weight:850!important;line-height:1.22!important;
}
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-author-copy>small{
  display:block!important;color:var(--muted,#716880)!important;
  font-size:12px!important;line-height:1.32!important;font-weight:550!important;
  overflow-wrap:anywhere!important;
}
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-post>p{
  margin:6px 0 12px!important;font-size:clamp(14px,2.4vw,16px)!important;
  color:var(--text,#211b30)!important;line-height:1.6!important;
  white-space:pre-wrap!important;overflow-wrap:anywhere!important;
}
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-post>small{
  display:block;margin-top:13px!important;padding-top:10px!important;
  border-top:1px solid var(--line,#ddd)!important;
  color:var(--muted,#777)!important;font-size:11.5px!important;
  letter-spacing:.01em!important;
}
body.packero-v3763 .hp-community-feed-v3763 .pk286-community-post>header>.danger-btn{
  appearance:none!important;border-radius:999px!important;
  min-height:38px!important;padding:7px 13px!important;font-weight:750!important;
  font-size:12px!important;box-shadow:none!important;
}
html[data-theme="dark"] body.packero-v3763 .hp-community-feed-v3763 .pk286-community-post{
  background:linear-gradient(145deg,var(--panel,#171923),var(--panel2,#1c202b))!important;
  box-shadow:0 10px 23px rgba(0,0,0,.15)!important;
}

/* 2. Staff moderation: replace the one-pixel browser-looking Search with a real branded control. */
body.packero-v353 .hp-moderation-v350 .hp-mod-filters-v350{
  border-radius:20px!important;padding:clamp(14px,3vw,20px)!important;
  box-shadow:0 5px 19px rgba(39,19,59,.045)!important;
  gap:12px!important;
}
body.packero-v353 .hp-moderation-v350 .hp-mod-filters-v350 label{min-width:0!important;gap:8px!important;line-height:1.25!important}
body.packero-v353 .hp-moderation-v350 .hp-mod-filters-v350 :is(select,input){
  appearance:auto;min-width:0!important;min-height:46px!important;
  padding:10px 13px!important;border:1px solid var(--line,#4a3f5a)!important;
  border-radius:13px!important;background:var(--panel2,#151923)!important;
  color:var(--text,#fff)!important;font-size:13px!important;
  box-shadow:none!important;outline-offset:2px!important;
}
body.packero-v353 .hp-moderation-v350 .hp-mod-filters-v350 :is(select,input):focus-visible{
  outline:3px solid color-mix(in srgb,#bc4de6 55%,transparent)!important;
  border-color:#b764e1!important;
}
body.packero-v353 .hp-moderation-v350 #modSearchBtn{
  appearance:none!important;display:inline-flex!important;justify-content:center!important;
  align-items:center!important;gap:8px!important;min-height:46px!important;
  padding:10px 20px!important;border:1px solid transparent!important;
  border-radius:13px!important;background:linear-gradient(112deg,#8739d9,#e62f98)!important;
  color:#fff!important;font:inherit!important;font-weight:800!important;font-size:13px!important;
  line-height:1.2!important;box-shadow:0 7px 15px rgba(133,54,174,.19)!important;
  cursor:pointer!important;transition:filter .15s ease,transform .15s ease!important;
}
body.packero-v353 .hp-moderation-v350 #modSearchBtn:before{
  content:"";display:inline-block;width:15px;height:15px;
  background:currentColor;mask:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Ccircle cx="10.8" cy="10.8" r="6.8" fill="none" stroke="black" stroke-width="2.3"/%3E%3Cpath d="m16 16 5 5" fill="none" stroke="black" stroke-width="2.3" stroke-linecap="round"/%3E%3C/svg%3E') center / contain no-repeat;
}
body.packero-v353 .hp-moderation-v350 #modSearchBtn:hover{filter:brightness(1.1)!important;transform:translateY(-1px)!important}
body.packero-v353 .hp-moderation-v350 #modSearchBtn:focus-visible{outline:3px solid #e670df!important;outline-offset:3px!important}
body.packero-v353 .hp-moderation-v350 .hp-mod-case-v350{
  border-radius:18px!important;box-shadow:0 5px 19px rgba(41,15,59,.06)!important;
}
body.packero-v353 .hp-moderation-v350 .hp-mod-kpis-v350>div{
  min-width:0;border-radius:16px!important;padding:12px 14px!important;
}
@media(max-width:760px){
  body.packero-v353 .hp-moderation-v350 .hp-mod-filters-v350{grid-template-columns:minmax(0,1fr)!important}
  body.packero-v353 .hp-moderation-v350 .hp-mod-search-v350{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
  body.packero-v353 .hp-moderation-v350 .hp-mod-search-v350 :is(input,button){grid-column:1!important;width:100%!important;box-sizing:border-box!important}
  body.packero-v353 .hp-moderation-v350 .hp-mod-kpis-v350{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.packero-v353 .hp-moderation-v350 .hp-mod-case-v350{overflow-wrap:anywhere!important}
}

/* 3. Mobile: give the account avatar the right-hand topbar position, not the last bottom-tab.
   The old v255/v256 CSS hides #mobileSessionBtn with !important. Restore deliberately here. */
@media(max-width:820px){
  body.packero-v382665 .hp-header .hp-actions #mobileSessionBtn.is-logged,
  body.packero-v3826 .hp-header .hp-actions #mobileSessionBtn.is-logged{
    display:inline-grid!important;visibility:visible!important;opacity:1!important;
    pointer-events:auto!important;place-items:center!important;order:99!important;
    width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;
    min-height:46px!important;flex:0 0 46px!important;
    padding:2px!important;margin:0!important;border-radius:50%!important;
    border:2px solid color-mix(in srgb,#bf5ae8 78%,#fff 22%)!important;
    background:var(--panel,#fff)!important;box-shadow:0 0 0 2px color-mix(in srgb,#dc5cd5 12%,transparent),0 4px 12px #822eab2b!important;
    cursor:pointer!important;overflow:hidden!important;
  }
  body.packero-v3826 .hp-header .hp-actions #mobileSessionBtn.is-guest,
  body.packero-v382665 .hp-header .hp-actions #mobileSessionBtn.is-guest{display:none!important}
  body.packero-v3826 .hp-header .hp-actions #mobileSessionBtn.is-logged>img,
  body.packero-v382665 .hp-header .hp-actions #mobileSessionBtn.is-logged>img{
    width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;
    border:0!important;object-fit:cover!important;border-radius:50%!important;display:block!important;
  }
  body.packero-v3826 #mobileSessionBtn.is-logged:focus-visible{outline:3px solid #de68dd!important;outline-offset:3px!important}
  body.packero-v3826 #mobileSessionBtn .pk286-avatar-fallback{
    display:grid;place-items:center;width:100%;height:100%;border-radius:50%;
    background:linear-gradient(135deg,#8738d6,#e83298);color:#fff;font-size:18px;font-weight:900;
  }
  body.packero-v382665 .hp-header .hp-actions{gap:clamp(2px,.75vw,5px)!important;min-width:0!important}
  body.packero-v382665 .hp-header .hp-actions #mobileSessionBtn.is-logged{margin-left:2px!important}
  /* Slot previously labelled Perfil now opens Comunidades, using the project's v261 icon. */
  body.packero-v382652 .mobile-bottom #mobileProfileBtn{min-width:0!important}
  body.packero-v382652 .mobile-bottom #mobileProfileBtn .hp-mobile-profile-icon-v382652{
    width:29px!important;height:29px!important;border-radius:9px!important;overflow:visible!important;
  }
  body.packero-v382652 .mobile-bottom #mobileProfileBtn .hp-mobile-profile-icon-v382652 img{
    width:29px!important;height:29px!important;max-width:29px!important;max-height:29px!important;
    border:0!important;border-radius:0!important;object-fit:contain!important;
  }
}
@media(max-width:390px){
  body.packero-v382665 .hp-header .hp-actions .hp-exp-wrap{min-width:42px!important;max-width:47px!important;flex:0 1 47px!important}
  body.packero-v382665 .hp-header .hp-actions #safePreviewBtn{min-width:42px!important;max-width:47px!important}
  body.packero-v382665 .hp-header .hp-actions :is(#walletQuickBtn,#notificationsBtn,.hp-top-cart-v3763,.packero-shop-quick-v382686){
    width:35px!important;min-width:35px!important;max-width:35px!important;height:38px!important;flex:0 0 35px!important;
  }
  body.packero-v382665 .hp-header .hp-actions #mobileSessionBtn.is-logged,
  body.packero-v3826 .hp-header .hp-actions #mobileSessionBtn.is-logged{
    width:43px!important;min-width:43px!important;max-width:43px!important;height:43px!important;min-height:43px!important;flex:0 0 43px!important;
  }
}
@media(max-width:350px){
  body.packero-v382665 .hp-header{padding-left:5px!important;padding-right:5px!important;column-gap:2px!important}
  body.packero-v382665 .hp-header .hp-actions{gap:2px!important}
  body.packero-v382665 .hp-header .hp-actions :is(#walletQuickBtn,#notificationsBtn,.hp-top-cart-v3763,.packero-shop-quick-v382686){
    width:33px!important;min-width:33px!important;max-width:33px!important;flex:0 0 33px!important;
  }
}
@media(max-width:480px){
  body.packero-v3763 .hp-community-feed-v3763{min-width:0!important;padding:12px!important;border-radius:18px!important}
  body.packero-v3763 .hp-community-feed-v3763 .pk286-community-post{padding:13px!important}
  body.packero-v3763 .hp-community-feed-v3763 .pk286-community-author .avatar{
    width:44px!important;height:44px!important;min-width:44px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.packero-v3763 .hp-community-feed-v3763 .pk286-community-post,
  body.packero-v353 .hp-moderation-v350 #modSearchBtn{transition:none!important;transform:none!important}
}
