/* Seventeen Community Profile Premium Redesign
   Visual layer only: existing data contracts and server visibility remain intact. */

body.customer-community-page {
  --profile-page: #06070d;
  --profile-surface: rgba(17, 22, 34, .82);
  --profile-surface-solid: #10131d;
  --profile-text: #f7f5fb;
  --profile-muted: #aaa7b8;
  --profile-line: rgba(255, 255, 255, .12);
  --profile-radius-xl: 34px;
  --profile-radius-lg: 24px;
  --profile-radius-md: 16px;
  --profile-shadow: 0 30px 90px rgba(0, 0, 0, .45);
  overflow-x: clip;
}

body.customer-community-page .rewards-main,
body.customer-community-page .rewards-footer {
  width: min(100% - 32px, 1600px);
}

body.customer-community-page :is(
  .community-editor-card,
  .community-public-card,
  .community-studio-preview,
  .community-profile-steps
) {
  border-color: var(--profile-line);
}

body.customer-community-page :is(
  .community-editor-card p,
  .community-editor-card small,
  .community-public-card p,
  .community-public-card small,
  .community-studio-preview p,
  .community-studio-preview small
) {
  font-size: clamp(.82rem, .78rem + .16vw, .96rem);
  line-height: 1.65;
}

body.customer-community-page :is(
  button,
  a,
  input,
  textarea,
  select,
  label
):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rewards-cyan) 78%, white);
  outline-offset: 3px;
}

/* Profile studio */

body.customer-community-page .community-profile-studio {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  width: 100%;
  padding: clamp(20px, 2.5vw, 34px);
  border-radius: var(--profile-radius-xl);
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 124, 233, .1), transparent 28%),
    radial-gradient(circle at 100% 16%, rgba(36, 217, 239, .08), transparent 30%),
    rgba(6, 7, 13, .9);
  box-shadow: var(--profile-shadow);
}

body.customer-community-page .community-studio-heading {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 0 0 6px;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  border: 1px solid var(--profile-line);
  border-radius: var(--profile-radius-lg);
  background:
    linear-gradient(115deg, rgba(244, 124, 233, .1), transparent 42%),
    linear-gradient(295deg, rgba(36, 217, 239, .08), transparent 44%),
    var(--profile-surface);
}

body.customer-community-page .community-studio-heading h2 {
  max-width: 780px;
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.055em;
}

body.customer-community-page .community-studio-heading > div:first-child > p {
  max-width: 690px;
  margin: 0;
  color: var(--profile-muted);
  font-size: clamp(.95rem, .9rem + .2vw, 1.08rem);
}

body.customer-community-page .community-completion {
  min-width: min(100%, 320px);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: rgba(6, 8, 14, .62);
}

body.customer-community-page .community-completion-ring {
  width: 66px;
  height: 66px;
  font-size: .92rem;
}

.community-studio-mode {
  display: none;
}

body.customer-community-page .community-profile-steps {
  position: sticky;
  top: 94px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: calc(100vh - 116px);
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--profile-line);
  border-radius: var(--profile-radius-lg);
  background: rgba(11, 14, 23, .86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 217, 239, .45) transparent;
}

body.customer-community-page .community-profile-steps a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  color: var(--profile-muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 15px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

body.customer-community-page .community-profile-steps a:hover {
  color: var(--profile-text);
  transform: translateX(2px);
  background: rgba(255, 255, 255, .045);
}

body.customer-community-page .community-profile-steps a.is-active,
body.customer-community-page .community-profile-steps a[aria-current="page"] {
  color: var(--profile-text);
  border-color: color-mix(in srgb, var(--rewards-pink) 42%, transparent);
  background:
    linear-gradient(120deg, rgba(244, 124, 233, .14), rgba(36, 217, 239, .07)),
    rgba(255, 255, 255, .035);
  box-shadow: inset 3px 0 0 var(--rewards-pink);
}

body.customer-community-page .community-profile-steps a > .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--rewards-cyan);
  border: 1px solid rgba(36, 217, 239, .18);
  border-radius: 13px;
  background: rgba(36, 217, 239, .07);
}

body.customer-community-page .community-profile-steps a strong,
body.customer-community-page .community-profile-steps a small {
  display: block !important;
  overflow: visible;
  white-space: normal;
}

body.customer-community-page .community-profile-steps a strong {
  color: inherit;
  font-size: .82rem;
  line-height: 1.25;
}

body.customer-community-page .community-profile-steps a small {
  margin-top: 3px;
  color: #8f92a2;
  font-size: .7rem;
  line-height: 1.3;
}

body.customer-community-page .community-profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  margin: 0;
}

body.customer-community-page .community-profile-form > [hidden] {
  display: none !important;
}

body.customer-community-page .community-editor-card {
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--profile-line);
  border-radius: var(--profile-radius-lg);
  background: var(--profile-surface);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
  scroll-margin-top: 100px;
}

body.customer-community-page .community-editor-title {
  margin-bottom: 22px;
}

body.customer-community-page .community-editor-title > .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(244, 124, 233, .2);
  border-radius: 15px;
  background: rgba(244, 124, 233, .09);
}

body.customer-community-page .community-editor-title strong {
  color: var(--profile-text);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.28rem);
}

body.customer-community-page .community-editor-title small {
  margin-top: 4px;
  color: var(--profile-muted);
}

.community-studio-welcome {
  min-height: 530px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(36, 217, 239, .12), transparent 30%),
    radial-gradient(circle at 10% 95%, rgba(244, 124, 233, .12), transparent 34%),
    var(--profile-surface) !important;
}

.community-studio-welcome h3 {
  max-width: 610px;
  margin: 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

.community-studio-welcome > p {
  max-width: 580px;
  margin: 0 0 30px;
  color: var(--profile-muted);
  font-size: 1rem;
}

.community-studio-next-steps {
  display: grid;
  gap: 10px;
}

.community-studio-next-steps button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 15px;
  color: var(--profile-text);
  text-align: left;
  border: 1px solid var(--profile-line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
}

.community-studio-next-steps button:hover {
  border-color: rgba(36, 217, 239, .34);
  background: rgba(36, 217, 239, .07);
}

.community-studio-next-steps button > .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--rewards-cyan);
  border-radius: 14px;
  background: rgba(36, 217, 239, .09);
}

.community-studio-next-steps button strong,
.community-studio-next-steps button small {
  display: block;
}

.community-studio-next-steps button small {
  margin-top: 4px;
  color: var(--profile-muted);
}

body.customer-community-page .community-profile-actions,
body.customer-community-page .community-form-message {
  grid-column: 1;
}

body.customer-community-page .community-profile-actions {
  position: sticky;
  bottom: 12px;
  z-index: 7;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--profile-line);
  border-radius: 18px;
  background: rgba(8, 10, 17, .9);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

body.customer-community-page .community-profile-actions button {
  min-height: 46px;
}

body.customer-community-page .community-studio-preview {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--profile-line);
  border-radius: var(--profile-radius-lg);
  background: rgba(11, 14, 23, .86);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .3);
  backdrop-filter: blur(18px);
}

.community-studio-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.community-studio-preview-head strong,
.community-studio-preview-head .rewards-eyebrow {
  display: block;
}

