/* Vyzora Midnight Command Palette — Operational Execution Layer (ADR-008-D)
 * ----------------------------------------------------------------------------
 * Lead surface mode for: authenticated dashboard, agent execution view,
 * run viewer, internal command surfaces, agent orchestration.
 *
 * Communicates: control, depth, live system operation, dense ops density,
 * agent execution in motion. NOT marketing. NOT documentation. NOT public.
 *
 * Anti-pattern: NEVER dominates marketing surfaces. NEVER becomes the only
 * public identity. Authenticated/operational territory only.
 *
 * Hex anchors PROVISIONAL — derived from prior architectural-mid-tone work
 * with cool-shifted ink. Founder confirms or substitutes before lock.
 * ============================================================================
 */

[data-surface-mode="midnight-command"] {
  /* ── Primitives ──────────────────────────────────────────────────────── */
  /* Hex re-spec from founder DISTINCT PALETTE DIRECTIONS card · 2026-05-11
   * "Midnight Command — technical, nocturnal, controlled." Card-spec aligned. */
  --command-deep:       #101A2B;  /* deepest command background */
  --command-charcoal:   #1A2540;  /* primary surface (derived) */
  --command-graphite:   #2A3550;  /* elevated surface, panels (derived) */
  --command-rule:       #3E4A65;  /* hairline rule, dim divider (derived) */
  --command-strong:     #6D737A;  /* stronger structural rule = card metadata slate */
  --command-bone:       #D9E2EC;  /* primary text — cool cream against deep */
  --command-fog:        #B8C2CE;  /* secondary text — metadata (derived from bone) */
  --command-mist:       #6D737A;  /* tertiary text — card metadata slate */
  --command-route:      #4D7EA8;  /* chromatic anchor — operational route blue */
  --command-signal:     #C06C3B;  /* active execution moments (card-spec) */
  --command-amber:      #F2C230;  /* progression — shared with Signal Map yellow */

  /* ── Semantic role mapping ───────────────────────────────────────────── */
  --bg-primary:         var(--command-deep);
  --surface-1:          var(--command-charcoal);
  --surface-2:          var(--command-graphite);
  --surface-3:          var(--command-rule);

  --text-primary:       var(--command-bone);
  --text-secondary:     var(--command-fog);
  --text-tertiary:      var(--command-mist);

  --border-hairline:    var(--command-rule);
  --border-strong:      var(--command-strong);

  /* Operational state tokens — sienna/brass family from ADR-008-A retired
   * here in favor of cool-routing tokens that read as live system, not
   * archival memory. State semantics still encoded — NOT decoration. */
  --state-active:       var(--command-route);   /* in-flight execution */
  --state-pending:      var(--command-amber);   /* awaiting decision */
  --state-blocked:      var(--command-signal);  /* halted, escalation, blocker */
  --state-passive:      var(--command-strong);  /* idle, locked, archived */

  --action-primary:     var(--command-bone);
  --action-primary-bg:  var(--command-graphite);
  --text-on-action:     var(--command-deep);

  --accent-trace:       var(--command-route);
  --accent-trace-soft:  var(--command-strong);
}

/* Per ADR-008-D: Midnight Command appears at 70% on authenticated dashboard
 * + agent execution view; 10–15% on marketing/onboarding (transition bands
 * only). Never the master public identity. */
