/* Layout: barra do app com seletor de cliente e Fila da Agência → painel de ação do cliente (identidade,
   Fato Rápido, chat com a IA e agentes) → validação dos sinais (medidor, filtros e cards). A ação vem
   antes; a validação fica separada, logo abaixo. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
body.locked { overflow: hidden; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1280px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-3); margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; border-radius: 9px; padding: 9px 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: var(--ink-3); }
/* Desabilitado (inclusive recurso travado) é sempre cinza, sem texto de motivo. */
.btn:disabled, .btn:disabled:hover, .btn-primary:disabled:hover, .btn-ai:disabled:hover { opacity: 1; cursor: not-allowed; background: var(--surface-2); border-color: var(--line); color: var(--ink-3); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.btn-danger { background: var(--off); border-color: var(--off); color: var(--surface); }
.btn-danger:hover { background: var(--ink); border-color: var(--ink); }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-lg { padding: 12px 18px; font-size: 15px; border-radius: 11px; gap: 9px; }
.btn-lg .ic { width: 18px; height: 18px; }
/* Ações com IA: contorno marsala, para ficarem ao lado da ação principal sem disputar com ela. */
.btn-ai { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.btn-ai:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; padding: 0; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:disabled { opacity: .4; cursor: default; }

/* Barra do app */
.appbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.appbar-inner { display: flex; align-items: center; gap: 10px 18px; min-height: 62px; flex-wrap: wrap; padding-block: 9px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.bm-back { fill: var(--brand-soft); stroke: var(--brand-mid); stroke-width: 1.5; }
.bm-front { fill: var(--brand); }
.brand-name { font-family: var(--font-display); font-stretch: 118%; font-weight: 760; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.proto-tag { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.picker { position: relative; flex: 1 1 300px; max-width: 470px; min-width: 0; }
.picker-btn { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 8px 12px; color: var(--ink); font: inherit; cursor: pointer; }
.picker-btn:hover { border-color: var(--line-strong); }
.picker-kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.picker-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.picker-pop { position: absolute; top: calc(100% + 6px); left: 0; width: min(580px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 30; display: grid; gap: 8px; }
.picker-pop input[type="search"] { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.picker-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.picker-tabs button { font: inherit; font-size: 14px; font-weight: 650; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--ink-3); padding: 6px 10px 8px; cursor: pointer; margin-bottom: -1px; }
.picker-tabs button:hover { color: var(--ink); }
.picker-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.picker-filtros { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.pf { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); min-width: 0; }
.pf-l { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.sel-sm { font-size: 13px; padding: 5px 8px; border-radius: 8px; }
.segmented.seg-sm { border-radius: 8px; }
.segmented.seg-sm button { font-size: 12.5px; padding: 4px 9px; border-radius: 6px; }
.picker-painel { min-height: 0; }
.picker-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow: auto; }
.picker-list ul { list-style: none; margin: 0 0 6px; padding: 0; }
.picker-group { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding: 8px 10px 4px; border-top: 1px solid var(--line); margin-top: 2px; }
.picker-list > li:first-child .picker-group { border-top: 0; margin-top: 0; }
.picker-group strong { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.picker-group small { font-size: 12px; color: var(--ink-3); }
.picker-group + ul .picker-opt { padding-left: 18px; }
.picker-more { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); padding: 0 10px; }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.linkish:hover { color: var(--ink); }
.po-head { display: grid; gap: 2px; justify-items: start; padding: 0 2px 6px; }
.po-head .btn { margin-left: -6px; margin-bottom: 4px; }
.po-nome { margin: 0; font-weight: 700; font-size: 15px; }
.po-resumo { margin: 0; font-size: 13px; color: var(--ink-2); }
.po-l { margin: 6px 0 4px; padding: 0 2px; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.po-fatos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.po-fatos li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--human-soft); border: 1px solid var(--human-line); font-size: 13px; }
.po-fatos small { display: flex; align-items: center; gap: 5px; color: var(--human); font-size: 12px; font-weight: 600; }
.po-fatos small .ic { width: 12px; height: 12px; }
.po-vazio { margin: 0; font-size: 13px; color: var(--ink-3); padding: 0 2px; }
.from-oferta { margin: 10px 0 0; }
.fo-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 4px 2px 11px; }
.fo-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-chip strong { color: var(--ink); }
.fo-chip > .ic { color: var(--ink-3); }
.picker-opt { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.picker-opt:hover, .picker-opt:focus { background: var(--surface-2); outline: none; }
.picker-opt:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); }
.picker-opt[aria-selected="true"] { background: var(--brand-soft); }
.picker-opt small { color: var(--ink-3); font-size: 12.5px; }
.picker-empty { padding: 10px; color: var(--ink-3); }
.picker-hint { font-size: 12px; color: var(--ink-3); padding: 8px 10px 2px; border-top: 1px solid var(--line); margin: 6px 0 0; }
.appbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 11px; }

/* Fila da Agência: botão com selo (pedidos prontos ainda não vistos) e a lista de pedidos */
.selo-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pos); color: var(--on-pos); font-size: 11px; font-weight: 750; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.fila-pop { position: absolute; top: calc(100% + 8px); right: 0; width: min(440px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px; z-index: 30; display: grid; gap: 8px; align-content: start; }
.fila-pop h2 { margin: 0; font-size: 15px; font-weight: 700; }
.fila-pop h2:focus { outline: none; }
.fila-sub { margin: 0 0 4px; font-size: 13px; color: var(--ink-2); }
.fila-vazio { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.fila-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fila-item { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
button.fila-item { cursor: pointer; }
button.fila-item:hover { border-color: var(--pos); background: var(--pos-soft); }
.fila-item.is-wait { background: var(--human-soft); border-color: var(--human-line); flex-wrap: wrap; }
/* "Cancelar pedido", numa linha própria, enquanto o pedido ainda não saiu para a Agência */
.fi-acoes { flex-basis: 100%; display: flex; justify-content: flex-end; margin: -4px -6px -5px 0; }
.fi-acoes .btn-ghost:hover { background: var(--surface); }
.fi-icon { color: var(--ink-3); display: grid; place-items: center; flex: none; }
.fi-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fi-txt strong { font-size: 14px; font-weight: 650; }
.fi-txt small { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-novo { margin-left: 8px; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--pos); border: 1.5px solid currentColor; border-radius: 4px; padding: 0 5px; vertical-align: 1px; }

/* Painel de ação do cliente */
.hub { background: var(--surface); border-bottom: 1px solid var(--line); }
.hub-inner { display: grid; gap: 24px; padding-block: 26px 26px; }
.hub-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; }
.client-id { flex: 1 1 420px; min-width: 0; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section-kicker { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.agents-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.agents-link { font-size: 13px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
.agents-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.agents-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 0 0 8px; }
.eyebrow .mono { text-transform: none; letter-spacing: 0; font-weight: 400; }
.client-name { font-family: var(--font-display); font-stretch: 116%; font-weight: 760; font-size: clamp(25px, 3.3vw, 38px); line-height: 1.06; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); display: inline-block; flex: none; }
.dot.wait { background: var(--human); }
@keyframes pulse { 50% { opacity: .3; } }
.meter { flex: 0 1 400px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--surface); }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.meter-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0; }
.meter-count { margin: 0; font-size: 14px; color: var(--ink-2); }
.meter-count strong { font-family: var(--font-display); font-stretch: 112%; font-size: 28px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 2px; }
.meter-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 12px 0 10px; }
.meter-bar span { display: block; height: 100%; transition: width .3s ease; }
.seg-rel, .k-rel { background: var(--pos); }
.seg-neu, .k-neu { background: var(--neutral-seg); }
.seg-out, .k-out { background: repeating-linear-gradient(135deg, var(--off) 0 2px, transparent 2px 5px); }
.k-out { box-shadow: inset 0 0 0 1px var(--off); }
.meter-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.meter-legend li { display: inline-flex; align-items: center; gap: 6px; }
.meter-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

/* Agentes: pesquisa de sinais, hipóteses e PPT */
.dlv { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; gap: 2px 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.dlv > :not(.dlv-icon) { grid-column: 2; }
.dlv-icon { grid-row: 1 / span 4; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.dlv-icon .ic { width: 19px; height: 19px; }
.dlv-head { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.dlv-title { margin: 0; font-weight: 700; font-size: 15px; }
.dlv-text { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.dlv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge { font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; padding: 1px 7px; border-radius: 4px; border: 1.5px solid currentColor; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
/* Estados dos pedidos para o executivo: amarelo (aguardando) e verde (pronto). Sem barra de etapas. */
.badge-ready { color: var(--pos); }
.badge-wait { color: var(--human); }
.badge-none { color: var(--ink-3); }
.badge .dot { width: 6px; height: 6px; background: currentColor; }

/* Validação dos sinais: seção própria, abaixo da ação */
.signals { padding-top: 30px; scroll-margin-top: 72px; }
.signals:focus { outline: none; }
.signals-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.signals-titles { flex: 1 1 320px; min-width: 0; }
.signals-title { margin: 3px 0 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 740; font-size: 22px; line-height: 1.2; }
.signals-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; max-width: 62ch; font-variant-numeric: tabular-nums; }

/* Filtros */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding-block: 16px 6px; }
.search { position: relative; flex: 1 1 220px; min-width: 0; max-width: 340px; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input { width: 100%; padding: 8px 10px 8px 34px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; padding: 2px; background: var(--surface); }
.segmented button { font: inherit; font-size: 13px; font-weight: 600; border: 0; background: transparent; color: var(--ink-2); padding: 6px 10px; border-radius: 7px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.segmented button:disabled { color: var(--ink-3); background: var(--surface-2); cursor: not-allowed; }
.sel { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); max-width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 8px 16px; }
.chip { font: inherit; font-size: 13px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); padding: 4px 11px; border-radius: 999px; cursor: pointer; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip .n { color: var(--ink-3); margin-left: 3px; }
.chip[aria-pressed="true"] .n { color: var(--surface); opacity: .75; }

/* Grade de sinais */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; padding-block: 2px 40px; align-items: stretch; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px; transition: border-color .15s, box-shadow .15s, background .15s; min-width: 0; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.card-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
/* Selo do tipo do Fato Rápido (conta, oferta): neutro, sem marsala. */
.selo { font-size: 11px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: 4px; padding: 0 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat { font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.card-summary { all: unset; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; font-weight: 560; line-height: 1.42; color: var(--ink); cursor: pointer; text-wrap: pretty; }
.card-summary::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.card-summary:focus-visible { outline: none; }
.card:has(.card-summary:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); padding-top: 10px; border-top: 1px solid var(--line); }
.origin { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.origin-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-right { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.date { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.old { font-family: var(--font-body); font-size: 11px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; color: var(--ink-2); }
.tally { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.tally .ic { width: 13px; height: 13px; }
.tally span + .ic { margin-left: 6px; }
.c-up { color: var(--pos); }
.c-down { color: var(--off); }
.pill { font-size: 10.5px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; padding: 1px 7px; border-radius: 4px; border: 1.5px solid currentColor; white-space: nowrap; }
.pill-rel { color: var(--pos); }
.pill-out { color: var(--off); }
.card.is-rel { border-color: var(--pos); box-shadow: inset 0 0 0 1px var(--pos); }
.card.is-human { background: var(--human-soft); border-color: var(--human-line); }
.card.is-human .origin { color: var(--human); font-weight: 650; }
.card.is-human.is-rel { border-color: var(--pos); }
.card.is-out { border-style: dashed; border-color: var(--line-strong); background: var(--surface-2); box-shadow: none; }
.card.is-out .card-summary { color: var(--ink-3); }
.card.is-new { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px var(--brand-soft), 0 0 0 5px var(--brand); } 100% { box-shadow: 0 0 0 0 transparent; } }
.empty { grid-column: 1 / -1; border: 1px dashed var(--line-strong); border-radius: 12px; padding: 28px 24px; display: grid; gap: 10px; justify-items: start; background: var(--surface); max-width: 680px; }
.empty > .ic { width: 26px; height: 26px; color: var(--human); }
.empty h2 { font-family: var(--font-display); font-stretch: 110%; font-size: 20px; line-height: 1.2; margin: 0; text-wrap: balance; }
.empty p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding-block: 18px 32px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.foot p { margin: 0; }
.foot-acoes { display: flex; flex-wrap: wrap; gap: 8px; }

/* Sem dados (API fora do ar ou nenhum fato): só a mensagem com "Tentar de novo". */
body.sem-dados .hub-top, body.sem-dados .agents, body.sem-dados .signals { display: none; }
.hub-fonte { max-width: 820px; }
.hub-fonte .fonte-avisos { margin-top: 4px; color: var(--ink-3); }
/* Etiqueta da ferramenta que gravou o fato (nm_ferramenta). */
.cat-tool { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; }
.picker-opt.is-orfao > span { color: var(--ink-2); font-style: italic; }
