/* Painel: Resumo, Insights, Analista e Diretoria. Só tokens de demo.css; as cores próprias são as das cadeiras da
   Diretoria e o desenho dos rostos (ilustração, iguais nos dois temas). */
:root {
  --dr-ops: #9a4a14; --dr-ver: #5f7d3a; --dr-com: #2e7d4f; --dr-fin: #3f5f8a; --dr-ceo: #6c4a8a;
  --dr-pele-1: #f1c9a5; --dr-pele-2: #e0ac85; --dr-pele-3: #b97c55; --dr-pele-4: #7d4f33;
  --dr-cab-1: #3b2417; --dr-cab-2: #1f1510; --dr-cab-3: #8a5a2b; --dr-cab-4: #5b4636;
  --dr-traco: #2a1b12; --dr-roupa: rgba(0, 0, 0, .22);
}

/* ================= Resumo ================= */
.int-per { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; }
.int-per-rot { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.int-per .chips { flex: 1 1 auto; }
.int-per-datas { display: flex; flex-wrap: wrap; gap: 8px; }
.int-per-datas label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.int-per-datas .inp { width: auto; height: 32px; padding: 0 8px; font-size: 13px; }
.int-per-txt { flex-basis: 100%; font-size: 12.5px; color: var(--ink-3); }
.int-var { white-space: nowrap; font-weight: var(--w-medium); }
.int-var i { font-style: normal; font-size: 9px; margin-right: 3px; vertical-align: 1px; }
.int-var.sobe { color: var(--pos); } .int-var.desce { color: var(--neg); }
.neg { color: var(--neg); } .pos { color: var(--pos); }

.int-hoje { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
@media (max-width: 1080px) { .int-hoje { grid-template-columns: minmax(0, 1fr); } }
.int-hoje > .caixa + .caixa { margin-top: 0; }
.int-torra { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; border-left: 3px solid var(--accent); }
@media (min-width: 1400px) { .int-torra { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.int-eyebrow { display: flex; align-items: center; gap: 6px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.int-eyebrow svg { width: 15px; height: 15px; }
.int-torra-n { margin: 10px 0 6px; font-size: clamp(28px, 3.4vw, 38px); font-weight: var(--w-display); letter-spacing: -.03em; line-height: 1.1; }
.int-torra-n small { font-size: 15px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.int-torra-s { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-bottom: 12px; }
.int-torra .acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.int-torra-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.int-torra-l li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 84px; gap: 6px 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--hair); }
.int-torra-l li:first-child { border-top: 0; padding-top: 0; }
.int-torra-l .cafe-cel b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-torra-l .cafe-cel > span { min-width: 0; }
.int-torra-l .cafe-cel small { display: block; font-size: 12px; color: var(--ink-3); }
.int-torra-c { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.int-torra-v { text-align: right; font-size: 14.5px; font-weight: var(--w-strong); }
.int-torra-v small { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.int-torra-al { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--warn); }
.int-torra-al svg { width: 14px; height: 14px; }
@media (max-width: 480px) { .int-torra-l li { grid-template-columns: minmax(0, 1fr) auto; } .int-torra-c { grid-column: 1; grid-row: 2; flex-direction: row; align-items: center; } .int-torra-c .barrinha { width: 70px; } .int-torra-v { grid-row: 1 / span 2; grid-column: 2; } }

.int-tar ul { list-style: none; margin: 10px 0 0; padding: 0; }
.int-tar li, .dr-tar li { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--hair); }
.int-tar li:first-child { border-top: 0; }
.int-tar li a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.int-tar li a:hover b { color: var(--accent-ink); }
.int-tar li a > span:nth-child(2) { flex: 1; min-width: 0; }
.int-tar b { display: block; font-size: 13.5px; font-weight: var(--w-strong); }
.int-tar small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.int-tar-b { display: block; }
.int-tar-ck { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--hair-2); color: transparent; background: var(--paper); }
.int-tar-ck svg { width: 15px; height: 15px; }
.int-tar-ck:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink-3); }
.int-tar-ck[aria-pressed="true"], .int-tar li.ok .int-tar-ck { background: var(--pos-bg); color: var(--pos); box-shadow: none; }
.int-tar-ck[disabled] { cursor: default; }
.int-tar li.feito b, .int-tar li.ok b { color: var(--ink-3); }
.int-tar li.feito b { text-decoration: line-through; }
.int-tar-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--paper-2); color: var(--ink-2); }
.int-tar li.aberto .int-tar-ic { background: var(--accent-soft); color: var(--accent-ink); }
.int-tar-ic svg { width: 16px; height: 16px; }
.int-tar-n { min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: var(--w-strong); background: var(--warn-bg); color: var(--warn); }
.int-tar-ok { font-size: 11.5px; color: var(--pos); }

