/* ZIC Wall Street — face publique du profil créateur (landing).

   Portage de `zic-profil-4.jsx` (composant `WallStreetFace`) : carte de cote
   (statut, séance, devise, grande valeur, variation, rang), courbe verte à
   périodes, cartes « Réseaux cotés » (logo, nom, abonnés, pastille « Coté »
   — AUCUN montant par réseau) et bandeau selon le rôle (CTA rouge #E11D48).

   THÈMES — le SOMBRE est la base, comme `public-profile-theme.css` ; le CLAIR
   passe par `:root[data-pp-theme="light"]` (et, sans JS, par
   `prefers-color-scheme: light` tant qu'aucun choix n'est posé). Surfaces et
   textes lus des jetons `--pp-*` (toujours avec repli = valeur sombre) ;
   jamais `--pp-text-soft` pour du petit texte. Encres de variation ≥ 4,5:1 :
   hausse #4ADE80 / baisse #FCA5A5 en sombre, #15803D / #B91C1C en clair ;
   CTA blanc sur #E11D48 (4,7:1).

   RESPONSIVE — par CONTAINER QUERIES sur la racine (`zhws`) : la colonne de
   la face fait ~890 px sur ordinateur, 408 à 700 px sur tablette (panneau
   identité de 320 px à côté) et ~358 px sur mobile — les media queries du
   viewport ne suffisent pas. Mobile d'abord (< 480 px), puis 480 et 720 px ;
   repli en media queries quand `container-type` n'est pas pris en charge.
   Viewport ≤ 768 px : la PAGE défile (`.zh-ppf-body` y passe en
   `overflow: visible`), avec une marge basse pour les FAB « + » et chat. */

.zh-ws-root {
  /* Encres et surfaces (base sombre). */
  --ws-ink: var(--pp-text, #fafafb);
  --ws-muted: var(--pp-text-muted, rgba(250, 250, 251, 0.62));
  --ws-card: var(--pp-card, #1a0e2e);
  --ws-line: var(--pp-border, rgba(168, 85, 247, 0.18));
  --ws-chip-line: var(--pp-border-strong, rgba(168, 85, 247, 0.4));
  --ws-overlay: var(--pp-overlay, rgba(255, 255, 255, 0.06));
  --ws-overlay-line: var(--pp-overlay-border, rgba(255, 255, 255, 0.12));
  --ws-focus: var(--pp-accent-2, #a855f7);
  --ws-curve-up: #22C55E;
  --ws-curve-down: #F87171;
  --ws-up-ink: #4ADE80;
  --ws-down-ink: #FCA5A5;
  --ws-cert-bg: rgba(74, 222, 128, 0.12);
  --ws-cert-line: rgba(74, 222, 128, 0.32);
  --ws-band-bg: rgba(22, 163, 74, 0.1);
  --ws-band-line: rgba(74, 222, 128, 0.28);
  --ws-tip-bg: #FAFAFB;
  --ws-tip-ink: #1A0A3D;
  --ws-cta: #E11D48;
  --ws-cta-hover: #BE123C;
  --ws-cta-ink: #FFFFFF;

  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: zhws;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--ws-ink);
}
/* ⚠️ Le sélecteur ci-dessous contient un ID : sans une spécificité au moins
   égale, `[hidden]` perdrait et la face resterait affichée sur TOUS les autres
   onglets (public-profile.js se contente de poser la propriété `hidden`). */
.zh-ppf-body > #zh-wallstreet-root[hidden],
.zh-ws-root[hidden] { display: none; }
/* Le shell du profil ne pose pas de box-sizing global : on le scope ici. */
.zh-ws-root *,
.zh-ws-root *::before,
.zh-ws-root *::after { box-sizing: border-box; }
/* `[hidden]` (feuille UA) perd contre toute classe qui pose un `display` : le
   JS ne pilote que la propriété `hidden`, c'est donc ici que ça se joue. */
.zh-ws-root [hidden] { display: none !important; }

/* Thème CLAIR : mêmes jetons, encres assombries (≥ 4,5:1 sur blanc). */
:root[data-pp-theme="light"] .zh-ws-root {
  --ws-curve-up: #16A34A;
  --ws-curve-down: #DC2626;
  --ws-up-ink: #15803D;
  --ws-down-ink: #B91C1C;
  --ws-cert-bg: rgba(22, 163, 74, 0.08);
  --ws-cert-line: rgba(22, 163, 74, 0.35);
  --ws-band-bg: rgba(22, 163, 74, 0.07);
  --ws-band-line: rgba(22, 163, 74, 0.28);
  --ws-tip-bg: #1A0A3D;
  --ws-tip-ink: #FFFFFF;
}
@media (prefers-color-scheme: light) {
  :root:not([data-pp-theme]) .zh-ws-root {
    --ws-curve-up: #16A34A;
    --ws-curve-down: #DC2626;
    --ws-up-ink: #15803D;
    --ws-down-ink: #B91C1C;
    --ws-cert-bg: rgba(22, 163, 74, 0.08);
    --ws-cert-line: rgba(22, 163, 74, 0.35);
    --ws-band-bg: rgba(22, 163, 74, 0.07);
    --ws-band-line: rgba(22, 163, 74, 0.28);
    --ws-tip-bg: #1A0A3D;
    --ws-tip-ink: #FFFFFF;
  }
}

.zh-ws-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Zone défilante ──────────────────────────────────────────────────── */
.zh-ws-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 20px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ws-chip-line) transparent;
  -webkit-overflow-scrolling: touch;
}
.zh-ws-in {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── En-tête ─────────────────────────────────────────────────────────── */
.zh-ws-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  padding: 0 2px;
}
.zh-ws-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.2px;
  color: var(--ws-ink);
}
/* Mobile : « Coté depuis le … » passe sous le titre, sans séparateur orphelin. */
.zh-ws-sep {
  display: none;
  color: var(--ws-muted);
}
.zh-ws-since {
  flex-basis: 100%;
  font-size: 12.5px;
  color: var(--ws-muted);
}

