/* ARTIZS.SAY v0.5.6 — account modes + official Team avatar + avatar centering */
.avatar{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  line-height:1!important;
  text-align:center!important;
  vertical-align:middle;
}
.avatar-initials{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
  transform:translateY(.02em);
  text-align:center;
}
.avatar.team-avatar{background:#f3f6fb!important;color:transparent!important;border-color:#e3e8ef!important}
.avatar.team-avatar img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:3px!important;box-sizing:border-box}
.avatar.avatar-xl.team-avatar img{padding:7px!important}
.profile-photo-button.is-official-team{cursor:default;opacity:1}
.profile-photo-button.is-official-team:hover{background:transparent}
.profile-photo-button.is-official-team>span:last-child{color:#64748b}

.profile-mode-panel{margin:12px 0 14px;border:1px solid #e5eaf1;background:#f8fafc;border-radius:16px;padding:13px}
.profile-mode-copy{display:flex;flex-direction:column;gap:3px;margin-bottom:10px}
.profile-mode-copy>span{font-size:8px;font-weight:900;letter-spacing:.08em;color:#8a94a4;text-transform:uppercase}
.profile-mode-copy>strong{font-size:12px;color:#152033}
.profile-mode-copy>small{font-size:9px;color:#7b8493}
.profile-mode-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.mode-action-btn{min-height:36px;border:1px solid #dfe5ed;background:#fff;color:#243044;border-radius:11px;padding:8px 10px;font:inherit;font-size:9px;font-weight:850;text-align:center;text-decoration:none;display:flex;align-items:center;justify-content:center;cursor:pointer}
.mode-action-btn:hover{background:#f1f5f9;border-color:#cdd6e2}

.mode-preview-bar{position:fixed;z-index:9999;left:50%;top:10px;transform:translateX(-50%);max-width:min(560px,calc(100vw - 24px));width:max-content;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#121722;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:9px 10px 9px 13px;box-shadow:0 12px 30px rgba(15,23,42,.18)}
.mode-preview-bar.hidden{display:none!important}
.mode-preview-bar>div:first-child{display:flex;align-items:center;gap:8px;min-width:0}
.mode-preview-bar strong{font-size:10px;white-space:nowrap}
.mode-preview-bar span{font-size:9px;color:#cbd5e1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mode-preview-actions{display:flex;gap:6px;flex:0 0 auto}
.mode-preview-actions button,.mode-preview-actions a{border:0;background:#fff;color:#172033;border-radius:9px;padding:7px 9px;font:inherit;font-size:8px;font-weight:900;text-decoration:none;cursor:pointer;white-space:nowrap}
.mode-preview-actions a{background:#293142;color:#fff;border:1px solid #3a4559}

html[data-theme="dark"] .avatar.team-avatar{background:#171e27!important;border-color:#2a3340!important}
html[data-theme="dark"] .profile-mode-panel{background:#151b23;border-color:#2a3340}
html[data-theme="dark"] .profile-mode-copy>strong{color:#f2f4f8}
html[data-theme="dark"] .profile-mode-copy>small,html[data-theme="dark"] .profile-mode-copy>span{color:#9ca8b8}
html[data-theme="dark"] .mode-action-btn{background:#1d2530;border-color:#303a48;color:#e8edf4}
html[data-theme="dark"] .mode-action-btn:hover{background:#242e3b}

@media(max-width:720px){
  .profile-mode-actions{grid-template-columns:1fr}
  .mode-preview-bar{top:8px;width:calc(100vw - 16px);gap:8px}
  .mode-preview-bar span{display:none}
}
