/* ============================================
   Club720 Panel — Design Tokens
   Minimal · Simple · Easy · AI-first
   ============================================ */

:root {
  /* Brand
     Deepened from the prototype's #1d9bf0, which was drawn for a badge and not for text: white on
     it measured 3.0:1 and it as text on white 2.9:1, where 4.5:1 is what a person reading a link
     or a button label needs. These three are the same blue at the depth where both directions pass
     (5.4:1 as text on white, and white on them), and the hover pair is still a step darker than the
     colour it follows so the response to a press is still visible. */
  --primary: #0a6cbd;
  --primary-hover: #095fa8;
  --primary-active: #08528f;
  --primary-tint: #eff6ff;
  --primary-tint-2: #dbeafe;

  /* Neutrals — Chatbase zinc palette
     `muted` is the lightest text the panel draws, so it is the one that had to move: #a1a1aa
     measured 2.3:1 on white where placeholders, table meta and the sidebar's counts all sit, and
     these greys are 5.4:1 on white and 4.8:1 on the hovered canvas behind them. */
  --ink: #09090b;          /* headings, primary text */
  --slate: #52525b;        /* secondary text */
  --muted: #6b6b74;        /* placeholders, meta */
  --border: #e4e4e7;       /* cards, inputs, dividers */
  --border-strong: #d4d4d8;
  --surface: #ffffff;
  --canvas: #fafafa;
  --canvas-alt: #f4f4f5;

  /* Status
     Each of these is drawn as text on its own tint as well as on white - a badge, a state panel's
     icon - so each one is the shade that passes against the lighter of the two. `success` and
     `danger` are the two that moved; the hover for danger is a step darker still, since they now
     start where the old hover was. */
  --success: #15803d;
  --success-tint: #f0fdf4;
  --warning: #b45309;
  --warning-tint: #fefce8;
  --danger: #b91c1c;
  --danger-hover: #991b1b;
  --danger-tint: #fef2f2;

  /* AI accents */
  --ai-tint: #eff6ff;
  --ai-border: #bfdbfe;

  /* Compact workspace typography. */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 11px;   /* legal, hints */
  --fs-sm: 12px;   /* supporting text and compact controls */
  --fs-md: 13px;   /* body */
  --fs-lg: 14px;   /* labels, emphasis */
  --fs-xl: 20px;   /* page title */
  --fs-2xl: 28px;  /* display */

  --lh-control: 18px;   /* inputs, buttons */
  --lh-small: 18px;     /* small text */
  --lh-label: 20px;     /* field labels */
  --lh-body: 20px;      /* body copy */
  --lh-title: 26px;     /* titles */

  --ls-none: 0;
  --ls-heading: -0.44px;  /* titles 20-22px */
  --ls-display: -0.8px;   /* display sizes */

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 36px;

  --control-height: 32px;
  --card-padding: 16px;
  --content-width: 1440px;

  /* Radius — Chatbase: 8px controls, 12px cards */
  --r-sm: 6px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-pill: 9999px;

  /* Shadows — Chatbase: very subtle, border-driven */
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, .04);
  --shadow-md: 0 1px 2px rgba(9, 9, 11, .04), 0 4px 12px rgba(9, 9, 11, .05);
  --shadow-lg: 0 4px 12px rgba(9, 9, 11, .08), 0 16px 48px rgba(9, 9, 11, .1);

  /* Focus ring
     A solid ring rather than the prototype's 20%-alpha halo of the brand blue: that measured
     1.5:1 against the page, where a focus indicator has to be visible at 3:1, and it was faint
     enough to lose against a filled button as well. The white gap between control and ring is what
     makes it read on both - it is the surface's own colour, so the ring never sits against the
     thing it is supposed to stand apart from. */
  --ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary);

  /* Focus ring for a field the server rejected. Derived from --danger rather than the
     prototype's stale pink (#e0245e), which belonged to a palette this product no longer
     uses and had no relation to the error color it appeared alongside. */
  --ring-danger: 0 0 0 2px var(--surface), 0 0 0 4px var(--danger);
}
