/* Catálogo (v11.1): as cenas, uma por funcionalidade (HTML em tools/catalogo_demos.py).
   Cada cena é um quadro de 380 x 260 px, centrado na tela do palco e escalado pelo catalogo.js
   (--k). Estado final = HTML como está; o JS só anima a entrada. Fala do inForm sempre em teal;
   o destaque de cada grupo vem de --gc. */

.cd {
  --if: #2fe0cc; --ok: #7fd6a0; --warn: #e8b04b; --al: #ef8f7d;
  --s1: #0f1b26; --s2: #172634; --s3: #1e3242;
  --l: rgba(238, 242, 245, .1); --l2: rgba(238, 242, 245, .2);
  --c-a: #8fb3ff; --c-b: #e8b04b; --c-c: #ef8f7d; --c-d: #7fd6a0; --c-e: #b79cff;
  position: absolute; left: 50%; top: 50%; width: 380px; height: 260px; margin: -130px 0 0 -190px;
  transform: scale(var(--k, 1)); transform-origin: 50% 50%;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  font: 400 12px/1.38 var(--sans); color: var(--ink); text-align: left;
}
.cd * { box-sizing: border-box; }
/* botões de verdade dentro das cenas (data-acao, catalogo.js) */
:where(.cd) button { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cd button:focus-visible, .cd g[role="button"]:focus-visible { outline: 2px solid var(--gc); outline-offset: 2px; }
.cd g[role="button"] { cursor: pointer; outline: none; }
@media (hover: hover) {
  .cd button[data-acao]:hover { filter: brightness(1.18); }
}
.cd b { font-weight: 600; }
.cd em { font-style: normal; }
.cd small { font-size: 10.5px; color: var(--ink-3); }

/* ------------------------------------------------------------------ utilitários */
.cd .y { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cd .y0 { gap: 1px; }
.cd .x { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cd .sb { justify-content: space-between; }
.cd .ce { align-items: center; justify-content: center; }
.cd .f1 { flex: 1 1 auto; min-width: 0; }
.cd .g2 { display: grid; min-width: 0; }
.cd .g2 > * { min-width: 0; }
.cd .ro { font: 500 9.5px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.cd .ro.if { color: var(--if); } .cd .ro.ok { color: var(--ok); } .cd .ro.warn { color: var(--warn); } .cd .ro.al { color: var(--al); } .cd .ro.mut { color: var(--ink-3); opacity: .8; }
.cd .mono { font-family: var(--mono); }
.cd .mut { color: var(--ink-3); }
.cd .ok { color: var(--ok); } .cd .al { color: var(--al); } .cd .warn { color: var(--warn); } .cd .if { color: var(--if); }
.cd .ic { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cd .ic-if { color: var(--if); } .cd .ic-gc { color: var(--gc); } .cd .ic-g { width: 26px; height: 26px; }
.cd .nota { gap: 6px; font-size: 10.5px; color: var(--ink-2); }
.cd .num { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; font: 600 10px/1 var(--mono); background: color-mix(in srgb, var(--gc) 20%, transparent); color: var(--gc); }
.cd .num-1 { background: rgba(143, 179, 255, .2); color: var(--c-a); }
.cd .num-2 { background: rgba(232, 176, 75, .2); color: var(--c-b); }
.cd .hl { border-radius: 3px; padding: 0 2px; background: color-mix(in srgb, var(--gc) 24%, transparent); }
.cd .hl-1 { background: rgba(143, 179, 255, .24); }
.cd .hl-2 { background: rgba(232, 176, 75, .24); }
.cd .men { color: var(--c-a); font-weight: 600; }
.cd .stk { display: inline-grid; }
.cd .stk > * { grid-area: 1 / 1; }
.cd .stk-b { display: grid; }
.cd .was { opacity: 0; }
.cd .dim { opacity: .3; }
.cd .rs { position: relative; color: var(--ink-3); }
.cd .rs-l { position: absolute; left: -1px; right: -1px; top: 52%; height: 1.5px; background: var(--al); transform-origin: left center; }
.cd .borra { filter: blur(3px); color: var(--ink-3); }

/* ------------------------------------------------------------------ falas */
.cd .b {
  position: relative; max-width: 84%; padding: 6px 10px 7px; border-radius: 12px;
  background: var(--s2); border: 1px solid rgba(238, 242, 245, .07); font-size: 12px; line-height: 1.38; text-wrap: pretty;
}
.cd .b-g { align-self: flex-end; background: #1f3546; border-bottom-right-radius: 4px; }
.cd .b-i { align-self: flex-start; background: rgba(47, 224, 204, .1); border-color: rgba(47, 224, 204, .34); border-bottom-left-radius: 4px; }
.cd .b-m { align-self: flex-start; border-bottom-left-radius: 4px; }
.cd .b-n { display: block; margin-bottom: 1px; font: 600 9px/1.25 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--c, var(--ink-3)); }
.cd .b-i .b-n { color: var(--if); }
.cd .b-sm { font-size: 11.2px; line-height: 1.32; padding: 4px 9px 5px; }
.cd .b-tr { font-size: 10.5px; color: var(--ink-2); font-style: italic; background: transparent; border: 1px dashed var(--l2); }
.cd .b-largo { max-width: 100%; }
.cd .b-aud { display: flex; align-items: center; gap: 7px; padding: 7px 10px; }
.cd .b-aud .ic { color: var(--if); }
.cd .wv { display: flex; align-items: center; gap: 2px; height: 18px; }
.cd .wv i { width: 3px; height: var(--h); border-radius: 2px; background: color-mix(in srgb, var(--ink) 55%, transparent); }
.cd .b-aud em { font: 500 10px/1 var(--mono); color: var(--ink-3); }
.cd .b-foto { padding: 5px; }
.cd .b-foto .b-n { padding: 0 4px 3px; }
.cd .foto { display: grid; place-items: center; width: 120px; height: 62px; border-radius: 8px; background: linear-gradient(135deg, #2b4a5c, #1a2d3a 60%, #3a5a4a); color: rgba(238, 242, 245, .6); }
.cd .foto .ic { width: 22px; height: 22px; }
.cd .b-txt { display: block; margin-top: 6px; }
/* respostas prontas do gestor como botões: a escolhida acende */
.cd .b-op { max-width: none; white-space: nowrap; font-size: 11.2px; padding: 4px 9px 5px; opacity: .45; border: 1px dashed var(--l2); transition: opacity .25s; }
.cd .b-op.on { opacity: 1; border-style: solid; border-color: rgba(238, 242, 245, .07); }
.cd .cita { display: block; margin: 2px 0 5px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .22); font-size: 10.5px; color: var(--ink-2); }
.cd .cita b { display: block; font-size: 9.5px; color: var(--c-d); }
.cd .sys { align-self: center; max-width: 92%; padding: 4px 10px; border-radius: 7px; background: rgba(238, 242, 245, .06); font: 500 10px/1.35 var(--mono); color: var(--ink-2); text-align: center; }
.cd .lk { display: inline-flex; align-items: center; gap: 5px; color: var(--c-a); text-decoration: underline; text-underline-offset: 2px; }
.cd .gc { padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .18); border: 1px solid var(--l); }
.cd .gh { display: flex; align-items: center; gap: 6px; padding: 0 2px 6px; border-bottom: 1px solid var(--l); margin-bottom: 2px; }
.cd .gh .ic { color: var(--ok); }
.cd .gh b { font-size: 11.5px; }
.cd .gh small { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }

/* ------------------------------------------------------------------ cartões, campos, rótulos */
.cd .k { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--s1); border: 1px solid var(--l); }
.cd .k-tight { gap: 5px; padding: 8px 10px; }
.cd .k-t { font: 600 12.5px/1.25 var(--sans); color: var(--ink); }
.cd .k-if { background: rgba(47, 224, 204, .07); border-color: rgba(47, 224, 204, .3); }
.cd .k-ok { background: rgba(127, 214, 160, .08); border-color: rgba(127, 214, 160, .32); }
.cd .k-ghost { opacity: .9; border-style: dashed; }
.cd .k-dash { border-style: dashed; border-color: rgba(232, 176, 75, .55); }
.cd .k-list { padding: 4px 10px; gap: 0; }
.cd .f { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 12px; }
.cd .f > span:first-child { font: 500 9.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cd .st { display: inline-flex; align-items: center; gap: 4px; width: max-content; padding: 3px 8px; border-radius: 6px; font: 500 10.5px/1.2 var(--mono); white-space: nowrap; background: rgba(238, 242, 245, .07); color: var(--ink-2); }
.cd .st .ic { width: 12px; height: 12px; }
.cd .st-if { background: rgba(47, 224, 204, .13); color: var(--if); }
.cd .st-ok { background: rgba(127, 214, 160, .14); color: var(--ok); }
.cd .st-warn { background: rgba(232, 176, 75, .14); color: var(--warn); }
.cd .st-al { background: rgba(239, 143, 125, .14); color: var(--al); }
.cd .t { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; font: 500 10px/1.4 var(--mono); white-space: nowrap; }
.cd .t .ic { width: 11px; height: 11px; }
.cd .t-a { background: rgba(239, 143, 125, .16); color: var(--al); }
.cd .t-b { background: rgba(143, 179, 255, .16); color: var(--c-a); }
.cd .t-c { background: rgba(232, 176, 75, .16); color: var(--warn); }
.cd .t-n { background: rgba(238, 242, 245, .07); color: var(--ink-2); border: 1px solid var(--l); }
.cd .av { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; font: 600 10.5px/1 var(--mono); color: #07101a; background: var(--c, var(--c-a)); }
.cd .av-s { width: 18px; height: 18px; font-size: 9px; }
.cd .av-g { width: 46px; height: 46px; font-size: 18px; }
.cd .bt { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--l2); font: 500 10.5px/1.2 var(--sans); color: var(--ink-2); white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.cd .bt .ic { width: 12px; height: 12px; }
.cd .bt-p, .cd .bt.on { background: var(--gc); border-color: var(--gc); color: #06121a; }
.cd .bt-al { border-color: rgba(239, 143, 125, .45); color: var(--al); }
.cd .ck { display: inline-grid; place-items: center; flex: none; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--l2); color: transparent; transition: background-color .25s, border-color .25s, color .25s; }
.cd .ck .ic { width: 11px; height: 11px; stroke-width: 3; }
.cd .ck.on { background: var(--gc); border-color: var(--gc); color: #06121a; }
.cd .sw { position: relative; flex: none; width: 30px; height: 17px; border-radius: 9px; background: rgba(238, 242, 245, .16); transition: background-color .3s; }
.cd .sw i { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #e9eef2; transition: transform .35s var(--ease-out); }
.cd .sw.on { background: var(--gc); }
.cd .sw.on i { transform: translateX(13px); }
.cd .bar { position: relative; flex: 1 1 auto; height: 6px; min-width: 40px; border-radius: 3px; background: rgba(238, 242, 245, .09); overflow: hidden; }
.cd .bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: var(--bc, var(--gc)); transform-origin: left center; }
.cd .seta { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cd .seta-b { transform: rotate(90deg); }
.cd .arq { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 10px; background: var(--s2); border: 1px solid var(--l); }
.cd .arq-i { display: grid; place-items: center; flex: none; width: 26px; height: 30px; border-radius: 5px; font: 700 7.5px/1 var(--mono); letter-spacing: .04em; color: #07101a; background: var(--af, #8fb3ff); }
.cd .arq-pdf { --af: #ef8f7d; } .cd .arq-xls { --af: #7fd6a0; } .cd .arq-doc { --af: #8fb3ff; } .cd .arq-ppt { --af: #e8b04b; } .cd .arq-img { --af: #b79cff; } .cd .arq-png { --af: #b79cff; }
.cd .arq-t { display: grid; min-width: 0; }
.cd .arq-t b { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd .arq-t small { font: 500 9px/1.3 var(--mono); letter-spacing: .04em; }
.cd .arq-g { flex-direction: column; padding: 12px 10px; text-align: center; }
.cd .arq-g .arq-i { width: 44px; height: 54px; font-size: 11px; }
.cd .arq-g .arq-t b { white-space: normal; }
.cd .mem { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 11px; background: color-mix(in srgb, var(--gc) 9%, var(--s1)); border: 1px solid color-mix(in srgb, var(--gc) 36%, transparent); }
.cd .mem > span { display: grid; gap: 1px; }
.cd .mem small { font: 500 9.5px/1.3 var(--mono); letter-spacing: .05em; }
.cd .sep { display: flex; align-items: center; gap: 8px; font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cd .sep::before, .cd .sep::after { content: ""; flex: 1; height: 1px; background: var(--l); }
.cd .tl { position: relative; display: grid; gap: 6px; padding-left: 14px; }
.cd .tl::before { content: ""; position: absolute; left: 3px; top: 5px; bottom: 5px; width: 1px; background: var(--l2); }
.cd .tl-i { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 11.5px; }
.cd .tl-i::before { content: ""; position: absolute; left: -14px; top: 5px; width: 7px; height: 7px; border-radius: 2px; background: var(--page); border: 1.5px solid var(--gc); }
.cd .tl-s .tl-i { grid-template-columns: 1fr; gap: 1px; }
.cd .sem { display: flex; gap: 4px; }
.cd .sem > * { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font: 500 9.5px/1 var(--mono); color: var(--ink-3); border: 1px solid var(--l); text-align: center; transition: background-color .3s, color .3s; }
.cd .sem > .on { background: color-mix(in srgb, var(--gc) 22%, transparent); border-color: color-mix(in srgb, var(--gc) 55%, transparent); color: var(--ink); }
.cd .sem-l { gap: 3px; }
.cd .sem-l em { width: auto; padding: 0 4px; height: 21px; font-size: 9px; }
.cd .abas { display: flex; gap: 4px; }
.cd .abas > * { padding: 4px 9px; border-radius: 7px; font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--l); white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.cd .abas > .on { background: color-mix(in srgb, var(--gc) 18%, transparent); border-color: color-mix(in srgb, var(--gc) 55%, transparent); color: var(--ink); }
.cd .seg { display: inline-flex; padding: 2px; border-radius: 8px; border: 1px solid var(--l); }
.cd .seg > * { padding: 3px 8px; border-radius: 6px; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; transition: background-color .3s, color .3s; }
.cd .seg > .on { background: color-mix(in srgb, var(--gc) 20%, transparent); color: var(--ink); }

/* painel (mock do navegador) */
.cd .pn { display: flex; flex-direction: column; min-width: 0; border-radius: 12px; background: #0b1520; border: 1px solid var(--l2); overflow: hidden; box-shadow: 0 16px 36px rgba(0, 0, 0, .3); }
.cd .pn-top { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--l); background: rgba(238, 242, 245, .03); font-size: 11px; }
.cd .pn-top .ro { margin-left: auto; }
.cd .pn-top .abas { margin-left: auto; }
.cd .pn-top .abas em { padding: 2px 7px; font-size: 9.5px; }
.cd .pn-top .bt { margin-left: auto; }
.cd .pn-c { display: grid; padding: 10px; min-height: 0; }
.cd .pn-s .pn-top { justify-content: center; }
.cd .pn-rows { display: grid; gap: 0; padding: 4px 10px; }
.cd .pr { padding: 8px 0; border-bottom: 1px solid var(--l); font-size: 11.2px; }
.cd .pr:last-child { border-bottom: 0; }
.cd .pr > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.cd .gico { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(127, 214, 160, .16); color: var(--ok); }
.cd .gico .ic { width: 13px; height: 13px; }
.cd .th { display: grid; place-items: center; width: 24px; height: 22px; border-radius: 6px; border: 1px solid var(--l); color: var(--ink-3); transition: background-color .3s, color .3s; }
.cd .th .ic { width: 12px; height: 12px; }
.cd .th.on { background: rgba(127, 214, 160, .2); border-color: rgba(127, 214, 160, .5); color: var(--ok); }

/* diagramas em SVG */
.cd .dg { display: block; width: 100%; height: auto; overflow: visible; }
.cd .dg text { font: 500 11px var(--sans); fill: var(--ink); }
.cd .dg .vt-if { fill: var(--if); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.cd .dg .vt-b { font-weight: 600; }
.cd .dg .vt-s { font: 500 9.5px var(--mono); fill: var(--ink-2); }
.cd .vl { fill: none; stroke: var(--l2); stroke-width: 1.4; }
.cd .vl-gc { stroke: color-mix(in srgb, var(--gc) 70%, transparent); stroke-dasharray: 3 3; }
.cd .vi { fill: rgba(47, 224, 204, .1); stroke: rgba(47, 224, 204, .5); }
.cd .vp { fill: var(--s1); stroke: var(--l2); }
.cd .vp-w { stroke: rgba(232, 176, 75, .7); }
.cd .vr { fill: color-mix(in srgb, var(--gc) 14%, var(--s1)); stroke: var(--gc); }
.cd .vok { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cd .vcob { fill: rgba(232, 176, 75, .16); stroke: rgba(232, 176, 75, .6); }

/* ------------------------------------------------------------------ por cena */
/* recorrente: cada regra é um botão; o mês e as repetições mudam com ela */
.cd .rgs { display: grid; gap: 4px; }
.cd .rg { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 5px 9px; border-radius: 8px; font-size: 11px; color: var(--ink-2); border: 1px solid var(--l); transition: background-color .3s, color .3s, border-color .3s; }
.cd .rg b { font-weight: 500; }
.cd .rg small { font: 500 8.5px/1.2 var(--mono); color: var(--ink-3); white-space: nowrap; }
.cd .rg.on { color: var(--ink); background: color-mix(in srgb, var(--gc) 16%, transparent); border-color: color-mix(in srgb, var(--gc) 55%, transparent); }
.cd .rg.on small { color: var(--gc); }
.cd .mes-d b { transition: background-color .35s var(--ease-out); }
.cd .rep-mais { border-style: dashed; }

/* dependente: linha do tempo (a próxima começa onde a anterior termina) */
.cd .dp2 { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: start; }
.cd .dp2-ns { display: grid; gap: 12px; padding-top: 2px; }
.cd .dp2-ns > .y { height: 30px; justify-content: center; }
.cd .dp2-ns b { font-size: 11.5px; }
.cd .dp2-tt { position: relative; display: grid; gap: 12px; }
.cd .dp2-t { position: relative; display: block; height: 30px; border-radius: 7px; background: rgba(238, 242, 245, .05); }
.cd .dp2-a { position: absolute; left: 0; top: 7px; height: 16px; width: 48%; border-radius: 5px; background: #cfc6bb; transform-origin: left center; }
.cd .dp2-b { position: absolute; left: 57%; right: 4%; top: 7px; height: 16px; border-radius: 5px; background: var(--gc); transform-origin: left center; }
.cd .dp2-cad { position: absolute; left: calc(48% + 6px); top: 7px; color: var(--ink); }
.cd .dp2-cad .ic { width: 16px; height: 16px; }
.cd .dp2-marco { position: absolute; left: 48%; top: -4px; bottom: 18px; width: 0; border-left: 1.5px dashed rgba(238, 242, 245, .7); transform-origin: top center; }
.cd .dp2-eixo { display: flex; justify-content: space-between; padding: 0 2px; }
.cd .dp2-eixo em { font: 500 9px/1 var(--mono); color: var(--ink-3); }

/* checklist: item marcado fica riscado */
.cd .ci:has(.ck.on) > span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(238, 242, 245, .35); }

/* etiquetas: filtro com botões */
.cd .chips { display: flex; gap: 4px; }
.cd .chips > * { opacity: .55; border: 1px solid transparent; transition: opacity .25s, border-color .25s; }
.cd .chips > .on { opacity: 1; border-color: currentColor; }
.cd .er { transition: opacity .3s; }

/* setor: tocar numa pessoa tira ou põe no aviso */
.cd .sp { transition: opacity .3s; }
.cd .sp .rs-l { display: none; left: 18%; right: 18%; top: auto; bottom: 12px; }
.cd .sp.on { opacity: .35; }
.cd .sp.on .rs-l { display: block; }
.cd .sp.on .sp-ok, .cd .sp.on .sp-w { display: none; }

/* aviso na hora / cobrança no grupo: com a chave desligada, os avisos apagam */
.cd-nahora:has(.sw:not(.on)) :is(.ev, .b-i) { opacity: .25; transition: opacity .3s; }
.cd-cobra:has(.sw:not(.on)) .gc .b-i { opacity: .25; transition: opacity .3s; }

/* mapa da memória */
.cd .mapa { display: block; width: 100%; height: auto; overflow: visible; }
.cd .ml { stroke: rgba(238, 242, 245, .16); stroke-width: 1.2; transition: stroke .3s, opacity .3s; }
.cd .ml.viz { stroke: color-mix(in srgb, var(--gc) 85%, transparent); stroke-width: 1.6; }
.cd .mn { transition: opacity .3s; }
.cd .mn-h { fill: transparent; }
.cd .mn-c { fill: color-mix(in srgb, var(--m) 30%, #0b1520); stroke: var(--m); stroke-width: 1.5; transition: fill .3s, stroke-width .3s; }
.cd .mn text { font: 500 9.5px var(--sans); fill: var(--ink-2); pointer-events: none; }
.cd .mapa.tem-sel .mn:not(.sel):not(.viz) { opacity: .45; }
.cd .mn.sel .mn-c { fill: var(--m); stroke-width: 3; }
.cd .mn.sel text, .cd .mn.viz text { fill: var(--ink); font-weight: 600; }
.cd .mn.oculto, .cd .ml.oculto { opacity: .06 !important; pointer-events: none; }
.cd .mp { gap: 4px; }
.cd .rg:not(.on) small { display: none; }
.cd .mp-f { font-size: 11px; color: var(--ink-2); }
.cd .mp-l { display: flex; flex-wrap: wrap; gap: 3px; }
.cd .mleg { display: grid; gap: 2px; }
.cd .mleg-b { display: flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 6px; font-size: 10px; color: var(--ink-3); transition: color .25s, background-color .25s; }
.cd .mleg-b i { width: 9px; height: 9px; border-radius: 3px; border: 1.5px solid var(--m); flex: none; }
.cd .mleg-b.on { color: var(--ink); }
.cd .mleg-b.on i { background: var(--m); }
.cd .mes { display: grid; gap: 4px; }
.cd .mes-s, .cd .mes-d { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cd .mes-s em { font: 500 9px/1 var(--mono); color: var(--ink-3); text-align: center; }
.cd .mes-d b { height: 13px; border-radius: 3px; background: rgba(238, 242, 245, .06); }
.cd .mes-d b.o { background: var(--gc); }
.cd .mes-s { display: grid; }
.cd .mes.mes-s .mes-d b { height: 22px; }
.cd .rep { padding: 4px 8px; border-radius: 8px; background: var(--s1); border: 1px solid var(--l); font-size: 11px; }
.cd .rep > span:nth-child(2) { flex: 1; }

/* dependente */
.cd .dp-l { gap: 10px; }
.cd .dp-n { width: 118px; flex: none; font-size: 11.5px; color: var(--ink-2); }
.cd .dp-tr { position: relative; flex: 1; height: 24px; border-radius: 7px; background: rgba(238, 242, 245, .05); border: 1px solid var(--l); display: flex; align-items: center; padding: 0 6px; gap: 6px; }
.cd .dp-b { display: block; height: 10px; border-radius: 4px; transform-origin: left center; }
.cd .dp-a { width: 100%; background: var(--ok); }
.cd .dp-bb { flex: 1; background: var(--gc); }
.cd .dp-cad .ic { width: 14px; height: 14px; color: var(--ink-2); }
.cd .dp-marco { align-self: center; width: 1.5px; height: 14px; margin: -6px 0; background: var(--gc); transform-origin: top center; }

/* checklist */
.cd .ci { gap: 7px; font-size: 11.5px; padding: 2px 0; }

/* etiquetas */
.cd .er { justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--l); font-size: 11.5px; }
.cd .er:last-child { border-bottom: 0; }
.cd .filtro { align-self: flex-start; gap: 7px; padding: 5px 9px; border-radius: 9px; background: var(--s2); border: 1px solid var(--l2); font-size: 11px; }

/* quadros */
.cd .quadro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; border-radius: 10px; background: var(--s1); border: 1px solid var(--l); }
.cd .qc { display: grid; gap: 5px; align-content: start; }
.cd .qc b { font: 500 9px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.cd .qk { display: block; height: 26px; border-radius: 6px; background: var(--s3); border: 1px solid var(--l); }
.cd .qk.al { border-color: rgba(239, 143, 125, .6); background: rgba(239, 143, 125, .12); }
.cd .quadro-s { background: none; border: 0; padding: 0; }

/* conferência */
.cd .sheet { border-radius: 10px; background: var(--s1); border: 1px solid var(--l); overflow: hidden; }
.cd .sh-h { padding: 6px; border-bottom: 1px solid var(--l); }
.cd .sh-h .arq { background: none; border: 0; padding: 0; }
.cd .sh-c { position: relative; display: grid; gap: 0; padding: 4px 8px 6px; }
.cd .sh-r { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--l); }
.cd .sh-r i { height: 6px; width: var(--w); border-radius: 3px; background: rgba(238, 242, 245, .18); }
.cd .scan { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gc) 30%, transparent), transparent); opacity: 0; pointer-events: none; }

/* rotina por evento */
.cd .raio { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--gc) 18%, transparent); color: var(--gc); }

/* modelos */
.cd .mdls { display: grid; gap: 5px; align-content: start; }
.cd .mdl { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--l); font-size: 11px; transition: background-color .3s, border-color .3s; }
.cd .mdl .ic { width: 12px; height: 12px; color: var(--ink-3); }
.cd .mdl.on { background: color-mix(in srgb, var(--gc) 15%, transparent); border-color: color-mix(in srgb, var(--gc) 55%, transparent); }
.cd .mdl.on .ic { color: var(--gc); }

/* lembretes */
.cd .lb { padding: 7px 0; border-bottom: 1px solid var(--l); gap: 10px; }
.cd .lb:last-child { border-bottom: 0; }
.cd .lb-i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--gc) 14%, transparent); color: var(--gc); flex: none; }
.cd .sino { color: var(--c-b); display: inline-grid; }

/* horário */
.cd .hr { display: grid; gap: 6px; }
.cd .hr-h, .cd .hr-l { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: center; }
.cd .hr-hs { display: flex; justify-content: space-between; font: 500 9px/1 var(--mono); color: var(--ink-3); }
.cd .hr-n { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.cd .hr-t { position: relative; height: 20px; border-radius: 6px; background: rgba(238, 242, 245, .05); }
.cd .hr-j { position: absolute; top: 3px; bottom: 3px; left: var(--a); width: var(--b); border-radius: 4px; background: color-mix(in srgb, var(--gc) 26%, transparent); border: 1px solid color-mix(in srgb, var(--gc) 60%, transparent); transform-origin: left center; }
.cd .hr-t u { position: absolute; top: 2px; bottom: 2px; left: var(--x); width: 2px; border-radius: 1px; background: var(--ink); transform-origin: bottom center; }
.cd .esc { padding: 6px 9px; border-radius: 9px; background: rgba(232, 176, 75, .08); border: 1px solid rgba(232, 176, 75, .3); font-size: 11.5px; }

/* aviso de conclusão */
.cd .cn { position: relative; height: 196px; }
.cd .dg-abs { position: absolute; inset: 0; }
.cd .cn-f { position: absolute; left: 6px; top: 72px; width: 172px; }
.cd .cn-d { position: absolute; left: 248px; width: 132px; display: flex; gap: 6px; align-items: flex-start; padding: 6px 8px; border-radius: 10px; background: var(--s1); border: 1px solid var(--l); }
.cd .cn-d > span { display: grid; gap: 1px; min-width: 0; }
.cd .cn-d b { font-size: 11px; }
.cd .cn-d small { font-size: 9.5px; line-height: 1.3; color: var(--ink-2); }

/* aviso do gestor */
.cd-gestor .sem { gap: 3px; }
.cd-gestor .sem > * { width: 17px; height: 19px; }
.cd-mapa .mapa { max-height: 250px; }
.cd .relogio { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--s1); border: 1px solid var(--l); }
.cd .relogio .ic { width: 20px; height: 20px; }
.cd .relogio b { font: 600 26px/1 var(--mono); letter-spacing: -.02em; }

/* setor */
.cd .sps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cd .sp { position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 9px; font-size: 10.5px; }
.cd .sp-fora .rs-l { left: 18%; right: 18%; top: auto; bottom: 12px; }
.cd .sp-ok, .cd .sp-w { position: absolute; top: 2px; right: 8px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--ok); color: #07101a; font: 700 9px/1 var(--mono); }
.cd .sp-ok .ic { width: 10px; height: 10px; stroke-width: 3; }
.cd .sp-w { background: rgba(238, 242, 245, .16); color: var(--ink-2); }

/* aviso na hora */
.cd .ev { gap: 8px; font-size: 11px; color: var(--ink-2); }

/* conversa conduzida */
.cd .trocas { display: flex; gap: 3px; }
.cd .trocas i { width: 16px; height: 6px; border-radius: 3px; background: rgba(238, 242, 245, .12); }
.cd .trocas i.on { background: var(--gc); }

/* memória: plateia */
.cd .pl { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; border-radius: 14px; border: 1px solid var(--l2); }
.cd .pl-1 { height: 100%; background: rgba(239, 143, 125, .05); border-color: rgba(239, 143, 125, .45); }
.cd .pl-2 { flex: 1; background: rgba(143, 179, 255, .05); border-color: rgba(143, 179, 255, .45); }
.cd .pl-3 { flex: 1; background: rgba(232, 176, 75, .06); border-color: rgba(232, 176, 75, .5); }
.cd .pl-r { display: flex; align-items: center; gap: 6px; font: 500 9.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cd .pl-r .ic { width: 12px; height: 12px; }
.cd .fato { align-self: flex-start; padding: 4px 9px; border-radius: 7px; background: var(--s2); border: 1px solid var(--l); font-size: 11px; }

/* esquecer */
.cd .lixo { display: grid; justify-items: center; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--s1); border: 1px dashed var(--l2); }

/* ficha */
.cd .fi { display: grid; gap: 4px; padding-left: 0; list-style: none; }
.cd .fi li { position: relative; padding-left: 12px; font-size: 11.5px; color: var(--ink-2); }
.cd .fi li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 1.5px; background: var(--gc); }

/* buscar */
.cd .pg { display: grid; gap: 5px; padding: 4px 2px; }
.cd .pg i { display: block; height: 5px; width: var(--w); border-radius: 3px; background: rgba(238, 242, 245, .14); }
.cd .pg .pg-hl { height: 8px; background: color-mix(in srgb, var(--gc) 45%, transparent); transform-origin: left center; }

/* grupos */
.cd .avs { gap: 3px; flex-wrap: wrap; }
.cd .tipos { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.cd .tipos span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--s2); border: 1px solid var(--l); font-size: 11px; }
.cd .tipos .ic { color: var(--ok); }
.cd .tipos + .x .mem { flex: 1; }
.cd .sg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 10px; }
.cd .sg-eixo { position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--l2); transform-origin: left center; }
.cd .sg-f { position: relative; display: grid; gap: 2px; padding: 7px 9px; border-radius: 10px; background: var(--s1); border: 1px solid var(--l); font-size: 11px; }
.cd .sg-f::before { content: ""; position: absolute; left: 50%; top: -14px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 2px; background: var(--page); border: 1.5px solid var(--gc); }
.cd .nivel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; border-radius: 9px; border: 1px solid var(--l); }
.cd .nivel > * { padding: 6px 2px; border-radius: 6px; text-align: center; font-size: 10.5px; color: var(--ink-3); transition: background-color .35s, color .35s; }
.cd .nivel > .on { background: color-mix(in srgb, var(--gc) 22%, transparent); color: var(--ink); }
.cd .cmds { flex-wrap: wrap; gap: 4px; margin-top: 2px; }

/* acompanhamento */
.cd .kpi { display: grid; gap: 0; }
.cd .kpi b { font: 600 22px/1.05 var(--mono); }
.cd .kpi-al b { color: var(--al); } .cd .kpi-ok b { color: var(--ok); }
.cd .anel { width: 70px; height: 70px; transform: rotate(-90deg); }
.cd .anel text { transform: rotate(90deg); transform-origin: 40px 40px; font: 600 14px var(--mono); fill: var(--ink); }
.cd .an-t { fill: none; stroke: rgba(238, 242, 245, .1); stroke-width: 8; }
.cd .an-v { fill: none; stroke: var(--gc); stroke-width: 8; stroke-linecap: round; }
.cd .big { font: 600 20px/1 var(--mono); }
.cd .bl { gap: 8px; font-size: 11px; }
.cd .bn { width: 62px; flex: none; color: var(--ink-2); }
.cd .rl { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid rgba(238, 242, 245, .08); font-size: 11.5px; }
.cd .rl em { color: var(--ink-2); }
.cd .rl-p { display: block; margin-top: 6px; color: var(--ink); }
.cd-resumo .b-i > b:not(.b-n) { display: block; margin-bottom: 3px; }
.cd .pts { display: grid; gap: 3px; }
.cd .pts span { display: flex; align-items: baseline; gap: 7px; padding: 3px 8px; border-radius: 6px; background: var(--s1); border: 1px solid var(--l); font-size: 11px; }
.cd-controlar .bt { padding: 3px 6px; font-size: 9.8px; gap: 3px; }
.cd-controlar .k .x { gap: 4px; flex-wrap: nowrap; }
.cd-analisa .st { white-space: normal; width: auto; }
.cd-quadros .abas > * { white-space: nowrap; padding: 4px 7px; font-size: 10px; }
.cd-modelos .f, .cd-rcriar .f { grid-template-columns: 58px minmax(0, 1fr); }
.cd-acoes .cmds { flex-wrap: nowrap; gap: 4px; }
.cd-acoes .cmds .t { font: 500 10px/1.4 var(--sans); padding: 2px 6px; }
.cd .mh { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cd .mh > span { display: grid; }
.cd .mh-c { position: relative; display: grid; gap: 3px; width: 100%; padding: 8px 28px 8px 10px; border-radius: 10px; background: var(--s1); border: 1px solid var(--l); font-size: 11.5px; transition: border-color .3s, background-color .3s; }
.cd .mh-c.on { border-color: rgba(127, 214, 160, .45); background: rgba(127, 214, 160, .06); }
.cd .mh-c:not(.on) .mh-ok { opacity: 0; }
.cd .mh-c .ro { display: flex; align-items: center; gap: 6px; }
.cd .mh-ok { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; background: var(--ok); color: #07101a; }
.cd .mh-ok .ic { width: 11px; height: 11px; stroke-width: 3; }
.cd .pdf { display: grid; gap: 7px; padding: 12px; border-radius: 6px; background: #f2f4f6; color: #1b2733; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.cd .pdf-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 5px; border-bottom: 1px solid #d5dbe1; font-size: 11px; }
.cd .pdf-h .ro { color: #6b7783; }
.cd .pdf-l { display: grid; gap: 4px; }
.cd .pdf-l i, .cd .pdf-ok i { display: block; height: 4px; width: var(--w); border-radius: 2px; background: #c4ccd4; }
.cd .pdf-ok { display: grid; gap: 4px; padding: 6px; border-radius: 5px; background: #dff3e6; }
.cd .pdf-ok .ro { color: #1f8a4c; font-size: 8.5px; }
.cd .pdf-ok i { background: #8cc9a2; }
.cd .pdf-g { display: flex; align-items: flex-end; gap: 8px; height: 42px; padding: 0 6px; border-bottom: 1px solid #d5dbe1; }
.cd .pdf-g i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #00a593; transform-origin: bottom center; }
.cd .pdf-n { display: flex; gap: 8px; padding: 0 6px; }
.cd .pdf-n em { flex: 1; text-align: center; font: 500 8px/1 var(--mono); color: #6b7783; }
.cd .aj { gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--l); font-size: 11.5px; }
.cd .aj:last-child { border-bottom: 0; }
.cd .aj > span:nth-child(2) { flex: 1; }
.cd .cod { display: flex; gap: 4px; justify-content: center; }
.cd .cod i { display: grid; place-items: center; width: 22px; height: 28px; border-radius: 6px; border: 1px solid var(--l2); font: 600 13px/1 var(--mono); font-style: normal; background: var(--s2); }
.cd .lg { display: grid; justify-items: center; align-content: center; gap: 9px; padding: 12px 10px; min-height: 150px; }
.cd .lg .ci { justify-self: stretch; }
.cd .qv { display: grid; align-content: start; gap: 6px; min-height: 136px; }
.cd .temas { display: flex; gap: 5px; }
.cd .temas > * { width: 22px; height: 22px; border-radius: 6px; background: var(--t); border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); transition: border-color .3s, transform .3s var(--ease-out); }
.cd .temas > .on { border-color: #eef2f5; transform: translateY(-2px); }
.cd .pvs { --fu: #0e1824; --pi: rgba(255, 255, 255, .82); }
.cd .pvs.claro { --fu: #eef1f4; --pi: rgba(12, 22, 32, .78); }
.cd .pv { transition: background-color .4s; }
.cd .pvs { height: 150px; }
.cd .pv { display: grid; grid-template-columns: 70px 1fr; border-radius: 12px; overflow: hidden; background: var(--fu); border: 1px solid var(--l2); }
.cd .pv-l { display: grid; align-content: start; gap: 6px; padding: 12px 10px; background: color-mix(in srgb, var(--pi) 5%, transparent); }
.cd .pv-l i { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--t) 80%, transparent); }
.cd .pv-l i + i { background: color-mix(in srgb, var(--pi) 18%, transparent); }
.cd .pv-c { display: grid; align-content: start; gap: 8px; padding: 12px; }
.cd .pv-c b { height: 10px; width: 50%; border-radius: 3px; background: var(--pi); }
.cd .pv-c em { height: 26px; border-radius: 7px; background: color-mix(in srgb, var(--pi) 6%, transparent); border: 1px solid color-mix(in srgb, var(--t) 50%, transparent); }
.cd .pv-c u { height: 20px; width: 40%; border-radius: 7px; background: var(--t); }

/* agente */
.cd .arqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cd .torto { transform: rotate(-2.5deg); }
.cd .cz { display: grid; gap: 4px; }
.cd .cz-g { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; height: 92px; padding: 0 6px; border-bottom: 1px solid var(--l2); }
.cd .cz-g i { grid-row: 1; height: var(--h); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--gc) 55%, transparent); transform-origin: bottom center; }
.cd .cz-g i:nth-child(3) { background: rgba(239, 143, 125, .7); }
.cd .cz-g u { grid-row: 1; align-self: end; height: var(--h); border-top: 2px dashed var(--ink); margin: 0 -3px; }
.cd .cz-g u:nth-of-type(1) { grid-column: 1; } .cd .cz-g u:nth-of-type(2) { grid-column: 2; } .cd .cz-g u:nth-of-type(3) { grid-column: 3; } .cd .cz-g u:nth-of-type(4) { grid-column: 4; }
.cd .cz-g i:nth-of-type(1) { grid-column: 1; } .cd .cz-g i:nth-of-type(2) { grid-column: 2; } .cd .cz-g i:nth-of-type(3) { grid-column: 3; } .cd .cz-g i:nth-of-type(4) { grid-column: 4; }
.cd .cz-n { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 6px; }
.cd .cz-n em { text-align: center; font: 500 9px/1 var(--mono); color: var(--ink-3); }
.cd .anx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cd .anx .arq { flex-direction: column; align-items: flex-start; }
.cd .anx .arq-t b { white-space: normal; }
.cd .mini-g { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.cd .mini-g i { width: 4px; height: var(--h); background: #07101a; border-radius: 1px; }
