/* EarnPaste public profile page — page background/theme from startpaste.css (.sp-page) */

.profile-main {
  --profile-main-pad-x: 0.75rem; /* matches px-3 */
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.profile-mobile-top {
  display: none;
}

.profile-back-own-wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.625rem 0.75rem 0;
}

@media (min-width: 640px) {
  .profile-back-own-wrap {
    padding: 0.75rem 1.5rem 0;
  }
}

.profile-back-own-wrap.hidden {
  display: none;
}

.profile-back-own {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #86efac;
  text-decoration: none;
  transition: color 0.15s ease;
}

.profile-back-own:hover {
  color: #bbf7d0;
}

.profile-back-own__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  :root {
    --profile-mobile-top-h: calc(5.75rem + env(safe-area-inset-top, 0px));
  }

  /* Fallback offset before JS adds body.ep-has-profile-mobile-top.
     When the body class is present, zero this so we don't double the gap. */
  #profileApp:not(.hidden):not(.sp-profile-embed__app) {
    padding-top: var(--profile-mobile-top-h);
  }

  body.ep-has-profile-mobile-top #profileApp:not(.sp-profile-embed__app) {
    padding-top: 0;
  }

  .profile-mobile-top {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    padding-top: env(safe-area-inset-top, 0px);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    overflow: visible;
    border-radius: 0 0 1.5rem 1.5rem;
    transform: translateY(0);
    transition: transform 0.22s ease;
    will-change: auto;
    box-sizing: border-box;
    /* Match startpaste.css / profile page min-width so fixed nav spans the scrollable page */
    min-width: 370px;
    width: 100%;
    max-width: none;
  }

  .profile-mobile-top__plate {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
    background: transparent;
    backdrop-filter: blur(4px) saturate(160%);
    -webkit-backdrop-filter: blur(4px) saturate(160%);
  }

  .profile-mobile-top__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.06);
  }

  .profile-mobile-top__specular {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  }

  .profile-mobile-top__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Profile column: max-w-5xl + px-3 */
  body.sp-page:not(.sp-view):not([data-ep-mobile-nav="create"]) .profile-mobile-top__inner {
    max-width: 64rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Startpaste shell: full page width, 1rem gutters */
  body.sp-page[data-ep-mobile-nav="create"] .profile-mobile-top__inner {
    max-width: none;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .profile-mobile-top.is-hidden {
    transform: translateY(-100%);
    pointer-events: none;
  }

  /* Match top profile nav: hide global bottom bar while scrolling down */
  body.ep-has-profile-mobile-top #mobileBottomNav {
    transition: transform 0.22s ease;
    will-change: transform;
  }

  body.ep-has-profile-mobile-top #mobileBottomNav.is-hidden {
    transform: translateY(calc(100% + 1.75rem));
    pointer-events: none;
  }

  .profile-mobile-top__bar {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35rem 0;
  }

  .profile-mobile-top__self {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: calc(100% - 3.25rem);
    min-width: 0;
    text-decoration: none;
    color: rgba(244, 244, 245, 0.96);
    z-index: 1;
  }

  .profile-mobile-top__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(24, 24, 27, 0.85);
    flex-shrink: 0;
  }

  .profile-mobile-top__self-label {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile-mobile-top__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% - 0.56rem), -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: transparent;
  }

  .profile-mobile-top__logo-img {
    width: 2.75rem;
    height: 2.75rem;
    display: block;
    object-fit: contain;
    object-position: center;
  }

  .profile-tabs--mobile-top {
    --profile-mobile-bookmark-side: 1.1rem;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    column-gap: 0;
    margin: 0;
    border-bottom: 0;
    min-height: 2.5rem;
    padding: 0;
  }


  .profile-tabs--mobile-top .profile-tabs__tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.15rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    color: rgba(161, 161, 170, 0.96);
    border: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.16s ease;
  }

  .profile-tabs--mobile-top .profile-tabs__tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.1rem;
    width: min(2.4rem, 58%);
    height: 2px;
    border-radius: 9999px;
    background: #86efac;
    transform: translateX(-50%) scaleX(0.35);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.16s ease;
    pointer-events: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .profile-tabs--mobile-top .profile-tabs__tab:hover {
      color: rgba(244, 244, 245, 0.96);
    }
  }

  .profile-tabs--mobile-top .profile-tabs__tab:active {
    color: rgba(220, 252, 231, 0.96);
  }

  .profile-tabs--mobile-top .profile-tabs__tab.is-active {
    color: #bbf7d0;
    background: transparent;
    border-bottom-color: transparent;
  }

  .profile-tabs--mobile-top .profile-tabs__tab.is-active::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }

  /* Center the pill under the label, not the label+chevron group. */
  .profile-tabs--mobile-top .profile-tabs__tab[data-profile-nav="posts"]::after {
    left: calc(50% - 0.56rem);
  }

  .profile-tabs--mobile-top .profile-tabs__tab--icon {
    flex: 0 0 var(--profile-mobile-bookmark-side);
    width: var(--profile-mobile-bookmark-side);
    max-width: var(--profile-mobile-bookmark-side);
    min-width: var(--profile-mobile-bookmark-side);
    padding-left: 0;
    padding-right: 0;
    gap: 0;
    justify-content: center;
  }


  .profile-tabs--mobile-top .profile-tabs__tab--icon svg {
    width: 1rem;
    height: 1rem;
    color: rgba(161, 161, 170, 0.96);
    transition: color 0.16s ease, transform 0.16s ease;
  }

  .profile-tabs--mobile-top .profile-tabs__tab--icon.is-active svg {
    color: #fcd34d;
    transform: translateY(-0.5px);
  }

  .profile-tabs--mobile-top .profile-tabs__tab--icon::after {
    width: 0.85rem;
  }


  /* Keep Create Paste on the left */
  .profile-tabs--mobile-top .profile-tabs__tab[data-profile-nav="create"] {
    position: relative;
    flex: 0 1 auto;
    width: auto;
    max-width: calc(50% - 5.5rem);
    justify-content: flex-start;
    padding-left: 0.1rem;
    padding-right: 0.35rem;
  }

  /* Dead-center under the logo */
  .profile-tabs--mobile-top .profile-tabs__tab[data-profile-nav="posts"] {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: max-content;
    max-width: min(42%, 9.5rem);
    z-index: 2;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    overflow: visible;
  }

  /* Following sits on the right, before slim bookmark */
  .profile-tabs--mobile-top .profile-tabs__tab[data-profile-nav="following"] {
    position: relative;
    margin-left: auto;
    flex: 0 1 auto;
    width: auto;
    max-width: calc(50% - 5.5rem);
    justify-content: flex-end;
    padding-left: 0.35rem;
    padding-right: 0.25rem;
  }

  body.ep-has-profile-mobile-top {
    padding-top: var(--profile-mobile-top-h);
  }

  /* startpaste.css sets body padding-top: 0.75rem !important on mobile — win that fight */
  body.ep-has-profile-mobile-top.sp-page {
    padding-top: var(--profile-mobile-top-h) !important;
  }

  body.ep-has-profile-mobile-top.sp-view > .pt-3 {
    padding-top: 0.5rem;
  }

  .profile-tabs--inline {
    display: none !important;
  }

  .profile-back-own-wrap {
    display: none !important;
  }

  .profile-main {
    padding-top: 0.35rem;
  }
}

