:root {
  --profile-accent: var(--ws-accent, #8a2be2);
  --profile-accent-soft: var(--ws-accent-soft, rgba(138, 43, 226, 0.14));
}

.profile-account-page {
  background:
    radial-gradient(circle at top right, var(--profile-accent-soft), transparent 36%),
    radial-gradient(circle at top left, color-mix(in srgb, var(--profile-accent) 12%, transparent), transparent 30%),
    linear-gradient(
      180deg,
      var(--ws-bg-page, #120f18) 0%,
      var(--ws-bg-shell, #101014) 48%,
      var(--ws-bg-page, #0d0d10) 100%
    );
  color: var(--ws-text-primary, #f3f3f5);
}

.profile-account-main {
  padding:
    clamp(7rem, 9vw, 8.5rem)
    clamp(1rem, 2.8vw, 1.75rem)
    clamp(3rem, 4.8vw, 4rem);
}

.profile-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.profile-loading,
.profile-error {
  padding: 2rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 1.5rem;
  background: var(--ws-bg-card, rgba(26, 26, 27, 0.88));
  color: var(--ws-text-secondary, #e5e7eb);
  box-shadow: var(--ws-shadow-card, 0 18px 45px rgba(0, 0, 0, 0.24));
}

.profile-stack {
  display: grid;
  gap: clamp(1.15rem, 2vw, 1.5rem);
}

.profile-hero,
.profile-panel {
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 1.5rem;
  background: var(--ws-bg-card, var(--ws-bg-surface, #1a1a1b));
  color: var(--ws-text-primary, #f3f3f5);
  box-shadow: var(--ws-shadow-card, 0 18px 45px rgba(0, 0, 0, 0.24));
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.profile-panel:hover {
  border-color: var(--ws-border-strong, rgba(138, 43, 226, 0.34));
  box-shadow: var(--ws-shadow-card-hover, 0 20px 48px rgba(0, 0, 0, 0.26));
}

.profile-hero {
  padding: clamp(1.2rem, 2.4vw, 2rem);
  overflow: hidden;
  position: relative;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, transparent 0%, rgba(255, 255, 255, 0.03) 38%, transparent 64%),
    radial-gradient(circle at top right, rgba(138, 43, 226, 0.18), transparent 40%),
    radial-gradient(circle at bottom left, rgba(56, 24, 92, 0.2), transparent 34%);
  pointer-events: none;
}

.profile-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.95fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.profile-identity {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

.profile-avatar {
  width: clamp(84px, 12vw, 112px);
  height: clamp(84px, 12vw, 112px);
  object-fit: cover;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.profile-handle {
  display: inline-flex;
  width: fit-content;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--ws-ui-chip-bg, rgba(255, 255, 255, 0.04));
  color: var(--ws-text-muted, #c5c5d1);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-name {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  font-weight: 800;
  color: var(--ws-text-primary, #f3f3f5);
}

.profile-role {
  margin: 0.35rem 0 0;
  color: var(--ws-accent-text, #b88eff);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
}

.profile-tagline,
.profile-bio {
  margin: 0;
  color: var(--ws-text-secondary, #d4d4da);
  line-height: 1.75;
  word-break: break-word;
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.profile-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.92rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform var(--ws-duration-fast, 160ms) var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow var(--ws-duration-fast, 160ms) ease,
    filter var(--ws-duration-fast, 160ms) ease,
    border-color var(--ws-duration-fast, 160ms) ease,
    opacity var(--ws-duration-fast, 160ms) ease,
    background var(--ws-duration-fast, 160ms) ease;
}

.profile-action-btn.is-primary {
  color: var(--ws-text-inverse, #ffffff);
  background: linear-gradient(135deg, var(--profile-accent), color-mix(in srgb, var(--profile-accent) 70%, #2d0f49));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--profile-accent) 30%, transparent);
}

.profile-action-btn.is-ghost {
  color: var(--ws-text-primary, #f4f4f8);
  border-color: var(--ws-border-subtle, rgba(255, 255, 255, 0.14));
  background: var(--ws-ui-chip-bg, rgba(255, 255, 255, 0.03));
}

.profile-action-btn:hover {
  transform: translateY(-1px);
}

.profile-action-btn.is-primary:hover {
  filter: brightness(1.06);
}

.profile-action-btn.is-ghost:hover {
  border-color: rgba(138, 43, 226, 0.48);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.profile-action-btn:active:not(.is-disabled) {
  transform: scale(0.97);
  filter: brightness(0.96);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--ws-ui-chip-bg, rgba(255, 255, 255, 0.03));
  color: var(--ws-text-primary, #f1f1f5);
  font-size: 0.84rem;
  font-weight: 600;
}

.profile-spotlight {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--ws-bg-card, rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(12px);
  min-width: 0;
}

.profile-status {
  display: inline-flex;
  width: fit-content;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: var(--profile-accent-soft);
  color: var(--ws-accent-text, #f2e9ff);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-meta {
  display: grid;
  gap: 0.95rem;
}

.profile-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.profile-kpi-card {
  display: grid;
  gap: 0.24rem;
  padding: 0.6rem 0.65rem;
  border-radius: 0.8rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--ws-bg-surface-muted, rgba(255, 255, 255, 0.03));
}

.profile-kpi-label {
  color: var(--ws-text-muted, #acacb8);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-kpi-value {
  color: var(--ws-text-primary, #ffffff);
  font-size: 1.12rem;
  line-height: 1;
  font-weight: 800;
}

.profile-meta-item,
.profile-stat {
  display: grid;
  gap: 0.25rem;
}

.profile-meta-label,
.profile-stat-label {
  color: var(--ws-text-muted, #9f9fac);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-meta-value,
.profile-stat-value {
  color: var(--ws-text-primary, #f7f7f9);
  font-size: 0.98rem;
  font-weight: 600;
}

.profile-grid {
  display: grid;
  gap: 1.5rem;
}

.profile-content-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-panel {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.profile-subsection {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.profile-subsection-label {
  margin: 0;
  color: var(--ws-text-muted, #a7a7b4);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-section-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ws-text-primary, #ffffff);
}

.profile-section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 0 1rem;
}

.profile-section-heading-stack {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.profile-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.26rem 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.1));
  background: var(--ws-ui-chip-bg, rgba(255, 255, 255, 0.03));
  color: var(--ws-text-muted, #d6d6dd);
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-section-link {
  color: var(--ws-accent-text, #b88eff);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.profile-section-link:hover {
  color: var(--ws-accent-hover, #cfb2ff);
}

.profile-list,
.profile-portfolio-grid {
  display: grid;
  gap: 1rem;
}

.profile-list-card,
.profile-contact-card,
.profile-work-card {
  border-radius: 1.15rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.07));
  background: var(--ws-bg-card, rgba(255, 255, 255, 0.025));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-list-card:hover,
.profile-contact-card:hover,
.profile-work-card:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 43, 226, 0.32);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.profile-list-card,
.profile-contact-card {
  padding: 1rem;
}

.profile-list-title,
.profile-work-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ws-text-primary, #ffffff);
}

.profile-list-body,
.profile-work-copy {
  margin: 0.5rem 0 0;
  color: var(--ws-text-secondary, #d0d0d8);
  line-height: 1.7;
}

.profile-contact-label,
.profile-work-meta {
  margin: 0;
  color: var(--ws-text-muted, #9f9fac);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-contact-value {
  margin-top: 0.4rem;
  color: var(--ws-text-primary, #f3f3f7);
  font-weight: 600;
}

.profile-contact-link,
.profile-work-link {
  color: var(--ws-accent-text, #b88eff);
  text-decoration: none;
}

.profile-contact-link:hover,
.profile-work-link:hover {
  color: var(--ws-accent-hover, #cfb2ff);
}

.profile-work-card {
  overflow: hidden;
}

.profile-work-surface {
  cursor: pointer;
}

.profile-work-surface:focus-visible {
  outline: 2px solid rgba(184, 142, 255, 0.85);
  outline-offset: 3px;
}

.profile-portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.profile-works-grid {
  align-items: start;
}

.profile-work-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.18), rgba(255, 255, 255, 0.04));
}

.profile-work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-work-body {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
}

.profile-work-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.15rem;
  font-weight: 700;
}

.profile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.profile-document-list,
.profile-document-list--magazine {
  display: grid;
  gap: 0;
}

.profile-document-item,
.profile-document-item--magazine {
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-document-item:first-child,
.profile-document-item--magazine:first-child {
  padding-top: 0.15rem;
  border-top: 0;
}

.profile-document-item:last-child,
.profile-document-item--magazine:last-child {
  padding-bottom: 0.15rem;
}

.profile-document-hit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 1.15rem 1.35rem;
  align-items: start;
  color: inherit;
  text-decoration: none;
  border-radius: 0.35rem;
}

.profile-document-item.is-text-only .profile-document-hit,
.profile-document-item--magazine.is-text-only .profile-document-hit {
  grid-template-columns: minmax(0, 1fr);
}

.profile-document-hit:hover .profile-document-title,
.profile-document-hit:focus-visible .profile-document-title {
  color: var(--ws-accent-hover, #cfb2ff);
}

.profile-document-hit:focus-visible {
  outline: 2px solid rgba(184, 142, 255, 0.88);
  outline-offset: 4px;
}

.profile-document-hit:hover .profile-document-media img {
  transform: scale(1.03);
}

.profile-document-copy {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-width: 0;
  order: 1;
}

.profile-document-media {
  order: 2;
  display: block;
  width: 100%;
  max-width: 132px;
  justify-self: end;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--color-panel, #1a1a1b) 88%, transparent);
}

.profile-document-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.profile-document-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ws-text-muted, #a5a5b4);
}

.profile-document-title {
  margin: 0;
  font-size: clamp(1.28rem, 1.05rem + 0.7vw, 1.72rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ws-text-primary, #ffffff);
  transition: color 0.2s ease;
}

.profile-document-summary {
  margin: 0;
  max-width: 62ch;
  color: var(--ws-text-secondary, #c8c8d0);
  font-size: 0.95rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-document-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0.15rem 0 0;
  color: var(--ws-text-muted, #b9b9c3);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-document-date,
.profile-document-views,
.profile-document-meta-sep {
  margin: 0;
  color: inherit;
}

/* Legacy kind pill → treat as eyebrow if leftover markup appears */
.profile-document-kind {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ws-text-muted, #a5a5b4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-document-link {
  display: none;
}

html[data-theme="light"] .profile-document-item,
html[data-theme="light"] .profile-document-item--magazine {
  border-top-color: rgba(15, 15, 16, 0.08);
}

html[data-theme="light"] .profile-document-eyebrow,
html[data-theme="light"] .profile-document-kind,
html[data-theme="light"] .profile-document-meta {
  color: #6b6b76;
}

html[data-theme="light"] .profile-document-summary {
  color: #5b5b66;
}

html[data-theme="light"] .profile-document-title {
  color: var(--ws-text-primary, #1a1628);
}

html[data-theme="light"] .profile-document-hit:hover .profile-document-title,
html[data-theme="light"] .profile-document-hit:focus-visible .profile-document-title {
  color: var(--ws-accent-text, #5b21b6);
}

html[data-theme="light"] .profile-document-media {
  border-color: rgba(15, 15, 16, 0.08);
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.06), rgba(15, 15, 16, 0.03));
}

.profile-content-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.profile-content-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.24), rgba(255, 255, 255, 0.04));
}

.profile-content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-content-media.is-placeholder {
  min-height: 140px;
}

.profile-content-body {
  display: grid;
  gap: 0.6rem;
  padding: 0.95rem;
}

.profile-content-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 228px), 1fr));
  align-items: start;
}

.profile-list-body.is-compact {
  min-height: 0;
}

.profile-content-date {
  margin: 0;
  color: var(--ws-text-muted, #b9b9c3);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.1));
  background: var(--ws-ui-chip-bg, rgba(255, 255, 255, 0.03));
  color: var(--ws-text-secondary, #dbdbe2);
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-empty-state {
  margin: 0;
  color: var(--ws-text-muted, #9f9fac);
  line-height: 1.7;
}

.profile-empty-card {
  display: grid;
  gap: 0.35rem;
  max-width: 36rem;
}

.profile-empty-card__title {
  margin: 0;
  color: var(--ws-text-secondary, #dbdbe2);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.profile-empty-card__text {
  margin: 0;
  color: var(--ws-text-muted, #9f9fac);
  line-height: 1.7;
}

.profile-account-footer {
  width: min(1160px, calc(100% - clamp(1.5rem, 4vw, 3rem)));
  margin: 0 auto;
}

.profile-stack--social {
  gap: 1.25rem;
}

.profile-hero--social {
  padding: clamp(1.15rem, 2vw, 1.8rem);
}

.profile-social-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(112px, 184px) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.profile-social-avatar-shell {
  display: grid;
  justify-items: center;
}

.profile-social-avatar-ring {
  display: inline-grid;
  place-items: center;
  width: clamp(110px, 18vw, 176px);
  aspect-ratio: 1;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.12));
  background: var(--ws-bg-surface, #1a1a1b);
  box-shadow: var(--ws-shadow-soft, 0 12px 30px rgba(0, 0, 0, 0.22));
}

.profile-avatar--social {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 2px solid var(--ws-bg-surface, #151517);
  object-fit: cover;
  background: var(--ws-bg-surface-muted, #141416);
}

.profile-social-main,
.profile-social-bio {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.profile-social-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-social-heading {
  display: grid;
  gap: 0.25rem;
}

.profile-name--social {
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  line-height: 0.96;
}

.profile-role--social {
  margin: 0;
}

.profile-social-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.profile-social-stat {
  display: grid;
  gap: 0.18rem;
  min-width: 84px;
}

.profile-social-stat strong {
  color: var(--ws-text-primary, #ffffff);
  font-size: 1.12rem;
  font-weight: 800;
}

.profile-social-stat span {
  color: var(--ws-text-muted, #b7b7c1);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-hero--social .profile-action-row {
  margin-top: 0;
}

.profile-hero--social .profile-action-btn {
  min-width: 10rem;
  padding: 0.75rem 1rem;
  border-radius: 0.95rem;
}

.profile-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-width: 0;
}

.profile-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--ws-ui-chip-bg, rgba(255, 255, 255, 0.03));
  color: var(--ws-text-primary, #f4f4f8);
  text-decoration: none;
  appearance: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.profile-inline-link:hover {
  border-color: rgba(138, 43, 226, 0.42);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.profile-inline-link.is-copied {
  border-color: rgba(138, 43, 226, 0.6);
  background: rgba(138, 43, 226, 0.14);
}

.profile-inline-link__label {
  color: var(--ws-accent-text, #b88eff);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-inline-link__value {
  font-weight: 700;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.profile-info-grid--about {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 0;
  align-items: stretch;
}

.profile-info-card {
  padding: 1.15rem 1.2rem;
  border-radius: 1.2rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    var(--ws-bg-card, rgba(255, 255, 255, 0.03));
  display: grid;
  gap: 0.95rem;
  min-width: 0;
}

.profile-about-sheet .profile-info-card {
  padding: 1.05rem 0 1.15rem;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  box-shadow: none;
  gap: 0.7rem;
}

.profile-about-sheet .profile-info-card:first-child {
  padding-top: 0.15rem;
}

.profile-about-sheet .profile-info-card:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.profile-info-card--wide {
  grid-column: 1 / -1;
}

.profile-info-card--richtext {
  background:
    linear-gradient(180deg, var(--ws-accent-soft, rgba(184, 142, 255, 0.08)), transparent 70%),
    var(--ws-bg-surface-raised, rgba(16, 17, 26, 0.72));
}

.profile-about-sheet .profile-info-card--richtext {
  background: transparent;
}

.profile-info-card__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-about-sheet .profile-info-card__head {
  margin-bottom: 0.15rem;
}

.profile-info-card__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.profile-info-card__title {
  margin: 0;
  color: var(--ws-text-primary, #fdfdff);
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.profile-about-sheet .profile-info-card--lead .profile-info-card__title {
  font-size: 1.12rem;
}

.profile-info-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.profile-about-sheet .profile-info-list {
  gap: 0.45rem;
}

.profile-info-list--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-about-sheet .profile-info-list--grid {
  gap: 0.35rem 1.1rem;
}

.profile-info-list--list,
.profile-info-list--richtext {
  grid-template-columns: minmax(0, 1fr);
}

.profile-info-entry {
  display: grid;
  gap: 0.35rem;
  color: var(--ws-text-secondary, #d7d7de);
  line-height: 1.65;
  min-width: 0;
}

.profile-info-entry--fact {
  padding: 0.72rem 0.8rem;
  border-radius: 0.95rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.06));
  background: rgba(255, 255, 255, 0.028);
}

.profile-about-sheet .profile-info-entry--fact {
  display: grid;
  grid-template-columns: minmax(4.5rem, 7.5rem) minmax(0, 1fr);
  gap: 0.45rem 0.85rem;
  align-items: baseline;
  padding: 0.42rem 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
}

.profile-about-sheet .profile-info-list--grid .profile-info-entry--fact {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.18rem;
}

.profile-about-sheet .profile-info-entry--fact:last-child {
  border-bottom: 0;
}

.profile-info-entry--spotlight,
.profile-info-entry--detail,
.profile-info-entry--text {
  padding: 0.82rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.profile-about-sheet .profile-info-entry--spotlight,
.profile-about-sheet .profile-info-entry--detail,
.profile-about-sheet .profile-info-entry--text {
  padding: 0.55rem 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
}

.profile-about-sheet .profile-info-entry--spotlight:last-child,
.profile-about-sheet .profile-info-entry--detail:last-child,
.profile-about-sheet .profile-info-entry--text:last-child {
  border-bottom: 0;
}

.profile-info-entry--detail {
  gap: 0.42rem;
}

.profile-info-entry--detail strong,
.profile-info-detail-title,
.profile-info-label {
  color: var(--ws-text-primary, #ffffff);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-about-sheet .profile-info-label {
  color: var(--ws-text-muted, #aeadbd);
  font-size: 0.72rem;
}

.profile-info-detail-title {
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.profile-info-detail-body,
.profile-info-value {
  color: var(--ws-text-secondary, #d2d1dc);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.profile-about-sheet .profile-info-value {
  color: var(--ws-text-primary, #f4f1ff);
  font-weight: 650;
}

.profile-info-value--multiline {
  white-space: pre-wrap;
}

.profile-info-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.profile-about-sheet .profile-info-chip-row {
  gap: 0.35rem;
}

.profile-info-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 142, 255, 0.22);
  background: rgba(184, 142, 255, 0.1);
  color: var(--ws-text-primary, #f4efff);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-about-sheet .profile-info-chip {
  padding: 0.28rem 0.55rem;
  font-size: 0.76rem;
}

.profile-info-entry--richtext {
  gap: 0.55rem;
}

.profile-info-paragraph-label {
  color: var(--ws-text-primary, #ffffff);
  font-size: 0.92rem;
  font-weight: 700;
}

.profile-info-paragraph {
  margin: 0;
  color: var(--ws-text-secondary, #d7d7de);
  line-height: 1.72;
}

.profile-empty-state--inline {
  margin: 0;
}

@media (max-width: 820px) {
  .profile-info-list--grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-about-sheet .profile-info-entry--fact {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-info-card--wide {
    grid-column: auto;
  }
}

.profile-panel--compact {
  padding: 1rem 1.1rem;
}

.profile-story-rail {
  display: flex;
  gap: 0.95rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.profile-story {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  width: 88px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ws-text-primary, #ffffff);
  cursor: pointer;
}

.profile-story__thumb {
  display: inline-grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 142, 255, 0.24);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(145deg, rgba(154, 98, 255, 0.96), rgba(103, 47, 182, 0.94) 52%, rgba(27, 21, 43, 0.98) 100%);
}

.profile-story__thumb img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--ws-bg-page, #151517);
}

.profile-story__title {
  color: var(--ws-text-secondary, #d7d7df);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.profile-panel--feed {
  padding: 0;
  overflow: hidden;
}

.profile-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.9rem;
  border-bottom: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
}

.profile-feed-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ws-text-primary, #f5f5f8);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-feed-filters {
  padding: 1rem 1.25rem 0.85rem;
}

.profile-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0.16rem;
  background: rgba(255, 255, 255, 0.06);
}

.profile-preview-tile {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--ws-bg-surface-raised, #141416);
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.profile-preview-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.profile-preview-tile:hover img,
.profile-preview-tile:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.profile-preview-tile:focus-visible {
  outline: 2px solid rgba(184, 142, 255, 0.92);
  outline-offset: -2px;
}

.profile-preview-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 0.22rem;
  padding: 0.9rem 0.8rem 0.75rem;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 11, 13, 0.78) 58%, rgba(11, 11, 13, 0.95) 100%);
}

.profile-preview-title {
  color: var(--ws-text-inverse, #ffffff);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
}

.profile-preview-meta {
  color: color-mix(in srgb, var(--ws-text-inverse, #ffffff) 82%, transparent);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: left;
}

.profile-empty-state--panel {
  padding: 1.1rem 1.25rem 1.35rem;
}

@media (max-width: 1180px) {
  .profile-hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.9fr);
  }

  .profile-content-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .profile-hero-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-social-head {
    grid-template-columns: 1fr;
  }

  .profile-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .profile-document-hit {
    grid-template-columns: minmax(0, 1fr) min(120px, 26vw);
    gap: 1rem;
  }

  .profile-document-title {
    font-size: clamp(1.2rem, 2.6vw, 1.42rem);
  }
}

@media (max-width: 820px) {
  .profile-social-top,
  .profile-feed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-inline-links {
    flex-direction: column;
  }

  .profile-inline-link {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .profile-account-main {
    padding: 6.75rem 1rem 3rem;
  }

  .profile-hero,
  .profile-panel {
    padding: 1rem;
    border-radius: 1.2rem;
  }

  .profile-action-row {
    gap: 0.48rem;
  }

  .profile-action-btn {
    width: 100%;
  }

  .profile-kpi-grid {
    grid-template-columns: 1fr;
  }

  .profile-content-list,
  .profile-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .profile-document-item,
  .profile-document-item--magazine {
    padding-block: 1.2rem;
  }

  .profile-document-hit {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .profile-document-media {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    aspect-ratio: 2.2 / 1;
  }

  .profile-document-title {
    font-size: clamp(1.22rem, 5.2vw, 1.48rem);
  }

  .profile-document-summary {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .profile-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.1rem;
  }

  .profile-social-stat {
    min-width: 72px;
  }

  .profile-section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .profile-kpi-grid,
  .profile-preview-grid {
    grid-template-columns: 1fr;
  }

  .profile-social-stat {
    min-width: 0;
  }
}

@media (min-width: 1025px) {
  .profile-content-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .profile-info-list--grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Creator profile 2.0 */
.profile-shell {
  width: min(1440px, 100%);
}

.profile-stack--v2 {
  gap: clamp(1rem, 1.7vw, 1.45rem);
}

.profile-hero--v2 {
  border-color: var(--profile-card-border-color, var(--ws-border-strong, rgba(184, 142, 255, 0.2)));
  background: var(--profile-card-active-bg, var(--profile-card-bg-classic));
  box-shadow: var(--profile-card-shadow-soft, var(--ws-shadow-card));
}

.profile-hero--v2::before {
  background:
    linear-gradient(135deg, var(--ws-glass-highlight, rgba(255, 255, 255, 0.06)), transparent 34%),
    radial-gradient(circle at 70% 78%, var(--ws-accent-soft, rgba(138, 43, 226, 0.16)), transparent 34%);
}

.profile-hero-v2__inner {
  position: relative;
  display: grid;
  gap: clamp(0.95rem, 1.8vw, 1.25rem);
  align-items: start;
  min-width: 0;
}

.profile-hero-v2__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
  align-items: center;
  min-width: 0;
}

.profile-social-avatar-shell--v2 {
  justify-items: start;
}

.profile-hero-v2__identity {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  align-content: center;
}

.profile-hero-v2__identity .profile-social-heading {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.profile-hero-v2__identity .profile-handle--identity {
  width: fit-content;
  margin-top: 0.1rem;
}

.profile-hero-v2__divider {
  width: 100%;
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--profile-accent, #8a2be2) 50%, rgba(255, 255, 255, 0.2)) 16%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 100%
  );
}

.profile-hero-v2__body {
  display: grid;
  gap: 0.65rem;
  max-width: 74ch;
  min-width: 0;
}

.profile-hero-v2__meta {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.profile-hero-v2__eyebrow,
.profile-status-chip,
.profile-creator-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.profile-hero-v2__eyebrow {
  gap: 0.65rem;
}

.profile-status-chip,
.profile-creator-badge {
  gap: 0.42rem;
  width: fit-content;
  min-height: 34px;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--ws-border-strong, rgba(184, 142, 255, 0.22));
  background: var(--ws-bg-surface-muted, rgba(255, 255, 255, 0.055));
  color: var(--ws-text-primary, #f7f4ff);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-status-chip {
  border-color: color-mix(in srgb, var(--color-success, #53b06d) 35%, transparent);
  background: color-mix(in srgb, var(--color-success, #53b06d) 12%, transparent);
  color: color-mix(in srgb, var(--color-success, #53b06d) 55%, var(--ws-text-primary, #f3f3f5));
}

.profile-badge-row--v2 {
  gap: 0.48rem;
}

.profile-hero--v2 .profile-name,
.profile-hero--v2 .profile-role,
.profile-hero--v2 .profile-tagline,
.profile-hero--v2 .profile-bio,
.profile-featured-card-v2,
.profile-sidebar-card,
.profile-activity-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-social-stats--v2 {
  gap: clamp(0.72rem, 1.5vw, 1.25rem);
}

.profile-social-stats--v2 .profile-social-stat {
  min-width: 96px;
  padding: 0.68rem 0.78rem;
  border-radius: 1rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--ws-bg-surface-muted, rgba(255, 255, 255, 0.04));
}

.profile-action-row--v2 {
  align-items: center;
}

.profile-action-row--v2 .profile-action-btn {
  gap: 0.48rem;
  min-height: 44px;
}

.profile-action-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.profile-action-btn.is-disabled:hover {
  transform: none;
}

.profile-share-status {
  min-height: 1.2rem;
  color: var(--ws-accent-text, #d9c4ff);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-tabs-v2 {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.52rem;
  border: 1px solid var(--ws-border-subtle, rgba(184, 142, 255, 0.14));
  border-radius: 1.15rem;
  background: var(--ws-glass-bg, rgba(12, 14, 24, 0.82));
  box-shadow: var(--ws-shadow-soft, 0 18px 38px rgba(0, 0, 0, 0.22));
  backdrop-filter: blur(18px);
}

.profile-tab-v2 {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.62rem 0.92rem;
  border: 1px solid transparent;
  border-radius: 0.86rem;
  background: transparent;
  color: var(--ws-text-muted, #b9b8c8);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform var(--ws-duration-fast, 160ms) var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color var(--ws-duration-fast, 160ms) ease,
    background var(--ws-duration-fast, 160ms) ease,
    color var(--ws-duration-fast, 160ms) ease;
}

.profile-tab-v2:hover,
.profile-tab-v2:focus-visible,
.profile-tab-v2.is-active {
  border-color: var(--ws-border-strong, rgba(184, 142, 255, 0.28));
  background: var(--ws-accent-soft, rgba(184, 142, 255, 0.12));
  color: var(--ws-text-primary, #ffffff);
}

.profile-tab-v2:active {
  transform: scale(0.97);
}

.profile-layout-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(318px, 360px);
  gap: clamp(1rem, 1.7vw, 1.45rem);
  align-items: start;
}

.profile-stage-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 1.7vw, 1.35rem);
  min-width: 0;
}

.profile-panel-pane {
  display: none;
  min-width: 0;
}

.profile-panel-pane.is-active {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  gap: clamp(1rem, 1.7vw, 1.35rem);
}

.profile-panel-pane.is-active.is-enter {
  animation: profile-panel-swap 0.28s var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)) both;
  z-index: 1;
}

.profile-panel-pane.is-active.is-exit {
  animation: profile-panel-exit 0.18s var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)) both;
  pointer-events: none;
  z-index: 0;
}

.profile-main-column-v2,
.profile-sidebar-v2 {
  display: grid;
  gap: clamp(1rem, 1.7vw, 1.35rem);
  min-width: 0;
}

.profile-sidebar-v2 {
  position: sticky;
  top: 146px;
}

.profile-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 300px);
  gap: clamp(0.85rem, 1.4vw, 1.15rem);
  align-items: start;
}

.profile-about-main,
.profile-about-aside {
  display: grid;
  gap: 0;
  min-width: 0;
}

.profile-about-sheet,
.profile-about-rail {
  display: grid;
  gap: 0;
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ws-border-subtle, rgba(184, 142, 255, 0.14));
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, var(--ws-accent-soft, rgba(255, 255, 255, 0.045)), transparent 55%),
    var(--ws-bg-surface, rgba(14, 15, 24, 0.78));
}

.profile-about-rail {
  position: sticky;
  top: 146px;
  padding: 0.85rem 0.95rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.profile-about-rail__block {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  min-width: 0;
}

.profile-about-rail__block:first-child {
  padding-top: 0.15rem;
}

.profile-about-rail__block:last-child {
  border-bottom: 0;
  padding-bottom: 0.1rem;
}

.profile-about-rail__title {
  margin: 0;
  color: var(--ws-text-primary, #ffffff);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-about-rail .profile-sidebar-facts,
.profile-about-rail .profile-social-link-list,
.profile-about-rail .profile-contact-list-v2,
.profile-about-rail .profile-project-list {
  gap: 0.45rem;
  min-width: 0;
  width: 100%;
}

.profile-about-rail .profile-contact-list-v2 {
  display: grid;
}

.profile-about-rail .profile-sidebar-fact {
  padding-top: 0.45rem;
  min-width: 0;
}

.profile-about-rail .profile-sidebar-fact:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-about-rail .profile-sidebar-fact strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-about-rail .profile-social-link {
  min-height: 38px;
  min-width: 0;
}

.profile-about-rail .profile-social-link span {
  min-width: 0;
}

.profile-about-rail .profile-social-link strong,
.profile-about-rail .profile-social-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-about-rail .profile-inline-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0.5rem 0.7rem;
  border-radius: 0.85rem;
  box-sizing: border-box;
}

.profile-about-rail .profile-inline-link.profile-sidebar-copy {
  width: 100%;
  justify-content: initial;
}

.profile-about-rail .profile-inline-link__label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.profile-about-rail .profile-inline-link__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.profile-about-rail .profile-project-row {
  padding-top: 0.5rem;
  min-width: 0;
}

.profile-about-rail .profile-project-row:first-child {
  padding-top: 0;
}

.profile-about-rail .profile-project-row h3,
.profile-about-rail .profile-project-row p {
  overflow-wrap: anywhere;
}

.profile-about-rail .profile-chip-row--sidebar {
  min-width: 0;
}

.profile-about-rail .profile-chip {
  max-width: 100%;
}

.profile-panel--featured-v2,
.profile-panel--documents-v2,
.profile-panel--activity-v2,
.profile-panel--about-v2,
.profile-panel--overview-v2,
.profile-panel--home-v2 {
  scroll-margin-top: 150px;
}

.profile-panel--home-v2 {
  display: grid;
  gap: 1.25rem;
}

.profile-home-intro {
  display: grid;
  gap: 0.65rem;
  max-width: 46rem;
}

.profile-home-tagline {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.35;
  color: var(--ws-text-primary, #f4f1ff);
}

.profile-home-bio {
  margin: 0;
  color: var(--ws-text-secondary, rgba(244, 241, 255, 0.78));
  line-height: 1.65;
}

.profile-home-highlights {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.profile-home-highlight {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--ws-border-subtle, rgba(184, 142, 255, 0.14));
  border-radius: 1rem;
  background: var(--ws-bg-surface-raised, rgba(14, 15, 24, 0.72));
}

.profile-home-highlight h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.profile-home-highlight p {
  margin: 0;
  color: var(--ws-text-secondary, rgba(244, 241, 255, 0.78));
  line-height: 1.55;
}

.profile-home-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.profile-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--ws-border-subtle, rgba(184, 142, 255, 0.18));
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  background: var(--ws-bg-surface, rgba(255, 255, 255, 0.04));
  transition: border-color 160ms ease, background-color 160ms ease;
}

.profile-home-link:hover,
.profile-home-link:focus-visible {
  border-color: var(--profile-accent, #8a2be2);
  background: var(--profile-accent-soft, rgba(138, 43, 226, 0.16));
  outline: none;
}

.profile-home-title-link,
a.profile-handle {
  color: inherit;
  text-decoration: none;
}

.profile-home-title-link:hover,
.profile-home-title-link:focus-visible,
a.profile-handle:hover,
a.profile-handle:focus-visible {
  text-decoration: underline;
  outline: none;
}

.profile-overview-showcase,
.profile-overview-recent {
  display: grid;
  gap: 0.9rem;
}

.profile-overview-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-section-link--button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.profile-carousel {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--ws-border-subtle, rgba(184, 142, 255, 0.14));
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, var(--ws-accent-soft, rgba(255, 255, 255, 0.05)), transparent 70%),
    var(--ws-bg-surface-raised, rgba(14, 15, 24, 0.78));
  box-shadow: var(--ws-shadow-soft, 0 18px 36px rgba(0, 0, 0, 0.2));
}

.profile-carousel-stage {
  position: relative;
  min-width: 0;
}

.profile-carousel-slide {
  display: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
  align-items: stretch;
  min-width: 0;
}

.profile-carousel-slide.is-active {
  display: grid;
  animation: profile-carousel-in 0.42s var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.profile-carousel-media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  max-height: min(560px, 52vh);
  background:
    linear-gradient(160deg, rgba(18, 16, 30, 0.92), rgba(10, 10, 18, 0.98)),
    var(--ws-bg-surface-muted, rgba(255, 255, 255, 0.04));
  cursor: pointer;
}

.profile-carousel-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.55s var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
}

.profile-carousel-media:hover img,
.profile-carousel-media:focus-visible img {
  transform: scale(1.03);
}

.profile-carousel-copy {
  display: grid;
  align-content: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.2rem 0.15rem;
}

.profile-carousel-kicker,
.profile-carousel-meta,
.profile-carousel-summary {
  margin: 0;
}

.profile-carousel-kicker {
  color: var(--ws-accent-text, #d8c4ff);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-carousel-title {
  margin: 0;
  color: var(--ws-text-primary, #ffffff);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.profile-carousel-meta {
  color: var(--ws-text-muted, #b9b8c8);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-carousel-summary {
  color: var(--ws-text-secondary, #d2d1dc);
  font-size: 0.92rem;
  line-height: 1.65;
}

.profile-carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.profile-carousel-nav,
.profile-carousel-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ws-border-strong, rgba(184, 142, 255, 0.24));
  border-radius: 0.8rem;
  background: var(--ws-accent-soft, rgba(184, 142, 255, 0.1));
  color: var(--ws-text-primary, #ffffff);
  cursor: pointer;
}

.profile-carousel-nav:hover,
.profile-carousel-nav:focus-visible,
.profile-carousel-toggle:hover,
.profile-carousel-toggle:focus-visible,
.profile-carousel-dot:hover,
.profile-carousel-dot:focus-visible {
  border-color: var(--ws-border-focus, rgba(184, 142, 255, 0.48));
  background: color-mix(in srgb, var(--ws-accent, #8a2be2) 18%, transparent);
}

.profile-carousel-index {
  min-width: 4.5rem;
  color: var(--ws-text-muted, #b9b8c8);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.profile-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.profile-carousel-dot {
  width: 0.62rem;
  height: 0.62rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ws-text-muted, #b9b8c8) 40%, transparent);
  cursor: pointer;
}

.profile-carousel-dot.is-active {
  width: 1.35rem;
  background: var(--ws-accent, #8a2be2);
}

.profile-preview-grid--overview {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.profile-featured-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-featured-card-v2 {
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--ws-accent-soft, rgba(255, 255, 255, 0.055)), transparent 60%),
    var(--ws-bg-surface, rgba(16, 17, 25, 0.72));
  border: 1px solid var(--ws-border-subtle, rgba(184, 142, 255, 0.14));
}

.profile-featured-media-v2 {
  aspect-ratio: 16 / 10;
}

.profile-featured-body-v2 {
  align-content: start;
}

.profile-card-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  margin-top: 0.15rem;
  padding: 0.55rem 0.82rem;
  border: 1px solid var(--ws-border-strong, rgba(184, 142, 255, 0.28));
  border-radius: 0.78rem;
  background: var(--ws-accent-soft, rgba(184, 142, 255, 0.12));
  color: var(--ws-accent-text, var(--ws-text-primary, #ffffff));
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.profile-card-open:hover,
.profile-card-open:focus-visible {
  border-color: var(--ws-border-focus, rgba(184, 142, 255, 0.48));
  background: color-mix(in srgb, var(--ws-accent, #8a2be2) 18%, transparent);
}

.profile-panel--about-v2 .profile-info-grid {
  margin-top: 0;
}

.profile-panel--about-v2 .profile-section-heading-row {
  margin-bottom: 0.65rem;
}

.profile-panel--about-v2 .profile-empty-state {
  margin: 0.35rem 0 0;
}

.profile-sidebar-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--ws-border-subtle, rgba(184, 142, 255, 0.14));
  border-radius: 1.1rem;
  background:
    linear-gradient(180deg, var(--ws-accent-soft, rgba(255, 255, 255, 0.055)), transparent 60%),
    var(--ws-bg-surface, rgba(17, 18, 27, 0.82));
  box-shadow: var(--ws-shadow-soft, 0 14px 32px rgba(0, 0, 0, 0.18));
}

.profile-sidebar-title {
  margin: 0;
  color: var(--ws-text-primary, #ffffff);
  font-size: 0.95rem;
  font-weight: 850;
}

.profile-sidebar-status-chip,
.profile-project-status {
  display: inline-flex;
  width: fit-content;
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-success, #53b06d) 35%, transparent);
  background: color-mix(in srgb, var(--color-success, #53b06d) 12%, transparent);
  color: color-mix(in srgb, var(--color-success, #53b06d) 55%, var(--ws-text-primary, #f3f3f5));
  font-size: 0.74rem;
  font-weight: 800;
}

.profile-sidebar-facts,
.profile-social-link-list,
.profile-contact-list-v2,
.profile-project-list {
  display: grid;
  gap: 0.7rem;
}

.profile-sidebar-fact {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
}

.profile-sidebar-fact span {
  color: var(--ws-text-muted, #aeadbd);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-sidebar-fact strong {
  color: var(--ws-text-primary, #f6f3ff);
  font-size: 0.92rem;
  line-height: 1.45;
}

.profile-social-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  min-height: 44px;
  color: var(--ws-text-primary, #ffffff);
  text-decoration: none;
}

.profile-social-link i {
  display: inline-grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 0.82rem;
  background: var(--ws-accent-soft, rgba(184, 142, 255, 0.12));
  color: var(--ws-accent-text, #d8c4ff);
}

.profile-social-link strong,
.profile-social-link small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-social-link strong {
  font-size: 0.9rem;
}

.profile-social-link small {
  margin-top: 0.08rem;
  color: var(--ws-text-muted, #b9b8c8);
  font-size: 0.76rem;
}

.profile-sidebar-copy {
  width: 100%;
  justify-content: space-between;
}

.profile-chip-row--sidebar {
  gap: 0.42rem;
}

.profile-project-row {
  display: grid;
  gap: 0.42rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
}

.profile-project-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-project-row h3,
.profile-project-row p {
  margin: 0;
}

.profile-project-row h3 {
  color: var(--ws-text-primary, #ffffff);
  font-size: 0.92rem;
  font-weight: 800;
}

.profile-project-row p {
  color: var(--ws-text-secondary, #d2d1dc);
  font-size: 0.84rem;
  line-height: 1.6;
}

.profile-activity-list {
  display: grid;
  gap: 0.78rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.profile-activity-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.78rem;
  align-items: start;
  padding: 0.82rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 1rem;
  background: var(--ws-bg-surface-muted, rgba(255, 255, 255, 0.035));
}

.profile-activity-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 0.95rem;
  background: var(--ws-accent-soft, rgba(184, 142, 255, 0.12));
  color: var(--ws-accent-text, #d8c4ff);
}

.profile-activity-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.profile-activity-label,
.profile-activity-date {
  margin: 0;
  color: var(--ws-text-muted, #b9b8c8);
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-activity-title {
  margin: 0;
  color: var(--ws-text-primary, #ffffff);
  font-size: 0.98rem;
  font-weight: 820;
  line-height: 1.35;
}

.profile-activity-title a {
  color: inherit;
  text-decoration: none;
}

.profile-activity-title a:hover,
.profile-social-link:hover {
  color: var(--ws-accent-hover, #cfb2ff);
}

@media (max-width: 1180px) {
  .profile-layout-v2,
  .profile-about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-sidebar-v2 {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-about-aside,
  .profile-about-rail {
    position: static;
  }
}

@media (max-width: 820px) {
  .profile-hero-v2__top {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .profile-social-avatar-shell--v2 {
    justify-items: start;
  }

  .profile-tabs-v2 {
    top: 0.5rem;
    margin-inline: -0.15rem;
  }

  .profile-featured-grid-v2,
  .profile-sidebar-v2,
  .profile-carousel-slide.is-active {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-carousel-media {
    aspect-ratio: 4 / 3;
    min-height: 200px;
    max-height: min(420px, 56vh);
  }

  /* Tablet / large phone: pull hero typography down before the phone layout kicks in */
  .profile-shell.profile-page {
    --profile-avatar-size: clamp(5.75rem, 16vw, 7.5rem);
  }

  .profile-shell.profile-avatar-size--small {
    --profile-avatar-size: clamp(4.75rem, 14vw, 6.25rem);
  }

  .profile-shell.profile-avatar-size--large {
    --profile-avatar-size: clamp(6.5rem, 18vw, 8.5rem);
  }

  .profile-name--social,
  .profile-shell.profile-preset--editorial .profile-hero--v2 .profile-name {
    font-size: clamp(1.45rem, 3.8vw, 1.85rem);
    line-height: 1.12;
  }

  .profile-role--social {
    font-size: 0.98rem;
  }

  .profile-hero--social,
  .profile-hero--v2 {
    padding: 1rem 1.05rem;
  }

  .profile-shell.profile-header-height--immersive .profile-hero--v2 {
    min-height: 0;
    padding-block: 1.1rem;
  }
}

@media (max-width: 640px) {
  .profile-shell {
    width: 100%;
  }

  .profile-hero-v2__inner {
    gap: 0.75rem;
  }

  .profile-social-stats--v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .profile-social-stats--v2 .profile-social-stat {
    min-width: 0;
    justify-items: center;
    text-align: center;
    padding: 0.55rem 0.35rem;
    border-radius: 0.85rem;
  }

  .profile-tabs-v2 {
    border-radius: 0.9rem;
  }

  .profile-panel--featured-v2,
  .profile-panel--documents-v2,
  .profile-panel--activity-v2,
  .profile-panel--about-v2,
  .profile-panel--overview-v2 {
    scroll-margin-top: 76px;
  }
}

@media (max-width: 430px) {
  .profile-social-stats--v2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .profile-social-stats--v2 .profile-social-stat {
    padding: 0.48rem 0.28rem;
    border-radius: 0.75rem;
  }

  .profile-action-row--v2 .profile-action-btn {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Public profile phone density (/@handle)
   Desktop hero scale is too large on narrow viewports — compact separately.
   ========================================================================== */

@media (max-width: 640px) {
  .profile-account-main {
    padding: calc(var(--ws-nav-height) + 0.75rem) var(--ws-page-inline) 2.25rem;
  }

  .profile-shell.profile-page {
    --profile-avatar-size: 4.75rem;
    --profile-content-gap: 0.7rem;
    --profile-panel-pad: 0.8rem;
    --profile-panel-radius: 1rem;
  }

  .profile-shell.profile-avatar-size--small {
    --profile-avatar-size: 4rem;
  }

  .profile-shell.profile-avatar-size--large {
    --profile-avatar-size: 5.5rem;
  }

  .profile-shell.profile-header-height--immersive .profile-hero--v2 {
    min-height: 0;
    padding-block: 0.85rem;
  }

  .profile-shell.profile-header-height--compact .profile-hero--v2 {
    padding-block: 0.7rem;
  }

  .profile-hero--social,
  .profile-hero--v2,
  .profile-shell.profile-page .profile-hero--v2 {
    padding: 0.85rem 0.9rem;
  }

  .profile-name,
  .profile-name--social,
  .profile-shell.profile-preset--editorial .profile-hero--v2 .profile-name {
    font-size: var(--ws-text-2xl);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .profile-role,
  .profile-role--social {
    margin-top: 0.2rem;
    font-size: var(--ws-text-sm);
  }

  .profile-tagline,
  .profile-bio {
    font-size: var(--ws-text-sm);
    line-height: 1.55;
  }

  .profile-shell .profile-bio {
    -webkit-line-clamp: 6;
  }

  .profile-handle {
    padding: 0.26rem 0.52rem;
    font-size: 0.72rem;
  }

  .profile-hero-v2__identity {
    gap: 0.4rem;
  }

  .profile-hero-v2__eyebrow {
    gap: 0.35rem;
  }

  .profile-status-chip,
  .profile-creator-badge {
    min-height: 1.7rem;
    padding: 0.26rem 0.52rem;
    font-size: 0.7rem;
    gap: 0.3rem;
  }

  .profile-hero-v2__inner {
    gap: 0.75rem;
  }

  .profile-hero-v2__body {
    gap: 0.55rem;
  }

  .profile-hero-v2__meta {
    gap: 0.7rem;
  }

  .profile-badge-row--v2 {
    gap: 0.35rem;
  }

  .profile-badge {
    padding: 0.32rem 0.58rem;
    font-size: 0.72rem;
  }

  .profile-social-stats--v2 .profile-social-stat {
    padding: 0.5rem 0.3rem;
    border-radius: 0.8rem;
  }

  .profile-social-stat strong {
    font-size: 1rem;
    line-height: 1.1;
  }

  .profile-social-stat span {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .profile-action-row--v2 {
    gap: 0.45rem;
  }

  .profile-hero--social .profile-action-btn,
  .profile-action-row--v2 .profile-action-btn {
    min-width: 0;
    min-height: 2.4rem;
    padding: 0.5rem 0.78rem;
    font-size: 0.78rem;
    border-radius: 0.8rem;
  }

  .profile-tabs-v2 {
    top: 62px;
    gap: 0.25rem;
    padding: 0.34rem;
  }

  .profile-tab-v2 {
    min-height: 2.35rem;
    padding: 0.42rem 0.68rem;
    font-size: 0.78rem;
    border-radius: 0.7rem;
  }

  /* Left-aligned: keep avatar beside identity; body/meta full width */
  .profile-shell.profile-page:not(.profile-header-align--center):not(.profile-preset--identity) .profile-hero-v2__top {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 0.75rem;
  }

  .profile-shell.profile-page:not(.profile-header-align--center):not(.profile-preset--identity) .profile-hero-v2__identity {
    align-content: start;
  }

  /* Center / identity presets: stack top column */
  .profile-shell.profile-header-align--center .profile-hero-v2__top,
  .profile-shell.profile-preset--identity .profile-hero-v2__top {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .profile-shell.profile-header-align--center .profile-social-avatar-shell--v2,
  .profile-shell.profile-preset--identity .profile-social-avatar-shell--v2 {
    justify-items: center;
  }

  .profile-shell.profile-header-align--center .profile-hero-v2__eyebrow,
  .profile-shell.profile-header-align--center .profile-badge-row--v2,
  .profile-shell.profile-preset--identity .profile-hero-v2__eyebrow,
  .profile-shell.profile-preset--identity .profile-badge-row--v2 {
    justify-content: center;
  }

  .profile-shell.profile-header-align--center .profile-handle,
  .profile-shell.profile-preset--identity .profile-handle {
    margin-inline: auto;
  }

  .profile-shell.profile-header-align--center .profile-hero-v2__body,
  .profile-shell.profile-preset--identity .profile-hero-v2__body {
    text-align: left;
  }

  .profile-about-sheet,
  .profile-about-rail {
    padding: 0.8rem 0.85rem;
    border-radius: 0.95rem;
  }

  .profile-panel {
    border-radius: var(--profile-panel-radius, 1rem);
  }
}

@media (max-width: 430px) {
  .profile-shell.profile-page {
    --profile-avatar-size: 4.25rem;
  }

  .profile-shell.profile-avatar-size--large {
    --profile-avatar-size: 4.85rem;
  }

  .profile-name,
  .profile-name--social,
  .profile-shell.profile-preset--editorial .profile-hero--v2 .profile-name {
    font-size: var(--ws-text-2xl);
  }

  .profile-account-main {
    padding: calc(var(--ws-nav-height) + 0.65rem) var(--ws-page-inline) 2rem;
  }

  .profile-hero--social,
  .profile-hero--v2,
  .profile-shell.profile-page .profile-hero--v2 {
    padding: 0.75rem 0.8rem;
  }
}

/* Public profile motion — entrance + scroll reveal (/@handle) */
@keyframes profile-rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.9rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes profile-soft-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.45rem, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes profile-panel-swap {
  from {
    opacity: 0;
    transform: translate3d(0, 0.55rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes profile-panel-exit {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 0.35rem, 0);
  }
}

@keyframes profile-carousel-in {
  from {
    opacity: 0;
    transform: translate3d(0.65rem, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

#profile-app.profile-motion-ready .profile-hero--v2 .profile-social-avatar-shell--v2 {
  animation: profile-rise-in 0.58s var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

#profile-app.profile-motion-ready .profile-hero--v2 .profile-hero-v2__identity {
  animation: profile-rise-in 0.62s var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)) 0.07s both;
}

#profile-app.profile-motion-ready .profile-hero--v2 .profile-hero-v2__body,
#profile-app.profile-motion-ready .profile-hero--v2 .profile-hero-v2__meta {
  animation: profile-soft-in 0.55s var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)) 0.14s both;
}

.profile-reveal {
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  transition:
    opacity 0.52s var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 0.52s var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
  transition-delay: var(--profile-reveal-delay, 0s);
  will-change: opacity, transform;
}

.profile-reveal.profile-reveal--fade {
  transform: none;
  will-change: opacity;
}

.profile-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.profile-reveal.profile-reveal--fade.is-visible {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  #profile-app.profile-motion-ready .profile-hero--v2 .profile-social-avatar-shell--v2,
  #profile-app.profile-motion-ready .profile-hero--v2 .profile-hero-v2__identity,
  #profile-app.profile-motion-ready .profile-hero--v2 .profile-hero-v2__body,
  #profile-app.profile-motion-ready .profile-hero--v2 .profile-hero-v2__meta,
  .profile-panel-pane.is-active.is-enter,
  .profile-panel-pane.is-active.is-exit,
  .profile-carousel-slide.is-active {
    animation: none !important;
  }

  .profile-carousel-media img {
    transition: none !important;
  }

  .profile-reveal,
  .profile-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Follow overlay: social cards fan from center ─────────────────────────── */

.profile-follow-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.profile-follow-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-follow-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-overlay, color-mix(in srgb, #05050a 72%, transparent));
  backdrop-filter: blur(8px);
}

.profile-follow-overlay__stage {
  position: relative;
  z-index: 1;
  width: min(100%, 48rem);
  padding: 1.25rem 1rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--profile-accent, #8a2be2) 28%, transparent);
  background: color-mix(in srgb, var(--ws-bg-surface-raised, #14151c) 92%, transparent);
  box-shadow: var(--ws-shadow-popover, 0 24px 64px rgba(0, 0, 0, 0.45));
}

.profile-follow-overlay__close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 8%, transparent);
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.profile-follow-overlay__close:hover {
  background: color-mix(in srgb, var(--profile-accent, #8a2be2) 28%, transparent);
}

.profile-follow-overlay__copy {
  text-align: center;
  margin: 0.15rem 0 1rem;
}

.profile-follow-overlay__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--studio-muted, #9aa0b4);
}

.profile-follow-overlay__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.profile-follow-overlay__hint {
  margin: 0.35rem 0 0;
  color: var(--studio-muted, #9aa0b4);
  font-size: 0.88rem;
}

.profile-follow-fan {
  position: relative;
  width: 100%;
  min-height: clamp(14rem, 42vh, 20rem);
}

.profile-follow-empty {
  margin: 2rem auto;
  text-align: center;
  color: var(--studio-muted, #9aa0b4);
}

.profile-follow-card {
  --mid: calc((var(--n, 1) - 1) / 2);
  --offset: calc(var(--i, 0) - var(--mid));
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 0.55rem;
  width: min(9.75rem, 30vw);
  padding: 0.95rem 0.75rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, #fff 10%, transparent);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--profile-accent, #8a2be2) 18%, var(--ws-bg-surface-raised, #1b1c24)),
    var(--ws-bg-surface, #15161d) 70%
  );
  color: inherit;
  text-decoration: none;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  transition-delay: calc(var(--i, 0) * 45ms);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.profile-follow-overlay.is-open .profile-follow-card {
  opacity: 1;
  transform:
    translate(
      calc(-50% + var(--offset) * clamp(5.4rem, 13.5vw, 8rem)),
      calc(-50% + (var(--offset) * var(--offset)) * 0.55rem)
    )
    rotate(calc(var(--offset) * 6.5deg))
    scale(1);
}

.profile-follow-card:hover,
.profile-follow-card:focus-visible {
  border-color: color-mix(in srgb, var(--profile-accent, #8a2be2) 55%, transparent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  outline: none;
  z-index: 2;
}

.profile-follow-card__icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 8%, transparent);
  font-size: 1.15rem;
}

.profile-follow-card__copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.profile-follow-card__copy strong {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.profile-follow-card__copy small {
  font-size: 0.72rem;
  color: var(--studio-muted, #9aa0b4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 8.5rem;
}

@media (max-width: 720px) {
  .profile-follow-overlay__stage {
    width: min(100%, 26rem);
    padding: 1.1rem 0.85rem 1.15rem;
  }

  .profile-follow-fan {
    display: grid;
    gap: 0.55rem;
    min-height: 0;
    max-height: min(58vh, 26rem);
    overflow: auto;
    padding: 0.15rem;
  }

  .profile-follow-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    justify-items: start;
    align-items: center;
    text-align: left;
    opacity: 0;
    transform: translate3d(0, 0.75rem, 0) scale(0.98);
  }

  .profile-follow-overlay.is-open .profile-follow-card {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-follow-overlay,
  .profile-follow-card {
    transition: none !important;
  }

  .profile-follow-overlay.is-open .profile-follow-card {
    transform: translate(-50%, -50%);
  }

  @media (max-width: 720px) {
    .profile-follow-overlay.is-open .profile-follow-card {
      transform: none;
    }
  }
}

/* ── Profile card skins (user preference: profile.cardStyle) ─────────────── */
/* classic | overlay | vibrant — see docs/architecture/PROFILE-CARD-SKINS.md */

.profile-hero--v2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.profile-hero-v2__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}

.profile-hero-v2__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.08);
  filter: grayscale(0.55) saturate(0.45) brightness(0.72);
}

.profile-hero-v2__inner {
  position: relative;
  z-index: 2;
}

.profile-hero-v2__card-atmosphere {
  z-index: 0;
}

.profile-hero--v2 .profile-hero-v2__backdrop {
  z-index: 1;
}

/*
 * Overlay skin — atmosphere without fighting the copy.
 * Avatar wash is cropped to a soft left orb, heavily blurred + veiled;
 * reading column sits on near-opaque gradient glass.
 */
.profile-hero--v2[data-profile-card-style="overlay"] {
  border-color: color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 18%, var(--ws-border-subtle));
  background: var(--profile-card-active-bg, var(--profile-card-bg-overlay));
  box-shadow: var(--profile-card-shadow-soft, var(--ws-shadow-card));
}

.profile-hero--v2[data-profile-card-style="overlay"] .profile-hero-v2__backdrop {
  opacity: 1;
  /* Keep photo influence on the avatar column only */
  inset: -8% auto -8% -6%;
  width: min(42%, 22rem);
  mask-image: radial-gradient(ellipse 72% 78% at 38% 42%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 38% 42%, #000 0%, transparent 72%);
}

.profile-hero--v2[data-profile-card-style="overlay"] .profile-hero-v2__backdrop img {
  object-position: center 18%;
  transform: scale(1.35);
  filter: blur(28px) saturate(0.55) brightness(0.85);
  opacity: 0.28;
}

.profile-hero--v2[data-profile-card-style="overlay"] .profile-hero-v2__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 35% 40%,
      color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 22%, transparent),
      transparent 58%
    ),
    linear-gradient(
      100deg,
      color-mix(in srgb, var(--ws-bg-page) 35%, transparent) 0%,
      color-mix(in srgb, var(--ws-bg-page) 82%, transparent) 70%,
      var(--ws-bg-page) 100%
    );
}

/* Design accents: soft beams + reading veil over the copy column */
.profile-hero--v2[data-profile-card-style="overlay"]::before {
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      color-mix(in srgb, var(--ws-glass-highlight, rgba(255, 255, 255, 0.06)) 70%, transparent) 18%,
      transparent 36%
    ),
    radial-gradient(
      ellipse 55% 40% at 92% 8%,
      color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 16%, transparent),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 55% at 8% 92%,
      color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 10%, transparent),
      transparent 68%
    ),
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 34%,
      color-mix(in srgb, var(--ws-bg-surface) 55%, transparent) 52%,
      color-mix(in srgb, var(--ws-bg-surface) 88%, transparent) 68%,
      color-mix(in srgb, var(--ws-bg-surface-raised) 94%, transparent) 100%
    );
  opacity: 1;
}

.profile-hero--v2[data-profile-card-style="overlay"] .profile-hero-v2__identity,
.profile-hero--v2[data-profile-card-style="overlay"] .profile-hero-v2__body,
.profile-hero--v2[data-profile-card-style="overlay"] .profile-hero-v2__meta {
  position: relative;
  padding: 0.35rem 0.15rem 0.35rem 0.35rem;
  border-radius: 1.1rem;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ws-bg-surface-raised) 42%, transparent),
    color-mix(in srgb, var(--ws-bg-surface) 18%, transparent)
  );
}

.profile-hero--v2[data-profile-card-style="overlay"] .profile-tagline,
.profile-hero--v2[data-profile-card-style="overlay"] .profile-bio,
.profile-hero--v2[data-profile-card-style="overlay"] .profile-role--social {
  text-shadow: 0 1px 12px color-mix(in srgb, var(--ws-bg-page) 55%, transparent);
}

html[data-theme="light"] .profile-hero--v2[data-profile-card-style="overlay"] {
  background:
    linear-gradient(
      155deg,
      #ffffff 0%,
      color-mix(in srgb, var(--ws-bg-surface-raised) 88%, var(--profile-accent, var(--ws-accent)) 4%) 46%,
      var(--ws-bg-page) 100%
    );
}

html[data-theme="light"] .profile-hero--v2[data-profile-card-style="overlay"] .profile-hero-v2__backdrop img {
  filter: blur(32px) saturate(0.5) brightness(1.05);
  opacity: 0.22;
}

html[data-theme="light"] .profile-hero--v2[data-profile-card-style="overlay"] .profile-hero-v2__backdrop::after {
  background:
    radial-gradient(
      circle at 35% 40%,
      color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 14%, transparent),
      transparent 58%
    ),
    linear-gradient(
      100deg,
      color-mix(in srgb, #fff 40%, transparent) 0%,
      color-mix(in srgb, var(--ws-bg-page) 88%, transparent) 72%,
      var(--ws-bg-page) 100%
    );
}

html[data-theme="light"] .profile-hero--v2[data-profile-card-style="overlay"]::before {
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(255, 255, 255, 0.55) 20%,
      transparent 38%
    ),
    radial-gradient(
      ellipse 55% 40% at 92% 8%,
      color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 12%, transparent),
      transparent 70%
    ),
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 32%,
      color-mix(in srgb, #fff 70%, transparent) 55%,
      color-mix(in srgb, #fff 92%, transparent) 100%
    );
}

html[data-theme="light"] .profile-hero--v2[data-profile-card-style="overlay"] .profile-hero-v2__identity,
html[data-theme="light"] .profile-hero--v2[data-profile-card-style="overlay"] .profile-hero-v2__body,
html[data-theme="light"] .profile-hero--v2[data-profile-card-style="overlay"] .profile-hero-v2__meta {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #fff 72%, transparent),
    color-mix(in srgb, #fff 28%, transparent)
  );
}

html[data-theme="light"] .profile-hero--v2[data-profile-card-style="overlay"] .profile-tagline,
html[data-theme="light"] .profile-hero--v2[data-profile-card-style="overlay"] .profile-bio,
html[data-theme="light"] .profile-hero--v2[data-profile-card-style="overlay"] .profile-role--social {
  text-shadow: none;
}

/* Draft B / 绚丽 — accent-driven glow (uses profile.accent, not hardcoded purple) */
.profile-hero--v2[data-profile-card-style="vibrant"] {
  border-color: color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 32%, var(--ws-border-subtle));
  background: var(--profile-card-active-bg, var(--profile-card-bg-vibrant));
  box-shadow: var(--profile-card-shadow-hero, var(--profile-card-shadow));
}

.profile-hero--v2[data-profile-card-style="vibrant"] .profile-social-avatar-ring {
  border-color: color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 48%, transparent);
  background: color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 14%, var(--ws-bg-surface));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 16%, transparent),
    0 14px 36px color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 22%, transparent);
}

.profile-hero--v2[data-profile-card-style="vibrant"] .profile-action-btn.is-primary {
  box-shadow:
    0 10px 28px color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 34%, transparent);
}

/* classic keeps token surfaces from .profile-hero--v2 base rules */

/* cardDisplay modifiers */
.profile-hero--v2[data-card-photo-frame="accent"] .profile-social-avatar-ring {
  border-color: color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 55%, transparent);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--profile-accent, var(--ws-accent)) 16%, transparent),
    var(--ws-shadow-soft);
}

.profile-hero--v2[data-card-photo-frame="none"] .profile-social-avatar-ring {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.profile-hero--v2[data-card-photo-frame="none"] .profile-avatar--social {
  border-color: transparent;
}

.profile-hero--v2[data-card-atmosphere="subtle"] .profile-hero-v2__backdrop img {
  opacity: 0.14;
  filter: blur(34px) saturate(0.4) brightness(0.9);
}

.profile-hero--v2[data-card-atmosphere="bold"] .profile-hero-v2__backdrop img {
  opacity: 0.38;
  filter: blur(22px) saturate(0.7) brightness(0.88);
}

.profile-hero--v2[data-card-atmosphere="subtle"]::before {
  opacity: 0.55;
}

.profile-hero--v2[data-card-atmosphere="bold"]::before {
  opacity: 1;
}

.profile-hero--v2[data-card-cta="balanced"] .profile-action-btn.is-primary {
  background: var(--ws-bg-button, var(--ws-bg-surface));
  color: var(--ws-text-primary);
  border: 1px solid var(--ws-border-subtle);
  box-shadow: none;
}

.profile-hero--v2[data-card-cta="balanced"] .profile-action-btn.is-primary:hover,
.profile-hero--v2[data-card-cta="balanced"] .profile-action-btn.is-primary:focus-visible {
  border-color: var(--ws-border-strong);
  background: var(--ws-bg-button-hover, var(--ws-accent-soft));
}

/* ==========================================================================
   Profile Display personalization (presets, density, surfaces, header)
   ========================================================================== */

.profile-shell.profile-page {
  --profile-content-gap: clamp(1rem, 1.7vw, 1.45rem);
  --profile-panel-pad: clamp(1rem, 1.6vw, 1.35rem);
  --profile-avatar-size: clamp(7.5rem, 14vw, 10.5rem);
  --profile-panel-radius: 1.45rem;
}

.profile-shell.profile-page .profile-stack--v2 { gap: var(--profile-content-gap); }
.profile-shell.profile-page .profile-panel,
.profile-shell.profile-page .profile-hero--v2 { border-radius: var(--profile-panel-radius); }
.profile-shell.profile-page .profile-panel { padding: var(--profile-panel-pad); }
.profile-shell.profile-page .profile-social-avatar-ring,
.profile-shell.profile-page .profile-avatar--social {
  width: var(--profile-avatar-size);
  height: var(--profile-avatar-size);
}
.profile-shell.profile-avatar-shape--soft-square .profile-social-avatar-ring,
.profile-shell.profile-avatar-shape--soft-square .profile-avatar--social { border-radius: 1.35rem; }
.profile-shell.profile-avatar-size--small { --profile-avatar-size: clamp(5.5rem, 11vw, 7.25rem); }
.profile-shell.profile-avatar-size--large { --profile-avatar-size: clamp(9rem, 18vw, 13rem); }
.profile-shell.profile-header-height--compact .profile-hero--v2 { padding-block: 1rem; }
.profile-shell.profile-header-height--immersive .profile-hero--v2 {
  min-height: clamp(22rem, 42vh, 30rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
}
.profile-shell.profile-header-align--center .profile-hero-v2__inner { justify-items: center; text-align: center; }
.profile-shell.profile-density--comfortable { --profile-content-gap: clamp(1.25rem, 2.2vw, 2rem); --profile-panel-pad: clamp(1.2rem, 2vw, 1.7rem); }
.profile-shell.profile-density--compact { --profile-content-gap: clamp(0.75rem, 1.2vw, 1rem); --profile-panel-pad: clamp(0.85rem, 1.3vw, 1.1rem); }
.profile-shell.profile-surface--ambient::before,
.profile-shell.profile-surface--grid::before,
.profile-shell.profile-surface--stardust::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}
.profile-shell.profile-surface--ambient::before {
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--profile-accent) 18%, transparent), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(91, 141, 255, 0.12), transparent 32%);
}
.profile-shell.profile-surface--grid::before {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.profile-shell.profile-surface--stardust::before {
  opacity: 0.4;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 70% 18%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 42% 72%, rgba(255, 255, 255, 0.35), transparent);
}
.profile-shell.profile-surface--glass .profile-hero--v2,
.profile-shell.profile-surface--glass .profile-panel {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.profile-shell.profile-preset--editorial .profile-hero--v2 .profile-name {
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}
.profile-shell.profile-preset--showcase .profile-sidebar-v2 { display: none; }
.profile-shell.profile-preset--identity .profile-hero-v2__inner {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.profile-shell.profile-preset--compact {
  --profile-content-gap: 0.85rem;
  --profile-panel-pad: 0.95rem;
  --profile-avatar-size: clamp(5.75rem, 12vw, 7.5rem);
}

.profile-shell.profile-density--balanced {
  --profile-content-gap: clamp(1rem, 1.6vw, 1.35rem);
  --profile-panel-pad: clamp(1rem, 1.5vw, 1.35rem);
}

.profile-shell.profile-featured--split .profile-panel--overview-v2 {
  display: grid;
  gap: var(--profile-content-gap, 1rem);
}

@media (min-width: 960px) {
  .profile-shell.profile-featured--split .profile-panel--overview-v2 {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

.profile-shell.profile-featured--full-width .profile-overview-showcase .profile-carousel {
  border-radius: 1.35rem;
}

.profile-shell.profile-featured--gallery .profile-overview-showcase .profile-carousel-stage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
}

.profile-shell.profile-featured--gallery .profile-carousel-slide:not(.is-active) {
  display: block;
  opacity: 1;
  position: relative;
  inset: auto;
}

.profile-shell.profile-featured--compact .profile-overview-showcase,
.profile-shell.profile-featured--compact .profile-overview-recent {
  gap: 0.65rem;
}

.profile-shell.profile-featured--compact .profile-carousel {
  padding: 0.65rem;
}

.profile-hero--v2[data-card-density="compact"] .profile-hero-v2__inner {
  gap: 0.75rem;
  padding: clamp(0.85rem, 2vw, 1.15rem);
}

.profile-hero--v2[data-card-density="compact"] .profile-social-stats--v2 {
  gap: 0.45rem;
}

.profile-hero--v2[data-card-density="compact"] .profile-social-stat {
  min-width: 4.5rem;
  padding: 0.45rem 0.55rem;
}

.profile-shell[data-motion="reduced"] .profile-hero--v2,
.profile-shell[data-motion="reduced"] .profile-panel {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .profile-shell .profile-hero--v2,
  .profile-shell .profile-panel {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

#studio-react-root .account-profile-display-stack {
  display: grid;
  gap: 1.25rem;
}


/* Cross-account content resilience for profile identity copy */
.profile-shell .profile-name--social,
.profile-shell .profile-role--social,
.profile-shell .profile-tagline,
.profile-shell .profile-bio,
.profile-shell .profile-handle {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-shell .profile-name--social {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.profile-shell .profile-bio {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}

.profile-shell .profile-action-row--v2 {
  flex-wrap: wrap;
  max-width: 100%;
}

.profile-shell .profile-social-link-list,
.profile-shell .profile-contact-list-v2 {
  overflow-wrap: anywhere;
}


.profile-panel--music-v2 {
  display: grid;
  gap: 1.15rem;
}

.profile-album-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: minmax(0, 1fr);
  max-width: 920px;
}

.profile-album-card {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 1.1rem 1.35rem;
  padding: 1.05rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(138, 90, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-album-card.is-playing {
  border-color: rgba(184, 142, 255, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.profile-album-card__media {
  position: relative;
  align-self: start;
}

.profile-album-cover,
.profile-album-cover--fallback {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.95rem;
  object-fit: cover;
  display: block;
  background: linear-gradient(145deg, rgba(138, 43, 226, 0.28), rgba(16, 20, 40, 0.9));
}

.profile-album-card.is-playing .profile-album-cover,
.profile-album-card.is-playing .profile-album-cover--fallback {
  box-shadow: 0 0 0 1px rgba(184, 142, 255, 0.35), 0 16px 36px rgba(90, 40, 180, 0.28);
}

.profile-album-cover-play {
  position: absolute;
  inset: auto 0.7rem 0.7rem auto;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: rgba(20, 16, 36, 0.72);
  backdrop-filter: blur(8px);
}

.profile-album-cover-play.is-playing,
.profile-album-player__btn--play.is-playing {
  background: rgba(138, 90, 255, 0.72);
}

.profile-album-card__body {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  align-content: start;
}

.profile-album-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.profile-album-card__titles {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.profile-album-card__heading h3,
.profile-album-artist,
.profile-album-description {
  margin: 0;
}

.profile-album-artist {
  opacity: 0.82;
}

.profile-album-artist__link,
.content-author-link {
  color: var(--ws-link, #9ec5ff);
  font-weight: 600;
  text-decoration: none;
}

html[data-theme="light"] .profile-album-artist__link,
html[data-theme="light"] .content-author-link {
  color: #5b21b6;
}

.profile-album-artist__link:hover,
.profile-album-artist__link:focus-visible,
.content-author-link:hover,
.content-author-link:focus-visible {
  text-decoration: underline;
}

.profile-album-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.profile-album-share:hover,
.profile-album-share:focus-visible {
  border-color: rgba(184, 142, 255, 0.45);
}

.profile-album-player {
  display: grid;
  gap: 0.62rem;
  padding: 0.85rem;
  border-radius: 0.95rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-album-player__now-row {
  display: grid;
  gap: 0.18rem;
}

.profile-album-player__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
}

.profile-album-player__now {
  font-size: 1rem;
  font-weight: 650;
  min-height: 1.35em;
}

.profile-album-player__transport {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-album-player__btn {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.profile-album-player__btn--play {
  width: 2.9rem;
  height: 2.9rem;
  background: rgba(138, 90, 255, 0.4);
}

.profile-album-player__seek {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.profile-album-player__time {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  opacity: 0.8;
  min-width: 2.4em;
}

.profile-album-player__range,
.profile-album-player__volume input {
  width: 100%;
  accent-color: #9b7bff;
}

.profile-album-player__volume {
  display: grid;
  grid-template-columns: auto minmax(72px, 120px);
  gap: 0.45rem;
  align-items: center;
  margin-left: auto;
  opacity: 0.9;
}

.profile-album-player__status {
  margin: 0;
  min-height: 1.1em;
  font-size: 0.82rem;
  opacity: 0.85;
}

.profile-album-player__status.is-error {
  color: #ffb4b4;
}

.profile-album-player__status.is-loading {
  opacity: 0.75;
}

.profile-album-tracklist {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.28rem;
}

.profile-album-track {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  cursor: pointer;
}

.profile-album-track:hover,
.profile-album-track:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.profile-album-track.is-active {
  background: rgba(138, 90, 255, 0.18);
}

.profile-album-track__play-icon {
  width: 1.4rem;
  display: inline-grid;
  place-items: center;
  opacity: 0.75;
  font-size: 0.78rem;
}

.profile-album-track__meta {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  min-width: 0;
}

.profile-album-track__meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-album-track__wave {
  width: 1.1rem;
  height: 0.85rem;
  border-radius: 999px;
  opacity: 0;
  background:
    linear-gradient(#9b7bff, #9b7bff) 0 100%/2px 40%,
    linear-gradient(#9b7bff, #9b7bff) 4px 100%/2px 70%,
    linear-gradient(#9b7bff, #9b7bff) 8px 100%/2px 55%;
  background-repeat: no-repeat;
}

.profile-album-track.is-playing .profile-album-track__wave {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .profile-album-track.is-playing .profile-album-track__wave {
    animation: profile-album-wave 0.9s ease-in-out infinite alternate;
  }
}

@keyframes profile-album-wave {
  from {
    opacity: 0.55;
    transform: scaleY(0.85);
  }
  to {
    opacity: 1;
    transform: scaleY(1.1);
  }
}

.profile-album-share-status {
  margin: 0;
  min-height: 1.1em;
  font-size: 0.82rem;
  opacity: 0.85;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .profile-album-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-album-card__media {
    max-width: 220px;
  }

  .profile-album-player__volume {
    margin-left: 0;
    width: 100%;
    grid-template-columns: auto 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-album-card {
    transition: none;
  }
}

/* ==========================================================================
   Profile card surface sync — shared atmosphere from /@user/card
   ========================================================================== */

.profile-shell.profile-page[data-profile-card-style] .profile-hero--v2 .profile-card-surface__glow {
  inset: 8% 10% auto;
  height: 50%;
  opacity: var(--profile-card-hero-glow-opacity, var(--profile-card-glow-opacity));
  filter: blur(24px);
}

.profile-shell.profile-page[data-profile-card-style] .profile-hero--v2 .profile-card-surface__sheen {
  opacity: var(--profile-card-hero-sheen-opacity, var(--profile-card-sheen-opacity));
}

.profile-account-page:has(.profile-shell.profile-page[data-profile-card-style]) {
  background:
    var(--profile-card-page-vignette),
    var(--profile-card-page-wash),
    radial-gradient(circle at top right, color-mix(in srgb, var(--profile-accent-soft) 85%, transparent), transparent 36%),
    radial-gradient(circle at top left, color-mix(in srgb, var(--profile-accent) 10%, transparent), transparent 30%),
    linear-gradient(
      180deg,
      #0a0810 0%,
      #07060c 46%,
      #040406 100%
    );
}

.profile-shell.profile-page[data-profile-card-style] .profile-hero--v2 {
  border-color: color-mix(in srgb, var(--profile-card-border-color) 88%, var(--profile-accent, #8a2be2) 12%);
  box-shadow: var(--profile-card-shadow-hero, var(--profile-card-shadow));
  transform: translateZ(0);
}

.profile-shell.profile-page[data-profile-card-style] .profile-hero--v2::before {
  background:
    linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 28%,
      transparent 62%,
      rgba(255, 255, 255, 0.04) 100%
    ),
    radial-gradient(
      circle at 78% 18%,
      color-mix(in srgb, var(--profile-accent, #8a2be2) 22%, transparent),
      transparent 48%
    ),
    radial-gradient(
      circle at 14% 88%,
      color-mix(in srgb, var(--profile-accent, #8a2be2) 12%, transparent),
      transparent 42%
    );
  opacity: 1;
}

.profile-shell.profile-page[data-profile-card-style] .profile-social-stats--v2 .profile-social-stat {
  border-color: color-mix(in srgb, var(--profile-accent, #8a2be2) 14%, rgba(255, 255, 255, 0.08));
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    color-mix(in srgb, var(--ws-bg-surface-muted, rgba(255, 255, 255, 0.04)) 88%, #000 12%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.profile-shell.profile-page[data-profile-card-style] .profile-social-avatar-ring {
  border-color: color-mix(in srgb, var(--profile-accent, #8a2be2) 42%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--profile-accent, #8a2be2) 72%, #fff 28%), rgba(255, 255, 255, 0.22));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.38),
    0 0 0 1px color-mix(in srgb, var(--profile-accent, #8a2be2) 18%, transparent);
}

.profile-shell.profile-page[data-profile-card-style] .profile-tabs-v2 {
  border-color: color-mix(in srgb, var(--profile-card-border-color) 70%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(8, 9, 14, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.34);
}

.profile-shell.profile-page[data-profile-card-style] .profile-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: var(--profile-card-border-color, var(--ws-border-subtle));
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), transparent 40%),
    linear-gradient(180deg, color-mix(in srgb, var(--profile-accent, #8a2be2) 5%, transparent), transparent 36%),
    var(--ws-bg-card, var(--ws-bg-surface, #1a1a1b));
  box-shadow: var(--profile-card-shadow-panel, var(--profile-card-shadow-soft));
}

.profile-shell.profile-page[data-profile-card-style] .profile-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--profile-card-sheen);
  mix-blend-mode: screen;
  opacity: calc(var(--profile-card-sheen-opacity) * 0.44);
  pointer-events: none;
  z-index: 0;
}

.profile-shell.profile-page[data-profile-card-style] .profile-panel > * {
  position: relative;
  z-index: 1;
}

.profile-shell.profile-page[data-profile-card-style="vibrant"] .profile-panel {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--profile-accent, #8a2be2) 12%, transparent), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%),
    var(--ws-bg-card, var(--ws-bg-surface, #1a1a1b));
  box-shadow:
    var(--profile-card-shadow-panel),
    0 18px 48px color-mix(in srgb, var(--profile-accent, #8a2be2) 14%, transparent);
}

.profile-shell.profile-page[data-profile-card-style="vibrant"] .profile-hero--v2 {
  box-shadow:
    var(--profile-card-shadow-hero),
    0 28px 72px color-mix(in srgb, var(--profile-accent, #8a2be2) 26%, transparent);
}

.profile-shell.profile-page[data-profile-card-style="overlay"] .profile-panel::after {
  opacity: calc(var(--profile-card-sheen-opacity) * 0.28);
}

html[data-theme="light"] .profile-account-page:has(.profile-shell.profile-page[data-profile-card-style]) {
  background:
    radial-gradient(ellipse 130% 88% at 50% -6%, rgba(255, 255, 255, 0.72) 24%, rgba(228, 220, 240, 0.92) 100%),
    var(--profile-card-page-wash),
    linear-gradient(180deg, #faf8fc 0%, var(--ws-bg-page, #f4f1f8) 52%, #ebe4f4 100%);
}

html[data-theme="light"] .profile-shell.profile-page[data-profile-card-style] .profile-hero--v2 {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 24px 52px rgba(40, 24, 64, 0.14),
    0 12px 28px rgba(40, 24, 64, 0.1),
    0 0 0 1px color-mix(in srgb, var(--profile-accent, #8a2be2) 12%, transparent),
    0 20px 48px color-mix(in srgb, var(--profile-accent, #8a2be2) 12%, transparent);
}

html[data-theme="light"] .profile-shell.profile-page[data-profile-card-style] .profile-panel {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), transparent 42%),
    var(--ws-bg-card, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 40px rgba(40, 24, 64, 0.1),
    0 0 0 1px color-mix(in srgb, var(--profile-accent, #8a2be2) 8%, transparent);
}

html[data-theme="light"] .profile-shell.profile-page[data-profile-card-style] .profile-social-stats--v2 .profile-social-stat {
  background: linear-gradient(165deg, #fff, #f6f2fb);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 20px rgba(40, 24, 64, 0.08);
}

/* ==========================================================================
   Profile photo integrity — keep avatar above decorative layers; never cover it
   ========================================================================== */

.profile-hero--v2 .profile-social-avatar-shell--v2,
.profile-hero--v2 .profile-social-avatar-ring,
.profile-hero--v2 .profile-avatar--social {
  position: relative;
  z-index: 3;
  isolation: isolate;
}

.profile-hero--v2 .profile-hero-v2__inner {
  position: relative;
  z-index: 2;
}

.profile-hero--v2 .profile-hero-v2__backdrop {
  z-index: 1;
  pointer-events: none;
}

.profile-hero--v2 .profile-social-avatar-shell--v2 {
  z-index: 3;
}

/* Closed overlays must never paint over the profile hero / avatar. */
.profile-follow-overlay:not(.is-open),
.works-modal:not(.is-open) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.profile-shell.profile-page .profile-avatar--social {
  object-fit: cover;
  object-position: center;
  background: var(--ws-bg-surface-muted, #141416);
}

/* Decorative hero ::before must stay behind the avatar column. */
.profile-hero--v2::before {
  z-index: 0;
  pointer-events: none;
}

/* ── Interaction motion (press / filter / modal / expressive) ───────────── */

.profile-page .filter-chip,
.profile-page .profile-preview-tile,
.profile-page .profile-work-surface,
.profile-page .profile-home-link,
.profile-page .profile-album-track,
.profile-page .profile-follow-card,
.profile-page .profile-carousel-nav,
.profile-page .profile-carousel-toggle,
.profile-page .profile-carousel-dot,
.profile-page .profile-carousel-media,
.profile-page .profile-card-open,
.profile-page .profile-social-avatar-shell--v2[data-profile-open-card="1"] {
  transition:
    transform var(--ws-duration-fast, 160ms) var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color var(--ws-duration-fast, 160ms) ease,
    background var(--ws-duration-fast, 160ms) ease,
    box-shadow var(--ws-duration-fast, 160ms) ease,
    opacity var(--ws-duration-fast, 160ms) ease,
    color var(--ws-duration-fast, 160ms) ease,
    filter var(--ws-duration-fast, 160ms) ease;
}

.profile-page .filter-chip:active,
.profile-page .profile-preview-tile:active,
.profile-page .profile-work-surface:active,
.profile-page .profile-home-link:active,
.profile-page .profile-album-track:active,
.profile-page .profile-follow-card:active,
.profile-page .profile-carousel-nav:active,
.profile-page .profile-carousel-toggle:active,
.profile-page .profile-carousel-dot:active,
.profile-page .profile-card-open:active,
.profile-page .profile-social-avatar-shell--v2[data-profile-open-card="1"]:active {
  transform: scale(0.97);
}

@media (hover: none) {
  .profile-page .profile-action-btn:active:not(.is-disabled),
  .profile-page .profile-tab-v2:active,
  .profile-page .filter-chip:active,
  .profile-page .profile-preview-tile:active,
  .profile-page .profile-work-surface:active {
    opacity: 0.92;
  }
}

.profile-page .profile-panel-pane.is-active,
.profile-page .profile-stage-v2 > .profile-panel-pane.is-active {
  scroll-margin-top: calc(var(--ws-nav-height, 5.5rem) + 4.75rem);
}

.profile-feed-grid--enter .profile-preview-tile,
.profile-feed-grid--enter .profile-work-surface,
.profile-feed-grid--enter .catalog-card {
  opacity: 0;
  transform: translate3d(0, 0.45rem, 0);
  animation: profile-feed-item-in 0.34s var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)) both;
  animation-delay: var(--profile-feed-delay, 0s);
}

.profile-feed-grid.is-filtering {
  opacity: 0.42;
  transition: opacity var(--ws-duration-fast, 160ms) ease;
  pointer-events: none;
}

@keyframes profile-feed-item-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.works-modal {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--ws-duration-base, 220ms) var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    visibility var(--ws-duration-base, 220ms) var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
}

.works-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.works-modal.is-open.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.works-modal .works-modal__backdrop {
  opacity: 0;
  transition: opacity var(--ws-duration-base, 220ms) ease;
}

.works-modal.is-open:not(.is-closing) .works-modal__backdrop {
  opacity: 1;
}

.works-modal .works-modal__panel {
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.98);
  transition:
    opacity var(--ws-duration-base, 220ms) var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    transform var(--ws-duration-base, 220ms) var(--ws-ease-standard, cubic-bezier(0.22, 1, 0.36, 1));
}

.works-modal.is-open:not(.is-closing) .works-modal__panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.profile-shell[data-motion="expressive"] {
  --profile-reveal-expressive-boost: 1.25;
}

.profile-shell[data-motion="expressive"] .profile-reveal {
  transition-duration: 0.62s;
}

.profile-shell[data-motion="expressive"] .profile-panel-pane.is-active.is-enter {
  animation-duration: 0.36s;
}

.profile-shell[data-motion="expressive"].profile-motion-ready .profile-hero--v2 .profile-social-avatar-shell--v2 {
  animation-duration: 0.7s;
}

.profile-shell[data-motion="expressive"] .profile-preview-tile:hover img,
.profile-shell[data-motion="expressive"] .profile-preview-tile:focus-visible img,
.profile-shell[data-motion="expressive"] .profile-carousel-media:hover img,
.profile-shell[data-motion="expressive"] .profile-carousel-media:focus-visible img {
  transform: scale(1.07);
}

.profile-shell[data-motion="expressive"] .profile-feed-grid--enter .profile-preview-tile,
.profile-shell[data-motion="expressive"] .profile-feed-grid--enter .profile-work-surface {
  animation-duration: 0.42s;
}

.profile-shell[data-motion="reduced"] .profile-panel-pane.is-active.is-enter,
.profile-shell[data-motion="reduced"] .profile-panel-pane.is-active.is-exit,
.profile-shell[data-motion="reduced"] .profile-feed-grid--enter .profile-preview-tile,
.profile-shell[data-motion="reduced"] .profile-feed-grid--enter .profile-work-surface,
.profile-shell[data-motion="reduced"] .works-modal,
.profile-shell[data-motion="reduced"] .works-modal .works-modal__panel,
.profile-shell[data-motion="reduced"] .works-modal .works-modal__backdrop {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .profile-page .profile-action-btn:active:not(.is-disabled),
  .profile-page .profile-tab-v2:active,
  .profile-page .filter-chip:active,
  .profile-page .profile-preview-tile:active,
  .profile-page .profile-work-surface:active,
  .profile-page .profile-home-link:active,
  .profile-page .profile-album-track:active,
  .profile-page .profile-follow-card:active,
  .profile-page .profile-carousel-nav:active,
  .profile-page .profile-carousel-toggle:active,
  .profile-page .profile-carousel-dot:active,
  .profile-page .profile-card-open:active {
    transform: none;
  }

  .profile-panel-pane.is-active.is-exit,
  .profile-feed-grid--enter .profile-preview-tile,
  .profile-feed-grid--enter .profile-work-surface,
  .works-modal,
  .works-modal .works-modal__panel,
  .works-modal .works-modal__backdrop {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .profile-feed-grid--enter .profile-preview-tile,
  .profile-feed-grid--enter .profile-work-surface {
    opacity: 1;
  }
}