/* ── Carte de cote ───────────────────────────────────────────────────── */
.zh-ws-card {
  background: var(--ws-card);
  border: 1px solid var(--ws-line);
  border-radius: 18px;
  padding: 16px 14px 14px;
}
.zh-ws-quote-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.zh-ws-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  cursor: help;
}
.zh-ws-status--measured {
  background: var(--ws-cert-bg);
  border: 1px solid var(--ws-cert-line);
  color: var(--ws-up-ink);
}
.zh-ws-status--estimated {
  background: var(--ws-overlay);
  border: 1px solid var(--ws-overlay-line);
  color: var(--ws-muted);
}
.zh-ws-star { font-family: "Space Grotesk", sans-serif; }
.zh-ws-status-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 5;
  width: max-content;
  max-width: min(280px, 78vw);
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--ws-tip-bg);
  color: var(--ws-tip-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  box-shadow: 0 10px 28px var(--pp-shadow, rgba(0, 0, 0, 0.55));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}
.zh-ws-status:focus-visible .zh-ws-status-tip,
.zh-ws-status:focus .zh-ws-status-tip {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.zh-ws-status:focus-visible {
  outline: 2px solid var(--ws-focus);
  outline-offset: 2px;
}
.zh-ws-status:focus:not(:focus-visible) { outline: none; }

.zh-ws-session {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ws-muted);
  white-space: nowrap;
}
.zh-ws-session-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ws-muted);
}
.zh-ws-session[data-fresh="1"] .zh-ws-session-dot { background: var(--ws-curve-up); }
.zh-ws-session[data-fresh="1"] .zh-ws-session-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--ws-curve-up);
  opacity: 0;
  animation: zh-ws-ping 2.4s ease-out infinite;
}
@keyframes zh-ws-ping {
  0% { transform: scale(0.6); opacity: 0.7; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

/* Pastilles (devise, périodes) : sélection = état INVERSÉ (encre pleine). */
.zh-ws-cur {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.zh-ws-chip {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 99px;
  border: 1px solid var(--ws-chip-line);
  background: var(--ws-card);
  color: var(--ws-ink);
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.zh-ws-chip[aria-checked="true"] {
  background: var(--ws-ink);
  border-color: var(--ws-ink);
  color: var(--ws-card);
}
.zh-ws-chip:focus-visible {
  outline: 2px solid var(--ws-focus);
  outline-offset: 2px;
}

.zh-ws-value-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 14px;
}
.zh-ws-value {
  margin: 0;
  max-width: 100%;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 30px;
  font-size: clamp(28px, 9cqi, 36px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ws-ink);
}
.zh-ws-change {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ws-muted);
}
.zh-ws-change[data-dir="up"] { color: var(--ws-up-ink); }
.zh-ws-change[data-dir="down"] { color: var(--ws-down-ink); }
.zh-ws-arrow { font-size: 0.8em; }
.zh-ws-change-label {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
}
.zh-ws-new {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--ws-cert-bg);
  border: 1px solid var(--ws-cert-line);
  color: var(--ws-up-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}
.zh-ws-rank {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ws-muted);
}
.zh-ws-rank b {
  font-weight: 800;
  color: var(--ws-ink);
}
.zh-ws-rank-part { white-space: nowrap; }

/* ── Courbe ──────────────────────────────────────────────────────────── */
.zh-ws-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 18px 0 10px;
}
/* Mobile : bande horizontale défilante, sans barre, sur toute la largeur. */
.zh-ws-periods {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
  margin: -2px;
}
.zh-ws-periods::-webkit-scrollbar { display: none; }
.zh-ws-period-only {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ws-ink);
}
.zh-ws-period-change {
  margin: 0;
  font-size: 11.5px;
  color: var(--ws-muted);
  white-space: nowrap;
}
.zh-ws-period-pct {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  color: var(--ws-muted);
}
.zh-ws-period-pct[data-dir="up"] { color: var(--ws-up-ink); }
.zh-ws-period-pct[data-dir="down"] { color: var(--ws-down-ink); }

