/* Creators Packs design tokens.
   Every colour, size and space in Creator Console comes from here — components never use raw values.
   Values marked (TextFX) are the ones TextFX already uses, so the two products match.
   Dark only: Premiere panels are dark, and TextFX forces its dark theme inside Premiere too.

   Colour roles (the Creators Packs language)
     accent (yellow)  — every interaction state: hover, active, selected, running, focus.
     brand (RGBY)     — branding only: the logo and the streak marks beside headings. Never on
                        controls, so colour on a control always means something.
     success (green)  — a brief flash when an action worked, and the status line.
     error (red)      — a brief flash when one failed, errors, and destructive actions.
     status           — feedback only (the status line). Deliberately not the brand colours. */
:root {
  color-scheme: dark;

  /* Surfaces */
  --cp-bg: #111114;               /* (TextFX) page */
  --cp-surface: #1a1a1f;          /* (TextFX) cards, bars */
  --cp-surface-raised: #24242b;   /* (TextFX "chip") buttons, controls */
  --cp-surface-hover: #2c2c34;
  --cp-surface-pressed: #202026;
  --cp-border: #2b2b33;           /* (TextFX "line") */
  --cp-border-strong: #4a4a55;
  --cp-border-active: var(--cp-accent);

  /* Text */
  --cp-text-primary: #ececf0;     /* (TextFX "ink") */
  --cp-text-secondary: #9a9aa6;   /* (TextFX "muted") */
  --cp-text-disabled: #5c5c66;

  /* Interaction accent: Creators Packs yellow (TextFX streak yellow) */
  --cp-accent: #ffe103;
  --cp-accent-hover: #fff04d;
  --cp-accent-active: #e6ca00;
  --cp-accent-ink: #111114;       /* text on a yellow fill */
  --cp-accent-soft: rgba(255, 225, 3, 0.1);
  --cp-accent-line: rgba(255, 225, 3, 0.6);

  /* Brand streak colours (TextFX, sampled from the logos) */
  --cp-brand-red: #ff211e;
  --cp-brand-blue: #019dff;
  --cp-brand-yellow: #ffe103;
  --cp-brand-green: #09ff80;

  /* Status */
  --cp-success: #4cc38a;
  --cp-info: #8fb8ff;
  --cp-warning: #ff9f43;
  --cp-error: #ff5c57;

  /* Shape */
  --cp-radius-xs: 4px;            /* (TextFX) small fields */
  --cp-radius-sm: 6px;            /* (TextFX) segments inside a control */
  --cp-radius-md: 8px;            /* (TextFX) buttons, controls */
  --cp-radius-lg: 12px;           /* (TextFX) cards */
  --cp-radius-pill: 999px;
  --cp-border-width: 1px;

  /* Space */
  --cp-space-2xs: 2px;
  --cp-space-xs: 4px;
  --cp-space-sm: 6px;
  --cp-space-md: 10px;
  --cp-space-lg: 16px;
  --cp-gutter: var(--cp-space-md); /* panel edge padding; narrower panels reduce it */

  /* Controls */
  --cp-control-height-xs: 20px;
  --cp-control-height-sm: 26px;   /* (TextFX) segmented buttons */
  --cp-control-height-md: 32px;   /* (TextFX) buttons */
  --cp-tool-min-width: 64px;      /* a tool button never gets narrower than this */
  --cp-tool-height: 56px;
  --cp-icon-sm: 14px;
  --cp-icon-md: 16px;
  --cp-icon-lg: 18px;

  /* Type */
  --cp-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --cp-font-mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  --cp-text-2xs: 9.5px;
  --cp-text-xs: 10.5px;
  --cp-text-sm: 12px;
  --cp-text-md: 13px;
  --cp-heading-size: 11.5px;      /* (TextFX) section headings */
  --cp-line-height: 1.4;
  --cp-weight-regular: 400;
  --cp-weight-semibold: 600;
  --cp-weight-heavy: 800;
  --cp-tracking-caps: 0.09em;     /* (TextFX) uppercase headings */

  /* Effects */
  --cp-focus-ring: 0 0 0 2px var(--cp-bg), 0 0 0 3.5px var(--cp-accent);
  --cp-shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.55);
  --cp-shadow-bar: 0 -10px 18px -14px rgba(0, 0, 0, 0.55); /* (TextFX) sticky bars */
  --cp-disabled-opacity: 0.55;
  --cp-duration-fast: 120ms;
  --cp-duration-medium: 200ms;
  --cp-z-menu: 900;
  --cp-z-tooltip: 1000;

  /* The four-bar streak (TextFX heading mark): four thin slanted bars fading in from the left, one per
     brand colour. Drawn by components.css; these set the bar thickness and the slant. */
  --cp-streak-bar: 1.5px;
  --cp-streak-skew: skewX(-16deg);

  /* Primary button (TextFX): glossy white lettering-style fill with the streak */
  --cp-primary-fill: linear-gradient(180deg, #ffffff 0%, #eceef2 55%, #cdd1d8 100%);
  --cp-primary-ink: #111114;
  --cp-primary-border: rgba(255, 255, 255, 0.75);
  --cp-primary-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 14px rgba(1, 157, 255, 0.22);
}
