/* As telas do sistema desenhadas em HTML, a partir das telas reais da Mesa (public/tokens.css, casca-topo.css e as
   views): fundo #ecebe6 no claro e #050505 no escuro, ilhas brancas (ou #0c0c0c) com anel de 1 px, raio 14,
   Inter (cai na fonte do sistema). A cor de sinal é a da empresa, como na instância de cliente da Mesa: aqui o azul
   do site. Dados sempre de demonstração. */
.app {
  --a-bg: #050505; --a-ilha: #0c0c0c; --a-ilha-2: #131313; --a-hover: rgba(255, 255, 255, .045);
  --a-borda: rgba(255, 255, 255, .09); --a-borda-2: rgba(255, 255, 255, .18);
  --a-txt: #fff; --a-txt-2: #e8ece9; --a-soft: #c6ccc8; --a-muted: #9aa39d; --a-faint: #7f8a82;
  --a-sinal: #5b8cff; --a-sinal-dim: rgba(91, 140, 255, .12); --a-sinal-borda: rgba(91, 140, 255, .36); --a-sinal-tinta: #fff; --a-sinal-txt: #a9c2ff;
  --a-warn: #e8b04a; --a-warn-dim: rgba(232, 176, 74, .13); --a-warn-txt: #f0c766; --a-perigo-txt: #f3b5a5;
  --a-ok-dim: rgba(91, 140, 255, .12); --a-ok-txt: #a9c2ff;
  --a-anel: inset 0 0 0 1px rgba(255, 255, 255, .075); --a-anel-forte: inset 0 0 0 1px rgba(255, 255, 255, .12);
  --a-sombra: 0 1px 2px rgba(0, 0, 0, .4);
  --a-chip: rgba(255, 255, 255, .06); --a-code: rgba(255, 255, 255, .06); --a-perm: rgba(232, 176, 74, .06);
  --a-moldura: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 2px 6px #0006, 0 50px 110px -40px rgba(0, 0, 0, .95), 0 0 80px -30px rgba(47, 107, 255, .3);
  position: relative;
  container: app / inline-size;
  border-radius: 20px;
  background: var(--a-bg);
  box-shadow: var(--a-moldura);
  font: 400 14px/1.45 "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  color: var(--a-txt);
  overflow: hidden;
  text-align: left;
}
.app.claro {
  --a-bg: #ecebe6; --a-ilha: #fff; --a-ilha-2: #fff; --a-hover: rgba(0, 0, 0, .04);
  --a-borda: rgba(0, 0, 0, .09); --a-borda-2: rgba(0, 0, 0, .17);
  --a-txt: #1f1e1b; --a-txt-2: #2b2a26; --a-soft: #3d3c37; --a-muted: #5f5d56; --a-faint: #6b6960;
  --a-sinal: #1f4fd6; --a-sinal-dim: rgba(31, 79, 214, .08); --a-sinal-borda: rgba(31, 79, 214, .3); --a-sinal-tinta: #fff; --a-sinal-txt: #1f4fd6;
  --a-warn: #8a5a00; --a-warn-dim: #fbefcc; --a-warn-txt: #7a5200; --a-perigo-txt: #a3301a;
  --a-ok-dim: rgba(31, 79, 214, .08); --a-ok-txt: #1f4fd6;
  --a-anel: inset 0 0 0 1px rgba(0, 0, 0, .08); --a-anel-forte: inset 0 0 0 1px rgba(0, 0, 0, .14);
  --a-sombra: 0 1px 2px rgba(30, 28, 20, .06), 0 4px 14px rgba(30, 28, 20, .06);
  --a-chip: rgba(0, 0, 0, .05); --a-code: rgba(0, 0, 0, .045); --a-perm: #fbf6ea;
  --a-moldura: inset 0 0 0 1px rgba(23, 25, 22, .1), 0 2px 6px rgba(23, 25, 22, .06), 0 40px 90px -36px rgba(23, 25, 22, .35);
}
.app * { box-sizing: border-box; }
.app svg { flex: none; }
.app p { margin: 0; }
.app code { font: 500 .92em/1.4 ui-monospace, "SF Mono", Menlo, monospace; }
.ilha { border-radius: 14px; background: var(--a-ilha); box-shadow: var(--a-anel), var(--a-sombra); }

