/* PUBLICBOOST Original Avatar Gallery · dark/purple and light parity */

.review-dialog.pb-avatar-modal{
 width:min(770px,calc(100% - 28px))!important;
 max-width:770px!important;
 max-height:min(91dvh,830px)!important;
 border:1px solid color-mix(in srgb,var(--accent) 46%,var(--line))!important;
 border-radius:22px!important;
 overflow-x:hidden!important;overflow-y:auto!important;
 background:linear-gradient(150deg,#242139,#1a1c2c 55%,#171a27)!important;
 box-shadow:0 34px 110px #000b,0 0 48px #744bec17!important;
 color:#f4f3ff!important;
 scrollbar-width:thin;
 scrollbar-color:#52456e transparent;
}
.review-dialog.pb-avatar-modal::backdrop{background:#05060dde;backdrop-filter:blur(7px)}
.pb-avatar-modal .dialog-head{
 padding:20px 24px!important;
 border-bottom:1px solid #39354b!important;
 background:linear-gradient(90deg,#302548,#222136);
}
.pb-avatar-modal .dialog-head h2{
 font-size:20px!important;line-height:1.55;font-weight:850;letter-spacing:-.2px;
}
.pb-avatar-modal .dialog-head [data-action=close-dialog]{
 display:grid;place-items:center;width:34px;height:34px;
 border-radius:11px;border:1px solid #49445d!important;background:#2d2b40!important;color:#d2caed!important;
}
.pb-avatar-modal .dialog-content{padding:0!important}
.pb-avatar-layout{padding:18px 22px 21px}
.pb-avatar-preview-area{
 display:flex;align-items:center;gap:15px;
 border:1px solid #3a3751;border-radius:16px;
 padding:11px 15px;
 background:radial-gradient(circle at 0% 0%,#6542a227,transparent 46%),#1c1c30;
 margin-bottom:15px;
}
.pb-avatar-preview-image{
 display:grid;place-items:center;width:88px;height:88px;flex:none;
 border-radius:19px;padding:3px;
 border:1px solid #a07aeb;
 box-shadow:0 8px 22px #05040a66,0 0 0 3px #9563e525;
 overflow:hidden;
}
.pb-avatar-preview-image img{display:block;width:100%;height:100%;border-radius:16px;object-fit:cover}
.pb-avatar-preview-copy{min-width:0;flex:1}
.pb-avatar-preview-copy strong{display:block;font-size:17px;line-height:1.4;font-weight:800;color:#f7f2ff}
.pb-avatar-preview-copy p{font-size:11px;line-height:1.7;color:#a8a3c4;margin-top:5px}
.pb-avatar-count{font:800 10px/1 Inter,sans-serif;letter-spacing:1px;color:#aa91ed;white-space:nowrap;border:1px solid #65518e;border-radius:20px;padding:8px 10px;background:#44335b66}
.pb-avatar-filter-row{display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;margin-bottom:13px;padding-bottom:1px}
.pb-avatar-filter-row::-webkit-scrollbar{display:none}
.pb-avatar-filter-row button{
 flex:none;min-width:73px;min-height:37px;padding:7px 15px;border-radius:10px;
 border:1px solid #3c394f;background:#232336;color:#b4b0cd;
 font-size:12px;font-weight:750;transition:background .18s,color .18s,border-color .18s;
}
.pb-avatar-filter-row button.is-active{
 background:linear-gradient(105deg,#6954f1,#9249db);border-color:#8c6df2;
 color:#fff;box-shadow:0 5px 13px #6043be40;
}
.pb-avatar-grid{
 display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;
 padding:4px 2px 9px;max-height:min(46dvh,420px);
 overflow-y:auto;scrollbar-width:thin;scrollbar-color:#53496c transparent;
}
.pb-avatar-tile{
 display:grid;place-items:center;position:relative;min-width:0;
 aspect-ratio:1/1;border:1.5px solid #4b455e;border-radius:14px;padding:3px;
 background:#151a2b;overflow:hidden;box-shadow:0 5px 14px #05070d22;
 transition:border-color .16s,box-shadow .16s,transform .16s;
}
.pb-avatar-tile:hover{border-color:#9c7aed;transform:translateY(-1px)}
.pb-avatar-tile:focus-visible{outline:2px solid #d5baff;outline-offset:2px}
.pb-avatar-tile img{
 width:100%;height:100%;object-fit:cover;display:block;
 border-radius:10px;background:linear-gradient(140deg,#322a59,#20253c);
}
.pb-avatar-tile.is-selected{
 border-color:#ac7aff;
 box-shadow:0 0 0 2px #9673eab5,0 0 23px #7551ec55,inset 0 0 0 1px #b4a5ff;
}
.pb-avatar-tile-check{
 position:absolute;right:5px;bottom:5px;display:none;
 width:22px;height:22px;align-items:center;justify-content:center;
 font:850 14px/1 Inter,sans-serif;border-radius:50%;
 color:#fff;background:linear-gradient(135deg,#5c68f5,#a34de0);
 border:1px solid #ddd0ff;box-shadow:0 3px 10px #0e082e77;
}
.pb-avatar-tile.is-selected .pb-avatar-tile-check{display:flex}
.pb-avatar-footer{padding-top:13px;border-top:1px solid #3b354f;margin-top:8px}
.pb-avatar-save{
 display:flex;justify-content:center;align-items:center;gap:9px;
 width:100%;height:48px;min-height:48px;border-radius:12px;
 color:#fff;font-size:14px;font-weight:850;
 background:linear-gradient(105deg,#6653f6,#894fe4,#a34cda);
 box-shadow:0 10px 26px #5c42cf3c;
}
.pb-avatar-save:disabled{opacity:.45}
.pb-avatar-secondary{display:flex;justify-content:center;gap:13px;margin:10px 0 3px}
.pb-avatar-secondary button{
 flex:1;max-width:220px;min-height:34px;
 background:#28273d;border:1px solid #454057;border-radius:9px;
 color:#c6bfdd;font-size:11px;font-weight:730;
}
.pb-avatar-secondary button:last-child{color:#f0a3b7}
.pb-avatar-local-note{text-align:center;font-size:10px;color:#a49fba;line-height:1.6;margin-top:9px}
.account-avatar-photo{border:1px solid color-mix(in srgb,var(--accent) 55%,var(--line))}
.account-avatar-photo img{image-rendering:auto}
.account-avatar-actions{gap:7px;margin-top:3px}
.account-avatar-actions button{
 font-size:10px!important;min-height:25px!important;font-weight:730;
 color:var(--accent);padding:4px 6px!important;
 border-radius:7px;
}
.account-avatar-actions button:hover{background:var(--accent-soft)}
.account-avatar-actions button:last-child{color:var(--muted)!important}
.avatar-edit-badge{box-shadow:0 3px 15px #6347c25a}
.top-actions .avatar.has-photo{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent)}
:root[data-theme="light"] .review-dialog.pb-avatar-modal{
 background:linear-gradient(150deg,#fff,#f6f4fc)!important;
 color:#2f284b!important;border-color:#cfc5e9!important;
}
:root[data-theme="light"] .pb-avatar-modal .dialog-head{background:#f4f0fb!important;border-color:#e1d9ef!important}
:root[data-theme="light"] .pb-avatar-modal .dialog-head h2{color:#272045!important}
:root[data-theme="light"] .pb-avatar-preview-area{background:#f6f3ff;border-color:#dbd2ee}
:root[data-theme="light"] .pb-avatar-preview-copy strong{color:#30264e}
:root[data-theme="light"] .pb-avatar-preview-copy p{color:#716782}
:root[data-theme="light"] .pb-avatar-filter-row button:not(.is-active),
:root[data-theme="light"] .pb-avatar-secondary button{background:#f4f1fa;border-color:#ddd7ed;color:#655b7b}
:root[data-theme="light"] .pb-avatar-local-note{color:#766b88}
@media(max-width:760px){
 .review-dialog.pb-avatar-modal{
  width:calc(100% - 16px)!important;max-width:640px!important;
  max-height:calc(100dvh - 24px)!important;border-radius:19px!important;
 }
 .pb-avatar-modal .dialog-head{padding:15px 16px!important}
 .pb-avatar-modal .dialog-head h2{font-size:18px!important}
 .pb-avatar-layout{padding:12px 13px 16px}
 .pb-avatar-preview-area{gap:10px;padding:9px 11px;margin-bottom:12px}
 .pb-avatar-preview-image{width:65px;height:65px;border-radius:14px}
 .pb-avatar-preview-image img{border-radius:11px}
 .pb-avatar-preview-copy strong{font-size:15px}
 .pb-avatar-preview-copy p{font-size:10px}
 .pb-avatar-count{display:none}
 .pb-avatar-filter-row{gap:6px;margin-bottom:11px}
 .pb-avatar-filter-row button{min-width:65px;padding:6px 11px;min-height:35px;font-size:11px}
 .pb-avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:calc(100dvh - 355px);min-height:100px;padding:4px 3px 7px}
 .pb-avatar-tile{border-radius:12px}
 .pb-avatar-tile img{border-radius:9px}
 .pb-avatar-footer{padding-top:11px}
 .pb-avatar-save{min-height:46px;height:46px}
 .pb-avatar-secondary{gap:7px}
 .pb-avatar-secondary button{font-size:10px}
 .pb-avatar-local-note{font-size:9px}
}
@media(max-height:650px){
 .pb-avatar-grid{max-height:210px;min-height:95px}
 .pb-avatar-preview-area{padding:7px 10px}
}

/* Avoid tiny text links underneath a narrow portrait. The full-size
   avatar action lives alongside Edit Profile for desktop and mobile. */
.account-avatar-block{gap:0}
.account-profile-actions [data-action=avatar-picker]{
 border-color:color-mix(in srgb,var(--accent) 46%,var(--line));
 color:var(--accent);
 background:color-mix(in srgb,var(--accent) 7%,var(--surface));
}
.account-profile-actions [data-action=avatar-picker]:hover{
 background:var(--accent-soft);
}
@media(max-width:760px){
 .pb-avatar-grid{
  max-height:calc(100dvh - 420px);
 }
 .pb-avatar-footer{
  position:sticky;
  bottom:-16px;
  z-index:2;
  background:#1b1c2a;
  padding-bottom:9px;
  box-shadow:0 -11px 22px rgba(17,17,29,.72);
 }
 :root[data-theme="light"] .pb-avatar-footer{
  background:#f7f5fb;
  box-shadow:0 -11px 22px #f5f3fbc7;
 }
 .account-profile-actions [data-action=avatar-picker]{
  min-height:36px;
  font-size:11px;
 }
}


/* PUBLICBOOST Profile Avatar Direct Select — circular profile image, floating
   "Change Avatar" label and accessible pencil action. Original PB styling. */
.account-profile-card .account-profile-hero{
  grid-template-columns:132px minmax(0,1fr) auto;
  align-items:center;
  gap:17px;
}
.account-profile-card .account-avatar-block{
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
  min-width:0;
  width:132px;
  min-height:130px;
  padding:12px 0 2px;
}
.account-profile-card button.account-avatar-photo.pb-avatar-entry{
  display:block;
  position:relative;
  isolation:isolate;
  flex:0 0 auto;
  box-sizing:border-box;
  width:108px;
  height:108px;
  min-height:0;
  padding:0;
  overflow:visible;
  border-radius:50%;
  border:4px solid #abc9ff;
  background:linear-gradient(135deg,#4566c8,#7555d7 54%,#b55fe1);
  box-shadow:
    0 0 0 4px rgba(112,95,229,.25),
    0 12px 29px rgba(28,21,83,.38),
    inset 0 0 0 2px rgba(255,255,255,.12);
  cursor:pointer;
  transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease;
  outline-offset:6px;
}
.account-profile-card button.account-avatar-photo.pb-avatar-entry:focus-visible{
  outline:3px solid #d4b5ff;
  outline-offset:6px;
}
.account-profile-card button.account-avatar-photo.pb-avatar-entry:hover{
  transform:translateY(-2px) scale(1.025);
  border-color:#d6b9ff;
  box-shadow:0 0 0 5px rgba(143,100,245,.32),0 14px 35px rgba(52,37,114,.45);
}
.account-profile-card button.account-avatar-photo.pb-avatar-entry>img{
  position:relative;
  display:none;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  object-fit:cover;
  border-radius:50%;
  background:#29234b;
}
.account-profile-card button.account-avatar-photo.pb-avatar-entry.has-photo>img{display:block}
.account-profile-card button.account-avatar-photo.pb-avatar-entry .account-avatar-fallback{
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:25px;
}
.account-profile-card button.account-avatar-photo.pb-avatar-entry.has-photo .account-avatar-fallback{display:none}
.account-profile-card .pb-avatar-change-pill{
  position:absolute;
  z-index:5;
  left:-13px;
  top:-18px;
  display:flex;
  align-items:center;
  justify-content:center;
  height:28px;
  padding:4px 11px;
  border:1px solid rgba(217,195,255,.38);
  border-radius:10px;
  background:linear-gradient(112deg,#6952f2,#9c54dd);
  box-shadow:0 5px 16px rgba(69,40,179,.44);
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:1.3;
  letter-spacing:0;
  white-space:nowrap;
  pointer-events:none;
}
.account-profile-card button.account-avatar-photo.pb-avatar-entry>.avatar-edit-badge{
  position:absolute;
  z-index:6;
  right:-12px;
  top:12px;
  bottom:auto;
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  padding:0;
  border:3px solid color-mix(in srgb,var(--surface) 89%,#21163d);
  border-radius:50%;
  background:linear-gradient(135deg,#f34488,#cb3fa6);
  color:#fff;
  box-shadow:0 6px 19px rgba(210,49,124,.33);
  pointer-events:none;
}
.account-profile-card button.account-avatar-photo.pb-avatar-entry>.avatar-edit-badge svg{
  width:16px;
  height:16px;
}
.account-profile-card .pb-avatar-press-hint{
  position:absolute;
  z-index:3;
  bottom:5px;
  left:11px;
  right:11px;
  display:block;
  border-radius:10px;
  padding:3px 4px;
  background:rgba(27,22,49,.83);
  color:#f7f1ff;
  font-size:8.5px;
  font-weight:780;
  line-height:1.3;
  white-space:nowrap;
  opacity:0;
  transform:translateY(4px);
  transition:opacity .17s ease,transform .17s ease;
  pointer-events:none;
}
.account-profile-card button.account-avatar-photo.pb-avatar-entry:hover .pb-avatar-press-hint,
.account-profile-card button.account-avatar-photo.pb-avatar-entry:focus-visible .pb-avatar-press-hint{
  opacity:1;
  transform:translateY(0);
}
.account-profile-card .account-profile-copy{min-width:0}
.account-profile-card .account-profile-copy h2{overflow-wrap:anywhere}
@media(max-width:1280px) and (min-width:761px){
  .account-profile-card .account-profile-hero{grid-template-columns:132px minmax(0,1fr)}
  .account-profile-card .account-profile-actions{
    grid-column:1/-1;
    justify-self:start;
    justify-content:flex-start;
  }
}
@media(max-width:760px){
  .account-profile-card .account-profile-hero{
    grid-template-columns:110px minmax(0,1fr);
    gap:12px;
    padding-top:4px;
  }
  .account-profile-card .account-avatar-block{
    width:110px;
    min-height:110px;
    padding:10px 0 2px;
  }
  .account-profile-card button.account-avatar-photo.pb-avatar-entry{
    width:90px;
    height:90px;
    border-width:4px;
  }
  .account-profile-card .pb-avatar-change-pill{
    left:-11px;
    top:-17px;
    height:25px;
    padding:3px 8px;
    font-size:10px;
  }
  .account-profile-card button.account-avatar-photo.pb-avatar-entry>.avatar-edit-badge{
    width:32px;
    height:32px;
    right:-10px;
    top:11px;
  }
  .account-profile-card button.account-avatar-photo.pb-avatar-entry>.avatar-edit-badge svg{width:15px;height:15px}
  .account-profile-card .account-profile-actions{
    grid-column:1/-1;
    justify-self:start;
    justify-content:flex-start;
  }
}
@media(max-width:360px){
  .account-profile-card .account-profile-hero{grid-template-columns:98px minmax(0,1fr);gap:8px}
  .account-profile-card .account-avatar-block{width:98px}
  .account-profile-card button.account-avatar-photo.pb-avatar-entry{width:84px;height:84px}
  .account-profile-card .pb-avatar-change-pill{font-size:9.5px}
}
@media(hover:none){
  .account-profile-card .pb-avatar-press-hint{display:none}
}
@media(prefers-reduced-motion:reduce){
  .account-profile-card button.account-avatar-photo.pb-avatar-entry,
  .account-profile-card .pb-avatar-press-hint{transition:none}
}

/* 20261018.10: Six carefully chosen HD portraits, no excessive filtering. */
.pb-avatar-modal .pb-avatar-six .pb-avatar-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:12px!important;
 max-height:none!important;
 min-height:0!important;
 overflow:visible!important;
 padding:4px 2px 10px!important;
}
.pb-avatar-modal .pb-avatar-six .pb-avatar-tile{
 aspect-ratio:1!important;
 border-radius:16px!important;
 background:#181a2b!important;
}
.pb-avatar-modal .pb-avatar-six .pb-avatar-tile img{
 width:100%!important;
 height:100%!important;
 object-fit:cover!important;
 border-radius:12px!important;
}
.pb-avatar-modal .pb-avatar-six .pb-avatar-preview-image{
 width:94px!important;
 height:94px!important;
}
.pb-avatar-modal .pb-avatar-six .pb-avatar-preview-image img{
 object-fit:cover!important;
}
.pb-avatar-modal .pb-avatar-six .pb-avatar-preview-copy strong{
 font-size:18px!important;
}
.pb-avatar-modal .pb-avatar-six .pb-avatar-footer{
 margin-top:4px!important;
}
@media(max-width:760px){
 .pb-avatar-modal .pb-avatar-six .pb-avatar-grid{
  gap:9px!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  padding:3px 1px 8px!important;
 }
 .pb-avatar-modal .pb-avatar-six .pb-avatar-tile{border-radius:12px!important}
 .pb-avatar-modal .pb-avatar-six .pb-avatar-tile img{border-radius:9px!important}
 .pb-avatar-modal .pb-avatar-six .pb-avatar-preview-image{
  width:70px!important;height:70px!important;
 }
 .pb-avatar-modal .pb-avatar-six .pb-avatar-preview-copy strong{font-size:15px!important}
 .pb-avatar-modal .pb-avatar-six .pb-avatar-footer{
  position:static!important;
  box-shadow:none!important;
  padding-bottom:0!important;
  background:transparent!important;
 }
}
@media(min-width:761px){
 .review-dialog.pb-avatar-modal:has(.pb-avatar-six){
  width:min(710px,calc(100% - 28px))!important;
  max-width:710px!important;
 }
 .pb-avatar-modal .pb-avatar-six .pb-avatar-grid{gap:10px!important}
 .pb-avatar-modal .pb-avatar-six .pb-avatar-preview-image{width:82px!important;height:82px!important}
}

/* v20261018.12 — no filler caption, HD badge or browser-storage notice. */
.pb-avatar-modal .pb-avatar-six .pb-avatar-preview-area{
 min-height:78px!important;
 padding:8px 13px!important;
 margin-bottom:13px!important;
 gap:12px!important;
}
.pb-avatar-modal .pb-avatar-six .pb-avatar-preview-copy{
 display:flex!important;
 align-items:center!important;
 min-height:50px;
}
.pb-avatar-modal .pb-avatar-six .pb-avatar-footer{
 padding-bottom:0!important;
}
.pb-avatar-modal .pb-avatar-six .pb-avatar-secondary{
 margin-bottom:0!important;
}
@media(max-width:760px){
 .pb-avatar-modal .pb-avatar-six .pb-avatar-preview-area{
  min-height:68px!important;
  padding:7px 10px!important;
  margin-bottom:11px!important;
 }
 .pb-avatar-modal .pb-avatar-six .pb-avatar-preview-copy{min-height:44px!important}
}
