/* ============================================================================
   ClientServed — dark "ops console" design system (static prototype)
   Hand-authored, self-contained (no build/CDN needed). Tokens map 1:1 to a
   Tailwind config for the real implementation. Distinctive, professional,
   data-dense — not a generic admin template.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- canvas + surfaces (layered near-black) ---- */
  --bg:        #0A0C10;   /* app canvas */
  --bg-2:      #0E1116;   /* sunken */
  --surface:   #14181F;   /* cards / panels */
  --surface-2: #1A1F28;   /* raised / hover */
  --surface-3: #222834;   /* inputs / active */
  --line:      #232a35;   /* hairline border */
  --line-2:    #2e3744;   /* stronger border */

  /* ---- ink ---- */
  --text:   #E7ECF3;
  --text-2: #AEB7C5;      /* secondary */
  --muted:  #6F7A8B;      /* tertiary / labels */
  --faint:  #49525f;

  /* ---- brand + status (vivid on dark) ---- */
  --accent:      #F2683C;  /* warm rust — brand continuity, primary action */
  --accent-2:    #FF8657;
  --accent-soft: rgba(242,104,60,0.13);
  --live:        #3FB97F;  /* running / success */
  --live-soft:   rgba(63,185,127,0.13);
  --warn:        #E3A23B;  /* needs-you / pending */
  --warn-soft:   rgba(227,162,59,0.13);
  --danger:      #EF5C5C;  /* failed / destructive */
  --danger-soft: rgba(239,92,92,0.12);
  --info:        #54A8F0;  /* informational */
  --info-soft:   rgba(84,168,240,0.12);
  --violet:      #9A7BF0;

  /* ---- type ---- */
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- shape ---- */
  --r-sm: 7px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.28);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  --glow-live: 0 0 0 1px rgba(63,185,127,.35), 0 0 22px rgba(63,185,127,.18);

  --sidebar-w: 248px;
  --topbar-h: 58px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* atmospheric depth: faint radial accents top corners */
  background-image:
    radial-gradient(900px 420px at 88% -8%, rgba(242,104,60,.07), transparent 60%),
    radial-gradient(700px 380px at 0% 0%, rgba(84,168,240,.05), transparent 55%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); }

/* ---- typography helpers ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.display { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
h1.page-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.metric { font-family: var(--font-mono); font-weight: 600; letter-spacing: -.02em; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }

/* ============================================================================
   APP SHELL
   ============================================================================ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas: "brand topbar" "sidebar main";
  min-height: 100vh;
}

/* ---- top bar ---- */
.brandcell {
  grid-area: brand;
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--bg-2);
}
.brandmark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #1a0d07; font-weight: 800; font-size: 14px;
  box-shadow: 0 2px 10px rgba(242,104,60,.4);
}
.brandname { font-weight: 700; letter-spacing: -.01em; font-size: 15px; }

/* Default size for inline icon() svgs (viewBox 0 0 24 24, no intrinsic px size).
   Low specificity (single class) so container rules like `.navitem svg`,
   `.switcher > svg`, `.btn svg`, `.iconbtn svg` win and set their own sizes;
   this guards any future icon() usage from rendering at the unsized giant size. */
.ic-svg { width: 16px; height: 16px; flex: none; }

.topbar {
  grid-area: topbar;
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(10,12,16,.7);
  backdrop-filter: blur(8px);
}

