/* The Meerkat Meta console rebuilt in code (console-live.js). Colours, type and geometry
   follow the console's own kit in its light theme: warm ink on paper, and one orange
   accent that means "now". The console is laid out at a fixed logical size and scaled
   to the frame, so it keeps its proportions at any width. */
.cl-screen { position: relative; aspect-ratio: 16 / 9; background: #f2f0ec; overflow: hidden; }
.cl-stage { position: absolute; inset: 0; }
.cl-noscript { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; color: var(--ink-2); font-size: 14px; }
#console.is-live .cl-noscript { display: none; }
#console:not(.is-live) .keys, #console:not(.is-live) .key-progress { display: none; }

.cl {
  --c-canvas: #f8f6f3; --c-soft: #f2f0ec; --c-raised: #fbfaf7; --c-card: #fff;
  --c-ink: #1e1a14; --c-strong: #14110c; --c-muted: #59554e; --c-meta: #65625c; --c-subtle: #7d7a74;
  --c-line: #dddad6; --c-line2: #c7c4be;
  --c-accent: #c04815; --c-accent-soft: #ffdfd2; --c-accent-surface: #fff1ec;
  --c-ok: #448c56; --c-warn: #cd8800; --c-crit: #cf4040; --c-info: #0074a5;
  --c-sans: "Inter Tight", Inter, -apple-system, "Segoe UI", sans-serif; --c-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; flex-direction: column;
  background: var(--c-canvas); color: var(--c-ink); font: 13px/1.45 var(--c-sans); letter-spacing: -0.003em; overflow: hidden;
  -webkit-font-smoothing: antialiased; user-select: none; pointer-events: none;
}
.cl * { box-sizing: border-box; }
.cl p, .cl h3, .cl h4, .cl dl, .cl dd, .cl ul { margin: 0; padding: 0; }
.cl svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cl svg.fill { fill: currentColor; stroke: none; }
.cl-mono { font-family: var(--c-mono); letter-spacing: 0; }
.cl-sp { flex: 1; }
.cl b { font-weight: 600; }

/* Status marks: tone, shape and word together. Live is the accent with its ring. */
.cl-mk { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-subtle); flex: none; transition: background .3s, box-shadow .3s; }
.cl-mk.is-ok { background: var(--c-ok); }
.cl-mk.is-acc { background: var(--c-accent); }
.cl-mk.is-live { background: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 22%, transparent); animation: cl-live 1.8s ease-in-out infinite; }
.cl-mk.is-idle { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-subtle); }
.cl-mk.is-warn { width: 0; height: 0; border-radius: 0; background: none; border: 4.5px solid transparent; border-top: 0; border-bottom: 8px solid var(--c-warn); }
.cl-mk.is-crit { border-radius: 1px; background: var(--c-crit); transform: rotate(45deg) scale(.82); }
.cl-mk.is-info { background: var(--c-info); }
@keyframes cl-live { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-accent) 10%, transparent); } }

/* Pills, chips, buttons, avatars */
.cl-pill { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px 0 7px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-soft); font-size: 11px; font-weight: 500; color: var(--c-ink); white-space: nowrap; flex: none; transition: background .3s, border-color .3s; }
.cl-pill.is-working { background: var(--c-accent-soft); border-color: color-mix(in srgb, var(--c-accent) 45%, var(--c-card)); }
.cl-pill.is-healthy { background: color-mix(in srgb, var(--c-ok) 13%, var(--c-card)); border-color: color-mix(in srgb, var(--c-ok) 40%, var(--c-card)); }
.cl-pill.is-degraded { background: color-mix(in srgb, var(--c-warn) 14%, var(--c-card)); border-color: color-mix(in srgb, var(--c-warn) 45%, var(--c-card)); }
.cl-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-soft); font-size: 11px; font-weight: 500; color: var(--c-muted); white-space: nowrap; flex: none; }
.cl-chip.is-info { color: color-mix(in srgb, var(--c-info) 80%, var(--c-ink)); background: color-mix(in srgb, var(--c-info) 10%, var(--c-card)); border-color: color-mix(in srgb, var(--c-info) 35%, var(--c-card)); }
.cl-chip.is-crit { color: color-mix(in srgb, var(--c-crit) 70%, var(--c-ink)); background: var(--c-card); border-color: color-mix(in srgb, var(--c-crit) 45%, var(--c-card)); }
.cl-chip.is-warn { color: color-mix(in srgb, var(--c-warn) 60%, var(--c-ink)); background: color-mix(in srgb, var(--c-warn) 12%, var(--c-card)); border-color: color-mix(in srgb, var(--c-warn) 40%, var(--c-card)); }
.cl-chip.is-ok { color: color-mix(in srgb, var(--c-ok) 65%, var(--c-ink)); background: color-mix(in srgb, var(--c-ok) 12%, var(--c-card)); border-color: color-mix(in srgb, var(--c-ok) 40%, var(--c-card)); }
.cl-chip.is-quiet { background: none; border-color: transparent; padding-left: 0; }
.cl-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-card); font-size: 11.5px; font-weight: 500; color: var(--c-ink); white-space: nowrap; flex: none; transition: background .2s, border-color .2s, color .2s, opacity .2s; }
.cl-btn svg { color: var(--c-muted); }
.cl-btn.is-primary { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.cl-btn.is-pos { background: color-mix(in srgb, var(--c-ok) 12%, var(--c-card)); border-color: color-mix(in srgb, var(--c-ok) 50%, var(--c-card)); color: color-mix(in srgb, var(--c-ok) 65%, var(--c-ink)); }
.cl-btn.is-neg { border-color: color-mix(in srgb, var(--c-crit) 40%, var(--c-card)); color: color-mix(in srgb, var(--c-crit) 70%, var(--c-ink)); }
.cl-btn.is-ghost { border-color: transparent; background: none; padding: 0 6px; }
.cl-av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-accent-soft); color: color-mix(in srgb, var(--c-accent) 80%, var(--c-ink)); font-size: 11.5px; font-weight: 600; flex: none; }
.cl-av.xs { width: 18px; height: 18px; font-size: 9.5px; }
.cl-av.lg { width: 34px; height: 34px; font-size: 13px; }
.cl-av.is-live { box-shadow: 0 0 0 1.5px var(--c-card), 0 0 0 3px var(--c-accent); }
.cl-lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-meta); }
.cl-time { font-family: var(--c-mono); font-size: 10.5px; color: var(--c-subtle); letter-spacing: 0; }

