@layer legacy {
/* Shared governance tokens for dialogs rendered outside the page root. */
.air-modal-backdrop,
.air-floating-menu {
  --air-panel: var(--surface, #ffffff);
  --air-border: color-mix(in srgb, var(--text, #172033) 13%, transparent);
  --air-muted: color-mix(in srgb, var(--text, #172033) 62%, transparent);
  --air-primary: var(--accent, #2563eb);
  --air-primary-soft: color-mix(in srgb, var(--air-primary) 12%, transparent);
  --air-ok: #16845b;
  --air-warn: #b66a00;
  --air-danger: #c33a4b;
}

/* Keep every visible AI Rules action at least 44px high. */
.air-policy-card-actions button,
.air-limit-card > button,
.air-conflict button,
.air-status-toggle {
  min-height: 44px !important;
}


/* Theme bridge: AI Rules was written before the canonical --aios-* tokens.
   Keep this workspace, its menus, and its dialogs in the active application theme. */
.air-page,
.air-modal-backdrop,
.air-floating-menu {
  --surface: var(--aios-surface, #ffffff);
  --text: var(--aios-text, #172033);
  --accent: var(--aios-accent, #2563eb);
}
}
