/* Dash Lab: painel de instrumentos sobre papel claro. Fundo branco-gelo, fios
   finos como hairline de régua, numerais tabulares em mono, acentos chapados
   (menta, violeta, âmbar, céu) que só aparecem onde há dado. Nenhum degradê. */
:root {
  --fundo: #f6f7f9; --sup: #ffffff; --sup2: #eef0f4; --tinta: #101828; --tinta2: #3b4557; --fraco: #6b7688;
  --linha: rgba(16, 24, 40, .14); --cor: #157f5f; --cor-t: #ffffff; --cor2: #e0a11c;
  --esc: #101828; --esc-t: #f6f7f9; --esc-f: rgba(246, 247, 249, .72);
  --raio: 6px; --raio-p: 4px; --sombra: 0 0 0 1px var(--cor);
  --f-tit: 'Saira', system-ui, sans-serif; --f-txt: 'IBM Plex Sans', system-ui, sans-serif; --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --tit-peso: 300; --tit-esp: -.015em;
  --menta: #1f9d74; --violeta: #7a4fd6; --ambar: #e0a11c; --ceu: #2f8fd6; --rosa: #d9536f;
  --regua: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='12'%3E%3Cpath d='M.5 0v12M8.5 0v4M16.5 0v4M24.5 0v4M32.5 0v4M40.5 0v7M48.5 0v4M56.5 0v4M64.5 0v4M72.5 0v4' stroke='%23101828' stroke-opacity='.38'/%3E%3C/svg%3E");
  --grade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M63.5 0v64M0 63.5h64' stroke='%23101828' stroke-opacity='.045'/%3E%3C/svg%3E");
  color-scheme: light;
}
body { background: var(--fundo) var(--grade); font-feature-settings: "tnum" 1; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); line-height: 1.06; font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.08; font-weight: 300; }
h3 { font-weight: 500; letter-spacing: 0; }
h1 em, h2 em { color: var(--menta); font-weight: 400; }
::selection { background: var(--menta); color: #fff; }

.topo { background: var(--fundo); backdrop-filter: none; border-bottom: 1px solid var(--tinta); }
.cassi { font-weight: 600; }
.prod { font: 300 1.08rem var(--f-tit); letter-spacing: .04em; text-transform: uppercase; }
.prod b { font-weight: 600; color: var(--menta); }
.links a { font: 400 .78rem var(--f-mono); letter-spacing: .04em; color: var(--fraco); }
.links a:hover { color: var(--tinta); }
.idiomas { background: var(--sup); border-radius: 4px; border-color: var(--tinta); }
.idiomas a { border-radius: 2px; }
.idiomas a[aria-current] { background: var(--tinta); color: #fff; }
.btn { background: var(--sup); border-color: var(--tinta); font: 500 .86rem var(--f-mono); letter-spacing: .01em; }
.btn:hover { border-color: var(--menta); color: var(--menta); transform: none; box-shadow: 0 0 0 1px var(--menta); }
.btn-p { background: var(--tinta); border-color: var(--tinta); color: #fff; font-weight: 600; }
.btn-p:hover { background: var(--menta); border-color: var(--menta); color: #fff; box-shadow: none; }
.btn-demo { border-color: var(--violeta); color: var(--violeta); }
.btn-demo::after { content: "↗"; }
.btn-demo:hover { border-color: var(--violeta); color: var(--violeta); box-shadow: 0 0 0 1px var(--violeta); }

.heroi { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); align-items: start; }
.heroi-t { padding-top: clamp(0px, 3vw, 44px); }
.sobre { font-weight: 500; letter-spacing: .16em; color: var(--menta); display: flex; align-items: center; gap: 10px; }
.sobre::before { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; }
.lede { font-size: 1.08rem; }
.palco { aspect-ratio: 4 / 3.25; background: var(--sup); border: 1px solid var(--tinta); border-radius: 8px; box-shadow: 6px 6px 0 var(--sup2), 6px 6px 0 1px var(--linha); }
.ilus { text-align: right; letter-spacing: .04em; }

/* Régua de eixo no alto de cada seção */
.sec { position: relative; }
.sec::before { content: ""; position: absolute; top: 0; left: clamp(16px, 5vw, 72px); right: clamp(16px, 5vw, 72px); height: 12px; background: var(--regua) repeat-x left top; border-top: 1px solid rgba(16, 24, 40, .45); }
.sec-esc { border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); background: var(--esc); }
.sec-esc::before, .fim::before { display: none; }
.ap { color: var(--tinta2); }

/* O trabalho: quatro leituras do mesmo instrumento */
.tcs { background: var(--sup); border-color: var(--tinta); border-radius: var(--raio); }
.tc { position: relative; padding-top: 30px; }
.tc::before { content: ""; position: absolute; left: 24px; top: 0; width: 34px; height: 3px; background: var(--ceu); }
.tc:nth-child(2)::before { background: var(--violeta); }
.tc:nth-child(3)::before { background: var(--ambar); }
.tc-cassi::before { background: var(--menta); }
.tc-cassi { background: #e9f6f0; }
.tc-cassi h3 { color: var(--tinta); }
.tag { border: 0; padding: 0; letter-spacing: .14em; color: var(--ceu); }
.tc:nth-child(2) .tag { color: var(--violeta); }
.tc:nth-child(3) .tag { color: #b47f0e; }
.tc-cassi .tag { color: var(--menta); }
.tc h3 { font-size: 1.2rem; }
blockquote { border-left: 1px solid var(--menta); font: 300 clamp(1.25rem, 2.2vw, 1.75rem)/1.35 var(--f-tit); font-style: normal; color: var(--tinta); max-width: 36em; margin-top: 48px; padding-left: 28px; }

.rl h3 { font: 300 clamp(1.2rem, 1.9vw, 1.6rem)/1.22 var(--f-tit); }
.rl:nth-child(4n+1) .et b { color: var(--menta); }
.rl:nth-child(4n+2) .et b { color: var(--violeta); }
.rl:nth-child(4n+3) .et b { color: #b47f0e; }
.rl:nth-child(4n+4) .et b { color: var(--ceu); }
.et b { font-weight: 600; }
.et span { display: block; margin-top: 4px; }

/* Método: faixa escura, leitura numerada, numeral fino e grande */
.pss { gap: 0; border-top: 1px solid rgba(246, 247, 249, .2); border-left: 1px solid rgba(246, 247, 249, .2); }
.ps { flex-direction: column; gap: 10px; border-radius: 0; border: 0; border-right: 1px solid rgba(246, 247, 249, .2); border-bottom: 1px solid rgba(246, 247, 249, .2); background: none; padding: 28px 26px 30px; }
.ps .n { font: 200 3.2rem/1 var(--f-tit); color: var(--esc-t); padding: 0; letter-spacing: -.02em; }
.ps:nth-child(4n+1) .n { color: #4fd1a5; } .ps:nth-child(4n+2) .n { color: #b8a0f0; }
.ps:nth-child(4n+3) .n { color: #f2c35c; } .ps:nth-child(4n+4) .n { color: #7fc2f0; }
.ps h3 { font-size: 1.2rem; }
.ps .gt { color: var(--esc-t) !important; border-top: 1px dashed rgba(246, 247, 249, .25); padding-top: 10px; }
.ps .gt::before { content: "✓ "; color: #4fd1a5; }
.sec-esc .sobre { color: #f2c35c; }

/* Números do exemplo: mostradores */
.pvs { gap: 0; border: 1px solid var(--tinta); border-radius: var(--raio); background: var(--sup); overflow: hidden; margin-bottom: 16px; }
.pv { border: 0; border-right: 1px solid var(--linha); border-radius: 0; background: none; padding: 26px 26px 28px; position: relative; }
.pv:last-child { border-right: 0; }
.pv::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 8px; background: var(--regua) repeat-x left bottom; opacity: .7; transform: scaleY(-1); }
.pv b { font: 200 clamp(3.4rem, 6vw, 5.6rem)/.95 var(--f-tit); letter-spacing: -.03em; color: var(--menta); margin-bottom: 14px; }
.pv:nth-child(2) b { color: var(--violeta); } .pv:nth-child(3) b { color: var(--ceu); } .pv:nth-child(4) b { color: var(--ambar); }
.pv span { font: 400 .78rem/1.5 var(--f-mono); color: var(--tinta2); display: block; max-width: 22em; }
.cx { background: var(--sup); border-color: var(--tinta); }
.cx h3 { font: 400 1.5rem var(--f-tit); }
.cx li { color: var(--tinta2); }
.nao li::before { color: var(--rosa); }
.sim li::before { color: var(--menta); }

.fq summary h3 { font: 400 1.18rem/1.3 var(--f-tit); }
.fq summary::after { color: var(--menta); font-weight: 300; }
.fq[open] summary h3 { color: var(--menta); }
.fim { border-top: 1px solid var(--linha); }
.fim h2 { max-width: 16em; }
.fc { border-color: var(--tinta); }
.rodape { background: var(--sup2); color: var(--fraco); font-size: .82rem; }
.rodape a { color: var(--tinta2); }

/* ---------- Palco: moldura ---------- */
.pc-abas { grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--sup2); border-bottom: 1px solid var(--tinta); }
.pc-aba { border-radius: 4px; color: var(--fraco); align-items: start; }
.pc-aba b { font-weight: 600; }
.pc-aba small { white-space: normal; line-height: 1.25; }
.pc-aba:hover { color: var(--tinta); }
.pc-aba[aria-selected="true"] { background: var(--sup); color: var(--tinta); border-color: var(--tinta); }
.pc-aba[aria-selected="true"] i { color: var(--menta); opacity: 1; }
.pc-prog { background: var(--menta); }
.cena { padding: 12px; color: var(--tinta); font-family: var(--f-txt); background: #f3f4f7; }
.dl { position: relative; height: 100%; display: flex; flex-direction: column; gap: 9px; min-height: 0; }
.dl-top { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--tinta); color: #fff; border-radius: 5px; white-space: nowrap; min-width: 0; }
.dl-logo { font: 600 .56rem var(--f-mono); letter-spacing: .16em; color: #4fd1a5; }
.dl-tit { font: 400 .86rem var(--f-tit); letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; }
.dl-ctx { font: 500 .54rem var(--f-mono); color: #d9c8ff; border: 1px solid #b8a0f0; border-radius: 3px; padding: 2px 6px; }
.dl-n { margin-left: auto; font: 400 .6rem var(--f-mono); color: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .3); border-radius: 3px; padding: 3px 8px; }
.dl-n b { color: #fff; font-weight: 600; }
.pn { background: var(--sup); border: 1px solid var(--linha); border-radius: 5px; padding: 10px 12px; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.pn-t { font: 500 .55rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fraco); margin-bottom: 8px; }
.hb { display: grid; grid-template-columns: 30% minmax(0, 1fr) 2.6em; align-items: center; gap: 8px; font: 400 .66rem var(--f-txt); color: var(--tinta2); flex: 1; min-height: 0; }
.hb-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { height: 9px; background: var(--sup2); border-radius: 1px; overflow: hidden; }
.hb-t u { display: block; height: 100%; width: 0; background: var(--menta); transition: width .8s cubic-bezier(.2, .7, .2, 1); text-decoration: none; }
.hb-v { font: 500 .66rem var(--f-mono); color: var(--tinta); text-align: right; }
.toast { position: absolute; right: 8px; bottom: 8px; max-width: 78%; background: var(--ambar); color: #1d1503; font: 600 .62rem/1.35 var(--f-mono); padding: 8px 12px; border-radius: 4px; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; z-index: 5; }
.toast.on { opacity: 1; transform: none; }
.insight { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ambar); border-radius: 4px; padding: 7px 10px; background: #fdf4dc; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.insight.on { opacity: 1; transform: none; }
.insight b { font: 600 .5rem var(--f-mono); letter-spacing: .1em; color: #8a5f05; white-space: nowrap; }
.insight span { font: 400 .66rem/1.35 var(--f-txt); color: var(--tinta); }
.sv { display: block; width: 100%; height: 100%; min-height: 0; flex: 1; overflow: visible; }
.sv text { font-family: var(--f-mono); fill: var(--tinta2); }
.sv-rot { font-size: 8.5px; fill: var(--tinta); }
.sv-val { font-size: 8px; font-weight: 600; fill: var(--tinta); }
.sv-eixo { font-size: 7.5px; fill: var(--fraco); letter-spacing: .06em; text-transform: uppercase; }
.sv-q { font-size: 7.5px; font-weight: 600; fill: var(--fraco); letter-spacing: .08em; text-transform: uppercase; }
.sv-q0 { fill: var(--rosa); }
.sv-media { font-size: 7px; fill: var(--fraco); }
.sv-pt { opacity: 0; transition: opacity .35s; }
.sv-pt.on { opacity: 1; }
.sv-anel { opacity: 0; transition: opacity .3s; }
.sv-anel.on { opacity: 1; }
.sv-leg { display: flex; gap: 14px; font: 400 .54rem var(--f-txt); color: var(--tinta2); margin-top: 4px; }
.sv-leg i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; }
.sv-leg .bola { border-radius: 50%; } .sv-leg .losango { transform: rotate(45deg) scale(.85); }

/* Cena 1: filtros */
.chips { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.chip { border: 1px solid var(--linha); border-radius: 4px; padding: 5px 7px; background: var(--sup); min-width: 0; transition: border-color .25s, background .25s; }
.chip small { display: block; font: 400 .46rem var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fraco); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip b { display: block; font: 500 .66rem var(--f-txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip b::after { content: " ▾"; color: var(--fraco); font-size: .5rem; }
.chip.on { border-color: var(--menta); background: #e9f6f0; }
.chip.on b { color: #157f5f; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; flex: 1.25; min-height: 0; }
.kpi { background: var(--sup); border: 1px solid var(--linha); border-top: 2px solid var(--c); border-radius: 5px; padding: 9px 11px; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; min-width: 0; transition: background .4s; }
.kpi.pisca { background: var(--sup2); }
.kpi-h { display: flex; align-items: center; gap: 6px; font: 500 .68rem var(--f-txt); }
.kpi-h i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.flag { margin-left: auto; font: 600 .44rem var(--f-mono); font-style: normal; letter-spacing: .04em; text-transform: uppercase; background: var(--ambar); color: #1d1503; padding: 2px 5px; border-radius: 2px; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; white-space: nowrap; }
.kpi.baixa .flag { opacity: 1; transform: none; }
.kpi-v b { display: block; font: 200 clamp(1.9rem, 3.5vw, 3rem)/1 var(--f-tit); letter-spacing: -.03em; color: var(--c); }
.kpi-v small { font: 400 .5rem var(--f-mono); color: var(--fraco); letter-spacing: .03em; }
.kpi-bar { height: 3px; background: var(--sup2); }
.kpi-bar u { display: block; height: 100%; width: 0; background: var(--c); transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.kpi-r { display: flex; justify-content: space-between; gap: 6px; font: 400 .54rem var(--f-mono); color: var(--fraco); white-space: nowrap; }
.kpi-r b { color: var(--tinta); font-weight: 500; }
.kpi.baixa .kpi-r span:last-child b { color: #b47f0e; }
.marcas { flex: 1; }
.dl-st { display: flex; gap: 16px; font: 400 .56rem var(--f-mono); color: var(--fraco); }
.dl-st b { color: var(--menta); font-weight: 600; }
.cursor { position: absolute; left: 0; top: 0; z-index: 6; opacity: 0; transition: transform .8s cubic-bezier(.3, .7, .2, 1), opacity .3s; pointer-events: none; }
.cursor.on { opacity: 1; }
.cursor i { position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border: 1.5px solid var(--menta); border-radius: 50%; opacity: 0; transform: scale(.3); }
.cursor.clic i { animation: dl-clic .45s ease-out; }
@keyframes dl-clic { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }

/* Cena 2: abandono */
.a2-cima { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.stk { display: flex; height: 18px; background: var(--sup2); border-radius: 2px; overflow: hidden; }
.stk u { display: block; width: 0; overflow: hidden; text-decoration: none; font: 600 .56rem/18px var(--f-mono); color: #fff; text-align: center; transition: width .8s cubic-bezier(.2, .7, .2, 1); white-space: nowrap; }
.stk u.escuro { color: #1d1503; }
.stk-l { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 7px; font: 400 .54rem var(--f-txt); color: var(--tinta2); }
.stk-l i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 1px; }
.a2-baixo { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 7px; flex: 1; min-height: 0; }
.deptos .hb { grid-template-columns: 40% minmax(0, 1fr) 2.6em; opacity: 0; transition: opacity .3s; }
.deptos .hb.on { opacity: 1; }
.deptos .hb-t u { background: var(--violeta); }
.deptos .hb-t { height: 13px; }
.a2 .toast { position: static; max-width: none; text-align: center; }
.fn-cab, .fn { display: grid; grid-template-columns: 32% minmax(0, 1fr) 6.4em; gap: 8px; align-items: center; }
.fn-cab { font: 400 .46rem var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fraco); margin-bottom: 3px; }
.fn-cab span:nth-child(2) { text-align: center; } .fn-cab span:last-child { text-align: right; }
.fn { flex: 1; min-height: 0; font: 400 .64rem var(--f-txt); color: var(--tinta2); opacity: 0; transition: opacity .3s; border-radius: 3px; }
.fn.on { opacity: 1; }
.fn-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-n i { font: 500 .5rem var(--f-mono); font-style: normal; color: var(--fraco); margin-right: 6px; }
.fn-t { display: flex; justify-content: center; height: 72%; max-height: 20px; min-height: 12px; }
.fn-t u { display: block; width: 0; height: 100%; background: var(--ceu); border-radius: 1px; text-decoration: none; font: 600 .54rem var(--f-mono); color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.fn-v { font: 500 .68rem var(--f-mono); color: var(--tinta); text-align: right; }
.fn.alvo { outline: 1px solid var(--ambar); outline-offset: 1px; background: #fdf4dc; }
.fn.alvo .fn-v, .fn.alvo .fn-n { color: #8a5f05; }
.fn.alvo .fn-t u { background: var(--ambar); color: #1d1503; }

/* Cena 3: tracking */
.tb { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--sup); border: 1px solid var(--linha); border-radius: 5px; overflow: hidden; }
.tr { display: grid; grid-template-columns: minmax(0, 3.3fr) repeat(var(--cols, 12), minmax(0, 1fr)); flex: 1; min-height: 0; border-top: 1px solid rgba(16, 24, 40, .08); align-items: stretch; }
.tr.th, .tr.tn { flex: 0 0 auto; font: 500 .52rem var(--f-mono); color: var(--fraco); letter-spacing: .04em; }
.tr.th { border-top: 0; background: var(--sup2); }
.tr.tn { background: var(--sup2); }
.tr > span { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4px 1px; min-width: 0; border-left: 1px solid rgba(16, 24, 40, .06); }
.tr .rot { flex-direction: row; justify-content: flex-start; align-items: center; gap: 6px; padding-left: 9px; font: 400 .62rem/1.2 var(--f-txt); color: var(--tinta2); border-left: 0; }
.tr.th .rot, .tr.tn .rot { font: 500 .5rem var(--f-mono); text-transform: uppercase; color: var(--fraco); }
.rot i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.c { opacity: 0; transition: opacity .3s, background .3s; }
.c.on { opacity: 1; }
.c b { font: 500 .62rem var(--f-mono); color: var(--tinta); }
.c small { font: 400 .48rem var(--f-mono); color: var(--fraco); white-space: nowrap; }
.c em, .leg em, .tm8-v em { font-style: normal; }
em.up { color: var(--menta); } em.dn { color: var(--rosa); } em.ns { color: #a7aebb; }
em.lb { display: inline-block; background: var(--ambar); color: #1d1503; font-weight: 700; width: 1.2em; line-height: 1.2em; text-align: center; border-radius: 2px; }
.c.luz:has(.up) { background: #e3f5ed; } .c.luz:has(.up) b { color: #157f5f; }
.c.luz:has(.dn) { background: #fbe4ea; } .c.luz:has(.dn) b { color: var(--rosa); }
.c.alerta { background: #fdf1d6; }
.c.alerta b { color: #8a5f05; }
.tn .c.alerta { color: #8a5f05; font-weight: 700; }
.t3-rod { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.leg { display: flex; flex-wrap: wrap; gap: 3px 12px; font: 400 .54rem var(--f-txt); color: var(--tinta2); }
.leg em { margin-right: 4px; font-size: .6rem; }
.cont { display: flex; gap: 12px; font: 400 .54rem var(--f-mono); color: var(--fraco); white-space: nowrap; }
.cont b { font: 300 1.1rem var(--f-tit); color: var(--menta); margin-right: 2px; }
.t3 .leg { flex: 1 0 100%; }
.t3 .toast { position: static; max-width: none; padding: 6px 10px; }

/* Cena 4: etapa × motivo */
.h4-meio { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 7px; flex: 1; min-height: 0; }
.hm { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.9fr) repeat(5, minmax(0, 1fr)); grid-template-rows: auto repeat(6, minmax(0, 1fr)); gap: 3px; }
.hm-c { font: 500 .5rem var(--f-mono); color: var(--fraco); text-align: center; padding-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-r { font: 400 .6rem var(--f-txt); color: var(--tinta2); display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-v { display: flex; align-items: center; justify-content: center; font: 500 .62rem var(--f-mono); border-radius: 2px; background: var(--sup2); color: transparent; transition: background .35s, color .35s; position: relative; }
.hm-v.on.d0, .hm-esc .d0 { background: #eef0f4; } .hm-v.on.d0 { color: #8a93a3; }
.hm-v.on.d1, .hm-esc .d1 { background: #d5efe4; } .hm-v.on.d1 { color: #1f6b50; }
.hm-v.on.d2, .hm-esc .d2 { background: #9fdcc4; } .hm-v.on.d2 { color: #0e3d2c; }
.hm-v.on.d3, .hm-esc .d3 { background: #4fbf97; } .hm-v.on.d3 { color: #fff; }
.hm-v.on.d4, .hm-esc .d4 { background: #1f9d74; } .hm-v.on.d4 { color: #fff; font-weight: 600; }
.hm-v.anel { outline: 2px solid var(--ambar); outline-offset: 2px; z-index: 2; }
.hm-esc { display: flex; align-items: center; gap: 3px; margin-top: 7px; font: 400 .48rem var(--f-mono); color: var(--fraco); }
.hm-esc i { width: 16px; height: 6px; border-radius: 1px; }
.tm { flex: 1; min-height: 0; position: relative; }
.tm-b { position: absolute; padding: 7px 8px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; opacity: 0; transform: scale(.94); transition: opacity .4s, transform .4s; border: 1.5px solid var(--sup); border-radius: 3px; }
.tm-b.escuro { color: #1d1503; }
.tm-b.on { opacity: 1; transform: none; }
.tm-b b { font: 300 1.5rem/1 var(--f-tit); letter-spacing: -.02em; }
.tm-b span { font: 500 .56rem/1.2 var(--f-txt); }
.tm-b.b0 { left: 0; top: 0; width: 34%; height: 100%; }
.tm-b.b1 { left: 34%; top: 0; width: 37.7%; height: 64%; }
.tm-b.b2 { left: 71.7%; top: 0; width: 28.3%; height: 64%; }
.tm-b.b3 { left: 34%; top: 64%; width: 38.5%; height: 36%; }
.tm-b.b4 { left: 72.5%; top: 64%; width: 27.5%; height: 36%; }
.tm-b.b3 b, .tm-b.b4 b { font-size: 1.1rem; }

/* Cena 5: matrizes */
.m5-meio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; flex: 1; min-height: 0; }
.sv-rot-a { fill: #157f5f; font-size: 7.5px; }
.sv-rot-m { fill: var(--violeta); font-weight: 600; }

/* Cena 6: segmentação */
.segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; flex: 1; min-height: 0; }
.seg { background: var(--sup); border: 1px solid var(--linha); border-top: 2px solid var(--c); border-radius: 5px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; min-height: 0; min-width: 0; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.seg.on { opacity: 1; transform: none; }
.seg.anel { outline: 2px solid var(--ambar); outline-offset: 2px; }
.seg-h { display: flex; align-items: center; gap: 6px; font: 500 .68rem var(--f-txt); min-width: 0; }
.seg-h i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.seg-h b { min-width: 0; }
.seg-tam { font: 500 .5rem var(--f-mono); color: var(--c); white-space: nowrap; margin-top: -3px; }
.seg-c { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 4px; }
.sv-radar { flex: 1; min-height: 0; max-height: 100%; }
.sv-rad { font-size: 8.5px; fill: var(--fraco); }
.seg-f { display: grid; gap: 2px; font: 400 .52rem var(--f-mono); color: var(--fraco); }
.seg-f b { color: var(--tinta); font-weight: 600; }
.seg-tr { border-top: 1px dashed var(--linha); padding-top: 4px; margin-top: 2px; display: grid; }
.seg-tr small { font: 400 .44rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.seg-tr em { font: 500 .58rem var(--f-txt); font-style: normal; color: var(--tinta); }

/* Cena 7: infográfico */
.folha { flex: 1; min-height: 0; background: var(--sup); border: 1px solid var(--tinta); border-radius: 3px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 4px 4px 0 var(--sup2); }
.bl { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.bl.on { opacity: 1; transform: none; }
.fo-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--tinta); padding-bottom: 6px; }
.fo-cab b { font: 400 .95rem var(--f-tit); }
.fo-cab span { font: 400 .5rem var(--f-mono); color: var(--fraco); white-space: nowrap; }
.fo-grandes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fo-g { border-left: 3px solid var(--c); padding-left: 10px; min-width: 0; }
.fo-g b { display: block; font: 200 clamp(1.7rem, 3.2vw, 2.6rem)/1 var(--f-tit); letter-spacing: -.03em; color: var(--c); }
.fo-g span { font: 400 .5rem var(--f-mono); color: var(--fraco); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-meio { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; flex: 1; min-height: 0; }
.fo-bloco { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-top: 1px solid var(--linha); padding-top: 6px; }
.fo-mapa { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; flex: 1; min-height: 0; }
.fo-mapa .sv { max-height: 100%; }
.sv-reg { opacity: .18; transition: opacity .4s; }
.sv-reg.on { opacity: 1; }
.fo-reg { display: grid; gap: 3px; font: 400 .5rem var(--f-txt); color: var(--tinta2); white-space: nowrap; }
.fo-reg i { display: inline-block; width: 8px; height: 8px; border-radius: 1px; margin-right: 5px; vertical-align: -1px; border: 1px solid rgba(16, 24, 40, .12); }
.fo-reg b { font: 600 .52rem var(--f-mono); color: var(--tinta); }
.sv-cas { opacity: 0; transition: opacity .35s; }
.sv-cas.on { opacity: 1; }
.cascata .sv-rot { font-size: 7.5px; }
.fo-canais { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fo-canal { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 7px; min-width: 0; }
.sv-ico { width: 22px; height: 22px; flex: none; }
.fo-canal b { font: 300 1.2rem/1 var(--f-tit); }
.fo-canal span { font: 400 .52rem var(--f-txt); color: var(--tinta2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-st { justify-content: space-between; align-items: center; }
.fo-st .toast { position: static; max-width: none; padding: 5px 10px; }

/* Cena 8: testes */
.e8-meio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 7px; flex: 1; min-height: 0; }
.tm8 { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) repeat(var(--cols, 4), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 3px; }
.tm8-c { font: 500 .5rem var(--f-mono); color: var(--fraco); display: flex; align-items: center; justify-content: center; gap: 4px; text-align: center; padding-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm8-c i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.tm8-r { font: 400 .6rem/1.15 var(--f-txt); color: var(--tinta2); display: flex; align-items: center; min-width: 0; }
.tm8-v { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 2px; background: var(--sup2); opacity: 0; transition: opacity .3s, background .3s; min-width: 0; }
.tm8-v.tot { opacity: 1; font: 500 .62rem var(--f-mono); color: var(--tinta); }
.tm8-v.on { opacity: 1; }
.tm8-v b { font: 500 .62rem var(--f-mono); color: var(--tinta); white-space: nowrap; }
.tm8-v small { font: 400 .46rem var(--f-mono); color: var(--fraco); white-space: nowrap; }
.tm8-v.luz.up { background: #e3f5ed; } .tm8-v.luz.up b { color: #157f5f; }
.tm8-v.luz.dn { background: #fbe4ea; } .tm8-v.luz.dn b { color: var(--rosa); }
.tst .leg { margin-top: 6px; }
.sv-drv { opacity: 0; transition: opacity .35s; }
.sv-drv.on { opacity: 1; }
.sv-drv.cruza .sv-rot, .sv-drv.cruza .sv-val { fill: var(--fraco); }
.sv-drv.anel .sv-bar { stroke: var(--ambar); stroke-width: 2; }
.drv .sv-rot { font-size: 9px; } .drv .sv-val { font-size: 8.5px; }
.sv-drv.anel .sv-val { fill: #8a5f05; }

@media (max-width: 1080px) {
  .heroi { grid-template-columns: minmax(0, 1fr); }
  .pv:nth-child(2) { border-right: 0; }
  .pv:nth-child(-n+2) { border-bottom: 1px solid var(--linha); }
}
@media (max-width: 720px) {
  body { background-size: 48px 48px; }
  .palco { aspect-ratio: auto; height: 640px; box-shadow: none; }
  .ilus { text-align: center; }
  .tc::before { left: 18px; }
  .pss { border-left: 0; }
  .ps { border-right: 0; padding: 22px 4px 24px; }
  .pvs { gap: 0; }
  .pv { padding: 20px 16px 24px; }
  .pv::after { left: 16px; right: 16px; }
  .pv b { font-size: 3.2rem; }
  blockquote { padding-left: 18px; margin-top: 34px; }
  .pc-abas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pc-aba { padding: 5px 4px; }
  .pc-aba b { font-size: .56rem; }
  .pc-aba small { display: none; }
  .cena { padding: 9px; }
  .dl { gap: 7px; }
  .dl-top { padding: 6px 8px; }
  .dl-tit { font-size: .78rem; }
  .dl-logo { display: none; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem) !important; }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .chip { padding: 4px 5px; }
  .chip b { font-size: .58rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 2.1; }
  .kpi-v b { font-size: 2.3rem; }
  .dl-st { justify-content: space-between; gap: 8px; font-size: .5rem; }
  .a2-cima { grid-template-columns: minmax(0, 1fr); }
  .a2-cima .emp:nth-child(2) { display: none; }
  .a2-baixo { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, .8fr) minmax(0, 1.2fr); }
  .pn { padding: 8px 10px; }
  .toast { left: 8px; max-width: none; text-align: center; }
  .tr { grid-template-columns: minmax(0, 1.5fr) repeat(var(--cols, 6), minmax(0, 1fr)); }
  .tr .rot { padding-left: 6px; font-size: .58rem; gap: 4px; }
  .c b { font-size: .64rem; } .c small { font-size: .5rem; }
  .t3-rod { gap: 6px; }
  .t3 .toast { width: 100%; }
  .cont { width: 100%; justify-content: space-between; }
  .h4-meio { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr); }
  .hm-r { font-size: .54rem; }
  .hm-c { font-size: .46rem; }
  .insight { flex-direction: column; align-items: flex-start; gap: 3px; }
  .insight span { font-size: .62rem; }
  .m5-meio { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .sv-rot { font-size: 9.5px; }
  .segs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .seg { padding: 6px 8px; gap: 4px; }
  .seg-tr { display: none; }
  .seg-f { grid-template-columns: 1fr 1fr; font-size: .48rem; }
  .comp .stk-l { gap: 3px 8px; }
  .folha { padding: 10px; gap: 6px; }
  .fo-grandes { gap: 6px; }
  .fo-g { padding-left: 7px; }
  .fo-g b { font-size: 1.5rem; }
  .fo-g span { white-space: normal; font-size: .46rem; line-height: 1.2; }
  .fo-meio { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, .9fr); gap: 6px; }
  .fo-mapa { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .canais { display: none; }
  .fo-st { flex-wrap: wrap; }
  .fo-st .toast { width: 100%; }
  .e8-meio { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); }
  .tm8 { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) repeat(var(--cols, 4), minmax(0, 1fr)); gap: 2px; }
  .tm8-c { font-size: .42rem; gap: 2px; }
  .tm8-c i { display: none; }
  .tm8-r { font-size: .5rem; }
  .tm8-v b { font-size: .54rem; }
  .tm8-v small { font-size: .4rem; }
  .tst .leg { font-size: .48rem; gap: 2px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor.clic i { animation: none; }
  .hb-t u, .kpi-bar u, .stk u, .fn-t u, .c, .hm-v, .tm-b, .toast, .insight, .sv-pt, .sv-anel, .seg, .bl, .sv-reg, .sv-cas, .tm8-v, .sv-drv { transition: none; }
}
