/* proximapool — "My wallet" page: the Proxima web wallet app, unchanged, under the site menu.
   Port of proximapool-webwallet/app/style.css: each class prefixed "ww-", each variable "--ww-",
   everything under the .ww root container (no effect on the header, footer or other pages).
   Green accent and gradient halo (same gradient as the site), light/dark theme from html[data-theme]
   (site button) and prefers-color-scheme, like the web wallet.
   At the end of the file: .pw-* styles of the standalone PPWallet.create/restore screens (used by start.html). */

/* ------------------------------------------------------------------ variables (light) */
.ww {
  --ww-bg: #f4f4f8;
  --ww-surface: #ffffff;
  --ww-surface-2: #eeeef4;
  --ww-ligne: rgba(18, 20, 40, .09);
  --ww-texte: #12141c;
  --ww-doux: #5f6578;
  --ww-accent: #17774A;
  --ww-accent-2: #38A873;
  --ww-accent-texte: #03240F;
  --ww-ok: #1E8A58;
  --ww-attention: #b97700;
  --ww-erreur: #d93848;
  --ww-ombre: 0 10px 40px -18px rgba(20, 22, 50, .35);
  --ww-halo: rgba(47, 163, 108, .08);
  --ww-astre: radial-gradient(circle at 35% 30%, #EEF8F2 0, #A5DDBE 20%, #3DA874 55%, #125C3A 100%);
  --ww-rayon: 18px;
  --ww-police: var(--font-ui), "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ww-mono: var(--font-mono);
  color-scheme: light;
}
/* dark: system preference unless the site forces light, or site button */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .ww {
    --ww-bg: #030506; --ww-surface: #0F1519; --ww-surface-2: #182026; --ww-ligne: rgba(255, 255, 255, .08);
    --ww-texte: #eef0f8; --ww-doux: #8a90a8; --ww-accent: #6AD3A0; --ww-accent-2: #A8E8C8;
    --ww-ok: #3ddc97; --ww-attention: #ffc861; --ww-erreur: #ff6070;
    --ww-ombre: 0 20px 60px -25px rgba(0, 0, 0, .8); --ww-halo: rgba(106, 211, 160, .08);
    --ww-astre: radial-gradient(circle at 35% 30%, #EFFAF4 0, #A8E8C8 20%, #4FB584 55%, #123F2B 100%);
    color-scheme: dark;
  }
}
html[data-theme="dark"] .ww {
  --ww-bg: #030506; --ww-surface: #0F1519; --ww-surface-2: #182026; --ww-ligne: rgba(255, 255, 255, .08);
  --ww-texte: #eef0f8; --ww-doux: #8a90a8; --ww-accent: #6AD3A0; --ww-accent-2: #A8E8C8;
  --ww-ok: #3ddc97; --ww-attention: #ffc861; --ww-erreur: #ff6070;
  --ww-ombre: 0 20px 60px -25px rgba(0, 0, 0, .8); --ww-halo: rgba(106, 211, 160, .08);
    --ww-astre: radial-gradient(circle at 35% 30%, #EFFAF4 0, #A8E8C8 20%, #4FB584 55%, #123F2B 100%);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base (equivalent of the web wallet body/elements) */
.ww {
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 85% -10%, var(--ww-halo), transparent 60%), var(--ww-bg);
  color: var(--ww-texte);
  font: 16px/1.5 var(--ww-police);
  letter-spacing: normal;
  font-feature-settings: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
:where(.ww) *, :where(.ww) *::before, :where(.ww) *::after { box-sizing: border-box; }
/* elements: :where() keeps the specificity of a plain element selector, like in the web wallet */
:where(.ww) svg { width: 20px; height: 20px; max-width: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:where(.ww) code, .ww-mono { font-family: var(--ww-mono); font-size: .92em; font-variant-ligatures: none; }
:where(.ww) :is(h1, h2, h3, h4) { margin: 0; letter-spacing: -.02em; }
:where(.ww) h1 { font-size: 30px; }
:where(.ww) h2 { font-size: 22px; }
:where(.ww) p { margin: 0; }
:where(.ww) :focus-visible { outline: 2px solid var(--ww-accent); outline-offset: 2px; }
:where(.ww) ::selection { background: var(--ww-halo); color: var(--ww-texte); }

.ww-app { width: 100%; max-width: 460px; margin: 0 auto; padding: 20px 16px max(32px, env(safe-area-inset-bottom)); flex: 1; display: flex; flex-direction: column; }
.ww-vue { display: flex; flex-direction: column; gap: 20px; flex: 1; animation: ww-entree .35s ease both; }
@keyframes ww-entree { from { opacity: 0; transform: translateY(8px); } }
.ww-vue.ww-fixe { animation: none; }   /* same view redrawn (language, engine): no entry animation */

/* halo */
.ww-astre { width: 112px; height: 112px; border-radius: 50%; position: relative; margin: 0 auto 8px; flex: none;
  background: var(--ww-astre);
  box-shadow: 0 0 60px 6px var(--ww-halo), 0 0 140px 30px var(--ww-halo); }
.ww-astre span { position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--ww-ligne); animation: ww-orbite 9s linear infinite; }
.ww-astre span::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--ww-texte); top: 50%; left: -4px; opacity: .7; }
@keyframes ww-orbite { to { transform: rotate(360deg); } }
.ww-astre.ww-petit { width: 72px; height: 72px; }
.ww-astre.ww-mini { width: 22px; height: 22px; margin: 0; box-shadow: 0 0 16px 2px var(--ww-halo); }
.ww-astre.ww-mini span { display: none; }

.ww-hero { text-align: center; display: flex; flex-direction: column; gap: 10px; padding: 9vh 0 2vh; }
.ww-hero .ww-astre { margin-bottom: 26px; }
.ww-sous { color: var(--ww-doux); }
.ww-pile { display: flex; flex-direction: column; gap: 12px; }
.ww-pile[hidden] { display: none; }

/* buttons */
.ww-btn { font: inherit; font-weight: 600; border: 0; cursor: pointer; border-radius: 14px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ww-texte); background: transparent; transition: transform .12s ease, filter .2s, background .2s, opacity .2s; text-decoration: none; }
.ww-btn:active { transform: scale(.98); }
.ww-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.ww-btn.ww-grand { padding: 16px 20px; font-size: 16px; width: 100%; }
.ww-btn.ww-primaire { background: var(--btn-grad); color: var(--ww-accent-texte); box-shadow: 0 10px 30px -12px var(--ww-accent); }
.ww-btn.ww-primaire:hover:not(:disabled) { filter: brightness(1.06); }
.ww-btn.ww-secondaire { background: var(--ww-surface); border: 1px solid var(--ww-ligne); }
.ww-btn.ww-secondaire:hover { background: var(--ww-surface-2); }
.ww-btn.ww-texte { color: var(--ww-accent); padding: 8px; }
.ww-btn.ww-discret { color: var(--ww-doux); font-weight: 500; font-size: 14px; }
.ww-btn.ww-puce { padding: 6px 12px; border-radius: 10px; font-size: 13px; background: var(--ww-surface-2); color: var(--ww-accent); }
.ww-btn.ww-danger { background: var(--ww-erreur); color: #fff; }
.ww-icone-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; border: 0; padding: 0; background: transparent; color: var(--ww-texte); cursor: pointer; flex: none; }
.ww-icone-btn:hover { background: var(--ww-surface-2); }
.ww-icone-btn.ww-fantome { visibility: hidden; }