/* Top bar */
.cl-top { height: 38px; flex: none; display: flex; align-items: stretch; border-bottom: 1px solid var(--c-line); background: var(--c-canvas); }
.cl-tc { display: flex; align-items: center; gap: 7px; padding: 0 13px; border-right: 1px solid var(--c-line); font-size: 12px; color: var(--c-muted); white-space: nowrap; }
.cl-tc b { font-weight: 500; color: var(--c-ink); }
.cl-tc em { font-style: normal; color: var(--c-meta); }
.cl-sp ~ .cl-tc { border-right: 0; border-left: 1px solid var(--c-line); }
.cl-ic { padding: 0 12px; gap: 12px; }
.cl-brand { font-size: 12.5px; font-weight: 600; color: var(--c-ink); }
.cl-brand i { width: 12px; height: 12px; border-radius: 50%; background: var(--c-accent); }
.cl-id { transition: background .3s; }

/* Body: sidebar, dock, signals */
.cl-body { flex: 1; min-height: 0; display: flex; }
.cl-side { width: 232px; flex: none; display: flex; flex-direction: column; background: var(--c-soft); border-right: 1px solid var(--c-line); overflow: hidden; }
.cl-needs { display: flex; align-items: center; gap: 9px; margin: 4px 6px; height: 32px; padding: 0 8px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--c-muted); transition: background .3s, color .3s; }
.cl-needs svg:last-child { width: 12px; height: 12px; color: var(--c-subtle); }
.cl-needs-c { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: color-mix(in srgb, var(--c-ink) 6%, transparent); font: 500 10.5px/18px var(--c-mono); text-align: center; color: var(--c-meta); transition: background .3s, color .3s, transform .3s; }
.cl-needs.is-hot { background: var(--c-card); color: var(--c-ink); box-shadow: 0 0 0 1px var(--c-line); }
.cl-needs.is-hot .cl-needs-c { background: var(--c-accent); color: #fff; }
.cl-needs-c.is-bump { animation: cl-bump .5s; }
@keyframes cl-bump { 40% { transform: scale(1.3); } }
.cl-mast { padding: 9px 14px 7px; border-top: 1px solid var(--c-line); }
.cl-mast b { display: block; font-size: 13px; }
.cl-mast span { font-size: 11.5px; color: var(--c-meta); }
.cl-search { margin: 0 12px 8px; height: 26px; display: flex; align-items: center; gap: 7px; padding: 0 8px; border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-card); font-size: 12px; color: var(--c-subtle); }
.cl-search kbd { margin-left: auto; font: 10px var(--c-mono); border: 1px solid var(--c-line); border-radius: 2px; padding: 0 4px; color: var(--c-meta); }
.cl-sh { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 26px; padding: 0 14px; border-top: 1px solid var(--c-line); }
.cl-sh em { font: 400 10.5px var(--c-mono); font-style: normal; color: var(--c-subtle); margin-right: auto; }
.cl-nav { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 14px; font-size: 12.5px; color: var(--c-muted); border-left: 2px solid transparent; transition: background .25s, color .25s; }
.cl-nav.on { background: var(--c-card); color: var(--c-ink); border-left-color: var(--c-accent); }
.cl-navs { padding-bottom: 6px; }
.cl-list { flex: 1; min-height: 0; overflow: hidden; }
.cl-ag { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 9px; height: 38px; padding: 0 10px 0 12px; border-left: 2px solid transparent; transition: background .3s; }
.cl-ag.is-sel { background: var(--c-card); border-left-color: var(--c-accent); }
.cl-agt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cl-agt b { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-ags { font-size: 11px; color: var(--c-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-agr { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font: 10px var(--c-mono); color: var(--c-subtle); }
.cl-ag.is-sub { height: 30px; padding-left: 28px; grid-template-columns: 14px minmax(0, 1fr); transition: opacity .4s, height .4s; }
.cl-ag.is-sub svg { width: 12px; height: 12px; color: var(--c-accent); }
.cl-ag.is-sub.is-new { opacity: 0; height: 0; }
.cl-ag.is-sub b { font-size: 12px; }

.cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-tabs { height: 34px; flex: none; display: flex; align-items: stretch; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--c-line); }
.cl-tab { display: flex; align-items: center; gap: 8px; padding: 0 9px; font-size: 12px; font-weight: 500; box-shadow: inset 0 -2px 0 var(--c-accent); }
.cl-tab i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.cl-plus { display: flex; align-items: center; padding: 0 8px; color: var(--c-subtle); }
.cl-dock { flex: 1; min-height: 0; display: flex; gap: 6px; padding: 6px; }
.cl-col { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; transition: flex-grow .7s cubic-bezier(.65, 0, .35, 1); }
.cl-pane { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 6px; overflow: hidden; transition: flex-grow .7s cubic-bezier(.65, 0, .35, 1), box-shadow .3s; }
.cl-pane.is-focused { box-shadow: inset 0 2px 0 var(--c-accent); }
.cl-pbar { height: 30px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 10px; background: var(--c-canvas); border-bottom: 1px solid var(--c-line); font-size: 12px; white-space: nowrap; overflow: hidden; }
.cl-pt { display: flex; align-items: center; gap: 7px; min-width: 0; }
.cl-pt b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.cl-pt svg { color: var(--c-muted); }
.cl-pt svg:last-child { width: 10px; height: 10px; color: var(--c-subtle); }
.cl-pic { display: flex; gap: 9px; color: var(--c-subtle); }
.cl-pb { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; container-type: inline-size; position: relative; }

/* Signals rail */
.cl-sig { width: 252px; flex: none; display: flex; flex-direction: column; background: var(--c-soft); border-left: 1px solid var(--c-line); overflow: hidden; }
.cl-sig-h { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px 4px; }
.cl-sig-n { font-size: 10.5px; color: var(--c-meta); }
.cl-sig-p { padding: 2px 14px 8px; }
.cl-sig-t { display: flex; margin: 0 12px 8px; border: 1px solid var(--c-line); border-radius: 4px; overflow: hidden; background: var(--c-card); }
.cl-sig-t span { flex: 1; display: flex; justify-content: center; gap: 5px; align-items: baseline; height: 25px; line-height: 25px; font-size: 11.5px; font-weight: 500; color: var(--c-muted); border-left: 1px solid var(--c-line); }
.cl-sig-t span:first-child { border-left: 0; }
.cl-sig-t .on { background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 -2px 0 var(--c-accent); }
.cl-sig-t i { font: 400 10.5px var(--c-mono); font-style: normal; color: var(--c-subtle); }
.cl-sig-l { flex: 1; min-height: 0; border-top: 1px solid var(--c-line); overflow: hidden; }
.cl-s { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; column-gap: 7px; row-gap: 3px; align-items: center; padding: 10px 14px 10px 12px; border-bottom: 1px solid var(--c-line); border-left: 2px solid transparent; max-height: 110px; overflow: hidden; transition: opacity .45s, max-height .45s, padding .45s, border-color .6s; }
.cl-s.is-new { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
.cl-s.is-live { border-left-color: var(--c-accent); }
.cl-s b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-s p { grid-column: 2 / 4; font-size: 12px; line-height: 1.4; color: var(--c-muted); }
.cl-agent { grid-column: 2 / 4; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--c-muted); }

/* Micro charts */
.cl-hist { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 20px; vertical-align: bottom; }
.cl-hist i { width: 5px; min-height: 1px; background: color-mix(in srgb, var(--c-ink) 52%, var(--c-card)); transition: height .5s cubic-bezier(.3, .7, .3, 1), background .3s; }
.cl-hist i.now { background: var(--c-accent); }
.cl-hist.sm { height: 12px; gap: 1px; }
.cl-hist.sm i { width: 3px; }
.cl-hist.wide { display: flex; height: 22px; gap: 2px; }
.cl-hist.wide i { flex: 1; }
.cl-units { display: inline-flex; align-items: center; gap: 1.5px; height: 12px; }
.cl-units i { width: 2.5px; height: 12px; background: color-mix(in srgb, var(--c-ink) 12%, var(--c-card)); transition: background .35s, box-shadow .35s; }
.cl-units i.a { background: var(--c-ink); }
.cl-units i.h { background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-ink); }
.cl-units i.w { background: var(--c-accent); }

/* Workbench panels: head, glance strip, tabs */
.cl-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cl-phd { flex: none; display: flex; align-items: center; gap: 12px; padding: 11px 16px 10px; border-bottom: 1px solid var(--c-line); }
.cl-phd-t { min-width: 0; margin-right: auto; }
.cl-phd h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.cl-sum { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--c-meta); white-space: nowrap; overflow: hidden; }
.cl-sum b { font-weight: 500; color: var(--c-ink); }
.cl-sum .warn { color: color-mix(in srgb, var(--c-warn) 60%, var(--c-ink)); }
.cl-more { display: flex; color: var(--c-subtle); }
.cl-seg { display: inline-flex; border: 1px solid var(--c-line); border-radius: 4px; overflow: hidden; background: var(--c-card); flex: none; }
.cl-seg span { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; font-size: 11.5px; font-weight: 500; color: var(--c-muted); border-left: 1px solid var(--c-line); transition: background .25s, box-shadow .25s, color .25s; }
.cl-seg span:first-child { border-left: 0; }
.cl-seg span.on { background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 -2px 0 var(--c-accent); }
.cl-seg span em { font: 400 10.5px var(--c-mono); font-style: normal; color: var(--c-subtle); }
.cl-seg svg { width: 13px; height: 13px; }
.cl-seg b { font-weight: inherit; }
.cl-glance { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--c-line); }
.cl-gt { padding: 10px 16px 11px; border-left: 1px solid var(--c-line); min-width: 0; overflow: hidden; }
.cl-gt:first-child { border-left: 0; }
.cl-gt .cl-lbl { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.cl-gf { display: flex; align-items: flex-end; gap: 12px; margin-top: 3px; white-space: nowrap; }
.cl-fig { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.cl-fig small { font-size: 12px; font-weight: 400; color: var(--c-meta); letter-spacing: 0; margin-left: 4px; }
.cl-aux { margin-top: 3px; font-size: 11px; color: var(--c-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-aux .up { color: color-mix(in srgb, var(--c-ok) 65%, var(--c-ink)); }
.cl-key { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.cl-key i { width: 6px; height: 6px; background: var(--c-ink); }
.cl-key i.h { background: none; box-shadow: inset 0 0 0 1px var(--c-ink); }
.cl-key i.w { background: var(--c-accent); }
.cl-ptabs { flex: none; display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--c-line); }
.cl-ptabs span { display: flex; align-items: baseline; gap: 5px; height: 32px; line-height: 32px; padding: 0 8px; font-size: 12px; color: var(--c-muted); transition: box-shadow .25s, color .25s; }
.cl-ptabs span.on { color: var(--c-ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--c-accent); }
.cl-ptabs em { font: 400 10.5px var(--c-mono); font-style: normal; color: var(--c-subtle); }
.cl-pbody { flex: 1; min-height: 0; position: relative; overflow: hidden; }
@container (max-width: 600px) {
  .cl-glance { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-gt:nth-child(4) { display: none; }
  .cl-phd { padding: 10px 12px 9px; }
  .cl-gt { padding: 9px 12px 10px; }
  .cl-seg.is-view span { padding: 0 8px; }
  .cl-seg.is-view span b { display: none; }
  .cl-hide-n { display: none !important; }
}
@container (max-width: 430px) {
  .cl-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-gt:nth-child(3) { display: none; }
}

/* Topology: clusters on a canvas */
.cl-graph { flex: 1; min-height: 0; position: relative; background: var(--c-raised); }
.cl-graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cl-legend { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 12px; height: 28px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 6px; background: var(--c-card); font-size: 11px; color: var(--c-muted); white-space: nowrap; }
.cl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cl-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink); }
.cl-legend i.c { box-shadow: 0 0 0 2px var(--c-card), 0 0 0 3px var(--c-ink); width: 6px; height: 6px; margin: 0 2px; }
.cl-legend i.h { background: none; box-shadow: inset 0 0 0 1.2px var(--c-ink); }
.cl-legend i.w { background: var(--c-accent); }
.cl-legend em { font: 400 10.5px var(--c-mono); font-style: normal; color: var(--c-subtle); }

/* Conversations */
.cl-conv { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cl-ch { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--c-line); }
.cl-ch-t { min-width: 0; margin-right: auto; }
.cl-ch-n { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cl-ch-n b { font-size: 14px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; }
.cl-role { font-size: 11.5px; color: var(--c-meta); }
.cl-ch-l { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--c-meta); white-space: nowrap; }
.cl-ch-l.is-live { color: var(--c-ink); }
.cl-banner { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--c-accent-surface); border-bottom: 1px solid color-mix(in srgb, var(--c-accent) 22%, var(--c-card)); font-size: 12px; line-height: 1.4; color: var(--c-muted); }
.cl-banner > svg { color: var(--c-accent); }
.cl-banner p { flex: 1; min-width: 0; }
.cl-banner b { color: var(--c-ink); }
.cl-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
.cl-msgs-in { display: flex; flex-direction: column; gap: 12px; padding: 14px 20px 14px 40px; }
.cl-msgs-in > * { transition: opacity .4s, transform .4s; }
.cl-msgs-in > .is-new { opacity: 0; transform: translateY(8px); }
.cl-msgs-in > .is-past { opacity: .55; }
.cl-day { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--c-meta); }
.cl-day::before, .cl-day::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.cl-mh { display: flex; align-items: baseline; gap: 7px; margin-bottom: 5px; font-size: 11.5px; color: var(--c-meta); }
.cl-mh b { color: var(--c-ink); }
.cl-ub { padding: 8px 12px; border: 1px solid var(--c-line); border-left: 3px solid var(--c-muted); border-radius: 4px; background: var(--c-card); font-size: 13px; }
.cl-gb { display: flex; flex-direction: column; gap: 8px; }
.cl-p { font-size: 13px; line-height: 1.5; max-width: 60ch; }
.cl-p.is-typing::after { content: ""; display: inline-block; width: 6px; height: 12px; margin-left: 2px; vertical-align: -1px; background: var(--c-accent); animation: cl-blink .9s steps(2) infinite; }
@keyframes cl-blink { 50% { opacity: 0; } }
.cl-tool { padding: 7px 8px 8px; border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-soft); }
.cl-tool-l { display: block; margin-bottom: 5px; font: 500 9.5px var(--c-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-meta); }
.cl-tool-c { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: 4px; background: color-mix(in srgb, var(--c-ink) 4%, var(--c-soft)); font: 11.5px var(--c-mono); white-space: nowrap; overflow: hidden; }
.cl-tool-c svg { width: 12px; height: 12px; color: var(--c-subtle); }
.cl-tool-n { font-weight: 500; }
.cl-tool-a { color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; }
.cl-tool-s { margin-left: auto; padding-left: 10px; color: var(--c-meta); }
.cl-tool.is-running .cl-tool-s::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border: 1.5px solid var(--c-accent); border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: cl-spin .8s linear infinite; }
@keyframes cl-spin { to { transform: rotate(360deg); } }
.cl-tool.is-waiting .cl-tool-s { color: color-mix(in srgb, var(--c-warn) 60%, var(--c-ink)); }
.cl-tool.is-done .cl-tool-s { color: color-mix(in srgb, var(--c-ok) 65%, var(--c-ink)); }
.cl-think { display: flex; gap: 4px; padding: 4px 0; }
.cl-think i { width: 5px; height: 5px; border-radius: 50%; background: var(--c-subtle); opacity: .3; animation: cl-dots 1s infinite; }
.cl-think i:nth-child(2) { animation-delay: .15s; }
.cl-think i:nth-child(3) { animation-delay: .3s; }
@keyframes cl-dots { 50% { opacity: 1; } }
.cl-composer { flex: none; margin: 0 14px; padding: 9px 10px 8px; border: 1px solid var(--c-line); border-radius: 6px; background: var(--c-soft); }
.cl-input { min-height: 34px; font-size: 13px; color: var(--c-subtle); }
.cl-input.is-focus { color: var(--c-ink); }
.cl-typed.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--c-ink); animation: cl-blink .9s steps(2) infinite; }
.cl-crow { display: flex; align-items: center; gap: 8px; }
.cl-send { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 4px; background: color-mix(in srgb, var(--c-ink) 22%, var(--c-soft)); color: #fff; font-size: 11.5px; font-weight: 500; transition: background .25s; }
.cl-send svg { width: 12px; height: 12px; }
.cl-input.is-focus ~ .cl-crow .cl-send { background: var(--c-accent); }
.cl-to { flex: none; display: flex; align-items: center; gap: 6px; padding: 7px 16px 9px; font-size: 11.5px; color: var(--c-meta); white-space: nowrap; overflow: hidden; }
.cl-to b { font-weight: 500; color: var(--c-ink); }

/* A progress card an agent writes into its conversation */
.cl-pcard { display: flex; align-items: center; gap: 18px; padding: 13px 16px; border: 1px solid var(--c-line); border-radius: 6px; background: var(--c-card); max-width: 400px; }
.cl-pcard-l { flex: 1; min-width: 0; }
.cl-pcard h4 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.cl-pbig { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; }
.cl-pbig span { color: var(--c-subtle); font-weight: 400; margin: 0 4px; }
.cl-pby { font-size: 11px; color: var(--c-meta); }
.cl-ring { position: relative; width: 76px; height: 76px; flex: none; }
.cl-ring svg { width: 76px; height: 76px; transform: rotate(-90deg); stroke-width: 7; }
.cl-ring .tr { stroke: color-mix(in srgb, var(--c-ink) 9%, var(--c-card)); }
.cl-ring .fl { stroke: var(--c-accent); stroke-dasharray: 264; stroke-linecap: butt; }
.cl-rt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 11.5px; line-height: 1.2; }
.cl-rt b { font-size: 14px; display: inline-block; }
.cl-rt span { display: block; font-size: 9.5px; color: var(--c-meta); }
.cl-rn.is-bump { animation: cl-bump .5s; }

