/* Tokyo Night (Night variant) — palette per folke/tokyonight.nvim, the
   canonical reference (Night extends Storm, overriding only bg shades).
   No official shadcn-ui port exists; mapping mirrors the shadcn surface tier
   strategy (Aerion variables share the same shadcn names). Aerion-specific
   --ring override (Blue, matching --primary convention). */
@layer base {
  [data-theme="tokyo-night"] {
    color-scheme: dark;
    --dark-mail-bg-l: 10;                  /* override: chrome reads darker than 13%, recess email surface to match */
    --background: 235 19% 13%;             /* bg #1A1B26 */
    --foreground: 229 73% 86%;             /* fg #C0CAF5 */
    --card: 235 19% 13%;                   /* bg */
    --card-foreground: 229 73% 86%;        /* fg */
    --popover: 235 19% 13%;                /* bg */
    --popover-foreground: 229 73% 86%;     /* fg */
    --primary: 221 89% 72%;                /* blue #7AA2F7 — Tokyo Night signature accent */
    --primary-foreground: 235 19% 13%;     /* bg — dark text on bright blue */
    --secondary: 228 23% 21%;              /* bg_highlight #292E42 */
    --secondary-foreground: 229 73% 86%;   /* fg */
    --muted: 228 23% 21%;                  /* bg_highlight */
    --muted-foreground: 229 35% 75%;       /* fg_dark #A9B1D6 */
    --accent: 228 23% 21%;                 /* bg_highlight */
    --accent-foreground: 229 73% 86%;      /* fg */
    --destructive: 349 89% 72%;            /* red #F7768E */
    --destructive-foreground: 235 19% 13%; /* bg */
    --border: 228 23% 21%;                 /* bg_highlight */
    --input: 228 23% 21%;                  /* bg_highlight */
    --ring: 221 89% 72%;                   /* blue */
    /* Avatar palette: 14 distinct Tokyo Night syntax colors with dark initials.
       Median lightness ~68%, so dark text gives better contrast than white. */
    --avatar-fg: 235 19% 13%;              /* bg */
    --avatar-1:  349 89% 72%;              /* red #F7768E */
    --avatar-2:  22 100% 70%;              /* orange #FF9E64 */
    --avatar-3:  36 66% 64%;                /* yellow #E0AF68 */
    --avatar-4:  89 51% 61%;                /* green #9ECE6A */
    --avatar-5:  171 58% 65%;              /* green1 (teal-green) #73DACA */
    --avatar-6:  168 76% 42%;              /* teal #1ABC9C */
    --avatar-7:  189 73% 52%;              /* blue1 (cyan-blue) #2AC3DE */
    --avatar-8:  202 100% 74%;             /* cyan #7DCFFF */
    --avatar-9:  221 89% 72%;              /* blue #7AA2F7 */
    --avatar-10: 223 45% 44%;              /* blue0 (darker blue) #3D59A1 */
    --avatar-11: 261 85% 79%;              /* magenta #BB9AF7 */
    --avatar-12: 261 54% 67%;              /* purple (darker) #9D7CD8 */
    --avatar-13: 0 67% 58%;                /* red1 (darker) #DB4B4B */
    --avatar-14: 331 100% 50%;             /* magenta2 #FF007C */
  }
}
