/* Profil public créateur — reproduction visuelle de zic_landing_page/lib/pages/zic_public_page.
   - Fond invariant : image artiste + gradient violet 0xFF8D22FF (Flutter web ~8586–8612).
   - Carte blanche centrale (face) : header icon + nom, stats Followers/Following, tabs Photos/Videos/Tous, zone "Coming soon".
   - Carousel horizontal des faces : chevrons + ListView, taille active 50 / inactive 25 (Flutter ~8728–8801).
   - Carte top-right : Follow pill + handle.zic.fi (LandingFacePublicActionCard).
*/

.zh-pp-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #1a0840 0%, #0f0722 45%, #0a0418 100%);
  position: relative;
}

.zh-pp-page body,
body.zh-public-profile-page {
  background: transparent;
  --zh-pp-nav-offset: 52px;
}

/* ─── Fond fullbleed ───────────────────────────────────────────── */

.zh-pp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.zh-pp-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05);
}

/* Gradient violet aligné sur Flutter (Color(0xFF8D22FF) avec opacities). */
.zh-pp-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(167, 139, 245, 0.18) 0%, transparent 55%),
    linear-gradient(180deg,
      rgba(141, 34, 255, 0.10) 0%,
      rgba(141, 34, 255, 0.10) 30%,
      rgba(141, 34, 255, 0.18) 55%,
      rgba(141, 34, 255, 0.55) 80%,
      rgba(141, 34, 255, 0.95) 100%);
}

/* ─── Layout principal ────────────────────────────────────────── */

.zh-pp-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 24px 16px 88px;
  min-height: calc(100dvh - var(--zh-pp-nav-offset));
  box-sizing: border-box;
}

/* ─── Stack carte + action card (reproduit Stack Flutter ~7274–7491) ── */

.zh-pp-card-stack {
  position: relative;
  width: min(850px, 92vw);
  margin: 68px auto 0;
}

/* ─── Carte action top-right (overlay sur la carte blanche) ───────── */