.profile-nav-chevron {
  display: inline-flex;
  align-items: center;
  margin-left: 0.15rem;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.18s ease;
}

.profile-nav-chevron__svg {
  display: block;
}

[data-profile-nav="posts"].is-menu-open .profile-nav-chevron,
[data-profile-nav="posts"][aria-expanded="true"] .profile-nav-chevron {
  transform: rotate(180deg);
}

@media (max-width: 767px) {
  .profile-tabs--mobile-top .profile-tabs__tab--profiles {
    gap: 0.1rem;
    font-size: 0.7rem;
  }
}

.profile-desktop-side__item--profiles {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .profile-mobile-top {
    display: none !important;
  }

  :root {
    --profile-desktop-side-w: 14.5rem;
  }

  .profile-desktop-side {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--profile-desktop-side-w);
    z-index: 100;
    /* Sit just below the h-16 EarnPaste wordmark in the top nav */
    padding: 4.35rem 1rem 1.5rem;
    background: rgba(4, 4, 5, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 0;
  }

  /* Merge top nav + side rail: keep the globalnav glass behind EarnPaste,
     but drop the full-width bottom seam over the left column. */
  body.ep-has-profile-desktop-side #startpaste-site-nav.nav-enhanced-desktop,
  body.ep-has-profile-desktop-side #startpaste-site-nav.nav-translucent,
  body.ep-has-profile-desktop-side #startpaste-site-nav.startpaste-site-nav {
    background:
      radial-gradient(ellipse 80% 50% at 20% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
      linear-gradient(180deg, rgba(2, 2, 2, 0.5) 0%, rgba(6, 6, 8, 0.45) 50%, rgba(3, 3, 5, 0.5) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: none;
    box-shadow: none;
  }

  body.ep-has-profile-desktop-side #startpaste-site-nav::before {
    content: '';
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: var(--profile-desktop-side-w);
    height: 1px;
    z-index: 0;
    pointer-events: none;
    background: rgba(75, 85, 99, 0.3);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    clip-path: none;
  }

  body.ep-has-profile-desktop-side #startpaste-site-nav.nav-enhanced-desktop::after,
  body.ep-has-profile-desktop-side #startpaste-site-nav.startpaste-site-nav::after {
    left: var(--profile-desktop-side-w);
  }

  body.ep-has-profile-desktop-side #profileApp:not(.sp-profile-embed__app) {
    padding-left: var(--profile-desktop-side-w);
    box-sizing: border-box;
  }

  /* Sidebar covers return-to-own-profile — hide link and reclaim its vertical space */
  .profile-back-own-wrap {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Inline section tabs are hidden on desktop sidebar — drop their leftover panel gap */
  body.ep-has-profile-desktop-side .profile-pastes-section > .profile-tabs--inline {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.ep-has-profile-desktop-side .profile-pastes-section .profile-tab-panel {
    padding-top: 0;
  }

  body.ep-has-profile-desktop-side .profile-pastes-section .profile-feed-filters {
    padding-top: 0.15rem;
  }

  body.ep-has-profile-desktop-side.sp-page .sp-shell.startpaste-main-column,
  body.ep-has-profile-desktop-side.sp-page .startpaste-main-column {
    margin-left: var(--profile-desktop-side-w);
    width: calc(100% - var(--profile-desktop-side-w));
    max-width: none;
    box-sizing: border-box;
  }

  body.ep-has-profile-desktop-side.sp-view > .pt-3 {
    padding-left: calc(var(--profile-desktop-side-w) + 0.5rem);
    padding-right: 0.75rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  body.ep-has-profile-desktop-side .profile-tabs--inline {
    display: none !important;
  }

  .profile-desktop-side__logo,
  .profile-desktop-side__rule {
    display: none !important;
  }

  .profile-desktop-side__self {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.7rem 0.75rem;
    border-radius: 0.9rem;
    text-decoration: none;
    color: rgba(244, 244, 245, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
  }

  .profile-desktop-side__self:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .profile-desktop-side__avatar {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(24, 24, 27, 0.85);
  }

  .profile-desktop-side__self-label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile-desktop-side__rule {
    height: 1px;
    margin: 0.2rem 0.4rem 0.15rem;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .profile-desktop-side__nav {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.45rem;
    padding-top: 0;
    min-height: 0;
  }

  .profile-desktop-side__item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: rgba(161, 161, 170, 0.96);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    padding: 0.95rem 0.9rem;
    border-radius: 0.85rem;
    border-left: 2px solid transparent;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }

  .profile-desktop-side__item:hover {
    color: rgba(244, 244, 245, 0.96);
    background: rgba(255, 255, 255, 0.04);
  }

  .profile-desktop-side__item.is-active {
    color: rgba(244, 244, 245, 0.98);
    background: rgba(134, 239, 172, 0.08);
    border-left-color: #86efac;
  }

  .profile-desktop-side__item--bookmarks .profile-desktop-side__item-icon {
    display: inline-flex;
    width: 1.1rem;
    height: 1.1rem;
    color: #fcd34d;
    flex-shrink: 0;
  }

  .profile-desktop-side__item--bookmarks .profile-desktop-side__item-icon svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .profile-desktop-side__profiles-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
  }

  .profile-following-picker--desktop {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0.1rem 0 0.25rem 0.55rem;
    padding: 0.35rem 0.35rem 0.4rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
  }

  .profile-following-picker--desktop.hidden {
    display: none;
  }
}

@media (max-width: 767px) {
  .profile-desktop-side {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .profile-main {
    --profile-main-pad-x: 1.5rem; /* matches sm:px-6 */
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }
}

.profile-hero-sticky-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .profile-hero-sticky-wrap {
    margin-bottom: 0.65rem;
  }
}

.profile-pastes-section {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

#profileApp.profile-app--feed-only .profile-pastes-section {
  margin-top: 0.25rem;
}

/* Park hero/composer instead of display:none so tab switches keep the subtree. */
#profileApp.profile-app--feed-only .profile-hero-sticky-wrap,
#profileApp.profile-app--feed-only #profilePostComposer {
  content-visibility: hidden;
  contain: layout style paint;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden;
  pointer-events: none;
  border-width: 0 !important;
}

.profile-hero {
  --profile-avatar-size: 5.75rem;
  /* ~50% of avatar sits on the cover (X-style; red-line reference) */
  --profile-avatar-overlap: calc(var(--profile-avatar-size) * 0.5);
  --profile-hero-bg: #000;
  position: relative;
  overflow: visible;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--profile-hero-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

@media (min-width: 640px) {
  .profile-hero {
    --profile-avatar-size: 6.5rem;
    border-radius: 1.5rem;
  }
}

#profileApp .profile-hero {
  width: 100%;
  min-height: 0;
}

.profile-hero__banner-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border-radius: inherit inherit 0 0;
  background: linear-gradient(145deg, rgba(22, 22, 30, 0.98), rgba(10, 10, 15, 0.98));
}

