/*
 * Posterra theme tokens — Direction A "Indigo Thread" (chosen 2026-11-30)
 * Base: Direction A palette and type. Node category colors adapted from Direction C.
 * Format: HSL triplets (no hsl()), as Langflow's shadcn-style Tailwind config expects:
 *   colors.primary = "hsl(var(--primary))", etc.
 * Rebrand = replace this file only. Do not hard-code colors in components.
 */
/* Fonts ship in the Posterra image (portal/public/fonts: latin, woff2, SIL OFL 1.1), so
 * nothing is fetched from the internet and air-gapped installs look the same.
 * Characters outside latin fall back to the system fonts in the stacks below. */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/sora-500.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-600.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-700.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --background: 228 38% 97%;  /* #F6F7FB */
  --foreground: 230 40% 14%;  /* #161B33 */
  --card: 0 0% 100%;  /* #FFFFFF */
  --card-foreground: 230 40% 14%;  /* #161B33 */
  --popover: 0 0% 100%;  /* #FFFFFF */
  --popover-foreground: 230 40% 14%;  /* #161B33 */
  --primary: 230 54% 36%;  /* #2A3A8C */
  --primary-foreground: 0 0% 100%;  /* #FFFFFF */
  --secondary: 228 52% 94%;  /* #E9ECF8 */
  --secondary-foreground: 230 54% 36%;  /* #2A3A8C */
  --muted: 225 31% 95%;  /* #EEF0F6 */
  --muted-foreground: 229 17% 43%;  /* #5A6180 */
  --accent: 39 77% 47%;  /* #D4931C */
  --accent-foreground: 230 40% 14%;  /* #161B33 */
  --destructive: 3 53% 50%;  /* #C2413B */
  --destructive-foreground: 0 0% 100%;  /* #FFFFFF */
  --border: 224 28% 90%;  /* #DDE1EC */
  --input: 224 28% 90%;  /* #DDE1EC */
  --ring: 230 54% 36%;  /* #2A3A8C */
  --loom-success: 154 63% 33%;  /* #1F8A5B */
  --loom-warning: 36 71% 42%;  /* #B7791F */
  --loom-canvas-dot: 226 27% 85%;  /* #CDD2E2 */
  --loom-node-model: 230 54% 36%;  /* #2A3A8C */
  --loom-node-agent: 39 77% 47%;  /* #D4931C */
  --loom-node-tool: 146 80% 35%;  /* #12A150 */
  --loom-node-data: 212 53% 51%;  /* #3F7DC4 */
  --loom-node-trigger: 339 67% 52%;  /* #D6336C */
  --loom-node-io: 225 13% 54%;  /* #7A8299 */

  --radius: 0.375rem;  /* 6px */
  --font-display: "Sora", "IBM Plex Sans", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dark {
  --background: 230 46% 10%;  /* #0E1226 */
  --foreground: 231 39% 94%;  /* #E8EAF5 */
  --card: 231 42% 15%;  /* #161B36 */
  --card-foreground: 231 39% 94%;  /* #E8EAF5 */
  --popover: 231 42% 15%;  /* #161B36 */
  --popover-foreground: 231 39% 94%;  /* #E8EAF5 */
  --primary: 223 82% 72%;  /* #7FA0F2 */
  --primary-foreground: 230 46% 10%;  /* #0E1226 */
  --secondary: 229 44% 22%;  /* #1F2850 */
  --secondary-foreground: 227 83% 88%;  /* #C9D4FA */
  --muted: 231 43% 18%;  /* #1A2042 */
  --muted-foreground: 229 23% 68%;  /* #9AA1C0 */
  --accent: 39 85% 62%;  /* #F0B54A */
  --accent-foreground: 230 46% 10%;  /* #0E1226 */
  --destructive: 4 72% 64%;  /* #E5675F */
  --destructive-foreground: 230 46% 10%;  /* #0E1226 */
  --border: 230 34% 25%;  /* #2A3156 */
  --input: 230 34% 25%;  /* #2A3156 */
  --ring: 223 82% 72%;  /* #7FA0F2 */
  --loom-success: 151 50% 53%;  /* #4CC38A */
  --loom-warning: 38 74% 60%;  /* #E5AE4E */
  --loom-canvas-dot: 230 37% 24%;  /* #262D52 */
  --loom-node-model: 223 82% 72%;  /* #7FA0F2 */
  --loom-node-agent: 39 85% 62%;  /* #F0B54A */
  --loom-node-tool: 146 64% 54%;  /* #3DD47F */
  --loom-node-data: 207 81% 69%;  /* #6FB6F0 */
  --loom-node-trigger: 340 83% 66%;  /* #F06292 */
  --loom-node-io: 228 17% 62%;  /* #8C93AE */
}
