/* Shared design tokens (teacher dashboard + teaching app). Loaded after the older stylesheets, so these win.
   Lavender / periwinkle palette; Khmer-friendly dark text for contrast.
   Layer order for the teacher page. Tokens themselves stay unlayered so they beat the older :root blocks. */
@layer tokens, base, components, utilities;

:root {
  --ink: #272a45; --muted: #666a88; --line: #e9e6f6;
  --bg: #f1effb; --card: #ffffff;
  --brand: #6b63e0; --brand-dark: #5249c6; --brand-soft: #efedff;
  --navy: #2b2a5c; --navy-2: #3a3978;
  --good: #1c9a74; --good-soft: #e1f5ec; --good-text: #0b7a54; --bad: #d9454f; --bad-soft: #fdeceb;
  --warn: #b7791f; --warn-soft: #fff1d6; --accent: #f2a53b;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(80, 70, 160, .04), 0 10px 28px rgba(80, 70, 160, .08);
  --shadow-lg: 0 20px 56px rgba(70, 60, 150, .22);
  --ring: 0 0 0 4px rgba(107, 99, 224, .2);
  --placeholder: #8a85a3;
  /* Light stop is #6d65e2 (4.56:1 with white). #6f67e4 was 4.43:1, under the 4.5 target. */
  --brand-grad: linear-gradient(135deg, #6d65e2 0%, #5249c6 100%);
  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);       /* fast, then slow */
  --spring: cubic-bezier(.34, 1.56, .64, 1);     /* small overshoot */
  /* spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  /* radius */
  --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-pill: 99px;
  /* type */
  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 20px; --t-xl: 26px; --t-2xl: 34px;
  /* stack */
  --z-nav: 40; --z-pop: 100; --z-modal: 1000; --z-toast: 1100;
  /* elevation */
  --elev-1: var(--shadow);
  --elev-2: 0 8px 24px rgba(80, 70, 160, .12);
  --elev-3: var(--shadow-lg);
}