.profile-hero--has-banner .profile-hero__banner-stage {
  background: transparent;
}

.profile-hero--has-banner {
  background: var(--profile-hero-bg);
}

.profile-hero__banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  background-color: #0a0a0f;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.profile-hero--has-banner .profile-hero__banner {
  display: block;
}

.profile-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(10, 10, 15, 0.12);
}

.profile-hero--has-banner .profile-hero__scrim {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.08) 0%,
    rgba(10, 10, 15, 0.22) 100%
  );
}

.profile-hero__banner-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(229, 231, 235, 0.95);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.profile-hero__banner-btn:hover:not(:disabled):not([aria-disabled="true"]):not(.profile-upload-trigger--busy) {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(13, 13, 20, 0.9);
}

.profile-hero__banner-btn:disabled,
.profile-hero__banner-btn[aria-disabled="true"],
.profile-hero__banner-btn.profile-upload-trigger--busy {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}

.profile-hero__banner-btn.hidden {
  display: none;
}

@media (max-width: 639px) {
  .profile-hero__banner-btn:not(.hidden) {
    top: 0.35rem;
    right: 0.375rem;
    padding: 0.28rem 0.5rem;
    font-size: 0.625rem;
  }
}

.profile-hero__body {
  position: relative;
  z-index: 2;
  padding: calc(var(--profile-avatar-size) - var(--profile-avatar-overlap) + 0.375rem) 0.75rem 0.875rem;
  background: var(--profile-hero-bg);
  border-radius: 0 0 inherit inherit;
}

@media (min-width: 640px) {
  .profile-hero__body {
    padding: calc(var(--profile-avatar-size) - var(--profile-avatar-overlap) + 0.4375rem) 1rem 1rem;
  }
}

.profile-hero__inner {
  display: none;
}

.profile-hero__avatar-upload {
  position: absolute;
  right: -0.05rem;
  bottom: -0.05rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 9999px;
  border: 2px solid #0a0a0f;
  background: rgba(34, 197, 94, 0.95);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.profile-hero__avatar-upload:hover:not(:disabled):not([aria-disabled="true"]):not(.profile-upload-trigger--busy) {
  background: rgb(34, 197, 94);
  transform: scale(1.05);
}

.profile-hero__avatar-upload:disabled,
.profile-hero__avatar-upload[aria-disabled="true"],
.profile-hero__avatar-upload.profile-upload-trigger--busy {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}

.profile-hero__avatar-upload.hidden {
  display: none;
}

.profile-hero__avatar-wrap {
  position: absolute;
  top: calc(-1 * var(--profile-avatar-overlap));
  left: 0.75rem;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
  width: fit-content;
  max-width: calc(100% - 1.5rem);
  margin: 0;
}

@media (min-width: 640px) {
  .profile-hero__avatar-wrap {
    left: 1rem;
    max-width: calc(100% - 2rem);
  }
}

.profile-hero__avatar-frame {
  position: relative;
  width: var(--profile-avatar-size);
  height: var(--profile-avatar-size);
  flex-shrink: 0;
}

.profile-hero__avatar-frame--premium::before {
  content: "";
  position: absolute;
  inset: calc(var(--profile-avatar-size) * -0.12);
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.34) 0%, rgba(251, 191, 36, 0.14) 42%, transparent 72%);
  z-index: 0;
  pointer-events: none;
  animation: profile-premium-halo-pulse 2s ease-in-out infinite;
}

.profile-hero__avatar-frame--premium .profile-hero__avatar {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.35));
}

.profile-hero__avatar-frame--premium .profile-hero__premium-badge {
  z-index: 4;
  animation: profile-premium-badge-pulse 2s ease-in-out infinite;
}

@keyframes profile-premium-halo-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.82;
    transform: scale(1.05);
  }
}

@keyframes profile-premium-badge-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.85;
  }
}

.profile-hero__premium-badge {
  position: absolute;
  top: -0.05rem;
  right: -0.05rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--profile-avatar-size) * 0.34);
  height: calc(var(--profile-avatar-size) * 0.34);
  min-width: 1.125rem;
  min-height: 1.125rem;
  border-radius: 9999px;
  border: 2px solid var(--profile-hero-bg, #0a0a0f);
  background: linear-gradient(90deg, #facc15, #eab308);
  color: #713f12;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.45);
  pointer-events: none;
}

.profile-hero__premium-badge.hidden {
  display: none;
}

.profile-hero__premium-badge-icon {
  width: 58%;
  height: 58%;
}

.profile-hero__avatar {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 9999px;
  border: 4px solid var(--profile-hero-bg);
  object-fit: cover;
  object-position: center;
  display: block;
  background: #0d0d14;
  box-shadow: none;
}

.profile-hero__details {
  min-width: 0;
}

.profile-hero__display-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(74, 222, 128, 0.95);
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .profile-hero__display-name {
    font-size: 1.375rem;
  }
}

.profile-hero__titles,
.profile-hero__eyebrow-row,
.profile-hero__eyebrow {
  display: none;
}

.profile-hero__photo-info-wrap {
  position: relative;
  flex-shrink: 0;
  margin-bottom: 0.35rem;
}

.profile-hero__avatar-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 15, 0.72);
  color: rgba(156, 163, 175, 0.95);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.profile-hero__avatar-info:hover,
.profile-hero__avatar-info[aria-expanded="true"] {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(13, 13, 20, 0.98);
}

