/* Alias layer: every colour in Dashboard.tsx resolves through these, so the whole
   dashboard rebrands by editing this file rather than 1,200 lines of inline styles.

   The dashboard was built on a cyan (#79E2FF) / lime (#C7F88A) palette on near-black.
   PL DS explicitly retires both. Nothing below introduces a colour of its own — each
   alias points at a DS semantic token, so light/dark theming comes for free. */

:root {
  --pl-bg:          var(--bg-default);
  --pl-surface:     var(--bg-secondary);
  --pl-surface-2:   var(--bg-hover);
  --pl-surface-3:   var(--bg-wash);
  --pl-border:      var(--bg-border);
  --pl-border-2:    var(--bg-border-hover);

  --pl-text:        var(--content-primary);
  --pl-text-2:      var(--content-secondary);

  /* Brand accent. Dark surfaces need the lighter poodle step for contrast; the
     primary #7E05E8 is too dense to read as text or a 1px chart line on near-black. */
  --pl-accent:      var(--poodle-primary);

  --pl-green:       var(--accent-success);
  --pl-amber:       var(--accent-warning);
  --pl-red:         var(--accent-alert);
  --pl-violet:      var(--link-base);
  --pl-rose:        var(--accent-discount);


  /* Achievement tiers stay literal metals — they are named after them. */
  --pl-bronze: #CD7F32;
  --pl-silver: #C0C0C0;
  --pl-gold:   var(--accent-warning);
}

[data-theme="dark"] {
  /* On dark the dense brand purple loses contrast against near-black panels. */
  --pl-accent: var(--poodle-40);
}

html, body { background: var(--pl-bg); color: var(--pl-text); }
