/*
  Cadence tokens. Change these to restyle the app.
  The same names are used in react/src/cadence/tokens.css and in the Figma file.
*/
:root {
  color-scheme: light;
  --cd-bg: #f7f7fb;
  --cd-surface: #ffffff;
  --cd-column: #efeef6;
  --cd-ink: #191630;
  --cd-muted: #5d5978;
  --cd-line: #e6e4f0;
  --cd-accent: #6d4aff;
  --cd-accent-text: #4b2fd6;
  --cd-accent-soft: #f0ecff;
  --cd-accent-softer: #e3dcff;
  --cd-on-accent: #ffffff;
  --cd-focus: #6d4aff;
  --cd-good: #067647;
  --cd-good-soft: #e7f8ee;
  --cd-bad: #b42318;
  --cd-bad-soft: #fdecea;
  --cd-overlay: rgb(25 22 48 / 0.32);
  --cd-shadow: 0 1px 2px rgb(25 22 48 / 0.06);
  --cd-shadow-lift: 0 24px 50px rgb(75 47 214 / 0.25);
  --cd-shadow-panel: 0 30px 80px rgb(25 22 48 / 0.22);

  --cd-radius: 12px;
  --cd-card-radius: 10px;
  --cd-control-radius: 8px;
  --cd-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cd-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Motion: see motion.md */
  --cd-duration: 480ms;
  --cd-ease: cubic-bezier(0.34, 1.3, 0.64, 1);
  --cd-fold-ease: cubic-bezier(0.55, 0, 0.25, 1);
  --cd-fade: 160ms;
  --cd-tilt: -3deg;
}

/* A real spring where the browser supports linear(). Same 480 ms. */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --cd-ease: linear(0, 0.043, 0.15, 0.291, 0.444, 0.593, 0.727, 0.84, 0.929, 0.995, 1.041, 1.068, 1.081, 1.083, 1.078, 1.068, 1.056, 1.043, 1.031, 1.02, 1.011, 1.004, 0.999, 0.996, 1);
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --cd-bg: #0f0d1a;
  --cd-surface: #1d1a32;
  --cd-column: #16142a;
  --cd-ink: #f3f1fb;
  --cd-muted: #a9a5c6;
  --cd-line: #2f2a4a;
  --cd-accent: #6d4aff;
  --cd-accent-text: #b9abff;
  --cd-accent-soft: #251f4d;
  --cd-accent-softer: #382d78;
  --cd-on-accent: #ffffff;
  --cd-focus: #a592ff;
  --cd-good: #7be3ac;
  --cd-good-soft: #12301f;
  --cd-bad: #ffa69e;
  --cd-bad-soft: #3a1714;
  --cd-overlay: rgb(0 0 0 / 0.55);
  --cd-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
  --cd-shadow-lift: 0 24px 50px rgb(0 0 0 / 0.55);
  --cd-shadow-panel: 0 30px 80px rgb(0 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --cd-bg: #0f0d1a;
    --cd-surface: #1d1a32;
    --cd-column: #16142a;
    --cd-ink: #f3f1fb;
    --cd-muted: #a9a5c6;
    --cd-line: #2f2a4a;
    --cd-accent: #6d4aff;
    --cd-accent-text: #b9abff;
    --cd-accent-soft: #251f4d;
    --cd-accent-softer: #382d78;
    --cd-on-accent: #ffffff;
    --cd-focus: #a592ff;
    --cd-good: #7be3ac;
    --cd-good-soft: #12301f;
    --cd-bad: #ffa69e;
    --cd-bad-soft: #3a1714;
    --cd-overlay: rgb(0 0 0 / 0.55);
    --cd-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
    --cd-shadow-lift: 0 24px 50px rgb(0 0 0 / 0.55);
    --cd-shadow-panel: 0 30px 80px rgb(0 0 0 / 0.6);
  }
}
