/* FilmStudio conecta aquí los tokens comunes de la suite (--m-*) a los suyos. Va SIN capa, a propósito: el CSS de la app
   va en @layer app y lo que no lleva capa gana siempre; si esto estuviera en themes.css, ganaría motion-tokens.css y
   Noche no se aplicaría. */
:root { --m-zoom: calc(var(--lim-zoom, 1) * var(--fs-ui-scale, 1)); }
/* DIS-15: en FilmStudio claro el foco va en el burdeos de la marca (app sin azul), como PRIME con su acento. */
:root:not([data-fs-tone]) { --m-focus: #3c0d25; }

:root[data-fs-tone="noche"] {
  --m-bg: var(--motion-cream);
  --m-surface: var(--motion-white);
  --m-dialog: var(--motion-paper);
  --m-raised: #3a2831;
  --m-input: var(--motion-inset);
  --m-ink: var(--motion-ink);
  --m-muted: var(--motion-muted);
  --m-line: var(--motion-line);
  --m-field-line: #a07c93;
  --m-primary: var(--noche-yellow);
  --m-on-primary: var(--noche-on);
  --m-accent: var(--noche-lavender);
  --m-on-accent: var(--noche-on);
  --m-danger: #ff8f86;
  --m-on-danger: var(--noche-on);
  --m-ok: var(--noche-mint);
  --m-focus: var(--noche-yellow);
  --m-state: var(--motion-ink);
  --m-veil: rgb(16 4 10 / 60%);
  --m-e1: none;
  --m-e2: 0 2px 6px 2px #00000033;
  --m-e3: 0 24px 64px #00000066;
}

/* Las seis plantillas antiguas, para quien ya las usa: el menú de apps tiene que leerse sobre su barra lateral.
   Sin esto, «in motion» saldría en burdeos sobre un fondo oscuro. */
:root[data-fs-theme]:not([data-fs-theme="motion"]) {
  --m-bg: var(--bg);
  --m-surface: var(--shell-surface, var(--bg));
  --m-dialog: var(--surface-popover, var(--shell-surface, var(--bg)));
  --m-raised: var(--shell-surface-2, var(--bg));
  --m-ink: var(--text);
  --m-muted: var(--muted);
  --m-line: var(--border);
  --m-focus: var(--accent);
  --m-state: var(--text);
}