.profile-hero__avatar-info.hidden {
  display: none;
}

.profile-hero__avatar-info-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 20;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.96);
  font-size: 0.6875rem;
  line-height: 1.35;
  color: rgba(209, 213, 219, 0.95);
  text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.profile-hero__avatar-info-popover.hidden {
  display: none;
}

.profile-hero__handle,
.profile-hero__username {
  margin: 0.125rem 0 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-shadow: none;
}

@media (min-width: 640px) {
  .profile-hero__handle,
  .profile-hero__username {
    font-size: 1rem;
  }
}

.profile-hero__name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  max-width: 100%;
  flex-wrap: wrap;
}

.profile-hero__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 100%;
}

.profile-hero__title-row .profile-hero__display-name {
  margin: 0;
  min-width: 0;
}

.profile-hero__title-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.profile-hero__stats-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 0.375rem;
  flex-wrap: wrap;
}

.profile-hero__stat {
  font-size: 0.8125rem;
  color: rgba(212, 212, 216, 0.95);
}

.profile-hero__stat-num {
  color: #86efac;
  font-weight: 700;
}

.profile-hero__stat-link {
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.profile-hero__stat-link:hover {
  color: #fff;
}

.profile-hero__stat-link:hover .profile-hero__stat-num {
  color: #bbf7d0;
}

.profile-hero__following-link .profile-hero__stat-num {
  color: #86efac;
}

.profile-hero__following-link:hover .profile-hero__stat-num {
  color: #bbf7d0;
}

.profile-hero__following-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(212, 212, 216, 0.95);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-hero__following-link:hover {
  color: #fff;
}

.profile-follow-btn {
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fff;
  color: #0a0a0f;
  padding: 0.3125rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.profile-follow-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
}

.profile-follow-btn--active,
.profile-follow-btn:disabled.profile-follow-btn--active {
  background: transparent;
  color: rgba(244, 244, 245, 0.95);
  border-color: rgba(255, 255, 255, 0.22);
}

.profile-follow-btn--active:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.45);
}

.profile-follow-btn__hover {
  display: none;
}

.profile-follow-btn--active:hover:not(:disabled) .profile-follow-btn__default {
  display: none;
}

.profile-follow-btn--active:hover:not(:disabled) .profile-follow-btn__hover {
  display: inline;
  color: #f87171;
}

.profile-follow-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.profile-section-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.profile-section-loading.hidden {
  display: none;
}

.profile-section-loading__spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid rgba(74, 222, 128, 0.2);
  border-top-color: #86efac;
  border-radius: 9999px;
  animation: profile-pin-spin 0.7s linear infinite;
}

.profile-following-list__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.profile-following-list__loading.hidden {
  display: none;
}

.profile-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .profile-pastes-section > .profile-tabs--inline,
  .profile-tabs.profile-tabs--inline {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  /* Tabs moved to sticky top — drop the old below-tabs gap above All/Posts/Pastes/Media */
  .profile-pastes-section .profile-tab-panel {
    padding-top: 0;
  }

  .profile-pastes-section .profile-feed-filters {
    padding-top: 0.25rem;
  }
}

.profile-tabs__tab {
  flex: 1 1 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0.875rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(161, 161, 170, 0.95);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.profile-tabs__tab:hover {
  color: rgba(244, 244, 245, 0.95);
}

.profile-tabs__tab.is-active {
  color: rgba(244, 244, 245, 0.98);
  border-bottom-color: rgb(29, 155, 240);
}

.profile-tabs__tab--premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.profile-tabs__tab--premium svg {
  width: 0.85rem;
  height: 0.85rem;
  color: #fcd34d;
  flex-shrink: 0;
}

.profile-tabs__tab--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a.profile-tabs__tab {
  text-align: center;
}

.profile-feed-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0 0.5rem;
}

.profile-feed-filters__pill {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(10, 10, 15, 0.48);
  color: rgba(209, 213, 219, 0.92);
  border-radius: 9999px;
  padding: 0.275rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.15;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.profile-feed-filters__pill:hover {
  border-color: rgba(148, 163, 184, 0.45);
  color: rgba(244, 244, 245, 0.96);
}

.profile-feed-filters__pill.is-active {
  border-color: rgba(29, 155, 240, 0.55);
  background: rgba(29, 155, 240, 0.16);
  color: rgba(191, 229, 255, 0.98);
}

.profile-card-actions {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-card-actions .profile-pin-btn,
.profile-card-actions .profile-pin-indicator {
  position: static;
  top: auto;
  right: auto;
}

.profile-bookmark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.82);
  color: rgba(209, 213, 219, 0.95);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-bookmark-btn:hover:not(:disabled) {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}

.profile-bookmark-btn--active {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.12);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.22);
}

.profile-bookmark-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.profile-bookmark-btn svg {
  width: 1rem;
  height: 1rem;
}

.profile-post-card__top {
  display: none;
}

.profile-paste-card > .profile-pin-btn,
.profile-paste-card > .profile-pin-indicator {
  display: none;
}

.profile-tab-panel {
  padding-top: 1rem;
}

.profile-tab-panel.is-parked {
  content-visibility: hidden;
  contain: layout style paint;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden;
  pointer-events: none;
  border: 0 !important;
}

.profile-following-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-following-modal {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
}

.profile-following-modal.hidden {
  display: none;
}

body.profile-following-modal-open {
  overflow: hidden;
}

.profile-following-modal__panel {
  width: min(24rem, 100%);
  max-height: min(70vh, 32rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.98);
}

.profile-following-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-following-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.profile-following-modal__close {
  border: 0;
  background: transparent;
  color: rgba(212, 212, 216, 0.95);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.profile-following-list {
  overflow-y: auto;
  padding: 0.5rem;
}

.profile-following-list__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.profile-following-list__item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.profile-following-list__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-following-list__name {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(244, 244, 245, 0.98);
}

.profile-following-list__empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(156, 163, 175, 0.95);
}

/* Following nav picker (mobile dropdown + desktop sidebar reveal) */
.profile-following-picker {
  z-index: 12100;
}

.profile-following-picker__feed,
.profile-following-picker__more {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 244, 245, 0.98);
  font-size: 0.875rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  padding: 0.65rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.profile-following-picker__feed:hover,
.profile-following-picker__more:hover {
  background: rgba(134, 239, 172, 0.12);
  border-color: rgba(134, 239, 172, 0.28);
  color: #bbf7d0;
}

.profile-following-picker__feed {
  color: #86efac;
}

.profile-following-picker__feed-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #86efac;
}