.zh-ws-chart {
  position: relative;
  margin: 0;
  border-radius: 10px;
  outline: none;
}
.zh-ws-chart:focus-visible { box-shadow: 0 0 0 2px var(--ws-focus); }
.zh-ws-plot {
  position: relative;
  height: 124px;
  margin-right: 6px;
  color: var(--ws-curve-up);
  touch-action: pan-y;
  cursor: crosshair;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.zh-ws-chart[data-dir="down"] .zh-ws-plot { color: var(--ws-curve-down); }
.zh-ws-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.zh-ws-line {
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.zh-ws-end {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--ws-card);
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.zh-ws-end::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: zh-ws-ping 2.4s ease-out infinite;
}
.zh-ws-chart[data-scrub="1"] .zh-ws-end { opacity: 0.3; }
.zh-ws-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background: var(--ws-muted);
  opacity: 0.55;
  pointer-events: none;
}
.zh-ws-cursor {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--ws-card);
  border: 2.5px solid currentColor;
  pointer-events: none;
}
/* Bulle de lecture : TOUJOURS dans le tracé (jamais au-dessus, où elle
   couvrait les pastilles de période et « sur la période » sur mobile). Le JS
   (`tipBox`) la pose en px : en haut du tracé, ou sous le curseur quand elle
   le cacherait, bornée aux bords. Position absolue : aucun décalage de mise
   en page, aucun débordement horizontal. */
.zh-ws-tip {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--ws-tip-bg);
  color: var(--ws-tip-ink);
  font-size: 11.5px;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 8px 22px var(--pp-shadow-soft, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.zh-ws-tip-value {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 13px;
}

.zh-ws-axis {
  position: relative;
  height: 22px;
  margin: 6px 6px 0 0;
  border-top: 1px solid var(--ws-line);
}
.zh-ws-tick {
  position: absolute;
  top: 0;
  width: 1px;
  height: 5px;
  background: var(--ws-chip-line);
}
/* Mobile : ticks secondaires masqués (rétablis à partir de 480 px). */
.zh-ws-tick.is-minor {
  display: none;
  height: 3px;
  background: var(--ws-line);
}
.zh-ws-tick-label {
  position: absolute;
  top: 7px;
  left: 0;
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ws-muted);
  transform: translateX(-50%);
}
.zh-ws-tick[data-edge="start"] .zh-ws-tick-label { transform: none; }
.zh-ws-tick[data-edge="end"] .zh-ws-tick-label { transform: translateX(-100%); }