/* bar */
.ww-barre { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.ww-titre-barre { font-size: 17px; font-weight: 650; text-align: center; flex: 1; letter-spacing: -.01em; }
.ww-marque { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.ww-barre-droite { display: flex; align-items: center; gap: 2px; }
.ww-reseau { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ww-doux); padding: 4px 10px; border-radius: 99px; background: var(--ww-surface); border: 1px solid var(--ww-ligne); margin-right: 4px; white-space: nowrap; }
.ww-reseau i { width: 7px; height: 7px; border-radius: 50%; background: var(--ww-doux); }
.ww-reseau.ok i { background: var(--ww-ok); box-shadow: 0 0 8px var(--ww-ok); }
.ww-reseau.ko i { background: var(--ww-erreur); }

/* fields */
.ww-champ { font: inherit; width: 100%; color: var(--ww-texte); background: var(--ww-surface); border: 1px solid var(--ww-ligne); border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .2s, box-shadow .2s; resize: none; }
.ww-champ:hover:not(:focus) { border-color: color-mix(in srgb, var(--ww-accent) 55%, var(--ww-ligne)); box-shadow: 0 0 0 3px var(--ww-halo); }
.ww-champ:focus { border-color: var(--ww-accent); box-shadow: 0 0 0 4px var(--ww-halo); }
.ww-champ::placeholder { color: var(--ww-doux); opacity: .8; }
textarea.ww-champ.ww-mono { line-height: 1.55; word-break: break-all; font-size: 14px; field-sizing: content; min-height: 78px; max-height: 160px; overflow-y: auto; }
.ww-champ-groupe { position: relative; }
.ww-champ-groupe .ww-champ { padding-right: 92px; }
.ww-champ-outils { position: absolute; right: 6px; top: 6px; display: flex; }
.ww-champ-montant { position: relative; display: flex; align-items: center; }
.ww-champ-montant .ww-champ { font-size: 26px; font-weight: 650; padding-right: 140px; font-variant-numeric: tabular-nums; }
.ww-champ-montant span { position: absolute; right: 78px; color: var(--ww-doux); font-weight: 600; }
.ww-champ-montant .ww-btn { position: absolute; right: 10px; }
.ww-etiquette { font-size: 13px; font-weight: 600; color: var(--ww-doux); text-transform: uppercase; letter-spacing: .06em; }
.ww-aide { font-size: 13px; color: var(--ww-doux); }
.ww-erreur { color: var(--ww-erreur); font-size: 14px; min-height: 0; }
.ww-erreur:empty { display: none; }
.ww-note { font-size: 13px; color: var(--ww-doux); text-align: center; }
.ww-coche { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 15px; }
.ww-coche input { width: 20px; height: 20px; margin: 3px 3px 3px 4px; accent-color: var(--ww-accent); flex: none; }
.ww-depot { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 14px; border: 1.5px dashed var(--ww-ligne); border-radius: 14px; color: var(--ww-doux); cursor: pointer; font-size: 14px; }
.ww-depot:hover { border-color: var(--ww-accent); color: var(--ww-texte); }
.ww-depot input { display: none; }
.ww-jauge { height: 4px; border-radius: 4px; background: var(--ww-surface-2); overflow: hidden; }
.ww-jauge i { display: block; height: 100%; width: 0; background: var(--ww-erreur); transition: width .3s, background .3s; }
.ww-jauge[data-force="1"] i { width: 25%; background: var(--ww-erreur); }
.ww-jauge[data-force="2"] i { width: 50%; background: var(--ww-attention); }
.ww-jauge[data-force="3"] i { width: 75%; background: var(--ww-ok); }
.ww-jauge[data-force="4"] i { width: 100%; background: var(--ww-ok); }

/* creation */
.ww-etapes { display: flex; gap: 6px; }
.ww-etapes i { width: 26px; height: 4px; border-radius: 4px; background: var(--ww-surface-2); transition: background .3s; }
.ww-etapes i.ww-fait { background: var(--ww-accent); }
.ww-etape { display: flex; flex-direction: column; gap: 16px; }
.ww-mots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; transition: filter .3s; user-select: text; }
.ww-mots span { background: var(--ww-surface); border: 1px solid var(--ww-ligne); border-radius: 10px; padding: 8px 8px; font-family: var(--ww-mono); font-size: 14px; display: flex; gap: 6px; min-width: 0; }
.ww-mots span i { font-style: normal; color: var(--ww-doux); font-size: 11px; min-width: 16px; text-align: right; padding-top: 2px; }
.ww-mots.ww-flou { filter: blur(7px); user-select: none; pointer-events: none; }
.ww-quiz { display: flex; flex-direction: column; gap: 10px; }
.ww-quiz label { display: flex; align-items: center; gap: 12px; }
.ww-quiz label span { min-width: 64px; color: var(--ww-doux); font-weight: 600; }

