/* ==========================================================================
   tokens.css — myagentichosts design tokens.
   Deep teal for structure and actions, amber for highlights, slate for
   neutrals. Light theme only. Load this file first: every other stylesheet
   reads these variables. Change a colour here, never in the other files.
   ========================================================================== */

:root {
  /* ---- teal ramp (brand) ---------------------------------------------- */
  --mah-t50:  #F0FDFA;
  --mah-t100: #CCFBF1;
  --mah-t200: #99F6E4;
  --mah-t300: #5EEAD4;
  --mah-t400: #2DD4BF;
  --mah-t500: #14B8A6;
  --mah-t600: #0D9488;
  --mah-t700: #0F766E;
  --mah-t800: #115E59;
  --mah-t900: #134E4A;

  --mah-brand: var(--mah-t700);          /* primary buttons, active markers */
  --mah-brand-hover: var(--mah-t800);
  --mah-brand-accent: var(--mah-t900);   /* pressed */
  --mah-brand-deep: var(--mah-t900);     /* top nav */
  --mah-control: var(--mah-t600);        /* checked boxes, switches, input focus */
  --mah-link: var(--mah-t700);           /* links and small coloured text on white */

  /* ---- amber (highlight) ---------------------------------------------- */
  --mah-a50:  #FFFBEB;
  --mah-a100: #FEF3C7;
  --mah-a500: #F59E0B;
  --mah-a600: #D97706;
  --mah-a700: #B45309;
  --mah-accent: var(--mah-a500);
  --mah-accent-deep: var(--mah-a700);    /* amber text on white (AA) */

  --mah-gradient-brand: linear-gradient(140deg, #134E4A 0%, #0F766E 60%, #0D9488 100%);
  --mah-gradient-avatar: linear-gradient(135deg, #0F766E 0%, #F59E0B 130%);

  /* ---- slate neutrals ------------------------------------------------- */
  --mah-n50:  #F8FAFC;
  --mah-n100: #F1F5F9;
  --mah-n200: #E2E8F0;
  --mah-n300: #CBD5E1;
  --mah-n400: #94A3B8;
  --mah-n500: #64748B;
  --mah-n600: #475569;
  --mah-n700: #334155;
  --mah-n750: #1E293B;

  /* ---- semantic status: bg / fg pairs --------------------------------- */
  --mah-good: #16A34A;  --mah-good-bg: #E9F9EF;  --mah-good-fg: #12813F;
  --mah-warn: #F59E0B;  --mah-warn-bg: #FEF3C7;  --mah-warn-fg: #92400E;
  --mah-bad:  #DC2626;  --mah-bad-bg:  #FDEAEA;  --mah-bad-fg:  #A61B1B;
  --mah-info-bg: var(--mah-t50); --mah-info-line: var(--mah-t100); --mah-info-fg: var(--mah-t800);
  --mah-neutral-bg: var(--mah-n100);

  /* ---- surfaces -------------------------------------------------------- */
  --mah-page: #F8FAFC;
  --mah-surface: #FFFFFF;
  --mah-surface-2: var(--mah-n50);       /* table headers, subtle wells */
  --mah-line: var(--mah-n200);
  --mah-line-strong: var(--mah-n300);

  /* ---- ink ------------------------------------------------------------- */
  --mah-ink:   #0F172A;
  --mah-ink-2: var(--mah-n700);
  --mah-ink-3: var(--mah-n600);
  --mah-ink-4: var(--mah-n500);
  --mah-on-brand: #FFFFFF;
  --mah-on-brand-2: #B7E4DE;

  /* ---- typography (system fonts: the admin CSP allows no font hosts) --- */
  --mah-font-sans:  system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mah-font-brand: var(--mah-font-sans);
  --mah-font-mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --mah-fs-2xs: 11px;
  --mah-fs-xs: 11.5px;
  --mah-fs-sm: 12.5px;
  --mah-fs-13: 13px;
  --mah-fs-base: 14px;
  --mah-fs-md: 0.9375rem;
  --mah-fs-lg: 16px;
  --mah-fs-h3: 16px;
  --mah-fs-h2: 20px;
  --mah-fs-h1: 28px;

  --mah-lh-tight: 1.25;
  --mah-lh: 1.6;
  --mah-track-caps: .06em;

  /* ---- spacing (4px scale) -------------------------------------------- */
  --mah-1: 4px;   --mah-2: 8px;   --mah-3: 12px;  --mah-4: 16px;  --mah-5: 20px;
  --mah-6: 24px;  --mah-7: 32px;  --mah-8: 40px;  --mah-9: 48px;  --mah-10: 64px;

  /* ---- radii ----------------------------------------------------------- */
  --mah-r-sm: 4px;
  --mah-r-md: 6px;
  --mah-r-lg: 8px;
  --mah-r-xl: 12px;
  --mah-r-2xl: 16px;
  --mah-r-pill: 999px;

  /* ---- elevation ------------------------------------------------------- */
  --mah-sh-border: 0 0 0 1px rgba(15, 23, 42, .07);
  --mah-sh-panel:  0 2px 0 0 rgba(15, 23, 42, .06), 0 0 0 1px rgba(15, 23, 42, .07);
  --mah-sh-inner-border: inset 0 -1px 0 0 var(--mah-n200);
  --mah-sh-card:   0 4px 14px rgba(15, 23, 42, .05);
  --mah-sh-raised: 0 8px 24px rgba(15, 23, 42, .08);
  --mah-sh-overlay: 0 24px 60px rgba(15, 23, 42, .22);

  /* ---- motion ---------------------------------------------------------- */
  --mah-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mah-dur-1: 120ms;
  --mah-dur-2: 180ms;
  --mah-dur-3: 260ms;
  --mah-dur-4: 400ms;

  /* ---- focus ----------------------------------------------------------- */
  --mah-focus-ring: 0 0 0 3px rgba(245, 158, 11, .45);
  --mah-focus-ring-danger: 0 0 0 3px rgba(220, 38, 38, .30);

  /* ---- layout ---------------------------------------------------------- */
  --mah-topnav-h: 64px;
  --mah-sidebar-w: 220px;
  --mah-content-max: 1280px;
  --mah-wrapper-min: 1080px;
  --mah-editor-rail-w: 216px;
  --mah-editor-preview-w: 380px;

  /* ---- z-index scale ---------------------------------------------------- */
  --mah-z-raised: 10;
  --mah-z-sticky: 100;
  --mah-z-drawer: 200;
  --mah-z-topnav: 300;
  --mah-z-dropdown: 400;
  --mah-z-modal: 500;
  --mah-z-toast: 600;

  /* Short aliases still read by a few component rules. */
  --bg: var(--mah-page);
  --panel: var(--mah-surface);
  --panel-2: var(--mah-n100);
  --text: var(--mah-ink);
  --muted: var(--mah-ink-3);
  --primary: var(--mah-brand);
  --primary-2: var(--mah-brand-hover);
  --danger: var(--mah-bad);
  --ok: var(--mah-good);
  --border: var(--mah-line);
  --header: var(--mah-brand-deep);
  --radius: var(--mah-r-xl);
}

/* Breakpoints. @media values must be literals, so they are repeated by hand
   in layout.css / screens.css: 480px · 768px · 1024px · 1180px · 1280px.   */
