/* Jarvis console for Venteo
   Layout: topbar + Jarvis column (always visible) + current view (Prospección or Agentes).
   Color is semantic and consistent: sky (Venteo indigo) = sent, mint = replies and success, amber = needs you,
   coral = bounces and failures, cyan (Venteo violet) = Jarvis, violet (fuchsia) = Jarvis thinking.
   Variable names are kept from the first palette so the rest of the code does not change. */

@font-face { font-family: 'Manrope'; src: url('fonts/manrope-variable.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('fonts/chakra-petch-medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('fonts/chakra-petch-semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('fonts/chakra-petch-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #0F0B21;
  --ink-2: #130E2A;
  --ink-3: #1A1438;
  --ink-4: #231B47;
  --line: rgba(180, 165, 235, .12);
  --line-2: rgba(180, 165, 235, .22);
  --text: #EDE9F8;
  --text-2: #ADA5CB;
  --text-3: #7E759C;
  --cyan: #B197FC;
  --sky: #7479F5;
  --mint: #8EF0C3;
  --amber: #F4B860;
  --coral: #F07167;
  --violet: #E07BF5;
  --display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --code: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --top-h: 64px;
  --col-j: 340px;
  --col-r: 408px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 400 14.5px/1.5 var(--body);
  background:
    radial-gradient(620px 560px at 170px 330px, rgba(177, 151, 252, .10), transparent 70%),
    radial-gradient(900px 600px at 100% 0%, rgba(99, 102, 241, .07), transparent 70%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(177, 151, 252, .3); }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
kbd {
  font: 600 11px/1 var(--body);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 3px 5px;
  background: rgba(255, 255, 255, .03);
}
.num { font-variant-numeric: tabular-nums; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(180, 165, 235, .22) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(180, 165, 235, .18); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- App grid ---------- */
.app {
  display: grid;
  grid-template-columns: var(--col-j) minmax(0, 1fr);
  grid-template-rows: var(--top-h) minmax(0, 1fr);
  grid-template-areas: "top top" "jarvis view";
  height: 100vh;
  height: 100dvh;
}
.top { grid-area: top; }
.jarvis { grid-area: jarvis; }
.view { grid-area: view; min-width: 0; min-height: 0; }
.view-prospect { display: grid; grid-template-columns: minmax(0, 1fr) var(--col-r); min-height: 0; }
.main { overflow-y: auto; min-height: 0; border-left: 1px solid var(--line); }

/* ---------- Top bar ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 11, 33, .78);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; width: calc(var(--col-j) - 40px); flex: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font: 600 20px/1 var(--display);
  letter-spacing: .05em;
  display: block;
  background: linear-gradient(100deg, #A5A8FF 0%, #B197FC 45%, #D58BF7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub { font-size: 12px; color: var(--text-3); display: block; margin-top: 3px; }

.views-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--ink-3); border: 1px solid var(--line); }
.views-switch button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 8px;
  font-weight: 600; font-size: 13.5px; color: var(--text-2);
}
.views-switch button:hover { color: var(--text); }
.views-switch button[aria-selected="true"] { background: var(--ink-4); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.health-dot[data-health="ok"] { background: var(--mint); }
.health-dot[data-health="warn"] { background: var(--amber); }
.health-dot[data-health="bad"] { background: var(--coral); box-shadow: 0 0 0 3px rgba(240, 113, 103, .18); }

.search-trigger {
  display: flex; align-items: center; gap: 10px;
  width: auto; flex: 0 1 300px; min-width: 150px; height: 38px; padding: 0 8px 0 12px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--ink-3); color: var(--text-3); font-size: 13.5px;
}
.search-trigger:hover { border-color: var(--line-2); color: var(--text-2); }
.search-trigger span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.top-status { margin-left: auto; display: flex; align-items: center; gap: 16px; flex: none; }
@media (max-width: 1560px) { .send-state .next { display: none; } }
.send-state {
  display: flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2);
  white-space: nowrap;
}
.send-state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); position: relative; flex: none; }
.send-state .label { font-weight: 700; font-size: 13.5px; }
.send-state .next { font-size: 13px; color: var(--text-3); }
.send-state[data-state="sending"] .dot { background: var(--mint); }
.send-state[data-state="sending"] .dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--mint); opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
.send-state[data-state="paused"] .dot { background: var(--amber); }
.send-state[data-state="paused"] .label { color: var(--amber); }
.send-state[data-state="cupo_full"] .dot { background: var(--sky); }
.send-state[data-state="empty"] .dot,
.send-state[data-state="offline"] .dot { background: var(--coral); }
.send-state[data-state="offline"] .label { color: var(--coral); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.cupo { width: 118px; }
.cupo-text { font-size: 12.5px; color: var(--text-2); display: flex; justify-content: space-between; }
.cupo-text b { font: 600 13px var(--display); color: var(--text); }
.cupo-bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.cupo-bar span { display: block; height: 100%; width: 0; background: var(--sky); border-radius: 4px; transition: width .6s var(--ease); }
.cupo-bar span.full { background: var(--cyan); }

.clock { text-align: right; line-height: 1.15; white-space: nowrap; }
.clock-time { font: 600 18px var(--display); letter-spacing: .03em; display: block; }
.clock-date { font-size: 12px; color: var(--text-3); display: block; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-grid; place-items: center;
  color: var(--text-2); border: 1px solid transparent; flex: none;
}
.icon-btn:hover { background: var(--ink-3); color: var(--text); border-color: var(--line); }
.icon-btn[aria-expanded="true"] { background: var(--ink-3); color: var(--text); border-color: var(--line-2); }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Jarvis column ---------- */
.jarvis { display: flex; flex-direction: column; gap: 12px; padding: 14px 20px 16px; min-height: 0; }
.orb-wrap { display: flex; flex-direction: column; align-items: center; flex: none; }
.orb { width: min(236px, 27vh); aspect-ratio: 1; border-radius: 50%; display: block; position: relative; }
.orb canvas { width: 100%; height: 100%; display: block; }
.orb:focus-visible { outline-offset: -6px; border-radius: 50%; }
.caption:empty { display: none; }
.caption {
  font: 500 15px/1.35 var(--display); color: var(--cyan);
  text-align: center; margin: 4px 0 0; min-height: 2.7em; max-width: 30ch;
  display: flex; align-items: center; justify-content: center;
}
.caption.is-error { color: var(--coral); }
.caption.is-muted { color: var(--text-2); }

.transcript {
  flex: 1; min-height: 80px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 4px 4px 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px);
}
.turn { max-width: 92%; padding: 9px 13px 8px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.turn p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.turn-meta { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-3); }
.turn.ai { align-self: flex-start; background: rgba(177, 151, 252, .055); border: 1px solid rgba(177, 151, 252, .15); border-top-left-radius: 4px; }
.turn.me { align-self: flex-end; background: var(--ink-4); border-top-right-radius: 4px; }
.turn.me .turn-meta { text-align: right; }
.turn-draft {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--amber);
  padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(244, 184, 96, .35); background: rgba(244, 184, 96, .07);
}
.turn-draft:hover { background: rgba(244, 184, 96, .14); }
.turn.typing { display: inline-flex; gap: 5px; padding: 12px 14px; }
.turn.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); opacity: .4; animation: blink 1.2s infinite; }
.turn.typing span:nth-child(2) { animation-delay: .2s; }
.turn.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: 1; } }