/* ---- a casca: topo com a pílula ---- */
.app-topo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--a-borda); }
.app-marca { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.app-logo { position: relative; width: 22px; height: 16px; }
.app-logo i { position: absolute; left: 0; width: 22px; height: 6px; border-radius: 2px; background: var(--a-sinal); transform: skewX(-24deg); }
.app-logo i:first-child { top: 0; left: 5px; width: 17px; }
.app-logo i:last-child { bottom: 0; opacity: .55; width: 14px; }
.app-pilula { display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--a-ilha); box-shadow: var(--a-anel), 0 6px 18px -8px rgba(0, 0, 0, .18); }
.tp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; color: var(--a-muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tp svg { width: 14px; height: 14px; }
.tp.ativo { color: var(--a-txt); font-weight: 600; background: var(--a-chip); }
.tp.ativo svg { color: var(--a-sinal); }
.app-direita { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.app-busca { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 6px 0 10px; margin-right: 6px; border-radius: 99px; background: var(--a-ilha); box-shadow: var(--a-anel); color: var(--a-muted); font-size: 13px; }
.app-busca svg { width: 14px; height: 14px; }
.app-busca kbd { padding: 1px 6px; border-radius: 6px; background: var(--a-chip); font: 600 10.5px/1.6 inherit; color: var(--a-muted); }
.ti { position: relative; width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; color: var(--a-soft); }
.ti svg { width: 16px; height: 16px; }
.ti.ativo { background: var(--a-chip); color: var(--a-txt); }
.ti b { position: absolute; top: 0; right: 0; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 99px; background: var(--a-sinal); color: var(--a-sinal-tinta); font-size: 9.5px; line-height: 15px; text-align: center; }
.app-eu { position: relative; width: 28px; height: 28px; margin-left: 6px; border-radius: 99px; display: grid; place-items: center; background: var(--a-sinal); color: var(--a-sinal-tinta); font-weight: 700; font-size: 12px; }
.app-eu::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 99px; background: #2fb36a; box-shadow: 0 0 0 2px var(--a-bg); }
.app-demo { position: absolute; right: 14px; bottom: 12px; z-index: 4; padding: 5px 10px; border-radius: 99px; background: var(--a-warn-dim); color: var(--a-warn-txt); font-size: 11.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(232, 176, 74, .35); }
.app-corpo { padding: 8px 8px 46px; }
.app-titulo { font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.app-titulo.grande { font-size: 30px; letter-spacing: -.035em; }
.app-lead { margin-top: 3px !important; color: var(--a-muted); font-size: 13px; }
.pag { padding: 14px 16px 4px; display: grid; gap: 10px; }
.pag-estreita { max-width: 760px; margin: 0 auto; width: 100%; }
.bt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; background: var(--a-ilha); box-shadow: var(--a-anel-forte); color: var(--a-txt-2); white-space: nowrap; }
.bt svg { width: 14px; height: 14px; }
.bt.sim { background: var(--a-sinal); color: var(--a-sinal-tinta); box-shadow: 0 1px 2px rgba(31, 79, 214, .3); border-radius: 99px; }
.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--a-chip); box-shadow: var(--a-anel); font-size: 12.5px; white-space: nowrap; }
.seg > span { padding: 5px 12px; border-radius: 99px; color: var(--a-muted); }
.seg > span.on { background: var(--a-ilha-2); color: var(--a-txt); font-weight: 600; box-shadow: var(--a-anel), 0 1px 2px rgba(0, 0, 0, .1); }
.selo { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.selo.ok { background: var(--a-ok-dim); color: var(--a-ok-txt); }
.selo.aviso { background: var(--a-warn-dim); color: var(--a-warn-txt); }
.chave { position: relative; width: 32px; height: 19px; border-radius: 99px; background: var(--a-borda-2); flex: none; }
.chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.chave.on { background: var(--a-sinal); }
.chave.on::after { left: 16px; }
.carinha { display: block; border-radius: 99px; flex: none; }

/* ---- Mapa: a Árvore da empresa ---- */
.tela-mapa .app-corpo { padding: 0 0 46px; background-image: linear-gradient(var(--a-borda) 1px, transparent 1px), linear-gradient(90deg, var(--a-borda) 1px, transparent 1px); background-size: 25% 33.3%; background-position: center top; }
.arv-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 18px 10px; border-bottom: 1px solid var(--a-borda); background: color-mix(in srgb, var(--a-bg) 92%, transparent); }
.arv { display: grid; gap: 10px; padding: 10px 12px 4px; align-items: start; }
.arv.com-cartao { grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); }
.arv:not(.com-cartao) .arv-palco { max-width: 860px; width: 100%; justify-self: center; }
.arv-radial { position: relative; aspect-ratio: 760 / 540; color: var(--a-sinal); }
.arv-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arv-svg .glow { color: var(--a-sinal); }
.arv-svg .l-dep { stroke: var(--a-borda-2); stroke-width: 1.2; fill: none; }
.arv-svg .l-tar { stroke: var(--a-borda-2); stroke-width: .9; fill: none; }
.arv-svg .l-tar.acesa { stroke: var(--a-sinal-borda); }
.arv-svg .halo { fill: var(--a-sinal-dim); }
.arv-svg .g-anel { fill: var(--a-ilha); stroke: var(--a-sinal); stroke-width: 1.5; }
.arv-svg .g-miolo, .glifo .g-miolo { fill: var(--a-sinal); }
.arv-svg .apagada .g-anel { stroke: var(--a-faint); }
.arv-svg .apagada .g-miolo { fill: var(--a-faint); }
.arv-svg .anel-cerebro { fill: var(--a-sinal-dim); stroke: var(--a-sinal-borda); stroke-dasharray: 2 4; }
.arv-svg .miolo-cerebro { fill: var(--a-ilha); stroke: var(--a-sinal); stroke-width: 1.4; }
.arv-svg text { fill: var(--a-txt); font-family: inherit; }
.arv-svg .c-num { font-size: 22px; font-weight: 700; }
.arv-svg .c-sub { font-size: 9.5px; fill: var(--a-muted); }
.arv-svg .c-mem { font-size: 9px; font-weight: 600; fill: var(--a-sinal); }
.arv-svg .c-nome { font-size: 11.5px; font-weight: 600; }
.arv-svg .r-nome { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; }
.arv-svg .r-linha { font-size: 10.5px; fill: var(--a-muted); }
.arv-nos { position: absolute; inset: 0; }
.arv-no { position: absolute; transform: translate(-50%, -21px); display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; font: inherit; color: var(--a-txt); cursor: pointer; }
.arv-no .carinha { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--a-ilha), 0 0 0 3px var(--a-borda-2), 0 4px 12px rgba(0, 0, 0, .18); transition: box-shadow .2s; }
.arv-no em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--a-muted); font-variant-numeric: tabular-nums; }
.arv-no-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.arv-no.sel .carinha, .arv-no[aria-pressed="true"] .carinha { box-shadow: 0 0 0 2px var(--a-ilha), 0 0 0 4px var(--a-sinal), 0 4px 14px rgba(31, 79, 214, .3); }
.arv-no[aria-pressed="false"] .carinha { box-shadow: 0 0 0 2px var(--a-ilha), 0 0 0 3px var(--a-borda-2), 0 4px 12px rgba(0, 0, 0, .18); }
button.arv-no:hover .carinha { box-shadow: 0 0 0 2px var(--a-ilha), 0 0 0 4px var(--a-sinal-borda); }
button.arv-no:focus-visible { outline: none; }
button.arv-no:focus-visible .carinha { box-shadow: 0 0 0 2px var(--a-ilha), 0 0 0 4px var(--a-sinal); }
.arv-lado { display: grid; gap: 8px; }
.dep-cartao { padding: 14px; border-radius: 16px; background: var(--a-ilha); box-shadow: var(--a-anel), var(--a-sombra); display: grid; gap: 9px; align-content: start; }
.dep-cab { display: flex; gap: 11px; align-items: center; }
.dep-cab .carinha { border-radius: 12px; box-shadow: var(--a-anel-forte); }
.dep-cab small { display: block; color: var(--a-muted); font-size: 11px; }
.dep-cab strong { display: block; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.dep-cab span { color: var(--a-muted); font-size: 12px; }
.selo-ativo { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: var(--a-chip); font-size: 11.5px; font-weight: 500; }
.selo-ativo i { width: 7px; height: 7px; border-radius: 99px; background: var(--a-sinal); }
.dep-h { font-size: 12.5px; font-weight: 700; margin-top: 2px !important; }
.dep-h .conta { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 99px; background: var(--a-chip); font-size: 10.5px; color: var(--a-muted); }
.sabe-lista { display: flex; flex-wrap: wrap; gap: 5px; }
.sabe { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--a-sinal-borda); font-size: 11.5px; color: var(--a-txt-2); }
.sabe.apagada { box-shadow: var(--a-anel-forte); color: var(--a-muted); }
.glifo { width: 13px; height: 13px; }
.glifo .g-anel { fill: none; stroke: var(--a-sinal); stroke-width: 1.6; }
.glifo .apagada .g-anel { stroke: var(--a-faint); }
.glifo .apagada .g-miolo { fill: var(--a-faint); }
.entregas { list-style: none; margin: 0; padding: 0; display: grid; }
.entregas li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 9px; padding: 8px 0; border-top: 1px solid var(--a-borda); align-items: start; }
.ent-ico { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--a-chip); color: var(--a-muted); }
.ent-ico svg { width: 13px; height: 13px; }
.ent-txt b { display: block; font-size: 12.5px; font-weight: 600; }
.ent-txt small { display: block; color: var(--a-muted); font-size: 11.5px; line-height: 1.4; }
.entregas time { color: var(--a-muted); font-size: 11px; white-space: nowrap; }
.dar { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 99px; background: var(--a-ilha); box-shadow: var(--a-anel-forte), var(--a-sombra); color: var(--a-muted); font-size: 12.5px; }
.dar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dar b { padding: 6px 13px; border-radius: 99px; background: var(--a-sinal); color: var(--a-sinal-tinta); font-size: 12px; }
.arv-rodape { display: grid; grid-template-columns: 1fr minmax(0, 1.3fr) 1fr; align-items: center; gap: 12px; padding: 6px 16px 0; }
.legenda { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--a-muted); font-size: 11.5px; }
.legenda li { display: inline-flex; align-items: center; gap: 5px; }
.arv-pergunta { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 99px; background: var(--a-ilha); box-shadow: var(--a-anel-forte), 0 10px 30px -12px rgba(0, 0, 0, .25); color: var(--a-muted); font-size: 13px; }
.arv-pergunta > svg { width: 15px; height: 15px; color: var(--a-sinal); }
.arv-pergunta span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arv-pergunta i { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; background: var(--a-sinal); color: var(--a-sinal-tinta); }
.arv-pergunta i svg { width: 15px; height: 15px; }
.fluxo { justify-self: end; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: var(--a-chip); box-shadow: var(--a-anel); font-size: 12px; font-weight: 600; white-space: nowrap; }
.fluxo i { width: 7px; height: 7px; border-radius: 99px; background: var(--a-sinal); }