.zh-ws-chart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 22px 16px;
  border: 1px dashed var(--ws-chip-line);
  border-radius: 14px;
  text-align: center;
  color: var(--ws-muted);
}
.zh-ws-chart-empty-ic { color: var(--ws-curve-up); }
.zh-ws-chart-empty-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ws-ink);
}
.zh-ws-chart-empty-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
}

/* ── Réseaux cotés (AUCUN montant) ───────────────────────────────────── */
.zh-ws-sec-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 11px;
}
.zh-ws-sec-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ws-muted);
}
.zh-ws-sec-line {
  flex: 1;
  height: 1px;
  background: var(--ws-line);
}
.zh-ws-nets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.zh-ws-net {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--ws-card);
  border: 1px solid var(--ws-line);
  transition: border-color 0.15s ease;
}
.zh-ws-net-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ws-net, #6D28D9);
  color: #FFFFFF;
}
/* Logo TikTok (#111111) : liseré pour qu'il ne se fonde pas dans la carte sombre. */
.zh-ws-net[data-net="tiktok"] .zh-ws-net-logo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.zh-ws-net-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.zh-ws-net-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--ws-ink);
}
.zh-ws-net-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ws-muted);
}
.zh-ws-net-pill {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--ws-cert-bg);
  border: 1px solid var(--ws-cert-line);
  color: var(--ws-up-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

/* ── Bandeau selon le rôle ───────────────────────────────────────────── */
.zh-ws-band {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--ws-band-bg);
  border: 1px solid var(--ws-band-line);
}
.zh-ws-band-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ws-ink);
}
.zh-ws-band-text {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ws-muted);
}
/* Mobile : boutons empilés pleine largeur, le principal en premier. */
.zh-ws-band-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zh-ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 11px;
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.zh-ws-btn--primary {
  background: var(--ws-cta);
  border: 1px solid var(--ws-cta);
  color: var(--ws-cta-ink);
}
.zh-ws-btn--ghost {
  background: var(--ws-card);
  border: 1px solid var(--ws-chip-line);
  color: var(--ws-ink);
  font-weight: 700;
}
.zh-ws-btn:focus-visible,
.zh-ws-band-link:focus-visible,
.zh-ws-foot-link:focus-visible {
  outline: 2px solid var(--ws-focus);
  outline-offset: 2px;
}
.zh-ws-band-link {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ws-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.zh-ws-share-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zh-ws-share-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ws-muted);
}
.zh-ws-share-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--ws-chip-line);
  background: var(--ws-card);
  color: var(--ws-ink);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
}
.zh-ws-share-input:focus-visible {
  outline: 2px solid var(--ws-focus);
  outline-offset: 1px;
}

/* ── Liens et note ───────────────────────────────────────────────────── */
.zh-ws-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0 2px;
  font-size: 12.5px;
}
.zh-ws-foot-link {
  font-weight: 700;
  color: var(--ws-ink);
  text-decoration: underline;
  text-decoration-color: var(--ws-chip-line);
  text-underline-offset: 3px;
}
/* Flèche du lien : marge propre (un lien en inline-flex avale l'espace). */
.zh-ws-foot-link > span { margin-left: 4px; }
.zh-ws-fx { color: var(--ws-muted); }