.profile-following-picker__feed-icon svg {
  display: block;
}

.profile-following-picker__feed-label {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-following-picker__rule {
  height: 1px;
  margin: 0.35rem 0.45rem 0.4rem;
  background: rgba(255, 255, 255, 0.1);
}

.profile-following-picker__body {
  min-height: 2.25rem;
}

.profile-following-picker__accounts {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.profile-following-picker__account {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: rgba(244, 244, 245, 0.96);
  transition: background 0.15s ease;
}

.profile-following-picker__account:hover {
  background: rgba(255, 255, 255, 0.06);
}

.profile-following-picker__avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
}

.profile-following-picker__handle {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-following-picker__empty,
.profile-following-picker__loading {
  margin: 0;
  padding: 0.55rem 0.7rem 0.45rem;
  font-size: 0.75rem;
  color: rgba(161, 161, 170, 0.95);
}

.profile-following-picker__more {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(212, 212, 216, 0.95);
  background: transparent;
  border-color: transparent;
}

.profile-following-picker--mobile {
  position: fixed;
  z-index: 12050;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-height: min(70vh, 22rem);
  overflow: auto;
  padding: 0.4rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  -webkit-overflow-scrolling: touch;
}

.profile-following-picker--mobile.hidden {
  display: none;
}

@media (min-width: 768px) {
  .profile-following-picker--mobile {
    display: none !important;
  }
}

.profile-follow-signin-modal {
  position: fixed;
  inset: 0;
  z-index: 12060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
}

.profile-follow-signin-modal.hidden {
  display: none;
}

body.profile-follow-signin-modal-open {
  overflow: hidden;
}

.profile-follow-signin-modal__panel {
  width: min(22rem, 100%);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.98);
  padding: 1.25rem 1.25rem 1rem;
  text-align: center;
}

.profile-follow-signin-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.profile-follow-signin-modal__text {
  margin: 0 0 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(156, 163, 175, 0.95);
}

.profile-follow-signin-modal__google {
  width: 100%;
  border: 0;
  border-radius: 9999px;
  background: #fff;
  color: #0a0a0f;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.profile-follow-signin-modal__google:hover {
  background: rgba(255, 255, 255, 0.92);
}

.profile-follow-signin-modal__cancel {
  margin-top: 0.625rem;
  border: 0;
  background: transparent;
  color: rgba(156, 163, 175, 0.95);
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

.profile-follow-signin-modal__cancel:hover {
  color: rgba(244, 244, 245, 0.95);
}

.profile-hero__share-panel {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
  min-width: 0;
  margin-top: 0.625rem;
  padding-top: 0;
  border-top: none;
}

@media (min-width: 640px) {
  .profile-hero__share-panel {
    gap: 0.4375rem;
    margin-top: 0.75rem;
  }
}

.profile-hero__tagline {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgb(113, 118, 123);
  text-align: left;
  max-width: 100%;
  text-shadow: none;
}

@media (min-width: 640px) {
  .profile-hero__tagline {
    font-size: 0.875rem;
    line-height: 1.4;
  }
}

.profile-hero__share {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.375rem;
  width: 100%;
  min-width: 0;
}

.profile-hero__url {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(229, 231, 235, 1);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero__copy {
  flex: 0 0 auto;
  width: auto;
  min-width: 4.25rem;
  max-width: none;
  border-radius: 0.625rem;
  background: rgba(34, 197, 94, 0.9);
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.profile-hero__copy:hover {
  background: rgb(34, 197, 94);
}

.profile-hero__copy--copied {
  background: rgb(22, 163, 74) !important;
  box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.45), 0 0 18px rgba(16, 185, 129, 0.35);
}

@media (max-width: 639px) {
  .profile-hero {
    --profile-avatar-size: 5.25rem;
    border-radius: 1rem;
  }

  .profile-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .profile-hero__body {
    padding: calc(var(--profile-avatar-size) - var(--profile-avatar-overlap) + 0.3125rem) 0.625rem 0.75rem;
  }

  .profile-hero__avatar-wrap {
    left: 0.625rem;
    max-width: calc(100% - 1.25rem);
  }

  #profileApp .profile-hero__display-name {
    font-size: 1.125rem;
  }

  #profileApp .profile-hero__handle,
  #profileApp .profile-hero__username {
    font-size: 0.875rem;
  }

  #profileApp .profile-hero__share-panel {
    gap: 0.3125rem;
    margin-top: 0.5rem;
    min-width: 0;
  }

  #profileApp .profile-hero__tagline {
    font-size: 0.6875rem;
    line-height: 1.3;
  }

  #profileApp .profile-hero__url {
    font-size: 0.625rem;
    padding: 0.3125rem 0.4375rem;
  }

  #profileApp .profile-hero__copy {
    min-width: 3.75rem;
    padding: 0.3125rem 0.5rem;
    font-size: 0.6875rem;
  }

  #profileApp .profile-display-name-editor {
    max-height: min(38vh, 6.5rem);
    overflow-y: auto;
  }
}

@media (max-width: 399px) {
  .profile-hero {
    --profile-avatar-size: 4.75rem;
  }

  .profile-hero__body {
    padding-inline: 0.5rem;
  }

  .profile-hero__avatar-wrap {
    left: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  #profileApp .profile-hero__display-name {
    font-size: 1.0625rem;
  }

  #profileApp .profile-hero__handle,
  #profileApp .profile-hero__username {
    font-size: 0.8125rem;
  }

  #profileApp .profile-hero__tagline {
    font-size: 0.625rem;
  }

  #profileApp .profile-hero__copy {
    min-width: 3.5rem;
    font-size: 0.625rem;
    padding: 0.3125rem 0.4375rem;
  }
}

/* Banner crop modal */
.profile-file-input-offscreen {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.profile-upload-trigger--busy {
  pointer-events: none;
}

.profile-banner-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 13, 18, 0.88);
  backdrop-filter: blur(8px);
}

.profile-banner-crop-modal.hidden {
  display: none;
}

.profile-banner-crop-modal__panel {
  width: min(100%, 40rem);
  max-height: min(92vh, 44rem);
  overflow: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.96);
  padding: 1rem 1rem 1.125rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Standalone profile.html hero uses max-w-5xl (64rem) — match crop width to banner card */
.profile-banner-crop-modal:not(.profile-banner-crop-modal--embed) .profile-banner-crop-modal__panel {
  width: min(100%, 64rem);
  max-height: min(92vh, 52rem);
}

.profile-banner-crop-modal__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.profile-banner-crop-modal__hint {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(156, 163, 175, 0.95);
}

