/* ============================================================================
   Centro de comando (2026). Depende de site.css (tokens), home.css (atos) e
   atmos.css (grão, vinheta, brilho nos cartões). Todo o movimento de rolagem é
   dirigido por assets/js/command.js através de variáveis CSS (--on, --t, --vis).
   Sem JS ou com movimento reduzido, o estado padrão já é o estado final.
   Telas (3) = HTML/CSS/SVG. Âmbar existe só no alerta de gargalo.
   ========================================================================== */
.act--command {
  --cmd-copy-w: clamp(330px, 28vw, 430px);
  --cmd-gap: clamp(24px, 2.8vw, 42px);
  --cmd-right: max(14px, calc(var(--gutter) - 36px));
  --cmd-top: calc(var(--topbar-h) + clamp(10px, 2vh, 26px));
  --cmd-bottom: calc(var(--lane-h) + clamp(6px, 1.4vh, 18px));
}
.act--command .stage { background: #060a0d; }

.command {
  --lime: var(--accent-rgb);
  --amber: 241, 208, 93;
  --c-ink: #f1f2ed;
  --c-soft: #c9cec4;
  --c-mut: #98a090;
  --c-dim: #7d8578;
  --c-line: rgba(223, 234, 213, .10);
  --c-line2: rgba(223, 234, 213, .18);
  --pow: 1;
  position: absolute; inset: 0; z-index: 0; overflow: hidden; isolation: isolate;
  font-family: var(--sans); line-height: 1.35;
}
.command .led {
  display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%;
  background: rgb(var(--lime)); box-shadow: 0 0 8px rgba(var(--lime), .75);
  animation: cmd-led 2.8s ease-in-out infinite;
}

/* ------------------------------------------------------------ ambiente --- */
.command__bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 64% 46%, #0b1411 0%, #070c0d 52%, #05080a 100%);
}
.command__glow {
  position: absolute; right: -8%; top: 0; width: 76%; height: 96%;
  background: radial-gradient(ellipse 50% 50% at 50% 48%, rgba(var(--lime), .14), rgba(var(--lime), .05) 46%, transparent 72%);
  opacity: calc(.2 + .8 * var(--pow));
}
.command__radar {
  position: absolute; left: calc(var(--gutter) + var(--cmd-copy-w) + var(--cmd-gap) * .4); top: 50%;
  width: min(92vh, 900px); aspect-ratio: 1; border-radius: 50%;
  translate: calc(-50% + var(--px, 0) * -10px) calc(-50% + var(--py, 0) * -8px);
  opacity: calc(.15 + .85 * var(--pow));
  background:
    linear-gradient(rgba(var(--lime), .12), rgba(var(--lime), .12)) 50% 50% / 100% 1px no-repeat,
    linear-gradient(rgba(var(--lime), .12), rgba(var(--lime), .12)) 50% 50% / 1px 100% no-repeat,
    repeating-radial-gradient(circle closest-side at 50% 50%, transparent 0 calc(16.6% - 1px), rgba(var(--lime), .13) calc(16.6% - 1px) 16.6%);
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.command__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--lime), 0) 0deg, rgba(var(--lime), 0) 292deg, rgba(var(--lime), .09) 336deg, rgba(var(--lime), .34) 360deg);
  animation: cmd-sweep 16s linear infinite;
}
.command__floor {
  position: absolute; left: -8%; right: -8%; bottom: 0; height: 46%; overflow: hidden;
  perspective: 380px; perspective-origin: 56% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 38%, #000 74%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 38%, #000 74%, transparent 100%);
  opacity: calc(.2 + .8 * var(--pow));
}
.command__floor i { position: absolute; left: -20%; right: -20%; top: 0; height: 240%; transform-origin: 50% 0; transform: rotateX(72deg); }
.command__floor b {
  position: absolute; inset: -60px 0 0 0;
  background:
    linear-gradient(rgba(var(--lime), .20) 1px, transparent 1px) 0 0 / 100% 60px,
    linear-gradient(90deg, rgba(var(--lime), .20) 1px, transparent 1px) 0 0 / 60px 100%;
  animation: cmd-floor 4.5s linear infinite;
}
.command__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px);
}
.command__hud {
  position: absolute; left: var(--gutter); font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: rgba(var(--lime), .9); opacity: var(--pow);
}
.command__hud::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 10px; vertical-align: middle; background: rgba(var(--lime), .45); }
.command__hud--tl { top: calc(var(--topbar-h) + 16px); }
.command__hud--br { bottom: calc(var(--lane-h) + 14px); }
.scene__scrim--command { background: linear-gradient(90deg, rgba(5, 8, 10, .9) 0%, rgba(5, 8, 10, .66) 30%, rgba(5, 8, 10, 0) 52%); }