.prompts { display: flex; flex-wrap: wrap; gap: 5px; flex: none; }
.prompts button {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2);
}
.prompts button:hover { color: var(--cyan); border-color: rgba(177, 151, 252, .5); background: rgba(177, 151, 252, .05); }

.composer {
  display: flex; align-items: flex-end; gap: 4px; flex: none;
  padding: 5px 5px 5px 13px; border-radius: 14px;
  background: var(--ink-3); border: 1px solid var(--line-2);
}
.composer:focus-within { border-color: rgba(177, 151, 252, .5); }
.composer textarea {
  flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent;
  padding: 7px 0; max-height: 132px; line-height: 1.45; font-size: 14.5px;
}
.composer textarea::placeholder { color: var(--text-3); }
.composer .icon-btn { width: 34px; height: 34px; }
.composer .send { color: var(--cyan); }
.composer .mic[aria-pressed="true"] { background: var(--mint); color: var(--ink); }
.hints { font-size: 12px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 4px 12px; flex: none; }
.hints span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Shared section parts ---------- */
.main-inner { padding: 22px 28px 40px; display: flex; flex-direction: column; gap: 26px; max-width: 1180px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-height: 30px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font: 600 16px var(--display); letter-spacing: .015em; }
.head-meta { font-size: 12.5px; color: var(--text-3); }
.head-actions { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.rule { border-top: 1px solid var(--line); padding-top: 18px; }

.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--ink-3); border: 1px solid var(--line); }
.seg button { font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 4px 11px; border-radius: 7px; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--ink-4); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; white-space: nowrap;
}
.ghost-btn:hover { background: var(--ink-3); color: var(--text); border-color: var(--line); }
.ghost-btn svg.i { width: 16px; height: 16px; }
.ghost-btn.is-busy svg.i { animation: spin 1s linear infinite; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 15px; border-radius: 10px;
  font-weight: 700; font-size: 13.5px; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--text);
}
.btn:hover { background: var(--ink-4); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #1D1405; }
.btn-amber:hover { background: #F7C67C; }
.btn-cyan { background: rgba(177, 151, 252, .12); border-color: rgba(177, 151, 252, .45); color: var(--cyan); }
.btn-cyan:hover { background: rgba(177, 151, 252, .2); }
.btn-danger { color: var(--coral); border-color: rgba(240, 113, 103, .45); }
.btn svg.i { width: 16px; height: 16px; }
.link-btn { font-size: 13px; font-weight: 600; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.link-btn:hover { color: var(--cyan); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; line-height: 1;
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
  color: var(--text-2); background: rgba(180, 165, 235, .08); border: 1px solid var(--line-2);
}
.tone-cyan { color: var(--cyan); background: rgba(177, 151, 252, .09); border-color: rgba(177, 151, 252, .35); }
.tone-mint { color: var(--mint); background: rgba(142, 240, 195, .08); border-color: rgba(142, 240, 195, .32); }
.tone-sky { color: #B4B6FA; background: rgba(116, 121, 245, .1); border-color: rgba(116, 121, 245, .4); }
.tone-amber { color: var(--amber); background: rgba(244, 184, 96, .08); border-color: rgba(244, 184, 96, .35); }
.tone-coral { color: var(--coral); background: rgba(240, 113, 103, .08); border-color: rgba(240, 113, 103, .35); }
.tone-violet { color: var(--violet); background: rgba(224, 123, 245, .08); border-color: rgba(224, 123, 245, .35); }
.tone-muted { color: var(--text-3); background: transparent; border-color: var(--line); }

.empty { color: var(--text-3); font-size: 13.5px; margin: 0; padding: 4px 0; }
.empty-block { padding: 26px 18px; text-align: center; color: var(--text-2); font-size: 13.5px; border: 1px dashed var(--line-2); border-radius: 14px; }
.empty-block strong { display: block; color: var(--text); font: 600 15px var(--display); margin-bottom: 4px; }
.error-line { color: var(--coral); font-size: 13.5px; display: flex; gap: 10px; align-items: center; }

.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(180,165,235,.07), rgba(180,165,235,.15), rgba(180,165,235,.07)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Brief ---------- */
.brief-body { position: relative; transition: opacity .2s; }
.brief-body.is-refreshing { opacity: .55; }
.brief-headline { font: 600 25px/1.28 var(--display); letter-spacing: .005em; margin: 2px 0 18px; max-width: 42ch; text-wrap: balance; }
.brief-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.brief-cols h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-list li { position: relative; padding-left: 17px; margin-bottom: 8px; font-size: 14px; line-height: 1.5; max-width: 62ch; }
.brief-list li::before { content: ''; position: absolute; left: 1px; top: .58em; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: var(--mint); }
.brief-list.attention li::before { background: var(--amber); }
.brief-next {
  margin-top: 16px; display: flex; align-items: center; gap: 14px;
  padding: 12px 12px 12px 16px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(177, 151, 252, .09), rgba(177, 151, 252, .015));
  border: 1px solid rgba(177, 151, 252, .18);
}
.brief-next b { font: 600 13px var(--display); color: var(--cyan); white-space: nowrap; letter-spacing: .02em; }
.brief-next p { margin: 0; flex: 1; font-size: 14px; }
.brief-loading { display: grid; gap: 10px; padding: 6px 0 2px; }
.brief-loading p { margin: 0 0 4px; color: var(--violet); font: 500 14px var(--display); }

/* ---------- KPI strip ---------- */
.kpis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(26, 20, 56, .55), rgba(19, 14, 42, .4));
}
.kpi { position: relative; padding: 15px 18px 14px; min-height: 120px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.kpi:nth-child(3n) { border-right: 0; }
.kpi:nth-last-child(-n+3) { border-bottom: 0; }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.kpi-label i { width: 8px; height: 8px; border-radius: 2px; background: var(--text-3); flex: none; }
.kpi-value { font: 600 34px/1.1 var(--display); letter-spacing: .01em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 18px; color: var(--text-2); margin-left: 1px; font-weight: 500; }
.kpi-sub { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.kpi-viz { position: absolute; right: 16px; top: 46px; }
.kpi.is-bad .kpi-value { color: var(--coral); }
.kpi.is-good .kpi-value { color: var(--mint); }
.units { display: grid; grid-template-columns: repeat(10, 5px); gap: 2px; }
.units i { width: 5px; height: 5px; border-radius: 1px; background: rgba(180, 165, 235, .16); }
.units i.on { background: var(--mint); box-shadow: 0 0 6px rgba(142, 240, 195, .5); }
.c-sky { background: var(--sky) !important; } .c-mint { background: var(--mint) !important; } .c-cyan { background: var(--cyan) !important; }
.c-amber { background: var(--amber) !important; } .c-coral { background: var(--coral) !important; } .c-violet { background: var(--violet) !important; }

/* ---------- Charts ---------- */
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 10px; background: rgba(13, 9, 29, .55); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); margin-left: auto; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend i.round { border-radius: 50%; }
.legend i.hatch { background: repeating-linear-gradient(45deg, rgba(116, 121, 245, .7) 0 2px, rgba(116, 121, 245, .12) 2px 5px); border: 1px dashed rgba(116, 121, 245, .7); }
.chart { position: relative; min-height: 236px; }
.chart svg { display: block; overflow: visible; }
.chart .ax { font: 500 11.5px var(--body); fill: var(--text-3); }
.chart .ax.is-today { fill: var(--text); font-weight: 700; }
.chart .ax.is-fc { fill: rgba(180, 182, 250, .75); }
.chart .ax.amber { fill: rgba(244, 184, 96, .85); }
.chart .val { font: 600 11.5px var(--display); fill: var(--text-2); }
.chart .val.is-today { fill: var(--text); }
.chart .bar { fill: var(--sky); }
.chart .bar.today { fill: var(--cyan); }
.chart .bar.ok { fill: rgba(142, 240, 195, .75); }
.chart .bar.err { fill: var(--coral); }
.chart .rep { fill: rgba(142, 240, 195, .16); stroke: var(--mint); stroke-width: 1.4; }
.chart .rep-n { font: 700 11px var(--display); fill: var(--mint); }
.chart .rep-0 { fill: var(--text-3); opacity: .5; }
.chart .day { outline: none; }
.chart .day:focus-visible .hit, .chart .day:hover .hit { fill: rgba(180, 165, 235, .06); }
.chart.grow .bar, .chart.grow .bar-fc { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .8s var(--ease) both; animation-delay: calc(var(--i) * 28ms); }
@keyframes grow { from { transform: scaleY(0); } }

.tooltip {
  position: fixed; z-index: 80; pointer-events: none;
  background: #171230; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 8px 11px; font-size: 12.5px; line-height: 1.45; color: var(--text-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4); max-width: 260px;
}
.tooltip b { color: var(--text); font-weight: 700; }

/* ---------- Funnel, queue, industries ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.funnel { display: grid; gap: 9px; }
.f-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 38px 50px; align-items: center; gap: 10px; }
.f-label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.f-track { height: 12px; border-radius: 4px; background: rgba(180, 165, 235, .06); overflow: hidden; }
.f-bar { display: block; height: 100%; width: var(--w); border-radius: 4px; transition: width .8s var(--ease); }
.f-val { font: 600 15px var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.f-conv { font-size: 12px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: 12px; color: var(--text-3); margin: 10px 0 0; }

.queue { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.queue li + li { border-top: 1px solid var(--line); }
.queue button { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px; text-align: left; border-radius: 8px; }
.queue button:hover { background: var(--ink-3); }
.queue .q-n { font: 600 13px var(--display); color: var(--text-3); text-align: center; }
.queue .q-name { font-weight: 700; font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue .q-meta { font-size: 12px; color: var(--text-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue .q-time { font: 500 12.5px var(--display); color: var(--text-2); white-space: nowrap; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--text-3); padding: 0 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 2px; }
.table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .strong { font-weight: 700; }
.ind-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.ind-bar { flex: 1; height: 8px; border-radius: 3px; background: rgba(180, 165, 235, .06); display: flex; overflow: hidden; }
.ind-bar span:first-child { background: var(--sky); }
.ind-bar span:nth-child(2) { background: rgba(116, 121, 245, .3); }
.ind-n { font-size: 12.5px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.rate-good { color: var(--mint); font-weight: 700; }
.muted { color: var(--text-3); }

/* ---------- Inbox rail ---------- */
.rail { display: flex; flex-direction: column; min-height: 0; background: var(--ink-2); border-left: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; padding: 6px 10px 0; border-bottom: 1px solid var(--line); flex: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 12px 10px 13px; font-weight: 700; font-size: 13.5px; color: var(--text-2); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--cyan); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font: 600 12px var(--display); background: var(--ink-4); color: var(--text-2); }
.count.amber { background: rgba(244, 184, 96, .16); color: var(--amber); }
.count:empty { display: none; }
.pane { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 28px; }
.pane-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.pane-tools .head-meta { margin-left: auto; }

.draft { border: 1px solid rgba(244, 184, 96, .32); border-radius: 14px; padding: 13px 13px 12px; background: rgba(244, 184, 96, .035); margin-bottom: 12px; transition: opacity .3s, transform .3s var(--ease); }
.draft.is-done { opacity: .45; }
.draft.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px rgba(244, 184, 96, .35); } 100% { box-shadow: 0 0 0 0 rgba(244, 184, 96, 0); } }
.draft-head { display: flex; gap: 10px; align-items: flex-start; }
.draft-head h3 { margin: 0; font: 600 15px var(--display); }
.draft-head p { margin: 1px 0 0; font-size: 12.5px; color: var(--text-3); overflow-wrap: anywhere; }
.draft-head .chip { margin-left: auto; }
.draft-context { margin: 10px 0 0; font-size: 13px; color: var(--text-2); padding-left: 10px; border-left: 2px solid rgba(142, 240, 195, .4); }
.draft textarea {
  width: 100%; margin: 10px 0; min-height: 140px; resize: vertical;
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 11px; line-height: 1.5; font-size: 14px;
}
.draft textarea:focus { outline: 0; border-color: rgba(244, 184, 96, .6); }
.draft-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.draft-actions .link-btn { margin-left: auto; }
.draft-note { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }

.day-head { font: 600 12.5px var(--display); color: var(--text-2); padding: 12px 4px 6px; letter-spacing: .02em; }
.day-head:first-child { padding-top: 0; }
.mail, .reply {
  width: 100%; text-align: left; display: grid; gap: 2px;
  padding: 10px 8px; border-radius: 10px; border-bottom: 1px solid var(--line);
}
.mail { grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; }
.mail:hover, .reply:hover { background: var(--ink-3); }
.mail-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; grid-row: span 3; }
.mail-ico svg.i { width: 15px; height: 15px; }
.mail-ico.out { background: rgba(116, 121, 245, .14); color: #B4B6FA; }
.mail-ico.in { background: rgba(142, 240, 195, .12); color: var(--mint); }
.mail-top, .reply-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mail-who, .reply-who { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-time, .reply-time { margin-left: auto; font-size: 12px; color: var(--text-3); white-space: nowrap; flex: none; }
.mail-kind { font-size: 12px; color: var(--text-2); }
.mail-kind.in { color: var(--mint); }
.mail-snippet, .reply-sum { font-size: 13px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reply-sum { color: var(--text-2); -webkit-line-clamp: 3; margin-top: 4px; }
.reply-top .chip { flex: none; }
.reply-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ---------- Agents view ---------- */
.view-agents { overflow-y: auto; border-left: 1px solid var(--line); }
.agents-inner { padding: 22px 28px 40px; display: flex; flex-direction: column; gap: 24px; max-width: 1480px; }
.health {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(142, 240, 195, .07), rgba(19, 14, 42, .3) 45%);
}
.health[data-health="bad"] { background: linear-gradient(100deg, rgba(240, 113, 103, .12), rgba(19, 14, 42, .3) 45%); border-color: rgba(240, 113, 103, .3); }
.health[data-health="warn"] { background: linear-gradient(100deg, rgba(244, 184, 96, .09), rgba(19, 14, 42, .3) 45%); }
.health-state { display: flex; align-items: center; gap: 14px; }
.health-ring { width: 54px; height: 54px; flex: none; }
.health-title { font: 600 22px/1.15 var(--display); display: block; }
.health-sub { font-size: 13px; color: var(--text-2); display: block; margin-top: 2px; }
.health-metrics { display: flex; gap: 28px; justify-content: flex-end; flex-wrap: wrap; }
.metric { min-width: 92px; }
.metric span { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; }
.metric b { display: block; font: 600 20px/1.2 var(--display); font-variant-numeric: tabular-nums; margin-top: 2px; }
.metric b small { font-size: 13px; color: var(--text-2); font-weight: 500; margin-left: 2px; }
.metric-bar { display: block; width: 100%; min-width: 110px; height: 4px; margin-top: 7px; border-radius: 4px; background: rgba(180, 165, 235, .14); overflow: hidden; }
.metric-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--mint); transition: width .6s var(--ease); }
.metric-bar[data-tone="warn"] > i { background: var(--amber); }
.metric-bar[data-tone="bad"] > i { background: var(--coral); }
.health-specs { color: var(--text-3); margin-top: 1px; }
.metric-note { font-size: 12.5px; color: var(--text-3); max-width: 34ch; text-align: right; }
.agents-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.agents-kpis .kpi { min-height: 104px; border-bottom: 0; }
.agents-kpis .kpi:nth-child(3n) { border-right: 1px solid var(--line); }
.agents-kpis .kpi:last-child { border-right: 0; }
.agents-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.wf-group + .wf-group { margin-top: 18px; }
.wf-group-head { display: flex; align-items: baseline; gap: 10px; padding: 0 2px 6px; border-bottom: 1px solid var(--line); }
.wf-group-head h3 { margin: 0; font: 600 14.5px var(--display); }
.wf-group-head span { font-size: 12.5px; color: var(--text-3); }
.wf-group-head .bad { color: var(--coral); font-weight: 700; }
.wf-row {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) 118px 118px 104px;
  gap: 14px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line);
  color: var(--text); width: 100%; text-align: left; border-radius: 8px;
}
.wf-row:hover { background: var(--ink-3); text-decoration: none; }
.wf-row.is-inactive { opacity: .5; }
.wf-cols { padding: 0 2px 4px; color: var(--text-3); font-size: 12px; font-weight: 700; border-bottom: 0; }
.wf-cols:hover { background: transparent; }
.wf-name { min-width: 0; }
.wf-name b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-name small { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.wf-dot.ok { background: var(--mint); }
.wf-dot.err { background: var(--coral); box-shadow: 0 0 0 3px rgba(240, 113, 103, .16); }
.wf-dot.run { background: var(--cyan); box-shadow: 0 0 0 3px rgba(177, 151, 252, .18); }
.wf-dot.idle { background: transparent; border: 1.5px solid var(--text-3); }
.strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 1.5px; height: 16px; }
.strip i { border-radius: 1.5px; background: rgba(180, 165, 235, .07); }
.strip i.l1 { background: rgba(142, 240, 195, .28); }
.strip i.l2 { background: rgba(142, 240, 195, .5); }
.strip i.l3 { background: rgba(142, 240, 195, .8); }
.strip i.e { background: var(--coral); }
.wf-n { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; min-width: 0; }
.wf-n b { display: block; font-weight: 700; color: var(--text); font-size: 13.5px; }
.wf-n small { display: block; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.wf-n.bad b { color: var(--coral); }
.wf-cols .wf-n, .wf-cols span { font-size: 12px; }
.fail { padding: 11px 2px; border-bottom: 1px solid var(--line); display: block; color: var(--text); }
.fail:hover { background: var(--ink-3); text-decoration: none; }
.fail-top { display: flex; gap: 8px; align-items: baseline; }
.fail-top b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fail-top span { margin-left: auto; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.fail-meta { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.fail-msg {
  margin-top: 6px; font: 12px/1.5 var(--code); color: #F4A7A0;
  background: rgba(240, 113, 103, .06); border: 1px solid rgba(240, 113, 103, .18);
  border-radius: 8px; padding: 6px 8px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.running-row { display: flex; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.running-row b { font-weight: 700; }
.running-row .running-when { margin-left: auto; color: var(--text-3); font-size: 12px; }
.setup { max-width: 640px; padding: 26px 28px; border-radius: 18px; border: 1px solid rgba(244, 184, 96, .3); background: rgba(244, 184, 96, .04); }
.setup h2 { margin: 0 0 6px; font: 600 21px var(--display); }
.setup p { margin: 0 0 14px; color: var(--text-2); }
.setup ol { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; }
.setup code { font: 12.5px var(--code); color: var(--cyan); background: rgba(177, 151, 252, .08); padding: 1px 6px; border-radius: 5px; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(7, 5, 16, .55); opacity: 0; transition: opacity .25s; }
.scrim.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 40;
  width: min(600px, 100vw); display: flex; flex-direction: column;
  background: #140F2C; border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 70px rgba(0, 0, 0, .4);
  transform: translateX(102%); transition: transform .32s var(--ease);
}
.drawer.open { transform: none; }
.dr-head { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.dr-head > div { flex: 1; min-width: 0; }
.dr-place { font-size: 12.5px; color: var(--text-3); margin: 0 0 3px; }
.dr-head h2 { margin: 0; font: 600 23px/1.2 var(--display); }
.dr-tags { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.dr-body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; }
.dr-facts { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 7px 14px; margin: 0 0 20px; font-size: 13.5px; }
.dr-facts dt { color: var(--text-3); font-weight: 600; }
.dr-facts dd { margin: 0; overflow-wrap: anywhere; }
.dr-summary { margin: 0 0 22px; padding: 12px 14px; border-radius: 12px; background: rgba(142, 240, 195, .05); border: 1px solid rgba(142, 240, 195, .18); font-size: 14px; }
.dr-summary h3, .dr-section-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.dr-section-title { margin-bottom: 12px; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; border-radius: 14px; padding: 10px 13px; border: 1px solid var(--line-2); background: var(--ink-3); }
.msg.out { align-self: flex-end; background: rgba(116, 121, 245, .1); border-color: rgba(116, 121, 245, .28); border-top-right-radius: 4px; }
.msg.in { align-self: flex-start; border-top-left-radius: 4px; }
.msg.out.assistant { background: rgba(177, 151, 252, .06); border-color: rgba(177, 151, 252, .22); }
.msg-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.msg-head b { font-size: 12.5px; }
.msg.in .msg-head b { color: var(--mint); }
.msg.out.assistant .msg-head b { color: var(--cyan); }
.msg-head span { font-size: 12px; color: var(--text-3); margin-left: auto; white-space: nowrap; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.msg-text.is-clamped { max-height: 8.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.msg-more { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.msg-more:hover { color: var(--cyan); }
.dr-foot { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(15, 11, 33, .6); flex-wrap: wrap; }
.dr-foot .btn:last-child { margin-left: auto; }

/* ---------- Palette ---------- */
.palette-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(7, 5, 16, .6); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette { width: min(640px, 100%); background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.palette-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--text); }
.palette-input input::placeholder { color: var(--text-3); }
.palette-list { list-style: none; margin: 0; padding: 6px; max-height: 54vh; overflow-y: auto; }
.p-group { padding: 10px 10px 4px; font-size: 12px; font-weight: 700; color: var(--text-3); }
.p-item { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.p-item[aria-selected="true"] { background: var(--ink-4); }
.p-item .p-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(180, 165, 235, .08); color: var(--text-2); flex: none; }
.p-item .p-ico.jarvis { background: rgba(177, 151, 252, .12); color: var(--cyan); }
.p-main { flex: 1; min-width: 0; }
.p-main b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-main small { display: block; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-empty { padding: 18px 12px; color: var(--text-3); font-size: 13.5px; }

/* ---------- Popover, dialog, toast ---------- */
.popover {
  position: fixed; top: calc(var(--top-h) - 6px); right: 14px; z-index: 55; width: 320px;
  background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); padding: 16px;
}
.popover h2 { margin: 0 0 12px; font: 600 15px var(--display); }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field select, .field input[type="password"], .field input[type="text"] {
  width: 100%; height: 38px; padding: 0 10px; border-radius: 9px;
  background: var(--ink); border: 1px solid var(--line-2); color: var(--text); font-weight: 500;
}
.field-row { display: flex; align-items: center; gap: 10px; }
.field-row input[type="range"] { flex: 1; accent-color: var(--cyan); }
.field-row output { font: 600 13px var(--display); color: var(--text); min-width: 36px; text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text); margin-bottom: 12px; cursor: pointer; }
.check input { accent-color: var(--cyan); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.popover-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }

.key-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(7, 5, 16, .82); backdrop-filter: blur(4px); }
.key-card { width: min(400px, 100%); background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 18px; padding: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.key-card h2 { margin: 0 0 6px; font: 600 21px var(--display); }
.key-card p { margin: 0 0 16px; color: var(--text-2); font-size: 14px; }
.key-card .error-line { margin: -4px 0 12px; }
.key-card .btn { width: 100%; }

.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 90; max-width: min(520px, 92vw);
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: #191334; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 10px 16px; font-size: 13.5px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  transition: opacity .2s, transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(240, 113, 103, .5); color: #F6A49C; }

/* ---------- Responsive ---------- */
@media (min-width: 1720px) {
  .view-prospect .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .view-prospect .kpi { border-bottom: 0; border-right: 1px solid var(--line); }
  .view-prospect .kpi:last-child { border-right: 0; }
}
@media (max-width: 1400px) {
  :root { --col-j: 304px; --col-r: 372px; }
  .search-trigger { flex-basis: 220px; }
  .clock { display: none; }
  .agents-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agents-kpis .kpi:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .agents-kpis .kpi:nth-child(3n) { border-right: 0; }
}
@media (max-width: 1240px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100vh; }
  .top { position: sticky; top: 0; }
  .jarvis { position: sticky; top: var(--top-h); height: calc(100dvh - var(--top-h)); align-self: start; }
  .view-prospect { grid-template-columns: minmax(0, 1fr); }
  .main, .view-agents { overflow: visible; }
  .rail { border-top: 1px solid var(--line); }
  .pane { overflow: visible; }
  .agents-grid { grid-template-columns: minmax(0, 1fr); }
  .agents-side { position: static; }
  .cupo { display: none; }
  .brand { width: auto; }
  .brand-sub { display: none; }
  .search-trigger { flex-basis: 200px; }
}
@media (max-width: 980px) {
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 38px; flex: none; min-width: 0; padding: 0; justify-content: center; }
}
@media (max-width: 820px) {
  :root { --top-h: 58px; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "jarvis" "view"; }
  .top { gap: 10px; padding: 0 12px; }
  .jarvis { position: static; height: auto; border-bottom: 1px solid var(--line); }
  .orb { width: 168px; }
  .transcript { max-height: 320px; }
  .main, .view-agents { border-left: 0; }
  .main-inner, .agents-inner { padding: 18px 16px 32px; }
  .kpis, .agents-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .kpi:nth-child(2n) { border-right: 0 !important; }
  .split, .brief-cols { grid-template-columns: minmax(0, 1fr); }
  .brief-headline { font-size: 21px; }
  .health { grid-template-columns: minmax(0, 1fr); }
  .health-metrics { justify-content: flex-start; }
  .wf-row { grid-template-columns: 12px minmax(0, 1fr) minmax(0, 1fr); row-gap: 6px; }
  .sys-top { grid-template-columns: minmax(0, 1fr); }
  .sys-activity { align-items: flex-start; }
  .wf-row .strip, .wf-cols { display: none; }
  .wf-row .wf-name { grid-column: 2 / 4; }
  .wf-row .wf-act { grid-column: 2; text-align: left; }
  .wf-row .wf-st { grid-column: 3; }
  .hints { display: none; }
  .send-state { padding: 0 10px; }
  .brief-next { flex-wrap: wrap; }
  .brief-next p { flex-basis: calc(100% - 120px); }
  .section-head .head-actions { margin-left: 0; }
}
@media (max-width: 520px) {
  /* Three tabs fit on a phone only without the status dots; the color moves to the tab text */
  .views-switch .health-dot { display: none; }
  .views-switch button { padding: 6px 7px; }
  .views-switch button:has(.health-dot[data-health="bad"]) { color: var(--coral); }
  .views-switch button:has(.health-dot[data-health="warn"]) { color: var(--amber); }
  .top { gap: 6px; padding: 0 8px; }
}
@media (max-width: 430px) { .send-state { display: none; } }
@media (max-width: 520px) {
  .send-state .label, .brand-name, #refreshBtn { display: none; }
  .send-state { width: 36px; padding: 0; justify-content: center; }
  .views-switch button { padding: 6px 8px; font-size: 12.5px; gap: 6px; }
  .top-status { gap: 6px; }
  .brand-mark { width: 26px; height: 26px; }
  .brief-next { flex-wrap: wrap; }
  .brief-next p { flex-basis: 100%; }
}
#industries { overflow-x: auto; }
.brief-next p { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Systems (Agentes) ---------- */
.tone-text-bad { color: #F59A92; }
.tone-text-warn { color: var(--amber); }
.brief-list li.is-bad::before { background: var(--coral); }
.brief-list li b { font-weight: 700; }
.is-stale .systems, .is-stale .agents-side, .is-stale .kpis, .is-stale .panel { opacity: .5; }
.systems { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.systems-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 600px), 1fr)); gap: 18px; align-items: start; }
.server-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.server-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 1100px) { .server-grid { grid-template-columns: minmax(0, 1fr); } }
.system { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 8px; background: rgba(13, 9, 29, .5); }
.system[data-status="issue"], .system[data-status="stalled"] { border-color: rgba(240, 113, 103, .35); background: linear-gradient(180deg, rgba(240, 113, 103, .06), rgba(13, 9, 29, .5) 40%); }
.system[data-status="recovered"] { border-color: rgba(244, 184, 96, .28); }
.sys-head { display: flex; align-items: flex-end; gap: 8px 18px; flex-wrap: wrap; }
.sys-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 22px; align-items: start; }
.sys-activity { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sys-activity .sys-stats { margin-left: 0; gap: 12px; padding: 0; }
.sys-spark { display: block; overflow: visible; }
.sys-spark .sp-area { fill: rgba(177, 151, 252, .14); }
.sys-spark .sp-line { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.sys-spark .sp-err { fill: var(--coral); stroke: var(--ink); stroke-width: 1.5; }
.system[data-status="issue"] .sp-line, .system[data-status="stalled"] .sp-line { stroke: var(--coral); }
.system[data-status="issue"] .sp-area, .system[data-status="stalled"] .sp-area { fill: rgba(240, 113, 103, .12); }
.sys-live { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--body); color: var(--cyan); }
.sys-live i, .live-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: livePulse 1.8s ease-in-out infinite; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; color: var(--text-2); }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(177, 151, 252, .5); } 50% { box-shadow: 0 0 0 5px rgba(177, 151, 252, 0); } }
.sys-did { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sys-did li { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 11px; border-radius: 10px; background: rgba(177, 151, 252, .07); border: 1px solid rgba(177, 151, 252, .14); font-size: 13px; color: var(--text-2); }
.sys-did li b { font: 600 16px/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.sys-more { margin-top: 10px; border-top: 1px solid var(--line); }
.sys-more summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 0 8px; font-size: 13px; font-weight: 700; color: var(--text-2); list-style: none; }
.sys-more summary::-webkit-details-marker { display: none; }
.sys-more summary small { font-weight: 500; color: var(--text-3); }
.sys-more summary svg.i { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.sys-more[open] summary svg.i { transform: rotate(90deg); }
.sys-more summary:hover { color: var(--text); }
.sys-more .sys-wfs { margin-top: 0; padding-bottom: 6px; }
/* AI spend */
.cost-note { margin: 0 0 10px; font-size: 13.5px; color: var(--text-2); }
.cost-note.muted { font-size: 12.5px; color: var(--text-3); }
.cost-link { display: inline-flex; align-items: center; gap: 8px; }
.cost-main { display: flex; justify-content: space-between; gap: 14px; align-items: flex-end; }
.cost-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); }
.cost-big { display: block; font: 600 28px/1.15 var(--display); font-variant-numeric: tabular-nums; margin-top: 2px; }
.cost-sub { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.cost-side { display: flex; flex-direction: column; gap: 6px; text-align: right; font-size: 12px; color: var(--text-3); }
.cost-side b { display: block; font: 600 14px var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.cost-bars { display: flex; align-items: flex-end; gap: 2px; height: 46px; margin: 14px 0 4px; }
.cost-bars i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: rgba(177, 151, 252, .55); }
.cost-bars i.z { background: rgba(180, 165, 235, .1); }
.cost-bars i.today { background: var(--cyan); }
.cost-list { margin-top: 14px; }
.cost-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cost-list > div span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cost-list small { color: var(--text-3); font-size: 12px; }
.cost-list b { font-variant-numeric: tabular-nums; }
.cost-setup { font-size: 13px; color: var(--text-2); }
.cost-setup p { margin: 0 0 8px; }
.cost-setup ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.sys-title { min-width: 0; }
.sys-client { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; }
.sys-title h3 { margin: 2px 0 0; font: 600 18px/1.25 var(--display); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sys-title h3 .chip { font-family: var(--body); }
.sys-stats { margin-left: auto; display: flex; gap: 16px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; padding-bottom: 2px; }
.sys-stats b { font: 600 14px var(--display); color: var(--text); }
.sys-stats .bad, .sys-stats .bad b { color: var(--coral); }
.sys-purpose { margin: 8px 0 0; font-size: 14px; color: var(--text-2); max-width: 78ch; }
.sys-note { margin: 4px 0 0; font-size: 13px; color: var(--text-3); }
.sys-anoms { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.sys-anoms li { position: relative; padding: 7px 10px 7px 28px; border-radius: 9px; font-size: 13.5px; background: rgba(244, 184, 96, .07); color: #F7D199; }
.sys-anoms li::before { content: ''; position: absolute; left: 11px; top: 13px; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--amber); }
.sys-anoms li.is-bad { background: rgba(240, 113, 103, .08); color: #F6A49C; }
.sys-anoms li.is-bad::before { background: var(--coral); }
.sys-wfs { margin-top: 12px; }
.wf-role { font-size: 12px; font-weight: 700; color: var(--text-3); padding: 10px 2px 2px; }
.paused { border: 1px dashed var(--line-2); border-radius: 14px; padding: 4px 14px; }
.paused summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 0; font-weight: 700; font-size: 13.5px; color: var(--text-2); list-style: none; }
.paused summary::-webkit-details-marker { display: none; }
.paused summary svg.i { width: 16px; height: 16px; transition: transform .2s; }
.paused[open] summary svg.i { transform: rotate(90deg); }
.paused ul { list-style: none; margin: 0 0 8px; padding: 0; }
.paused li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.paused li b { display: block; font-size: 13.5px; }
.paused li span { color: var(--text-3); }
.agents-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; position: sticky; top: 0; }

/* ---------- Popover extras and login ---------- */
.popover-sub { margin: 16px 0 6px !important; padding-top: 14px; border-top: 1px solid var(--line); }
.popover-text { margin: 0 0 10px; font-size: 13px; color: var(--text-2); }
.popover-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.popover-actions .btn { height: 32px; padding: 0 11px; font-size: 12.5px; }
.pw { margin-top: 12px; }
.pw summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text-2); padding: 4px 0; }
.pw summary:hover { color: var(--text); }
.pw form { padding-top: 10px; }
.pw .btn { width: 100%; }
.login-mark { width: 40px; height: 40px; margin-bottom: 14px; display: block; }
.key-card .field input { height: 42px; }
#loginCode { font: 600 20px var(--display); letter-spacing: .3em; }