/* company switcher */
.switcher {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-md); cursor: pointer; min-width: 220px; max-width: 300px;
  transition: border-color .15s, background .15s;
}
.switcher:hover { background: var(--surface-2); border-color: var(--faint); }
.switcher .badge-co {
  width: 24px; height: 24px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
  background: var(--accent-soft); color: var(--accent-2);
}
.switcher .badge-co svg { width: 14px; height: 14px; }
/* the label column flexes + truncates; never let it wrap or push the chevron out */
.switcher > span:not(.badge-co) { flex: 1; min-width: 0; }
.switcher .co-name,
.switcher .co-sub { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switcher .co-name { font-weight: 600; font-size: 13.5px; color: var(--text); }
.switcher .co-sub { font-size: 11px; color: var(--muted); }
/* the chevron is an inline icon() svg with no class/size — pin it small + right */
.switcher > svg { width: 16px; height: 16px; flex: none; margin-left: auto; color: var(--muted); }

.topbar .spacer { flex: 1; }
.searchbox {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px; width: 280px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); color: var(--muted); font-size: 13px;
}
.searchbox kbd {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px;
  background: var(--surface-3); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 1px 5px; color: var(--text-2);
}
.iconbtn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--r-md); color: var(--text-2); cursor: pointer; position: relative;
  border: 1px solid transparent;
}
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.iconbtn svg { width: 18px; height: 18px; }
.dot-notif { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 99px; background: var(--warn); box-shadow: 0 0 0 2px var(--bg); }
.usermenu { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: var(--r-pill); cursor: pointer; }
.usermenu:hover { background: var(--surface-2); }
.avatar { width: 30px; height: 30px; border-radius: 99px; background: linear-gradient(135deg,#3a4150,#222834); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--text); }

/* ---- sidebar ---- */
.sidebar {
  grid-area: sidebar;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  padding: 12px 12px 24px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.side-co {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.side-co .badge-co { width: 28px; height: 28px; border-radius: 7px; display:grid; place-items:center; font-weight:700; background: var(--accent-soft); color: var(--accent-2); }
.nav-group { margin-top: 14px; }
.nav-group .eyebrow { padding: 0 10px 6px; display: block; }
.navitem {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: var(--r-md);
  color: var(--text-2); font-weight: 500; font-size: 13.5px;
  cursor: pointer; position: relative;
  transition: background .12s, color .12s;
}
.navitem svg { width: 17px; height: 17px; opacity: .85; flex: none; }
.navitem:hover { background: var(--surface); color: var(--text); }
.navitem.active { background: var(--surface-2); color: var(--text); }
.navitem.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.navitem .count {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  background: var(--surface-3); color: var(--text-2);
  border-radius: 99px; padding: 1px 7px; min-width: 20px; text-align: center;
}
.navitem .count.warn { background: var(--warn-soft); color: var(--warn); }

/* ---- main content ---- */
.main { grid-area: main; padding: 0; overflow-y: auto; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 28px 0; color: var(--muted); font-size: 12.5px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--faint); }
.crumbs .cur { color: var(--text-2); font-weight: 600; }
.page-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 12px 28px 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.page-head .grow { flex: 1; }
.page-head .sub { color: var(--text-2); margin-top: 4px; font-size: 13.5px; }
.content { padding: 0 28px 48px; max-width: 1280px; }

/* ============================================================================
   COMPONENTS
   ============================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r-md);
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2);
  cursor: pointer; transition: all .14s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: var(--faint); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1c0e07; box-shadow: 0 2px 14px rgba(242,104,60,.3); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { background: var(--danger-soft); border-color: rgba(239,92,92,.35); color: #ff9d9d; }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.card-head .grow { flex: 1; }

.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 1100px){ .cols-4{grid-template-columns:repeat(2,1fr)} .cols-3{grid-template-columns:repeat(2,1fr)} }

/* stat tile */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.stat .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat .value { font-family: var(--font-mono); font-weight: 600; font-size: 28px; letter-spacing: -.02em; margin-top: 8px; }
.stat .delta { font-size: 12px; margin-top: 6px; color: var(--muted); display:flex; align-items:center; gap:6px; }
.stat .delta.up { color: var(--live); }
.stat.accent { border-color: rgba(242,104,60,.3); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .03em;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2); text-transform: uppercase;
}
.badge .pip { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.badge.live { background: var(--live-soft); color: var(--live); border-color: rgba(63,185,127,.3); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(227,162,59,.3); }
.badge.danger { background: var(--danger-soft); color: #ff8585; border-color: rgba(239,92,92,.3); }
.badge.info { background: var(--info-soft); color: var(--info); border-color: rgba(84,168,240,.3); }
.badge.accent { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(242,104,60,.3); }
.badge.live .pip { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-family: var(--font-mono); font-weight: 500;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: var(--surface-2); }
.table td .primary-cell { color: var(--text); font-weight: 600; }
.table.rows-clickable tbody tr { cursor: pointer; }

/* zones (Mission Control) */
.zone { margin-bottom: 26px; }
.zone-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.zone-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.zone-head .eyebrow { margin: 0; }
.zone-head .grow { flex: 1; }
.zone.live .zone-head h2 { color: var(--live); }
.zone.needs .zone-head h2 { color: var(--warn); }

/* run "station" card */
.station { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.station.running { box-shadow: var(--glow-live); border-color: rgba(63,185,127,.4); }
.station .role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.station .title { font-weight: 600; margin: 6px 0 10px; font-size: 14.5px; }
.station .live-line { font-size: 12.5px; color: var(--text-2); min-height: 18px; }
.station .foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.station .bar { height: 3px; background: var(--surface-3); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.station .bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--live),#6fe0a6); border-radius: 99px; }

/* approval row */
.approval { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.approval + .approval { margin-top: 10px; }
.approval .grow { flex: 1; }
.approval .what { font-weight: 600; }
.approval .meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* list/agent tiles */
.tile { display:flex; align-items:center; gap:12px; padding:13px 15px; border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface); }
.tile + .tile { margin-top: 8px; }
.tile .ic { width:34px; height:34px; border-radius:9px; display:grid; place-items:center; background:var(--surface-3); color:var(--text-2); flex:none; }
.tile .grow { flex:1; }
.tile .t-title { font-weight:600; }
.tile .t-sub { font-size:12px; color:var(--muted); margin-top:2px; }

/* Big selectable cards — e.g. the "choose a campaign type" step. */
.choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width: 760px) { .choice-grid { grid-template-columns:1fr; } }
.choice-card {
  display:flex; flex-direction:column; gap:13px; padding:22px;
  border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface);
  color:var(--text); text-decoration:none; transition:all .14s;
}
.choice-card:hover { background:var(--surface-2); border-color:var(--accent); transform:translateY(-2px); }
.choice-card:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.choice-card .ic { width:44px; height:44px; border-radius:11px; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent-2); }
.choice-card .choice-pts { display:flex; flex-direction:column; gap:8px; margin-top:2px; }
.choice-card .choice-pt { display:flex; gap:8px; align-items:flex-start; font-size:12.5px; color:var(--text-2); line-height:1.45; }
.choice-card .choice-pt svg { flex:none; margin-top:2px; opacity:.7; }
.choice-card .choice-go { margin-top:auto; display:flex; align-items:center; gap:6px; color:var(--accent-2); font-weight:600; font-size:13px; }

/* Onboarding "Setup" rail rows — clickable step links (and the locked company row). */
.setup-step {
  display:flex; align-items:center; gap:12px;
  padding:11px 8px; margin:0 -8px; border-radius:var(--r-sm);
  color:inherit; text-decoration:none; cursor:pointer;
  touch-action:manipulation; transition:background .12s;
}
.setup-step:hover { background:var(--surface); }
.setup-step--locked { cursor:default; }
.setup-step--locked:hover { background:transparent; }
.setup-step.is-here { background:var(--surface-2); }

/* Step pages during onboarding (?from=setup): the same Setup card persists as a
   left rail beside the page content, so the menu stays with the user. */
.content-wrap--setup {
  display:grid; grid-template-columns:300px minmax(0,1fr); column-gap:18px;
  align-items:start; padding:0 28px 48px; max-width:1280px;
}
.content-wrap--setup > .content { padding:0; max-width:none; }
.setup-aside { position:sticky; top:14px; }
@media (max-width:1100px) {
  .content-wrap--setup { grid-template-columns:1fr; }
  .setup-aside { position:static; }
}

/* empty state */
.empty { text-align: center; padding: 46px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); background: var(--bg-2); }
.empty .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--text-2); }
.empty h4 { color: var(--text); margin: 0 0 6px; font-size: 15px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { padding: 9px 14px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* fields */
.field label { display:block; font-size:12px; color:var(--text-2); margin-bottom:6px; font-weight:600; }
.input, select.input, textarea.input {
  width: 100%; height: 38px; padding: 0 12px; background: var(--surface-3);
  border: 1px solid var(--line-2); border-radius: var(--r-md); color: var(--text);
  font-family: var(--font-sans); font-size: 13.5px;
}
textarea.input { height: auto; padding: 10px 12px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* misc */
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.kbar { display:flex; gap:10px; flex-wrap:wrap; }

/* focus visibility (a11y) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ============================================================================
   COMPAT LAYER — dark restyle of legacy hook classes the templates + tests +
   the Mission Control poller still reference (cs-menu*, cs-notif-dot, mc-*).
   Loaded AFTER the old forge.css/portal_brand.css so these win. Removed once
   every template is converted.
   ============================================================================ */

/* user menu (top-bar dropdown) */
.cs-menu { position: relative; }
.cs-menu__trigger {
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px 0 6px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-pill);
  color: var(--text); cursor: pointer; font: inherit;
}
.cs-menu__trigger:hover { background: var(--surface-2); }
.cs-menu__email { font-size: 13px; color: var(--text-2); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-menu__chevron { color: var(--muted); }
.cs-menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 6px; display: none;
}
.cs-menu.open .cs-menu__panel, .cs-menu__panel.open { display: block; }
.cs-menu__item { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text-2); font: inherit; font-size: 13.5px; background: transparent; border: none; cursor: pointer; }
.cs-menu__item:hover { background: var(--surface-2); color: var(--text); }
.cs-menu__item--danger { color: #ff9d9d; }
.cs-menu__divider { height: 1px; background: var(--line); margin: 6px 0; }
.cs-menu__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.cs-menu__form { margin: 0; }

/* notification dot (on the Mission Control link when approvals pend) */
.cs-notif-dot { position: relative; }
.cs-notif-dot::after { content: ""; position: absolute; top: 3px; right: -2px; width: 7px; height: 7px; border-radius: 99px; background: var(--warn); box-shadow: 0 0 0 2px var(--bg-2); }

/* flashes */
.flashes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-size: 13.5px; }
.flash__ico { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.flash__msg { flex: 1; min-width: 0; }
.flash__close { flex: none; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.flash__close:hover { opacity: 1; }
.flash.error, .flash.danger { background: var(--danger-soft); border-color: rgba(239,92,92,.3); color: #ff9d9d; }
.flash.success, .flash.ok { background: var(--live-soft); border-color: rgba(63,185,127,.3); color: var(--live); }
.flash.warning, .flash.warn { background: var(--warn-soft); border-color: rgba(227,162,59,.3); color: var(--warn); }

/* per-field validation errors */
.field.error .input, .field.error select.input, .field.error textarea.input { border-color: var(--danger); }
.field.error .input:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.field__error { color: #ff9d9d; font-size: 12px; margin-top: 5px; }

/* toasts — corner popups for async / JS errors */
.toast-host { position: fixed; right: 18px; bottom: 18px; z-index: 9000; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 13.5px; box-shadow: var(--shadow-lg); animation: toast-in .18s ease-out; }
.toast__msg { flex: 1; min-width: 0; }
.toast__close { flex: none; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.toast__close:hover { opacity: 1; }
.toast.error { border-color: rgba(239,92,92,.4); background: linear-gradient(0deg, var(--danger-soft), var(--surface-2)); }
.toast.warn { border-color: rgba(227,162,59,.4); }
.toast.success { border-color: rgba(63,185,127,.4); }
.toast.info { border-color: rgba(84,168,240,.4); }
.toast::before { content: ""; flex: none; width: 4px; align-self: stretch; border-radius: 4px; background: var(--text-2); }
.toast.error::before { background: var(--danger); }
.toast.warn::before { background: var(--warn); }
.toast.success::before { background: var(--live); }
.toast.info::before { background: var(--info); }
.toast--out { opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .toast--out { transition: none; } }
.small { font-size: 12px; }

/* ============================================================================
   MISSION CONTROL — dark "ops console"
   ----------------------------------------------------------------------------
   The Mission Control + campaign-detail screens, re-authored in DARK on the
   app.css token set (--bg/--surface/--line/--accent/--live/--warn/--info ...).
   Self-contained: stands alone once portal_brand.css is removed. Structure
   mirrors the prototype (hero ribbon → campaign decks of running "stations" →
   idle row → collapsible activity "wire"). Aesthetic target = the existing
   .station / .zone / .stat / .badge components above: layered near-black
   surfaces, vivid status accents, mono micro-labels, a green "live" pulse.
   All motion gates on prefers-reduced-motion at the very bottom of the block.
   ============================================================================ */

/* ---- HERO RIBBON + chips ----------------------------------------------- */
.mc-hero { margin: 4px 0 30px; }

.mc-hero__eyebrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.mc-eyebrow__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 11px 4px 9px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--text); letter-spacing: .12em;
}
.mc-eyebrow__sep { color: var(--faint); }
.mc-now-clock { font-variant-numeric: tabular-nums; color: var(--text-2); }

/* Narrative headline — big, with accent italic emphasis. */
.mc-hero__headline {
  font-family: var(--font-sans);
  font-weight: 700; line-height: 1.06;
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -.025em;
  color: var(--text);
  margin: 0 0 20px;
  max-width: 24ch;
  text-wrap: balance;
}
.mc-hero__headline em {
  font-style: normal; font-weight: 700; color: var(--accent-2);
}

/* Slim chip row. Each chip = a big mono numeral + a mono micro-label. */
.mc-hero__chips {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch;
  margin: 4px 0 0;
}
.mc-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.mc-chip__val {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 18px; line-height: 1; letter-spacing: -.02em;
  color: var(--text); font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.mc-chip__lbl {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.mc-chip--muted { background: transparent; border-color: var(--line); }
.mc-chip--accent { background: var(--accent-soft); border-color: rgba(242,104,60,.3); }
.mc-chip--accent .mc-chip__val { color: var(--accent-2); }
.mc-chip--accent .mc-chip__lbl { color: var(--accent-2); }
.mc-chip--warn { background: var(--warn-soft); border-color: rgba(227,162,59,.3); }
.mc-chip--warn .mc-chip__val { color: var(--warn); }
.mc-chip--warn .mc-chip__lbl { color: var(--warn); }

/* Standalone big-number helpers (used in the hero numeral grid). */
.mc-num__value {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(30px, 4vw, 44px); line-height: .95;
  letter-spacing: -.03em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.mc-num__hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* mc-tick — a value the poller may rewrite; flashes via .is-changed below. */
.mc-tick { transition: color .3s ease; }

/* ---- ALERTS (inline "needs you" row under the chips) ------------------- */
.mc-alerts {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 18px 0 0;
}
.mc-alert {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  text-decoration: none; font-size: 13px; color: var(--text);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.mc-alert:hover { transform: translateY(-1px); border-color: var(--faint); background: var(--surface-2); }
.mc-alert__k {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--muted);
}
.mc-alert__b { color: var(--text); }
.mc-alert__b code { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }
.mc-alert__age {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
}
.mc-alert--err  { border-color: rgba(239,92,92,.32); background: var(--danger-soft); }
.mc-alert--err  .mc-alert__k { color: #ff8585; }
.mc-alert--warn { border-color: rgba(227,162,59,.32); background: var(--warn-soft); }
.mc-alert--warn .mc-alert__k { color: var(--warn); }

/* ---- PULSE — the live status dot (with an expanding ring) -------------- */
.mc-pulse {
  position: relative; display: inline-block;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--live);
  flex: 0 0 9px;
}
.mc-pulse::before {
  content: ""; position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--live);
  opacity: 0;
  animation: mc-pulse-ring 1.9s ease-out infinite;
}
.mc-pulse--ok   { background: var(--live); }
.mc-pulse--ok::before   { border-color: var(--live); }
.mc-pulse--gold { background: var(--warn); }
.mc-pulse--gold::before { border-color: var(--warn); }
.mc-pulse--info { background: var(--info); }
.mc-pulse--info::before { border-color: var(--info); }
@keyframes mc-pulse-ring {
  0%   { transform: scale(.55); opacity: .8; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ---- DECKS (one per active campaign) ---------------------------------- */
.mc-decks { display: grid; gap: 20px; margin: 8px 0 34px; }

.mc-deck {
  position: relative;
  padding: 22px 26px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* Left accent rail — quiet by default, lit + breathing when active. */
.mc-deck__rail {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--line-2);
}
.mc-deck--active {
  border-color: rgba(63,185,127,.28);
  box-shadow: var(--shadow), 0 0 0 1px rgba(63,185,127,.10);
}
.mc-deck--active .mc-deck__rail {
  background: var(--live);
  box-shadow: 0 0 18px 0 rgba(63,185,127,.45);
  animation: mc-rail-breathe 2.8s ease-in-out infinite;
}
@keyframes mc-rail-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: .5; }
}
/* Soft shimmer sweep across active decks. */
.mc-deck--active::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg,
    transparent 30%, rgba(63,185,127,.05) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: mc-shimmer 7s linear infinite;
}
@keyframes mc-shimmer {
  from { background-position: 220% 0; }
  to   { background-position: -220% 0; }
}
/* A campaign with nothing live yet (queued only) reads quieter. */
.mc-deck--warming { opacity: .85; }

.mc-deck__head {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: 18px;
  margin-bottom: 14px;
}
.mc-deck__title {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(18px, 2vw, 24px); letter-spacing: -.02em;
  color: var(--text); margin: 0;
}
.mc-deck__title a { color: inherit; text-decoration: none; }
.mc-deck__title a:hover { color: var(--accent-2); }
.mc-deck__meta {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: .04em;
}
.mc-deck__count { color: var(--text-2); }
.mc-deck__cost  { color: var(--text-2); font-variant-numeric: tabular-nums; }

.mc-deck__stations {
  display: grid; gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  margin: 6px 0 14px;
}
@media (min-width: 760px) {
  .mc-deck__stations { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 1180px) {
  .mc-deck__stations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mc-deck__warming {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg-2);
  color: var(--muted); font-style: italic;
  margin: 6px 0 14px;
}

/* ---- STATIONS (one running / awaiting agent run) ---------------------- */
.mc-station {
  position: relative;
  padding: 14px 16px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid; gap: 6px;
  transition: opacity .35s ease, transform .35s ease, border-color .15s ease;
}
.mc-station--running {
  border-color: rgba(63,185,127,.32);
  box-shadow: var(--glow-live);
  background:
    linear-gradient(135deg, var(--live-soft) 0%, var(--surface) 42%);
}
.mc-station--awaiting {
  border-color: rgba(227,162,59,.32);
  background:
    linear-gradient(135deg, var(--warn-soft) 0%, var(--surface) 42%);
}
.mc-station--cancelling { opacity: .55; }

.mc-station__head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text);
}
.mc-station__role { color: var(--text); text-decoration: none; font-weight: 600; }
.mc-station__role:hover { color: var(--accent-2); }
.mc-station__pill {
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 9.5px; letter-spacing: .14em; font-weight: 600;
  background: var(--surface-3); color: var(--text-2);
}
.mc-station__pill--gold { color: var(--warn); background: var(--warn-soft); }
.mc-station__pill--info { color: var(--info); background: var(--info-soft); }
.mc-station__meta {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--muted); letter-spacing: .04em;
}
.mc-station__sep { color: var(--faint); }
.mc-station__cost {
  font-variant-numeric: tabular-nums; color: var(--text-2);
  transition: color .3s ease;
}

.mc-station__title {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 14.5px; line-height: 1.35;
  color: var(--text); margin: 4px 0 0;
}
.mc-station__title--ghost { color: var(--muted); font-style: italic; font-weight: 400; }

.mc-station__live {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.4;
}
.mc-station__arrow { color: var(--accent-2); font-weight: 600; }
.mc-station__livetext { color: var(--text-2); }
.mc-station__livetext--ghost { color: var(--muted); font-style: italic; }
.mc-station__action {
  margin-left: 4px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-2); text-decoration: none;
  padding: 2px 8px; border: 1px solid rgba(242,104,60,.5);
  border-radius: var(--r-pill);
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.mc-station__action:hover { background: var(--accent); border-color: var(--accent); color: #1c0e07; }

/* Three little dots that pulse — "working / warming up" indicator. */
.mc-dots { display: inline-flex; gap: 3px; margin-left: 3px; vertical-align: baseline; }
.mc-dots span {
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; opacity: .35;
  animation: mc-dots 1.4s ease-in-out infinite;
}
.mc-dots span:nth-child(2) { animation-delay: .18s; }
.mc-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes mc-dots {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-2px); }
}

/* ---- RECENT strip at deck footer -------------------------------------- */
.mc-deck__recent {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0 0; margin-top: 4px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: .04em;
}
.mc-recent__label {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: 10px; font-weight: 600; color: var(--muted);
}
.mc-recent__item {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--text-2);
  padding: 4px 8px; border-radius: var(--r-sm);
  transition: background .15s ease;
}
.mc-recent__item:hover { background: var(--surface-2); }
.mc-recent__glyph { display: inline-block; width: 1em; font-weight: 700; color: var(--muted); }
.mc-recent__glyph--ok  { color: var(--live); }
.mc-recent__glyph--err { color: #ff8585; }
.mc-recent__role { color: var(--text-2); }
.mc-recent__err  { color: #ff8585; font-style: italic; }
.mc-recent__err--skip { color: var(--text-3, #9aa4b2); font-style: italic; }

/* ---- IDLE campaigns row ----------------------------------------------- */
.mc-idle { margin: 28px 0; }
.mc-idle__grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.mc-idle__card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none; color: var(--text-2);
  opacity: .7;
  transition: opacity .15s ease, border-color .15s ease, background .15s ease;
}
.mc-idle__card:hover { opacity: 1; border-color: var(--line-2); background: var(--surface); }
.mc-idle__name {
  flex: 1; font-weight: 600; font-size: 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-idle__status {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.mc-idle__cost {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); font-variant-numeric: tabular-nums;
}

/* ---- QUIET empty states ----------------------------------------------- */
.mc-quiet {
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: radial-gradient(circle at center, var(--accent-soft), transparent 65%), var(--bg-2);
  margin: 8px 0 34px;
}
.mc-quiet--inline { padding: 36px 24px; }
.mc-quiet__title {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em;
  color: var(--text); margin: 0 0 8px;
}
.mc-quiet__hint {
  color: var(--muted); margin: 0; max-width: 46ch;
  margin-inline: auto; line-height: 1.5;
}

/* ---- WIRE (collapsible chronological activity log) -------------------- */
/* The activity log is a self-contained, clickable card — NOT a bare header row
   (which read as a title for the Connected sites / Agents cards that follow).
   The border + a little breathing room below clearly separate it. */
.mc-wire-collapse {
  margin: 28px 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.mc-wire-collapse > summary {
  cursor: pointer; outline: 0; padding: 12px 16px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  border-radius: var(--r-md);
  transition: background .15s;
}
.mc-wire-collapse > summary:hover { background: var(--surface-2); }
.mc-wire-collapse[open] > summary {
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.mc-wire-collapse > summary::-webkit-details-marker { display: none; }
.mc-wire-collapse > summary::after { content: "+ open"; color: var(--accent-2); }
.mc-wire-collapse[open] > summary::after { content: "− close"; }
.mc-wire-collapse__label { color: var(--text-2); font-weight: 600; }
.mc-wire-collapse__hint { color: var(--muted); }

.mc-wire { margin: 0; padding: 6px 16px 12px; list-style: none; }
.mc-wire__row {
  display: grid; grid-template-columns: 5ch 1fr; gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.5;
}
.mc-wire__row:first-child { border-top: 0; }
.mc-wire__time {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); white-space: nowrap; padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.mc-wire__body { min-width: 0; }
.mc-wire__sym {
  display: inline-block; width: 1.2em; margin-right: 4px;
  font-family: var(--font-mono); font-weight: 700; color: var(--muted);
}
.mc-wire__sym--ok   { color: var(--live); }
.mc-wire__sym--err  { color: #ff8585; }
.mc-wire__sym--warn { color: var(--warn); }
.mc-wire__sym--info { color: var(--info); }
.mc-wire__sym--live { color: var(--live); }
.mc-wire__title { color: var(--text); }
.mc-wire__title a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mc-wire__title a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.mc-wire__meta {
  display: block; margin-top: 3px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}

/* ---- ANIMATION STATE (poller hooks — subtle) -------------------------- */
/* is-changed: a brief accent flash when a polled value updates in place. */
.is-changed { animation: mc-flash .7s ease-out; }
.mc-tick.is-changed,
.mc-chip__val.is-changed,
.mc-station__cost.is-changed,
.mc-station__livetext.is-changed { color: var(--accent-2); }
@keyframes mc-flash {
  0%   { color: var(--accent-2); }
  100% { /* settles back to the element's own color */ }
}
/* is-leaving: a station that completed since last poll fades + shrinks out. */
.mc-station.is-leaving,
.is-leaving { opacity: 0; transform: translateY(-4px) scale(.98); }
/* is-fresh: a newly-arrived row gently fades up on insert. */
.is-fresh { animation: mc-fresh .5s cubic-bezier(.16,.8,.25,1) both; }
@keyframes mc-fresh {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   CAMPAIGN DETAIL — dark editor chrome
   ============================================================================ */

/* ---- Staggered page-load reveal (.ed-reveal wraps the page body) ------- */
.ed-reveal > * {
  opacity: 0; transform: translateY(10px);
  animation: ed-fade-up .7s cubic-bezier(.16,.8,.25,1) forwards;
}
.ed-reveal > *:nth-child(1) { animation-delay: .05s; }
.ed-reveal > *:nth-child(2) { animation-delay: .13s; }
.ed-reveal > *:nth-child(3) { animation-delay: .21s; }
.ed-reveal > *:nth-child(4) { animation-delay: .29s; }
.ed-reveal > *:nth-child(5) { animation-delay: .37s; }
.ed-reveal > *:nth-child(6) { animation-delay: .45s; }
.ed-reveal > *:nth-child(n+7) { animation-delay: .50s; }
@keyframes ed-fade-up { to { opacity: 1; transform: translateY(0); } }

/* ---- Action chip (page-head buttons / inline actions) ----------------- */
.ed-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  color: var(--text); background: transparent;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.ed-chip:hover { border-color: var(--faint); color: var(--text); background: var(--surface-2); }
.ed-chip--primary {
  background: var(--accent); color: #1c0e07; border-color: var(--accent);
  box-shadow: 0 2px 14px rgba(242,104,60,.3);
}
.ed-chip--primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #1c0e07; }

/* ---- Hero numeral grid (campaign vital signs) ------------------------- */
.ed-numgrid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ed-numgrid > * {
  background: var(--surface);
  padding: 18px 20px 20px;
  min-width: 0;
}

/* ---- Section head — hairline rule + title + meta ---------------------- */
.ed-section-head {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 10px; margin: 36px 0 18px;
}
.ed-section-head h2 {
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  margin: 0; color: var(--text);
}
.ed-section-head__meta {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
}

/* ============================================================================
   CAMPAIGN DETAIL — funnel tree (drag-reorder)
   ============================================================================ */
.cs-tree { /* a single funnel group; .divider above adds the top rule */ }

.cs-step-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}

/* The little ↑ / ↓ reorder buttons reuse .btn.sm; just tighten width. */
.cs-step-up, .cs-step-down {
  width: 30px; padding: 0; justify-content: center;
  font-family: var(--font-mono);
}

/* Grab handle for drag-reorder. */
.cs-drag-handle {
  cursor: grab; color: var(--muted); user-select: none;
  letter-spacing: -1px; padding: 0 2px;
}
.cs-drag-handle:active { cursor: grabbing; }

/* Inline live-update marker (small pulsing green dot + label). */
.cs-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--live);
}
.cs-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}

/* Quiet inline note (separators, hints inside dense rows). */
.cs-subtle { color: var(--muted); }

/* Visually hidden, screen-reader accessible (reorder announce region). */
.cs-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================================
   MISSION CONTROL / CAMPAIGN DETAIL — reduced motion
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  .mc-pulse::before,
  .mc-deck--active .mc-deck__rail,
  .mc-deck--active::before,
  .mc-dots span,
  .cs-live::before { animation: none !important; }
  .mc-deck--active::before { display: none; }
  .ed-reveal > * { animation: none; opacity: 1; transform: none; }
  .is-fresh, .is-changed { animation: none; }
  .mc-station,
  .mc-tick,
  .mc-chip__val,
  .mc-station__cost,
  .mc-station__livetext,
  .mc-alert,
  .mc-idle__card,
  .ed-chip,
  .mc-station__action { transition: none !important; }
}


/* =========================================================================
   Auth pages (login / signup / reset / verify / unsubscribe) — standalone
   dark cards, centered. These pages do NOT use the app-shell; they set
   <body class="authbody"> and link only app.css.
   ========================================================================= */
.authbody { display:grid; place-items:center; min-height:100vh; padding:40px 20px; background:var(--bg); }
.auth { width:100%; max-width:412px; }
.auth-brand { display:flex; flex-direction:column; align-items:center; gap:14px; margin-bottom:26px; text-align:center; }
.auth-brand .brandmark { width:44px; height:44px; border-radius:12px; font-size:22px; }
.auth-title { font-size:21px; font-weight:700; letter-spacing:-.01em; margin:0; }
.auth-sub { color:var(--muted); font-size:13px; margin:5px 0 0; }
.auth .field + .field { margin-top:14px; }
.auth-foot { text-align:center; color:var(--muted); font-size:12.5px; margin-top:22px; }
.auth-foot a { color:var(--text-2); font-weight:600; }
.auth-foot a:hover { color:var(--text); }
.label-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.label-row label { margin-bottom:0; }
.label-row a { font-size:12px; color:var(--accent-2); font-weight:600; }
.label-row a:hover { color:var(--accent); }
.auth .btn.primary.block { width:100%; justify-content:center; margin-top:20px; }

/* =========================================================================
   Admin / Theme-Forge compat — terminal log, manifest key/values, code tag,
   and legacy badge aliases. Keeps the admin pages cohesive on the dark shell
   once forge.css is removed.
   ========================================================================= */
pre.log, .log {
  font-family:var(--font-mono); font-size:12px; line-height:1.55;
  color:var(--text-2); background:var(--bg-2); border:1px solid var(--line);
  border-radius:var(--r-md); padding:14px 16px; margin:0;
  white-space:pre-wrap; word-break:break-word; overflow:auto; max-height:480px;
}
dl.kv { display:grid; grid-template-columns:auto 1fr; gap:8px 18px; margin:0; }
dl.kv dt { color:var(--muted); font-size:12px; font-weight:600; }
dl.kv dd { margin:0; color:var(--text-2); font-size:13px; }
.tag {
  display:inline-block; font-family:var(--font-mono); font-size:11.5px;
  color:var(--accent-2); background:var(--accent-soft);
  border:1px solid rgba(242,104,60,.22); border-radius:var(--r-sm); padding:1px 7px;
}
.badge.ok { color:var(--live); background:var(--live-soft); border-color:rgba(63,185,127,.3); }
.badge.err { color:var(--danger); background:var(--danger-soft); border-color:rgba(239,92,92,.32); }

/* ---- Default-agent cards + on/off switch ---- */
.da-section { margin: 0 0 26px; }
.da-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.da-card { margin: 0; }
.da-blurb { margin: 0 0 10px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.da-channels { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.da-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* the toggle is a real <button> — reset it, then build the pill */
.cs-switch {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: 0; margin: 0; padding: 4px;
  font: inherit; color: var(--text-2); cursor: pointer; border-radius: var(--r-pill);
}
.cs-switch-track {
  position: relative; flex: 0 0 auto; width: 40px; height: 22px;
  background: var(--surface-3); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  transition: background .16s ease, border-color .16s ease;
}
.cs-switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  background: var(--text-2); border-radius: 50%;
  transition: transform .16s ease, background .16s ease;
}
.cs-switch-text { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; }
.cs-switch-text .ic-svg { width: 13px; height: 13px; }
.cs-switch:hover .cs-switch-track { border-color: var(--faint); }
.cs-switch.on { color: var(--live); }
.cs-switch.on .cs-switch-track { background: var(--live-soft); border-color: rgba(63,185,127,.5); }
.cs-switch.on .cs-switch-thumb { transform: translateX(18px); background: var(--live); }
/* locked = clickable (opens the upgrade modal) but visibly unavailable */
.cs-switch.locked { color: var(--muted); }
.cs-switch.locked .cs-switch-track { background: var(--bg-2); border-style: dashed; }
.cs-switch.locked:hover { color: var(--warn); }
.cs-switch.locked:hover .cs-switch-track { border-color: var(--warn); }

/* ---- Upgrade modal ---- */
.cs-modal-backdrop {
  position: fixed; inset: 0; z-index: 5000;
  display: grid; place-items: center; padding: 20px;
  background: rgba(6,8,11,.66); backdrop-filter: blur(3px);
  animation: cs-fade .14s ease;
}
.cs-modal-backdrop[hidden] { display: none; }
.cs-modal {
  width: 100%; max-width: 420px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: cs-pop .16s ease;
}
.cs-modal:focus { outline: none; }
.cs-modal-head { display: flex; align-items: center; gap: 11px; margin: 0 0 12px; }
.cs-modal-icon {
  display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px;
  background: var(--warn-soft); color: var(--warn); border-radius: var(--r-sm);
}
.cs-modal-icon .ic-svg { width: 18px; height: 18px; }
.cs-modal-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.cs-modal-body { margin: 0 0 20px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.cs-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

@keyframes cs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cs-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cs-switch-track, .cs-switch-thumb { transition: none; }
  .cs-modal-backdrop, .cs-modal { animation: none; }
}

/* ---- Integrations (public API keys + webhooks) ---- */
.int-code {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent-2);
  background: var(--accent-soft); border: 1px solid rgba(242,104,60,.22);
  border-radius: 5px; padding: 1px 6px;
}
.int-danger { color: var(--danger); }
.int-danger:hover { color: #ff8585; background: var(--danger-soft); }
.int-revoked { opacity: .5; }

/* copy-field: input grows, button hugs the right */
.int-copy, .int-conn-row { display: flex; align-items: center; gap: 8px; }
.int-copy .input { flex: 1; }
.int-copied { background: var(--live-soft) !important; border-color: rgba(63,185,127,.4) !important; color: var(--live) !important; }

/* connection = a sunken config block (HOST / COMPANY_ID) */
.int-conn {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px; display: grid; gap: 8px;
}
.int-conn-key {
  flex: 0 0 108px; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; color: var(--muted); text-transform: uppercase;
}
.int-conn-row .input { background: var(--surface); }

/* one-time secret reveal — accent-framed, impossible to miss */
.int-reveal {
  margin: 0 0 16px; padding: 16px 18px;
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  border: 1px solid rgba(242,104,60,.4); border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px rgba(242,104,60,.08), var(--shadow);
}
.int-reveal-head { display: flex; align-items: center; gap: 11px; margin: 0 0 12px; }
.int-reveal-ic {
  display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px;
  background: var(--accent-soft); color: var(--accent-2); border-radius: var(--r-sm);
}
.int-reveal-ic .ic-svg { width: 17px; height: 17px; }
.int-reveal-title { font-size: 14px; font-weight: 700; color: var(--text); }
.int-reveal-sub { font-size: 12.5px; color: var(--accent-2); margin-top: 1px; }
.int-reveal-hint { font-size: 12px; color: var(--text-2); margin-top: 10px; }

/* inline "new key" form — label field grows, button aligns to its baseline */
.int-inline-form { display: flex; align-items: flex-end; gap: 12px; }
.int-note-ic { flex: 0 0 auto; color: var(--warn); }
.int-note-ic .ic-svg { width: 18px; height: 18px; }

/* webhook event picker */
.int-events { border: 0; padding: 0; margin: 0; }
.int-events legend { font-size: 12px; font-weight: 600; color: var(--text-2); padding: 0; margin: 0 0 10px; }
.int-events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.int-check {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 9px 11px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 12.5px; transition: border-color .12s ease;
}
.int-check:hover { border-color: var(--faint); }
.int-check:has(input:checked) { border-color: rgba(242,104,60,.45); background: var(--accent-soft); }
.int-check input { accent-color: var(--accent); flex: 0 0 auto; }
.int-check .mono { color: var(--text-2); }

/* ============================================================================
   Quality Lab (ql-) — admin campaign quality testing.
   Same console language: surfaces + hairlines, mono micro-labels, status
   accents. The two signature pieces: a chat transcript with per-voice rails,
   and 5-segment judge score meters. Motion gates on prefers-reduced-motion.
   ---------------------------------------------------------------------------- */

/* Safety strip — the feature's core promise, stated quietly and always. */
.ql-shield {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin: 0 0 22px;
  background: var(--live-soft); border: 1px dashed rgba(63,185,127,.35);
  border-radius: var(--r-md); color: var(--live);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
}
.ql-shield .pip { width: 7px; height: 7px; border-radius: 99px; background: currentColor; flex: 0 0 auto; }

/* Campaign rows on the index — a calm 3-column grid: pick / body / actions.
   The action cluster self-centers against the whole row so Details and Run
   test always sit on one axis, and the body keeps a tight 3-line rhythm:
   name+state, company·triggers, last test. */
.ql-camp {
  border-top: 1px solid var(--line); padding: 14px 18px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2px 14px; align-items: start;
  transition: background .12s ease;
}
.ql-camp:hover { background: var(--surface-2); }
.ql-camp:first-of-type { border-top: 0; }
.ql-camp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 30px; }
.ql-camp-head strong { font-size: 14.5px; }
.ql-camp-head strong a:hover { color: var(--accent-2); }
.ql-camp-meta {
  color: var(--muted); font-size: 12.5px; margin-top: 4px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ql-sep { color: var(--line-2); user-select: none; }
.ql-trigger {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: var(--r-pill);
}
.ql-last { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; flex-wrap: wrap; }

/* Quiet dot-tag — status/verdict data without a wall of bordered badges. */
.ql-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-2);
}
.ql-tag .pip { width: 6px; height: 6px; border-radius: 99px; background: currentColor; flex: 0 0 auto; }
.ql-tag.live { color: var(--live); }
.ql-tag.warn { color: var(--warn); }
.ql-tag.danger { color: #ff8585; }
.ql-tag.info { color: var(--info); }
.ql-tag.accent { color: var(--accent-2); }
/* Pulse = "in flight" only (running campaigns, pending/claimed runs) —
   settled verdicts like done/pass stay still. */
.ql-tag.pulse .pip, .ql-tag.info .pip { animation: pulse 1.6s infinite; }

/* The action cluster: one vertical axis, equal 30px controls, centered on the row. */
.ql-actions { display: flex; align-items: center; gap: 8px; align-self: center; }
.ql-actions .btn { height: 30px; white-space: nowrap; }
.ql-actions .ql-config { margin-top: 0; }

/* Recent-runs table: quieter cells, tighter rhythm. */
.ql-runs td { padding: 9px 14px; }
.ql-runs td:first-child { width: 88px; }

/* Run-test disclosure: summary reads as a button, panel as a sunken config. */
.ql-config { margin-top: 12px; }
.ql-config > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: var(--r-sm);
  background: var(--accent); color: #1c0e07; font-weight: 600; font-size: 12.5px;
  border: 1px solid var(--accent); box-shadow: 0 2px 14px rgba(242,104,60,.3);
  transition: background .12s ease;
}
.ql-config > summary::-webkit-details-marker { display: none; }
.ql-config > summary:hover { background: var(--accent-2); }
.ql-config[open] > summary { background: var(--surface-3); color: var(--text-2); border-color: var(--line-2); box-shadow: none; }
.ql-config-panel {
  margin-top: 12px; padding: 14px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
  display: grid; gap: 10px;
}
.ql-config-knobs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Transcript — chat stream with per-voice rails. */
.ql-chat {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 62vh; overflow-y: auto; padding: 18px;
}
.ql-msg { max-width: 86%; display: flex; flex-direction: column; gap: 4px; }
.ql-msg .who {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.ql-msg .bubble {
  padding: 10px 14px; border-radius: var(--r-md); white-space: pre-wrap;
  font-size: 13.5px; line-height: 1.55; border: 1px solid var(--line);
}
.ql-msg--agent { align-self: flex-start; }
.ql-msg--agent .bubble {
  background: var(--surface-2); border-left: 3px solid var(--accent);
  border-top-left-radius: 4px;
}
.ql-msg--agent .who { color: var(--accent-2); }
.ql-msg--persona { align-self: flex-end; align-items: flex-end; }
.ql-msg--persona .bubble {
  background: var(--bg-2); border-right: 3px solid var(--info);
  border-top-right-radius: 4px;
}
.ql-msg--persona .who { color: var(--info); }
.ql-msg--new { animation: ql-msg-in .26s ease-out; }
@keyframes ql-msg-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.ql-chat-empty { padding: 34px 0; text-align: center; color: var(--muted); font-size: 13px; }

/* Turn progress — thin accent meter under the transcript header. */
.ql-progress { height: 3px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.ql-progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .4s ease; }

/* Judge score meters — 5 segments per dimension, colored by score band. */
.ql-scores { display: grid; gap: 9px; }
.ql-score { display: grid; grid-template-columns: 118px 1fr 24px; align-items: center; gap: 10px; }
.ql-score .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--text-2); }
.ql-score .val { font-family: var(--font-mono); font-size: 11.5px; color: var(--text); text-align: right; }
.ql-segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.ql-seg { height: 8px; border-radius: 3px; background: var(--surface-3); }
.ql-seg.on-hi  { background: var(--live); }
.ql-seg.on-mid { background: var(--warn); }
.ql-seg.on-lo  { background: var(--danger); }
.ql-issues { margin: 12px 0 0; padding: 0 0 0 18px; color: var(--text-2); font-size: 13px; }
.ql-issues li { margin: 4px 0; }
.ql-rationale {
  margin-top: 12px; padding: 10px 14px; border-left: 2px solid var(--line-2);
  color: var(--muted); font-size: 12.5px; line-height: 1.6; font-style: italic;
}

/* Verdict actions */
.ql-verdict-actions { display: flex; gap: 8px; margin-top: 10px; }
.ql-verdict-actions .btn.pass { background: var(--live-soft); border-color: rgba(63,185,127,.4); color: var(--live); }
.ql-verdict-actions .btn.pass:hover { background: rgba(63,185,127,.22); }

.ql-progress.done i { background: var(--live); }
.ql-msg .bubble strong { color: var(--text); font-weight: 600; }

/* Batch dispatch — arm rows with the checkbox rail; a command tray docks at
   the viewport bottom while anything is armed (pure CSS :has, JS only counts). */
.ql-pick-box { display: flex; align-items: flex-start; padding-top: 3px; cursor: pointer; flex: 0 0 auto; }
.ql-pick, #ql-select-all {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0;
  border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg-2);
  cursor: pointer; display: inline-grid; place-content: center; flex: 0 0 auto;
  transition: border-color .12s ease, background .12s ease;
}
.ql-pick:hover, #ql-select-all:hover { border-color: var(--accent); }
.ql-pick:checked, #ql-select-all:checked, #ql-select-all:indeterminate {
  background: var(--accent); border-color: var(--accent);
}
.ql-pick:checked::before, #ql-select-all:checked::before {
  content: ""; width: 9px; height: 9px; background: #1c0e07;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