@media (min-width: 1181px) { .act--command { --cmd-right: max(142px, calc(var(--gutter) - 24px)); } }

/* --------------------------------------------------------------- copy ---- */
.command__copy { width: var(--cmd-copy-w); top: var(--cmd-top); bottom: var(--cmd-bottom); }
.command__copy .era-tag { font-size: 11px; }
.command__copy .display--lg { font-size: clamp(32px, min(4.5vw, 6.4vh), 62px); }
.command__copy .lede { font-size: clamp(14.5px, min(1.3vw, 2.15vh), 18px); }
.command__copy .future { margin-top: clamp(14px, 3vh, 30px); }
.command__copy .future li { font-size: clamp(20px, min(2.5vw, 3.9vh), 36px); }

/* ---------------------------------------------------------------- parede -- */
.wall {
  position: absolute; z-index: 2; margin: 0; min-width: 0;
  top: var(--cmd-top); bottom: var(--cmd-bottom);
  left: calc(var(--gutter) + var(--cmd-copy-w) + var(--cmd-gap));
  right: var(--cmd-right);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.wall__strip {
  --on: 1;
  display: flex; align-items: center; gap: 12px; min-height: 26px; padding: 0 2px;
  font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c-mut);
  opacity: calc(.25 + .75 * var(--on));
}
.wall__sys { display: inline-flex; align-items: center; gap: 9px; color: var(--c-soft); white-space: nowrap; }
.wall__trace { position: relative; flex: 1 1 24px; min-width: 12px; height: 1px; overflow: hidden; background: linear-gradient(90deg, rgba(var(--lime), .34), rgba(var(--lime), .06)); }
.wall__trace::after {
  content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 3px;
  background: linear-gradient(90deg, transparent, rgb(var(--lime)), transparent); animation: cmd-trace 5.5s linear infinite;
}
.wall__chs { display: inline-flex; gap: 6px; }
.ch {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--c-line); border-radius: 999px;
  letter-spacing: .08em; color: var(--c-dim); white-space: nowrap; transition: none;
}
.ch em { font-style: normal; opacity: .7; margin-right: 3px; }
.ch .led { background: #3a423a; box-shadow: none; animation: none; }
.ch.is-lit { color: var(--c-soft); }
.ch.is-lit .led { background: rgb(var(--lime)); box-shadow: 0 0 8px rgba(var(--lime), .75); animation: cmd-led 2.8s ease-in-out infinite; }
.command[data-mode="solo"] .ch.is-active { color: rgb(var(--lime)); border-color: rgba(var(--lime), .5); background: rgba(var(--lime), .08); }

.wall__stack {
  position: relative; flex: 1 1 auto; min-height: 0; max-height: 640px;
  display: grid; gap: 10px;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  grid-template-rows: minmax(0, 1fr) clamp(160px, 31%, 238px);
}
.cpanel--chat { grid-column: 1; grid-row: 1 / span 2; }
.cpanel--ops { grid-column: 2; grid-row: 1; }
.cpanel--funnel { grid-column: 2; grid-row: 2; }

.wall__desk { display: flex; align-items: center; gap: 14px; height: 14px; padding: 0 8px; opacity: var(--pow); }
.wall__knobs { display: inline-flex; gap: 6px; }
.wall__knobs i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--c-line2); background: radial-gradient(circle at 35% 30%, #2b332d, #0f1311); }
.wall__bars { flex: 1; height: 6px; background: repeating-linear-gradient(90deg, rgba(var(--lime), .3) 0 2px, transparent 2px 6px); -webkit-mask-image: linear-gradient(90deg, #000, transparent 92%); mask-image: linear-gradient(90deg, #000, transparent 92%); }
.wall__leds { display: inline-flex; gap: 7px; }
.wall__leds .led { width: 5px; height: 5px; flex-basis: 5px; }
.wall__leds .led:nth-child(2) { animation-delay: -.7s; }
.wall__leds .led:nth-child(3) { animation-delay: -1.4s; }
.wall__leds .led:nth-child(4) { animation-delay: -2.1s; }
.wall__note { margin: 0; font-size: 11px; line-height: 1.4; color: var(--c-mut); letter-spacing: .01em; }
@media (min-width: 1200px) and (min-height: 620px) and (max-height: 800px) { .wall__desk { display: none; } }

/* --------------------------------------------------------------- painel -- */
.command .cpanel {
  --on: 1; --vis: 1; --dx: 0px;
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden;
  container-type: size;
  border: 1px solid rgba(var(--lime), calc(.06 + .15 * var(--on))); border-radius: 14px;
  background: linear-gradient(180deg, #0e1412 0%, #090d0c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 22px 54px -26px #000, 0 0 calc(var(--on) * 44px) -14px rgba(var(--lime), calc(var(--on) * .30));
  opacity: calc(var(--vis) * (.4 + .6 * min(1, var(--on) * 5)));
  transform: translate3d(var(--dx), 0, 0);
  color: var(--c-ink);
}
.cpanel[data-hidden] { visibility: hidden; pointer-events: none; }
/* linhas de varredura e cantos de enquadramento */
.cpanel::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  --br: rgba(var(--lime), calc(var(--on) * .55));
  background:
    linear-gradient(var(--br), var(--br)) 6px 6px / 10px 1px no-repeat,
    linear-gradient(var(--br), var(--br)) 6px 6px / 1px 10px no-repeat,
    linear-gradient(var(--br), var(--br)) calc(100% - 6px) 6px / 10px 1px no-repeat,
    linear-gradient(var(--br), var(--br)) calc(100% - 6px) 6px / 1px 10px no-repeat,
    linear-gradient(var(--br), var(--br)) 6px calc(100% - 6px) / 10px 1px no-repeat,
    linear-gradient(var(--br), var(--br)) 6px calc(100% - 6px) / 1px 10px no-repeat,
    linear-gradient(var(--br), var(--br)) calc(100% - 6px) calc(100% - 6px) / 10px 1px no-repeat,
    linear-gradient(var(--br), var(--br)) calc(100% - 6px) calc(100% - 6px) / 1px 10px no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px);
}
.cpanel__in { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; clip-path: inset(0 0 calc((1 - var(--on)) * 100%) 0); }
.cpanel.is-on .cpanel__in { clip-path: none; }
.cpanel__scan {
  position: absolute; z-index: 4; left: 0; right: 0; top: calc(var(--on) * 100%); height: 2px; margin-top: -1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--lime), .95) 18%, rgba(var(--lime), .95) 82%, transparent);
  box-shadow: 0 0 22px 5px rgba(var(--lime), .42);
  opacity: min(1, calc(var(--on) * 40), calc((1 - var(--on)) * 40));
}
.cpanel__scan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 72px; background: linear-gradient(0deg, rgba(var(--lime), .16), transparent); }
.cpanel__bar { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 14px; border-bottom: 1px solid var(--c-line); background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent); }
.cpanel__title { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: var(--c-ink); }
.cpanel__tag { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-mut); }