/* Approvals */
.cl-apprs { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.cl-appr { padding: 11px 13px 10px; border: 1px solid var(--c-line); border-left: 3px solid var(--c-warn); border-radius: 6px; background: var(--c-card); max-width: 560px; transition: border-color .4s, opacity .4s; }
.cl-appr[data-state="settled"] { border-left-color: var(--c-ok); }
.cl-appr[data-audience="other"] { border-left-color: var(--c-line2); }
.cl-appr-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cl-appr-h strong { font-size: 13px; font-weight: 600; margin-right: 2px; }
.cl-dl { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 11px var(--c-mono); color: color-mix(in srgb, var(--c-info) 80%, var(--c-ink)); white-space: nowrap; }
.cl-dl svg { width: 12px; height: 12px; }
.cl-minibar { height: 3px; margin: 8px 0 9px; border-radius: 2px; background: color-mix(in srgb, var(--c-ink) 8%, var(--c-card)); overflow: hidden; }
.cl-minibar i { display: block; height: 100%; background: var(--c-info); }
.cl-asked { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--c-meta); }
.cl-asked b { font-weight: 500; color: var(--c-ink); }
.cl-rat { margin-top: 6px; font-size: 12.5px; line-height: 1.45; }
.cl-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin-top: 7px; font-size: 11.5px; }
.cl-kv dt { color: var(--c-meta); }
.cl-appr-f { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--c-line); }
.cl-appr-a { display: flex; gap: 6px; margin-left: auto; }
.cl-appr-a .cl-btn { height: 26px; }
.cl-appr[data-state="submitting"] .cl-appr-a { opacity: .45; }
.cl-appr[data-state="settled"] .cl-appr-a, .cl-appr[data-state="settled"] .cl-minibar, .cl-appr[data-state="settled"] .cl-dl, .cl-appr[data-state="settled"] .cl-appr-h .is-info { display: none; }
.cl-audit { padding: 4px 14px; }
.cl-arow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--c-line); font-size: 12px; transition: opacity .4s, transform .4s, background 1.2s; }
.cl-arow.is-new { opacity: 0; transform: translateY(6px); }
.cl-arow.is-flash { background: color-mix(in srgb, var(--c-ok) 9%, transparent); }
.cl-arow b { font-weight: 500; }
.cl-arow p { grid-column: 2 / 4; font-size: 11.5px; color: var(--c-meta); line-height: 1.4; }
.cl-view { position: absolute; inset: 0; overflow: hidden; transition: opacity .35s; }
.cl-view[hidden] { display: block; opacity: 0; visibility: hidden; }