/* ---------- Jarvis dock ----------
   Minimized: a slim rail with the orb. Open: a wider panel over the page, closed with Esc or a click outside. */
:root { --col-j: 84px; --dock-w: 100vw; }
.brand { width: auto; }
.app .jarvis { position: relative; padding: 14px 0; gap: 0; align-items: center; border-right: 1px solid var(--line); background: rgba(13, 9, 29, .55); overflow: hidden; }
.jarvis .transcript, .jarvis .prompts, .jarvis .composer, .jarvis .hints, .jarvis .caption, .jarvis .dock-head { display: none; }
.jarvis .orb-wrap { order: -1; }
.jarvis .orb { width: 62px; }
.dock-rail { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 92px; gap: 12px; color: var(--text-3); }
.dock-rail:hover { background: rgba(177, 151, 252, .04); color: var(--text-2); }
.dock-rail-label { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 13px var(--display); letter-spacing: .14em; text-transform: uppercase; }
.dock-unread { font-size: 11px; font-weight: 700; color: var(--ink); background: var(--cyan); border-radius: 999px; padding: 2px 7px; }
.dock-unread[hidden] { display: none; }
.jarvis .orb { position: relative; z-index: 1; }
.dock-scrim { position: fixed; inset: var(--top-h) 0 0 0; z-index: 34; background: rgba(7, 5, 16, .45); opacity: 0; transition: opacity .24s; backdrop-filter: blur(2px); }
.dock-scrim.open { opacity: 1; }