/* --------------------------------------------------- 1 · atendimento ----- */
.chat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.chat__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 14px; border-bottom: 1px solid var(--c-line); background: rgba(255, 255, 255, .02); }
.chat__avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: rgb(var(--lime)); color: var(--accent-ink); }
.chat__avatar svg { width: 16px; height: 16px; }
.chat__who { display: grid; line-height: 1.25; min-width: 0; }
.chat__who b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.chat__who small { font-size: 11px; color: var(--c-mut); }
.chat__who small.is-busy { color: rgb(var(--lime)); }
.chat__who small.is-busy::after { content: "..."; }
.chat__thread {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 9px; padding: 12px 12px 8px; overflow: hidden;
  background: radial-gradient(rgba(223, 234, 213, .055) 1px, transparent 1.3px) 0 0 / 18px 18px;
}
.chat__badge {
  margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 650; letter-spacing: .01em; color: rgb(var(--lime));
  background: rgba(var(--lime), .1); border: 1px solid rgba(var(--lime), .34);
}
.chat__date { align-self: center; margin: 0; padding: 2px 9px; border-radius: 7px; font-size: 11px; color: var(--c-mut); background: rgba(255, 255, 255, .045); }
.msg { --a: clamp(0, calc(var(--t, 1) * 14), 1); position: relative; display: flex; }
.msg--in { justify-content: flex-start; }
.msg--out { justify-content: flex-end; }
.bubble {
  position: relative; margin: 0; max-width: min(86%, 380px); padding: 6px 9px 6px 10px; border-radius: 11px;
  font-size: 13px; line-height: 1.42; color: var(--c-ink); text-wrap: pretty;
  opacity: var(--a); transform: translateY(calc((1 - var(--a)) * 8px)) scale(calc(.95 + .05 * var(--a))); transform-origin: 0 100%;
}
.msg--in .bubble { background: #19201c; border: 1px solid var(--c-line); border-top-left-radius: 3px; }
.msg--out .bubble { background: linear-gradient(180deg, rgba(var(--lime), .18), rgba(var(--lime), .11)); border: 1px solid rgba(var(--lime), .3); border-top-right-radius: 3px; transform-origin: 100% 100%; }
.tx__off { color: transparent; }
.tx.is-typing .tx__on::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin: 0 -2.5px 0 1px; vertical-align: -2px; background: rgb(var(--lime)); animation: cmd-caret .8s steps(1) infinite; }
.meta { float: right; display: inline-flex; align-items: center; gap: 5px; margin: 5px 0 -2px 10px; font-size: 11px; line-height: 1; color: var(--c-mut); }
.meta time { font-variant-numeric: tabular-nums; }
.ticks { width: 17px; height: 11px; fill: none; stroke: var(--c-mut); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ticks .t2 { opacity: 0; }
.ticks[data-s="0"] { opacity: 0; }
.ticks[data-s="2"] { stroke: rgb(var(--lime)); }
.ticks[data-s="2"] .t2 { opacity: 1; }
.typing {
  position: absolute; right: 0; top: 0; display: none; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 11px 3px 11px 11px;
  background: rgba(var(--lime), .14); border: 1px solid rgba(var(--lime), .3);
}
.typing.is-on { display: inline-flex; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: rgb(var(--lime)); opacity: .45; animation: cmd-dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
.chat__events { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.evt {
  --a: clamp(0, calc(var(--t, 1) * 10), 1);
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 10px; font-size: 12px; font-weight: 650; line-height: 1.25; color: rgb(var(--lime));
  background: rgba(var(--lime), .09); border: 1px solid rgba(var(--lime), .36);
  opacity: var(--a); transform: scale(calc(.9 + .1 * var(--a)));
}
.evt svg { width: 16px; height: 16px; flex: 0 0 16px; }
.evt small { display: block; font-size: 11px; font-weight: 500; color: var(--c-mut); }
.evt--soft { font-weight: 500; color: var(--c-soft); background: rgba(255, 255, 255, .04); border-color: var(--c-line2); }
.chat__composer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 10px 10px; padding: 7px 10px 7px 13px;
  border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--c-line); font-size: 11.5px; color: var(--c-mut);
}
.chat__composer span { display: inline-flex; align-items: center; gap: 8px; }
.chat__composer svg { width: 15px; height: 15px; color: rgb(var(--lime)); }
@container (max-height: 480px) { .chat__date, .chat__composer { display: none; } .chat__thread { gap: 7px; padding-block: 9px 8px; } .bubble { font-size: 12.5px; } }
@container (max-height: 440px) { .evt--soft { display: none; } }
/* painel muito baixo (celular curto): a conversa rola como uma conversa de verdade, a mais recente fica visível */
.msg.is-pending, .evt.is-pending { display: none; }
@container (max-height: 350px) { .chat__thread { justify-content: flex-end; gap: 6px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16px); mask-image: linear-gradient(180deg, transparent 0, #000 16px); } .chat__events { margin-top: 0; } .bubble { padding-block: 5px; font-size: 12px; } }

/* ------------------------------------------------------- 2 · funil ------- */
.funnel { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(176px, 40%); gap: 14px; align-items: stretch; padding: 12px 14px 14px; }
.fsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-width: 0; }
.fstep { --a: clamp(0, calc(var(--t, 1) * 8), 1); opacity: calc(.3 + .7 * var(--a)); }
.fstep__row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; font-size: 12px; }
.fstep__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-soft); }
.fstep__rate { font: 500 11px/1 var(--mono); color: var(--c-mut); }
.fstep__val { min-width: 42px; text-align: right; font-size: 14px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fstep__track { display: block; height: 8px; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.fstep__track i {
  display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 5px; transform-origin: 0 50%; transform: scaleX(var(--t, 1));
  background: linear-gradient(90deg, rgba(var(--lime), calc(var(--o) * .62)), rgba(var(--lime), var(--o)));
}
.lead {
  --a: clamp(0, calc(var(--t, 1) * 7), 1);
  align-self: center; display: grid; gap: 7px; padding: 11px 12px 12px; border-radius: 12px;
  border: 1px solid rgba(var(--lime), .42); background: linear-gradient(180deg, rgba(var(--lime), .12), rgba(var(--lime), .04));
  opacity: var(--a); transform: translateY(calc((1 - var(--a)) * 10px)) scale(calc(.94 + .06 * var(--a)));
  box-shadow: 0 0 calc(var(--a) * 30px) -8px rgba(var(--lime), .5);
}
.lead.is-live { animation: cmd-glow 3.2s ease-in-out infinite; }
.lead__tag { margin: 0; display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--lime)); }
.lead__tag svg { width: 13px; height: 13px; }
.lead__who { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 14px; }
.lead__who b { font-weight: 600; letter-spacing: -.01em; }
.lead__avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 11px; font-weight: 700; color: rgb(var(--lime)); background: rgba(var(--lime), .16); border: 1px solid rgba(var(--lime), .4); }
.lead__score { margin: 0; display: flex; align-items: baseline; gap: 3px; }
.lead__score b { font-size: 26px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.lead__score span { font-size: 12px; color: var(--c-mut); }
.lead__meter { display: block; height: 5px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.lead__meter i { display: block; width: 92%; height: 100%; border-radius: 3px; transform-origin: 0 50%; transform: scaleX(var(--t, 1)); background: rgb(var(--lime)); }
.lead__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 8px; border-radius: 9px; white-space: nowrap;
  background: rgb(var(--lime)); color: var(--accent-ink); font-size: 11.5px; font-weight: 650; letter-spacing: -.005em;
}
.lead__cta svg { width: 14px; height: 14px; flex: 0 0 14px; }
@container (max-height: 224px) {
  .funnel { padding-block: 9px 9px; }
  .fsteps { gap: 3px; }
  .fstep__row { margin-bottom: 2px; }
  .fstep__track { height: 5px; }
  .lead { gap: 5px; padding: 9px 10px 10px; }
  .lead__meter { display: none; }
  .lead__who { display: none; }
  .lead__score b { font-size: 22px; }
}
@container (max-width: 400px) {
  .funnel { grid-template-columns: 1fr; gap: 10px; }
  .lead { grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 6px; }
  .lead__tag { grid-column: 1 / -1; }
  .lead__meter { display: none; }
  .lead__who { display: flex; }
  .lead__cta { grid-column: 1 / -1; }
}

/* ----------------------------------------------------- 3 · operação ------ */
.ops { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; }
.kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 7px; }
.kpi {
  --a: clamp(0, calc(var(--t, 1) * 8), 1);
  display: grid; grid-template-rows: 1fr auto; gap: 4px; padding: 8px 9px 9px; border-radius: 10px;
  border: 1px solid var(--c-line); background: rgba(255, 255, 255, .03); opacity: calc(.25 + .75 * var(--a));
}
.kpi__label { font-size: 11px; line-height: 1.25; color: var(--c-mut); }
.kpi__val { font-size: clamp(16px, 3.6cqw, 21px); line-height: 1.1; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ops__charts { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
.chartcard { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 8px 10px 7px; border: 1px solid var(--c-line); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.chartcard__title { margin: 0 0 6px; font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--c-mut); }
.lchart { position: relative; flex: 1 1 auto; min-height: 40px; }
.lchart__grid { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(223, 234, 213, .09); stroke-width: 1; }
.lchart__grid path { vector-effect: non-scaling-stroke; stroke-dasharray: 2 4; }
.lchart__plot { position: absolute; inset: 0; }
.lchart__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lchart__line { stroke: rgb(var(--lime)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(var(--lime), .5)); }
.lchart__pt { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #0b100e; border: 1.5px solid rgb(var(--lime)); opacity: 0; }
.lchart__pt.is-hit { opacity: 1; }
.lchart__head { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(var(--lime), .25), 0 0 14px 3px rgba(var(--lime), .7); opacity: 0; }
.lchart__tag {
  position: absolute; left: 91.67%; top: 22%; transform: translate(-100%, calc(-100% - 7px)); padding: 3px 7px; border-radius: 6px; white-space: nowrap;
  font-size: 11px; font-weight: 650; color: var(--accent-ink); background: rgb(var(--lime)); opacity: 0;
}
.lchart__tag.is-on { opacity: 1; }
.lchart__x { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); text-align: center; font-size: 11px; line-height: 1.2; color: var(--c-mut); }
.lchart__x li:last-child { color: rgb(var(--lime)); font-weight: 650; }
.hbars { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-around; gap: 6px; }
.hbar { --a: clamp(0, calc(var(--t, 1) * 8), 1); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 5px 8px; font-size: 12px; opacity: calc(.3 + .7 * var(--a)); }
.hbar__label { color: var(--c-soft); white-space: nowrap; }
.hbar__track { grid-column: 1 / -1; grid-row: 2; display: block; height: 7px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.hbar__track i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 4px; transform-origin: 0 50%; transform: scaleX(var(--t, 1)); background: linear-gradient(90deg, rgba(var(--lime), .5), rgb(var(--lime))); }
.hbar__val { text-align: right; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.alert {
  --a: clamp(0, calc(var(--t, 1) * 7), 1);
  position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 10px; font-size: 12.5px; line-height: 1.35;
  border: 1px solid rgba(var(--amber), .44); background: linear-gradient(90deg, rgba(var(--amber), .15), rgba(var(--amber), .06));
  opacity: var(--a); transform: translateY(calc((1 - var(--a)) * 8px));
}
.alert p { margin: 0; color: var(--c-ink); }
.alert b { color: rgb(var(--amber)); font-weight: 650; }
.alert__ico { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; color: rgb(var(--amber)); background: rgba(var(--amber), .18); }
.alert__ico svg { width: 15px; height: 15px; }
.alert.is-live { animation: cmd-alert 2.2s ease-in-out infinite; }
.alert.is-live .alert__ico { animation: cmd-alert-ico 2.2s ease-in-out infinite; }
@container (max-width: 330px) { .chat__badge { order: 3; margin: 2px auto 0; } }
@container (max-height: 360px) {
  .hbars { gap: 4px; }
  .hbar { grid-template-columns: 60px minmax(0, 1fr) 32px; align-items: center; gap: 7px; }
  .hbar__track { grid-column: 2; grid-row: 1; }
  .hbar__val { grid-column: 3; grid-row: 1; }
}
@container (max-height: 300px) {
  .ops { gap: 6px; padding: 8px 10px 10px; }
  .kpi { padding: 6px 9px 7px; gap: 2px; }
  .chartcard { padding: 6px 9px 6px; }
  .chartcard__title { margin-bottom: 3px; }
  .alert { padding-block: 5px; }
}
@container (max-width: 400px) and (max-height: 360px) { .lchart__tag { left: 0; top: 0; transform: none; } }
@container (max-width: 400px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { grid-template-rows: auto auto; grid-template-columns: 1fr; padding: 6px 9px 7px; gap: 2px; }
  .kpi__val { font-size: 18px; }
  .ops__charts { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* ---------------------------------------------------- modos de layout ---- */
/* celular em coluna e tablet em pé: texto em cima, parede embaixo */
@media (max-width: 699.98px), (min-width: 700px) and (max-width: 1199.98px) and (min-height: 880px) {
  .command { display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 16px); padding: calc(var(--topbar-h) + 12px) var(--gutter) calc(var(--lane-h) + 8px); }
  .command__copy { position: relative; top: auto; bottom: auto; left: auto; width: auto; flex: 0 0 auto; justify-content: flex-start; }
  .command__copy .display--lg { font-size: clamp(27px, 7.4vw, 46px); }
  .command__copy .lede { font-size: clamp(14px, 2.3vw, 17px); margin-top: 12px; }
  .command__copy .future { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 12px; }
  .command__copy .future li { font-size: clamp(18px, 3.4vw, 26px); }
  .wall { position: relative; inset: auto; flex: 1 1 0; min-height: 0; width: 100%; justify-content: flex-start; }
  .scene__scrim--command { background: linear-gradient(180deg, rgba(5, 8, 10, .82) 0%, rgba(5, 8, 10, .5) 38%, rgba(5, 8, 10, 0) 62%); }
  .command__hud { display: none; }
  .command__radar { left: 50%; top: 60%; width: min(120vw, 900px); }
}
/* um monitor só (celular, telas baixas): três canais, uma tela por vez */
.command[data-mode="solo"] .wall__stack { display: block; max-height: none; }
.command[data-mode="solo"] .cpanel { position: absolute; inset: 0; }
@media (max-width: 699.98px) {
  .command__copy { --cc: 0; }
  .command__copy .lede { max-height: calc((1 - var(--cc)) * 9em); margin-top: calc((1 - var(--cc)) * 12px); opacity: calc(1 - var(--cc)); overflow: hidden; }
  .command__copy .display--lg { overflow: hidden; }
  .command__copy .future { max-height: calc(var(--cc) * 4.2em); overflow: hidden; margin-top: calc(var(--cc) * 10px); }
  .command__copy .display--lg { font-size: clamp(25px, 7.1vw, 32px); }
  .command__copy .future li { font-size: 18px; line-height: 1.2; }
  .wall__sys, .wall__trace { display: none; }
  .wall__chs { width: 100%; }
  .ch { flex: 1 1 0; justify-content: center; padding-inline: 6px; font: 600 11px/1 var(--sans); letter-spacing: 0; text-transform: none; }
  .ch em { display: none; }
  .wall__desk { display: none; }
  .wall { gap: 6px; }
}
@media (max-width: 699.98px) and (max-height: 760px) {
  .command__copy { --ch: 0; }
  .command__copy .display--lg { max-height: calc((1 - var(--ch)) * 3em); opacity: calc(1 - var(--ch)); }
  .command__copy .era-tag { margin-bottom: 10px; }
  .command__copy .future li { font-size: 17px; }
}
/* tela larga e baixa em modo solo: texto à esquerda, um monitor à direita */
@media (min-width: 700px) and (max-width: 1199.98px) and (max-height: 879.98px), (min-width: 1200px) and (max-height: 619.98px) {
  .act--command { --cmd-copy-w: clamp(280px, 34vw, 400px); }
  .command__copy .display--lg { font-size: clamp(28px, min(3.8vw, 6vh), 44px); }
  .command__copy .lede { font-size: clamp(13.5px, 1.8vw, 16px); }
  .command__copy .future li { font-size: clamp(18px, 2.4vw, 26px); }
  .command__hud { display: none; }
}

@media (min-width: 1181px) and (max-width: 1199.98px) { .command { padding-right: 142px; } }

/* ------------------------------------------------------ estado estático -- */
/* sem movimento: estado final; no modo solo as três telas viram uma fileira para deslizar */
.command.is-still *, .command.is-still *::before, .command.is-still *::after { animation: none !important; transition: none !important; }
.command.is-still[data-mode="solo"] .wall__stack { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.command.is-still[data-mode="solo"] .wall__stack:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.command.is-still[data-mode="solo"] .cpanel { position: relative; inset: auto; flex: 0 0 88%; scroll-snap-align: start; visibility: visible; opacity: 1; transform: none; }
.command.is-still[data-mode="solo"] .ch.is-active { color: var(--c-soft); border-color: var(--c-line); background: none; }
.command.is-still .wall__trace::after { display: none; }
@media (max-width: 699.98px) {
  .command.is-still .command__copy .lede { max-height: none; opacity: 1; margin-top: 12px; }
  .command.is-still .command__copy .future { max-height: none; margin-top: 12px; }
  .command.is-still .command__copy .display--lg { max-height: none; opacity: 1; }
}

/* ambiente só roda com a cena na tela */
.command:not(.is-live) *, .command:not(.is-live) *::before, .command:not(.is-live) *::after { animation-play-state: paused !important; }

@keyframes cmd-led { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes cmd-sweep { to { transform: rotate(360deg); } }
@keyframes cmd-floor { to { transform: translateY(60px); } }
@keyframes cmd-trace { from { transform: translateX(-60px); } to { transform: translateX(900px); } }
@keyframes cmd-dot { 0%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes cmd-caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes cmd-glow { 0%, 100% { box-shadow: 0 0 30px -8px rgba(var(--lime), .5); } 50% { box-shadow: 0 0 40px -4px rgba(var(--lime), .75); } }
@keyframes cmd-alert { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--amber), 0); border-color: rgba(var(--amber), .44); } 50% { box-shadow: 0 0 0 4px rgba(var(--amber), .16), 0 0 24px -4px rgba(var(--amber), .5); border-color: rgba(var(--amber), .8); } }
@keyframes cmd-alert-ico { 0%, 100% { background: rgba(var(--amber), .18); } 50% { background: rgba(var(--amber), .42); } }

@media (prefers-reduced-motion: reduce) {
  .command *, .command *::before, .command *::after { animation: none !important; transition: none !important; }
}
.motion-paused .command *, .motion-paused .command *::before, .motion-paused .command *::after { animation: none !important; }