/* balance card */
.ww-carte-solde { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 22px 20px; background: var(--ww-surface); border: 1px solid var(--ww-ligne); box-shadow: var(--ww-ombre); display: flex; flex-direction: column; gap: 6px; }
.ww-carte-solde::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, var(--ww-accent-2) 0, var(--ww-accent) 35%, transparent 70%); opacity: .35; filter: blur(10px); pointer-events: none; }
.ww-solde { display: flex; align-items: baseline; gap: 8px; font-size: 42px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; position: relative; word-break: break-all; }
.ww-solde small { font-size: 16px; font-weight: 600; color: var(--ww-doux); letter-spacing: 0; }
.ww-solde-detail { font-size: 13px; color: var(--ww-doux); min-height: 19px; position: relative; }
.ww-puce-adresse { margin-top: 10px; align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font: 500 13px var(--ww-mono); color: var(--ww-texte); background: var(--ww-surface-2); border: 0; border-radius: 99px; padding: 7px 12px; cursor: pointer; position: relative; }
.ww-puce-adresse svg { width: 15px; height: 15px; color: var(--ww-doux); }
.ww-puce-adresse:hover svg { color: var(--ww-accent); }
/* link with the pool account: next to the address chip */
.ww-adresse-ligne { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; position: relative; }
.ww-adresse-ligne .ww-puce-adresse { margin-top: 0; }
.ww-lien[hidden] { display: none; }
.ww-autres { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
/* several named wallets (My wallet): selector, payout badge, banner, list, "My wallets" chips */
.ww-sel-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.ww-sel-ligne[hidden] { display: none; }
.ww-selecteur { font: inherit; display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--ww-ligne); background: var(--ww-surface); color: var(--ww-texte); cursor: pointer; }
.ww-selecteur:hover { background: var(--ww-surface-2); }
.ww-selecteur svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ww-selecteur svg:first-child { color: var(--ww-accent); }
.ww-selecteur svg:last-child { color: var(--ww-doux); }
.ww-sel-nom { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ww-sel-adr { font-size: 12px; color: var(--ww-doux); white-space: nowrap; }
.ww-btn.ww-nommer { flex-basis: 100%; font-size: 13px; padding: 5px 4px; }
.ww-nom-verrou { font-weight: 650; }
.ww-nom-verrou:empty { display: none; }
.ww-badge-paiement { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ww-ok); padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--ww-ok) 12%, transparent); white-space: nowrap; }
.ww-badge-paiement svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ww-info.ww-bandeau { border-color: color-mix(in srgb, var(--ww-attention) 45%, var(--ww-ligne)); }
.ww-info.ww-bandeau > svg { color: var(--ww-attention); flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ww-info.ww-bandeau p { color: var(--ww-texte); }
.ww-info.ww-bandeau[hidden] { display: none; }
.ww-wallets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ww-wallet { font: inherit; width: 100%; text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--ww-ligne); background: var(--ww-surface); color: var(--ww-texte); cursor: pointer; }
.ww-wallet:hover { background: var(--ww-surface-2); }
.ww-wallet.ww-actif { border-color: var(--ww-accent); box-shadow: 0 0 0 3px var(--ww-halo); }
.ww-wallet-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ww-wallet-tete b { font-weight: 650; overflow-wrap: anywhere; }
.ww-wallet-adr { font-size: 12.5px; color: var(--ww-doux); }
.ww-wallet-etat { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ww-doux); }
.ww-wallet-etat svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ww-ligne.ww-mono-titre > span { font-family: var(--ww-mono); }
.ww-mes-wallets { display: flex; flex-direction: column; gap: 6px; }
.ww-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.ww-btn.ww-puce-wallet { flex-direction: column; align-items: flex-start; gap: 0; color: var(--ww-texte); text-align: left; }
.ww-btn.ww-puce-wallet small { font-size: 11px; color: var(--ww-doux); font-weight: 500; }

