Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

24.5 KB
Raw Blame
/* /admin/launcher — Memetic Launcher control panel.
   Monochrome on near-black, the white --ink / --accent ramp only (matches /pulse
   and /deployments so the admin surfaces feel like one product). Every state —
   gate, loading, empty, armed, paused — is designed. */
@import './ui-juice.css';

.ml-shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: var(--space-xl, 40px) var(--space-md, 16px) 120px;
}

/* ── shared atoms ─────────────────────────────────────────────────────────── */
.ml-input {
	appearance: none;
	width: 100%;
	font: inherit;
	font-size: var(--text-sm, 0.85rem);
	color: var(--ink-bright, #fff);
	background: var(--surface-1, rgba(255, 255, 255, 0.03));
	border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1));
	border-radius: var(--radius-md, 10px);
	padding: 10px 12px;
	transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.ml-input:hover { border-color: var(--stroke-strong, rgba(255, 255, 255, 0.16)); }
.ml-input:focus-visible {
	outline: none;
	border-color: var(--ink, #e8e8e8);
	background: var(--surface-2, rgba(255, 255, 255, 0.05));
}

.ml-btn {
	appearance: none;
	font: inherit;
	font-size: var(--text-sm, 0.85rem);
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: var(--radius-pill, 999px);
	padding: 9px 18px;
	transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard);
}
.ml-btn:active { transform: translateY(1px); }
.ml-btn:focus-visible { outline: 2px solid var(--accent, #fff); outline-offset: 2px; }
.ml-btn-primary { background: var(--ink-bright, #fff); color: #000; }
.ml-btn-primary:hover { background: var(--ink, #e8e8e8); }
.ml-btn-ghost { background: transparent; color: var(--ink, #e8e8e8); border-color: var(--stroke-strong, rgba(255, 255, 255, 0.16)); }
.ml-btn-ghost:hover { background: var(--surface-2, rgba(255, 255, 255, 0.05)); }
.ml-btn-danger { background: var(--ink-bright, #fff); color: #000; }
.ml-btn-danger:hover { background: #fff; }
.ml-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── auth gate ────────────────────────────────────────────────────────────── */
.ml-gate { display: grid; place-items: center; min-height: 60vh; }
.ml-gate-card {
	width: min(420px, 100%);
	text-align: center;
	background: var(--surface-1, rgba(255, 255, 255, 0.03));
	border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
	border-radius: var(--radius-lg, 16px);
	padding: var(--space-2xl, 48px) var(--space-xl, 36px);
}
.ml-gate-mark { font-size: 2.4rem; color: var(--ink-bright, #fff); margin-bottom: var(--space-sm, 12px); }
.ml-gate-title { font-family: var(--font-display, sans-serif); font-size: 1.6rem; font-weight: 700; margin: 0 0 6px; color: var(--ink-bright, #fff); }
.ml-gate-sub { margin: 0 0 var(--space-lg, 24px); color: var(--ink-dim, #999); font-size: var(--text-sm, 0.85rem); }
.ml-gate-btn { width: 100%; margin-top: var(--space-sm, 12px); padding: 11px; }
.ml-gate-err { margin: var(--space-sm, 12px) 0 0; min-height: 1.1em; color: var(--ink, #e8e8e8); font-size: var(--text-xs, 0.75rem); }

/* ── hero / status ────────────────────────────────────────────────────────── */
.ml-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-lg, 24px); flex-wrap: wrap; margin-bottom: var(--space-xl, 32px); }
.ml-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-2xs, 0.68rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim, #888); margin: 0 0 10px; }
.ml-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint, #555); transition: background var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.ml-dot.is-armed { background: var(--ink-bright, #fff); animation: ml-ping 2s ease infinite; }
.ml-dot.is-dry { background: var(--ink, #bbb); }
.ml-dot.is-paused { background: var(--ink-dim, #888); }
@keyframes ml-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); } 70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.ml-title { font-family: var(--font-display, sans-serif); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1; margin: 0 0 10px; color: var(--ink-dim, #999); letter-spacing: -0.02em; }
.ml-title em { font-style: normal; color: var(--ink-bright, #fff); }
.ml-sub { margin: 0; color: var(--ink-dim, #999); font-size: var(--text-base, 0.95rem); }
.ml-hero-r { display: flex; align-items: center; gap: var(--space-md, 18px); }
.ml-master { text-align: right; }
.ml-master-lbl { display: block; font-size: var(--text-2xs, 0.66rem); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim, #888); }
.ml-master-val { font-family: var(--font-mono, monospace); font-size: 1.25rem; font-weight: 700; color: var(--ink-bright, #fff); }

/* arm switch */
.ml-armswitch { display: inline-flex; align-items: center; gap: 10px; background: var(--surface-1, rgba(255, 255, 255, 0.03)); border: 1px solid var(--stroke-strong, rgba(255, 255, 255, 0.16)); border-radius: var(--radius-pill, 999px); padding: 7px 14px 7px 8px; }
.ml-armswitch-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3, rgba(255, 255, 255, 0.12)); transition: background var(--duration-fast) var(--ease-standard); flex: none; }
.ml-armswitch-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-dim, #999); transition: transform var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
.ml-armswitch[aria-pressed='true'] .ml-armswitch-track { background: var(--ink-bright, #fff); }
.ml-armswitch[aria-pressed='true'] .ml-armswitch-knob { transform: translateX(16px); background: #000; }
.ml-armswitch-lbl { font-size: var(--text-sm, 0.82rem); font-weight: 600; color: var(--ink, #e8e8e8); }

/* ── breaker ──────────────────────────────────────────────────────────────── */
.ml-breaker { display: flex; align-items: center; gap: 12px; background: var(--surface-2, rgba(255, 255, 255, 0.05)); border: 1px solid var(--stroke-strong, rgba(255, 255, 255, 0.2)); border-radius: var(--radius-md, 12px); padding: 12px 16px; margin-bottom: var(--space-lg, 24px); }
.ml-breaker-ico { font-size: 1.1rem; }
.ml-breaker-txt { flex: 1; font-size: var(--text-sm, 0.85rem); color: var(--ink-bright, #fff); }

/* ── stats ────────────────────────────────────────────────────────────────── */
.ml-stats { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--space-sm, 12px); margin: 0 0 var(--space-xl, 32px); }
.ml-stat { background: var(--surface-1, rgba(255, 255, 255, 0.03)); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.07)); border-radius: var(--radius-lg, 14px); padding: var(--space-md, 16px) var(--space-sm, 12px); min-width: 0; transition: border-color var(--duration-fast) var(--ease-standard); }
.ml-stat:hover { border-color: var(--stroke-strong, rgba(255, 255, 255, 0.14)); }
.ml-stat--lead { background: var(--surface-2, rgba(255, 255, 255, 0.05)); border-color: var(--stroke-strong, rgba(255, 255, 255, 0.14)); }
.ml-stat--revenue { border-style: dashed; }
.ml-stat dt { font-size: var(--text-2xs, 0.66rem); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-dim, #888); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-stat dd { margin: 0; font-family: var(--font-mono, monospace); font-size: clamp(1rem, 1.8vw, 1.5rem); font-weight: 700; color: var(--ink-bright, #fff); line-height: 1; }

/* ── grid ─────────────────────────────────────────────────────────────────── */
.ml-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-lg, 24px); align-items: start; }
.ml-config { display: flex; flex-direction: column; gap: var(--space-md, 18px); }
.ml-card { background: var(--surface-1, rgba(255, 255, 255, 0.025)); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.07)); border-radius: var(--radius-lg, 16px); padding: var(--space-lg, 22px); }
.ml-card-h { font-size: var(--text-sm, 0.8rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink, #e8e8e8); margin: 0; }
.ml-card-help { margin: 6px 0 var(--space-md, 16px); font-size: var(--text-xs, 0.76rem); color: var(--ink-dim, #888); line-height: 1.45; }

/* mode radio cards */
.ml-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ml-mode { cursor: pointer; }
.ml-mode input { position: absolute; opacity: 0; pointer-events: none; }
.ml-mode-ui { display: block; height: 100%; background: var(--surface-1, rgba(255, 255, 255, 0.03)); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1)); border-radius: var(--radius-md, 12px); padding: 12px 14px; transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
.ml-mode:hover .ml-mode-ui { border-color: var(--stroke-strong, rgba(255, 255, 255, 0.18)); }
.ml-mode input:checked + .ml-mode-ui { border-color: var(--ink-bright, #fff); background: var(--surface-3, rgba(255, 255, 255, 0.08)); }
.ml-mode input:focus-visible + .ml-mode-ui { outline: 2px solid var(--accent, #fff); outline-offset: 2px; }
.ml-mode-name { display: block; font-size: var(--text-sm, 0.85rem); font-weight: 600; color: var(--ink-bright, #fff); margin-bottom: 3px; }
.ml-mode-desc { display: block; font-size: var(--text-2xs, 0.7rem); color: var(--ink-dim, #888); line-height: 1.35; }

/* chips */
.ml-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ml-chip { appearance: none; font: inherit; font-size: var(--text-xs, 0.76rem); font-weight: 500; cursor: pointer; color: var(--ink-dim, #999); background: var(--surface-1, rgba(255, 255, 255, 0.03)); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.1)); border-radius: var(--radius-pill, 999px); padding: 7px 14px; transition: all var(--duration-fast) var(--ease-standard); }
.ml-chip:hover { color: var(--ink, #e8e8e8); border-color: var(--stroke-strong, rgba(255, 255, 255, 0.18)); }
.ml-chip[aria-pressed='true'] { color: #000; background: var(--ink-bright, #fff); border-color: var(--ink-bright, #fff); }
.ml-chip:focus-visible { outline: 2px solid var(--accent, #fff); outline-offset: 2px; }

/* fields */
.ml-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md, 16px); }
.ml-field { display: flex; flex-direction: column; gap: 7px; }
.ml-field-lbl { font-size: var(--text-xs, 0.76rem); font-weight: 600; color: var(--ink, #e8e8e8); }
.ml-field-lbl em { font-style: normal; font-weight: 400; color: var(--ink-dim, #888); text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.06em; }
.ml-field-hint { font-size: var(--text-2xs, 0.68rem); color: var(--ink-faint, #666); min-height: 1em; }

/* toggles / switch */
.ml-toggles { display: flex; flex-direction: column; gap: var(--space-md, 18px); }
.ml-switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.ml-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ml-switch-ui { position: relative; flex: none; width: 42px; height: 24px; margin-top: 2px; border-radius: 999px; background: var(--surface-3, rgba(255, 255, 255, 0.12)); transition: background var(--duration-fast) var(--ease-standard); }
.ml-switch-ui::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-dim, #999); transition: transform var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
.ml-switch input:checked + .ml-switch-ui { background: var(--ink-bright, #fff); }
.ml-switch input:checked + .ml-switch-ui::after { transform: translateX(18px); background: #000; }
.ml-switch input:focus-visible + .ml-switch-ui { outline: 2px solid var(--accent, #fff); outline-offset: 2px; }
.ml-switch-txt strong { display: block; font-size: var(--text-sm, 0.85rem); color: var(--ink-bright, #fff); }
.ml-switch-txt small { display: block; font-size: var(--text-2xs, 0.7rem); color: var(--ink-dim, #888); margin-top: 2px; line-height: 1.4; }

.ml-net { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ml-net-lbl { font-size: var(--text-sm, 0.85rem); font-weight: 600; color: var(--ink-bright, #fff); }
.ml-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-1, rgba(255, 255, 255, 0.03)); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08)); border-radius: var(--radius-pill, 999px); }
.ml-seg-btn { appearance: none; font: inherit; font-size: var(--text-sm, 0.8rem); font-weight: 500; cursor: pointer; color: var(--ink-dim, #888); background: transparent; border: none; border-radius: var(--radius-pill, 999px); padding: 6px 16px; transition: color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); }
.ml-seg-btn:hover { color: var(--ink, #e8e8e8); }
.ml-seg-btn.active { color: var(--ink-bright, #fff); background: var(--surface-3, rgba(255, 255, 255, 0.08)); }
.ml-seg-btn:focus-visible { outline: 2px solid var(--accent, #fff); outline-offset: 2px; }

/* ── right rail (narratives + console) ──────────────────────────────────────── */
.ml-rail { position: sticky; top: var(--space-md, 16px); display: flex; flex-direction: column; gap: var(--space-md, 18px); }

/* ── live narratives ────────────────────────────────────────────────────────── */
.ml-narr { background: var(--surface-1, rgba(255, 255, 255, 0.025)); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.07)); border-radius: var(--radius-lg, 16px); padding: var(--space-lg, 22px); }
.ml-narr-lead { margin: 0 0 var(--space-md, 14px); font-size: var(--text-sm, 0.82rem); color: var(--ink-dim, #999); }
.ml-narr-lead strong { color: var(--ink-bright, #fff); font-weight: 700; }
.ml-narr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.ml-narr-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border: 1px solid var(--stroke, rgba(255, 255, 255, 0.06)); border-radius: var(--radius-md, 9px); background: var(--surface-1, rgba(255, 255, 255, 0.02)); overflow: hidden; }
.ml-narr-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--surface-3, rgba(255, 255, 255, 0.08)); z-index: 0; transition: width var(--duration-slow) var(--ease-standard); }
.ml-narr-term { position: relative; z-index: 1; font-size: var(--text-sm, 0.82rem); font-weight: 600; color: var(--ink-bright, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-narr-tags { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; flex: none; }
.ml-narr-kind { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-dim, #999); border: 1px solid var(--stroke-strong, rgba(255, 255, 255, 0.16)); border-radius: 999px; padding: 2px 7px; }
.ml-narr-conf { font-family: var(--font-mono, monospace); font-size: var(--text-2xs, 0.66rem); color: var(--ink, #ccc); }
.ml-narr-empty { color: var(--ink-dim, #888); font-size: var(--text-xs, 0.78rem); line-height: 1.5; padding: var(--space-sm, 10px) 0; }
.ml-narr-empty p { margin: 0; }

/* ── console ──────────────────────────────────────────────────────────────── */
.ml-console { background: var(--surface-1, rgba(255, 255, 255, 0.025)); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.07)); border-radius: var(--radius-lg, 16px); padding: var(--space-lg, 22px); }
.ml-console-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: var(--space-md, 16px); }
.ml-console-meta { font-family: var(--font-mono, monospace); font-size: var(--text-2xs, 0.68rem); color: var(--ink-faint, #666); }
.ml-runs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 620px; overflow-y: auto; }
.ml-run { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-1, rgba(255, 255, 255, 0.03)); border: 1px solid var(--stroke, rgba(255, 255, 255, 0.06)); border-radius: var(--radius-md, 10px); animation: ml-in 0.24s ease; }
@keyframes ml-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* A freshly-arrived run briefly flashes, then settles — draws the eye without colour. */
.ml-run--new { animation: ml-in 0.24s ease, ml-flash 1.1s ease; }
@keyframes ml-flash { 0% { background: var(--surface-3, rgba(255, 255, 255, 0.1)); border-color: var(--stroke-strong, rgba(255, 255, 255, 0.22)); } 100% { background: var(--surface-1, rgba(255, 255, 255, 0.03)); border-color: var(--stroke, rgba(255, 255, 255, 0.06)); } }
@media (prefers-reduced-motion: reduce) { .ml-run--new { animation: none; } }
.ml-run-main { min-width: 0; }
.ml-run-name { font-size: var(--text-sm, 0.82rem); font-weight: 600; color: var(--ink-bright, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-run-name a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.ml-run-name a:hover { border-color: var(--ink-dim, #888); }
.ml-run-sym { color: var(--ink-dim, #888); font-family: var(--font-mono, monospace); font-weight: 500; }
.ml-run-meta { font-size: var(--text-2xs, 0.68rem); color: var(--ink-dim, #888); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-run-meta .ml-kind { text-transform: uppercase; letter-spacing: 0.04em; }
.ml-run-agent { color: var(--ink, #e8e8e8); font-weight: 600; }
.ml-run-err { color: var(--ink, #ccc); }
.ml-run-r { text-align: right; }
.ml-run-sol { font-family: var(--font-mono, monospace); font-size: var(--text-xs, 0.76rem); color: var(--ink, #e8e8e8); }
.ml-run-time { display: block; font-size: var(--text-2xs, 0.66rem); color: var(--ink-faint, #666); margin-top: 2px; }
.ml-pill { display: inline-block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--stroke-strong, rgba(255, 255, 255, 0.18)); color: var(--ink, #ccc); white-space: nowrap; }
.ml-pill.s-confirmed, .ml-pill.s-launched { background: var(--ink-bright, #fff); color: #000; border-color: var(--ink-bright, #fff); }
.ml-pill.s-dry_run { color: var(--ink-dim, #999); }
.ml-pill.s-failed { border-color: var(--ink, #ccc); color: var(--ink-bright, #fff); }
.ml-pill.s-skipped, .ml-pill.s-pending, .ml-pill.s-funded { color: var(--ink-dim, #888); }
.ml-runs-empty { text-align: center; padding: var(--space-xl, 36px) var(--space-md, 16px); color: var(--ink-dim, #888); font-size: var(--text-sm, 0.85rem); }

/* ── savebar ──────────────────────────────────────────────────────────────── */
.ml-savebar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 18px; background: var(--surface-3, rgba(20, 20, 20, 0.92)); backdrop-filter: blur(12px); border: 1px solid var(--stroke-strong, rgba(255, 255, 255, 0.2)); border-radius: var(--radius-pill, 999px); padding: 10px 12px 10px 22px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); animation: ml-rise 0.2s ease; }
@keyframes ml-rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ml-savebar-txt { font-size: var(--text-sm, 0.82rem); color: var(--ink-bright, #fff); font-weight: 500; }
.ml-savebar-actions { display: flex; gap: 8px; }

/* ── modal ────────────────────────────────────────────────────────────────── */
.ml-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(4px); padding: var(--space-md, 16px); animation: ml-fade 0.16s ease; }
@keyframes ml-fade { from { opacity: 0; } to { opacity: 1; } }
.ml-modal-card { width: min(440px, 100%); background: var(--surface-2, #141414); border: 1px solid var(--stroke-strong, rgba(255, 255, 255, 0.2)); border-radius: var(--radius-lg, 16px); padding: var(--space-xl, 28px); }
.ml-modal-title { margin: 0 0 10px; font-size: 1.2rem; font-weight: 700; color: var(--ink-bright, #fff); }
.ml-modal-body { margin: 0 0 var(--space-lg, 20px); font-size: var(--text-sm, 0.85rem); color: var(--ink-dim, #aaa); line-height: 1.5; }
.ml-modal-confirm { display: flex; flex-direction: column; gap: 8px; font-size: var(--text-sm, 0.82rem); color: var(--ink, #e8e8e8); margin-bottom: var(--space-lg, 20px); }
.ml-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ── toast ────────────────────────────────────────────────────────────────── */
.ml-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 70; background: var(--ink-bright, #fff); color: #000; font-size: var(--text-sm, 0.82rem); font-weight: 600; padding: 11px 20px; border-radius: var(--radius-pill, 999px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); animation: ml-rise 0.2s ease; }
.ml-toast.is-err { background: var(--surface-3, #222); color: var(--ink-bright, #fff); border: 1px solid var(--stroke-strong, rgba(255, 255, 255, 0.25)); }

/* ── skeleton / loading ───────────────────────────────────────────────────── */
.ml-skel { color: transparent !important; background: linear-gradient(90deg, var(--surface-1, rgba(255,255,255,0.04)) 25%, var(--surface-3, rgba(255,255,255,0.09)) 50%, var(--surface-1, rgba(255,255,255,0.04)) 75%); background-size: 200% 100%; border-radius: 6px; animation: ml-shimmer 1.3s linear infinite; }
@keyframes ml-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* force-tick button — compact ghost, sits beside the arm switch */
.ml-force { font-size: var(--text-xs, 0.72rem); padding: 7px 13px; }

/* ── responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.ml-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 940px) {
	.ml-grid { grid-template-columns: 1fr; }
	.ml-rail { position: static; }
	.ml-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
	.ml-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.ml-hero { flex-direction: column; align-items: flex-start; }
	.ml-hero-r { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
	.ml-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.ml-dot.is-armed, .ml-run, .ml-savebar, .ml-toast, .ml-modal, .ml-skel { animation: none; }
	.ml-narr-bar { transition: none; }
}

/* ── Interactive states (QB-07) ────────────────────────────────────────────
   The switch track had its own transition and no hover to run it. */

.ml-switch:hover .ml-switch-ui {
	background: var(--stroke-strong);
}