.community-studio-preview-head > span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--profile-muted);
  font-size: .68rem;
}

.community-studio-preview-head > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 13px rgba(110, 231, 183, .7);
}

.community-studio-preview-canvas {
  --profile-accent: #f47ce9;
  --profile-glow: #24d9ef;
  --profile-surface: #111622;
  min-height: 440px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 24%, transparent);
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--profile-accent) 15%, transparent), transparent 35%),
    radial-gradient(circle at 90% 70%, color-mix(in srgb, var(--profile-glow) 12%, transparent), transparent 40%),
    #080b12;
}

.community-studio-preview-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: var(--profile-surface);
}

.community-studio-preview-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-studio-preview-banner.is-placeholder {
  background:
    radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--profile-glow) 20%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--profile-accent) 16%, #090b13), #090b13);
}

.community-studio-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 5, 10, .05), rgba(4, 5, 10, .9));
}

.community-studio-preview-title {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  max-width: 80%;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem !important;
}

.community-studio-preview-identity {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 13px;
  align-items: end;
}

.community-studio-preview-identity > :first-child {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  object-fit: cover;
  overflow: hidden;
  color: white;
  font-weight: 800;
  border: 2px solid var(--profile-accent);
  border-radius: 20px;
  background: #111622;
  box-shadow: 0 0 25px color-mix(in srgb, var(--profile-accent) 28%, transparent);
}

.community-studio-preview-identity small,
.community-studio-preview-identity strong,
.community-studio-preview-identity p {
  display: block;
}

.community-studio-preview-identity small {
  color: var(--profile-glow);
  font-size: .57rem;
  letter-spacing: .16em;
}

.community-studio-preview-identity strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

.community-studio-preview-identity p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: .68rem !important;
  line-height: 1.45 !important;
}

.community-studio-preview-mini {
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  grid-template-rows: 54px 54px;
  gap: 8px;
  margin-top: 10px;
}

.community-studio-preview-mini span {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.community-studio-preview-mini span:first-child {
  grid-row: span 2;
}

/* Public profile */

body.customer-community-page .community-public-profile {
  gap: 22px;
  width: 100%;
  padding: clamp(12px, 2vw, 24px);
  border-radius: var(--profile-radius-xl);
  background:
    radial-gradient(circle at 10% 5%, color-mix(in srgb, var(--profile-accent) 15%, transparent), transparent 34%),
    radial-gradient(circle at 92% 24%, color-mix(in srgb, var(--profile-glow) 12%, transparent), transparent 38%),
    var(--profile-page);
}

body.customer-community-page .community-public-profile::after {
  background: rgba(5, 7, 12, .42);
}

body.customer-community-page .community-public-hero {
  min-height: clamp(520px, 68vh, 690px);
  border-radius: var(--profile-radius-xl);
  box-shadow: var(--profile-shadow);
}

body.customer-community-page .community-public-hero::after {
  background:
    linear-gradient(90deg, rgba(4, 5, 10, .22), transparent 52%),
    linear-gradient(180deg, rgba(4, 5, 10, .08) 18%, rgba(4, 5, 10, .93) 92%);
}

body.customer-community-page .community-public-banner {
  filter: saturate(1.04) contrast(1.02);
}

body.customer-community-page .community-public-identity {
  right: clamp(24px, 4vw, 62px);
  bottom: clamp(28px, 5vw, 68px);
  left: clamp(24px, 4vw, 62px);
  grid-template-columns: 132px minmax(0, 760px);
  gap: 25px;
  align-items: end;
}

body.customer-community-page .community-public-avatar {
  width: 132px;
  height: 132px;
  border-radius: 34px;
  border-width: 3px;
  box-shadow:
    0 0 0 7px rgba(7, 9, 15, .72),
    0 18px 50px rgba(0, 0, 0, .48),
    0 0 32px color-mix(in srgb, var(--profile-accent) 26%, transparent);
}

body.customer-community-page .community-public-identity h1 {
  margin: 6px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.065em;
}

body.customer-community-page .community-public-identity > div > p {
  max-width: 700px;
  color: rgba(255, 255, 255, .83);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

body.customer-community-page .community-public-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 0;
}

body.customer-community-page .community-public-stats div {
  display: grid;
  min-width: 118px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(6, 8, 14, .58);
  backdrop-filter: blur(16px);
}

body.customer-community-page .community-public-stats dt {
  order: 2;
  color: rgba(235, 238, 247, .62);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.customer-community-page .community-public-stats dd {
  order: 1;
  margin: 0 0 2px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

body.customer-community-page .community-public-vip-badge {
  top: 24px;
  right: 24px;
}

body.customer-community-page .community-public-vip-badge .community-profile-reward-badge {
  min-height: 52px;
  padding: 8px 16px 8px 8px;
  border-color: rgba(243, 195, 120, .5);
  background: rgba(8, 8, 13, .72);
  box-shadow: 0 15px 38px rgba(0, 0, 0, .3);
  backdrop-filter: blur(14px);
}

body.customer-community-page .community-public-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  width: min(100%, 980px);
  margin: -36px auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(8, 10, 17, .82);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .3);
  backdrop-filter: blur(18px);
}

body.customer-community-page .community-public-actions .community-social-bar {
  display: contents;
}

body.customer-community-page .community-public-actions .community-public-meta,
body.customer-community-page .community-public-actions .community-friend-list {
  display: none;
}

body.customer-community-page .community-public-actions .community-social-button {
  min-height: 44px;
  margin: 0;
  border-radius: 999px;
}

.community-public-section-nav {
  position: sticky;
  top: 76px;
  z-index: 10;
  display: flex;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--profile-line);
  border-radius: 999px;
  background: rgba(8, 10, 17, .82);
  box-shadow: 0 15px 38px rgba(0, 0, 0, .26);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.community-public-section-nav::-webkit-scrollbar {
  display: none;
}

.community-public-section-nav button {
  min-height: 42px;
  padding: 0 18px;
  color: var(--profile-muted);
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.community-public-section-nav button:hover {
  color: white;
  background: rgba(255, 255, 255, .07);
}

body.customer-community-page .community-public-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 18px;
}

body.customer-community-page .community-public-card {
  padding: clamp(22px, 3vw, 38px);
  border-radius: var(--profile-radius-lg);
  background: color-mix(in srgb, var(--profile-surface) 88%, transparent);
  box-shadow: 0 18px 56px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
  scroll-margin-top: 150px;
}

body.customer-community-page .community-public-card h2 {
  margin: 8px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}

body.customer-community-page .community-public-card > p {
  color: var(--profile-muted);
  font-size: clamp(.96rem, .9rem + .25vw, 1.1rem);
  line-height: 1.8;
}

body.customer-community-page .community-public-favorites > div {
  display: grid;
  grid-template-columns: 1.05fr .75fr .75fr;
  grid-auto-rows: 260px;
  gap: 12px;
}

body.customer-community-page .community-public-favorites a {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--profile-line);
  border-radius: 18px;
  background: #0a0d15;
}

body.customer-community-page .community-public-favorites a:first-child {
  grid-row: span 2;
}

body.customer-community-page .community-public-favorites a:nth-child(4) {
  grid-column: span 2;
}