.ww-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ww-actions .ww-action { padding: 16px; font-size: 16px; }
.ww-actions.ww-seule { grid-template-columns: 1fr; }
.ww-section { font-size: 13px; color: var(--ww-doux); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; font-weight: 700; }
.ww-activite { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ww-activite li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ww-surface); border: 1px solid var(--ww-ligne); border-radius: 16px; cursor: pointer; }
.ww-activite .ww-pastille { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ww-surface-2); color: var(--ww-accent); flex: none; }
.ww-activite .ww-pastille.ww-recu { color: var(--ww-ok); background: color-mix(in srgb, var(--ww-ok) 13%, transparent); }
.ww-activite .ww-montant.ww-recu { color: var(--ww-ok); }
.ww-activite .ww-pastille.ww-attente { color: var(--ww-attention); }
.ww-activite .ww-pastille.ww-echec { color: var(--ww-erreur); }
.ww-activite .ww-pastille.ww-attente svg { animation: ww-pulse 1.6s ease-in-out infinite; }
@keyframes ww-pulse { 50% { opacity: .35; } }
.ww-activite .ww-infos { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ww-activite .ww-infos b { font-weight: 600; font-size: 15px; }
.ww-activite .ww-infos small { color: var(--ww-doux); font-size: 12px; font-family: var(--ww-mono); overflow-wrap: anywhere; }
.ww-activite .ww-montant { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ww-activite .ww-montant small { display: block; font-weight: 500; font-size: 12px; color: var(--ww-doux); }
.ww-vide { color: var(--ww-doux); font-size: 14px; text-align: center; padding: 22px 12px; border: 1px dashed var(--ww-ligne); border-radius: 16px; }

/* sheets (dialog): at the bottom on mobile, centred from 640 px.
   Margins are set again explicitly: the global site reset ("* { margin: 0 }") cancels native centring. */
dialog.ww-feuille { border: 0; padding: 18px 18px max(22px, env(safe-area-inset-bottom)); width: 100%; max-width: 460px; max-height: 92dvh; overflow: auto; margin: auto auto 0; border-radius: 26px 26px 0 0; background: var(--ww-bg); color: var(--ww-texte); box-shadow: var(--ww-ombre); font: 16px/1.5 var(--ww-police); }
dialog.ww-feuille[open] { animation: ww-monte .3s cubic-bezier(.2, .9, .3, 1.1) both; display: flex; flex-direction: column; gap: 16px; }
dialog.ww-feuille::backdrop { background: rgba(5, 6, 12, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes ww-monte { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 640px) {
  dialog.ww-feuille { margin: auto; border-radius: 26px; }
}

.ww-qr { align-self: center; background: #fff; padding: 16px; border-radius: 22px; width: 248px; height: 248px; box-shadow: var(--ww-ombre); flex: none; }
.ww-qr svg { width: 100%; height: 100%; stroke: none; }
.ww-qr path { fill: #0b0d14; }
.ww-adresse-complete { text-align: center; font-size: 15px; line-height: 1.7; word-spacing: 4px; background: var(--ww-surface); border: 1px solid var(--ww-ligne); border-radius: 14px; padding: 12px; user-select: all; overflow-wrap: anywhere; }

.ww-recap { background: var(--ww-surface); border: 1px solid var(--ww-ligne); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ww-recap-montant { font-size: 36px; font-weight: 750; letter-spacing: -.03em; display: flex; gap: 8px; align-items: baseline; justify-content: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ww-recap-montant small { font-size: 15px; color: var(--ww-doux); font-weight: 600; letter-spacing: 0; }
.ww-recap dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.ww-recap dt { color: var(--ww-doux); }
.ww-recap dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; word-break: break-all; }
.ww-recap .ww-plein { grid-column: 1 / -1; }
.ww-recap .ww-adresse-recap { text-align: left; background: var(--ww-surface-2); border-radius: 12px; padding: 10px 12px; line-height: 1.7; word-spacing: 3px; margin-top: -4px; }
.ww-info { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--ww-surface); border: 1px solid var(--ww-ligne); color: var(--ww-texte); font-size: 14px; line-height: 1.5; }
.ww-info > svg { color: var(--ww-accent); margin-top: 1px; }
.ww-info > div { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.ww-info p { color: var(--ww-doux); }
.ww-info b { color: var(--ww-texte); font-family: var(--ww-mono); font-weight: 600; }
.ww-info.ww-alerte > svg { color: var(--ww-erreur); }
.ww-info-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ww-info-actions .ww-btn { padding: 9px 14px; font-size: 14px; background: var(--ww-surface-2); color: var(--ww-accent); }
.ww-info-actions .ww-btn:hover { filter: brightness(1.1); }
.ww-champ.ww-petit { padding: 10px 12px; font-size: 15px; border-radius: 12px; }
.ww-resultat { align-items: center; text-align: center; padding-top: 10px; }
.ww-statut-icone { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--ww-surface-2); flex: none; }
.ww-statut-icone svg { width: 36px; height: 36px; stroke-width: 2.2; }
.ww-statut-icone.ok { color: var(--ww-ok); background: color-mix(in srgb, var(--ww-ok) 15%, transparent); }
.ww-statut-icone.ko { color: var(--ww-erreur); background: color-mix(in srgb, var(--ww-erreur) 15%, transparent); }
.ww-statut-icone.attente svg { color: var(--ww-attention); }
.ww-statut-icone.charge { border: 3px solid var(--ww-surface-2); border-top-color: var(--ww-accent); background: transparent; animation: ww-tourne .8s linear infinite; }
@keyframes ww-tourne { to { transform: rotate(360deg); } }

.ww-liste-reglages { display: flex; flex-direction: column; background: var(--ww-surface); border: 1px solid var(--ww-ligne); border-radius: 18px; overflow: hidden; }
.ww-ligne { font: inherit; color: var(--ww-texte); background: transparent; border: 0; border-bottom: 1px solid var(--ww-ligne); padding: 15px 16px; text-align: left; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.ww-ligne:last-child { border-bottom: 0; }
.ww-ligne:hover:not(:disabled) { background: var(--ww-surface-2); }
.ww-ligne:disabled { cursor: not-allowed; }
.ww-ligne:disabled > span { color: var(--ww-doux); }
.ww-ligne small { color: var(--ww-doux); font-size: 13px; }
.ww-ligne.ww-danger span { color: var(--ww-erreur); font-weight: 600; }

/* delegations */
.ww-lien-deleg { margin-top: 2px; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font: 500 13px var(--ww-police); color: var(--ww-doux); background: transparent; border: 0; padding: 4px 0; cursor: pointer; position: relative; text-align: left; }
.ww-lien-deleg svg { width: 15px; height: 15px; }
.ww-lien-deleg svg:last-child { width: 14px; height: 14px; transition: transform .2s; }
.ww-lien-deleg:hover { color: var(--ww-texte); }
.ww-lien-deleg:hover svg:last-child { transform: translateX(2px); color: var(--ww-accent); }
.ww-deleg-resume { background: var(--ww-surface); border: 1px solid var(--ww-ligne); border-radius: 22px; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.ww-deleg-resume::before { content: ""; position: absolute; width: 200px; height: 200px; right: -80px; top: -110px; border-radius: 50%; background: radial-gradient(circle, var(--ww-accent-2) 0, var(--ww-accent) 35%, transparent 70%); opacity: .22; filter: blur(8px); pointer-events: none; }
.ww-deleg-total { display: flex; align-items: baseline; gap: 8px; font-size: 32px; font-weight: 750; letter-spacing: -.025em; font-variant-numeric: tabular-nums; position: relative; }
.ww-deleg-total small { font-size: 14px; font-weight: 600; color: var(--ww-doux); letter-spacing: 0; }
.ww-deleg-stats { display: flex; gap: 18px; font-size: 13px; color: var(--ww-doux); margin-top: 2px; }
.ww-deleg-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.ww-deleg-stats b { color: var(--ww-texte); font-weight: 650; font-variant-numeric: tabular-nums; }
.ww-point { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ww-point.ww-gelee { background: var(--ww-attention); }
.ww-point.ww-libre { background: var(--ww-ok); }
.ww-aide-deleg { margin-top: 8px; border-top: 1px solid var(--ww-ligne); padding-top: 10px; }
.ww-aide-deleg summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ww-doux); cursor: pointer; }
.ww-aide-deleg summary::-webkit-details-marker { display: none; }
.ww-aide-deleg summary svg { width: 16px; height: 16px; }
.ww-aide-deleg summary:hover { color: var(--ww-texte); }
.ww-aide-deleg ul { margin: 10px 0 2px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ww-doux); line-height: 1.45; }
.ww-aide-deleg li::marker { color: var(--ww-accent); }
.ww-deleg-globales { display: flex; flex-direction: column; gap: 10px; }
.ww-deleg-globales:empty { display: none; }
.ww-carte-action { background: var(--ww-surface); border: 1px solid var(--ww-ligne); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ww-carte-action h4 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.01em; }
.ww-centre { text-align: center; }
.ww-liste-deleg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ww-liste-deleg li { background: var(--ww-surface); border: 1px solid var(--ww-ligne); border-radius: 18px; padding: 15px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.ww-deleg-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ww-deleg-montant { font-size: 20px; font-weight: 720; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ww-deleg-montant small { font-size: 12.5px; font-weight: 600; color: var(--ww-doux); margin-left: 5px; letter-spacing: 0; }
.ww-etat { font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: 99px; white-space: nowrap; letter-spacing: .01em; }
.ww-etat.ww-gelee { color: var(--ww-attention); background: color-mix(in srgb, var(--ww-attention) 14%, transparent); }
.ww-etat.ww-libre { color: var(--ww-ok); background: color-mix(in srgb, var(--ww-ok) 14%, transparent); }
.ww-etat.ww-encours { color: var(--ww-accent); background: color-mix(in srgb, var(--ww-accent) 14%, transparent); }
.ww-deleg-seq { font-size: 12.5px; color: var(--ww-doux); margin-bottom: 6px; }
.ww-deleg-seq code { font-size: 11.5px; }
.ww-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; padding: 5px 0; border-top: 1px solid var(--ww-ligne); }
.ww-kv > span:first-child { color: var(--ww-doux); }
.ww-kv > span:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ww-kv small { display: block; font-weight: 500; color: var(--ww-doux); font-size: 11.5px; }
.ww-kv.ww-net > span:last-child { color: var(--ww-ok); }
.ww-deleg-texte { font-size: 13px; color: var(--ww-doux); padding-top: 6px; border-top: 1px solid var(--ww-ligne); }
.ww-liste-deleg .ww-btn, .ww-carte-action .ww-btn { margin-top: 8px; padding: 11px 14px; font-size: 14.5px; }
.ww-recap-hero { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ww-parcours { list-style: none; margin: 2px 0 0; padding: 14px 0 4px; display: flex; justify-content: center; align-items: center; gap: 14px; border-top: 1px solid var(--ww-ligne); }
.ww-parcours li { display: flex; align-items: center; gap: 9px; }
.ww-parcours li:first-child::after { content: ""; width: 34px; margin-left: 6px; border-top: 1.5px dashed color-mix(in srgb, var(--ww-doux) 45%, transparent); }
.ww-parcours i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--ww-surface-2); color: var(--ww-doux); }
.ww-parcours li.ww-actif i { background: var(--btn-grad); color: var(--ww-accent-texte); }
.ww-parcours span { display: flex; flex-direction: column; line-height: 1.2; }
.ww-parcours b { font-size: 13.5px; }
.ww-parcours small { font-size: 11.5px; color: var(--ww-doux); }
.ww-recap .ww-lignes-cout { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; font-size: 14px; }
.ww-recap .ww-lignes-cout dt, .ww-recap .ww-lignes-cout dd { padding: 10px 0; border-top: 1px solid var(--ww-ligne); margin: 0; }
.ww-recap .ww-lignes-cout dt { color: var(--ww-doux); padding-right: 12px; }
.ww-recap .ww-lignes-cout dd { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; word-break: normal; white-space: nowrap; }
.ww-lignes-cout dd small { display: block; color: var(--ww-doux); font-weight: 500; font-size: 11.5px; }
.ww-recap .ww-lignes-cout .ww-net { color: var(--ww-ok); font-weight: 750; font-size: 16px; }
.ww-note-gratuit { font-size: 13px; color: var(--ww-doux); text-align: center; }
.ww-note-gratuit:empty { display: none; }

.ww-toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ww-texte); color: var(--ww-bg); padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; transition: transform .3s, opacity .3s; z-index: 1000; max-width: calc(100% - 32px); text-align: center; }
.ww-toast.ww-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 360px) {
  .ww-solde { font-size: 34px; }
  .ww-mots { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ww *, .ww *::before, .ww *::after { animation: none !important; transition: none !important; }
}

/* ================================================================== standalone PPWallet.create / restore screens
   (site classes + .pw-*; also loaded by start.html) */
.pw { display: flex; flex-direction: column; gap: var(--sp-lg); }
.pw-ico { line-height: 0; flex: none; display: inline-flex; }
.pw-ico svg { display: block; max-width: none; }
.pw-addr-inline { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; overflow-wrap: anywhere; word-break: break-all; color: var(--text-1); background: var(--surface-2); border: 1px solid var(--border-default); border-radius: var(--r-md); padding: 8px 10px; user-select: all; }
.pw-flow { gap: var(--sp-md); max-width: 720px; margin: 0 auto; width: 100%; }
.pw-flow-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); min-height: 32px; }
.pw-steps { display: flex; gap: 6px; }
.pw-steps i { width: 28px; height: 4px; border-radius: 4px; background: var(--surface-3); transition: background var(--t-normal); }
.pw-steps i.fait { background: var(--primary); }
.pw-mots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; transition: filter var(--t-normal); user-select: text; }
.pw-mots span { display: flex; align-items: baseline; gap: 6px; background: var(--surface-2); border: 1px solid var(--border-default); border-radius: var(--r-md); padding: 8px 10px; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-1); }
.pw-mots span i { font-style: normal; color: var(--text-3); font-size: 11px; min-width: 16px; text-align: right; }
.pw-flou { filter: blur(7px); user-select: none; pointer-events: none; }
.pw-quiz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-sm); }
.pw-jauge { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin: -2px 0 6px; }
.pw-jauge i { display: block; height: 100%; width: 0; background: var(--danger); transition: width var(--t-normal), background var(--t-normal); }
.pw-jauge[data-force="1"] i { width: 25%; background: var(--danger); }
.pw-jauge[data-force="2"] i { width: 50%; background: var(--warning); }
.pw-jauge[data-force="3"] i { width: 75%; background: var(--primary); }
.pw-jauge[data-force="4"] i { width: 100%; background: var(--success); }
.pw-depot { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-md); color: var(--text-2); cursor: pointer; font-size: 13px; }
.pw-depot:hover { border-color: var(--primary); color: var(--text-1); }
.pw .form-group[hidden] { display: none; }
.pw-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pw-done { display: flex; flex-direction: column; gap: var(--sp-xs); }
.pw-done-addr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-sm); }
.pw-done-addr code { flex: 1 1 280px; }
@media (max-width: 680px) {
  .pw-mots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw-quiz { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pw-mots, .pw-steps i, .pw-jauge i { transition: none; }
}

/* "Your PROX at work" (wallet view, under the balance card): one bar, two figures, one button per thing to fix */
.ww-travail { background: var(--ww-surface); border: 1px solid var(--ww-ligne); border-radius: 22px; padding: 16px 18px 13px; box-shadow: var(--ww-ombre); display: flex; flex-direction: column; gap: 9px; }
.ww-travail[hidden] { display: none; }
.ww-travail-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ww-travail-pct { font-size: 21px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ww-ok); }
.ww-travail-pct.ww-bas { color: var(--ww-attention); }
.ww-jauge { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--ww-doux) 20%, transparent); overflow: hidden; }
.ww-jauge i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--ww-accent), var(--ww-accent-2)); transition: width .5s ease; }
.ww-travail-chiffres { display: flex; flex-wrap: wrap; gap: 3px 16px; font-size: 13px; color: var(--ww-doux); }
.ww-travail-chiffres > span { display: inline-flex; align-items: center; gap: 6px; }
.ww-travail-chiffres b { color: var(--ww-texte); font-weight: 650; font-variant-numeric: tabular-nums; }
.ww-point.ww-actif { background: var(--ww-accent); }
.ww-point.ww-oisif { background: color-mix(in srgb, var(--ww-doux) 42%, transparent); }
.ww-travail-perte, .ww-travail-ok { margin: 0; font-size: 13.5px; font-weight: 600; }
.ww-travail-perte { color: var(--ww-attention); }
.ww-travail-ok { color: var(--ww-ok); }
.ww-travail-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid var(--ww-ligne); }
.ww-travail-ligne > span { display: flex; flex-direction: column; min-width: 0; }
.ww-travail-ligne b { font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ww-travail-ligne b small { font-size: 12px; font-weight: 600; color: var(--ww-doux); }
.ww-travail-ligne > span > small { font-size: 12.5px; color: var(--ww-doux); overflow-wrap: anywhere; }
.ww-travail-ligne > span > small.ww-inactif { color: var(--ww-attention); font-weight: 600; }
.ww-btn.ww-petit { padding: 9px 15px; font-size: 13.5px; border-radius: 12px; flex: none; }
.ww-travail-aide { margin-top: 1px; padding-top: 9px; }
.ww-travail-aide p { margin: 8px 0 0; font-size: 13px; color: var(--ww-doux); line-height: 1.45; }
.ww-travail-ligne.ww-attente > span:first-child > small { color: var(--ww-doux); font-weight: 500; }
.ww-travail-quand { flex: none; max-width: 46%; text-align: right; font-size: 12.5px; color: var(--ww-doux); }
.ww-liste-deleg li.ww-sans-arret .ww-deleg-texte { color: var(--ww-attention); }