/* Schedules */
.cl-sbar { display: flex; align-items: center; gap: 14px; padding: 10px 16px 8px; font-size: 11px; color: var(--c-muted); white-space: nowrap; }
.cl-sbar .cl-seg span { height: 24px; }
.cl-skey { display: inline-flex; align-items: center; gap: 6px; }
.cl-agenda { padding: 0 16px; }
.cl-arule, .cl-alane { display: grid; grid-template-columns: 172px minmax(0, 1fr); align-items: center; }
.cl-arule { height: 20px; border-bottom: 1px solid var(--c-line); }
.cl-ticks { position: relative; height: 100%; }
.cl-ticks span { position: absolute; top: 3px; font: 10px var(--c-mono); color: var(--c-subtle); transform: translateX(-100%); padding-right: 4px; }
.cl-ticks span:first-child { transform: none; color: var(--c-accent); padding-left: 3px; }
.cl-alane { height: 38px; border-bottom: 1px solid var(--c-line); transition: opacity .45s, transform .45s, background 1.4s; }
.cl-alane.is-new { opacity: 0; transform: translateY(6px); }
.cl-alane.is-flash { background: color-mix(in srgb, var(--c-accent) 7%, transparent); }
.cl-alane > span:first-child { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.cl-track { position: relative; height: 100%; background: linear-gradient(to right, var(--c-line) 1px, transparent 1px) 0 0 / 25% 100%; border-left: 2px solid var(--c-accent); }
.cl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: color-mix(in srgb, var(--c-ink) 8%, transparent); }
.cl-sm { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--c-ink); transition: opacity .4s, transform .4s; }
.cl-sm.is-tick { width: 1.5px; height: 11px; margin: -5.5px 0 0 -1px; }
.cl-sm.is-cal { transform: rotate(45deg); }
.cl-sm.is-paused { transform: rotate(45deg); background: var(--c-card); box-shadow: inset 0 0 0 1.2px var(--c-subtle); }
.cl-sm.is-next { background: var(--c-accent); }
.cl-sm.is-new { opacity: 0; }
.cl-band { position: absolute; top: 50%; height: 0; border-top: 1.5px dashed var(--c-muted); }
.cl-band em { position: absolute; left: 6px; top: -15px; font: 10px var(--c-mono); font-style: normal; color: var(--c-meta); white-space: nowrap; }
i.cl-sm { position: static; display: inline-block; margin: 0; flex: none; }
i.cl-sm.is-tick { margin: 0 3px; }
.cl-srow > i.cl-sm { justify-self: center; }
.cl-slist { padding: 4px 0 0; }
.cl-sgrp { display: flex; align-items: center; gap: 8px; padding: 9px 16px 6px; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--c-line); }
.cl-sgrp em { font: 400 10.5px var(--c-mono); font-style: normal; color: var(--c-subtle); }
.cl-srow { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 74px; align-items: center; gap: 10px; padding: 7px 16px 7px 22px; border-bottom: 1px solid var(--c-line); max-height: 60px; overflow: hidden; transition: opacity .45s, max-height .45s, padding .45s, background 1.6s; }
.cl-srow.is-new { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
.cl-srow.is-flash { background: color-mix(in srgb, var(--c-accent) 8%, transparent); }
.cl-srow > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cl-srow b { font-size: 12.5px; font-weight: 500; }
.cl-srow small { font-size: 11px; color: var(--c-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-srow .cl-chip { font-size: 11px; }
.cl-srow .cl-time { text-align: right; }
.cl-snew { padding: 10px 16px 4px; }
.cl-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 300px; max-width: 100%; display: flex; flex-direction: column; background: var(--c-card); border-left: 1px solid var(--c-line); box-shadow: -8px 0 20px rgba(0, 0, 0, .05); transform: translateX(102%); transition: transform .5s cubic-bezier(.65, 0, .35, 1); z-index: 2; }
.cl-drawer.is-open { transform: none; }
.cl-dh { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 10px; border-bottom: 1px solid var(--c-line); }
.cl-dh > div { flex: 1; min-width: 0; }
.cl-dh h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.cl-dh span { font-size: 11.5px; color: var(--c-meta); }
.cl-dh > svg { color: var(--c-subtle); margin-top: 3px; }
.cl-open { display: flex; margin-top: 3px; color: var(--c-muted); }
.cl-db { flex: 1; min-height: 0; padding: 10px 14px; overflow: hidden; }
.cl-fl { display: block; margin: 0 0 3px; font-size: 11.5px; color: var(--c-muted); }
.cl-fi { display: flex; align-items: center; min-height: 28px; margin-bottom: 9px; padding: 4px 9px; border: 1px solid var(--c-line); border-radius: 4px; background: var(--c-soft); font-size: 12.5px; line-height: 1.4; transition: border-color .25s, background .25s; }
.cl-fi.is-focus { border-color: var(--c-accent); background: var(--c-card); }
.cl-fi.is-area { align-items: flex-start; min-height: 46px; }
.cl-fi svg { margin-left: auto; width: 10px; height: 10px; color: var(--c-subtle); }
.cl-days { display: flex; gap: 4px; margin-bottom: 9px; }
.cl-days span { width: 30px; height: 24px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: 4px; font-size: 11px; color: var(--c-muted); transition: background .25s, color .25s, border-color .25s; }
.cl-days span.on { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.cl-frow { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
.cl-fnote { font-size: 11.5px; line-height: 1.45; color: var(--c-muted); margin: 2px 0 11px; }
.cl-fact { display: flex; gap: 8px; }

/* Roster */
.cl-fbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--c-line); }
.cl-fbar .cl-search { margin: 0; width: 190px; flex: none; }
.cl-cards { padding: 4px 16px 0; transition: padding-right .5s cubic-bezier(.65, 0, .35, 1); }
.cl-cards.is-narrow { padding-right: 316px; }
.cl-csec { display: flex; gap: 7px; align-items: baseline; padding: 9px 0 7px; }
.cl-csec em { font: 400 10.5px var(--c-mono); font-style: normal; color: var(--c-subtle); }
.cl-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 10px; }
@container (min-width: 900px) { .cl-cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cl-cards.is-narrow .cl-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 600px) { .cl-card .cl-pill { font-size: 0; gap: 0; padding: 0 5px; } }
.cl-card { position: relative; padding: 11px 12px 10px 13px; border: 1px solid var(--c-line); border-radius: 6px; background: var(--c-card); min-width: 0; transition: border-color .3s, box-shadow .3s, opacity .35s, transform .35s; }
.cl-card::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; border-radius: 6px 0 0 6px; background: var(--c-accent); opacity: 0; transition: opacity .3s; }
.cl-card.is-working::before { opacity: 1; }
.cl-card.is-sel { border-color: var(--c-line2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-ink) 7%, transparent); }
.cl-card.is-out { display: none; }
.cl-card.is-new { opacity: 0; transform: translateY(6px); }
.cl-card-h { display: flex; align-items: center; gap: 9px; }
.cl-card-h > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; margin-right: auto; line-height: 1.25; }
.cl-card-h b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-card-h small { font-size: 11px; color: var(--c-meta); white-space: nowrap; }
.cl-now { display: flex; align-items: center; gap: 7px; margin: 9px 0 7px; font-size: 12px; white-space: nowrap; overflow: hidden; }
.cl-card-a { display: flex; align-items: flex-end; gap: 10px; font-size: 11px; color: var(--c-meta); }
.cl-card-c { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--c-muted); white-space: nowrap; overflow: hidden; }
.cl-card-c svg { width: 12px; height: 12px; color: var(--c-subtle); }
.cl-dsec { margin: 12px 0 6px; display: flex; justify-content: space-between; align-items: baseline; }
.cl-dsec span { font-size: 11px; color: var(--c-meta); }
.cl-dnow { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; line-height: 1.4; }
.cl-dnow .cl-mk { transform: translateY(-1px); }
.cl-dnow small { display: block; font-size: 11px; color: var(--c-meta); }
.cl-drow { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--c-line); font-size: 12px; transition: opacity .35s, transform .35s; }
.cl-drow.is-new { opacity: 0; transform: translateY(4px); }
.cl-drow span:last-child { margin-left: auto; font-size: 11px; color: var(--c-meta); }
.cl-axis { display: flex; justify-content: space-between; margin-top: 3px; font: 9.5px var(--c-mono); color: var(--c-subtle); }