/* ---- Conversas ---- */
.tela-conversa .app-corpo { padding: 8px 8px 46px; }
.conv { display: grid; grid-template-columns: 200px minmax(0, 1fr) 170px; gap: 8px; min-height: 470px; }
.cv-lista { padding: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.cv-principal { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; box-shadow: var(--a-anel-forte); }
.cv-principal svg { width: 14px; height: 14px; color: var(--a-muted); }
.cv-principal b { flex: 1; font-weight: 600; }
.cv-agentes { display: flex; gap: 2px; padding: 6px 0 8px; border-bottom: 1px solid var(--a-borda); overflow: hidden; }
.ag { display: grid; justify-items: center; gap: 3px; width: 40px; padding: 4px 0; border-radius: 10px; flex: none; }
.ag small { font-size: 9.5px; color: var(--a-muted); max-width: 38px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag.ativo { background: var(--a-ilha-2); box-shadow: var(--a-anel-forte); }
.ag.ativo small { color: var(--a-txt); }
.cv-busca { display: flex; gap: 6px; margin-top: 4px; }
.cv-busca span { flex: 1; padding: 6px 9px; border-radius: 9px; background: var(--a-chip); color: var(--a-muted); }
.cv-busca i { width: 30px; display: grid; place-items: center; border-radius: 9px; box-shadow: var(--a-anel-forte); }
.cv-busca svg { width: 14px; height: 14px; }
.cv-grupo { display: flex; align-items: center; gap: 4px; padding: 8px 4px 2px; font-size: 11.5px; font-weight: 600; color: var(--a-soft); }
.cv-grupo svg { width: 12px; height: 12px; }
.cv { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 9px; color: var(--a-txt-2); }
.cv .ast { color: var(--a-faint); font-size: 11px; }
.cv span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv small { color: var(--a-muted); font-size: 10.5px; white-space: nowrap; }
.cv.ativo { background: var(--a-chip); font-weight: 600; }
.cv-pe { margin-top: auto !important; padding: 8px 4px 0; border-top: 1px solid var(--a-borda); color: var(--a-muted); font-size: 11px; }
.cv-fio { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.cv-cab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--a-borda); }
.cv-cab strong { display: block; font-size: 14.5px; }
.cv-cab small { color: var(--a-muted); font-size: 11.5px; }
.cv-cab > div:first-of-type { min-width: 0; flex: 1; }
.cv-botoes { display: flex; gap: 5px; align-items: center; }
.b-pil { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; box-shadow: var(--a-anel-forte); font-size: 11.5px; white-space: nowrap; color: var(--a-txt-2); }
.b-pil svg { width: 13px; height: 13px; }
.b-pil.on { background: var(--a-sinal-dim); box-shadow: inset 0 0 0 1px var(--a-sinal-borda); color: var(--a-sinal-txt); }
.b-ico { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 99px; color: var(--a-muted); }
.b-ico svg { width: 15px; height: 15px; }
.b-ico.on { background: var(--a-chip); color: var(--a-txt); }
.cv-fixa { display: flex; align-items: center; gap: 7px; padding: 7px 12px !important; border-bottom: 1px solid var(--a-borda); color: var(--a-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-fixa svg { width: 13px; height: 13px; }
.cv-msgs { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.m-eu { align-self: flex-end; max-width: 80%; padding: 8px 12px; border-radius: 12px; background: var(--a-chip); color: var(--a-txt-2); font-size: 13px; }
.m-quem { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.passos { max-width: 420px; border-radius: 12px; box-shadow: var(--a-anel-forte); overflow: hidden; }
.passos > div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; font-size: 12px; }
.passos > div + div { border-top: 1px solid var(--a-borda); }
.passos svg { width: 26px; height: 26px; padding: 6px; border-radius: 8px; box-shadow: var(--a-anel-forte); color: var(--a-soft); }
.passos span { flex: 1; min-width: 0; display: grid; }
.passos code { color: var(--a-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.passos em { font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: var(--a-sinal-dim); box-shadow: inset 0 0 0 1px var(--a-sinal-borda); color: var(--a-sinal-txt); }
.m-texto { font-size: 13.5px; line-height: 1.55; color: var(--a-txt-2); }
.m-texto b { color: var(--a-txt); }
.m-acoes { display: flex; flex-wrap: wrap; gap: 12px; color: var(--a-muted); font-size: 11.5px; }
.perm { padding: 12px 14px; border-radius: 12px; background: var(--a-perm); box-shadow: inset 0 0 0 1px rgba(200, 150, 40, .35); display: grid; gap: 7px; font-size: 13px; }
.perm code { font-size: 11.5px; color: var(--a-txt-2); }
.perm-ver { color: var(--a-muted); font-size: 12px; }
.perm-bts { display: flex; gap: 6px; }
.perm-bts .bt { padding: 7px 16px; border-radius: 99px; }
.compositor { margin: 0 10px 10px; padding: 10px 12px 8px; border-radius: 14px; box-shadow: var(--a-anel-forte); display: grid; gap: 8px; }
.c-campo { color: var(--a-muted); font-size: 13px; }
.c-linha { display: flex; justify-content: space-between; align-items: center; color: var(--a-muted); }
.c-linha svg { width: 14px; height: 14px; }
.c-dir { display: flex; align-items: center; gap: 12px; font-size: 11.5px; }
.c-dir span { display: inline-flex; align-items: center; gap: 4px; }
.c-dir i { width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center; background: var(--a-sinal); color: var(--a-sinal-tinta); }
.compositor small { color: var(--a-muted); font-size: 10.5px; }
.cv-sobre { padding: 6px 4px; font-size: 12.5px; display: grid; align-content: start; gap: 2px; }
.cv-rot { margin-top: 6px !important; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); }
.cv-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 0; color: var(--a-txt-2); }
.cv-item svg { width: 13px; height: 13px; }
.cv-item b { margin-left: auto; font-weight: 500; color: var(--a-muted); }

/* ---- Automações (Rotinas) ---- */
.au-secao { overflow: hidden; }
.au-cab { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; }
.au-cab > div:nth-child(2) { flex: 1; min-width: 0; }
.au-cab strong { font-size: 14.5px; }
.au-cab p { color: var(--a-soft); font-size: 12.5px; margin-top: 2px !important; max-width: 520px; }
.au-cab small { display: block; margin-top: 8px; color: var(--a-muted); font-size: 11.5px; }
.au-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--a-sinal-dim); box-shadow: inset 0 0 0 1px var(--a-sinal-borda); color: var(--a-sinal); }
.au-ico svg { width: 15px; height: 15px; }
.au-botoes { display: flex; gap: 6px; }
.au-lista { border-top: 1px solid var(--a-borda); }
.au-item { display: flex; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--a-borda); }
.au-item:first-child { border-top: 0; }
.au-item .chave { margin-top: 2px; }
.au-corpo { flex: 1; min-width: 0; display: grid; gap: 3px; }
.au-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.au-topo strong { font-size: 13.5px; font-weight: 600; }
.au-meta { color: var(--a-muted); font-size: 11.5px; }
.au-texto { color: var(--a-soft); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-acoes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px !important; }
.au-acoes span { padding: 3px 9px; border-radius: 8px; box-shadow: var(--a-anel-forte); font-size: 11px; color: var(--a-txt-2); }

/* ---- apps (Tarefas, Cobranças) ---- */
.tela-app .app-corpo { padding: 0 0 46px; }
.app-barra { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--a-borda); font-size: 14.5px; }
.app-barra small { color: var(--a-muted); font-size: 13px; }
.app-av { width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.app-av.tf { background: #ece6fb; color: #5b3fa8; }
.app-av.cl { background: #e3ecfb; color: #1f5aa0; }
.app:not(.claro) .app-av.tf { background: #201b34; color: #bcaaf6; }
.app:not(.claro) .app-av.cl { background: #121f32; color: #92baf2; }
.barra-bts { margin-left: auto; display: flex; gap: 6px; }
.abas { display: flex; gap: 2px; padding: 6px 12px; border-bottom: 1px solid var(--a-borda); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.abas span { padding: 5px 10px; border-radius: 8px; color: var(--a-muted); }
.abas span.on { background: var(--a-sinal-dim); color: var(--a-sinal-txt); font-weight: 600; }
.abas-area span.on { background: var(--a-ilha); color: var(--a-txt); box-shadow: var(--a-anel); font-weight: 600; }
.pag-app { padding-top: 12px; }
.tf-topo, .cb-topo, .ig-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tf-filtro { display: flex; gap: 6px; }
.tf-filtro span { padding: 4px 12px; border-radius: 99px; box-shadow: var(--a-anel-forte); font-size: 12px; color: var(--a-muted); }
.tf-filtro span.on { background: var(--a-sinal-dim); box-shadow: inset 0 0 0 1px var(--a-sinal); color: var(--a-sinal-txt); }
.tf-secao { display: grid; gap: 6px; }
.tf-grupo { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.tf-grupo span { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--a-chip); color: var(--a-muted); font-size: 10.5px; }
.tf-grupo.aprovar span { background: var(--a-warn-dim); color: var(--a-warn-txt); }
.tf-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.tf-cartao { display: grid; gap: 7px; padding: 11px 12px; border-radius: 12px; background: var(--a-ilha); box-shadow: var(--a-anel), var(--a-sombra); }
.tf-cartao b { font-size: 13px; font-weight: 600; line-height: 1.35; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { padding: 1px 8px; border-radius: 99px; background: var(--a-chip); font-size: 11px; color: var(--a-soft); }
.chip.espera { background: var(--a-warn-dim); color: var(--a-warn-txt); }
.chip.atraso { background: rgba(224, 122, 95, .14); color: var(--a-perigo-txt); }
.chip.torre { background: var(--a-sinal-dim); color: var(--a-sinal-txt); }
.tf-cartao small { color: var(--a-muted); font-size: 11.5px; }
.mes { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.mes i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; box-shadow: var(--a-anel-forte); color: var(--a-muted); }
.mes svg { width: 14px; height: 14px; }
.cartoes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cartao { padding: 12px 13px; display: grid; gap: 4px; align-content: start; }
.app h4 { margin: 0; font-size: 12px; font-weight: 600; color: var(--a-soft); }
.cartao .total { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cartao.verde .total { color: var(--a-sinal); }
.cartao .conta { color: var(--a-muted); font-size: 11.5px; line-height: 1.4; }
.ln { display: flex; justify-content: space-between; gap: 8px; padding-top: 4px !important; font-size: 11.5px; color: var(--a-soft); font-variant-numeric: tabular-nums; }
.ln span:last-child { white-space: nowrap; font-weight: 600; }
.ln.perigo span:last-child { color: var(--a-perigo-txt); }
.ln small { color: var(--a-muted); }
.cb-baixo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.cb-barras, .cb-vence { padding: 12px 13px; display: grid; gap: 8px; align-content: start; }
.barras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 104px; align-items: end; }
.barras li { height: 100%; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 4px; }
.barras i { align-self: end; width: 70%; border-radius: 6px 6px 2px 2px; background: var(--a-sinal-borda); }
.barras li.atual i { background: var(--a-sinal); }
.barras small { font-size: 10.5px; color: var(--a-muted); }
.cb-vence .ln { padding: 7px 0 !important; border-top: 1px solid var(--a-borda); font-size: 12px; }

/* ---- Arquivos: o arquivo aberto com o Histórico ---- */
.tela-arquivos .app-corpo { padding: 8px 8px 46px; }
.arq { overflow: hidden; }
.arq-barra { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--a-borda); }
.migalha { flex: 1; min-width: 0; color: var(--a-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.migalha b { color: var(--a-txt); }
.arq-barra .seg { border-radius: 10px; }
.arq-barra .seg > span { border-radius: 8px; padding: 4px 10px; }
.arq-icos { display: flex; gap: 2px; padding-left: 8px; border-left: 1px solid var(--a-borda); }
.arq-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 270px; min-height: 360px; }
.arq-doc { padding: 16px 20px; font-size: 13.5px; color: var(--a-txt-2); line-height: 1.6; }
.doc-h1 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--a-txt); margin-bottom: 6px !important; }
.doc-h2 { font-size: 15px; font-weight: 700; color: var(--a-txt); margin-top: 12px !important; }
.arq-doc ul { margin: 8px 0 0; padding-left: 20px; }
.arq-hist { padding: 14px; border-left: 1px solid var(--a-borda); display: grid; gap: 8px; align-content: start; font-size: 12px; }
.arq-hist .h3 { font-size: 14px; font-weight: 700; }
.h-ultima { color: var(--a-muted); }
.arq-hist ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.arq-hist li { display: flex; gap: 9px; padding: 8px; border-radius: 10px; }
.arq-hist li.ativo { background: var(--a-chip); }
.arq-hist .avatar { width: 24px; height: 24px; flex: none; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--a-chip); color: var(--a-soft); }
.arq-hist .avatar.claude { background: var(--a-sinal-dim); color: var(--a-sinal-txt); box-shadow: inset 0 0 0 1px var(--a-sinal-borda); }
.arq-hist time { color: var(--a-muted); font-size: 11px; }
.arq-hist small { display: block; color: var(--a-soft); }
.h-acoes { display: block; margin-top: 3px; color: var(--a-sinal-txt); font-size: 11px; }

/* ---- Integrações (Conexões) ---- */
.ig-abas { display: flex; align-items: center; gap: 12px; }
.ig-abas p { color: var(--a-muted); font-size: 12px; max-width: 420px; }
.ig-secao header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 13px 14px 10px; }
.ig-secao strong { font-size: 14px; }
.ig-secao header p { color: var(--a-soft); font-size: 12px; margin-top: 2px !important; max-width: 470px; }
.ig-lista { list-style: none; margin: 0; padding: 0 14px; }
.ig-lista li { display: grid; grid-template-columns: minmax(0, 1fr) 130px minmax(0, 1.2fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--a-borda); font-size: 12.5px; }
.ig-lista b { font-weight: 600; }
.ig-origem { color: var(--a-soft); font-size: 12px; }
.ig-host { color: var(--a-muted); font: 500 11px/1.3 ui-monospace, "SF Mono", Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-estado { display: flex; align-items: center; gap: 8px; justify-self: end; }
.ig-estado a { color: var(--a-sinal-txt); font-size: 11.5px; white-space: nowrap; }
.ig-rodape { padding: 8px 14px 12px; border-top: 1px solid var(--a-borda); color: var(--a-muted); font-size: 11.5px; }

/* ---- tamanhos ---- */
@container app (max-width: 1080px) {
  .conv { grid-template-columns: 190px minmax(0, 1fr); }
  .cv-sobre { display: none; }
  .fluxo { display: none; }
  .arv-rodape { grid-template-columns: auto minmax(0, 1fr); }
}
@container app (max-width: 900px) {
  .app-busca span, .app-busca kbd { display: none; }
  .app-busca { width: 30px; padding: 0; justify-content: center; margin-right: 2px; }
  .ti:nth-last-of-type(-n+2) { display: none; }
  .arv.com-cartao { grid-template-columns: 1fr; }
  .arv-lado { grid-template-columns: 1fr; }
  .arv-rodape { grid-template-columns: 1fr; padding-top: 10px; }
  .legenda { justify-content: center; order: 2; }
  .cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arq-corpo { grid-template-columns: minmax(0, 1fr) 230px; }
  .tf-lista { grid-template-columns: 1fr 1fr; }
}
@container app (max-width: 720px) {
  .app-topo { grid-template-columns: auto 1fr; row-gap: 8px; }
  .app-pilula { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-between; }
  .tp { padding: 6px 9px; font-size: 12px; }
  .app-titulo.grande { font-size: 24px; }
  .conv { grid-template-columns: 1fr; min-height: 0; }
  .cv-lista { display: none; }
  .cv-botoes .b-pil:not(.on) { display: none; }
  .barra-bts .bt:last-child { display: none; }
  .cb-baixo { grid-template-columns: 1fr; }
  .cb-barras { display: none; }
  .arq-corpo { grid-template-columns: 1fr; min-height: 0; }
  .arq-hist { border-left: 0; border-top: 1px solid var(--a-borda); }
  .arq-hist li:nth-child(n+3) { display: none; }
  .arq-icos .b-ico:not(.on) { display: none; }
  .ig-lista li { grid-template-columns: minmax(0, 1fr) auto; }
  .ig-host { display: none; }
  .ig-origem { grid-column: 1; grid-row: 2; margin-top: -8px; }
  .ig-estado { grid-row: 1 / 3; grid-column: 2; }
  .ig-estado a { display: none; }
  .ig-abas p { display: none; }
  .au-acoes span:nth-child(n+3) { display: none; }
}
/* estreito: a árvore vira a lista de departamentos (a Mesa também troca o desenho no estreito) */
@container app (max-width: 560px) {
  .app-marca span:last-child { display: none; }
  .arv-cab .seg { display: none; }
  .arv-radial { aspect-ratio: auto; }
  .arv-svg { display: none; }
  .arv-nos { position: static; display: grid; gap: 4px; }
  .arv-no { position: static; transform: none; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; justify-items: stretch; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: var(--a-ilha); box-shadow: var(--a-anel); text-align: left; }
  .arv-no .carinha { width: 34px; height: 34px; }
  .arv-no-txt { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: grid; white-space: normal; }
  .arv-no-txt b { font-size: 13px; }
  .arv-no-txt small { color: var(--a-muted); font-size: 11px; }
  .arv-no[aria-pressed="true"], .arv-no.sel { box-shadow: inset 0 0 0 1.5px var(--a-sinal); }
  .arv-rodape .legenda { display: none; }
  .tela-mapa .app-corpo { background-image: none; }
  .tf-lista, .cartoes { grid-template-columns: 1fr; }
  .tf-topo .bt, .ig-topo .bt, .ig-secao header .bt, .au-botoes { display: none; }
  .cb-topo { flex-direction: column; gap: 6px; }
  .cartao:nth-child(n+3) { display: none; }
  .tf-secao:nth-of-type(n+2) { display: none; }
  .tf-lista .tf-cartao:nth-child(n+3) { display: none; }
  .abas span:nth-child(n+4) { display: none; }
  .ig-lista li:nth-child(n+5) { display: none; }
  .au-item:nth-child(n+3) { display: none; }
  .au-cab small { display: none; }
  .m-acoes, .cv-fixa { display: none; }
  .arq-barra .seg { display: none; }
  .arq-doc { padding: 12px 14px; }
  .dep-cab small { display: none; }
  .entregas li:nth-child(n+3) { display: none; }
  .sabe-lista, .dep-h:first-of-type { display: none; }
  .arv-no em { justify-self: end; }
}
@container app (max-width: 400px) {
  .tp span { display: none; }
  .tp { padding: 7px 12px; }
  .tp.ativo span { display: inline; }
  .app-pilula { justify-content: center; }
  .app-titulo { font-size: 18px; }
}