body.customer-community-page .community-public-favorites img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .75, .2, 1);
}

body.customer-community-page .community-public-favorites a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(4, 5, 10, .88));
}

body.customer-community-page .community-public-favorites a:hover img {
  transform: scale(1.035);
}

body.customer-community-page .community-public-favorites a strong {
  z-index: 2;
  right: 16px;
  bottom: 15px;
  left: 16px;
  color: white;
  font-size: .88rem;
}

body.customer-community-page .community-public-favorites a .material-symbols-outlined {
  z-index: 3;
}

body.customer-community-page .community-external-album-strip {
  min-height: 220px;
}

body.customer-community-page .community-external-album-strip button {
  flex: 0 0 clamp(180px, 25vw, 290px);
  aspect-ratio: 4 / 3;
}

/* Controls and accessibility */

body.customer-community-page :is(
  .community-form-grid input,
  .community-form-grid textarea,
  .community-cloud-fields input,
  .community-model-connect input,
  .community-model-connect select
) {
  min-height: 50px;
  color: var(--profile-text);
  border-color: rgba(255, 255, 255, .2);
  background: rgba(5, 7, 12, .78);
}

body.customer-community-page .community-form-grid textarea {
  min-height: 150px;
}

body.customer-community-page :is(
  .community-theme-presets input,
  .community-layout-picker input,
  .community-chip-picker input,
  .community-privacy-choices input,
  .community-file-button input
):focus-visible + span,
body.customer-community-page .community-file-button:has(input:focus-visible) {
  outline: 3px solid var(--rewards-cyan);
  outline-offset: 3px;
}

@media (max-width: 1099px) {
  body.customer-community-page .community-profile-studio {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  body.customer-community-page .community-studio-heading {
    grid-column: 1 / -1;
  }

  body.customer-community-page .community-profile-steps {
    position: sticky;
    top: 70px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(8, minmax(145px, 1fr));
    max-height: none;
    overflow-x: auto;
  }

  body.customer-community-page .community-profile-form {
    grid-column: 1;
  }

  body.customer-community-page .community-studio-preview {
    grid-column: 2;
  }

  body.customer-community-page .community-profile-steps a:hover {
    transform: none;
  }
}

@media (max-width: 819px) {
  body.customer-community-page .rewards-main,
  body.customer-community-page .rewards-footer {
    width: min(100% - 20px, 1320px);
  }

  body.customer-community-page .community-profile-studio {
    display: block;
    padding: 12px;
    border-radius: 24px;
  }

  body.customer-community-page .community-studio-heading {
    display: block;
    padding: 22px;
  }

  body.customer-community-page .community-studio-heading h2 {
    font-size: clamp(2.45rem, 13vw, 4.2rem);
  }

  body.customer-community-page .community-completion {
    margin-top: 18px;
  }

  .community-studio-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 12px 0;
    padding: 5px;
    border: 1px solid var(--profile-line);
    border-radius: 15px;
    background: rgba(8, 10, 17, .78);
  }

  .community-studio-mode button {
    min-height: 44px;
    color: var(--profile-muted);
    border: 0;
    border-radius: 11px;
    background: transparent;
  }

  .community-studio-mode button.is-active {
    color: #070810;
    background: linear-gradient(120deg, #f47ce9, #24d9ef);
  }

  body.customer-community-page .community-profile-steps {
    position: sticky;
    top: 64px;
    display: flex;
    margin: 0 0 12px;
    padding: 7px;
    border-radius: 17px;
  }

  body.customer-community-page .community-profile-steps a {
    flex: 0 0 56px;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 52px;
    padding: 5px;
  }

  body.customer-community-page .community-profile-steps a > span:not(.material-symbols-outlined) {
    display: none !important;
  }

  body.customer-community-page .community-profile-steps a > .material-symbols-outlined {
    width: 42px;
    height: 42px;
    margin: auto;
  }

  body.customer-community-page .community-profile-form,
  body.customer-community-page .community-studio-preview {
    width: 100%;
  }

  body.customer-community-page .community-studio-preview {
    position: static;
    display: none;
    margin-top: 12px;
  }

  body.customer-community-page .community-profile-studio[data-studio-mode-active="preview"] .community-profile-form,
  body.customer-community-page .community-profile-studio[data-studio-mode-active="preview"] .community-profile-steps {
    display: none;
  }

  body.customer-community-page .community-profile-studio[data-studio-mode-active="preview"] .community-studio-preview {
    display: grid;
  }

  body.customer-community-page .community-profile-actions {
    position: static;
  }

  body.customer-community-page .community-public-profile {
    padding: 8px;
    border-radius: 22px;
  }

  body.customer-community-page .community-public-hero {
    min-height: 540px;
    border-radius: 22px;
  }

  body.customer-community-page .community-public-identity {
    display: block;
    right: 22px;
    bottom: 24px;
    left: 22px;
  }

  body.customer-community-page .community-public-avatar {
    width: 104px;
    height: 104px;
    margin-bottom: 18px;
    border-radius: 28px;
  }

  body.customer-community-page .community-public-identity h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  body.customer-community-page .community-public-grid {
    grid-template-columns: 1fr;
  }

  body.customer-community-page .community-public-section-nav {
    top: 66px;
    width: 100%;
    border-radius: 17px;
  }

  body.customer-community-page .community-public-favorites > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  body.customer-community-page .community-public-favorites a:first-child,
  body.customer-community-page .community-public-favorites a:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 559px) {
  body.customer-community-page .community-editor-card {
    padding: 18px;
    border-radius: 19px;
  }

  .community-studio-welcome {
    min-height: 480px;
  }

  .community-studio-welcome h3 {
    font-size: 2.65rem;
  }

  body.customer-community-page .community-public-favorites > div {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  body.customer-community-page .community-public-favorites a {
    flex: 0 0 82%;
    min-height: 330px;
    scroll-snap-align: center;
  }

  body.customer-community-page .community-public-card {
    padding: 20px;
    border-radius: 19px;
  }

  body.customer-community-page .community-public-vip-badge {
    top: 14px;
    right: 14px;
  }
}

@media (pointer: coarse) {
  body.customer-community-page :is(
    .community-profile-steps a,
    .community-public-section-nav button,
    .community-studio-next-steps button
  ) {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.customer-community-page *,
  body.customer-community-page *::before,
  body.customer-community-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Profile Atelier redesign */
body.customer-community-page .community-profile-studio {
  grid-template-columns: minmax(210px, 230px) minmax(480px, 1fr) minmax(300px, 360px);
  gap: clamp(16px, 1.6vw, 28px);
  align-items: start;
  padding: clamp(18px, 2.4vw, 36px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    radial-gradient(circle at 18% 14%, rgba(244, 124, 233, .1), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(36, 217, 239, .08), transparent 28%),
    #05070d;
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
}

body.customer-community-page .community-studio-heading {
  display: contents;
}

body.customer-community-page .community-studio-heading > div:first-child {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  padding: 0 0 clamp(10px, 1.4vw, 18px);
  border: 0;
  background: transparent;
}

body.customer-community-page .community-studio-heading h2 {
  max-width: 1080px;
  margin: 8px 0 0;
  color: #f7f4ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.35rem, 6.9vw, 6.9rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: 0;
}

body.customer-community-page .community-studio-heading > div:first-child > p,
body.customer-community-page .community-studio-heading > div:first-child > small {
  display: none;
}

body.customer-community-page .community-completion {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 22px 18px;
  border-color: rgba(244, 124, 233, .2);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(244, 124, 233, .13), rgba(36, 217, 239, .07)),
    rgba(18, 19, 29, .92);
}

body.customer-community-page .community-completion-ring {
  grid-column: 2;
  width: auto;
  height: auto;
  display: block;
  color: #fff;
  font-family: inherit;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

body.customer-community-page .community-completion > div:last-child {
  display: contents;
}

body.customer-community-page .community-completion > div:last-child strong {
  grid-column: 1;
  grid-row: 1;
  display: block;
  margin: 0;
  color: #fff;
  font-size: .95rem;
}

body.customer-community-page .community-completion > div:last-child::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  width: 100%;
  height: 6px;
  margin: 0 0 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--rewards-pink), var(--rewards-cyan) var(--completion-percent, 0%), rgba(255, 255, 255, .1) var(--completion-percent, 0%)),
    rgba(255, 255, 255, .1);
}

body.customer-community-page .community-completion small {
  grid-column: 1 / -1;
  grid-row: 3;
  display: block;
  color: #bfc0cb;
  font-size: .88rem;
  line-height: 1.55;
}

body.customer-community-page .community-profile-steps {
  grid-column: 1;
  grid-row: 3;
  top: 24px;
  max-height: calc(100vh - 42px);
  padding: 12px;
  border-radius: 18px;
  background: rgba(9, 11, 19, .9);
}

body.customer-community-page .community-profile-steps a {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  min-height: 54px;
  padding: 9px 10px;
  border-radius: 13px;
}

body.customer-community-page .community-profile-steps a > .material-symbols-outlined {
  width: 32px;
  height: 32px;
  font-size: 1.05rem;
  color: #d8d8e6;
  border-color: transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, .065);
}

body.customer-community-page .community-profile-steps a.is-active > .material-symbols-outlined,
body.customer-community-page .community-profile-steps a[aria-current="page"] > .material-symbols-outlined {
  color: #fff;
  background: linear-gradient(135deg, rgba(244, 124, 233, .34), rgba(36, 217, 239, .16));
}

body.customer-community-page .community-profile-steps a strong {
  font-size: .94rem;
}

body.customer-community-page .community-profile-form {
  grid-column: 2;
  grid-row: 2 / span 2;
}

body.customer-community-page .community-editor-card {
  min-height: min(760px, calc(100vh - 178px));
  padding: clamp(24px, 2.6vw, 36px);
  border-color: rgba(255, 255, 255, .13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 217, 239, .07), transparent 32%),
    rgba(12, 15, 24, .9);
}