.int-fr-top { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 12px; }
.int-fr-top b { display: block; font-size: 22px; font-weight: var(--w-display); letter-spacing: -.02em; }
.int-fr-top small { font-size: 12px; color: var(--ink-3); }
.int-fr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.int-fr li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) 40px; gap: 10px; align-items: center; }
.int-fr-n b { display: block; font-size: 13px; font-weight: var(--w-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.int-fr-n small { display: block; font-size: 11.5px; color: var(--ink-3); }
.int-fr-d { text-align: right; font-size: 12.5px; color: var(--ink-2); }
.int-cl-t { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.int-cl-t b { color: var(--ink); }
.int-cl-dias { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.int-cl-dias > div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); }
.int-cl-dias > div.hoje small { color: var(--accent-ink); font-weight: var(--w-strong); }
.int-cl-dias b { font-size: 12.5px; color: var(--ink); }
.int-cl-b { width: 100%; height: 46px; display: flex; align-items: flex-end; background: var(--paper-2); border-radius: 6px; overflow: hidden; }
.int-cl-b i { display: block; width: 100%; background: var(--barra-hover); border-radius: 4px 4px 0 0; }

/* ================= Insights ================= */
.int-achs { margin-bottom: 22px; }
.int-achs > .caixa-tit h2 svg { color: var(--accent-ink); }
.int-achs .chips { margin-bottom: 14px; }
.int-ach-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
@media (max-width: 480px) { .int-ach-g { grid-template-columns: minmax(0, 1fr); } }
.int-ach { display: flex; flex-direction: column; gap: 8px; background: var(--cartao); border-radius: var(--r-3); box-shadow: var(--ring); padding: 16px; border-top: 3px solid var(--pos); min-width: 0; }
.int-ach.atencao { border-top-color: var(--warn); } .int-ach.alerta { border-top-color: var(--neg); }
.int-ach-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.int-ach-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.int-ach-ic svg { width: 17px; height: 17px; }
.int-ach h3 { font-size: 15px; font-weight: var(--w-strong); letter-spacing: -.01em; line-height: 1.3; }
.int-ach-n b { display: block; font-size: 26px; font-weight: var(--w-display); letter-spacing: -.02em; line-height: 1.15; }
.int-ach-n small { font-size: 12.5px; color: var(--ink-3); }
.int-ach-p { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.int-ach-p b { color: var(--ink); }
.int-ach-l { display: block; font: 500 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.int-ach-a { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.int-ach-a .btn svg { width: 14px; height: 14px; }
.int-ach-q { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--accent-ink); font-weight: var(--w-medium); margin-left: auto; }
.int-ach-q svg { width: 14px; height: 14px; }
.int-ach-q:hover { text-decoration: underline; }
.int-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.int-3 > .caixa + .caixa { margin-top: 0; }
@media (max-width: 1080px) { .int-3 { grid-template-columns: minmax(0, 1fr); } }
.grade-2i.bloco, .caixa.bloco { margin-top: 16px; }
.grade-2i > .caixa + .caixa { margin-top: 0; }
.int-cli { display: flex; flex-direction: column; }
.int-cli a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hair); font-size: 13px; }
.int-cli a:first-child { border-top: 0; }
.int-cli a > b:first-child { color: var(--ink-3); font-size: 12px; }
.int-cli span b { display: block; font-weight: var(--w-strong); }
.int-cli small { color: var(--ink-3); font-size: 12px; }
.int-cli a:hover span b { color: var(--accent-ink); }

/* ================= Analista ================= */
.anl { background: var(--cartao); border-radius: var(--r-3); box-shadow: var(--ring); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.anl-bar { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.anl-bar b { color: var(--ink); }
.anl-bar .selo-ex { margin-left: auto; }
.anl-bd { position: relative; min-width: 0; }
.anl[data-modo="home"] #anlResp, .anl[data-modo="resp"] #anlHome { display: none; }
.anl-home { padding: 22px 18px 20px; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.anl-oi { font-size: clamp(21px, 2.6vw, 28px); font-weight: var(--w-display); letter-spacing: -.02em; line-height: 1.2; }
.anl-oi span { color: var(--ink-3); }
.anl-box { display: block; background: var(--paper); border: 1px solid var(--hair-2); border-radius: 16px; padding: 14px 14px 10px; box-shadow: 0 10px 28px -16px rgba(21, 16, 12, .28); }
.anl-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 135, 68, .2); }
.anl-campo { display: block; width: 100%; border: 0; background: transparent; font-size: 15px; color: var(--ink); padding: 0 0 22px; }
.anl-ft { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 12px; color: var(--ink-3); }
.anl-baixo { padding: 10px 12px 8px; }
.anl-baixo .anl-campo { padding-bottom: 8px; }
.anl-campo:focus { outline: none; }
.anl-env { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-ink); color: #fff; flex: none; }
.anl-env svg { width: 16px; height: 16px; stroke-width: 2.2; transform: rotate(-90deg); }   /* a seta de enviar aponta para cima, como no RodeAqui */
.anl-chips, .anl-favs, .anl-sug { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.anl-chips button, .anl-favs button, .anl-sug button, .anl-temas button, .anl-menu-g button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 13px; color: var(--ink-2); background: var(--paper); text-align: left; line-height: 1.3; }
.anl-chips button:hover, .anl-favs button:hover, .anl-sug button:hover, .anl-temas button:hover, .anl-menu-g button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.anl-chips svg, .anl-sug svg { width: 15px; height: 15px; color: var(--accent-ink); }
.anl-favs small, .anl-fixas > small, .anl-sub, .anl-temas small, .anl-menu-g small { display: flex; align-items: center; gap: 5px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.anl-favs small { flex-basis: 100%; }
.anl-favs svg, .anl-fixas > small svg { width: 12px; height: 12px; color: var(--accent-ink); }
.anl-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .anl-kpis { grid-template-columns: minmax(0, 1fr); } }
.anl-kpis a { display: flex; flex-direction: column; gap: 2px; padding: 13px 15px; border-radius: var(--r-2); background: var(--sup-1); box-shadow: inset 0 0 0 1px var(--hair); min-width: 0; }
.anl-kpis a:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.anl-kpis small { font-size: 12px; color: var(--ink-3); }
.anl-kpis b { font-size: 23px; font-weight: var(--w-display); letter-spacing: -.02em; }
.anl-kpis em { font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.anl-var { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: var(--w-medium); }
.anl-var svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.anl-var.sobe { color: var(--pos); } .anl-var.desce { color: var(--neg); }
.anl-fixas { display: flex; flex-direction: column; gap: 8px; }
.anl-fixas em { font-style: normal; text-transform: none; letter-spacing: 0; font-family: var(--font); }
.anl-fx-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.anl-fx { position: relative; border-radius: var(--r-2); box-shadow: inset 0 0 0 1px var(--hair-2); background: var(--paper); }
.anl-fx-a { display: flex; flex-direction: column; gap: 2px; padding: 12px 34px 12px 14px; width: 100%; text-align: left; }
.anl-fx-a small { font-size: 12px; color: var(--ink-3); }
.anl-fx-a b { font-size: 19px; font-weight: var(--w-display); }
.anl-fx-a em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.anl-fx-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-3); }
.anl-fx-x svg { width: 14px; height: 14px; }
.anl-fx-x:hover { background: var(--paper-2); color: var(--ink); }
.anl-card { border-radius: var(--r-3); box-shadow: inset 0 0 0 1px var(--hair); border-left: 3px solid var(--accent); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.anl-card-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.anl-card-top time { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.anl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px var(--pos-bg); }
.anl-card p, .anl-lt-g p { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.45; }
.anl-card p svg, .anl-lt-g p svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.anl-card p.ok svg, .anl-lt-g p.ok svg { color: var(--pos); } .anl-card p.al svg, .anl-lt-g p.al svg { color: var(--warn); }
.anl-sub em { font-style: normal; background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 1px 6px; }
.anl-ac { display: flex; flex-wrap: wrap; gap: 6px; }
.anl-ac a { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: var(--w-medium); }
.anl-ac a:hover { text-decoration: underline; }
.anl-leitura { border-radius: var(--r-3); box-shadow: inset 0 0 0 1px var(--hair); padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--sup-1); scroll-margin-top: 90px; }
.anl-leitura.vazia p { font-size: 13.5px; color: var(--ink-2); }
.anl-leitura.vazia .btn { align-self: flex-start; }
.anl-lt-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.anl-lt-top svg { width: 16px; height: 16px; color: var(--accent-ink); }
.anl-lt-top span { font-size: 12.5px; color: var(--ink-3); }
.anl-lt-top .btn { margin-left: auto; }
.anl-lt-v { font-size: 14.5px; line-height: 1.55; }
.anl-lt-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.anl-lt-g > div { display: flex; flex-direction: column; gap: 7px; }
@media (max-width: 760px) { .anl-lt-g { grid-template-columns: minmax(0, 1fr); } }
.anl-lt-p { margin: 0; padding-left: 20px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.anl-obs { font-size: 12px; color: var(--ink-3); }
.anl-temas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.anl-temas > div, .anl-menu-g > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.anl-todas { align-self: center; font-size: 13.5px; font-weight: var(--w-medium); color: var(--accent-ink); padding: 8px 14px; border-radius: 999px; }
.anl-todas:hover { background: var(--accent-soft); }
.anl-todas span { color: var(--ink-3); }
.anl-menu { position: absolute; inset: 0; z-index: 5; background: var(--cartao); display: flex; flex-direction: column; overflow: hidden; }
.anl-menu[hidden] { display: none; }
.anl-menu-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--hair); }
.anl-menu-hd span { color: var(--ink-3); font-weight: 400; }
.anl-menu-hd button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; }
.anl-menu-hd button:hover { background: var(--paper-2); }
.anl-menu-hd svg { width: 16px; height: 16px; }
.anl-menu-g { flex: 1; overflow-y: auto; padding: 16px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; align-content: start; }
.anl-menu-pe { padding: 12px 18px; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--ink-3); }
.anl[data-modo="home"] .anl-bd { min-height: 0; }
.anl[data-modo="resp"] .anl-bd, .anl-menu:not([hidden]) { min-height: 520px; }
.anl-resp { display: flex; flex-direction: column; height: clamp(520px, calc(100svh - 230px), 860px); }
.anl-tit { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--hair); min-width: 0; }
.anl-tit b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.anl-volta { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.anl-volta:hover { background: var(--paper-2); }
.anl-volta svg { width: 18px; height: 18px; }
.anl-conv { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: flex; flex-direction: column; gap: 22px; }
.anl-troca { display: flex; flex-direction: column; gap: 12px; }
.anl-eu { align-self: flex-end; max-width: 82%; }
.anl-eu span { display: block; background: var(--ink); color: var(--paper); padding: 9px 14px; border-radius: 16px 16px 4px 16px; font-size: 14px; }
.anl-ia { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.anl-ia > .anl-av { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--night); color: var(--accent-glow); flex: none; }
.anl-ia > .anl-av svg { width: 16px; height: 16px; }
.anl-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.anl-h { font: 500 10.5px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.anl-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.anl-big { font-size: clamp(26px, 3.2vw, 34px); font-weight: var(--w-display); letter-spacing: -.03em; line-height: 1.1; animation: entra var(--d-lg) var(--e-out) both; overflow-wrap: anywhere; }
.anl-n small { font-size: 13px; color: var(--ink-2); }
.anl-graf { display: flex; flex-direction: column; gap: 6px; }
.anl-hb { display: grid; grid-template-columns: minmax(80px, 150px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; }
.anl-hb span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anl-hb i { position: relative; height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.anl-hb u { position: absolute; top: 0; bottom: 0; left: var(--l, 0); width: var(--w); border-radius: inherit; background: var(--barra-hover); text-decoration: none; transform-origin: left; animation: cresce var(--d-xl) var(--e-out) both; }
.anl-hb.hi u, .anl-hb.tot u { background: var(--accent); }
.anl-hb.hi span, .anl-hb.hi b { color: var(--ink); font-weight: var(--w-strong); }
.anl-hb.desp u, .anl-hb.neg u { background: var(--neg); opacity: .7; }
.anl-hb b { text-align: right; white-space: nowrap; font-weight: var(--w-medium); font-variant-numeric: tabular-nums; }
.cascata .anl-hb.hi u { background: var(--pos); }
@media (max-width: 480px) { .anl-hb { grid-template-columns: minmax(70px, 96px) minmax(0, 1fr) auto; gap: 7px; } }
.anl-lab { font-size: 12px; color: var(--ink-3); }
.anl-fonte { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-2); box-shadow: inset 0 0 0 1px var(--hair); background: var(--sup-1); min-width: 0; }
a.anl-fonte:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.anl-fonte > span:nth-child(2) { flex: 1; min-width: 0; }
.anl-fonte b { display: block; font-size: 13px; font-weight: var(--w-strong); }
.anl-fonte small { display: block; font-size: 12px; color: var(--ink-3); }
.anl-fonte-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--paper); color: var(--accent-ink); flex: none; }
.anl-fonte-ic svg, .anl-fonte-s { width: 15px; height: 15px; }
.anl-fonte-s { color: var(--ink-3); flex: none; }
/* a resposta da IA ao vivo: o selo no cartão da fonte */
.anl-vivo { flex: none; font: 500 10px/1 var(--mono); letter-spacing: .03em; color: var(--paper); background: var(--ink); border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.anl-x { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.6; }
.anl-x b { font-weight: var(--w-strong); }
.anl-acoes { display: flex; gap: 2px; flex-wrap: wrap; }
.anl-acoes button { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-3); }
.anl-acoes button:hover { background: var(--paper-2); color: var(--ink); }
.anl-acoes button.on, .anl-acoes button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-soft); }
.anl-acoes svg, .anl-fx svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.anl-acoes button.on svg, .anl-acoes button[aria-pressed="true"] svg { fill: currentColor; fill-opacity: .18; }
.anima .anl-acoes, .anima .anl-graf, .anima .mini-w { opacity: .35; transition: opacity var(--d-md) var(--e-ui); }
.anl-pe { border-top: 1px solid var(--hair); padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.anl-sug { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.anl-sug::-webkit-scrollbar { display: none; }
.anl-sug button { flex: none; white-space: nowrap; }
.anl-corpo .anl-sug { flex-wrap: wrap; }
.anl-corpo .anl-sug button { white-space: normal; }
.anl-mais { color: var(--accent-ink) !important; font-weight: var(--w-medium); }
.anl-mais svg { stroke: currentColor; fill: none; stroke-width: 2; }
.anl-pensa { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
/* o grão do "pensando" gira devagar e torra: uma volta por ciclo, do verde ao torrado e ao brilhante, e de volta */
.anl-simb { --verde: #6f9150; --torrado: #6b3a1d; --brilho: #e8893f;
  display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--accent); animation: anl-gira 4.2s linear infinite, anl-torra 4.2s ease-in-out infinite; }
:root[data-tema="escuro"] .anl-simb { --verde: #8fae6f; --torrado: #93552c; --brilho: #ffb070; }
.anl-simb svg { width: 18px; height: 18px; }
.anl-seg { color: var(--ink-3); font-variant-numeric: tabular-nums; }
@keyframes anl-gira { to { transform: rotate(360deg); } }
@keyframes anl-torra {
  0%, 100% { color: var(--verde); filter: none; }
  35% { color: var(--torrado); filter: none; }
  60% { color: var(--brilho); filter: drop-shadow(0 0 4px var(--brilho)); }
  80% { color: var(--torrado); filter: none; }
}

/* a luz na borda da caixa da pergunta: um cometa cobre que dá uma volta de 3,6 s quando a tela abre ([data-volta],
   posto por analista.js ao entrar) e corre no mesmo ritmo enquanto a IA pensa (há um "pensando" na tela) */
@property --anl-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.anl-box { position: relative; }
.anl-box::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--anl-ang), transparent 0 72%, color-mix(in srgb, var(--accent) 40%, transparent) 84%, var(--accent) 94%, #ffd2a6 98%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.anl[data-volta] .anl-box::before { opacity: 1; animation: anl-luz 3.6s linear 1 forwards, anl-luz-some .3s 3.4s forwards; }
.anl:has(.anl-pensa) .anl-box::before { opacity: 1; animation: anl-luz 3.6s linear infinite; }
@keyframes anl-luz { to { --anl-ang: 360deg; } }
@keyframes anl-luz-some { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .anl-simb { animation: none; }
  .anl[data-volta] .anl-box::before { animation: none; opacity: 0; }
  .anl:has(.anl-pensa) .anl-box::before { animation: none; --anl-ang: 200deg; }
}


/* ================= Diretoria ================= */
.dr-men { color: var(--c); font-weight: var(--w-strong); }
.dr-av svg { overflow: visible; stroke: none; }
.dr-p { --c: var(--accent); }
.dr-msg { display: flex; gap: 10px; align-items: flex-start; animation: entra var(--d-md) var(--e-out) both; }
.dr-msg-c { flex: 1; min-width: 0; }
.dr-msg-h { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.dr-msg-h b { color: var(--ink); font-size: 13px; }
.dr-msg-h time { margin-left: auto; font-size: 11px; }
.dr-bal { background: var(--paper); border-radius: 4px 14px 14px 14px; box-shadow: var(--ring); padding: 10px 14px; font-size: 13.5px; line-height: 1.55; border-left: 3px solid var(--c); }
.dr-msg.ceo .dr-bal { background: var(--sup-1); }
.dr-cita { font-size: 12.5px; color: var(--ink-2); border-left: 2px solid var(--hair-2); padding-left: 8px; margin-bottom: 6px; }
.dr-prop { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dr-prop span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.dr-reage { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 11.5px; color: var(--ink-2); padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-2); }
.dr-reage svg { width: 12px; height: 12px; color: var(--pos); }
.dr-plano { margin-top: 10px; border-radius: var(--r-2); box-shadow: inset 0 0 0 1px var(--hair-2); background: var(--paper); padding: 10px 12px; }
.dr-plano-t { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.dr-plano-t b { color: var(--ink); }
.dr-plano ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dr-plano li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.dr-plano li span { flex: 1; min-width: 0; }
.dr-plano li em { font-style: normal; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.dr-dig { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.dr-dig em { font-style: normal; }
.dr-lado { background: var(--sup-1); }
.dr-h3 { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 10px; }
.dr-h3 span { text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 12px; margin-left: 6px; }
.dr-lado .dr-h3 { margin-top: 0; }
.dr-dec-cab { font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.dec-it .acoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dec-it .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.dec-it .meta + .meta { margin-top: 0; margin-bottom: 8px; }
.dr-fora { margin-top: 12px; font-size: 13px; }
.dr-fora summary { cursor: pointer; color: var(--ink-2); }
.dr-fora ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.dr-custo { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.dr-custo > p { flex: 1; }
.dr-info summary { list-style: none; cursor: pointer; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); }
.dr-info summary::-webkit-details-marker { display: none; }
.dr-info summary svg { width: 16px; height: 16px; }
.dr-info[open] summary { color: var(--accent-ink); background: var(--accent-soft); }
.dr-info p { position: absolute; right: 18px; max-width: 340px; margin-top: 6px; padding: 10px 12px; border-radius: var(--r-2); background: var(--paper); box-shadow: var(--ring), 0 12px 30px -12px var(--sombra, rgba(0, 0, 0, .25)); color: var(--ink-2); z-index: 3; }
.dr-reu { position: relative; }
.dr-metas, .dr-hist { margin-top: 16px; }
.dr-tar { list-style: none; margin: 0; padding: 0; }
.dr-tar li { padding: 8px 0; }
.dr-tar li:first-child { border-top: 0; }
.dr-tar li span { flex: 1; min-width: 0; }
.dr-tar li b { display: block; font-size: 13.5px; }
.dr-tar li small { display: block; font-size: 12px; color: var(--ink-3); }
.dr-tar li.feita b { text-decoration: line-through; color: var(--ink-3); }
.dr-tar-v { font-size: 13px; }
.dr-bol { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.dr-bol-i { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-2); box-shadow: inset 0 0 0 1px var(--hair); border-left: 3px solid var(--pos); background: var(--paper); }
.dr-bol-i.risco { border-left-color: var(--warn); } .dr-bol-i.fora { border-left-color: var(--neg); }
.dr-bol-i b { font-size: 13px; } .dr-bol-i b span { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.dr-bol-i p { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.dr-metas-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.dr-meta { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-2); box-shadow: inset 0 0 0 1px var(--hair); background: var(--paper); }
.dr-meta.dec { box-shadow: inset 0 0 0 1px var(--accent); }
.dr-meta-a { position: relative; width: 52px; height: 52px; flex: none; }
.dr-meta-a b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: var(--w-strong); }
.dr-anel { transform: rotate(-90deg); }
.dr-anel circle { fill: none; stroke-width: 5; }
.dr-anel .tr { stroke: var(--paper-3); }
.dr-anel .pg { stroke: var(--pos); stroke-linecap: round; transition: stroke-dashoffset var(--d-xl) var(--e-out); }
.dr-anel.risco .pg { stroke: var(--warn); } .dr-anel.fora .pg { stroke: var(--neg); }
.dr-meta-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dr-meta-t > small { font-size: 12px; color: var(--ink-3); }
.dr-meta-t p b { font-size: 17px; font-weight: var(--w-display); }
.dr-meta-t p span { font-size: 12px; color: var(--ink-3); }
.dr-meta-s { font-size: 11.5px; color: var(--ink-2); }
.dr-meta-p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.dr-sem { font-size: 11px; font-weight: var(--w-strong); padding: 2px 8px; border-radius: 999px; background: var(--pos-bg); color: var(--pos); }
.dr-meta.risco .dr-sem { background: var(--warn-bg); color: var(--warn); } .dr-meta.fora .dr-sem { background: var(--neg-bg); color: var(--neg); }
.dr-seq { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--accent-ink); }
.dr-seq svg { width: 13px; height: 13px; }
.dr-meta-p .dr-av { margin-left: auto; }
.dr-plac { display: flex; flex-direction: column; gap: 10px; }
.dr-plac-n b { font-size: 30px; font-weight: var(--w-display); letter-spacing: -.02em; }
.dr-plac-n b em { font-style: normal; font-size: 16px; color: var(--ink-3); }
.dr-plac-n span { display: block; font-size: 12.5px; color: var(--ink-2); }
.dr-plac-n small { font-size: 12px; }
.dr-plac-w { margin: 0; }
.dr-plac-t { border-collapse: collapse; font-size: 12px; width: 100%; }
.dr-plac-t th { font-weight: 400; color: var(--ink-3); text-align: left; padding: 4px 6px 4px 0; white-space: nowrap; }
.dr-plac-t thead th { text-align: center; font-size: 11px; }
.dr-plac-t thead th span { display: block; font-size: 10px; text-transform: uppercase; }
.dr-plac-t td { text-align: center; padding: 4px 2px; }
.dr-plac-t td i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--paper-3); }
.dr-plac-t td i.ok { background: var(--pos); } .dr-plac-t td i.no { background: var(--neg); }
.dr-selos { display: flex; flex-direction: column; gap: 8px; }
.dr-selo { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-2); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-3); }
.dr-selo svg { width: 20px; height: 20px; flex: none; }
.dr-selo b { display: block; font-size: 13px; color: var(--ink-2); }
.dr-selo small { font-size: 12px; }
.dr-selo.ganho { box-shadow: inset 0 0 0 1px var(--c); color: var(--c); }
.dr-selo.ganho b { color: var(--ink); }
.dr-rps { display: flex; flex-direction: column; gap: 8px; }
.dr-rp { border-radius: var(--r-2); box-shadow: inset 0 0 0 1px var(--hair); background: var(--paper); }
.dr-rp.ext { box-shadow: inset 0 0 0 1px var(--warn); }
.dr-rp summary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; list-style: none; }
.dr-rp summary::-webkit-details-marker { display: none; }
.dr-rp-d { display: flex; flex-direction: column; align-items: center; width: 44px; flex: none; }
.dr-rp-d b { font-size: 14px; } .dr-rp-d small { font-size: 11px; color: var(--ink-3); text-transform: uppercase; }
.dr-rp-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dr-rp-t b { font-size: 13.5px; }
.dr-rp-t small { font-size: 12px; color: var(--ink-3); }
.dr-rp-tipo { font: 500 10px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }
.dr-rp.ext .dr-rp-tipo { color: var(--warn); }
.dr-rp-q { display: flex; }
.dr-rp-q .dr-av + .dr-av { margin-left: -6px; }
@media (max-width: 480px) { .dr-rp-q { display: none; } }
.dr-rp-c { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 4px 14px 14px; border-top: 1px solid var(--hair); }
@media (max-width: 760px) { .dr-rp-c { grid-template-columns: minmax(0, 1fr); } }
.dr-rp-c h4 { font: 500 10.5px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 8px; }
.dr-rp-dec { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dr-rp-dec li { display: flex; gap: 8px; font-size: 13px; }
.dr-rp-dec small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.dr-rp-f { display: flex; flex-direction: column; gap: 8px; }
.dr-rp-fi { display: flex; gap: 8px; font-size: 13px; line-height: 1.45; }
.dr-seqg { font-size: 13px; color: var(--ink-2); }
.dr-seqg b { font-size: 30px; font-weight: var(--w-display); color: var(--ink); margin-right: 4px; }
.dr-hist .chips { margin-bottom: 10px; }
