/* ============================================================================
   Design Pack · compat/filedrop.css
   Maps FileDrop's existing token names onto the pack, so FileDrop can adopt
   tokens.css with ZERO visual change and migrate page by page afterwards.

     <link rel="stylesheet" href="/design-pack/tokens.css">
     <link rel="stylesheet" href="/design-pack/compat/filedrop.css">
     <style> ...the page's own CSS, which still wins... </style>

   Note --surface-1 and --ink-1: FileDrop uses these 13 times across nav.js,
   admin.html and filevault-history.html and declares them NOWHERE, so every
   use silently falls back. Mapping them here fixes that as a side effect of
   adoption. See interface-design-system.md §17.3, defect 1.

   DELETE THIS FILE when FileDrop has finished migrating to the --rx-* names.
   ============================================================================ */
:root {
  --ink:        var(--rx-ink);
  --ink-1:      var(--rx-ink);            /* was consumed but never declared */
  --ink-2:      var(--rx-ink-muted);
  --ink-3:      var(--rx-ink-subtle);

  --surface:    var(--rx-surface-page);
  --surface-1:  var(--rx-surface-card);   /* was consumed but never declared */
  --surface-2:  var(--rx-surface-sunken);
  --surface-3:  var(--rx-border);

  /* Measured across the 8 pages that declare --accent: six mean the BRAND
     purple (#7f4fff / the reverted #7347e6), two mean the ink, and NONE mean
     the state green — the nav pills that once did were moved to literals when
     v0.4.0 burned them. So the alias follows the majority; audit-log.html and
     index.html carry a one-line local binding to var(--rx-ink) instead. The
     earlier --rx-accent-ui mapping silently greened admin.html's pending
     count the day the sheet was linked (caught in gate 2). */
  --accent:     var(--rx-accent);
  --accent-on:  var(--rx-on-accent);
  --danger:     var(--rx-danger);
  --success:    var(--rx-success);      /* a state, not the accent — D17 */

  /* Tenant branding, set at runtime by FileDrop's brand.js on the recipient
     pages. These do not fall back today only because download.html and
     vault.html each declare them locally — they will the moment those :root
     blocks are deleted, which is exactly what the migration does. */
  --brand:      var(--rx-brand);
  --brand-on:   var(--rx-brand-on);

  --radius:     var(--rx-radius);
  --shadow:     var(--rx-shadow);

  --fd-content-max: var(--rx-content-max);
}
