/* ============================================================
   AaaS — Canvas 2.0 APP TOKEN LAYER
   ------------------------------------------------------------
   The operator-dashboard token contract. Restored per D100 from the
   retired aaas-design-system-1774eef1-53ae-4e84-96cf-a382d0d26451 copy
   (assets/domains/_ds-shared/…/tokens/canvas-app.css) — 5,116 B, sha256
   a93c6ab61ae34e73504d7afa7abf22a152ca1f46e61234497dfb560789b35c3d.

   These are DISTINCT from the marketing brand tokens in styles.css:
     --basalt-* / --circuit-glow  → marketing + brand surfaces
     --app-*                      → Canvas 2.0 product chrome

   RULE: inside a Canvas surface, reference var(--app-*) ONLY.
   Never hex. Never a marketing token. The surface must repaint
   correctly by swapping the tenant/theme attribute alone.

   4-layer resolution: L1 kind defaults -> L2 tenant tokens
   -> L3 user tweaks -> L4 live context. Never hardcode what a
   layer owns.
   ============================================================ */

:root,
[data-tenant="aaas"],
[data-tenant="default"] {
  /* surfaces */
  --app-bg: #0e0e10; /* @kind color */
  --app-surface: #1a1a1c; /* @kind color */
  --app-elevated: #2a2a2e; /* @kind color */
  --app-rule: rgba(255, 255, 255, 0.07);
  --app-rule-soft: rgba(255, 255, 255, 0.04);
  /* ink */
  --app-ink: #e6e3da; /* @kind color */
  --app-ink-soft: rgba(230, 227, 218, 0.62);
  --app-ink-faint: rgba(230, 227, 218, 0.38);
  /* accent (circuit cyan) + signal (magenta/red) */
  --app-accent: #00f3ff; /* @kind color */
  --app-accent-dim: rgba(0, 243, 255, 0.16);
  --app-accent-glow: rgba(0, 243, 255, 0.42);
  --app-accent-ink: #0e0e10; /* @kind color */
  --app-signal: #f43f6c; /* @kind color */
  --app-signal-dim: rgba(244, 63, 108, 0.18);
  /* status */
  --app-success: #00d4b8; /* @kind color */
  --app-warn: #f8d974; /* @kind color */
  --app-fail: #f43f6c; /* @kind color */
  --app-running: #00f3ff; /* @kind color */
  /* shape */
  --app-radius: 12px;
  --app-radius-sm: 6px;
  --app-radius-pill: 9999px;
  /* type */
  --app-font-display: "Inter", system-ui, sans-serif;
  --app-font-body: "Inter", system-ui, sans-serif;
  --app-font-mono: "JetBrains Mono", SFMono-Regular, monospace;
  --app-display-weight: 900; /* @kind other */
  --app-display-tracking: -0.025em; /* @kind other */
  --app-display-transform: uppercase; /* @kind other */
  --app-density: 1; /* @kind other */
  /* depth */
  --app-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --app-shadow-glow: 0 0 24px rgba(0, 243, 255, 0.18);
  --app-glass-bg: rgba(26, 26, 28, 0.6);
  --app-glass-blur: blur(24px); /* @kind other */
}

/* LIGHT THEME — from tenants/aaas.json "tokensLight" */
[data-theme="light"],
[data-tenant="aaas"][data-theme="light"],
[data-tenant="default"][data-theme="light"] {
  --app-bg: #e4e4e0; /* @kind color */
  --app-surface: #dadad5; /* @kind color */
  --app-elevated: #cdcdc6; /* @kind color */
  --app-rule: rgba(13, 13, 14, 0.10);
  --app-rule-soft: rgba(13, 13, 14, 0.04);
  --app-ink: #0d0d0e; /* @kind color */
  --app-ink-soft: #3a3a3e; /* @kind color */
  --app-ink-faint: #56565b; /* @kind color */ /* LIGHT-THEME-STANDARD: #6b6b70 was 4.1:1 on --app-bg */
  --app-glass-bg: rgba(247, 247, 243, 0.85);
  --app-accent: #005e71; /* @kind color */ /* LIGHT-THEME-STANDARD: = tenant light --circuit-glow 0 94 113; #0099a8 was 2.7:1 as text */
  --app-accent-glow: rgba(0, 94, 113, 0.4);
  --app-accent-dim: rgba(0, 94, 113, 0.15);
  --app-accent-ink: #f4f4f0; /* @kind color */ /* = tenant light --on-circuit; light ink on the dark accent fill */
  --app-signal: #be2a52; /* @kind color */
  --app-fail: #be2a52; /* @kind color */
  --app-success: #008c78; /* @kind color */
  --app-warn: #785a0a; /* @kind color */ /* LIGHT-THEME-STANDARD: had no light value (#f8d974 on the light ground); = Agent Landing Template light --gold-ink 120 90 10 */
}

/* ---- Shared app-layer helpers ---- */
.micon {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: var(--app-font-mono); }
.ink-soft { color: var(--app-ink-soft); }
.ink-faint { color: var(--app-ink-faint); }
.st-ok   { color: var(--app-success); }
.st-run  { color: var(--app-running); }
.st-warn { color: var(--app-warn); }
.st-fail { color: var(--app-fail); }
.st-idle { color: var(--app-ink-faint); }