.profile-banner-crop-stage {
  position: relative;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  touch-action: none;
  cursor: grab;
  background: #0a0a0f;
}

.profile-banner-crop-stage.is-dragging {
  cursor: grabbing;
}

.profile-banner-crop-stage canvas {
  display: block;
  width: 100%;
  height: auto;
}

.profile-banner-crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  opacity: 0.55;
}

.profile-banner-crop-zoom {
  width: 100%;
  margin: 0.75rem 0 0;
  accent-color: #22c55e;
}

.profile-banner-crop-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.profile-banner-crop-cancel,
.profile-banner-crop-upload {
  flex: 1 1 0;
  border-radius: 0.75rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.profile-banner-crop-cancel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.55);
  color: rgba(209, 213, 219, 0.95);
}

.profile-banner-crop-upload {
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}

.profile-banner-crop-upload:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Action loading overlay */
.profile-action-loading {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(6px);
}

.profile-action-loading.hidden {
  display: none;
}

.profile-action-loading__panel {
  width: min(100%, 18rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.92);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.profile-action-loading__spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 2px solid rgba(74, 222, 128, 0.2);
  border-top-color: #86efac;
  border-radius: 9999px;
  animation: profile-pin-spin 0.7s linear infinite;
}

.profile-action-loading__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(229, 231, 235, 0.95);
}

body.profile-action-loading-open {
  overflow: hidden;
}

@keyframes profile-pin-spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-display-name-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.72);
  color: rgba(209, 213, 219, 0.95);
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.profile-display-name-edit:hover {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.18);
}

.profile-display-name-edit.hidden,
.profile-display-name-editor.hidden {
  display: none;
}

.profile-display-name-editor {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 20rem;
}

.profile-display-name-editor__hint {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: rgba(156, 163, 175, 0.95);
  text-align: left;
}

.profile-display-name-editor__hint-warn {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f87171;
  text-align: left;
}

.profile-display-name-editor__row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.profile-display-name-editor__prefix {
  font-size: 0.875rem;
  color: rgba(156, 163, 175, 0.95);
  flex-shrink: 0;
}

.profile-display-name-editor__input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 13, 20, 0.72);
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  color: #fff;
}

.profile-display-name-editor__input:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25);
}

.profile-display-name-editor__input--invalid {
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.profile-display-name-editor__input--invalid:focus {
  border-color: rgba(248, 113, 113, 0.85);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.profile-display-name-editor__validation {
  margin: 0.4rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: #f87171;
  text-align: left;
}

.profile-display-name-editor__validation--error {
  color: #f87171;
}

.profile-display-name-editor__validation.hidden {
  display: none;
}

.profile-display-name-editor__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.profile-display-name-editor__save,
.profile-display-name-editor__cancel {
  border-radius: 0.75rem;
  padding: 0.45rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.profile-display-name-editor__save {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.55);
  color: rgba(156, 163, 175, 0.95);
}

.profile-display-name-editor__save:not(:disabled) {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}

.profile-display-name-editor__save:hover:not(:disabled) {
  background: rgb(34, 197, 94);
}

.profile-display-name-editor__save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-display-name-editor__save--saving:disabled {
  cursor: wait;
}

.profile-display-name-editor__cancel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.55);
  color: rgba(209, 213, 219, 0.95);
}

.profile-display-name-editor__cancel:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.profile-post-composer {
  margin: 0.4rem 0 0.55rem;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.55);
}

.profile-post-composer + .profile-pastes-section .profile-tabs {
  margin-top: 0.125rem;
}

.profile-post-composer + .profile-posts-section + .profile-pastes-section .profile-tabs {
  margin-top: 0.125rem;
}

.profile-post-composer__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(134, 239, 172, 0.9);
}

.profile-post-composer__input {
  width: 100%;
  /* 3 text lines + vertical padding (standalone profile composer) */
  min-height: calc(1.45em * 3 + 1.25rem);
  max-height: calc(1.45em * 8 + 1.25rem);
  resize: none;
  overflow-y: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 13, 20, 0.85);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #fff;
}

/* URL field inside composer should stay single-line height */
.profile-post-composer__media .profile-post-composer__input {
  min-height: 2.25rem;
  max-height: 2.75rem;
}

.profile-post-composer__input::placeholder,
.profile-post-composer__input::-webkit-input-placeholder,
.profile-post-composer__input::-moz-placeholder,
.profile-post-composer__input:-ms-input-placeholder,
.profile-post-composer__input::-ms-input-placeholder {
  color: rgba(148, 163, 184, 0.5) !important;
  opacity: 1 !important;
}

.profile-post-composer__input:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25);
}

.profile-post-composer__primary-hint {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.62rem;
  line-height: 1.3;
  color: rgba(156, 163, 175, 0.85);
}

.profile-post-composer__footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.profile-post-composer__counter {
  font-size: 0.6875rem;
  color: rgba(156, 163, 175, 0.95);
}

.profile-post-composer__error {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.6875rem;
  color: #f87171;
}

.profile-post-composer__submit {
  margin-left: auto;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-post-composer__submit:hover:not(:disabled) {
  background: rgb(34, 197, 94);
}

.profile-post-composer__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.profile-posts-section {
  margin-bottom: 0.75rem;
}

.profile-post-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-feed-grid--timeline {
  display: flex !important;
  flex-direction: column;
  gap: 0;
}

.profile-post-card,
.profile-paste-card {
  /* X timeline: 40px avatar, 12px gutter to text column */
  --profile-feed-avatar: 2.5rem;
  --profile-feed-avatar-gap: 0.75rem;
  --profile-feed-text-inset: calc(var(--profile-feed-avatar) + var(--profile-feed-avatar-gap));
  position: relative;
  /* Full-bleed divider across the main column; content keeps pad-x */
  margin-inline: calc(-1 * var(--profile-main-pad-x, 0.75rem));
  width: auto;
  max-width: none;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.75rem var(--profile-main-pad-x, 0.75rem);
}

.profile-feed-card--has-media {
  overflow: visible;
}

.profile-post-card--embed.profile-feed-card--has-media,
.profile-paste-card--embed.profile-feed-card--has-media {
  overflow: hidden;
}

.profile-post-card.profile-feed-card--has-media .profile-post-card__media,
.profile-paste-card.profile-feed-card--has-media .profile-paste-card__media {
  margin-bottom: 0;
}

.profile-paste-card.profile-feed-card--has-media .profile-paste-card__link {
  flex: 0 0 auto;
}

.profile-post-card--pinned,
.profile-paste-card--pinned {
  border-bottom-color: rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.04);
  box-shadow: none;
}