/* ── Toast ───────────────────────────────────────────────────────────── */
.zh-ws-toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 6;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ws-tip-bg);
  color: var(--ws-tip-ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 12px 32px var(--pp-shadow, rgba(0, 0, 0, 0.55));
  animation: zh-ws-toast-in 0.2s ease-out;
}
@keyframes zh-ws-toast-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ── Survols : seulement sur les appareils qui survolent ─────────────── */
@media (hover: hover) {
  .zh-ws-chip:hover:not([aria-checked="true"]) { border-color: var(--ws-ink); }
  .zh-ws-btn--primary:hover { background: var(--ws-cta-hover); border-color: var(--ws-cta-hover); }
  .zh-ws-btn--ghost:hover { border-color: var(--ws-ink); }
  .zh-ws-foot-link:hover { text-decoration-color: currentColor; }
  .zh-ws-band-link:hover { text-decoration-thickness: 2px; }
  .zh-ws-net:hover { border-color: var(--ws-chip-line); }
  .zh-ws-status:hover .zh-ws-status-tip {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* ── Écran tactile : cibles ≥ 44 px ──────────────────────────────────── */
@media (pointer: coarse) {
  .zh-ws-chip {
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 12.5px;
  }
  .zh-ws-btn { min-height: 48px; }
  .zh-ws-band-link,
  .zh-ws-foot-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ── Tablette : face de 480 à 719 px ─────────────────────────────────── */
@container zhws (min-width: 480px) {
  .zh-ws-sep { display: inline; }
  .zh-ws-since { flex-basis: auto; }
  .zh-ws-card { padding: 18px 18px 14px; }
  .zh-ws-value { font-size: clamp(34px, 7cqi, 40px); }
  .zh-ws-periods {
    flex: 0 1 auto;
    flex-wrap: wrap;
    overflow: visible;
  }
  .zh-ws-plot { height: 140px; }
  .zh-ws-tick.is-minor { display: block; }
  .zh-ws-nets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zh-ws-band { padding: 18px; }
  .zh-ws-band-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .zh-ws-btn {
    width: auto;
    min-height: 44px;
  }
  .zh-ws-foot {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
  }
  .zh-ws-fx { margin-left: auto; }
}

/* ── Web : face ≥ 720 px ─────────────────────────────────────────────── */
@container zhws (min-width: 720px) {
  .zh-ws-card { padding: 20px 22px 16px; }
  .zh-ws-value { font-size: clamp(38px, 5cqi, 46px); }
  .zh-ws-plot { height: 160px; }
  .zh-ws-nets { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .zh-ws-band {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
  }
  .zh-ws-band-txt {
    flex: 1 1 260px;
    min-width: 0;
  }
  .zh-ws-band-link,
  .zh-ws-share-field { flex-basis: 100%; }
}

/* ── Repli sans container queries : media queries du viewport ────────── */
@supports not (container-type: inline-size) {
  .zh-ws-value { font-size: 30px; }
  @media (min-width: 481px) {
    .zh-ws-sep { display: inline; }
    .zh-ws-since { flex-basis: auto; }
    .zh-ws-card { padding: 18px 18px 14px; }
    .zh-ws-value { font-size: 36px; }
    .zh-ws-periods {
      flex: 0 1 auto;
      flex-wrap: wrap;
      overflow: visible;
    }
    .zh-ws-plot { height: 140px; }
    .zh-ws-tick.is-minor { display: block; }
    .zh-ws-nets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zh-ws-band { padding: 18px; }
    .zh-ws-band-actions {
      flex-direction: row;
      flex-wrap: wrap;
    }
    .zh-ws-btn {
      width: auto;
      min-height: 44px;
    }
    .zh-ws-foot {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 18px;
    }
    .zh-ws-fx { margin-left: auto; }
  }
  @media (min-width: 1025px) {
    .zh-ws-card { padding: 20px 22px 16px; }
    .zh-ws-value { font-size: 44px; }
    .zh-ws-plot { height: 160px; }
    .zh-ws-nets { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .zh-ws-band {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 14px;
      padding: 18px 20px;
    }
    .zh-ws-band-txt {
      flex: 1 1 260px;
      min-width: 0;
    }
    .zh-ws-band-link,
    .zh-ws-share-field { flex-basis: 100%; }
  }
}

/* Sous 768 px, `.zh-ppf-body` passe en `overflow: visible` et sans gouttière
   (landing-public-feed.css) : c'est la PAGE qui défile. La face reprend sa
   hauteur naturelle, une gouttière de 16 px, et réserve la place des boutons
   flottants (FAB « + » centré + FAB chat, `position: fixed`). */
@media (max-width: 768px) {
  .zh-ws-root {
    height: auto;
    overflow: visible;
  }
  .zh-ws-scroll {
    overflow: visible;
    padding: 0 16px calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .zh-ws-toast {
    position: fixed;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Mouvement réduit ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .zh-ws-root *,
  .zh-ws-root *::before,
  .zh-ws-root *::after {
    animation: none !important;
    transition: none !important;
  }
}