.zh-pp-action-card {
  position: absolute;
  top: -28px;
  right: 5px;
  width: auto;
  min-width: 0;
  max-width: 178px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(15, 7, 34, 0.22);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.zh-pp-handle {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: #6D28D9;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.zh-pp-handle:hover { color: #4C1D95; }

/* ─── Carte blanche centrale ──────────────────────────────────── */

.zh-pp-card {
  width: 100%;
  /* Hauteur cible : la carte occupe l'espace disponible entre le nav (haut)
     et la face strip + tagline + footer fixe (bas). On utilise une plage
     clamp(min, ideal, max) pour s'adapter à tous les viewports tout en
     évitant qu'elle soit trop courte (< 500) ou disproportionnée (> 820). */
  min-height: clamp(500px, calc(100dvh - 260px), 820px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(15, 7, 34, 0.22);
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Face Shop : la carte garde une hauteur stable, et le contenu interne défile.
   Cela évite que la face grandisse quand la fiche produit est longue. */
.zh-pp-card.zh-pp-card--shop-active {
  height: clamp(500px, calc(100dvh - 260px), 820px);
  max-height: clamp(500px, calc(100dvh - 260px), 820px);
  overflow: hidden;
}

/* Face Airdrop : même contrainte que Shop. La face reste à hauteur fixe
   (selector + détail peuvent être longs) et le wrap interne défile. */
.zh-pp-card.zh-pp-card--airdrop-active {
  height: clamp(500px, calc(100dvh - 260px), 820px);
  max-height: clamp(500px, calc(100dvh - 260px), 820px);
  overflow: hidden;
}

@keyframes zh-pp-card-pulse {
  0%   { box-shadow: 0 10px 36px rgba(15, 7, 34, 0.22), 0 0 0 0 rgba(167, 139, 245, 0.55); }
  60%  { box-shadow: 0 10px 36px rgba(15, 7, 34, 0.22), 0 0 0 12px rgba(167, 139, 245, 0); }
  100% { box-shadow: 0 10px 36px rgba(15, 7, 34, 0.22), 0 0 0 0 rgba(167, 139, 245, 0); }
}

.zh-pp-card.is-pulsing {
  animation: zh-pp-card-pulse 0.55s ease-out 1;
}

.zh-pp-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 0;
}

.zh-pp-card-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zh-pp-card-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.zh-pp-card-name {
  font-family: 'gotham', "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: #111;
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.005em;
}

/* Stats Followers / Following */
.zh-pp-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 4px 0 2px;
}

.zh-pp-stat {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s ease;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #444;
}

.zh-pp-stat:hover { background: rgba(167, 139, 245, 0.12); }

.zh-pp-stat strong {
  font-weight: 700;
  color: #111;
  font-size: 15px;
}

/* Pill de tabs Photos / Videos / Tous */
.zh-pp-tabs {
  display: inline-flex;
  align-self: center;
  gap: 2px;
  background: #ececec;
  padding: 4px;
  border-radius: 30px;
}

.zh-pp-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.zh-pp-tab svg { color: currentColor; }

.zh-pp-tab.is-active,
.zh-pp-tab[aria-selected="true"] {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Zone "Coming soon" (remplace le carousel media Flutter) */
.zh-pp-card-body {
  flex: 1 1 auto; /* occupe le reste de la carte (alignement Flutter card 585px) */
  border-radius: 14px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(167, 139, 245, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #fafafa 0%, #f3f0fb 100%);
  border: 1px dashed rgba(167, 139, 245, 0.45);
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  min-height: 380px;
}

/* Enveloppe corps carte : Fan Zone (carrousel) OU Coming soon */
.zh-pp-card-body-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.zh-pp-card.zh-pp-card--shop-active .zh-pp-card-body-wrap,
.zh-pp-card.zh-pp-card--airdrop-active .zh-pp-card-body-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(141, 34, 255, 0.35) transparent;
}

.zh-pp-card.zh-pp-card--shop-active .zh-pp-card-body-wrap::-webkit-scrollbar,
.zh-pp-card.zh-pp-card--airdrop-active .zh-pp-card-body-wrap::-webkit-scrollbar {
  width: 10px;
}

.zh-pp-card.zh-pp-card--shop-active .zh-pp-card-body-wrap::-webkit-scrollbar-thumb,
.zh-pp-card.zh-pp-card--airdrop-active .zh-pp-card-body-wrap::-webkit-scrollbar-thumb {
  background: rgba(141, 34, 255, 0.35);
  border-radius: 999px;
  border: 2px solid #fff;
}

.zh-pp-card.zh-pp-card--shop-active .zh-pp-card-body-wrap::-webkit-scrollbar-thumb:hover,
.zh-pp-card.zh-pp-card--airdrop-active .zh-pp-card-body-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(141, 34, 255, 0.55);
}

.zh-pp-card.zh-pp-card--shop-active .zh-pp-card-body-wrap::-webkit-scrollbar-track,
.zh-pp-card.zh-pp-card--airdrop-active .zh-pp-card-body-wrap::-webkit-scrollbar-track {
  background: transparent;
}

/*
 * Carrousel Fan Zone : fond noir = zone vidéo (viewport). Il ne doit apparaître que lorsque
 * la face sélectionnée est en mode carrousel médias — Fan Zone ou face `social`
 * (classe `zh-pp-card--carousel-active` sur la carte).
 * Sinon on le masque en dur : évite le « bandeau noir » au-dessus du Coming soon (flex + [hidden]).
 */
.zh-pp-card:not(.zh-pp-card--carousel-active) .zh-pp-fanzone {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  flex: 0 0 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* Fan Zone / Shop / Airdrop : masquer totalement le bloc « Coming soon »
 * (évite tout reste visuel avec flex / UA).
 */
.zh-pp-card.zh-pp-card--carousel-active .zh-pp-coming-zone,
.zh-pp-card.zh-pp-card--shop-active .zh-pp-coming-zone,
.zh-pp-card.zh-pp-card--airdrop-active .zh-pp-coming-zone {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  pointer-events: none !important;
}

/* Face Shop / Airdrop : masquer aussi les blocs propres aux faces media/social. */
.zh-pp-card.zh-pp-card--shop-active .zh-pp-stats,
.zh-pp-card.zh-pp-card--shop-active .zh-pp-tabs,
.zh-pp-card.zh-pp-card--airdrop-active .zh-pp-stats,
.zh-pp-card.zh-pp-card--airdrop-active .zh-pp-tabs {
  display: none !important;
}

/* Sécurité : le bloc shop ne doit jamais fuiter sur les autres faces. */
.zh-pp-card:not(.zh-pp-card--shop-active) .zh-shop-root {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  flex: 0 0 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

.zh-pp-fanzone {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 360px;
}

.zh-pp-fanzone--empty {
  min-height: 300px;
  justify-content: center;
}

/* Carrousel masqué (état vide) : évite le bandeau noir résiduel (flex / min-height). */
.zh-pp-carousel[hidden],
.zh-pp-fanzone--empty .zh-pp-carousel[hidden] {
  display: none !important;
  flex: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* État vide — carte légère (pas fond noir seul) */
.zh-pp-media-empty {
  margin: 0 auto;
  width: 100%;
  max-width: 440px;
  padding: 36px 28px 32px;
  text-align: center;
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(167, 139, 245, 0.22) 0%, transparent 55%),
    linear-gradient(165deg, #faf8ff 0%, #f4efff 42%, #ede9fe 100%);
  border: 1px solid rgba(109, 40, 217, 0.14);
  box-shadow:
    0 10px 40px rgba(91, 33, 182, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
}

.zh-pp-media-empty-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(237, 233, 254, 0.9) 100%);
  border: 1px solid rgba(109, 40, 217, 0.12);
  color: #7c3aed;
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.1);
}

.zh-pp-media-empty-title {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #1a0a3d;
  line-height: 1.25;
}

.zh-pp-media-empty-desc {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #5b5070;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

.zh-pp-carousel {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 6px;
  flex: 1;
  min-height: 300px;
}

.zh-pp-carousel-chev {
  flex-shrink: 0;
  align-self: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.06);
  color: #333;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  touch-action: manipulation;
}

.zh-pp-carousel-chev:hover:not(:disabled) {
  background: rgba(109, 40, 217, 0.12);
  color: #6d28d9;
}

.zh-pp-carousel-chev:disabled {
  opacity: 0.35;
  cursor: default;
}

.zh-pp-carousel-viewport {
  flex: 1;
  min-width: 0;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #0a0a0a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.zh-pp-carousel-track {
  display: flex;
  flex-direction: row;
  height: 100%;
  min-height: 280px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.zh-pp-carousel-track::-webkit-scrollbar {
  display: none;
}

.zh-pp-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.zh-pp-carousel-img {
  width: 100%;
  height: auto;
  max-height: min(420px, 52vh);
  object-fit: contain;
  vertical-align: middle;
}

.zh-pp-carousel-video {
  width: 100%;
  max-height: min(420px, 52vh);
  object-fit: contain;
  background: #000;
}

.zh-pp-carousel-embed {
  width: 100%;
  max-height: min(420px, 52vh);
  min-height: 220px;
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zh-pp-carousel-embed-frame {
  width: 100%;
  height: min(420px, 52vh);
  min-height: 220px;
  border: 0;
  background: #000;
}

.zh-pp-coming-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(167, 139, 245, 0.18);
  border: 1px solid rgba(167, 139, 245, 0.55);
  color: #7C3AED;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zh-pp-coming-title {
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #1f1140;
  letter-spacing: -0.01em;
}

.zh-pp-coming-desc {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #5b5070;
  max-width: 460px;
  line-height: 1.55;
}

.zh-pp-coming-handle {
  margin: 8px 0 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: #7C3AED;
  background: rgba(167, 139, 245, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
}

/* ─── Strip horizontal des faces ─────────────────────────────── */

.zh-pp-faces {
  width: min(850px, 96vw);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;           /* compact : moins d'air vertical pour rapprocher du tagline */
  margin-top: 0;              /* l’écart avec la carte blanche vient surtout du gap du main */
  min-height: 72px;            /* zone face : juste assez pour l'icône active + halo */
}

.zh-pp-faces-chev {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #ffffff;              /* chevrons blancs */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease, transform 0.15s ease;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)); /* lisible sur fond clair */
  touch-action: manipulation; /* tap fiable sur mobile, moins de conflit avec le scroll du strip */
}

.zh-pp-faces-chev svg {
  stroke: #ffffff;
  color: #ffffff;
}

.zh-pp-faces-chev:hover:not(:disabled):not(.is-off) {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

/* Masqué : une seule face, pas de débordement, ou rien à défiler dans cette direction */
.zh-pp-faces-chev.is-off {
  display: none;
}

.zh-pp-faces-strip {
  list-style: none;
  margin: 0;
  padding: 4px 4px;
  flex: 1;
  /* Sans min-width: 0 le flex item refuse de rétrécir → pas de overflow réel,
     scrollWidth === clientWidth et les chevrons restent masqués. */
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.zh-pp-faces-strip::-webkit-scrollbar { display: none; }

.zh-pp-faces-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 76px; /* réserve la place pour la face active + halo */
}

.zh-pp-face {
  background: rgba(255, 255, 255, 0.0);
  border: 0;
  cursor: pointer;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  transition: width 0.22s ease, height 0.22s ease, transform 0.22s ease;
}

.zh-pp-face img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
  transition: width 0.22s ease, height 0.22s ease;
}

.zh-pp-face.is-active {
  width: 76px;
  height: 76px;
}

.zh-pp-face.is-active img {
  width: 62px;
  height: 62px;
}

.zh-pp-face:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ─── Tagline guest ─────────────────────────────────────────── */

.zh-pp-tagline {
  margin: 4px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  text-align: center;
  letter-spacing: 0.01em;
  max-width: 720px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
  body.zh-public-profile-page {
    --zh-pp-nav-offset: 48px;
  }

  .zh-pp-page {
    background: #0b0419;
  }

  .zh-pp-page .zh-pp-bg {
    display: none;
  }

  .zh-pp-main {
    gap: 0;
    padding: var(--zh-pp-nav-offset) 0 0;
    max-width: none;
  }

  .zh-pp-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .zh-pp-content {
    width: 100%;
    padding: 0 0 88px;
    box-sizing: border-box;
  }

  .zh-pp-card-stack {
    width: 100%;
    max-width: 94vw;
    margin: 0 auto;
  }

  .zh-pp-action-card {
    display: none;
  }

  .zh-pp-tagline {
    display: none;
  }

  .zh-pp-card {
    padding: 14px 14px 18px;
    min-height: clamp(460px, calc(100dvh - 230px), 900px);
  }

  /* Face Shop / Airdrop tablette : s'étendre à l'espace dispo (override du desktop). */
  .zh-pp-card.zh-pp-card--shop-active,
  .zh-pp-card.zh-pp-card--airdrop-active {
    height: clamp(460px, calc(100dvh - 230px), 900px);
    max-height: clamp(460px, calc(100dvh - 230px), 900px);
  }

  .zh-pp-card-name { font-size: 19px; }

  .zh-pp-coming-title { font-size: 19px; }

  .zh-pp-tabs { width: 100%; justify-content: center; }

  .zh-pp-tab { padding: 5px 10px; font-size: 12px; }

  .zh-pp-media-empty {
    padding: 28px 20px 24px;
    border-radius: 14px;
  }

  .zh-pp-media-empty-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
  }

  .zh-pp-media-empty-icon svg {
    width: 48px;
    height: 48px;
  }

  .zh-pp-media-empty-title {
    font-size: 1.1rem;
  }

  .zh-pp-media-empty-desc {
    font-size: 14px;
  }

  /* Face strip — tablette */
  .zh-pp-faces {
    width: 96vw;
    min-height: 56px;
    padding: 2px 4px;
    margin-top: 0;
    gap: 6px;
  }
  .zh-pp-faces-strip {
    gap: 12px;
    padding: 2px 2px;
  }
  .zh-pp-face { width: 48px; height: 48px; }
  .zh-pp-face img { width: 30px; height: 30px; }
  .zh-pp-face.is-active { width: 68px; height: 68px; }
  .zh-pp-face.is-active img { width: 56px; height: 56px; }
  .zh-pp-faces-item { min-width: 62px; }
}

@media (max-width: 480px) {
  body.zh-public-profile-page {
    --zh-pp-nav-offset: 46px;
  }

  .zh-pp-content {
    padding: 0 0 88px;
  }

  .zh-pp-card-stack {
    max-width: 100%;
  }

  .zh-pp-handle { font-size: 11px; }

  .zh-pp-card-head { padding: 2px; }

  .zh-pp-card-icon img { width: 24px; height: 24px; }

  .zh-pp-card {
    min-height: min(500px, calc(100dvh - 200px));
  }

  .zh-pp-card-body {
    padding: 28px 14px;
    min-height: 300px;
  }

  /* Face strip — mobile */
  .zh-pp-faces {
    min-height: 48px;
    padding: 1px 2px;
    gap: 4px;
    margin-top: 0;
  }
  .zh-pp-faces-strip {
    gap: 10px;
    padding: 1px 2px;
  }
  .zh-pp-faces-chev { width: 32px; height: 32px; }
  .zh-pp-face { width: 44px; height: 44px; }
  .zh-pp-face img { width: 28px; height: 28px; }
  .zh-pp-face.is-active { width: 60px; height: 60px; }
  .zh-pp-face.is-active img { width: 48px; height: 48px; }
  .zh-pp-faces-item { min-width: 56px; }

  .zh-pp-tagline {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.35;
    padding: 0 10px;
  }
}

/* ─── Shell desktop : identité + contenu (web / tablette) ─── */

@media (min-width: 769px) {
  body.zh-public-profile-page {
    --zh-pp-nav-offset: 67px;
  }

  .zh-pp-page {
    background: #0b0419;
  }

  .zh-pp-page .zh-pp-bg {
    display: none;
  }

  .zh-pp-main {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--zh-pp-nav-offset) 0 0;
    min-height: 100dvh;
    max-width: none;
    box-sizing: border-box;
  }

  .zh-pp-shell {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    align-items: stretch;
    height: calc(100dvh - var(--zh-pp-nav-offset));
  }

  .zh-pp-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .zh-pp-card-stack {
    width: min(720px, 100%);
    margin: 0 auto;
  }

  .zh-pp-action-card {
    display: none;
  }

  .zh-pp-tagline {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .zh-pp-content {
    padding: 16px 18px 96px;
  }

  .zh-pp-card-stack {
    width: min(680px, 100%);
  }
}