#ql-select-all:indeterminate::before { content: ""; width: 8px; height: 2px; background: #1c0e07; }
.ql-pick:focus-visible, #ql-select-all:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.ql-selectall {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: var(--muted);
}
.ql-selectall:hover { color: var(--text-2); }

.ql-camp { transition: background .15s ease, box-shadow .15s ease; }
.ql-camp:has(.ql-pick:checked) {
  background: linear-gradient(90deg, rgba(242,104,60,.07), transparent 55%);
  box-shadow: inset 3px 0 0 var(--accent);
}

.ql-batchbar {
  position: fixed; left: 50%; bottom: 18px; z-index: 60;
  transform: translateX(-50%) translateY(calc(100% + 26px)); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  width: min(780px, calc(100vw - 44px)); padding: 10px 12px; margin: 0;
  background: var(--bg-1);
  background: color-mix(in srgb, var(--bg-1) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(242,104,60,.4); border-radius: var(--r-md);
  box-shadow: 0 18px 44px rgba(0,0,0,.5), 0 0 24px rgba(242,104,60,.12);
  transition: transform .22s cubic-bezier(.2,.9,.25,1), opacity .18s ease;
}
.content:has(.ql-pick:checked) .ql-batchbar {
  transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto;
}
.ql-batch-count {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  color: var(--muted); white-space: nowrap;
}
.ql-batch-count strong { color: var(--accent-2); font-size: 14.5px; margin-right: 6px; }

/* New-result signal — a settled run nobody has reviewed yet. */
.ql-new {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em;
  color: var(--accent-2); text-decoration: none;
  background: rgba(242,104,60,.1); border: 1px solid rgba(242,104,60,.4);
  padding: 3px 10px; border-radius: var(--r-pill);
  transition: background .12s ease;
}
.ql-new:hover { background: rgba(242,104,60,.2); }
.ql-new .pip {
  width: 6px; height: 6px; border-radius: 99px; background: currentColor;
  animation: ql-pulse 1.6s ease-in-out infinite;
}
.ql-newtag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .09em;
  color: var(--accent-2); border: 1px solid rgba(242,104,60,.45);
  padding: 1px 5px; border-radius: 3px; vertical-align: 1px;
}
@keyframes ql-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .ql-msg--new { animation: none; }
  .ql-progress i { transition: none; }
  .ql-batchbar { transition: opacity .18s ease; }
  .ql-new .pip { animation: none; }
}