body.dock-open .app .jarvis {
  position: fixed; top: var(--top-h); left: 0; bottom: 0; z-index: 35;
  width: var(--dock-w); height: auto; align-self: stretch; align-items: stretch; gap: 12px;
  padding: 12px 24px 18px; overflow: hidden;
  background: #120D28; border-right: 1px solid var(--line-2);
  box-shadow: 30px 0 80px rgba(0, 0, 0, .45);
  animation: dockIn .26s var(--ease);
}
@keyframes dockIn { from { transform: translateX(-24px); opacity: .4; } to { transform: none; opacity: 1; } }
body.dock-open .jarvis .dock-rail { display: none; }
body.dock-open .jarvis .dock-head { display: flex; align-items: center; justify-content: space-between; flex: none; order: -2; }
body.dock-open .jarvis .dock-title { font: 600 15px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
body.dock-open .jarvis .orb { width: min(100%, 38vh, 380px); }
/* Open panel: the network on the left, the conversation on the right */
@media (min-width: 821px) {
  body.dock-open .app .jarvis {
    display: grid; column-gap: 48px; row-gap: 12px; padding: 14px max(28px, calc((100vw - 1500px) / 2)) 20px;
    grid-template-columns: minmax(400px, 1fr) minmax(0, 1.25fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
    grid-template-areas: "head head" "orb stats" "talk stats" "prompts stats" "composer stats" "hints stats";
  }
  body.dock-open .jarvis .dock-head { grid-area: head; }
  body.dock-open .jarvis .orb-wrap { grid-area: orb; align-self: start; justify-content: center; min-height: 0; }
  body.dock-open .jarvis .transcript { grid-area: talk; min-height: 0; }
  body.dock-open .jarvis .prompts { grid-area: prompts; }
  body.dock-open .jarvis .composer { grid-area: composer; }
  body.dock-open .jarvis .hints { grid-area: hints; }
}

body.dock-open .jarvis .caption:not(:empty) { display: block; }
body.dock-open .jarvis .transcript { display: flex; }
body.dock-open .jarvis .prompts { display: flex; }
body.dock-open .jarvis .composer { display: flex; }
body.dock-open .jarvis .hints { display: flex; }
@media (prefers-reduced-motion: reduce) { body.dock-open .app .jarvis { animation: none; } }

/* Mute */
#muteBtn.is-muted { color: var(--amber); background: rgba(244, 184, 96, .1); }

/* ---------- Agentes dashboard ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; align-items: stretch; }
.tile {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; cursor: pointer;
  padding: 16px 16px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(13, 9, 29, .5);
  transition: border-color .15s, background .15s, transform .15s var(--ease);
}
.tile:hover { border-color: rgba(177, 151, 252, .35); background: rgba(19, 14, 42, .7); transform: translateY(-1px); }
.tile[data-status="issue"], .tile[data-status="stalled"] { border-color: rgba(240, 113, 103, .4); background: linear-gradient(180deg, rgba(240, 113, 103, .07), rgba(13, 9, 29, .5) 45%); }
.tile[data-status="recovered"] { border-color: rgba(244, 184, 96, .3); }
.tile-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.tile-title { min-width: 0; }
.tile-title h3 { margin: 2px 0 0; font: 600 16.5px/1.25 var(--display); }
.tile-head .chip { flex: none; }
.tile-purpose { margin: 0; font-size: 13px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-spark .sys-spark { width: 100%; height: 46px; }
.tile .sp-line { vector-effect: non-scaling-stroke; }
.tile-stats { display: flex; gap: 12px; font-size: 12.5px; color: var(--text-3); align-items: baseline; }
.tile-stats b { font: 600 14px var(--display); color: var(--text); }
.tile-stats .bad, .tile-stats .bad b { color: var(--coral); }
.tile-when { margin-left: auto; white-space: nowrap; }
.tile .sys-did { margin: 0; gap: 6px; }
.tile .sys-did li { padding: 4px 9px; font-size: 12.5px; }
.tile .sys-did li b { font-size: 14px; }
.tile-quiet { margin: 0; font-size: 12.5px; color: var(--text-3); }
.tile-alert { margin: 0; padding: 7px 10px; border-radius: 9px; font-size: 12.5px; line-height: 1.4; background: rgba(244, 184, 96, .07); color: #F7D199; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-alert.is-bad { background: rgba(240, 113, 103, .08); color: #F6A49C; }
.tile-open { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.tile-open svg.i { width: 14px; height: 14px; }
.tile:hover .tile-open { color: var(--cyan); }
.sys-drawer { width: min(760px, 100vw); }
.sd-activity { margin: 14px 0 6px; }
.sd-activity .sys-spark { width: 100%; height: 70px; }
.sd-activity .sys-stats { margin: 6px 0 0; padding: 0; }
.sys-drawer .sys-did { margin-top: 12px; }
.sd-title { margin-top: 20px; }
.sys-drawer .sp-line { vector-effect: non-scaling-stroke; }

/* Dock on small screens: a floating orb that opens a full-screen panel */
@media (max-width: 1240px) {
  .app .jarvis { position: sticky; top: var(--top-h); height: calc(100dvh - var(--top-h)); align-self: start; }
}
@media (max-width: 820px) {
  .app { grid-template-areas: "top" "view"; }
  .app .jarvis { position: fixed; top: auto; left: auto; right: 16px; bottom: 16px; width: 66px; height: 66px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); z-index: 30; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); justify-content: center; }
  .jarvis .orb { width: 58px; }
  .dock-rail { padding: 0; }
  .dock-rail-label { display: none; }
  .dock-unread { position: absolute; top: -4px; right: -4px; }
  body.dock-open .app .jarvis { top: var(--top-h); left: 0; right: 0; bottom: 0; width: auto; height: auto; border-radius: 0; padding: 12px 16px 16px; }
  body.dock-open .jarvis .orb { width: min(200px, 26vh); }
}
@media (max-width: 430px) { #muteBtn { display: none; } }

.dock-clear { margin-left: auto; margin-right: 6px; }

/* Third column of the open panel: summary of the console */
.dock-stats { display: none; }
@media (min-width: 821px) {
  body.dock-open .jarvis .dock-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 14px; grid-area: stats; min-height: 0; overflow-y: auto; padding: 2px; }
}
@media (min-width: 821px) and (max-width: 1279px) {
  body.dock-open .app .jarvis { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "orb" "talk" "prompts" "composer" "hints"; }
  body.dock-open .jarvis .dock-stats { display: none; }
}
.ds-card { padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line); background: rgba(13, 9, 29, .55); cursor: pointer; transition: border-color .15s, background .15s; }
.ds-card:hover { border-color: rgba(177, 151, 252, .35); background: rgba(19, 14, 42, .75); }
.ds-card h3 { margin: 0 0 8px; font: 600 12.5px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ds-big { display: flex; align-items: baseline; gap: 8px; }
.ds-big b { font: 600 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.ds-big span { font-size: 12.5px; color: var(--text-2); }
.ds-bar { height: 4px; border-radius: 4px; background: rgba(180, 165, 235, .14); margin: 8px 0 6px; overflow: hidden; }
.ds-bar i { display: block; height: 100%; background: var(--sky); border-radius: inherit; }
.ds-note { margin: 4px 0 6px; font-size: 12px; color: var(--text-3); }
.ds-note b { color: var(--text-2); font-weight: 600; }
.ds-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.ds-row b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-row b small { font-weight: 500; color: var(--text-3); margin-left: 4px; }
.ds-row.is-ok b { color: var(--mint); }
.ds-row.is-warn b { color: var(--amber); }
.ds-row.is-bad b { color: var(--coral); }
.ds-row.is-run b { color: var(--cyan); }
.ds-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.ds-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--text-2); }
.ds-list li i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--mint); }
.ds-list li.is-warn i { background: var(--amber); }
.ds-list li.is-bad i { background: var(--coral); box-shadow: 0 0 0 3px rgba(240, 113, 103, .16); }
.ds-list li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-list li small { color: var(--text-3); font-variant-numeric: tabular-nums; }
.ds-empty { margin: 0; font-size: 12.5px; color: var(--text-3); }