body.customer-community-page .community-section-lead,
body.customer-community-page .community-editor-title {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(24px, 3vw, 38px);
}

body.customer-community-page .community-section-lead h3,
body.customer-community-page .community-editor-title strong {
  display: block;
  margin: 7px 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

body.customer-community-page .community-section-lead p,
body.customer-community-page .community-editor-title small {
  max-width: 650px;
  color: #b6b7c5;
  font-size: 1.02rem;
  line-height: 1.55;
}

body.customer-community-page .community-help-button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
}

body.customer-community-page .community-editor-card--media .community-banner-preview,
body.customer-community-page .community-avatar-editor {
  min-height: 190px;
  overflow: hidden;
  border-radius: 18px;
  border-color: rgba(244, 124, 233, .24);
  background:
    linear-gradient(180deg, transparent 32%, rgba(3, 5, 10, .82)),
    radial-gradient(circle at 76% 12%, rgba(36, 217, 239, .16), transparent 36%),
    rgba(255, 255, 255, .04);
}

body.customer-community-page .community-editor-card--media .community-banner-preview {
  margin-bottom: 14px;
}

body.customer-community-page .community-media-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

body.customer-community-page .community-media-control {
  align-content: start;
  min-height: 150px;
  padding: 18px;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .035);
}

body.customer-community-page .community-media-control--background {
  grid-column: 1 / -1;
}

body.customer-community-page .community-profile-actions {
  align-items: center;
  margin-top: 0;
  padding: 12px;
  border-color: rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: rgba(8, 10, 17, .78);
}


body.customer-community-page .community-profile-actions .community-save-button {
  margin-left: auto;
  min-width: min(100%, 240px);
  border-radius: 14px;
}

body.customer-community-page .community-unsaved-notice {
  margin-top: 0;
  border-color: rgba(255, 193, 97, .48);
  background:
    radial-gradient(circle at 26px 22px, rgba(255, 193, 97, .3), transparent 48px),
    linear-gradient(135deg, rgba(74, 37, 10, .9), rgba(20, 12, 22, .92));
}

body.customer-community-page .community-studio-preview {
  grid-column: 3;
  grid-row: 2 / span 2;
  top: 24px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(10, 13, 22, .9);
}

body.customer-community-page .community-studio-preview-canvas {
  min-height: 580px;
  padding: 10px;
  border-radius: 18px;
}

body.customer-community-page .community-studio-preview-card {
  min-height: 520px;
  border-radius: 17px;
}

body.customer-community-page .community-studio-preview-identity {
  grid-template-columns: 80px minmax(0, 1fr);
}

body.customer-community-page .community-studio-preview-identity > :first-child {
  width: 80px;
  height: 80px;
}

body.customer-community-page .community-studio-preview-identity strong {
  font-size: 1.9rem;
}

body.customer-community-page .community-studio-preview-mini {
  display: none;
}

@media (max-width: 1180px) {
  body.customer-community-page .community-profile-studio {
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  }

  body.customer-community-page .community-studio-preview {
    grid-column: 2;
    grid-row: 4;
    position: relative;
    top: auto;
  }

  body.customer-community-page .community-studio-preview-canvas {
    min-height: 420px;
  }

  body.customer-community-page .community-studio-preview-card {
    min-height: 370px;
  }
}

