/** * Shared tactical "dossier" tokens for operation primitives. * * Centralized so every operations surface renders status and readout text * with the same contrast-compliant, reduced-motion-safe classes. No CSS file * is added: tokens are expressed as Tailwind utility bundles (the frontend * styles.css is a frozen dirty-worktree baseline). */ export type StatusTone = "neutral" | "info" | "success" | "warning" | "danger"; /** Contrast-compliant status text: -400 text on /20 bg (CampaignCard convention). */ export const STATUS_TONE_CLASSES: Record = { neutral: "border-muted/40 bg-muted/20 text-muted-foreground", info: "border-blue-500/40 bg-blue-500/20 text-blue-400", success: "border-emerald-500/40 bg-emerald-500/20 text-emerald-400", warning: "border-amber-500/40 bg-amber-500/20 text-amber-400", danger: "border-rose-500/40 bg-rose-500/20 text-rose-400", }; export function statusToneFor(status: string): StatusTone { switch (status) { case "validated": case "applied": return "success"; case "rejected": case "dead-letter": return "warning"; case "failed": case "reversed": return "danger"; case "pending": return "info"; default: return "neutral"; } } /** Shared dossier surface classes (classification strip, readouts, chips). */ export const DOSSIER = { strip: "border-b border-white/15 bg-black/50 px-5 py-1.5 backdrop-blur-sm", stripLabel: "font-mono text-[9px] uppercase tracking-widest text-white/60", readout: "border-t border-white/15 bg-black/60 px-5 py-1.5 backdrop-blur-sm", readoutValue: "font-mono text-xs tabular-nums text-white/80", readoutLabel: "text-[9px] uppercase tracking-wider text-white/50", chip: "border border-white/25 bg-black/40 px-1.5 py-0.5 font-mono text-[9px] uppercase tracking-widest text-white/70", focusRing: "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background", /** 1px white grid, 28px cells, faint; hover-safe, reduced-motion honored. */ gridTexture: { backgroundImage: "linear-gradient(to right, white 1px, transparent 1px), linear-gradient(to bottom, white 1px, transparent 1px)", backgroundSize: "28px 28px", }, } as const;