/* Planet Heroes - "Zielona moneta" direction. Light theme (.ph-theme) + dark mode for the mobile app (.ph-theme--dark).
   Token names follow the ph-front wave-1 spec (decisions/2026-11-16-specyfikacja-fali-1-css-ph-front.md, section 1):
   --ph-color-*, --ph-space-*, --ph-radius-*, --ph-font-*, --ph-shadow-*, --ph-z-*, --ph-bp-*, --ph-duration-*, --ph-size-*.
   Values follow the component documentation v3 (2026-11-17), which outranks the earlier skill and Figma.
   Status of every value: references/visual-system.md.
   Opt in with class .ph-theme (page background #EEF2FA) or .ph-theme.ph-theme--paper (warm paper alternative),
   or map these roles onto the host project's own tokens (in ph-front: :root in core/_tokens.scss).
   The old skill names (--ph-action, --ph-r-card...) are kept as aliases at the bottom so older prototypes still render.
   Contrast: WCAG 2.x, AA everywhere (decision 2026-11-16); no accepted failures for text. */
.ph-theme {
  /* ---------- colour: surfaces ---------- */
  --ph-color-bg: #EEF2FA;              /* Decision 2026-11-15. Text 14.24:1, text-secondary 6.75:1, link 4.61:1 */
  --ph-color-bg-paper: #F7F5EF;        /* Alternative background - switch with .ph-theme--paper, one per site */
  --ph-color-surface: #FFFFFF;         /* Cards, fields, panels, dialogs. 1.12:1 on bg - the shadow does the work */
  --ph-color-surface-muted: #DFE7EF;   /* Decision 2026-11-15 (mist): progress tracks, quiet panels. Only text / text-secondary on it */
  --ph-color-status-muted: #DFE7EF;    /* mist for statuses wait / ended / private - fixed in both modes (D10 P4) */
  --ph-color-overlay: rgba(20, 33, 61, .45); /* behind dialogs */

  /* ---------- colour: text ---------- */
  --ph-color-text: #14213D;            /* ink: 14.24 bg, 15.97 white, 12.79 mist */
  --ph-color-text-secondary: #475569;  /* ink-2: 6.75 bg, 7.58 white, 6.07 mist; 2.11 on ink - never on dark */
  --ph-color-eyebrow: var(--ph-color-text-secondary); /* Decision 2026-11-16: eyebrow on light surfaces #475569 */
  --ph-color-eyebrow-on-dark: #999999; /* Decision 2026-11-17 (Q1): eyebrow on ink 5.61:1. Never on light (2.54:1 on bg) */
  --ph-color-text-on-dark: #FFFFFF;    /* 15.97 on ink */
  --ph-color-ink: #14213D;            /* Fixed ink for text on pastels, statuses and tags - does NOT switch in dark mode (pastels stay light) */
  --ph-color-inverse: var(--ph-color-text);      /* filled active filter, toast; dark: white */
  --ph-color-on-inverse: var(--ph-color-text-on-dark);
  --ph-color-stat: #9FE9C7;            /* stat numbers on ink 11.38:1 */

  /* ---------- colour: action, link, focus (one blue, decision 2026-11-17 Q2) ---------- */
  --ph-color-action: #2563EB;          /* Decision 2026-11-16: primary button. White label 5.17:1 */
  --ph-color-action-hover: #1D4ED8;    /* Decision 2026-11-16: hover; also action-coloured text on pastels and mist (5.37-5.62:1) */
  --ph-color-action-rgb: 37, 99, 235;  /* only for rgba(var(--ph-color-action-rgb), a) */
  --ph-color-on-action: #FFFFFF;
  --ph-color-link: var(--ph-color-action);  /* Decision 2026-11-17 (Q2): 4.61 bg, 5.17 white; on pastels/mist use action-hover */
  --ph-color-focus: var(--ph-color-action); /* Decision 2026-11-17 (Q2): 3 px ring, 4.61 bg / 5.17 white */
  --ph-color-accent: #4798F5;          /* Decision 2026-11-16: accents and illustrations only, never text or button fill (2.97:1) */
  --ph-color-info: var(--ph-color-action-hover); /* info text on sky 5.47:1 */

  /* ---------- colour: status ---------- */
  --ph-color-success: #166534;         /* text 6.36 bg / 7.13 white / 6.49 on success-bg */
  --ph-color-success-bg: #DCFCE7;
  --ph-color-green: #22C55E;           /* Decision A4 2026-11-29: backgrounds and decoration under ink text (7.01:1); never text (2.28 on white) - text uses success. Replaces ph-front $green-light #2FE7A0 */
  --ph-color-error: #B42318;           /* text 5.86 bg / 6.57 white / 6.05 on error-bg / 5.45 on error-bg-strong */
  --ph-color-error-hover: #912018;     /* hover of a danger button, white 8.66:1 */
  --ph-color-error-bg: #FEF3F2;
  --ph-color-error-bg-strong: #FEE4E2;
  --ph-color-status-error: #B42318;    /* rejected status text on error-bg-strong, fixed in both modes (D10 P4) */
  --ph-color-status-error-bg: #FEE4E2; /* rejected status pill, fixed in both modes (D10 P4) */
  --ph-color-status-success: #166534;  /* verified status pill text, fixed in both modes (D10 P4) */
  --ph-color-status-success-bg: #DCFCE7;
  --ph-color-reward-action: #2FD6AD;   /* EXCEPTION D10 P3 2026-12-01 (one colour for light and dark, team decision 2026-12-01): mobile app Rewards tab only (buttons, „Oferty / Moje kody”), white text 1.85:1 - below AA, accepted. Never in ph-front or on landings */
  --ph-color-warning: #92400E;         /* docs v3: text 6.32 bg / 7.09 white / 5.94 on sand */
  --ph-color-warning-bg: var(--ph-color-sand);
  --ph-color-rating: #F2C94C;          /* star fill only, never text (1.59:1 on white) */

  /* ---------- colour: pastels (each has one role) ---------- */
  --ph-color-mint: #94E9E08C;          /* Decision 2026-11-16: events, eco. Translucent: #C4F3EE on white, #BDEDEC on bg. Ink 12.54-13.24 */
  --ph-color-mint-solid: #C4F3EE;      /* mint as rendered on white - use over photos or other colours */
  --ph-color-sky: #D1ECFE;             /* Decision 2026-11-16: movement, the app, cleanup-action tags. Ink 13.04 */
  --ph-color-sand: #FFE9B8;            /* rewards, numbers, "Promowane", warnings. Ink 13.39 */

  /* ---------- colour: borders ---------- */
  --ph-color-border-field: #7C8799;    /* Decision 2026-11-17 (Q3): fields, selects, inactive filters, ghost button. 3.63 white / 3.24 bg (WCAG 1.4.11) */
  --ph-color-border: #E2DED3;          /* decorative lines and separators only - 1.34:1, carries no meaning */

  /* ---------- colour: gradients (named, each with a place - rule 3) ---------- */
  --ph-color-gradient-band: linear-gradient(90deg, #1F63E0 0%, #16A6C9 55%, #6FC8AA 100%); /* #1F63E0 lives only here (Q2); end #6FC8AA per Figma set A6 (2026-11-29) */
  --ph-color-gradient-brand: linear-gradient(135deg, #14B8A6 0%, #2563EB 100%);
  --ph-color-gradient-eco: linear-gradient(135deg, #22C55E 0%, #14B8A6 100%);
  --ph-color-gradient-card: linear-gradient(145deg, #1DBFC4 0%, #517EE9 100%);   /* Decision A5/A6 2026-11-29: Green Coins cards; WHITE text as an accepted exception to AA (2.26-3.81:1) */
  --ph-color-gradient-community: linear-gradient(to bottom right, #615FFF 0%, #9810FA 100%); /* Decision D4 2026-11-30, values from app code 2026-12-01: invites, referrals, teams, group challenges only; white text 4.58-5.54 (AA); inverse button; max one block per screen */
  --ph-shadow-community: 0 6px 18px rgba(0, 0, 0, .12); /* app code 2026-12-01 */
  /* Switch (D10 P5 2026-12-01): Material 3 shape as in the app, system colours, same in both modes */
  --ph-switch-track-off: var(--ph-color-border-field); /* 3.63 white / 4.39 dark card */
  --ph-switch-track-on: var(--ph-color-action);        /* 5.17 white / 3.08 dark card */
  --ph-switch-thumb: #FFFFFF;
  --ph-switch-width: 52px; --ph-switch-height: 32px; --ph-switch-thumb-off: 16px; --ph-switch-thumb-on: 24px;
  --ph-color-gradient-hero: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);   /* hero section; white text 5.17-5.70 */
  --ph-color-gradient-progress: linear-gradient(90deg, #22C55E, #14B8A6);
  --ph-color-gradient-cta: linear-gradient(315deg, #14B8A6 0%, #2563EB 100%);        /* Decision 2026-11-15: blue under the text */
  --ph-color-gradient-cta-mobile: linear-gradient(0deg, #14B8A6 0%, #2563EB 100%);
  --ph-color-gradient-logo: linear-gradient(0deg, #624FE6 10%, #3BBBEC 100%);       /* Decision A6 2026-11-29: logo only, no text */

  /* ---------- palette: base layer (decision A8 2026-11-29, D12 2026-12-01) ----------
     Source: Figma frame „DESIGN SYSTEM v2.0 · Unified” (node 518:1706), page Colors. Semantic tokens above point to these
     steps where they match; where they differ, the semantic token wins (AA decisions). Do not use palette steps for text
     without checking contrast. Purple = decision D13 (accepted 2026-12-01), not in the Figma frame yet - add it there. */
  /* blue: PH Brand · logo #3BBBEC → #517EE9 */
  --ph-palette-blue-50: #E9F6FE;
  --ph-palette-blue-100: #D1ECFE;
  --ph-palette-blue-200: #9DD3F7;
  --ph-palette-blue-300: #39C3F8;
  --ph-palette-blue-400: #4798F5;
  --ph-palette-blue-500: #517EE9;
  --ph-palette-blue-600: #3655D0;
  --ph-palette-blue-700: #2840B0;
  --ph-palette-blue-800: #1C2D8A;
  --ph-palette-blue-900: #111D63;
  /* teal: GC Teal · GreenCoin #2FD1B1, eco accent #14B8A6 */
  --ph-palette-teal-50: #F0FDFA;
  --ph-palette-teal-100: #CCFBF1;
  --ph-palette-teal-200: #99F6E4;
  --ph-palette-teal-300: #5EEAD4;
  --ph-palette-teal-400: #2FD1B1;
  --ph-palette-teal-500: #14B8A6;
  --ph-palette-teal-600: #0D9488;
  --ph-palette-teal-700: #0F766E;
  --ph-palette-teal-800: #115E59;
  --ph-palette-teal-900: #134E4A;
  /* green: eco / success */
  --ph-palette-green-50: #F0FDF4;
  --ph-palette-green-100: #DCFCE7;
  --ph-palette-green-200: #BBF7D0;
  --ph-palette-green-300: #86EFAC;
  --ph-palette-green-400: #4ADE80;
  --ph-palette-green-500: #22C55E;
  --ph-palette-green-600: #16A34A;
  --ph-palette-green-700: #15803D;
  --ph-palette-green-800: #166534;
  --ph-palette-green-900: #14532D;
  /* pink: tertiary / category (5 steps after 600 missing in Figma) */
  --ph-palette-pink-50: #FEF0F9;
  --ph-palette-pink-100: #FBCCE9;
  --ph-palette-pink-200: #F89FD8;
  --ph-palette-pink-300: #F36EC9;
  --ph-palette-pink-400: #EE46BC;
  --ph-palette-pink-500: #D42EA3;
  --ph-palette-pink-600: #A82283;
  /* grey: neutrals · Dark Navy #0F172A */
  --ph-palette-grey-50: #FAFAFA;
  --ph-palette-grey-100: #F1F5F9;
  --ph-palette-grey-200: #E2E8F0;
  --ph-palette-grey-300: #CBD5E1;
  --ph-palette-grey-400: #94A3B8;
  --ph-palette-grey-500: #64748B;
  --ph-palette-grey-600: #475569;
  --ph-palette-grey-700: #334155;
  --ph-palette-grey-800: #1E293B;
  --ph-palette-grey-900: #0F172A;
  /* purple: D13 accepted 2026-12-01: 100 Figma Purple/100 (cyfrowy detoks), 200 [S] from Figma swatch, 300/400 community gradient, 500 hero gradient end / sleep icon */
  --ph-palette-purple-50: #F4F1FF;
  --ph-palette-purple-100: #B8A1FF;
  --ph-palette-purple-200: #7F6BFF;
  --ph-palette-purple-300: #615FFF;
  --ph-palette-purple-400: #9810FA;
  --ph-palette-purple-500: #7C3AED;
  --ph-palette-purple-600: #6D28D9;
  --ph-palette-purple-700: #5B21B6;
  --ph-palette-purple-800: #4C1D95;
  --ph-palette-purple-900: #2E1065;
  /* special tokens from the v2.0 frame - reference values, see notes */
  --ph-palette-gc-green: #2FD6AD;      /* GreenCoin (app); not a button fill (D1), reward-action in both modes (P3) */
  --ph-palette-gold: #FFD700;          /* Coin icon in the frame - NOT USED: no gold coin (decision C4) */
  --ph-palette-error-red: #EF4444;     /* Errors in the frame - text uses --ph-color-error #B42318 (3.76:1 on white fails AA) */
  --ph-palette-warning: #F59E0B;       /* Alerts in the frame - text uses --ph-color-warning #92400E (2.15:1 on white fails AA) */
  --ph-palette-dark-navy: #0F172A;     /* Text/BG dark in the frame - ink is #14213D (decision A7) */
  --ph-palette-off-white: #F8FAFC;     /* Page BG in the frame - page bg is #EEF2FA (decision 2026-11-15) */

  /* ---------- space (4/8 grid) ---------- */
  --ph-space-0: 0;
  --ph-space-1: 4px;
  --ph-space-2: 8px;
  --ph-space-3: 12px;
  --ph-space-4: 16px;
  --ph-space-5: 20px;
  --ph-space-6: 24px;
  --ph-space-8: 32px;
  --ph-space-10: 40px;
  --ph-space-12: 48px;
  --ph-space-16: 64px;
  --ph-space-20: 80px;
  --ph-space-gutter: 24px;             /* 16px on small screens (media query below) */
  --ph-space-gap: 24px;                /* grid gap; 16px on small screens */
  --ph-space-section: clamp(72px, 11vw, 150px); /* entry pages */

  /* ---------- radius ---------- */
  --ph-radius-sm: 8px;
  --ph-radius-field: 12px;
  --ph-radius-card: 16px;              /* Decision A2 2026-11-29 (Q6): 16 px, as Figma and B2B */
  --ph-radius-block: 24px;             /* CTA, form panel, dialog, profile header */
  --ph-radius-pill: 999px;             /* Decision 2026-11-17: buttons, tags, filters, status */
  --ph-radius-round: 50%;

  /* ---------- font ---------- */
  --ph-font-family-base: "Poppins", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ph-font-family-display: var(--ph-font-family-base); /* Decision 2026-11-15: Poppins for headings too */
  --ph-font-weight-regular: 400;
  --ph-font-weight-medium: 500;
  --ph-font-weight-semibold: 600;      /* every heading (decision 2026-11-15) */
  --ph-font-size-xs: 12px;             /* tag, status */
  --ph-font-size-sm: 13px;             /* meta, eyebrow */
  --ph-font-size-md: 14px;             /* filters, labels */
  --ph-font-size-base: 16px;           /* body, button, field */
  --ph-font-size-lg: 18px;             /* card title */
  --ph-font-size-lead: clamp(17px, 1.4vw, 19px);
  --ph-font-size-h3: 20px;
  --ph-font-size-h2: clamp(28px, 3.2vw, 40px);
  --ph-font-size-h2-account: clamp(24px, 2.4vw, 30px);   /* Decision 2026-11-16 */
  --ph-font-size-h1: clamp(2.3rem, 5vw, 4.2rem);         /* Decision 2026-11-15: 36.8-67.2 px */
  --ph-font-size-h1-detail: clamp(1.75rem, 3vw, 2.5rem); /* Decision 2026-11-16: every detail screen, 28-40 px */
  --ph-font-line-height-h1: 1.04;
  --ph-font-line-height-heading: 1.12;
  --ph-font-line-height-snug: 1.3;
  --ph-font-line-height-body: 1.6;
  --ph-font-tracking-h1: -0.025em;
  --ph-font-tracking-display: -0.02em;
  --ph-font-tracking-eyebrow: 0.08em;

  /* ---------- shadow ---------- */
  --ph-shadow-card: 0 8px 24px rgba(20, 33, 61, .07);
  --ph-shadow-action: 0 6px 18px rgba(37, 99, 235, .28); /* matched to #2563EB */
  --ph-shadow-menu: 0 18px 48px rgba(20, 33, 61, .16);
  --ph-shadow-dialog: 0 24px 60px rgba(20, 33, 61, .25);
  --ph-shadow-none: none;

  /* ---------- layers (ph-front's current values under names) ---------- */
  --ph-z-base: 0;
  --ph-z-raised: 1;
  --ph-z-dropdown: 1000;
  --ph-z-dropdown-top: 1001;
  --ph-z-header: 5000;
  --ph-z-popover: 10000;
  --ph-z-mobile-menu: 10001;
  --ph-z-modal: 10005;
  --ph-z-loader: 99999;
  --ph-z-toast: 999999;

  /* ---------- breakpoints (reference values; CSS cannot use custom properties in @media) ---------- */
  --ph-bp-sm: 480px;
  --ph-bp-md: 768px;
  --ph-bp-nav: 886px;                  /* ph-front header switches desktop/mobile here */
  --ph-bp-lg: 992px;
  --ph-bp-xl: 1200px;

  /* ---------- motion ---------- */
  --ph-duration-instant: 80ms;
  --ph-duration-fast: 120ms;
  --ph-duration-base: 200ms;
  --ph-duration-slow: 300ms;
  --ph-duration-slower: 400ms;
  --ph-ease-standard: cubic-bezier(.2, .7, .2, 1);

  /* ---------- size ---------- */
  --ph-size-control-md: 52px;          /* Decision 2026-11-17: standard button */
  --ph-size-control-sm: 42px;          /* Decision 2026-11-17: small button */
  --ph-size-field: 48px;               /* Decision 2026-11-17: text field, select */
  --ph-size-filter: 40px;
  --ph-size-icon-button: 40px;
  --ph-size-container: 1342px;         /* Decision A3 2026-11-29 (Q7): 1342 px everywhere - ph-front, landing, new pages */
  --ph-size-h1-measure: 13ch;
  --ph-size-h1-detail-measure: 28ch;
  --ph-size-h1-gap: 22px;
  --ph-size-h1-detail-gap: 18px;
  --ph-size-band: 64px;                /* gradient band under a light hero; 40px on small screens */
  --ph-size-coin-marker: 18px;         /* Green Coin: assets/coin.svg */
  --ph-size-coin-nav: 22px;
  --ph-size-coin-counter: 44px;
  --ph-size-coin-hero: clamp(72px, 11vw, 150px);

  /* ---------- aliases: old skill names (2026-11-15/16). Do not use in new work ---------- */
  --ph-bg: var(--ph-color-bg);
  --ph-paper: var(--ph-color-bg-paper);
  --ph-surface: var(--ph-color-surface);
  --ph-ink: var(--ph-color-text);
  --ph-ink-2: var(--ph-color-text-secondary);
  --ph-line: var(--ph-color-border);          /* old role "fields and filters" is now --ph-color-border-field */
  --ph-action: var(--ph-color-action);        /* was #4798F5 - old files now get the AA blue */
  --ph-action-hover: var(--ph-color-action-hover);
  --ph-on-action: var(--ph-color-on-action);
  --ph-link: var(--ph-color-link);
  --ph-eyebrow: var(--ph-color-eyebrow);
  --ph-eyebrow-on-dark: var(--ph-color-eyebrow-on-dark);
  --ph-mist: var(--ph-color-surface-muted);
  --ph-mint: var(--ph-color-mint);
  --ph-mint-solid: var(--ph-color-mint-solid);
  --ph-sky: var(--ph-color-sky);
  --ph-sand: var(--ph-color-sand);
  --ph-error: var(--ph-color-error);
  --ph-error-bg: var(--ph-color-error-bg);
  --ph-error-bg-strong: var(--ph-color-error-bg-strong);
  --ph-live: var(--ph-color-success);
  --ph-live-bg: var(--ph-color-success-bg);
  --ph-stat: var(--ph-color-stat);
  --ph-band: var(--ph-color-gradient-band);
  --ph-grad-brand: var(--ph-color-gradient-brand);
  --ph-grad-eco: var(--ph-color-gradient-eco);
  --ph-grad-card: var(--ph-color-gradient-card);
  --ph-grad-community: var(--ph-color-gradient-community);
  --ph-grad-hero: var(--ph-color-gradient-hero);
  --ph-grad-progress: var(--ph-color-gradient-progress);
  --ph-cta-grad: var(--ph-color-gradient-cta);
  --ph-cta-grad-mobile: var(--ph-color-gradient-cta-mobile);
  --ph-font-body: var(--ph-font-family-base);
  --ph-font-display: var(--ph-font-family-display);
  --ph-weight-display: var(--ph-font-weight-semibold);
  --ph-track-display: var(--ph-font-tracking-display);
  --ph-h1: var(--ph-font-size-h1);
  --ph-h1-leading: var(--ph-font-line-height-h1);
  --ph-h1-track: var(--ph-font-tracking-h1);
  --ph-h1-measure: var(--ph-size-h1-measure);
  --ph-h1-measure-long: 22ch;                 /* superseded 2026-11-16 by the detail h1 */
  --ph-h1-gap: var(--ph-size-h1-gap);
  --ph-h1-detail: var(--ph-font-size-h1-detail);
  --ph-h1-detail-leading: var(--ph-font-line-height-heading);
  --ph-h1-detail-measure: var(--ph-size-h1-detail-measure);
  --ph-h1-detail-gap: var(--ph-size-h1-detail-gap);
  --ph-h2: var(--ph-font-size-h2);
  --ph-h2-account: var(--ph-font-size-h2-account);
  --ph-h3: var(--ph-font-size-h3);
  --ph-lead: var(--ph-font-size-lead);
  --ph-text: var(--ph-font-size-base);
  --ph-leading: var(--ph-font-line-height-body);
  --ph-container: var(--ph-size-container);
  --ph-gutter: var(--ph-space-gutter);
  --ph-section: var(--ph-space-section);
  --ph-gap: var(--ph-space-gap);
  --ph-r-pill: var(--ph-radius-pill);
  --ph-r-card: var(--ph-radius-card);
  --ph-r-block: var(--ph-radius-block);
  --ph-r-field: var(--ph-radius-field);
  --ph-ease: var(--ph-ease-standard);
  --ph-focus: 3px solid var(--ph-color-focus);
  --ph-band-h: var(--ph-size-band);
  --ph-coin-marker: var(--ph-size-coin-marker);
  --ph-coin-counter: var(--ph-size-coin-counter);
  --ph-coin-nav: var(--ph-size-coin-nav);
  --ph-coin-hero: var(--ph-size-coin-hero);
}
/* Dark mode - mobile app (decision D5, values from the app code, fixes D10 2026-12-01). ph-front has no dark mode.
   Put on the same element as .ph-theme. Pastels, statuses, gradients and activity tiles stay as in light mode. */
.ph-theme--dark {
  --ph-color-bg: #14161C;              /* darkBg */
  --ph-color-surface: #1E222A;         /* darkSurface */
  --ph-color-surface-alt: #181B21;     /* darkLight */
  --ph-color-surface-muted: #262A32;   /* grey100: quiet panels, progress track, disabled field (#C1C5CC 8.31) */
  --ph-color-text: #FFFFFF;            /* 18.08 bg / 15.94 card */
  --ph-color-text-secondary: #C1C5CC;  /* 10.44 bg / 9.20 card */
  --ph-color-eyebrow: var(--ph-color-text-secondary);
  --ph-color-action: #2563EB;          /* D10 P1: button fill unchanged; white 5.17, fill vs bg 3.50 / card 3.08 */
  --ph-color-link: #4798F5;            /* D10 P2: links 6.09 bg / 5.37 card */
  --ph-color-focus: #4798F5;
  --ph-color-error: #EB5757;           /* error text on dark 5.20 bg / 4.58 card */
  --ph-color-error-bg: #3A1A17;        /* [R] not in the app code: error note / alert background on dark; #EB5757 4.50, white 15.67 - to confirm with the mobile dev */
  --ph-color-error-bg-strong: #3A1A17;
  --ph-color-success: #2FE7A0;         /* app code (accepted activity): income amounts and success text on dark, 9.91 card / 11.25 bg */
  --ph-color-success-bg: #10352A;      /* app code tonal green: success alert on dark, #2FE7A0 8.35 */
  --ph-color-border: #363A43;          /* darkGrey200: decorative card edge */
  --ph-color-inverse: #FFFFFF;
  --ph-color-on-inverse: #14161C;
  --ph-color-tonal-blue: #16324A; --ph-color-tonal-blue-strong: #1C3A55;
  --ph-color-tonal-green: #10352A; --ph-color-tonal-green-strong: #155741;
  --ph-color-tonal-violet: #2E1B45;    /* white 8.50-15.45 on all tonal backgrounds */
  --ph-color-skeleton: #363A43; --ph-color-skeleton-highlight: #4A4E57;
  --ph-shadow-card: none;              /* Z13: no shadows on dark */
  color-scheme: dark;
}
/* alternative: warm paper background (campaign pages). One background per site. Put on the same element as .ph-theme. */
.ph-theme--paper { --ph-color-bg: var(--ph-color-bg-paper); }
@media (max-width: 560px) {
  .ph-theme { --ph-space-gap: 16px; --ph-space-gutter: 16px; --ph-size-band: 40px; --ph-size-coin-hero: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-theme { --ph-duration-instant: .01ms; --ph-duration-fast: .01ms; --ph-duration-base: .01ms; --ph-duration-slow: .01ms; --ph-duration-slower: .01ms; }
}