@media (max-width: 900px) {
  body.customer-community-page .community-profile-studio {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.customer-community-page .community-studio-heading > div:first-child,
  body.customer-community-page .community-completion,
  body.customer-community-page .community-profile-steps,
  body.customer-community-page .community-profile-form,
  body.customer-community-page .community-studio-preview {
    grid-column: 1;
    grid-row: auto;
  }

  body.customer-community-page .community-studio-heading h2 {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }

  body.customer-community-page .community-profile-steps {
    position: relative;
    top: auto;
    display: flex;
    gap: 10px;
    overflow-x: auto;
  }

  body.customer-community-page .community-profile-steps a {
    flex: 0 0 210px;
  }

  body.customer-community-page .community-editor-card {
    min-height: auto;
  }

  body.customer-community-page .community-media-actions {
    grid-template-columns: 1fr;
  }
}

/* Compact studio controls */
body.customer-community-page .community-profile-studio {
  width: min(100%, var(--customer-workspace-panel-width, 1500px));
  min-height: var(--customer-workspace-panel-min-height, clamp(340px, 42vh, 620px));
  margin-inline: auto;
  padding: var(--customer-workspace-panel-padding, clamp(22px, 3vw, 36px));
  border-radius: var(--customer-workspace-panel-radius, 26px);
  grid-template-columns: minmax(220px, 240px) minmax(0, 1fr) minmax(290px, 330px);
  gap: clamp(16px, 1.55vw, 28px);
}

/* Keep progress and navigation in one stable column while editor panels change height. */
body.customer-community-page .community-studio-sidebar {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 24px;
  z-index: 3;
  display: grid;
  align-self: start;
  gap: 14px;
}

body.customer-community-page .community-studio-sidebar .community-completion {
  grid-column: auto;
  grid-row: auto;
}

body.customer-community-page .community-profile-steps {
  grid-column: auto;
  grid-row: auto;
  position: static;
  top: auto;
  align-self: start;
  max-height: none;
  overflow: visible;
}

body.customer-community-page .community-editor-card {
  min-height: min(720px, calc(100vh - 178px));
}

body.customer-community-page .community-studio-preview-canvas {
  min-height: 520px;
}

body.customer-community-page .community-studio-preview-card {
  min-height: 460px;
}

body.customer-community-page .community-studio-preview-identity {
  grid-template-columns: 68px minmax(0, 1fr);
}

body.customer-community-page .community-studio-preview-identity > :first-child {
  width: 68px;
  height: 68px;
}

body.customer-community-page .community-studio-preview-identity strong {
  font-size: 1.55rem;
}

body.customer-community-page .community-editor-card--privacy {
  min-height: auto;
}

body.customer-community-page .community-editor-card--privacy .community-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

body.customer-community-page .community-privacy-choices {
  min-width: 0;
  padding: 0;
  border: 0;
}

body.customer-community-page .community-privacy-choices legend {
  margin: 0 0 10px;
  color: var(--rewards-cyan);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.customer-community-page .community-privacy-choices > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.customer-community-page .community-privacy-choices label {
  position: relative;
  display: inline-grid;
  grid-template-columns: 32px max-content;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 16px 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  white-space: nowrap;
}

body.customer-community-page .community-privacy-choices label:has(input:checked) {
  border-color: rgba(36, 217, 239, .45);
  background:
    linear-gradient(135deg, rgba(244, 124, 233, .17), rgba(36, 217, 239, .12)),
    rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 16px 34px rgba(0, 0, 0, .18);
}

body.customer-community-page .community-privacy-choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.customer-community-page .community-privacy-choices .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 1.02rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

body.customer-community-page .community-privacy-choices strong {
  color: #fff;
  font-size: .9rem;
  line-height: 1;
  white-space: nowrap;
}

body.customer-community-page .community-privacy-choices small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.customer-community-page .community-toggle--featured {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
}

body.customer-community-page .community-toggle--featured > .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 12px;
  background: rgba(244, 124, 233, .14);
}

body.customer-community-page .community-toggle--featured span strong {
  display: block;
  color: #fff;
  font-size: .94rem;
  line-height: 1.2;
}

body.customer-community-page .community-toggle--featured span small {
  display: block;
  max-width: 100%;
  color: #b5b7c6;
  font-size: .77rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.customer-community-page .community-toggle--featured input {
  position: absolute;
  opacity: 0;
}

body.customer-community-page .community-toggle--featured i {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

body.customer-community-page .community-toggle--featured i::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

body.customer-community-page .community-toggle--featured:has(input:checked) {
  border-color: rgba(36, 217, 239, .42);
  background:
    linear-gradient(135deg, rgba(244, 124, 233, .14), rgba(36, 217, 239, .1)),
    rgba(255, 255, 255, .045);
}

body.customer-community-page .community-toggle--featured:has(input:checked) i {
  background: linear-gradient(90deg, var(--rewards-pink), var(--rewards-cyan));
}

body.customer-community-page .community-toggle--featured:has(input:checked) i::after {
  transform: translateX(22px);
}

body.customer-community-page .community-visibility-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}

body.customer-community-page .community-visibility-heading strong {
  color: #fff;
  font-size: .88rem;
}

body.customer-community-page .community-visibility-heading small,
body.customer-community-page .community-visibility-heading > span {
  color: #aeb0c0;
  font-size: .72rem;
  line-height: 1.3;
}

body.customer-community-page .community-visibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

body.customer-community-page .community-visibility-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

body.customer-community-page .community-visibility-copy strong {
  color: #fff;
  font-size: .86rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.customer-community-page .community-visibility-copy small {
  display: none;
}

body.customer-community-page .community-visibility-state {
  min-width: 74px;
  text-align: right;
}

body.customer-community-page .community-visibility-state b,
body.customer-community-page .community-visibility-state i {
  display: block;
  font-size: .62rem;
  line-height: 1.15;
}

body.customer-community-page .community-visibility-item em {
  width: 36px;
  height: 22px;
}

@media (max-width: 1180px) {
  body.customer-community-page .community-profile-studio {
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  }

  body.customer-community-page .community-profile-steps {
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  body.customer-community-page .community-studio-sidebar {
    grid-column: 1;
    grid-row: auto;
    position: relative;
    top: auto;
  }

  body.customer-community-page .community-editor-card--privacy .community-form-grid,
  body.customer-community-page .community-visibility-grid {
    grid-template-columns: 1fr;
  }

  body.customer-community-page .community-profile-steps {
    position: relative;
    top: auto;
    max-height: none;
    overflow-x: auto;
  }

  body.customer-community-page .community-privacy-choices > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.customer-community-page .community-privacy-choices label {
    width: 100%;
    grid-template-columns: 32px minmax(0, 1fr);
  }

  body.customer-community-page .community-studio-preview-canvas,
  body.customer-community-page .community-studio-preview-card {
    min-height: 360px;
  }
}

/* Final profile studio polish: compact controls without broken text columns. */
body.customer-community-page .community-studio-heading h2 {
  font-size: clamp(3.6rem, 7vw, 6.4rem);
  line-height: .88;
}

body.customer-community-page .community-theme-editor {
  min-height: auto;
}

body.customer-community-page .community-theme-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px;
}

body.customer-community-page .community-theme-presets span {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 999px;
}

body.customer-community-page .community-theme-presets i {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
}

body.customer-community-page .community-theme-presets strong,
body.customer-community-page .community-theme-presets small {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.customer-community-page .community-theme-colors {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.customer-community-page .community-layout-picker > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.customer-community-page .community-layout-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 66px;
  padding: 11px 14px;
  border-radius: 18px;
}

body.customer-community-page .community-layout-card > i {
  grid-row: 1 / span 2;
  width: 48px;
  height: 44px;
}

body.customer-community-page .community-layout-card strong,
body.customer-community-page .community-layout-card small {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.customer-community-page .community-layout-card b {
  position: static;
  align-self: center;
  justify-self: end;
  white-space: nowrap;
}

body.customer-community-page .community-frame-picker {
  margin-top: 18px;
  padding: 0;
  border: 0;
}

body.customer-community-page .community-frame-picker legend {
  margin-bottom: 10px;
  color: var(--profile-cyan);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.customer-community-page .community-frame-picker > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}

body.customer-community-page .community-frame-picker label {
  min-width: 0;
  cursor: pointer;
}

body.customer-community-page .community-frame-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.customer-community-page .community-frame-picker span {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 2px 11px;
  align-items: center;
  min-height: 68px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

body.customer-community-page .community-frame-picker i {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: var(--profile-cyan);
  background: linear-gradient(135deg, rgba(244, 124, 233, .18), rgba(36, 217, 239, .11));
}

body.customer-community-page .community-frame-picker strong,
body.customer-community-page .community-frame-picker small {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.customer-community-page .community-frame-picker strong {
  color: #fff;
  font-size: .86rem;
}

body.customer-community-page .community-frame-picker small {
  color: #aeb4c2;
  font-size: .75rem;
}

body.customer-community-page .community-frame-picker input:checked + span {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--profile-glow) 58%, rgba(255, 255, 255, .12));
  background: color-mix(in srgb, var(--profile-glow) 10%, rgba(255, 255, 255, .035));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--profile-glow) 12%, transparent), 0 18px 40px rgba(0, 0, 0, .28);
}

body.customer-community-page .community-layout-card--velvet {
  --layout-radius: 24px;
  --layout-line: rgba(255, 125, 184, .55);
  --layout-glow: #ff7db8;
  --layout-preview: radial-gradient(circle at 30% 18%, rgba(255, 209, 232, .52), transparent 32%), linear-gradient(145deg, #24101d, #111521 72%);
  --layout-shadow: inset 0 0 28px rgba(255, 125, 184, .12);
}

body.customer-community-page .community-layout-card--crystal {
  --layout-radius: 18px;
  --layout-line: rgba(155, 232, 255, .55);
  --layout-glow: #9be8ff;
  --layout-preview: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(155, 232, 255, .08) 45%, rgba(255, 255, 255, .02));
  --layout-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 25px rgba(155, 232, 255, .08);
}

body.customer-community-page .community-layout-card--runway {
  --layout-radius: 2px 22px 2px 22px;
  --layout-line: rgba(211, 108, 255, .62);
  --layout-glow: #d36cff;
  --layout-preview: linear-gradient(120deg, #05060d 0 43%, #d36cff 43% 46%, #1b1028 46% 100%);
  --layout-shadow: 10px 0 0 rgba(87, 217, 255, .13);
}

body.customer-community-page .rewards-dashboard[data-profile-layout="velvet"] .rewards-hero,
body.customer-community-page .community-public-profile[data-profile-layout="velvet"] .community-public-hero,
body.customer-community-page .community-public-profile[data-profile-layout="velvet"] .community-public-card {
  border-radius: 28px;
}

body.customer-community-page .community-public-profile[data-profile-layout="velvet"] .community-public-card {
  border-color: color-mix(in srgb, var(--profile-accent) 34%, rgba(255, 255, 255, .1));
  background: color-mix(in srgb, var(--profile-surface) 82%, transparent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
}

body.customer-community-page .rewards-dashboard[data-profile-layout="crystal"] .rewards-hero,
body.customer-community-page .community-public-profile[data-profile-layout="crystal"] .community-public-hero,
body.customer-community-page .community-public-profile[data-profile-layout="crystal"] .community-public-card {
  border-radius: 22px;
}

body.customer-community-page .community-public-profile[data-profile-layout="crystal"] .community-public-card,
body.customer-community-page .community-public-profile[data-profile-layout="crystal"] .community-social-bar {
  border-color: color-mix(in srgb, var(--profile-glow) 30%, rgba(255, 255, 255, .12));
  background: color-mix(in srgb, var(--profile-surface) 64%, transparent);
  backdrop-filter: blur(24px) saturate(1.15);
}

body.customer-community-page .rewards-dashboard[data-profile-layout="runway"] .rewards-hero,
body.customer-community-page .community-public-profile[data-profile-layout="runway"] .community-public-hero,
body.customer-community-page .community-public-profile[data-profile-layout="runway"] .community-public-card {
  border-radius: 4px 28px 4px 28px;
}

body.customer-community-page .community-public-profile[data-profile-layout="runway"] .community-public-hero {
  box-shadow: 14px 14px 0 color-mix(in srgb, var(--profile-accent) 10%, transparent), 0 0 46px color-mix(in srgb, var(--profile-glow) 12%, transparent);
}

body.customer-community-page .community-public-profile[data-profile-layout="runway"] .community-public-card {
  border-color: color-mix(in srgb, var(--profile-accent) 42%, transparent);
  background: color-mix(in srgb, var(--profile-surface) 86%, transparent);
}

body.customer-community-page .community-public-profile[data-profile-layout="runway"] .community-public-identity h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.07em;
}

body.customer-community-page :is(
  .community-public-profile[data-selected-frame="soft-glow"] .community-public-hero,
  .rewards-dashboard[data-selected-frame="soft-glow"] .rewards-hero,
  .community-studio-preview-canvas[data-selected-frame="soft-glow"] .community-studio-preview-card
) {
  border-color: color-mix(in srgb, var(--profile-accent) 42%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--profile-accent) 24%, transparent), 0 0 54px color-mix(in srgb, var(--profile-accent) 20%, transparent), 0 24px 80px rgba(0, 0, 0, .42);
}

body.customer-community-page :is(
  .community-public-profile[data-selected-frame="neon-line"] .community-public-hero,
  .rewards-dashboard[data-selected-frame="neon-line"] .rewards-hero,
  .community-studio-preview-canvas[data-selected-frame="neon-line"] .community-studio-preview-card
) {
  border: 2px solid color-mix(in srgb, var(--profile-glow) 68%, var(--profile-accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 34px color-mix(in srgb, var(--profile-glow) 24%, transparent);
}

body.customer-community-page :is(
  .community-public-profile[data-selected-frame="editorial-border"] .community-public-hero,
  .rewards-dashboard[data-selected-frame="editorial-border"] .rewards-hero,
  .community-studio-preview-canvas[data-selected-frame="editorial-border"] .community-studio-preview-card
) {
  border: 1px solid color-mix(in srgb, var(--profile-accent) 34%, #fff);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .035), 0 20px 70px rgba(0, 0, 0, .42);
}

body.customer-community-page :is(
  .community-public-profile[data-selected-frame="luxe-corners"] .community-public-hero,
  .rewards-dashboard[data-selected-frame="luxe-corners"] .rewards-hero,
  .community-studio-preview-canvas[data-selected-frame="luxe-corners"] .community-studio-preview-card
) {
  border-color: color-mix(in srgb, var(--profile-accent) 48%, #f3c378);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #f3c378 35%, transparent), 0 0 42px color-mix(in srgb, var(--profile-accent) 18%, transparent), 0 24px 80px rgba(0, 0, 0, .42);
}

body.customer-community-page .community-public-profile[data-selected-frame="luxe-corners"] .community-public-hero::before,
body.customer-community-page .community-studio-preview-canvas[data-selected-frame="luxe-corners"] .community-studio-preview-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 16px;
  pointer-events: none;
  background:
    linear-gradient(90deg, #f3c378 0 44px, transparent 44px calc(100% - 44px), #f3c378 calc(100% - 44px)) top / 100% 2px no-repeat,
    linear-gradient(90deg, #f3c378 0 44px, transparent 44px calc(100% - 44px), #f3c378 calc(100% - 44px)) bottom / 100% 2px no-repeat,
    linear-gradient(#f3c378 0 44px, transparent 44px calc(100% - 44px), #f3c378 calc(100% - 44px)) left / 2px 100% no-repeat,
    linear-gradient(#f3c378 0 44px, transparent 44px calc(100% - 44px), #f3c378 calc(100% - 44px)) right / 2px 100% no-repeat;
  opacity: .7;
}

body.customer-community-page :is(
  .community-form-grid input,
  .community-form-grid textarea,
  .community-cloud-fields input,
  .community-model-connect input,
  .community-model-connect select
)::placeholder {
  color: rgba(223, 226, 236, .62);
  opacity: 1;
}

body.customer-community-page :is(
  .community-form-grid input,
  .community-form-grid textarea,
  .community-cloud-fields input,
  .community-model-connect input,
  .community-model-connect select
):-webkit-autofill,
body.customer-community-page :is(
  .community-form-grid input,
  .community-form-grid textarea,
  .community-cloud-fields input,
  .community-model-connect input,
  .community-model-connect select
):-webkit-autofill:hover,
body.customer-community-page :is(
  .community-form-grid input,
  .community-form-grid textarea,
  .community-cloud-fields input,
  .community-model-connect input,
  .community-model-connect select
):-webkit-autofill:focus {
  -webkit-text-fill-color: var(--profile-text);
  caret-color: var(--profile-text);
  box-shadow: 0 0 0 1000px rgba(5, 7, 12, .94) inset;
  border-color: rgba(36, 217, 239, .28);
  transition: background-color 9999s ease-out;
}

@media (max-width: 900px) {
  body.customer-community-page .community-studio-heading h2 {
    font-size: clamp(2.9rem, 14vw, 4.6rem);
  }

  body.customer-community-page .community-theme-presets,
  body.customer-community-page .community-theme-colors,
  body.customer-community-page .community-frame-picker > div {
    grid-template-columns: 1fr;
  }

  body.customer-community-page .community-layout-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  body.customer-community-page .community-layout-card b {
    justify-self: start;
  }
}

/* Final mobile guard: keep the profile studio inside the viewport even when the
   logged-in dashboard is unlocked only for automated layout checks. */
@media (max-width: 900px) {
  body.customer-community-page .community-profile-studio {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, calc(100vw - 18px));
    max-width: calc(100vw - 18px);
    padding: 14px;
    overflow: hidden;
  }

  body.customer-community-page .community-studio-heading > div:first-child,
  body.customer-community-page .community-completion,
  body.customer-community-page .community-profile-steps,
  body.customer-community-page .community-profile-form,
  body.customer-community-page .community-studio-preview {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    max-width: 100%;
  }

  body.customer-community-page .community-profile-steps {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    overflow: visible;
  }

  body.customer-community-page .community-profile-steps a {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: none;
  }
}
/* Profile Composition System · 2026-09 */
.community-module-builder {
  --module-border: rgba(255, 255, 255, .1);
}

.community-module-system-badge,
.community-module-builder-note {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-module-system-badge {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(244, 124, 233, .24);
  border-radius: 999px;
  color: #ffd8fb;
  background: rgba(244, 124, 233, .08);
  font-size: .76rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.community-module-system-badge i { font-size: 17px; }

.community-module-builder-note {
  margin: 20px 0;
  padding: 15px 17px;
  border: 1px solid rgba(95, 218, 205, .18);
  border-radius: 16px;
  color: rgba(255, 255, 255, .72);
  background: rgba(95, 218, 205, .055);
}

.community-module-builder-note > span { color: #76e5d7; }
.community-module-builder-note p { margin: 0; font-size: .88rem; line-height: 1.55; }
.community-module-builder-note strong { color: #fff; }

.community-module-builder-list { display: grid; gap: 10px; }

.community-module-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 12px 14px 12px 8px;
  border: 1px solid var(--module-border);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  transition: border-color .2s ease, opacity .2s ease, transform .2s ease;
}

.community-module-row:hover { border-color: rgba(244, 124, 233, .28); }
.community-module-row.is-disabled { opacity: .5; }
.community-module-row.is-dragging { opacity: .35; transform: scale(.985); }
.community-module-drag,
.community-module-order-actions button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, .62);
  background: transparent;
}
.community-module-drag { cursor: grab; touch-action: none; }
.community-module-drag:active { cursor: grabbing; }
.community-module-drag:hover,
.community-module-order-actions button:hover:not(:disabled) { color: #fff; background: rgba(255, 255, 255, .07); }
.community-module-order-actions { display: flex; gap: 3px; }
.community-module-order-actions button { width: 32px; height: 32px; }
.community-module-order-actions button:disabled { opacity: .22; }
.community-module-icon { color: var(--profile-accent, #f47ce9); font-size: 25px; }
.community-module-copy { display: grid; gap: 4px; }
.community-module-copy strong { color: #fff; font-size: .94rem; }
.community-module-copy small { color: rgba(255, 255, 255, .56); line-height: 1.4; }
.community-module-toggle { position: relative; width: 42px; height: 24px; }
.community-module-toggle input { position: absolute; opacity: 0; }
.community-module-toggle i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); transition: .2s ease; }
.community-module-toggle i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.community-module-toggle input:checked + i { background: linear-gradient(100deg, var(--profile-accent, #f47ce9), var(--profile-glow, #24d9ef)); }
.community-module-toggle input:checked + i::after { transform: translateX(18px); }
.community-module-toggle input:focus-visible + i { outline: 3px solid rgba(36, 217, 239, .45); outline-offset: 3px; }

.community-studio-preview-mini { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px !important; }
.community-studio-preview-mini span { display: flex !important; align-items: center; gap: 6px; min-height: 34px !important; padding: 8px 9px; font-size: .62rem; color: rgba(255, 255, 255, .64); }
.community-studio-preview-mini i { font-size: 14px; color: var(--profile-accent); }

.community-public-profile {
  --profile-space-1: 8px;
  --profile-space-2: 16px;
  --profile-space-3: 24px;
  --profile-space-4: 40px;
  --profile-space-5: 72px;
  --profile-radius: 24px;
  --profile-line: rgba(255, 255, 255, .095);
  --profile-muted: rgba(255, 255, 255, .64);
  --profile-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
}

.community-public-profile > *,
.community-profile-composition,
.community-profile-composition > * { min-width: 0; max-width: 100%; }

.community-public-profile::before { opacity: .26; filter: saturate(.8) brightness(.52); }
.community-public-profile .community-back-link { max-width: 1240px; margin-inline: auto; }

.community-public-hero {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 72vh, 760px);
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid var(--profile-line);
  border-radius: 32px;
  overflow: hidden;
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow);
}

.community-public-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.community-public-banner.is-placeholder { position: absolute; inset: 0; background: radial-gradient(circle at 76% 24%, color-mix(in srgb, var(--profile-glow) 30%, transparent), transparent 38%), linear-gradient(145deg, color-mix(in srgb, var(--profile-surface) 84%, #fff), #07090f); }
.community-public-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 6, 10, .05) 20%, rgba(4, 6, 10, .22) 48%, rgba(4, 6, 10, .92) 100%); }
.community-public-identity { position: absolute; z-index: 2; left: clamp(22px, 5vw, 72px); right: clamp(22px, 5vw, 72px); bottom: clamp(28px, 6vw, 70px); align-items: end; }
.community-public-identity h1 { max-width: 820px; margin: 9px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 7vw, 6.7rem); font-weight: 400; line-height: .92; letter-spacing: -.045em; text-wrap: balance; }
.community-public-identity > div > p { max-width: 660px; margin: 0; color: rgba(255, 255, 255, .82); font-size: clamp(1rem, 1.7vw, 1.3rem); line-height: 1.55; }
.community-public-avatar { flex: 0 0 auto; width: clamp(88px, 11vw, 138px); height: clamp(88px, 11vw, 138px); border: 3px solid rgba(255, 255, 255, .8); box-shadow: 0 14px 40px rgba(0, 0, 0, .4); }
.community-public-banner-title { z-index: 2; top: clamp(22px, 4vw, 48px); left: clamp(22px, 5vw, 72px); max-width: 520px; letter-spacing: .08em; }

.community-public-actions,
.community-public-section-nav,
.community-profile-composition,
.community-public-safety,
.community-preview-note { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
.community-public-actions { position: relative; z-index: 3; margin-top: 18px; }
.community-public-actions { flex-wrap: wrap; }
.community-public-section-nav { position: sticky; z-index: 20; top: 12px; justify-content: flex-start; margin-top: 18px; padding: 8px; border: 1px solid var(--profile-line); border-radius: 18px; overflow-x: auto; scrollbar-width: none; background: rgba(9, 11, 17, .82); box-shadow: 0 12px 36px rgba(0, 0, 0, .22); backdrop-filter: blur(18px); }
.community-public-section-nav::-webkit-scrollbar { display: none; }
.community-public-section-nav button { flex: 0 0 auto; border-radius: 12px; color: var(--profile-muted); white-space: nowrap; }
.community-public-section-nav button.is-active { color: #fff; background: color-mix(in srgb, var(--profile-accent) 18%, rgba(255, 255, 255, .05)); }
.community-profile-composition { display: grid; gap: var(--profile-space-4); padding: var(--profile-space-5) 0; }
.community-profile-module { scroll-margin-top: 105px; }

.community-profile-composition .community-public-card { margin: 0; border: 1px solid var(--profile-line); border-radius: var(--profile-radius); background: color-mix(in srgb, var(--profile-surface) 84%, transparent); box-shadow: var(--profile-shadow); backdrop-filter: blur(22px); }
.community-profile-composition h2 { margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 4vw, 3.4rem); font-weight: 400; line-height: 1; }

.community-public-favorites { padding: clamp(20px, 4vw, 48px); }
.community-public-favorites > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.community-public-favorites > header > span { color: var(--profile-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.community-public-favorites > div { display: grid; grid-template-columns: 1.45fr .85fr .85fr; grid-auto-rows: 230px; gap: 12px; }
.community-public-favorites a { position: relative; min-height: 0; border-radius: 16px; overflow: hidden; }
.community-public-favorites a:first-child { grid-row: span 2; }
.community-public-favorites img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.community-public-favorites a:hover img { transform: scale(1.025); filter: brightness(.8); }
.community-public-favorites a strong { z-index: 2; }

.community-public-dna { padding: clamp(24px, 5vw, 58px); }
.community-public-dna .community-public-tags { margin-top: 24px; }
.community-public-dna .community-public-tags + .community-public-tags { margin-top: 10px; }
.community-public-dna .community-public-tags span { padding: 10px 15px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--profile-accent) 24%, transparent); background: color-mix(in srgb, var(--profile-accent) 8%, transparent); }

.community-public-about { padding: clamp(28px, 6vw, 78px) !important; }
.community-public-about blockquote { max-width: 920px; margin: 22px 0 0; color: rgba(255, 255, 255, .92); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3.6vw, 3.3rem); line-height: 1.22; }
.community-public-about blockquote::before { content: "“"; color: var(--profile-accent); }

.community-public-achievement-strip { padding: clamp(22px, 4vw, 42px); }
.community-public-achievement-strip > div { display: flex; gap: 12px; margin-top: 24px; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; }
.community-public-achievement-strip .community-public-achievement { flex: 0 0 min(320px, 78vw); min-height: 112px; margin: 0; padding: 18px; border: 1px solid var(--profile-line); border-radius: 16px; background: rgba(255, 255, 255, .035); scroll-snap-align: start; }
.community-public-achievement-strip .community-public-rewards { flex: 1 0 100%; margin: 0; }
.community-public-journey .community-external-album { margin: 0; }
.community-public-community { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--profile-space-3); }
.community-public-community > :only-child,
.community-public-community > :nth-child(3) { grid-column: 1 / -1; }

@media (max-width: 760px) {
  body.customer-community-page .community-profile-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 6px;
  }
  body.customer-community-page .community-profile-steps a {
    flex: none;
    width: 100%;
    min-height: 58px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 7px 9px;
  }
  body.customer-community-page .community-profile-steps a > span:not(.material-symbols-outlined) { display: grid !important; }
  body.customer-community-page .community-profile-steps a > .material-symbols-outlined { width: 36px; height: 36px; margin: 0; }
  body.customer-community-page .community-profile-steps a strong { font-size: .76rem; }
  body.customer-community-page .community-profile-steps a small { font-size: .62rem; }
  .community-module-system-badge { display: none; }
  .community-module-row { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 9px; padding-right: 10px; }
  .community-module-order-actions { grid-column: 3; }
  .community-module-toggle { grid-column: 4; grid-row: 1 / span 2; }
  .community-module-copy small { display: none; }
  .community-public-profile { --profile-space-4: 24px; --profile-space-5: 38px; }
  .community-public-hero { min-height: min(680px, 78svh); border-radius: 24px; }
  .community-public-identity { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: end; left: 20px; right: 20px; bottom: 28px; }
  .community-public-avatar { width: 72px; height: 72px; }
  .community-public-identity h1 { font-size: clamp(2.5rem, 13vw, 4.1rem); }
  .community-public-identity > div > p { font-size: .95rem; }
  .community-public-section-nav { width: calc(100% - 20px); top: 8px; }
  .community-public-actions,
  .community-profile-composition,
  .community-public-safety,
  .community-preview-note { width: calc(100% - 24px); }
  .community-public-favorites > div { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .community-public-favorites a:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 300px; }
  .community-public-community { grid-template-columns: 1fr; }
  .community-public-community > * { grid-column: 1 !important; }
}

@media (max-width: 420px) {
  body.customer-community-page .community-profile-steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 430px) {
  .community-public-hero { min-height: 610px; }
  .community-public-identity { grid-template-columns: 1fr; }
  .community-public-avatar { margin-bottom: 10px; }
  .community-public-meta { gap: 6px; }
  .community-public-stats { display: none; }
  .community-public-favorites > div { grid-template-columns: 1fr; }
  .community-public-favorites a:first-child { grid-column: auto; min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .community-module-row,
  .community-module-toggle i,
  .community-module-toggle i::after,
  .community-public-favorites img { transition: none !important; }
}