/* Embed / compact tiles keep real cards (startpaste profile embed) */
.profile-post-card--embed,
.profile-paste-card--embed {
  margin-inline: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(10, 10, 15, 0.55);
  padding: 0.6875rem 0.8125rem;
}

.profile-post-card--embed:hover,
.profile-paste-card--embed:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 15, 0.65);
}

.profile-post-card__top {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 2;
}

.profile-content-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--profile-feed-avatar-gap, 0.75rem);
  margin-bottom: 0.125rem;
}

.profile-content-meta__avatar {
  width: var(--profile-feed-avatar, 2.5rem);
  height: var(--profile-feed-avatar, 2.5rem);
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(24, 24, 27, 0.8);
  flex-shrink: 0;
}

.profile-content-meta__username {
  font-size: 0.9375rem; /* 15px — X timeline */
  font-weight: 700;
  line-height: 1.25;
  color: rgba(244, 244, 245, 0.98);
}

.profile-post-card .profile-content-meta,
.profile-paste-card .profile-content-meta {
  display: grid;
  grid-template-columns: var(--profile-feed-avatar) minmax(0, 1fr);
  column-gap: var(--profile-feed-avatar-gap);
  align-items: start;
  width: 100%;
  margin-bottom: 0.125rem;
}

.profile-post-card .profile-content-meta__avatar,
.profile-paste-card .profile-content-meta__avatar {
  grid-column: 1;
  grid-row: 1;
}

.profile-post-card .profile-content-meta__body,
.profile-paste-card .profile-content-meta__body {
  grid-column: 2;
  min-width: 0;
  min-height: var(--profile-feed-avatar);
  align-items: center;
}

.profile-content-meta__body {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex-wrap: wrap;
}

.profile-content-meta__type {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.5);
  padding: 0.1rem 0.45rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.96);
}

.profile-paste-card .profile-content-meta__type {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(22, 101, 52, 0.35);
  color: #86efac;
}

.profile-post-card .profile-content-meta ~ .profile-post-card__top,
.profile-post-card .profile-content-meta ~ .profile-post-card__text,
.profile-post-card .profile-content-meta ~ .profile-post-card__time,
.profile-post-card .profile-content-meta ~ .profile-reactions,
.profile-paste-card .profile-content-meta ~ .profile-paste-card__link,
.profile-paste-card .profile-content-meta ~ .profile-reactions {
  margin-left: var(--profile-feed-text-inset);
}

/* Media shares the text-column inset (avatar + gap), matching x.com */
.profile-post-card .profile-content-meta ~ .profile-post-card__media,
.profile-paste-card .profile-content-meta ~ .profile-paste-card__media,
.profile-post-card .profile-content-meta ~ .profile-card__media-frame,
.profile-paste-card .profile-content-meta ~ .profile-card__media-frame {
  --profile-media-text-inset: var(--profile-feed-text-inset);
}

.profile-feed-card--has-actions .profile-content-meta,
.profile-feed-card--has-actions .profile-post-card__text,
.profile-feed-card--has-actions .profile-post-card__time,
.profile-feed-card--has-actions .profile-paste-card__title-row,
.profile-feed-card--has-actions .profile-paste-card__meta-row {
  padding-right: 2.3rem;
}

.profile-content-meta--link {
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
}

.profile-content-meta--link:hover .profile-content-meta__username {
  color: #86efac;
}

.profile-post-card__text {
  margin: 0;
  font-size: 0.9375rem; /* 15px — X timeline */
  line-height: 1.333;
  color: rgba(229, 231, 235, 0.95);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
}

.profile-post-card__text .profile-post__link {
  color: #86efac;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-post-card__time {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.6875rem;
  color: rgba(156, 163, 175, 0.9);
}

.profile-paste-card__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

.profile-paste-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.325rem;
}

.profile-paste-card__title-row--pinned {
  padding-right: 0;
}

.profile-paste-card__title {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: #4ade80;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.profile-paste-card__link:hover .profile-paste-card__title {
  color: #86efac;
}

/* Embed paste titles use utility classes — keep them green on profile feeds */
.profile-paste-card h3 {
  color: #4ade80;
}

.profile-paste-card__link:hover h3 {
  color: #86efac;
}

.profile-paste-card__views {
  flex-shrink: 0;
  margin: 0.125rem 0 0;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(156, 163, 175, 0.95);
  white-space: nowrap;
}

.profile-paste-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0;
  margin-top: 0.2rem;
}

.profile-paste-card__date {
  margin: 0;
  font-size: 0.6875rem;
  color: rgba(107, 114, 128, 0.95);
}

.profile-paste-card__view {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgb(74, 222, 128);
  white-space: nowrap;
}

.profile-paste-card__view-icon {
  width: 0.875rem;
  height: 0.875rem;
}

.profile-post-empty {
  padding: 1.25rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 15, 0.45);
}

.profile-post-empty p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(156, 163, 175, 0.95);
}

.profile-reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3125rem;
  /* Keep spacing that used to sit above the divider; no line */
  margin-top: 0.625rem;
  padding-top: 0.575rem;
  border-top: 0;
}

.profile-reaction-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 1.9rem;
  max-width: min(100%, 15.5rem);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 15, 0.72);
  padding: 0.285rem 0.48rem 0.285rem 0.56rem;
  font-size: 0.8125rem;
  color: rgba(229, 231, 235, 0.95);
  line-height: 1.2;
  overflow: visible;
  position: relative;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease, box-shadow 0.18s ease, padding 0.14s ease, gap 0.14s ease, min-height 0.14s ease;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.profile-reaction-pill__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 1.28rem;
  font-size: 1.22rem;
  line-height: 1.2;
  padding-bottom: 0.02rem;
  max-width: 12.75ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.profile-reaction-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 1.16rem;
  height: 1.16rem;
  margin-left: 0.05rem;
  padding: 0 0.26rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: rgba(212, 212, 216, 0.95);
}

.profile-reactions[data-density="2"] {
  gap: 0.25rem;
}

.profile-reactions[data-density="2"] .profile-reaction-pill {
  min-height: 1.7rem;
  gap: 0.3rem;
  padding: 0.22rem 0.4rem 0.22rem 0.46rem;
}

.profile-reactions[data-density="2"] .profile-reaction-pill__emoji {
  font-size: 1.08rem;
  min-height: 1.12rem;
  max-width: 11.5ch;
}

.profile-reactions[data-density="2"] .profile-reaction-pill__count {
  min-width: 1.05rem;
  height: 1.05rem;
  font-size: 0.5rem;
}

