{
  "$comment": "Operational Blueprint palette: the only place a Karyo diagram colour is defined. Sources carry roles, never hex; the renderer injects one classDef per role per variant. Four hues: slate (neutral, data at rest), navy (Karyo's own machinery and authority), teal (beyond Karyo's boundary: Loci and other systems), amber (a person acts). No red inside figures.",
  "page": {
    "light": "#ffffff",
    "dark": "#0d1117",
    "meaning": "the Markdown page behind a transparent render (GitHub light and dark); never used inside a figure"
  },
  "tokens": {
    "ink": {
      "light": "#1f2937",
      "dark": "#e6edf3",
      "meaning": "text, arrows, primary strokes"
    },
    "ink.soft": {
      "light": "#64748b",
      "dark": "#a9b4c2",
      "meaning": "neutral node strokes, cluster frames, dashed optional strokes"
    },
    "surface": {
      "light": "#ffffff",
      "dark": "#161b22",
      "meaning": "artifact fill, constraint fill"
    },
    "surface.soft": {
      "light": "#f1f5f9",
      "dark": "#1c2430",
      "meaning": "cluster background, edge-label background, optional fill, the database"
    },
    "core.fill": {
      "light": "#e3eaf4",
      "dark": "#17273b",
      "meaning": "a Karyo step, module or container"
    },
    "core.stroke": {
      "light": "#1e3a5f",
      "dark": "#9ec1ea",
      "meaning": "a Karyo step, module or container; the hard-constraint stroke; the frame around the host"
    },
    "external.fill": {
      "light": "#d8ebe6",
      "dark": "#183e38",
      "meaning": "a system beyond Karyo's boundary. Loci's own core fill"
    },
    "external.stroke": {
      "light": "#0d6861",
      "dark": "#64c7b8",
      "meaning": "a system beyond Karyo's boundary; the dashed boundary stroke. Loci's own core stroke (loci/docs/diagrams/tokens.json), so Loci appears in its own colour"
    },
    "human.fill": {
      "light": "#fdefd3",
      "dark": "#3b2b0b",
      "meaning": "a person acts. The product's own status-attention-soft tokens"
    },
    "human.stroke": {
      "light": "#8a4b00",
      "dark": "#f2c15a",
      "meaning": "a person acts; the only amber in a figure. The product's own status-attention text tokens (frontend/web/src/index.css)"
    }
  },
  "roles": {
    "artifact": {
      "fill": "surface",
      "stroke": "ink.soft",
      "meaning": "data at rest: an ASN, an order, a record, a document"
    },
    "core": {
      "fill": "core.fill",
      "stroke": "core.stroke",
      "meaning": "a Karyo step, module or container"
    },
    "store": {
      "fill": "surface.soft",
      "stroke": "core.stroke",
      "meaning": "the one PostgreSQL schema; the only cylinder"
    },
    "human": {
      "fill": "human.fill",
      "stroke": "human.stroke",
      "meaning": "a person acts; drawn as a double-bar box"
    },
    "constraint": {
      "fill": "surface",
      "stroke": "core.stroke",
      "stroke-width": "3px",
      "meaning": "a hard rule Karyo enforces whatever anyone advised; hexagon, the only thick stroke"
    },
    "external": {
      "fill": "external.fill",
      "stroke": "external.stroke",
      "meaning": "a separate product or system: Loci, an ERP, a carrier, a webhook subscriber"
    },
    "boundary": {
      "fill": "surface.soft",
      "stroke": "external.stroke",
      "stroke-dasharray": "6 4",
      "meaning": "a trust or network boundary, or a refusal named in words; teal and dashed, never red"
    },
    "optional": {
      "fill": "surface.soft",
      "stroke": "ink.soft",
      "stroke-dasharray": "4 3",
      "meaning": "optional, or supplied by the operator: a TLS terminator, an extension"
    },
    "frame": {
      "fill": "surface.soft",
      "stroke": "core.stroke",
      "meaning": "the solid frame around the one host or the one JVM"
    }
  }
}