/* Cursor */
.cl-cursor { position: absolute; left: 0; top: 0; z-index: 10; width: 0; height: 0; opacity: 0; transition: opacity .35s; will-change: transform; }
.cl-cursor.on { opacity: 1; }
.cl-cursor svg { position: absolute; left: -2px; top: -1px; width: 17px; height: 23px; fill: #1c1c1a; stroke: #fff; stroke-width: 1.3; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.cl-ripple { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--c-accent) 30%, transparent); opacity: 0; transform: scale(.3); }
.cl-cursor.down .cl-ripple { animation: cl-ripple .55s ease-out; }
@keyframes cl-ripple { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }
.cl .is-pressed { filter: brightness(.94); }

/* Paused: CSS motion stops with the script's clock. Reduced motion: final states only. */
#console.is-paused .cl *, #console.is-paused .cl *::after, #console.is-paused .cl *::before { animation-play-state: paused !important; }
.cl.cl-still, .cl.cl-still *, .cl.cl-still *::after, .cl.cl-still *::before { transition: none !important; animation: none !important; }
.cl.cl-still .cl-cursor { display: none; }

/* Phones: one pane at a time; the sidebar, the signals rail and secondary controls go. */
.cl-compact .cl-hide-s { display: none !important; }
.cl-compact .cl-dock { position: relative; }
.cl-compact .cl-col { position: relative; z-index: 1; }
.cl-compact .cl-col.is-behind { position: absolute; inset: 6px; z-index: 0; }
.cl-compact .cl-pane { transition: transform .55s cubic-bezier(.65, 0, .35, 1), opacity .55s, box-shadow .3s; }
.cl-compact .cl-pane.is-solo-in { transform: translateY(40px); opacity: 0; }
.cl-compact .cl-pane.is-solo-out { transform: scale(.96); opacity: .25; }
.cl-compact .cl-pane[hidden] { display: none; }
.cl-compact .cl-msgs-in { padding: 12px 14px 12px 16px; }
.cl-compact .cl-ch { padding: 9px 12px; }
.cl-compact .cl-pcard { gap: 12px; padding: 11px 12px; }
.cl-compact .cl-pbig { font-size: 18px; }
.cl-compact .cl-arule, .cl-compact .cl-alane { grid-template-columns: 124px minmax(0, 1fr); }
.cl-compact .cl-agenda, .cl-compact .cl-cards { padding-left: 12px; padding-right: 12px; }
.cl-compact .cl-cards.is-narrow { padding-right: 12px; }
.cl-compact .cl-srow { grid-template-columns: 14px minmax(0, 1fr) 66px; padding-left: 14px; padding-right: 12px; }
.cl-compact .cl-srow .cl-chip { display: none; }
.cl-compact .cl-legend { display: none; }
.cl-compact .cl-units { gap: 1px; }
.cl-compact .cl-units i { width: 1.5px; }
@media (max-width: 720px) {
  .cl-screen { aspect-ratio: 4 / 5; }
}
