/* Public-profile polish: preserves the existing banner/avatar/card structure
   and profile variables while tightening its visual hierarchy. */

html body .nyx-founder-profile-standard{
  max-width:480px!important;
  border-color:color-mix(in srgb,#555963 72%,var(--nyx-founder-accent-primary,var(--credits-accent,#8fb8ff)))!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#1c1e24 0%,color-mix(in srgb,#191b20 96%,var(--nyx-founder-accent-primary,var(--credits-accent,#8fb8ff))) 100%)!important;
  box-shadow:0 14px 32px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.035)!important;
}

html body .nyx-founder-profile-standard .nyx-founder-banner{
  width:100%!important;
  height:132px!important;
  background:var(--nyx-founder-banner-color,var(--nyx-founder-accent-secondary,var(--credits-accent,#8ea1ff)))!important;
}

html body .nyx-founder-profile-standard .nyx-founder-banner img{object-fit:cover!important;object-position:center!important}

html body .nyx-founder-profile-standard .nyx-founder-profile-content{padding:0 11px 11px!important}

html body .nyx-founder-profile-standard .nyx-founder-image-wrap{
  width:78px!important;
  height:78px!important;
  margin-top:-40px!important;
  border:4px solid #1c1e24!important;
  background:#1c1e24!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--nyx-founder-accent-primary,#8fb8ff) 72%,#d5d9e1),0 7px 15px rgba(0,0,0,.34),0 0 12px color-mix(in srgb,var(--nyx-founder-accent-primary,#8fb8ff) 26%,transparent)!important;
}

html body .nyx-founder-profile-standard .nyx-founder-status{
  right:-3px!important;
  bottom:-3px!important;
  width:16px!important;
  height:16px!important;
  border:3px solid #1c1e24!important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--nyx-founder-accent-primary,#8fb8ff) 40%,transparent)!important;
}

html body .nyx-founder-profile-standard .nyx-founder-copy{
  margin-top:8px!important;
  padding:12px!important;
  border-color:rgba(255,255,255,.08)!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,color-mix(in srgb,#272a32 97%,var(--nyx-founder-accent-primary,#8fb8ff)) 0%,#22242b 100%)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025),0 5px 12px rgba(0,0,0,.14)!important;
}

html body .nyx-founder-profile-standard .nyx-founder-copy h3{
  font-size:20px!important;
  font-weight:750!important;
  line-height:1.15!important;
  letter-spacing:-.018em!important;
}

html body .nyx-founder-profile-standard .nyx-founder-handle{
  margin:2px 0 8px!important;
  color:#aeb2bd!important;
  font-size:12px!important;
  line-height:1.3!important;
}

html body .nyx-founder-profile-standard .nyx-founder-role{
  margin:8px 0 8px!important;
  color:#aeb2bd!important;
  font-size:10px!important;
  font-weight:750!important;
  letter-spacing:.075em!important;
}

html body .nyx-founder-role-list{gap:6px!important;margin:0 0 10px!important}

html body .nyx-founder-role-chip,
html body .nyx-founder-profile-standard .nyx-founder-badge{
  min-height:23px!important;
  padding:2px 7px!important;
  border:1px solid #484b55!important;
  border-radius:6px!important;
  background:#2b2e36!important;
  color:#dfe1e6!important;
  font-size:10.5px!important;
  line-height:1!important;
  transition:border-color .18s ease,background-color .18s ease,color .18s ease,transform .18s ease!important;
}

html body .nyx-founder-role-chip:hover,
html body .nyx-founder-profile-standard .nyx-founder-badge:hover{
  border-color:color-mix(in srgb,var(--nyx-founder-accent-primary,#8fb8ff) 60%,#70747e)!important;
  background:color-mix(in srgb,#2b2e36 87%,var(--nyx-founder-accent-primary,#8fb8ff))!important;
  transform:translateY(-1px)!important;
}

html body .nyx-founder-role-owner{
  border-color:color-mix(in srgb,var(--nyx-founder-accent-primary,#8fb8ff) 68%,#c5c9d2)!important;
  background:color-mix(in srgb,#2b2e36 81%,var(--nyx-founder-accent-primary,#8fb8ff))!important;
}

html body .nyx-founder-profile-standard .nyx-founder-badges{gap:6px!important;margin:0 0 10px!important}

html body .nyx-founder-about{
  margin-top:2px!important;
  padding-top:10px!important;
  border-top-color:rgba(255,255,255,.075)!important;
}

html body .nyx-founder-about>strong{
  margin-bottom:5px!important;
  color:#b8bdc8!important;
  font-size:10px!important;
  font-weight:750!important;
  letter-spacing:.075em!important;
}

html body .nyx-founder-profile-standard .nyx-founder-bio{
  color:#e1e3e8!important;
  font-size:12.5px!important;
  line-height:1.48!important;
}

html body .nyx-founder-profile-standard .nyx-founder-link{
  margin-top:10px!important;
  color:color-mix(in srgb,var(--nyx-founder-accent-secondary,#8ea1ff) 72%,#d9dce4)!important;
  font-size:12px!important;
  font-weight:650!important;
  transition:color .18s ease,transform .18s ease!important;
}

html body .nyx-founder-profile-standard .nyx-founder-link:is(:hover,:focus-visible){
  color:#fff!important;
  outline:none!important;
  transform:translateX(2px)!important;
}

/* The same profile primitives appear in the existing public-card preview. */
html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-profile-card{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  border-color:color-mix(in srgb,#555963 74%,var(--nyx-user-accent-primary,#5865f2))!important;
  background:linear-gradient(180deg,#1d1f25 0%,color-mix(in srgb,#1a1c22 96%,var(--nyx-user-accent-primary,#5865f2)) 100%)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.035)!important;
}

html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-profile-banner{height:132px!important}

html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-profile-avatar{
  width:80px!important;
  height:80px!important;
  margin-top:-39px!important;
  border:4px solid #1d1f25!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--nyx-user-accent-primary,#5865f2) 74%,#d8dbe3),0 7px 15px rgba(0,0,0,.35),0 0 12px color-mix(in srgb,var(--nyx-user-accent-primary,#5865f2) 28%,transparent)!important;
}

html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-profile-body{
  min-height:0!important;
  padding:13px!important;
  border-color:rgba(255,255,255,.08)!important;
  background:linear-gradient(180deg,color-mix(in srgb,#272a32 97%,var(--nyx-user-accent-primary,#5865f2)),#22242b)!important;
}

html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-profile-heading h2{font-size:21px!important;line-height:1.15!important}
html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-profile-about,
html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-profile-roles,
html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-profile-details{margin-top:12px!important;padding-top:10px!important;border-top-color:rgba(255,255,255,.075)!important}

html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-role{
  min-height:23px!important;
  padding:2px 7px!important;
  border-color:#484b55!important;
  border-radius:6px!important;
  background:#2b2e36!important;
  transition:border-color .18s ease,background-color .18s ease,transform .18s ease!important;
}

html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-role:first-child{
  border-color:color-mix(in srgb,var(--nyx-user-accent-primary,#5865f2) 68%,#c5c9d2)!important;
  background:color-mix(in srgb,#2b2e36 81%,var(--nyx-user-accent-primary,#5865f2))!important;
}

html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-role:hover{
  border-color:color-mix(in srgb,var(--nyx-user-accent-primary,#5865f2) 62%,#70747e)!important;
  background:color-mix(in srgb,#2b2e36 87%,var(--nyx-user-accent-primary,#5865f2))!important;
  transform:translateY(-1px)!important;
}

html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-profile-bio[data-nyx-direct-edit]::after{
  min-height:21px!important;
  border-color:color-mix(in srgb,#484b55 54%,var(--nyx-user-accent-primary,#5865f2))!important;
  border-radius:5px!important;
  background:#1b1d23!important;
  color:color-mix(in srgb,var(--nyx-user-accent-secondary,#8ea1ff) 72%,#d9dce4)!important;
  box-shadow:0 3px 9px rgba(0,0,0,.24)!important;
  transition:background-color .18s ease,color .18s ease,transform .18s ease!important;
}

html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-profile-bio[data-nyx-direct-edit]:hover::after{
  background:color-mix(in srgb,#20232a 86%,var(--nyx-user-accent-primary,#5865f2))!important;
  transform:translateY(-1px)!important;
}

@media(max-width:620px){
  html body .nyx-founder-profile-standard{max-width:100%!important;border-radius:12px!important}
  html body .nyx-founder-profile-standard .nyx-founder-banner{height:122px!important}
  html body .nyx-founder-profile-standard .nyx-founder-image-wrap{width:74px!important;height:74px!important;margin-top:-38px!important}
  html body .nyx-founder-profile-standard .nyx-founder-profile-content{padding:0 8px 8px!important}
}

@media(prefers-reduced-motion:reduce){
  html body .nyx-founder-role-chip,
  html body .nyx-founder-profile-standard .nyx-founder-badge,
  html body .nyx-founder-profile-standard .nyx-founder-link,
  html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-role,
  html[data-nyx-theme] body .nyx-profile-drawer .nyx-discord-preview-pane .nyx-user-profile-bio[data-nyx-direct-edit]::after{transition:none!important}
}