.profile-reactions[data-density="2"] .profile-reaction-add {
  width: 1.45rem;
  height: 1.45rem;
}

.profile-reactions[data-density="3"] {
  gap: 0.2rem;
}

.profile-reactions[data-density="3"] .profile-reaction-pill {
  min-height: 1.52rem;
  gap: 0.24rem;
  padding: 0.18rem 0.34rem 0.18rem 0.4rem;
}

.profile-reactions[data-density="3"] .profile-reaction-pill__emoji {
  font-size: 0.98rem;
  min-height: 1rem;
  max-width: 10.5ch;
}

.profile-reactions[data-density="3"] .profile-reaction-pill__count {
  min-width: 0.95rem;
  height: 0.95rem;
  font-size: 0.46rem;
  padding: 0 0.2rem;
}

.profile-reactions[data-density="3"] .profile-reaction-add {
  width: 1.3rem;
  height: 1.3rem;
}

.profile-reactions[data-density="4"] {
  gap: 0.16rem;
}

.profile-reactions[data-density="4"] .profile-reaction-pill {
  min-height: 1.36rem;
  gap: 0.18rem;
  padding: 0.14rem 0.28rem 0.14rem 0.34rem;
}

.profile-reactions[data-density="4"] .profile-reaction-pill__emoji {
  font-size: 0.88rem;
  min-height: 0.9rem;
  max-width: 9.5ch;
}

.profile-reactions[data-density="4"] .profile-reaction-pill__count {
  min-width: 0.88rem;
  height: 0.88rem;
  font-size: 0.42rem;
  padding: 0 0.16rem;
}

.profile-reactions[data-density="4"] .profile-reaction-add {
  width: 1.18rem;
  height: 1.18rem;
}

.profile-reactions[data-density="2"] .profile-reaction-pill:hover,
.profile-reactions[data-density="3"] .profile-reaction-pill:hover,
.profile-reactions[data-density="4"] .profile-reaction-pill:hover {
  transform: scale(1.1);
  z-index: 3;
}

.profile-reactions[data-density="2"] .profile-reaction-pill:active,
.profile-reactions[data-density="3"] .profile-reaction-pill:active,
.profile-reactions[data-density="4"] .profile-reaction-pill:active {
  transform: scale(1.02);
}

.profile-reaction-pill:hover {
  border-color: rgba(161, 161, 170, 0.35);
  background: rgba(24, 24, 27, 0.88);
}

.profile-reaction-pill:active {
  transform: scale(0.95);
}

.profile-reaction-pill.is-active {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(34, 197, 94, 0.16);
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.2);
}

.profile-reaction-pill.is-active .profile-reaction-pill__count {
  background: rgba(74, 222, 128, 0.24);
  border-color: rgba(74, 222, 128, 0.34);
  color: #dcfce7;
}

.profile-reaction-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  margin: 0;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(113, 113, 122, 0.35);
  background: rgba(10, 10, 15, 0.55);
  color: rgba(113, 113, 122, 0.95);
  cursor: pointer;
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease, transform 0.1s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.profile-reaction-add__icon {
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  pointer-events: none;
}

.profile-reaction-add:hover {
  color: rgba(161, 161, 170, 1);
  border-color: rgba(161, 161, 170, 0.45);
  background: rgba(24, 24, 27, 0.75);
}

.profile-reaction-add:active {
  transform: scale(0.94);
}

.profile-reaction-pill.is-pending,
.profile-reaction-add.is-pending {
  opacity: 0.78;
  filter: saturate(0.92);
}

.profile-reaction-pill.is-pop-in {
  animation: profileReactionPopIn 250ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.profile-reaction-pill.is-pop-out {
  animation: profileReactionPopOut 180ms cubic-bezier(0.32, 0.05, 0.2, 1);
}

@keyframes profileReactionPopIn {
  0% {
    transform: scale(0.82) translateY(1px);
  }
  55% {
    transform: scale(1.11) translateY(-1px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

@keyframes profileReactionPopOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.86);
    opacity: 0.55;
  }
}

.profile-reaction-picker {
  position: fixed;
  z-index: 12002;
  width: min(16.5rem, calc(100vw - 1rem));
  max-height: min(14rem, calc(100vh - 1rem));
  overflow-y: auto;
  padding: 0.625rem 0.75rem 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.98);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.profile-reaction-picker__close {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: rgba(212, 212, 216, 0.9);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.profile-reaction-picker__close:hover {
  background: rgba(63, 63, 70, 0.35);
  color: rgba(244, 244, 245, 0.98);
}

.profile-reaction-picker__close:active {
  transform: scale(0.94);
}

.profile-reaction-picker__title {
  margin: 0 1.5rem 0.125rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(244, 244, 245, 0.98);
}

.profile-reaction-picker__hint {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: rgba(161, 161, 170, 0.95);
}

.profile-reaction-picker__input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 13, 20, 0.9);
  padding: 0.5rem 0.625rem;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: #fff;
}

.profile-reaction-picker__input:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.profile-reaction-inline-toast {
  position: fixed;
  z-index: 12020;
  max-width: min(20rem, calc(100vw - 1rem));
  padding: 0.4375rem 0.625rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(8, 10, 12, 0.95);
  color: rgba(220, 252, 231, 0.98);
  font-size: 0.75rem;
  line-height: 1.3;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(74, 222, 128, 0.15);
  pointer-events: none;
}

@media (min-width: 640px) {
  .profile-reactions {
    gap: 0.4375rem;
    margin-top: 0.6875rem;
  }

  .profile-reaction-pill {
    gap: 0.42rem;
    min-height: 2rem;
    padding: 0.325rem 0.5rem 0.325rem 0.58rem;
    font-size: 0.875rem;
  }

  .profile-reaction-pill__emoji {
    min-height: 1.36rem;
    font-size: 1.28rem;
    line-height: 1.2;
    max-width: 12.75ch;
  }

  .profile-reaction-pill__count {
    min-width: 1.24rem;
    height: 1.24rem;
    font-size: 0.6rem;
  }

  .profile-reaction-add {
    width: 1.75rem;
    height: 1.75rem;
  }

  .profile-reaction-add__icon {
    width: 0.9375rem;
    height: 0.9375rem;
  }

  .profile-reaction-picker {
    width: 17.5rem;
    padding: 0.75rem 0.875rem 0.875rem;
  }

  .profile-reaction-picker__title {
    font-size: 0.875rem;
  }

  .profile-reaction-picker__hint {
    font-size: 0.75rem;
  }
}