/* The caption floats over the bottom of the orb so it never pushes it */
.orb-wrap { position: relative; }
.jarvis .caption { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); width: max-content; max-width: 90%; min-height: 0; margin: 0; pointer-events: none; text-shadow: 0 1px 8px rgba(7, 5, 16, .9); }
.orb-subtitle { display: none; }
.ds-card { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ds-card h3 { flex: none; }
.ds-replies small { white-space: nowrap; }
.ds-list li.is-muted i { background: var(--text-3); }
.ds-list li.is-ok i { background: var(--mint); }

/* Voice focus: tapping the orb to talk takes over the whole screen */
body.orb-focus .jarvis .orb-wrap {
  position: fixed; inset: var(--top-h) 0 0 0; z-index: 45;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
body.orb-focus .jarvis .orb-wrap::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% 45%, rgba(40, 28, 90, .55), rgba(10, 7, 25, .97) 70%);
  backdrop-filter: blur(6px);
  animation: focusIn .5s ease-out;
}
body.orb-focus .jarvis .orb { width: min(72vh, 86vw); }
body.orb-focus .jarvis .caption { position: static; transform: none; font-size: 20px; min-height: 1.4em; display: block !important; max-width: 60ch; }
body.orb-focus .jarvis .orb-subtitle:not(:empty) { display: block; max-width: min(760px, 86vw); margin: 0; text-align: center; font-size: 18px; line-height: 1.55; color: var(--text); opacity: .92; }
@keyframes focusIn { from { opacity: 0; } }
body.orb-focus .jarvis .caption, body.orb-focus .jarvis .orb-subtitle { animation: focusText .6s ease-out .25s both; }
@keyframes focusText { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { body.orb-focus .jarvis .orb-wrap::before, body.orb-focus .jarvis .caption, body.orb-focus .jarvis .orb-subtitle { animation: none; } }
body.dock-open .jarvis > :not(.orb-wrap) { transition: opacity .35s ease, visibility 0s; }
body.orb-focus .jarvis > :not(.orb-wrap) { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
body.orb-focus .jarvis .orb-wrap { padding: 24px 24px 40px; bottom: auto; height: calc(100dvh - var(--top-h)); box-sizing: border-box; }
