/* Voss — preto, cinza e branco. Azul-marinho só em detalhe.
   Amarelo, vermelho e verde: somente nas flags (status de meta, alerta). */
:root {
  --fg: 255, 255, 255;
  --azul: #4a8fe7;
  --on-ink: #0c0c0e;
  --ink-forte: #fff;
  --s-campo: #111113;
  --s-dialogo: #18181b;
  --s-menu: #1c1c1f;
  --s-ev: #2a2a2e;
  --s-ev-hover: #343439;
  --s-26: #26262a;
  --s-borda: #2c2c31;
  --s-23: #232327;
  --s-ativo: #222226;
  --sombra-forte: rgba(0, 0, 0, .6);
  --sombra-media: rgba(0, 0, 0, .35);
  --bg: #08080a;
  --frame: #151517;
  --side: #0c0c0e;
  --glass: rgba(var(--fg), .045);
  --glass-2: rgba(var(--fg), .07);
  --glass-3: rgba(var(--fg), .1);
  --line: rgba(var(--fg), .08);
  --line-2: rgba(var(--fg), .14);
  --ink: #f4f4f2;
  --ink-2: #a8a8ad;
  --ink-3: #6c6c72;
  --navy: #22407a;
  --navy-ink: #8fa6d4;
  --red: #ef5350;
  --yellow: #f2c14e;
  --green: #4cc38a;
  --r-lg: 1.75rem;
  --r-md: 1.125rem;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--sans);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.45 var(--sans);
  overflow: hidden; -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
::selection { background: var(--navy); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(var(--fg), .14) transparent; }
:focus-visible { outline: 2px solid var(--navy-ink); outline-offset: 2px; }

/* ---------- Moldura (como a referência) ---------- */
.frame {
  position: fixed; inset: 14px; display: flex; gap: 0; border-radius: 30px; background: var(--frame);
  overflow: hidden; box-shadow: 0 30px 80px var(--sombra-forte), inset 0 0 0 1px rgba(var(--fg), .05);
}
.frame::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 38% 22%, rgba(var(--fg), .07), transparent 70%),
    radial-gradient(700px 480px at 92% -6%, rgba(34, 64, 122, .22), transparent 70%);
}

/* ---------- Barra lateral ---------- */
.sidebar {
  position: relative; z-index: 2; width: 84px; flex: none; margin: 14px 0 14px 14px; border-radius: 22px;
  background: var(--side); color: var(--ink-3); display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 18px 0 14px; box-shadow: inset 0 0 0 1px rgba(var(--fg), .04);
}
.brand { display: block; width: 56px; margin-bottom: 22px; }
.brand img { display: block; width: 100%; height: auto; }
.nav-item {
  position: relative; width: 60px; padding: 10px 0 8px; border-radius: 16px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item:hover { color: var(--ink); }
.nav-item.active { background: var(--s-ativo); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(var(--fg), .07); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--navy-ink); }
.nav-item.small { padding: 8px 0 6px; }
.nav-badge {
  position: absolute; top: 4px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center;
}
.nav-spacer { flex: 1; }
.nav-account { position: relative; border: 0; background: transparent; padding: 0; margin-top: 8px; }
.acc-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: var(--s-23); color: var(--ink); font-weight: 800; font-size: 12px; border: 2px solid var(--s-borda);
}
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--side); background: var(--ink-3); }
.acc-dot.live { background: var(--green); }
.acc-dot.error { background: var(--red); }

.app { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------- Topo ---------- */
.topbar { display: flex; align-items: center; gap: 16px; padding: 22px 28px 14px; flex-wrap: wrap; }
.title { display: flex; align-items: center; gap: 16px; min-width: 0; }
h1 { font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -.01em; margin: 0; white-space: nowrap; }
.tv-logo { display: none; height: 26px; width: auto; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }

/* ---------- Comuns ---------- */
.search {
  display: flex; align-items: center; gap: 8px; color: var(--ink-3);
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px;
}
.search input { border: 0; outline: 0; background: transparent; height: 40px; width: 100%; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.chip, .chip-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-weight: 700; font-size: 13px;
  text-decoration: none; white-space: nowrap; backdrop-filter: blur(12px);
}
.chip-btn:hover { color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.count-pill {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--glass-3);
  color: var(--ink); font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center;
}
.chip-btn[aria-pressed="true"] .count-pill { background: var(--on-ink); color: var(--ink); }
.chip b, #p-mes { color: var(--ink); }
.relogio { font-family: var(--display); font-weight: 500; color: var(--ink); font-size: 14px; }
.fonte i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.fonte.vivo i { background: var(--green); box-shadow: 0 0 0 0 rgba(76, 195, 138, .6); animation: pulso 2s infinite; }
.fonte.erro i { background: var(--red); }
@keyframes pulso { 70% { box-shadow: 0 0 0 8px rgba(76, 195, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 195, 138, 0); } }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); text-decoration: none;
}
.icon-btn:hover { color: var(--ink); background: var(--glass-2); }
.icon-btn.ghost { border: 0; background: transparent; }
.icon-btn.danger { color: var(--red); }
.icon-btn.spinning svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--glass-2); color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--glass-3); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: var(--ink-forte); }
.btn.small { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 11px; }
.muted { color: var(--ink-3); }
.link { color: var(--ink-2); font-weight: 700; font-size: 13px; text-decoration: none; }
.link:hover { color: var(--ink); }

/* Segmentado (abas do painel) */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.seg button {
  position: relative; overflow: hidden; border: 0; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 13px;
  height: 34px; padding: 0 18px; border-radius: 999px;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.seg button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--navy); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; color: var(--ink); font-weight: 800; font-size: 13px; background: var(--g, var(--s-ev));
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.ring { padding: 2px; background: linear-gradient(135deg, var(--ink), #55555b); }
.avatar.ring > * { border-radius: 50%; border: 2px solid var(--frame); }
.avatar.ring > span { width: 100%; height: 100%; display: grid; place-items: center; background: var(--g); }
.avatar.xl { width: 88px; height: 88px; font-size: 28px; }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.avatar.md { width: 44px; height: 44px; font-size: 15px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--glass-2); color: var(--ink-2); }
.stage-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.stage-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.stage-chip.outside::before { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-3); }

.connect-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 28px 6px; padding: 12px 12px 12px 20px; border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600;
}

/* ================= Painel ================= */
.painel { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 4px 28px 28px; font-size: 1rem; }
.aba { display: flex; flex-direction: column; gap: 1.1rem; animation: entra .35s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
.carregando { padding: 80px 0; text-align: center; color: var(--ink-3); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }
.box {
  position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg);
  backdrop-filter: blur(18px); overflow: hidden; min-width: 0;
}
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: .9rem; }
.box-head .muted { font-size: .8rem; font-weight: 700; }
h3 { margin: 0; font-size: .95rem; font-weight: 700; color: var(--ink); }
.legenda { display: flex; gap: 1rem; font-size: .78rem; color: var(--ink-2); font-weight: 700; }
.legenda i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* Resultado */
.g-resultado { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 1.1rem; }
.col-dir { display: grid; grid-template-rows: 1fr auto; gap: 1.1rem; min-width: 0; }
.hero {
  padding: 2.4rem 2.6rem 1.4rem; display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; grid-template-rows: 1fr auto; gap: .6rem 1.6rem;
  background: linear-gradient(135deg, rgba(var(--fg), .085), rgba(var(--fg), .03) 55%, rgba(34, 64, 122, .12));
}
.hero::after { content: ""; position: absolute; right: -6rem; top: -8rem; width: 26rem; height: 26rem; border-radius: 50%; border: 1px solid rgba(var(--fg), .05); pointer-events: none; }
.hero-txt { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pre { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.hero-num { font-family: var(--display); font-weight: 500; font-size: 4.4rem; letter-spacing: -.035em; line-height: 1.05; margin-top: .7rem; white-space: nowrap; }
.hero-num small { font-size: 2rem; margin-right: .5rem; color: var(--ink-2); letter-spacing: 0; }
.hero-de { font-size: 1.05rem; color: var(--ink-2); font-weight: 600; margin-top: .3rem; }
.hero-de b { color: var(--ink); }
.pill {
  align-self: flex-start; margin-top: 1.6rem; height: 3rem; padding: 0 1.8rem; border-radius: 14px; background: var(--ink); color: var(--on-ink);
  display: inline-flex; align-items: center; font-weight: 800; font-size: .95rem; box-shadow: 0 10px 30px var(--sombra-media);
}
.anel { position: relative; display: grid; place-items: center; }
.anel svg { width: 15.5rem; height: 15.5rem; }
#r-arco { transition: stroke-dasharray 1.2s cubic-bezier(.2, .8, .2, 1); }
.anel-c { position: absolute; text-align: center; }
.anel-c b { display: block; font-family: var(--display); font-weight: 500; font-size: 2.6rem; letter-spacing: -.02em; }
.anel-c span { font-size: .8rem; color: var(--ink-2); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.hero-faixa {
  grid-column: 1 / -1; display: flex; background: rgba(var(--fg), .06); border: 1px solid var(--line);
  border-radius: 1.4rem; padding: 1.1rem .4rem; backdrop-filter: blur(18px); margin-top: .6rem;
}
.num { flex: 1; min-width: 0; padding: 0 1.2rem; border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; }
.num b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num b small { font-size: .55em; color: var(--ink-2); margin-right: .25em; letter-spacing: 0; }
.num span { display: block; color: var(--ink-2); font-size: .78rem; font-weight: 700; margin-top: .35rem; }
.num .sub { height: 3px; border-radius: 2px; background: rgba(var(--fg), .1); margin-top: .7rem; overflow: hidden; width: 70%; }
.num .sub i { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.num .alvo { font-size: .7rem; color: var(--ink-3); font-weight: 700; margin-top: .3rem; }

.graf { padding: 1.4rem 1.5rem 1rem; display: flex; flex-direction: column; min-height: 13rem; }
.graf svg { flex: 1; width: 100%; height: 100%; min-height: 8rem; }
.graf svg { stroke: none; stroke-width: 1; }
.fat { padding: 1.4rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) 7.6rem; gap: 1rem; }
.fat-main { display: flex; flex-direction: column; min-width: 0; }
.fat-valor { font-family: var(--display); font-weight: 500; font-size: 2.3rem; letter-spacing: -.02em; margin: .7rem 0 .9rem; white-space: nowrap; }
.fat-valor small { font-size: 1.1rem; margin-right: .3rem; color: var(--ink-2); }
.fat-sub { margin-top: auto; font-size: .8rem; color: var(--ink-2); font-weight: 700; }
.fina { height: 4px; border-radius: 2px; background: rgba(var(--fg), .08); margin-top: .5rem; overflow: hidden; }
.fina i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--ink); transition: width 1s; }
.tile {
  border-radius: 1.2rem; background: linear-gradient(160deg, rgba(var(--fg), .1), rgba(var(--fg), .02));
  border: 1px solid var(--line); padding: 1rem .9rem; display: flex; flex-direction: column; justify-content: space-between;
}
.tile small { color: var(--ink-3); font-size: .72rem; font-weight: 700; line-height: 1.3; }
.tile b { font-family: var(--display); font-weight: 500; font-size: 1.15rem; white-space: nowrap; }
.tile b small { display: block; font-size: .7rem; color: var(--ink-2); margin-bottom: .1rem; }

.lista { padding: 1.3rem 1.5rem 1rem; }
.tab-cab { display: grid; align-items: center; gap: 1rem; padding: 0 1rem .7rem; color: var(--ink-3); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line-2); margin-bottom: .6rem; }
.linha {
  display: grid; align-items: center; gap: 1rem; padding: .55rem 1rem; min-height: 3.4rem; border-radius: 1.1rem;
  background: var(--glass-2); border: 1px solid rgba(var(--fg), .04); margin-bottom: .45rem;
}
.funil-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) 5rem 6rem 8rem; }
.etapa b { display: block; font-weight: 700; font-size: .92rem; }
.etapa small { color: var(--ink-3); font-size: .74rem; font-weight: 600; }
.trilho { height: 6px; border-radius: 3px; background: rgba(var(--fg), .06); overflow: hidden; }
.trilho i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ink), #8d8d93); }
.v { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.v.dim { color: var(--ink-2); font-weight: 600; }
.big { font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
.flag { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.flag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.flag.r::before { background: var(--red); } .flag.y::before { background: var(--yellow); } .flag.g::before { background: var(--green); }
.vazio { color: var(--ink-3); font-size: .9rem; padding: 1.2rem 1rem; }

.direct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.dg { border-radius: 1.1rem; background: var(--glass-2); padding: .9rem 1rem; text-decoration: none; display: block; border: 1px solid rgba(var(--fg), .04); }
.dg:hover { background: var(--glass-3); }
.dg b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.6rem; }
.dg span { font-size: .76rem; color: var(--ink-2); font-weight: 700; }
.etapas-mini { display: flex; gap: 3px; margin-top: .9rem; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(var(--fg), .05); }
.etapas-mini i { display: block; height: 100%; }

/* Time */
.flags-leg { display: flex; gap: 14px; }
.flags-leg span { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.flags-leg i { width: 9px; height: 9px; border-radius: 3px; }
.flags-leg .r { background: var(--red); } .flags-leg .y { background: var(--yellow); } .flags-leg .g { background: var(--green); }
.pessoa { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.pessoa > div:last-child { min-width: 0; }
.av { width: 2.4rem; height: 2.4rem; border-radius: .8rem; display: grid; place-items: center; font-family: var(--display); font-weight: 500; font-size: .95rem; background: var(--s-ev); flex: none; }
.pessoa b { display: block; font-size: .95rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pessoa small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .68rem; color: var(--ink-3); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pessoa small em { font-style: normal; color: var(--ink-2); }
.quadros { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; }
.quadros i { height: 1.4rem; border-radius: 6px; background: rgba(var(--fg), .06); }
.quadros i.r { background: var(--red); } .quadros i.y { background: var(--yellow); } .quadros i.g { background: var(--green); }
.g-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }

/* Financeiro */
.g-anos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.9fr); gap: 1.1rem; }
.ano { padding: 1.2rem 1.4rem; }
.ano small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.ano b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.55rem; margin: .5rem 0 .2rem; white-space: nowrap; }
.ano span { color: var(--ink-3); font-size: .78rem; font-weight: 600; }
.ano.atual { background: linear-gradient(135deg, rgba(var(--fg), .11), rgba(var(--fg), .03)); }
.mes-res { padding: 1.2rem 1.4rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem 1rem; align-items: end; }
.mes-res h3 { grid-column: 1 / -1; }
.mes-res small { display: block; color: var(--ink-3); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mes-res b { font-family: var(--display); font-weight: 500; font-size: 1.15rem; white-space: nowrap; }
.g-fin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 1.1rem; }
.g-fin .graf { min-height: 18rem; }
.venda { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .8rem; padding: .7rem 1rem; border-radius: 1rem; background: var(--glass-2); margin-bottom: .45rem; }
.venda b { font-size: .9rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venda .val { font-family: var(--display); font-weight: 500; font-size: .95rem; text-align: right; }
.venda small { color: var(--ink-3); font-size: .75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venda .dt { text-align: right; }
.faixa { display: flex; padding: 1.3rem .4rem; }

/* ================= Funil (kanban) ================= */
.board { flex: 1; min-height: 0; display: flex; gap: 14px; padding: 6px 28px 24px; overflow-x: auto; overflow-y: hidden; }
.column {
  flex: 0 0 292px; display: flex; flex-direction: column; background: var(--glass); border-radius: 24px;
  min-height: 0; border: 1px solid var(--line); transition: border-color .15s, background .15s;
}
.column.drop { border-color: var(--navy-ink); background: rgba(34, 64, 122, .14); }
.col-head { padding: 16px 16px 10px; }
.col-title { display: flex; align-items: center; gap: 8px; }
.column { position: relative; overflow: hidden; }
.column::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--stage, var(--ink-3)); }
/* Coluna de vendas feitas: brilho verde suave atrás + sino */
.column.ganha {
  border-color: rgba(76, 195, 138, .38);
  background: radial-gradient(120% 60% at 50% 0%, rgba(76, 195, 138, .16), transparent 70%), var(--glass);
  box-shadow: 0 0 0 1px rgba(76, 195, 138, .08), 0 0 28px rgba(76, 195, 138, .22), 0 0 70px rgba(76, 195, 138, .10);
  animation: ganha-brilho 4s ease-in-out infinite;
}
.column.ganha::before { background: var(--green); box-shadow: 0 0 14px rgba(76, 195, 138, .7); }
.column.ganha .col-sum { color: var(--green); }
.sino { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; background: rgba(76, 195, 138, .16); color: var(--green); }
.sino svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 10%; animation: sino-toca 6s ease-in-out infinite; }
@keyframes ganha-brilho { 50% { box-shadow: 0 0 0 1px rgba(76, 195, 138, .12), 0 0 36px rgba(76, 195, 138, .30), 0 0 90px rgba(76, 195, 138, .14); } }
@keyframes sino-toca { 0%, 88%, 100% { transform: rotate(0); } 90% { transform: rotate(14deg); } 92% { transform: rotate(-12deg); } 94% { transform: rotate(8deg); } 96% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .column.ganha, .sino svg { animation: none; } }
.col-title h2 { font-size: 13px; font-weight: 800; margin: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-title h2[contenteditable="true"] { outline: 1px solid var(--navy-ink); border-radius: 6px; padding: 0 4px; background: var(--glass-2); }
.col-count { font-size: 12px; color: var(--ink-3); font-weight: 800; }
.col-menu { border: 0; background: transparent; color: var(--ink-3); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.col-menu:hover { background: var(--glass-2); color: var(--ink); }
.col-sum { font-family: var(--display); font-size: 13px; color: var(--ink-2); margin-top: 6px; min-height: 18px; }
.cards { flex: 1; overflow-y: auto; padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.empty { color: var(--ink-3); font-size: 12px; text-align: center; padding: 22px 10px; border: 1px dashed var(--line-2); border-radius: 16px; }
.card {
  background: var(--glass-2); border-radius: 18px; padding: 12px 12px 12px 14px;
  cursor: pointer; position: relative; border: 1px solid rgba(var(--fg), .05); user-select: none; transition: background .15s;
}
.card:hover { background: var(--glass-3); }
.card.dragging { opacity: .4; }
.card.awaiting::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ink); }
.card-top { display: flex; gap: 10px; align-items: center; }
.card-who { flex: 1; min-width: 0; }
.card-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-user { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-time { font-size: 11px; color: var(--ink-3); align-self: flex-start; white-space: nowrap; font-weight: 700; }
.card-msg { margin: 9px 0 0; color: var(--ink-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.unread .card-msg { color: var(--ink); font-weight: 700; }
.card-foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.card-foot:empty { display: none; }
.value { font-family: var(--display); font-size: 12px; color: var(--ink); }
.badge {
  margin-left: auto; min-width: 20px; height: 20px; border-radius: 999px; padding: 0 6px; background: var(--ink);
  color: var(--on-ink); font-size: 11px; font-weight: 800; display: inline-grid; place-items: center;
}
.clock { font-size: 11px; font-weight: 700; color: var(--yellow); }
.add-col {
  flex: 0 0 220px; border: 1px dashed var(--line-2); border-radius: 24px; background: transparent;
  color: var(--ink-3); font-weight: 800; align-self: flex-start; height: 56px;
}
.add-col:hover { color: var(--ink); border-color: var(--ink-3); }
.add-col-form { flex: 0 0 240px; align-self: flex-start; display: flex; gap: 6px; }
.add-col-form input { flex: 1; height: 48px; border-radius: 16px; border: 1px solid var(--line-2); padding: 0 14px; background: var(--glass-2); outline: 0; }

/* ================= Direct ================= */
#view-direct { flex-direction: row; padding: 14px 14px 14px 0; gap: 12px; }
.inbox {
  width: 360px; flex: none; display: flex; flex-direction: column; min-height: 0;
  background: var(--glass); border: 1px solid var(--line); border-radius: 26px;
}
.inbox-head { padding: 20px 18px 10px; display: flex; flex-direction: column; gap: 14px; }
.inbox-title { display: flex; align-items: center; justify-content: space-between; }
.inbox-title h1 { font-size: 20px; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  border: 0; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 12.5px;
  padding: 7px 11px; border-radius: 999px; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.convos { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.convo { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 18px; cursor: pointer; text-decoration: none; color: inherit; }
.convo:hover { background: var(--glass-2); }
.convo.active { background: var(--glass-3); }
.convo-main { flex: 1; min-width: 0; }
.convo-name { display: flex; align-items: center; gap: 6px; }
.convo-name strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo.unread .convo-name strong { font-weight: 800; }
.convo-last { display: flex; gap: 4px; color: var(--ink-3); font-size: 13px; min-width: 0; }
.convo-last span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-last span:last-child { white-space: nowrap; flex: none; }
.convo.unread .convo-last { color: var(--ink); font-weight: 700; }
.convo-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.inbox-empty { color: var(--ink-3); text-align: center; padding: 40px 20px; font-size: 13px; display: flex; flex-direction: column; gap: 14px; align-items: center; }

.thread { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; background: var(--glass); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.thread-empty { margin: auto; text-align: center; color: var(--ink-3); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.thread-empty h2 { color: var(--ink); margin: 10px 0 0; font-family: var(--display); font-weight: 500; font-size: 22px; }
.thread-empty p { margin: 0 0 14px; }
.empty-icon { width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); background: var(--glass); }
.empty-icon svg { width: 38px; height: 38px; stroke-width: 1.4; }
.thread-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.thread-head .who { flex: 1; min-width: 140px; display: flex; align-items: center; gap: 10px; }
.who-text { min-width: 0; }
.who-text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.who-text span { font-size: 12px; color: var(--ink-3); }
.thread-head .back { display: none; border: 0; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.stage-select, .field select {
  height: 36px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--s-menu); padding: 0 10px; font-weight: 700; max-width: 220px;
}
.stage-select.outside { border-style: dashed; color: var(--ink); }

.messages { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 2px; }
.thread-profile { text-align: center; padding: 18px 0 26px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.thread-profile > strong { font-size: 18px; margin-top: 10px; font-weight: 800; }
.thread-profile > span { color: var(--ink-3); font-size: 13px; }
.thread-profile .btn { margin-top: 12px; }
.day { align-self: center; font-size: 11px; color: var(--ink-3); font-weight: 800; margin: 14px 0 8px; }
.row { display: flex; align-items: flex-end; gap: 8px; max-width: 72%; }
.row.in { align-self: flex-start; }
.row.out { align-self: flex-end; flex-direction: row-reverse; }
.row .avatar.sm { visibility: hidden; }
.row.last .avatar.sm { visibility: visible; }
.row.out .avatar.sm { display: none; }
.bubble { padding: 9px 14px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.38; }
.row.in .bubble { background: var(--s-26); color: var(--ink); }
.row.out .bubble { background: var(--ink); color: var(--on-ink); font-weight: 500; }
.row.in:not(.last) .bubble { border-bottom-left-radius: 6px; }
.row.in:not(.first) .bubble { border-top-left-radius: 6px; }
.row.out:not(.last) .bubble { border-bottom-right-radius: 6px; }
.row.out:not(.first) .bubble { border-top-right-radius: 6px; }
.row.last { margin-bottom: 6px; }
.bubble.media { padding: 0; background: transparent !important; overflow: hidden; }
.bubble.media img, .bubble.media video { display: block; max-width: 260px; max-height: 340px; border-radius: 18px; }
.bubble audio { display: block; width: 240px; max-width: 100%; height: 36px; }
.bubble a { color: inherit; }
.attach-note { font-size: 12px; opacity: .85; }
.bubble.broken { padding: 9px 14px; }
.row.in .bubble.broken { background: var(--s-26) !important; }
.row.out .bubble.broken { background: var(--ink) !important; }
.stamp { font-size: 10px; color: var(--ink-3); margin: 0 6px; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.row:hover .stamp, .row.last .stamp { opacity: 1; }
.row.pending .bubble { opacity: .55; }

.window-bar { font-size: 12px; font-weight: 600; padding: 6px 22px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.window-bar.closed { color: var(--red); }
.window-bar:empty { display: none; }
.composer { padding: 6px 16px 16px; }
.composer-box { display: flex; align-items: flex-end; gap: 4px; border: 1px solid var(--line-2); border-radius: 26px; padding: 4px 6px; background: rgba(var(--fg), .03); }
.composer-box:focus-within { border-color: var(--ink-3); }
.composer textarea { flex: 1; resize: none; border: 0; padding: 9px 6px; background: transparent; outline: 0; max-height: 140px; line-height: 1.35; }
.composer textarea::placeholder { color: var(--ink-3); }
.send-text { border: 0; background: var(--ink); color: var(--on-ink); font-weight: 800; height: 34px; padding: 0 16px; border-radius: 999px; margin: 3px; }
.composer.locked { opacity: .5; pointer-events: none; }
.recorder { margin: 6px 16px 0; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 26px; background: var(--ink); color: var(--on-ink); }
.recorder .icon-btn { background: rgba(0, 0, 0, .08); border: 0; color: var(--on-ink); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pisca 1s infinite; }
@keyframes pisca { 50% { opacity: .3; } }
#rec-time { font-variant-numeric: tabular-nums; font-weight: 800; min-width: 36px; }
#rec-wave { flex: 1; min-width: 0; height: 32px; }
.send-pill { border: 0; background: var(--on-ink); color: var(--ink); font-weight: 800; height: 34px; padding: 0 16px; border-radius: 999px; }

/* Painel do lead */
.lead-info { width: 300px; flex: none; overflow-y: auto; padding: 22px 18px; background: var(--glass); border: 1px solid var(--line); border-radius: 26px; }
.lead-info .close-info { display: none; float: right; border: 0; }
.profile { text-align: center; margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; }
.profile .avatar { margin-bottom: 12px; }
.profile h3 { margin: 0; font-size: 16px; }
.profile .handle { color: var(--ink-3); font-size: 13px; }
.profile .meta { color: var(--ink-3); font-size: 12px; margin-top: 6px; }
.profile .btn { margin-top: 12px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 10.5px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; max-width: none; border: 1px solid var(--line-2); border-radius: 12px; background: var(--s-menu); padding: 9px 11px; outline: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-3); }
.field textarea { resize: vertical; min-height: 120px; }
.stage-steps { display: flex; gap: 3px; margin-top: 9px; }
.stage-steps span { flex: 1; height: 4px; border-radius: 2px; background: rgba(var(--fg), .08); }
.stage-steps span.on { background: var(--ink); }
.tags-edit { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--s-menu); }
.tags-edit .tag { display: inline-flex; align-items: center; gap: 4px; }
.tags-edit .tag button { border: 0; background: transparent; padding: 0; color: var(--ink-3); line-height: 1; }
.tags-edit input { border: 0 !important; padding: 2px 4px !important; flex: 1; min-width: 80px; width: auto !important; background: transparent !important; }
.hint { font-size: 11px; color: var(--ink-3); margin-top: 5px; }
.info-toggle { display: none; }

/* ---------- Etiquetas ---------- */
.lbl {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 22px; padding: 0 9px 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: var(--ink); white-space: nowrap;
  background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
}
.lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.lbl > span { overflow: hidden; text-overflow: ellipsis; }
.lbl.more { --c: #8d8d93; padding: 0 8px; }
.lbl.more::before { display: none; }
.lbl button { border: 0; background: transparent; padding: 0 0 0 2px; color: var(--ink-2); line-height: 1; font-size: 14px; }
.lbl button:hover { color: var(--ink); }
.card-lbls { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.convo-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; min-width: 0; overflow: hidden; }
.convo-meta .lbl { height: 18px; font-size: 10px; padding: 0 7px 0 6px; }
.lbl-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lbl-add { height: 24px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); font-size: 11.5px; font-weight: 800; }
.lbl-add:hover { color: var(--ink); border-color: var(--ink-3); }
.label-pop {
  position: fixed; z-index: 55; width: 260px; background: var(--s-menu); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.label-pop input { height: 38px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--s-campo); padding: 0 12px; outline: 0; }
.label-pop input:focus { border-color: var(--ink-3); }
.lp-list { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.lp-item { display: flex; align-items: center; border-radius: 10px; }
.lp-item:hover { background: var(--glass-2); }
.lp-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 8px 6px 8px 9px; text-align: left; font-weight: 700; }
.lp-pick i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }
.lp-pick span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-pick b { opacity: 0; font-size: 13px; }
.lp-item.on .lp-pick b { opacity: 1; }
.lp-edit { border: 0; background: transparent; color: var(--ink-3); width: 30px; height: 30px; border-radius: 8px; flex: none; }
.lp-edit:hover { color: var(--ink); background: var(--glass-2); }
.lp-empty, .lp-hint { color: var(--ink-3); font-size: 12px; padding: 6px 4px; }
.lp-new { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.lp-new-name { font-size: 12.5px; color: var(--ink-2); padding: 0 4px; }
.lp-new-name b { color: var(--ink); }
.label-pop .swatches { padding: 0 2px; }
.lp-title { font-weight: 800; padding: 2px 4px; }
.lp-actions { display: flex; gap: 6px; justify-content: flex-end; }
.lp-del { color: var(--red); margin-right: auto; }

/* ---------- Menu, diálogo, avisos ---------- */
.menu { position: fixed; z-index: 50; background: var(--s-menu); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 210px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 11px; border-radius: 10px; font-weight: 600; }
.menu button:hover { background: var(--glass-2); }
.menu button:disabled { color: var(--ink-3); cursor: default; background: transparent; }
.menu button.danger { color: var(--red); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; padding: 6px 11px 8px; }
.swatches button { width: 22px; height: 22px; padding: 0; border-radius: 50%; background: var(--c) !important; border: 2px solid transparent; }
.swatches button.on { border-color: var(--ink); }
.dialog { border: 1px solid var(--line-2); border-radius: 24px; padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--s-dialogo); color: var(--ink); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: var(--sombra-forte); backdrop-filter: blur(4px); }
.dialog form { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.dialog h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 20px; }
.dialog p { margin: 0; font-size: 13px; line-height: 1.5; }
.dialog label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.dialog label small { font-weight: 500; color: var(--ink-3); }
.dialog input { height: 44px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; background: var(--s-campo); outline: 0; font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--ink); }
.dialog input:focus { border-color: var(--ink-3); }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.dialog-actions a { margin-right: auto; }
.form-error { color: var(--red); }
.btn.big { height: 50px; font-size: 15px; border-radius: 16px; width: 100%; }
.cx { display: flex; flex-direction: column; gap: 12px; }
.cx .btn.small { align-self: flex-start; }
.cx-manual { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.cx-manual summary { cursor: pointer; color: var(--ink-3); font-size: 12.5px; font-weight: 700; }
.cx-manual[open] { gap: 10px; }
.cx-manual label { margin: 10px 0; }
.toasts { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: var(--on-ink); padding: 11px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); max-width: min(520px, calc(100vw - 32px)); font-size: 13px; font-weight: 700; }
.toast.error { background: var(--red); color: #fff; }

/* ---------- Modo TV: só o painel, tela cheia, troca sozinho ---------- */
html.tv { font-size: min(calc(100vw / 92), calc(100vh / 54)); }
html.tv .frame { inset: 1.2vh 1.2vw; }
html.tv .sidebar { display: none; }
html.tv .topbar { padding: 1.6rem 2rem 1rem; }
html.tv .title h1 { font-size: 1.7rem; }
html.tv .tv-logo { display: block; height: 1.6rem; }
html.tv .seg button, html.tv .chip { height: 2.6rem; font-size: .85rem; }
html.tv .seg button { pointer-events: none; }
html.tv .painel { overflow: hidden; padding: .2rem 2rem 2rem; }
html.tv .painel .link { display: none; }
html.tv #p-fonte { pointer-events: none; }
html.tv .hero { padding: 1.8rem 2.2rem 1.2rem; }
html.tv .hero-num { font-size: 3.5rem; }
html.tv .etapa small { display: none; }
html.tv .tab-cab.funil-grid { display: none; }
html.tv .graf { min-height: 11rem; }
html.tv .aba, html.tv .g-resultado, html.tv .col-dir { gap: .9rem; }
html.tv .hero-faixa { padding: .8rem .4rem; }
html.tv .pill { margin-top: 1.1rem; }
html.tv .anel svg { width: 12rem; height: 12rem; }
html.tv .linha { min-height: 2.9rem; padding: .35rem 1rem; margin-bottom: .35rem; }
html.tv .lista { padding: 1.1rem 1.3rem .8rem; }
html.tv .dg { padding: .75rem .9rem; }

@media (prefers-reduced-motion: reduce) { .icon-btn.spinning svg, .rec-dot, .fonte.vivo i, .aba { animation: none; } }

/* ---------- Telas menores ---------- */
@media (max-width: 1280px) {
  .g-resultado, .g-fin { grid-template-columns: minmax(0, 1fr); }
  .col-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .g-anos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-anos .mes-res { grid-column: 1 / -1; }
  .info-toggle { display: grid; }
  .lead-info { position: fixed; top: 14px; right: 14px; bottom: 14px; z-index: 40; box-shadow: var(--shadow-lg); width: min(320px, calc(100vw - 28px)); background: var(--s-dialogo); }
  .lead-info .close-info { display: grid; }
  #view-direct:not(.show-info) .lead-info { display: none; }
}
@media (max-width: 960px) {
  .frame { inset: 0; border-radius: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 1.6rem; }
  .anel { display: none; }
  .hero-num { font-size: 3rem; }
  .hero-faixa, .faixa { flex-wrap: wrap; row-gap: 1rem; }
  .hero-faixa .num, .faixa .num { flex: 1 1 45%; }
  .col-dir, .g-2 { grid-template-columns: minmax(0, 1fr); }
  .funil-grid { grid-template-columns: minmax(0, 1fr) 4rem 5rem; }
  .funil-grid > :nth-child(2), .funil-grid > :nth-child(5) { display: none; }
  .tl-flags .quadros, .tl-flags > :nth-child(2), .tl-flags > :nth-child(5) { display: none; }
  .inbox { width: 100%; }
  #view-direct { padding: 10px; }
  #view-direct.has-thread .inbox { display: none; }
  #view-direct:not(.has-thread) .thread { display: none; }
  .thread-head .back { display: grid; }
  .row { max-width: 86%; }
  .stage-select { max-width: 150px; }
}
@media (max-width: 640px) {
  body { overflow: hidden; }
  .frame { flex-direction: column-reverse; }
  .sidebar { width: auto; margin: 0 10px 10px; flex-direction: row; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .brand, .nav-spacer, .nav-item.small { display: none; }
  .nav-item.active::before { display: none; }
  .topbar { padding: 16px 16px 10px; gap: 10px; }
  .topbar .search { order: 3; flex-basis: 100%; }
  .painel { padding: 4px 16px 16px; }
  .board { padding: 6px 16px 16px; }
  .column { flex-basis: 84vw; }
  .g-anos { grid-template-columns: minmax(0, 1fr); }
  .head-actions .btn .label { display: none; }
}

/* ---------- Google: conexão ---------- */
.g-conectar { flex: 1; display: grid; place-items: center; padding: 28px; }
.g-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); }
.g-card h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 20px; }
.g-card p { margin: 0; font-size: 13px; line-height: 1.5; }
.g-card label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.g-card input { height: 44px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; background: var(--s-campo); outline: 0; font: 12px ui-monospace, Menlo, monospace; color: var(--ink); }
.g-card a.btn { display: grid; place-items: center; text-decoration: none; }
.g-conta { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.g-cal { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px; font-weight: 600; cursor: pointer; max-width: 280px; }
.g-cal:hover { background: var(--glass-2); }
.g-cal span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-cal input { accent-color: var(--ev, var(--ink)); }

/* ---------- Agenda ---------- */
.ag-nav { display: flex; align-items: center; gap: 8px; }
.ag-periodo { font-weight: 700; color: var(--ink-2); margin-left: 6px; white-space: nowrap; }
.agenda { --n: 7; --gut: 58px; flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0 28px 24px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); overflow: hidden; }
.ag-cab, .ag-todo, .ag-corpo { display: grid; grid-template-columns: var(--gut) repeat(var(--n), minmax(0, 1fr)); }
.ag-cab { border-bottom: 1px solid var(--line); padding-right: 8px; }
.ag-dia { padding: 12px 10px 10px; display: flex; align-items: baseline; gap: 7px; border-left: 1px solid var(--line); }
.ag-dia small { font-size: 11px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.ag-dia b { font-family: var(--display); font-weight: 500; font-size: 20px; }
.ag-dia.hoje b { background: var(--ink); color: var(--on-ink); border-radius: 10px; padding: 1px 8px; }
.ag-todo { border-bottom: 1px solid var(--line); padding-right: 8px; min-height: 34px; }
.ag-rot { font-size: 10px; color: var(--ink-3); padding: 9px 6px; text-align: right; }
.ag-todo-col { border-left: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; cursor: pointer; }
.ag-rolo { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
.ag-corpo { position: relative; }
.ag-horas { position: relative; }
.ag-horas span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 10.5px; color: var(--ink-3); }
.ag-col { position: relative; border-left: 1px solid var(--line); cursor: pointer;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 52px); }
.ag-col.hoje { background-color: rgba(var(--fg), .02); }
.ag-ev { position: absolute; z-index: 1; text-align: left; border: 1px solid rgba(var(--fg), .16); border-radius: 10px; padding: 5px 8px; background: var(--s-ev); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 4px 14px var(--sombra-media); }
.ag-ev:hover { background: var(--s-ev-hover); z-index: 2; }
.ag-ev b { font-size: 12px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; flex: none; }
.ag-ev.medio b { -webkit-line-clamp: 1; }
.ag-ev span { font-size: 10.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev.curto { flex-direction: row; align-items: center; gap: 6px; padding: 2px 8px; }
.ag-ev.curto b { display: block; white-space: nowrap; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.ag-ev.curto span { flex: none; }
/* Cor de cada evento = a mesma do Google Agenda (exceção à regra de cores, como as etiquetas) */
.ag-ev { background: var(--ev, var(--s-ev)); color: var(--ev-tx, var(--ink)); border-color: rgba(0, 0, 0, .12); }
.ag-ev:hover { background: var(--ev, var(--s-ev-hover)); filter: brightness(1.08); }
.ag-ev span { color: inherit; opacity: .85; }
.ag-ev.recusado { background: var(--s-menu); color: var(--ink-2); border: 1px solid var(--ev); }
.ag-ev.recusado b { text-decoration: line-through; }
.ag-ev.todo { position: static; flex-direction: row; padding: 3px 8px; font-size: 11.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; box-shadow: none; }
.ag-agora { position: absolute; left: -1px; right: 0; height: 2px; background: var(--navy-ink); z-index: 3; pointer-events: none; }
.ag-agora::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy-ink); }

/* Evento */
.dialog.ev { width: min(520px, calc(100vw - 32px)); }
.dialog.ev form { gap: 12px; }
.dialog.ev input, .dialog.ev select, .dialog.ev textarea { font: 13.5px var(--sans); color: var(--ink); background: var(--s-campo); border: 1px solid var(--line-2); border-radius: 12px; outline: 0; }
.dialog.ev input, .dialog.ev select { height: 42px; padding: 0 12px; }
.dialog.ev textarea { padding: 10px 12px; resize: vertical; }
.dialog.ev input:focus, .dialog.ev textarea:focus, .dialog.ev select:focus { border-color: var(--ink-3); }
.dialog.ev .ev-titulo { height: 50px; font: 500 19px var(--display); border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; padding: 0 2px; }
.ev-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ev-linha select { flex: 1; min-width: 180px; max-width: 300px; }
.ev-linha select:disabled { color: var(--ink-3); }
.dialog.ev label.ev-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.dialog.ev .ev-check input { width: 16px; height: 16px; accent-color: var(--ink); }
.ev-grade { display: grid; grid-template-columns: 52px 1fr 120px; gap: 8px; align-items: center; }
.ev-grade span { font-size: 11px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.dia-inteiro .ev-grade { grid-template-columns: 52px 1fr; }
.dia-inteiro .ev-grade input[type="time"] { display: none; }
.ev-excluir { margin-right: auto; color: var(--red); }
.ev-excluir.confirmar { background: var(--red); color: #fff; border-color: var(--red); }
.dialog.ev input[type="date"]::-webkit-calendar-picker-indicator, .dialog.ev input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .5; }

/* ---------- Planilhas ---------- */
.planilhas { flex: 1; min-height: 0; display: flex; padding: 0 28px 24px; }
.pl-area { position: relative; flex: 1; min-width: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--glass); }
.pl-area iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }

@media (max-width: 760px) {
  .agenda { margin: 0 12px 12px; --gut: 44px; }
  .planilhas { padding: 0 12px 12px; }
  .ag-dia { flex-direction: column; gap: 0; padding: 8px 4px; align-items: center; }
}


/* Tema claro (botão sol/lua na barra lateral). Mesma lógica: branco, cinza e preto. */
:root[data-tema="claro"] {
  --fg: 0, 0, 0;
  --bg: #dcdce0;
  --frame: #f6f6f7;
  --side: #ffffff;
  --ink: #111113;
  --ink-2: #4f4f56;
  --ink-3: #8a8a91;
  --on-ink: #ffffff;
  --ink-forte: #000;
  --navy-ink: #22407a;
  --azul: #2f6fd6;
  --green: #23a466;
  --s-campo: #ffffff;
  --s-dialogo: #ffffff;
  --s-menu: #ffffff;
  --s-ev: #ececef;
  --s-ev-hover: #e2e2e6;
  --s-26: #ededf0;
  --s-borda: #e2e2e6;
  --s-23: #eeeef1;
  --s-ativo: #ededf0;
  --sombra-forte: rgba(0, 0, 0, .14);
  --sombra-media: rgba(0, 0, 0, .1);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .14);
  color-scheme: light;
}
[data-tema="claro"] img[src="/logo-voss.png"], [data-tema="claro"] img[data-logo-texto] { filter: invert(1); }
[data-tema="claro"] .cf-logo img, [data-tema="claro"] .cf-previa img { filter: none; }
[data-tema="claro"] .dialog input[type="date"]::-webkit-calendar-picker-indicator,
[data-tema="claro"] .dialog input[type="time"]::-webkit-calendar-picker-indicator { filter: none; }
/* Gráficos do painel (cores escritas no SVG) */
[data-tema="claro"] #gAnel stop:first-child { stop-color: #111113; }
[data-tema="claro"] svg [stroke^="rgba(255,255,255"] { stroke: rgba(0, 0, 0, .1); }
[data-tema="claro"] svg [fill^="rgba(255,255,255"] { fill: rgba(0, 0, 0, .05); }
[data-tema="claro"] svg [fill="#f4f4f2"], [data-tema="claro"] svg [fill="#ffffff"] { fill: #111113; }
[data-tema="claro"] svg [stroke="#f4f4f2"] { stroke: #111113; }
[data-tema="claro"] svg [fill="#d6d6d9"] { fill: #4f4f56; }
[data-tema="claro"] svg [fill="#bdbdc2"] { fill: #4f4f56; }
[data-tema="claro"] svg [fill="#55555b"] { fill: #c4c4ca; }
[data-tema="claro"] svg [stroke="#151517"] { stroke: #fff; }
[data-tema="claro"] svg [fill="#050506"] { fill: #111113; }
[data-tema="claro"] svg [fill="#050506"] + text { fill: #fff; }
[data-tema="claro"] .legenda i[style*="#f4f4f2"] { background: #111113 !important; }

/* ---------- Tema (barra lateral) ---------- */
.tema-btn { border: 0; background: transparent; color: inherit; font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer; }
.tema-btn .lua, [data-tema="claro"] .tema-btn .sol { display: none; }
[data-tema="claro"] .tema-btn .lua { display: block; }

/* ---------- Engrenagem: etapas do funil ---------- */
.dialog.etapas { width: min(560px, calc(100vw - 32px)); }
.et-lista { display: flex; flex-direction: column; gap: 6px; max-height: min(56vh, 520px); overflow-y: auto; }
.et-linha { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.et-linha.arrastando { opacity: .4; }
.et-alca { color: var(--ink-3); cursor: grab; display: grid; place-items: center; width: 22px; }
.et-alca svg { width: 16px; height: 16px; }
.et-cor { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--c); flex: none; padding: 0; }
.dialog.etapas .et-nome { flex: 1; min-width: 0; height: 36px; font: 600 13.5px var(--sans); background: transparent; border-color: transparent; padding: 0 8px; }
.dialog.etapas .et-nome:hover { border-color: var(--line-2); }
.dialog.etapas .et-nome:focus { border-color: var(--ink-3); background: var(--s-campo); }
.et-n { font-size: 12px; font-weight: 800; color: var(--ink-3); min-width: 20px; text-align: right; }
.et-linha .icon-btn { width: 30px; height: 30px; }
.et-linha .icon-btn svg { width: 16px; height: 16px; }
.et-linha .icon-btn:disabled { opacity: .25; cursor: default; }
.et-excluir:hover, .et-excluir.confirmar { color: var(--red); }
.et-excluir.confirmar { background: rgba(239, 83, 80, .14); }
.et-paleta { padding: 4px 8px 8px 38px; }
#et-nova { align-self: flex-start; }

/* ================= Painel (5 abas) ================= */
.kp { min-width: 0; }
.kp small { display: block; color: var(--ink-3); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.45rem; letter-spacing: -.02em; margin-top: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp b small { display: inline; font-size: .55em; color: var(--ink-2); margin-right: .25em; letter-spacing: 0; text-transform: none; }
.mini-pct { display: block; margin-top: .25rem; font-size: .74rem; color: var(--ink-3); font-weight: 700; }
.kps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.kps .kp { background: var(--glass-2); border: 1px solid rgba(var(--fg), .04); border-radius: 1rem; padding: .85rem 1rem; }
.kps.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kps.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kps.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kps.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.neg { color: var(--red); }
.var { display: inline-block; margin-top: .3rem; font-size: .74rem; font-weight: 800; color: var(--ink-3); }
.var.up { color: var(--green); } .var.down { color: var(--red); }

/* Meta: topo com a meta (antes na Geral) */
.meta-box { padding: 1.5rem 1.6rem 1.3rem; }
.meta-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1.2rem; align-items: end; }
.meta-top .kp b { font-size: 2.2rem; }
.meta-pct { text-align: right; }
.meta-pct b { display: block; font-family: var(--display); font-weight: 500; font-size: 3rem; letter-spacing: -.03em; line-height: 1; margin-bottom: .4rem; }
.barra-meta { position: relative; height: 22px; border-radius: 11px; background: rgba(var(--fg), .07); margin: 1.4rem 0 1.6rem; }
.barra-meta > div { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 11px; transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.bm-fat { background: var(--azul); }
.bm-cash { background: var(--green); box-shadow: 0 0 18px rgba(76, 195, 138, .35); }
.marca { position: absolute; top: 100%; transform: translateX(-50%); font-size: .66rem; font-weight: 800; color: var(--ink-3); padding-top: .35rem; }
.marca i { position: absolute; left: 50%; bottom: calc(100% + 0px); width: 1px; height: 22px; background: rgba(var(--fg), .14); }
.marca:last-child { transform: translateX(-100%); }
.meta-rodape { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; font-size: .84rem; color: var(--ink-2); font-weight: 600; }
.meta-rodape b { color: var(--ink); }
.meta-rodape .sep { flex: 1; }
.lg { display: inline-block; width: 14px; height: 6px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.lg-cash { background: var(--green); } .lg-fat { background: var(--azul); } .lg-custo { background: #8a8a91; }
.legenda .lg { height: 4px; }

/* Taxas com meta */
.taxas { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem; margin-top: .7rem; }
.tx { border-radius: 1rem; padding: .75rem 1rem; border: 1px dashed var(--line-2); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .15rem .6rem; }
.tx small { grid-column: 1 / -1; color: var(--ink-3); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tx b { font-family: var(--display); font-weight: 500; font-size: 1.3rem; }
.tx > span:last-child { grid-column: 1 / -1; font-size: .7rem; color: var(--ink-3); font-weight: 600; }

/* Time: flag ao lado de cada pessoa */
.lado { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.lado-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .72rem; color: var(--ink-3); font-weight: 700; }
.lado small { font-size: .68rem; color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quadros.mini { gap: 2px; }
.quadros.mini i { height: .55rem; border-radius: 3px; }
.vazio-lado { font-size: .72rem; color: var(--ink-3); }
.filtros { display: flex; gap: .5rem; flex-wrap: wrap; }
.p-select { height: 36px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); padding: 0 .8rem; font: 700 .82rem var(--sans); outline: 0; cursor: pointer; }
.p-select:focus { border-color: var(--ink-3); }
.rolagem-x { overflow-x: auto; }
.tab-dia { min-width: max-content; }
.tab-dia .tab-cab, .tab-dia .linha { grid-template-columns: var(--cols); }
.linha.fina { min-height: 2.5rem; padding: .35rem 1rem; margin-bottom: .3rem; border-radius: .8rem; }
.linha.fina .v { font-size: .86rem; }
.linha.total { background: transparent; border: 1px solid var(--line-2); }
.linha.sel { border-color: var(--ink-3); }
.linha[data-sem] { cursor: pointer; }
.linha[data-sem]:hover { background: var(--glass-3); }
.dim { color: var(--ink-3); }
.corta { overflow: hidden; text-overflow: ellipsis; }
.seg.mini { flex-wrap: wrap; }
.seg.mini button { height: 30px; padding: 0 .75rem; font-size: .76rem; }
.per-txt { margin: -.4rem 0 .9rem; font-size: .8rem; }

/* Financeiro: período no calendário */
.cal-btn { display: inline-flex; align-items: center; gap: .5rem; height: 36px; padding: 0 .85rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); font: 700 .8rem var(--sans); cursor: pointer; white-space: nowrap; }
.cal-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cal-btn i { font-style: normal; font-size: .7rem; color: var(--ink-3); transition: transform .2s; }
.cal-btn[aria-expanded="true"] { border-color: var(--ink-3); }
.cal-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.cal-painel { display: grid; grid-template-columns: 11.5rem 20rem; gap: 1rem; width: max-content; max-width: calc(100% - 2.8rem); position: absolute; top: 4.6rem; right: 1.4rem; z-index: 20; padding: .9rem; border-radius: var(--r-md); background: var(--s-menu); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: entra .2s ease both; }
.box:has(> .cal-painel) { overflow: visible; z-index: 5; }
.aba-topo { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 .2rem; }
.aba-topo .cal-painel { top: 3.1rem; right: 0; }
.cal-lista { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); padding-right: .8rem; }
.cal-lista button { text-align: left; height: 32px; padding: 0 .7rem; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: .8rem; font-weight: 700; cursor: pointer; }
.cal-lista button:hover { background: var(--glass-2); color: var(--ink); }
.cal-lista button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.cal-dir { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.cal-dir .seg { align-self: flex-start; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; }
.cal-nav b { font-size: 1rem; }
.cal-nav.sub b { font-size: .85rem; color: var(--ink-2); }
.cal-nav button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-size: 1rem; cursor: pointer; }
.cal-nav button:hover { background: var(--glass-2); }
.cal-meses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cal-meses button, .cal-dias button { height: 36px; border: 0; border-radius: 9px; background: var(--glass); color: var(--ink); font-size: .8rem; font-weight: 700; cursor: pointer; }
.cal-dias button { height: 32px; font-size: .76rem; }
.cal-meses button:hover:not(:disabled), .cal-dias button:hover:not(:disabled) { background: var(--glass-3); }
.cal-meses button:disabled, .cal-dias button:disabled { opacity: .3; cursor: default; }
.cal-meses button.on, .cal-dias button.on { background: var(--navy); color: #fff; }
.cal-meses button.pend, .cal-dias button.ponta { background: var(--ink); color: var(--on-ink); }
.cal-dias button.hoje:not(.on) { box-shadow: inset 0 0 0 1px var(--ink-3); }
.cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dias i { font-style: normal; text-align: center; font-size: .66rem; font-weight: 800; color: var(--ink-3); padding-bottom: 2px; }
.cal-ano-todo { height: 32px; border-radius: 9px; border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); font-size: .78rem; font-weight: 700; cursor: pointer; }
.cal-ano-todo:hover { color: var(--ink); border-color: var(--ink-3); }
.cal-dica { margin: 0; font-size: .72rem; color: var(--ink-3); }
@media (max-width: 640px) {
  .cal-painel { grid-template-columns: 1fr; width: auto; position: static; max-width: none; margin-bottom: 1rem; box-shadow: none; }
  .cal-lista { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 .7rem; }
  .cal-lista button { height: 28px; font-size: .74rem; }
}

/* Tráfego */
.funil-azul::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #4a8fe7; }
.passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-bottom: .7rem; }
.passo { position: relative; border-radius: 1rem; padding: 1rem 1.1rem; background: var(--glass-2); border: 1px solid rgba(var(--fg), .04); }
.passo b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.6rem; white-space: nowrap; }
.passo span { font-size: .74rem; color: var(--ink-2); font-weight: 700; }
.passo em { position: absolute; top: .8rem; right: .9rem; font-style: normal; font-size: .72rem; font-weight: 800; color: var(--ink-3); }
.passo:not(.inv)::after { content: ""; position: absolute; left: -.45rem; top: 50%; width: .5rem; height: 1px; background: var(--line-2); }
.aguardando { border-style: dashed; }
.funil-meio::before, .funil-forms::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.funil-meio::before { background: #8e7cc3; }
.funil-forms::before { background: #e3c22b; }
.passos.p6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tr-per { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; }
.tr-data { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 700; color: var(--ink-2); }
.tr-data input { height: 30px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); padding: 0 .55rem; font: 700 .78rem var(--sans); color-scheme: light dark; }
.tr-aviso { margin: .7rem 0 0; }
.linha[data-de] { cursor: pointer; }
.linha[data-de]:hover { background: var(--glass-3); }

/* Financeiro */
.insights { display: flex; flex-direction: column; gap: .5rem; }
.ins { padding: .7rem .9rem; border-radius: .9rem; background: var(--glass-2); }
.ins small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ins b { display: block; font-size: .88rem; font-weight: 700; margin-top: .2rem; line-height: 1.35; }
.g-anos2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.1rem; }
.ano.proj { border-style: dashed; }
.g-fin .graf { min-height: 22rem; }
svg.gr .grade { stroke: rgba(var(--fg), .07); }
svg.gr .eixo { fill: var(--ink-3); font-family: var(--sans); font-weight: 600; }
svg.gr .b-cash { fill: var(--green); }
svg.gr .b-custo { fill: #8a8a91; opacity: .55; }
svg.gr .l-fat { stroke: var(--azul); stroke-width: 2.2; stroke-dasharray: 5 4; }

@media (max-width: 1100px) {
  .kps, .kps.k5, .kps.k6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meta-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passos, .passos.p6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.var-de { display: block; font-size: .7rem; color: var(--ink-3); font-weight: 600; margin-top: .15rem; }
.ano .var { display: block; }
.kp-fat b { color: var(--azul); }
.kp-cash b { color: var(--green); }
.kp-fat b small, .kp-cash b small { color: inherit; opacity: .7; }
.pct-g { color: var(--green); }
.pct-r { color: var(--red); }

/* Lead puxado do Instagram */
.profile .bio { margin: .6rem 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); white-space: pre-line; text-align: center; }
.perfil-acoes { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: .8rem; }
.window-bar a { color: var(--ink); font-weight: 800; }
.botao-wrap { text-align: center; padding: 10px 0; }
#botao-link { cursor: grab; }
.ponte-oculto { display: none !important; }

/* ================= Listas do Notion no funil (15/10/2026) ================= */
/* Etiqueta do card: cheia, forte e grande, para o SDR bater o olho e se organizar. */
.card-tarjas { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.tarja {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 7px; max-width: 100%;
  background: var(--c); color: var(--t, #fff); font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--c) 35%, transparent);
}
.card.com-sdr { border-left: 4px solid var(--sdr); padding-left: 12px; }
.card-info { font-size: 11.5px; font-weight: 700; color: var(--ink-3); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-foot .value { margin-left: auto; }

/* Filtro por SDR */
.sdr-filtro button { display: inline-flex; align-items: center; gap: 6px; }
.sdr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }

/* Conta logada na barra lateral */
#conta-ini { background: var(--ink); color: var(--on-ink); font-weight: 800; font-size: 12px; }

/* Lead aberto: gaveta por cima do funil */
#view-funil .lead-info {
  position: fixed; top: 14px; right: 14px; bottom: 14px; z-index: 40; width: min(340px, calc(100vw - 28px));
  background: var(--s-dialogo); box-shadow: var(--shadow-lg);
}
#view-funil .lead-info .close-info { display: grid; }
#view-funil .lead-info[hidden] { display: none; }
.profile .meta.lista { color: var(--ink-2); font-weight: 700; }
.profile .meta.lista a { color: var(--ink); text-decoration: underline; }
.perfil-acoes { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.sdr-filtro[hidden] { display: none; }


/* ================= Scripts: espelho do Notion =================
   Cores, fontes e medidas do próprio Notion (claro e escuro), para ficar igual ao original. */
.nt-app {
  --nt-bg: #191919; --nt-side: #202020; --nt-txt: rgba(255,255,255,.81); --nt-txt2: rgba(255,255,255,.46); --nt-hover: rgba(255,255,255,.055);
  --nt-linha: rgba(255,255,255,.094); --nt-code: rgba(135,131,120,.15); --nt-codecor: #EB5757; --nt-check: #2383E2;
  --gray: #9B9B9B; --brown: #BA856F; --orange: #C77D48; --yellow: #CA9849; --green: #529E72; --blue: #379AD3; --purple: #9D68D3; --pink: #D15796; --red: #DF5452;
  --gray-bg: #2F2F2F; --brown-bg: #4A3228; --orange-bg: #5C3B23; --yellow-bg: #564328; --green-bg: #243D30; --blue-bg: #143A4E; --purple-bg: #3C2D49; --pink-bg: #4E2C3C; --red-bg: #522E2A;
  flex: 1; min-height: 0; display: flex; margin: 0 14px 14px 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif;
  color: var(--nt-txt); background: var(--nt-bg); -webkit-font-smoothing: auto;
}
.nt-app.nt-app {
  --nt-bg: #fff; --nt-side: #F7F7F5; --nt-txt: rgb(55,53,47); --nt-txt2: rgba(55,53,47,.5); --nt-hover: rgba(55,53,47,.06);
  --nt-linha: rgba(55,53,47,.16); --nt-code: rgba(135,131,120,.15); --nt-codecor: #EB5757;
  --gray: #787774; --brown: #9F6B53; --orange: #D9730D; --yellow: #CB912F; --green: #448361; --blue: #337EA9; --purple: #9065B0; --pink: #C14C8A; --red: #D44C47;
  --gray-bg: #F1F1EF; --brown-bg: #F4EEEE; --orange-bg: #FBECDD; --yellow-bg: #FBF3DB; --green-bg: #EDF3EC; --blue-bg: #E7F3F8; --purple-bg: rgba(244,240,247,.8); --pink-bg: rgba(249,238,243,.8); --red-bg: #FDEBEC;
}
#view-scripts { padding-top: 14px; }
.nt-side { width: 240px; flex: none; background: var(--nt-side); display: flex; flex-direction: column; min-height: 0; padding: 10px 6px; }
.nt-busca { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; margin: 0 2px 8px; border-radius: 6px; color: var(--nt-txt2); }
.nt-busca:hover, .nt-busca:focus-within { background: var(--nt-hover); }
.nt-busca svg { width: 15px; height: 15px; flex: none; }
.nt-busca input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; color: var(--nt-txt); font: inherit; font-size: 14px; }
.nt-lista { flex: 1; overflow-y: auto; }
.nt-item { display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px 0 calc(4px + var(--n, 0) * 14px); border-radius: 6px; color: var(--nt-txt2); font-size: 14px; font-weight: 500; text-decoration: none; }
.nt-item:hover { background: var(--nt-hover); }
.nt-item.on { background: var(--nt-hover); color: var(--nt-txt); }
.nt-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-abre { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 4px; flex: none; color: var(--nt-txt2); }
.nt-abre:hover { background: var(--nt-hover); }
.nt-abre.sem { visibility: hidden; }
.nt-seta { width: 12px; height: 12px; transition: transform .15s; }
.nt-abre.aberto .nt-seta, .nt-toggle[open] > summary .nt-seta { transform: rotate(90deg); }
.nt-ic { width: 20px; height: 20px; display: inline-grid; place-items: center; flex: none; font-size: 15px; line-height: 1; }
.nt-ic img { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }
.nt-doc { width: 18px; height: 18px; color: var(--nt-txt2); }
.nt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }
.nt-topo { display: flex; justify-content: flex-end; gap: 4px; padding: 8px 12px; position: absolute; top: 0; right: 0; z-index: 2; }
.nt-botao { height: 28px; padding: 0 10px; border-radius: 6px; border: 0; background: transparent; color: var(--nt-txt2); font: inherit; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.nt-botao:hover { background: var(--nt-hover); color: var(--nt-txt); }
.nt-pagina { flex: 1; overflow-y: auto; font-size: 16px; line-height: 1.5; }
.nt-capa { height: 30vh; max-height: 280px; overflow: hidden; } .nt-capa img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.nt-corpo { max-width: 900px; margin: 0 auto; padding: 72px 96px 30vh; }
.nt-corpo.com-capa { padding-top: 0; }
.nt-pg-ic { font-size: 78px; line-height: 1.1; height: 90px; margin-bottom: 4px; }
.nt-corpo.com-capa .nt-pg-ic { margin-top: -42px; position: relative; }
.nt-pg-ic img { width: 78px; height: 78px; object-fit: contain; border-radius: 4px; }
.nt-titulo { font-size: 40px; font-weight: 700; line-height: 1.2; margin: 0 0 18px; color: var(--nt-txt); font-family: inherit; letter-spacing: 0; }
.nt-p { padding: 3px 2px; min-height: 1.5em; white-space: pre-wrap; word-break: break-word; }
.nt-h1, .nt-h2, .nt-h3 { font-family: inherit; color: inherit; font-weight: 600; margin: 0; padding: 3px 2px; line-height: 1.3; }
.nt-h1 { font-size: 1.875em; margin-top: 1.4em; } .nt-h2 { font-size: 1.5em; margin-top: 1.1em; } .nt-h3 { font-size: 1.25em; margin-top: .8em; }
.nt-li { display: flex; align-items: flex-start; }
.nt-bolinha { width: 24px; flex: none; text-align: center; padding-top: 3px; }
.nt-num .nt-bolinha { width: auto; min-width: 24px; padding-right: 2px; }
.nt-li > div { flex: 1; min-width: 0; }
.nt-caixa { width: 16px; height: 16px; margin: 6px 6px 0 4px; flex: none; border: 1.5px solid currentColor; border-radius: 2px; display: grid; place-items: center; }
.nt-todo.feito .nt-caixa { background: var(--nt-check); border-color: var(--nt-check); }
.nt-caixa svg { width: 12px; height: 12px; }
.nt-todo.feito > div > .nt-p { color: var(--nt-txt2); text-decoration: line-through; text-decoration-color: var(--nt-linha); }
.nt-toggle > summary { display: flex; align-items: flex-start; gap: 2px; list-style: none; cursor: pointer; }
.nt-toggle > summary::-webkit-details-marker { display: none; }
.nt-toggle > summary > .nt-seta { width: 24px; height: 24px; padding: 6px; flex: none; margin-top: 2px; border-radius: 4px; color: var(--nt-txt); }
.nt-toggle > summary > .nt-seta:hover { background: var(--nt-hover); }
.nt-toggle .nt-tt { flex: 1; min-width: 0; }
.nt-toggle .nt-tt > .nt-h1, .nt-toggle .nt-tt > .nt-h2, .nt-toggle .nt-tt > .nt-h3 { margin-top: 0; }
.nt-filhos { padding-left: 26px; }
.nt-li .nt-li, .nt-li > div > .nt-toggle { margin-left: 0; }
.nt-quote { margin: 4px 0; padding: 0 14px; border-left: 3px solid currentColor; font-size: 1em; }
.nt-callout { display: flex; gap: 8px; padding: 16px 16px 16px 12px; margin: 4px 0; border-radius: 4px; background: var(--gray-bg); }
.nt-callout-ic { width: 24px; height: 24px; font-size: 21px; margin-top: 1px; }
.nt-callout-ic img { width: 22px; height: 22px; }
.nt-callout-txt { flex: 1; min-width: 0; }
.nt-pre { margin: 4px 0; padding: 32px 16px 32px 32px; background: var(--nt-code); border-radius: 4px; font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 85%; line-height: 1.5; white-space: pre-wrap; tab-size: 2; }
.nt-code-in { font-family: "SFMono-Regular", Menlo, Consolas, monospace; background: var(--nt-code); color: var(--nt-codecor); border-radius: 4px; padding: .2em .4em; font-size: 85%; }
.nt-hr { padding: 6px 0; } .nt-hr hr { border: 0; border-top: 1px solid var(--nt-linha); margin: 0; }
.nt-link { color: inherit; text-decoration: underline; text-decoration-color: var(--nt-linha); text-underline-offset: 2px; opacity: .9; }
.nt-link:hover { text-decoration-color: currentColor; }
.nt-sub { display: flex; align-items: center; gap: 6px; padding: 3px 2px; color: inherit; text-decoration: none; border-radius: 4px; }
.nt-sub span:last-child { text-decoration: underline; text-decoration-color: var(--nt-linha); text-underline-offset: 3px; font-weight: 500; }
.nt-sub:hover { background: var(--nt-hover); }
.nt-bookmark { display: flex; flex-direction: column; gap: 2px; margin: 4px 0; padding: 12px 14px; border: 1px solid var(--nt-linha); border-radius: 4px; color: inherit; text-decoration: none; font-size: 14px; }
.nt-bookmark:hover { background: var(--nt-hover); } .nt-bookmark small { color: var(--nt-txt2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-fig { margin: 4px 0; } .nt-fig img { max-width: 100%; border-radius: 4px; display: block; } .nt-fig figcaption { color: var(--nt-txt2); font-size: 14px; padding: 6px 2px; }
.nt-banco { margin: 8px 0; } .nt-banco-t { font-size: 1.25em; font-weight: 600; padding: 3px 2px; border-bottom: 1px solid var(--nt-linha); margin-bottom: 4px; }
.nt-tabela { overflow-x: auto; margin: 4px 0; } .nt-tabela table { border-collapse: collapse; font-size: 14px; } .nt-tabela td { border: 1px solid var(--nt-linha); padding: 7px 9px; vertical-align: top; min-width: 120px; }
.nt-colunas { display: flex; gap: 46px; } .nt-coluna { flex: 1; min-width: 0; }
.nt-vazio { color: var(--nt-txt2); font-size: 14px; padding: 6px 8px; }
.nt-carregando { padding: 80px 96px; }
.nt-placeholder { color: var(--nt-txt2); }
.nt-eq { font-family: "Times New Roman", serif; font-style: italic; text-align: center; }
/* Cores do Notion (texto e fundo) */
.nt-c-gray { color: var(--gray); } .nt-c-brown { color: var(--brown); } .nt-c-orange { color: var(--orange); } .nt-c-yellow { color: var(--yellow); } .nt-c-green { color: var(--green); }
.nt-c-blue { color: var(--blue); } .nt-c-purple { color: var(--purple); } .nt-c-pink { color: var(--pink); } .nt-c-red { color: var(--red); }
.nt-c-gray_background { background: var(--gray-bg); } .nt-c-brown_background { background: var(--brown-bg); } .nt-c-orange_background { background: var(--orange-bg); }
.nt-c-yellow_background { background: var(--yellow-bg); } .nt-c-green_background { background: var(--green-bg); } .nt-c-blue_background { background: var(--blue-bg); }
.nt-c-purple_background { background: var(--purple-bg); } .nt-c-pink_background { background: var(--pink-bg); } .nt-c-red_background { background: var(--red-bg); }
span[class*="_background"] { border-radius: 3px; padding: 0 2px; }
@media (max-width: 960px) {
  .nt-app { flex-direction: column; margin: 0 10px 10px; }
  .nt-side { width: auto; max-height: 30vh; }
  .nt-corpo { padding: 48px 24px 30vh; }
  .nt-topo { position: static; }
}

/* Acessos do time */
.time-lista { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 12px; }
.time-linha { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "n a b" "s a b"; gap: 0 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.time-linha b { grid-area: n; } .time-linha span { grid-area: s; font-size: 12px; color: var(--ink-3); }
.time-linha [data-act="senha"] { grid-area: a; } .time-linha [data-act="tirar"] { grid-area: b; }
.time-novo { display: flex; gap: 6px; } .time-novo input { flex: 1; min-width: 0; }
.sc-toggle summary > h2, .sc-toggle summary > h3, .sc-toggle summary > h4 { display: inline; }

/* ---------- Ajustes do funil (15/10/2026): data no card, lixeira, agendamento ---------- */
.card-time { font-size: 10.5px; font-weight: 600; color: var(--ink-3); opacity: .8; letter-spacing: .01em; }
.lixeira-btn { position: relative; }
.lixeira-n { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.lixeira-n[hidden] { display: none; }
.lixeira-lista { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; max-height: 55vh; overflow-y: auto; }
.lixeira-linha { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 14px; }
.lixeira-quem { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lixeira-quem b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lixeira-quem span { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lixeira-vazia { color: var(--ink-3); font-size: 13px; text-align: center; padding: 24px 0; }
.excluir-lead { width: 100%; margin-top: 4px; color: var(--red); }
.excluir-lead:hover { border-color: var(--red); }
.ev-lead { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--glass); }
.ev-lead-t { font-size: 10.5px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.ev-lead[hidden] { display: none; }

/* Soltar o card em "Venda ganha" ou "Lixeira": aparece no canto inferior direito só durante o arraste */
.drop-zonas { position: fixed; right: 28px; bottom: 28px; z-index: 30; display: flex; gap: 12px; animation: zonas-entra .15s ease-out; }
.drop-zonas[hidden] { display: none; }
@keyframes zonas-entra { from { opacity: 0; transform: translateY(10px); } }
.drop-zona {
  --z: var(--green); width: 150px; height: 104px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: color-mix(in srgb, var(--z) 14%, var(--s-dialogo)); border: 2px dashed color-mix(in srgb, var(--z) 60%, transparent);
  color: var(--z); font-weight: 800; font-size: 13px; box-shadow: var(--shadow-lg); transition: transform .12s, background .12s;
}
.drop-zona.lixo { --z: var(--red); }
.drop-zona svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.drop-zona span { pointer-events: none; }
.drop-zona.sobre { transform: scale(1.07); background: color-mix(in srgb, var(--z) 30%, var(--s-dialogo)); border-style: solid; }
.confirma label { margin-top: 4px; }
.confirma input { font-family: inherit; font-size: 15px; }

/* ---------- Mãozinha e lupa do funil (15/10/2026) ---------- */
.board-wrap { --z: 1; flex: 1; min-height: 0; position: relative; overflow: clip; }
.board-wrap > .board { position: absolute; top: 0; left: 0; width: 100%; height: 100%; zoom: var(--z); cursor: grab; }
.board.puxando, .board.puxando * { cursor: grabbing !important; user-select: none; }
.board .card { cursor: pointer; }
.board .col-title h2, .board .col-menu, .board .add-col { cursor: pointer; }
.zoom {
  position: absolute; left: 28px; bottom: 22px; z-index: 5; display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 999px; background: var(--s-dialogo); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.zoom button { height: 32px; min-width: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); display: grid; place-items: center; }
.zoom button:hover:not(:disabled) { background: var(--glass-2); color: var(--ink); }
.zoom button:disabled { opacity: .35; }
.zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.zoom-pct { font-size: 12px; font-weight: 800; padding: 0 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .zoom { left: 16px; bottom: 12px; } }

/* ---------- Agenda: arrastar, esticar e lupa das horas (15/10/2026) ---------- */
.ag-col .ag-ev { touch-action: none; }
.ag-col .ag-ev:has(.ag-alca) { cursor: grab; }
.ag-alca { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.ag-alca::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: currentColor; opacity: 0; transition: opacity .12s; }
.ag-ev:hover .ag-alca::after { opacity: .45; }
.ag-ev.origem { opacity: .3; }
.ag-ev.fantasma { z-index: 6; cursor: grabbing; box-shadow: 0 12px 30px var(--sombra-forte); outline: 2px solid rgba(var(--fg), .55); }
.ag-zoom { position: static; box-shadow: none; padding: 2px; background: var(--glass); border-color: var(--line); }
.ag-zoom button { height: 30px; min-width: 30px; }

/* Link da chamada no card e na gaveta (copiar e mandar ao lead) */
.card-call { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 6px 6px 6px 9px; border-radius: 12px; background: rgba(var(--fg), .06); }
.card-call-q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-call svg, .f-call svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.card-copiar { flex: none; font: inherit; font-size: 11px; font-weight: 800; color: var(--bg, #fff); background: var(--ink); border: 0; border-radius: 9px; padding: 5px 9px; cursor: pointer; }
.card-copiar:hover { opacity: .85; }
.f-call { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--glass); }
.f-call-q { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; }
.f-call-link { font-size: 12.5px; color: var(--ink-2); word-break: break-all; }
.f-call .btn { align-self: flex-start; }
.ev-lead-campos { display: flex; flex-direction: column; gap: 8px; }
.ev-lead-campos[hidden] { display: none; }

/* ---------- Pós-venda (Venda ganha) ---------- */
.dialog.pv { width: min(640px, calc(100vw - 32px)); }
.dialog.pv form { max-height: calc(100vh - 60px); overflow: auto; }
.pv-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
@media (max-width: 560px) { .pv-grade { grid-template-columns: 1fr; } }
.dialog.pv label input, .dialog.pv label select { font-family: var(--sans); font-size: 13.5px; }
.pv-checks { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.pv-checks small { font-weight: 500; color: var(--ink-3); }
.pv-resultado { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.pv-resultado div { display: flex; gap: 8px; align-items: baseline; }
.pv-resultado small { color: var(--ink-3); }

/* ---------- Lista dos SDRs (19/10/2026) ---------- */
.nav-grupo { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px; border-radius: 19px; background: rgba(var(--fg), .025); box-shadow: inset 0 0 0 1px rgba(var(--fg), .04); }
.nav-grupo .nav-item.active::before { left: -15px; }
.btn-ico { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn.small .btn-ico { margin-right: 4px; }
#li-filtro button b { font-size: 10.5px; margin-left: 4px; color: inherit; opacity: .7; }
#li-filtro button b:empty { display: none; }
.li-dia { height: 36px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--s-campo); color: var(--ink); padding: 0 10px; font-size: 12.5px; }
.li-check { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; padding: 0 4px; }
.li-check input { accent-color: var(--ink); }
.li-board { flex: 1; min-height: 0; display: flex; gap: 14px; padding: 6px 28px 24px; overflow-x: auto; }
.li-vazio { margin: 40px auto; max-width: 360px; }
.li-col { position: relative; flex: 1 0 640px; max-width: 900px; display: flex; flex-direction: column; min-height: 0; background: var(--glass); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.li-col::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c); }
.li-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 8px; }
.li-head h2 { margin: 0; font-size: 14px; font-weight: 800; flex: 1; }
.li-novo { display: flex; gap: 8px; padding: 4px 14px 10px; }
.li-novo input { flex: 1; min-width: 0; height: 34px; border: 1px dashed var(--line-2); border-radius: 11px; background: transparent; color: var(--ink); padding: 0 12px; outline: 0; font-size: 13px; }
.li-novo input:focus { border-style: solid; border-color: var(--ink-3); background: var(--s-campo); }
.li-novo select { height: 34px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--s-campo); color: var(--ink); padding: 0 8px; font-size: 12.5px; }
.li-cab, .li-row { display: grid; grid-template-columns: 62px minmax(150px, 1.6fr) 118px 84px 132px minmax(110px, 1fr) 24px; gap: 8px; align-items: center; }
.li-cab.sem-data, .li-rows.sem-data .li-row { grid-template-columns: minmax(150px, 1.6fr) 118px 84px 132px minmax(110px, 1fr) 24px; }
.li-cab { padding: 6px 18px 6px; font-size: 10.5px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); }
.li-rows { flex: 1; overflow-y: auto; padding: 4px 8px 14px; }
.li-rows .empty { margin: 14px 10px; }
.li-row { padding: 6px 10px; border-radius: 12px; min-height: 44px; }
.li-row:hover { background: var(--glass-2); }
.li-row.abordar .li-quem b { color: var(--ink); }
.li-row select, .li-data { width: 100%; height: 30px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink-2); font-size: 12.5px; padding: 0 6px; outline: 0; }
.li-row select:hover, .li-data:hover { border-color: var(--line-2); background: var(--s-campo); }
.li-row select:focus, .li-data:focus { border-color: var(--ink-3); background: var(--s-campo); color: var(--ink); }
.li-data { font-variant-numeric: tabular-nums; font-weight: 700; }
.li-status.green { color: var(--green); } .li-status.red { color: var(--red); } .li-status.blue { color: var(--navy-ink); }
.li-etapa.fora { color: var(--ink-3); font-style: italic; }
.li-quem { display: flex; align-items: center; gap: 9px; min-width: 0; text-decoration: none; color: var(--ink); }
.li-quem > span { display: flex; flex-direction: column; min-width: 0; }
.li-quem b { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.li-quem small { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-quem:hover b { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.li-ras { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--navy-ink); margin-left: auto; }
.li-tags { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; min-width: 0; }
.li-tags .lbl { max-width: 100%; }
.li-tag-add, .li-del { width: 24px; height: 24px; border-radius: 8px; border: 1px dashed var(--line-2); background: transparent; color: var(--ink-3); display: grid; place-items: center; font-size: 15px; line-height: 1; padding: 0; }
.li-tag-add:hover { color: var(--ink); border-style: solid; }
.li-del { border: 0; opacity: 0; }
.li-row:hover .li-del { opacity: 1; }
.li-del:hover { color: var(--red); background: var(--glass-2); }

/* barra do rastreio (acima da lista) */
.li-rastreio-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 28px 10px; padding: 10px 14px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line-2); font-size: 13px; }
.li-rastreio-barra .ra-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.li-rastreio-barra .ra-txt b { color: var(--ink); }
.li-rastreio-barra .ra-peds { display: flex; gap: 6px; flex-wrap: wrap; }
.ra-ped { display: inline-flex; align-items: center; gap: 5px; padding: 3px 4px 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.ra-ped:not(:has(.ra-x)) { padding-right: 10px; }
.ra-ped b { color: var(--ink); }
.ra-ped.pronto { border-color: var(--green); }
.ra-x { border: 0; background: none; color: var(--ink-3); cursor: pointer; width: 18px; height: 18px; border-radius: 50%; line-height: 1; }
.ra-x:hover { color: var(--red); background: var(--glass-2); }
.li-nota { flex: none; margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 800; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--glass-2); color: var(--ink-2); }
.li-nota.quente { background: var(--navy-ink); color: #fff; }
.li-rastreio-barra .ra-num { color: var(--ink-3); white-space: nowrap; font-weight: 700; }
.li-rastreio-barra .ra-num b { color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 15px; }
.ra-pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.li-rastreio-barra.rodando .ra-pulso { background: var(--green); animation: raPulso 1.4s ease-in-out infinite; }
.li-rastreio-barra.erro .ra-pulso { background: var(--red); }
.li-rastreio-barra.pronto .ra-pulso { background: var(--green); }
@keyframes raPulso { 50% { opacity: .3; transform: scale(.7); } }

/* janela do rastreio */
.dialog.rastreio { width: min(560px, calc(100vw - 32px)); }
.ra-fontes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ra-fonte { position: relative; flex-direction: row !important; align-items: flex-start; gap: 10px !important; padding: 12px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--s-campo); }
.ra-fonte input { margin: 2px 0 0; accent-color: var(--ink); height: auto !important; }
.ra-fonte span { display: flex; flex-direction: column; gap: 3px; }
.ra-fonte b { font-size: 13px; color: var(--ink); }
.ra-fonte small { font-size: 11.5px; font-weight: 500; color: var(--ink-3); line-height: 1.35; }
.ra-fonte:has(input:checked) { border-color: var(--ink-2); background: var(--glass-2); }
.ra-linha { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.ra-linha label { width: 150px; }
.ra-linha input[type="number"] { font-family: var(--display); font-size: 15px; }
.ra-sdrs { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.ra-sdrs > div { display: flex; gap: 8px; flex-wrap: wrap; }
.ra-sdr { flex-direction: row !important; align-items: center; gap: 7px !important; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.ra-sdr input { height: auto !important; accent-color: var(--c); }
.ra-sdr span { color: var(--ink); }
.ra-sdr:has(input:checked) { border-color: var(--c); }
.ra-ponte { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-3); font-size: 12px !important; }
.ra-ponte i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--ink-3); }
.ra-ponte i.ok { background: var(--green); }
.li-ig { width: 100%; height: 30px; border: 1px dashed var(--line-2); border-radius: 9px; background: transparent; color: var(--ink); padding: 0 9px; font-size: 12.5px; outline: 0; }
.li-ig:focus { border-style: solid; border-color: var(--ink-3); background: var(--s-campo); }
.li-quem[hidden] { display: none; }

/* Etiqueta discreta do SDR que agendou, no canto do card da Agenda (20/10/2026) */
.ag-sdr { position: absolute; top: 4px; right: 5px; display: inline-flex; align-items: center; gap: 3px; max-width: 45%; padding: 0 5px 0 4px; border-radius: 6px; background: rgba(0, 0, 0, .16); color: inherit; font-size: 9px; font-weight: 600; line-height: 14px; font-style: normal; letter-spacing: .02em; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ag-sdr i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.ag-ev:has(.ag-sdr) b { padding-right: 58px; }
.ag-ev.curto .ag-sdr { top: 50%; transform: translateY(-50%); }
.ag-ev.curto:has(.ag-sdr) { padding-right: 64px; }
.ag-ev.curto:has(.ag-sdr) b { padding-right: 0; }
.ag-ev:has(.ag-sdr.so-inicial) b { padding-right: 22px; }
.ag-ev.curto:has(.ag-sdr.so-inicial) { padding-right: 28px; }

/* Painel · Meta */
.g-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.mt-hero .meta-top .kp:first-child { position: relative; }
.mt-edit { display: block; margin-top: .5rem; }
.mt-hoje { position: absolute; bottom: 100%; transform: translateX(-50%); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding-bottom: .3rem; }
.mt-hoje i { position: absolute; left: 50%; top: 100%; width: 2px; height: 22px; background: var(--ink); opacity: .55; }
.mt-falta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem; align-items: center; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.mt-falta-num small { display: block; color: var(--ink-3); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mt-falta-num b { display: block; font-family: var(--display); font-weight: 500; font-size: 2.6rem; letter-spacing: -.03em; line-height: 1.1; margin-top: .2rem; }
.mt-alvo { font-size: .72rem; font-weight: 800; color: var(--ink-2); text-align: right; }
.mt-card .box-head h3 { white-space: nowrap; }
.mt-pessoa { display: grid; gap: .55rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.mt-pessoa:first-of-type { border-top: 0; padding-top: .2rem; }
.mt-nums { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.mt-nums > span:first-child { font-family: var(--display); font-size: 1.05rem; }
.mt-nums small { font-family: var(--sans); font-size: .72rem; color: var(--ink-3); font-weight: 700; margin-left: .2rem; }
.mt-barra { position: relative; height: 10px; border-radius: 5px; background: rgba(var(--fg), .07); }
.mt-fill { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--ink-2); transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.mt-fill.g { background: var(--green); } .mt-fill.y { background: var(--yellow); } .mt-fill.r { background: var(--red); }
.mt-barra i { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--ink); opacity: .5; transform: translateX(-50%); }
.mt-anel { display: flex; align-items: center; gap: 1.2rem; padding: .3rem 0 1rem; }
.mt-anel svg { width: 7.5rem; height: 7.5rem; flex: none; }
.mt-anel circle { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.2, .7, .2, 1); }
.mt-anel .anel-fundo { stroke: rgba(var(--fg), .07); }
.anel-g { stroke: var(--green); } .anel-y { stroke: var(--yellow); } .anel-r { stroke: var(--red); }
.mt-anel b { display: block; font-family: var(--display); font-weight: 500; font-size: 2.6rem; line-height: 1; }
.mt-anel small { display: block; margin-top: .3rem; color: var(--ink-3); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mt-slider { display: grid; gap: .35rem; margin-bottom: .85rem; }
.mt-slider span { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.mt-slider b { color: var(--ink); font-weight: 800; }
.mt-slider input { width: 100%; accent-color: var(--ink); }
.mt-sim-res { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: 1rem 0 .7rem; }
.mt-sim-res small { display: block; color: var(--ink-3); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mt-sim-res b { display: block; font-family: var(--display); font-weight: 500; font-size: 2rem; letter-spacing: -.02em; margin: .2rem 0; }
.mt-sim-res span { font-size: .78rem; color: var(--ink-3); font-weight: 700; }
.mt-sim .per-txt { margin: .8rem 0 0; }
.mt-campos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem 1rem; }
.mt-campos label small { display: block; color: var(--ink-3); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; }
.mt-campos input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); padding: 0 .8rem; font: 700 .95rem var(--sans); outline: 0; }
.mt-campos input:focus { border-color: var(--ink-3); }
.mt-acoes { display: flex; gap: .6rem; margin: 1.1rem 0 .3rem; }
html.tv .mt-edit { display: none; }
@media (max-width: 1100px) {
  .g-3, .mt-campos { grid-template-columns: minmax(0, 1fr); }
  .mt-falta { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
}

/* Coluna grande: botão para desenhar mais cards (22/10/2026) */
.mais-cards { display: block; width: 100%; margin: 6px 0 2px; }

/* ================= Funil: filtro único (dono + etiquetas) e tempos do card (22/10/2026) ================= */
.filtro-wrap { position: relative; }
.filtro-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.filtro-btn span { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.filtro-btn.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.filtro-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 55; width: 300px; max-height: min(520px, 75vh); overflow-y: auto;
  background: var(--s-menu); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 12px; display: flex; flex-direction: column; gap: 12px;
}
.filtro-pop[hidden] { display: none; }
.fp-sec { display: flex; flex-direction: column; gap: 7px; }
.fp-sec > small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-left: 3px; }
.fp-ops { display: flex; flex-direction: column; gap: 2px; }
.fp-op, .fp-tag { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; color: var(--ink-2); padding: 7px 9px; border-radius: 10px; font-weight: 700; font-size: 13px; text-align: left; }
.fp-op:hover, .fp-tag:hover { background: var(--glass-2); color: var(--ink); }
.fp-op.on, .fp-tag.on { background: var(--glass-3); color: var(--ink); }
.fp-op span, .fp-tag span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-op em, .fp-tag em { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 700; }
.fp-op.on::after, .fp-tag.on::after { content: "✓"; font-size: 12px; font-weight: 800; color: var(--ink); }
.fp-tags { display: flex; flex-direction: column; gap: 2px; }
.fp-tag i { width: 11px; height: 11px; border-radius: 4px; background: var(--c); flex: none; }
.fp-tag[hidden] { display: none; }
.filtro-pop input { height: 36px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--s-campo); color: var(--ink); padding: 0 11px; outline: 0; font: inherit; font-size: 13px; }
.fp-limpar { border: 0; background: transparent; color: var(--ink-3); font-weight: 800; font-size: 12px; padding: 4px; align-self: flex-start; }
.fp-limpar:hover { color: var(--ink); }

.card-tempos { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 11px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.card-tempos span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.card-tempos span:last-child { margin-left: auto; }
.card-tempos span.dim { opacity: .55; }
.card-tempos svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ================= Meta: mini calendário, barras de meta e gargalos (22/10/2026) ================= */
.mt-hero .meta-top { grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; }
.mini-cal { align-self: start; justify-self: end; display: grid; gap: .45rem; padding-left: 1.2rem; border-left: 1px solid var(--line); }
.mc-head { display: flex; align-items: baseline; gap: .4rem; }
.mc-head b { font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1; color: var(--green); }
.mc-head small { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mc-grade { display: grid; grid-template-columns: repeat(7, 11px); gap: 3px; }
.mc-grade i { width: 11px; height: 11px; border-radius: 3px; }
.mc-grade .mc-vem { background: var(--green); }
.mc-grade .mc-foi { background: rgba(var(--fg), .16); }
.mc-grade .mc-fds { background: rgba(var(--fg), .05); }
.mc-grade .hoje { outline: 1.5px solid var(--ink); outline-offset: 1.5px; }
.mt-progs { margin-top: .9rem; }
.mt-prog { display: grid; gap: .45rem; margin-top: .9rem; }
.mt-progs .mt-prog { margin-top: 0; }
.mt-prog-txt { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.mt-prog-txt span { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mt-prog-txt b { font-family: var(--display); font-weight: 500; font-size: 1.15rem; white-space: nowrap; }
.mt-prog-txt small { font-family: var(--sans); font-size: .72rem; font-weight: 700; color: var(--ink-3); }
.mt-card .mt-pessoa:first-of-type { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.gg-top { padding: .9rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--red) 12%, transparent); margin-bottom: .6rem; }
.gg-top.ok { background: color-mix(in srgb, var(--green) 12%, transparent); }
.gg-top small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.gg-top b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.5rem; letter-spacing: -.02em; margin: .15rem 0; }
.gg-top span { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.gg { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .35rem .9rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.gg:first-child { border-top: 0; }
.gg-nome b { display: block; font-size: .86rem; font-weight: 800; }
.gg-nome small { display: block; font-size: .7rem; font-weight: 700; color: var(--ink-3); }
.gg-num { text-align: right; }
.gg-num b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.gg-num small { display: block; font-size: .68rem; font-weight: 700; color: var(--ink-3); }
.gg-barra { grid-column: 1 / -1; }
.gg-barra .mt-barra { height: 6px; }
.mt-gargalos .per-txt { margin: .8rem 0 0; }
@media (max-width: 1100px) {
  .mt-hero .meta-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-cal { justify-self: start; padding-left: 0; border-left: 0; }
}

/* =====================================================================
   Visual novo (22/10/2026): clean, moderno e minimalista.
   Preto, branco e detalhes em azul-marinho escuro (pode ser degradê).
   Cor só em dois lugares: números do painel (verde forte = positivo,
   vermelho forte = negativo) e etiquetas (cores fortes).
   ===================================================================== */
:root {
  --bg: #000;
  --frame: #09090a;
  --side: #0d0d0f;
  --glass: rgba(var(--fg), .028);
  --glass-2: rgba(var(--fg), .05);
  --glass-3: rgba(var(--fg), .08);
  --line: rgba(var(--fg), .07);
  --line-2: rgba(var(--fg), .11);
  --ink: #f5f5f7;
  --ink-2: #9b9ba3;
  --ink-3: #5e5e66;
  --s-campo: #0f0f11;
  --s-dialogo: #121214;
  --s-menu: #141416;
  --s-ev: #18181b;
  --s-ev-hover: #1f1f23;
  --s-26: #1c1c1f;
  --s-borda: #26262a;
  --s-23: #1a1a1d;
  --s-ativo: #17171a;
  --card: #121214;
  --card-h: #17171a;
  /* azul-marinho escuro */
  --navy: #142a5c;
  --navy-ink: #6d8ad6;
  --navy-1: #0a1430;
  --navy-2: #1b3577;
  --navy-g: linear-gradient(135deg, var(--navy-2) 0%, var(--navy-1) 100%);
  --azul: #3557b0;
  /* só para números do painel */
  --green: #00e25b;
  --red: #ff2638;
  --yellow: #8b8b93; /* "perto do ritmo" fica neutro: só verde e vermelho têm cor */
  --r-lg: 20px;
  --r-md: 14px;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .6);
}
:root[data-tema="claro"] {
  --bg: #e9e9ec;
  --frame: #fafafa;
  --side: #fff;
  --ink: #0b0b0d;
  --ink-2: #55555d;
  --ink-3: #9a9aa2;
  --line: rgba(0, 0, 0, .07);
  --line-2: rgba(0, 0, 0, .11);
  --s-campo: #fff; --s-dialogo: #fff; --s-menu: #fff;
  --s-ev: #f1f1f3; --s-ev-hover: #e9e9ec; --s-26: #efeff1; --s-23: #f1f1f3; --s-ativo: #f1f1f3; --s-borda: #e6e6e9;
  --card: #fff;
  --card-h: #f7f7f8;
  --navy-ink: #1b3577;
  --azul: #1b3577;
  --green: #00a845;
  --red: #e3001b;
  --yellow: #8b8b93;
}

body { letter-spacing: -.005em; font-feature-settings: "ss01", "cv11"; }
h1, h3, b, strong { letter-spacing: -.01em; }
::selection { background: var(--navy-2); color: #fff; }

/* Moldura: preta, borda fina e uma luz suave no topo (como a referência) */
.frame { inset: 10px; border-radius: 24px; background: var(--frame); box-shadow: 0 0 0 1px var(--line), 0 40px 100px rgba(0, 0, 0, .6); }
.frame::before {
  background:
    radial-gradient(700px 380px at 72% -12%, rgba(var(--fg), .045), transparent 70%),
    radial-gradient(600px 420px at -6% -10%, rgba(27, 53, 119, .22), transparent 70%);
}
[data-tema="claro"] .frame::before { background: radial-gradient(600px 420px at -6% -10%, rgba(27, 53, 119, .07), transparent 70%); }

/* Barra lateral em cápsula, item ativo com degradê marinho */
.sidebar {
  width: 76px; margin: 12px 0 12px 12px; border-radius: 26px; gap: 4px; padding: 16px 0 12px;
  background: linear-gradient(180deg, rgba(var(--fg), .035), rgba(var(--fg), .012)), var(--side);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .35);
}
.brand { width: 48px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nav-item { width: 56px; padding: 9px 0 7px; border-radius: 16px; font-size: 10px; font-weight: 500; color: var(--ink-3); }
.nav-item svg { width: 20px; height: 20px; stroke-width: 1.6; }
.nav-item:hover { color: var(--ink); background: rgba(var(--fg), .03); }
.nav-item.active {
  color: #fff; background: var(--navy-g);
  box-shadow: inset 0 0 0 1px rgba(109, 138, 214, .28), 0 6px 22px rgba(27, 53, 119, .45);
}
.nav-item.active::before { left: -10px; top: 12px; bottom: 12px; width: 3px; background: var(--navy-ink); box-shadow: 0 0 10px rgba(109, 138, 214, .8); }
.nav-grupo { background: transparent; box-shadow: none; padding: 6px 0; margin: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; gap: 4px; }
.nav-grupo .nav-item.active::before { left: -10px; }
.nav-badge { background: var(--navy-2); color: #fff; }
.acc-avatar { border: 1px solid var(--line-2); }
#conta-ini { background: var(--navy-g); color: #fff; font-weight: 600; }
[data-tema="claro"] .nav-item.active { color: #fff; }

/* Topo */
.topbar { padding: 20px 26px 14px; gap: 12px; }
h1 { font-weight: 600; font-size: 24px; letter-spacing: -.03em; }
.search { border-radius: 12px; background: var(--glass-2); border-color: var(--line); padding: 0 12px; }
.search input { height: 38px; }
.chip, .chip-btn { height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 500; backdrop-filter: none; background: var(--glass-2); }
.chip-btn[aria-pressed="true"] { background: var(--glass-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip-btn[aria-pressed="true"] .count-pill { background: var(--navy-2); color: #fff; }
.count-pill { font-weight: 600; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; background: var(--glass-2); }
.btn { height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 500; background: var(--glass-2); }
.btn.small { height: 32px; border-radius: 9px; font-weight: 500; }
.btn.primary, .filtro-btn.on {
  background: var(--navy-g); color: #fff; border-color: rgba(109, 138, 214, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 14px rgba(27, 53, 119, .35);
}
.btn.primary:hover { background: linear-gradient(135deg, #2346a0, #0e1b40); }
.link { font-weight: 500; }

/* Abas segmentadas: neutras, a ativa só um pouco mais clara */
.seg { gap: 2px; padding: 3px; border-radius: 11px; background: var(--glass); }
.seg button { height: 30px; padding: 0 14px; border-radius: 8px; font-weight: 500; }
.seg button[aria-selected="true"] { background: var(--glass-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, .3); }
.seg button i { display: none; }
.tabs button { font-weight: 500; border-radius: 8px; }
.tabs button[aria-selected="true"] { background: var(--glass-3); color: var(--ink); }

/* Caixas e cartões */
.box { border-radius: var(--r-lg); backdrop-filter: none; background: var(--glass); }
h3 { font-weight: 600; font-size: .92rem; }
.hero { background: linear-gradient(135deg, rgba(27, 53, 119, .28), rgba(10, 20, 48, .12) 45%, rgba(var(--fg), .02)); }
.hero::after { border-color: rgba(var(--fg), .04); }
.pill { background: var(--navy-g); color: #fff; border-radius: 10px; font-weight: 600; box-shadow: 0 6px 20px rgba(27, 53, 119, .4); }
.hero-faixa { border-radius: 14px; background: rgba(var(--fg), .03); backdrop-filter: none; }
.num b, .kp b, .tx b, .ano b, .mes-res b, .fat-valor, .hero-num, .meta-pct b, .mt-falta-num b, .mt-sim-res b, .gg-top b, .dg b, .passo b, .anel-c b, .mt-anel b {
  font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
}
.pre, .num span, .dg span, .passo span, .fat-sub { font-weight: 500; }
.kp small, .tx small, .ano small, .mes-res small, .ins small, .tab-cab, .field label, .mt-falta-num small, .mt-prog-txt span, .fp-sec > small, .li-cab, .ev-lead-t, .ag-dia small {
  font-weight: 500; letter-spacing: .06em; font-size: .68rem;
}
.kps .kp, .passo, .ins, .dg, .venda, .linha { background: var(--glass); border-color: var(--line); }
.tile { background: linear-gradient(160deg, rgba(var(--fg), .05), rgba(var(--fg), .015)); }
.ano.atual { background: linear-gradient(135deg, rgba(27, 53, 119, .3), rgba(var(--fg), .02)); }
.linha { border-radius: 12px; }
.trilho i { background: linear-gradient(90deg, var(--navy-2), var(--navy-ink)); }
.num .sub i, .fina i { background: linear-gradient(90deg, var(--navy-2), var(--navy-ink)); }
.tx { border-style: solid; border-color: var(--line); background: var(--glass); }
.etapas-mini i, .stage-chip::before { filter: grayscale(1); }

/* Números do painel: verde forte (positivo) e vermelho forte (negativo). Faturamento fica branco. */
.kp-fat b { color: var(--ink); }
.kp-cash b, .pct-g, .var.up, .mc-head b { color: var(--green); }
.neg, .pct-r, .var.down { color: var(--red); }
.flag { font-weight: 600; }
.bm-fat { background: var(--navy-g); box-shadow: inset 0 0 0 1px rgba(109, 138, 214, .25); }
.bm-cash { background: var(--green); box-shadow: 0 0 18px color-mix(in srgb, var(--green) 40%, transparent); }
.lg-fat { background: var(--navy-2); }
svg.gr .l-fat { stroke: var(--navy-ink); }
svg.gr .b-custo { fill: #6a6a72; }
.barra-meta, .mt-barra { background: rgba(var(--fg), .06); }
.mt-fill { background: var(--ink-2); }
.funil-azul::before, .funil-meio::before, .funil-forms::before { height: 2px; background: var(--navy-g); }
.gg-top { background: color-mix(in srgb, var(--red) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 22%, transparent); }
.gg-top.ok { background: color-mix(in srgb, var(--green) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 22%, transparent); }
.p-select, .tr-data input, .mt-campos input { border-radius: 10px; font-weight: 500; }

/* ---------- Funil (kanban, como a referência) ---------- */
.board { gap: 12px; padding: 4px 26px 24px; }
.column { flex-basis: 288px; border-radius: 16px; background: rgba(var(--fg), .022); border-color: var(--line); }
/* Risco colorido no topo de cada coluna, na cor da etapa (como no Kommo) */
.column::before { display: block; height: 3px; background: var(--stage, var(--ink-3)); }
.col-head { padding: 14px 14px 8px; }
.col-title h2 { font-size: 13px; font-weight: 600; }
.col-count { font-size: 11px; font-weight: 500; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--glass-2); display: inline-grid; place-items: center; color: var(--ink-2); }
.col-sum { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.column.drop { border-color: rgba(109, 138, 214, .5); background: rgba(27, 53, 119, .12); }
/* Vendas Ganhas do Mês: como antes, na cor da etiqueta Cliente (verde forte), brilhando por trás */
.column.ganha {
  --vg: #00d65b;
  border-color: color-mix(in srgb, var(--vg) 45%, transparent);
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--vg) 18%, transparent), transparent 70%), rgba(var(--fg), .022);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--vg) 10%, transparent), 0 0 28px color-mix(in srgb, var(--vg) 28%, transparent), 0 0 70px color-mix(in srgb, var(--vg) 12%, transparent);
  animation: ganha-forte 4s ease-in-out infinite;
}
@keyframes ganha-forte { 50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--vg) 16%, transparent), 0 0 38px color-mix(in srgb, var(--vg) 38%, transparent), 0 0 95px color-mix(in srgb, var(--vg) 18%, transparent); } }
.column.ganha::before { display: block; height: 3px; background: var(--vg); box-shadow: 0 0 14px var(--vg); }
.column.ganha .col-sum { color: var(--vg); font-weight: 600; }
.sino { background: color-mix(in srgb, #00d65b 18%, transparent); color: #00d65b; border-radius: 7px; }
@media (prefers-reduced-motion: reduce) { .column.ganha { animation: none; } }
.cards { padding: 2px 8px 10px; gap: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: background .15s, border-color .15s; }
.card:hover { background: var(--card-h); border-color: var(--line-2); }
.card.com-sdr { border-left: 1px solid var(--line); padding-left: 12px; }
.card.awaiting::before { background: var(--navy-ink); }
.card-name { font-weight: 600; }
.card-tempos, .card-info, .card-time { font-weight: 500; }
.card-tempos { padding-top: 9px; border-top: 1px solid var(--line); }
.card-call { background: var(--glass-2); border-radius: 9px; }
.card-copiar { background: var(--navy-g); color: #fff; font-weight: 600; }
.badge { background: var(--navy-2); color: #fff; font-weight: 600; }
.clock { color: var(--ink-2); }
.add-col, .empty { border-radius: 14px; font-weight: 500; }
.zoom { border-radius: 12px; }
.zoom button { border-radius: 8px; }
.filtro-pop, .menu, .label-pop { border-radius: 14px; }
.fp-op, .fp-tag, .menu button { font-weight: 500; border-radius: 8px; }
.fp-op.on::after, .fp-tag.on::after { color: var(--navy-ink); }
.sdr-dot { filter: grayscale(1); }

/* Etiquetas: cheias, fortes e coloridas */
.tarja {
  height: 22px; padding: 0 9px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  background: var(--c); color: var(--t, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 60%, #000), 0 4px 14px color-mix(in srgb, var(--c) 35%, transparent);
}
.lbl {
  height: 22px; padding: 0 9px; border-radius: 6px; font-size: 11px; font-weight: 700;
  background: var(--c); color: var(--t, #fff); box-shadow: 0 2px 10px color-mix(in srgb, var(--c) 30%, transparent);
}
.lbl::before { display: none; }
.lbl button { color: inherit; opacity: .7; }
.lbl button:hover { color: inherit; opacity: 1; }
.lbl.more { --c: #2a2a2f; color: var(--ink-2); box-shadow: none; }
[data-tema="claro"] .lbl.more { --c: #e6e6e9; }
.lp-pick i, .fp-tag i { border-radius: 4px; }

/* ---------- Lista ---------- */
.li-board { gap: 12px; padding: 4px 26px 24px; }
.li-col { border-radius: 16px; background: rgba(var(--fg), .022); }
.li-col::before { height: 2px; background: var(--navy-g); }
.li-head h2 { font-weight: 600; }
.li-row { border-radius: 10px; }
.li-quem b { font-weight: 600; }
.li-status.blue { color: var(--navy-ink); }
.li-status.green, .li-status.red { color: var(--ink); }
.ra-sdr:has(input:checked) { border-color: var(--navy-ink); }
.ra-sdr input { accent-color: var(--navy-2); }

/* ---------- Direct ---------- */
.inbox, .thread, .lead-info { border-radius: 18px; }
.convo { border-radius: 12px; }
.convo-name strong { font-weight: 500; }
.convo.unread .convo-name strong { font-weight: 700; }
.unread-dot { background: var(--navy-ink); }
.row.out .bubble { background: var(--navy-g); color: #fff; }
.row.out .bubble.broken { background: var(--navy-2) !important; }
.send-text { background: var(--navy-g); color: #fff; font-weight: 600; }
.stage-steps span.on { background: var(--navy-ink); }
.field input, .field select, .field textarea, .tags-edit { border-radius: 10px; }

/* ---------- Agenda: eventos com as cores exatas do Google Agenda (exceção pedida pelo Pedro) ---------- */
.agenda { margin: 0 26px 24px; border-radius: var(--r-lg); }
.ag-dia b { font-weight: 500; }
.ag-dia.hoje b { background: var(--navy-g); color: #fff; border-radius: 8px; }
.ag-col.hoje { background-color: rgba(27, 53, 119, .06); }
.ag-ev { border-radius: 8px; }
.ag-ev b { font-weight: 600; }
.g-cal input { accent-color: var(--ev, var(--navy-2)); }

/* Cards no escuro: degradê do preto pro cinza para destacar do fundo (22/10/2026) */
:root:not([data-tema="claro"]) {
  --card: linear-gradient(160deg, #26262b 0%, #141416 55%, #0b0b0c 100%);
  --card-h: linear-gradient(160deg, #2e2e34 0%, #18181b 55%, #0d0d0f 100%);
}
:root:not([data-tema="claro"]) .card {
  border-color: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px rgba(0, 0, 0, .55);
}
:root:not([data-tema="claro"]) .card:hover { border-color: rgba(255, 255, 255, .16); }
:root:not([data-tema="claro"]) :is(.kps .kp, .passo, .dg, .tx, .venda, .ins, .linha:not(.total)) {
  background: linear-gradient(160deg, #222226 0%, #121214 60%, #0b0b0c 100%);
  border-color: rgba(255, 255, 255, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
:root:not([data-tema="claro"]) .column, :root:not([data-tema="claro"]) .li-col { background: rgba(255, 255, 255, .015); }
.cards { gap: 10px; padding: 4px 10px 12px; }
.board { gap: 14px; }

/* ---------- Diálogos, avisos ---------- */
.dialog { border-radius: 18px; }
.dialog h2 { font-weight: 600; letter-spacing: -.02em; }
.dialog label { font-weight: 500; }
.dialog input { border-radius: 10px; font-family: var(--sans); font-size: 13.5px; }
.dialog.ev .ev-titulo { font-weight: 500; }
.et-cor, .swatches button { filter: none; }
.toast { border-radius: 12px; font-weight: 500; }
.mt-slider input, .li-check input, .ra-fonte input, .dialog.ev .ev-check input { accent-color: var(--navy-2); }
:focus-visible { outline-color: var(--navy-ink); }

/* Telas menores */
@media (max-width: 960px) { .frame { inset: 0; border-radius: 0; } }
@media (max-width: 640px) {
  .sidebar { width: auto; margin: 0 10px 10px; border-radius: 20px; }
  .nav-grupo { flex-direction: row; border: 0; padding: 0; margin: 0; }
  .topbar, .board, .li-board { padding-left: 16px; padding-right: 16px; }
}

/* ================= Funil: arrastar empurrando os cards (22/10/2026) ================= */
.board .card.dragging { display: none; }
.card-ph {
  flex: none; border-radius: 12px; border: 1.5px dashed rgba(109, 138, 214, .55);
  background: linear-gradient(160deg, rgba(27, 53, 119, .22), rgba(10, 20, 48, .1));
  box-shadow: inset 0 0 24px rgba(27, 53, 119, .25);
}
.card-ph.abre { animation: ph-abre .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes ph-abre { from { opacity: 0; transform: scaleY(.6); } }
.card.pousou { animation: pousou .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes pousou { from { transform: scale(1.04); box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 0 1.5px rgba(109, 138, 214, .6); } }
[data-tema="claro"] .card-ph { border-color: rgba(27, 53, 119, .4); background: rgba(27, 53, 119, .06); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .card-ph.abre, .card.pousou { animation: none; } }

/* ================= Time: SDRs e Closers lado a lado, seta abre os dias (22/10/2026) ================= */
.tm-grade { align-items: start; }
.tm-col { padding: 1.3rem 1.4rem 1rem; }
.tm-pessoa { padding: 1rem 0 1.1rem; border-top: 1px solid var(--line); }
.tm-pessoa:first-of-type { border-top: 0; padding-top: .2rem; }
.tm-topo { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; border: 0; background: transparent; padding: .3rem .2rem; border-radius: 12px; text-align: left; color: inherit; }
.tm-topo:hover { background: var(--glass-2); }
.tm-seta { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); color: var(--ink-2); flex: none; transition: transform .2s, background .2s; }
.tm-seta svg { width: 16px; height: 16px; stroke-width: 2; }
.tm-pessoa.aberto .tm-seta { transform: rotate(180deg); background: var(--navy-g); color: #fff; border-color: rgba(109, 138, 214, .35); }
.tm-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; margin-top: .7rem; }
.tm-nums.closer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-num { padding: .55rem .7rem; border-radius: 10px; background: linear-gradient(160deg, rgba(var(--fg), .06), rgba(var(--fg), .015)); border: 1px solid var(--line); min-width: 0; }
.tm-num small { display: block; font-size: .6rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-num small em { font-style: normal; color: var(--ink-2); }
.tm-num b { display: block; margin-top: .2rem; font-weight: 500; font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-flag { margin-top: .8rem; display: grid; gap: .3rem; }
.tm-quadros { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; }
.tm-quadros i { height: 1rem; border-radius: 4px; background: rgba(var(--fg), .07); }
.tm-quadros i.r { background: #ff2638; } .tm-quadros i.y { background: #ffc400; } .tm-quadros i.g { background: #00e25b; }
.tm-escala { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; }
.tm-escala span { font-size: .55rem; font-weight: 500; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.tm-flag-txt { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .25rem; font-size: .8rem; color: var(--ink-2); }
.tm-flag-txt b { color: var(--ink); font-weight: 600; }
.tm-flag-txt small { margin-left: auto; color: var(--ink-3); font-size: .74rem; }
.tm-flag .flag.y::before { background: #ffc400; }
.tm-dias { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--line-2); animation: entra .25s ease both; }
.tm-dias .tab-cab { font-size: .58rem; }
.tm-dias .linha.fina .v { font-size: .8rem; }
@media (max-width: 1280px) { .tm-grade { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .tm-nums, .tm-nums.closer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tm-dias .linha.fina { min-height: 2.1rem; padding: .25rem .8rem; margin-bottom: .25rem; border-radius: 9px; }
.tm-dias .tab-cab { padding: 0 .8rem .5rem; }
.tm-num b small { display: inline; font-size: .62em; letter-spacing: 0; text-transform: none; color: var(--ink-2); margin-right: .2em; }

/* Time v2 (22/10/2026): uma linha por pessoa, flag embaixo (quadros e texto lado a lado), dias do mais novo pro mais velho */
.tm-box { padding: 1.3rem 1.4rem 1rem; }
.tm-tabela { min-width: max-content; }
.tm-tabela > .tab-cab { align-items: end; gap: .6rem; }
.tm-tabela > .tab-cab span { line-height: 1.25; }
.tm-tabela > .tab-cab em { display: block; font-style: normal; color: var(--ink-2); letter-spacing: .02em; margin-top: .15rem; }
.tm-linha { padding: .3rem 0 .9rem; border-bottom: 1px solid var(--line); }
.tm-linha:last-child { border-bottom: 0; }
.linha.tm-l { gap: .6rem; margin: .45rem 0 0; min-height: 3.6rem; }
.linha.tm-l .v { font-size: .92rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.linha.tm-l .v small { font-size: .62em; color: var(--ink-2); margin-right: .15em; }
.av.foto { padding: 0; overflow: hidden; background: var(--s-ev); }
.av.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-l .av { width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.tm-seta { width: 32px; height: 32px; padding: 0; justify-self: end; }
.tm-flag { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1.4rem; row-gap: .25rem; margin: .7rem 1rem 0; }
.tm-flag .tm-quadros, .tm-flag .tm-escala { grid-column: 1; }
.tm-flag .tm-flag-txt { grid-column: 2; grid-row: 1 / span 2; margin: 0; flex-direction: column; align-items: flex-end; gap: .2rem; text-align: right; }
.tm-flag .tm-flag-txt small { margin: 0; }
.tm-flag.vazio-lado { display: block; font-size: .75rem; }
.tm-quadros i { height: .8rem; }
.tm-dias { margin: .9rem 1rem 0; border-top: 1px dashed var(--line-2); }
.tm-dias .linha.fina.hoje { background: linear-gradient(90deg, rgba(27, 53, 119, .32), rgba(27, 53, 119, .08)); border-color: rgba(109, 138, 214, .35); box-shadow: inset 3px 0 0 var(--navy-ink); }
.tm-dias .linha.fina.hoje .v:first-child { color: var(--ink); font-weight: 600; }
[data-tema="claro"] .tm-dias .linha.fina.hoje { background: rgba(27, 53, 119, .07); }
.tm-tabela { min-width: 64rem; }
.tm-tabela > .tab-cab { font-size: .58rem; letter-spacing: .04em; padding: 0 1rem .6rem; }
.tm-tabela > .tab-cab span { overflow-wrap: anywhere; }
.linha.tm-l .v { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; }
.tm-dias .tab-dia { min-width: max-content; }

/* ================= Time v3 (22/10/2026): tabela como a do DashBoard da planilha ================= */
.tt-box { padding: 1.3rem 1.4rem 1.1rem; }
.tt { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: max-content; min-width: 100%; }
.tt .tt-c-quem { width: 200px; }
.tt.sdr .tt-c { width: 78px; }
.tt.closer .tt-c { width: 104px; }
.tt .tt-c-seta { width: 48px; }
.tt th, .tt td { text-align: center; vertical-align: middle; padding: 0 4px; }
.tt thead th { font-size: .6rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); line-height: 1.25; padding-bottom: .7rem; border-bottom: 1px solid var(--line-2); vertical-align: bottom; }
.tt thead th em { display: block; font-style: normal; color: var(--ink-2); margin-top: 2px; }
.tt th.tt-quem, .tt td.tt-quem { text-align: left; padding-left: 12px; }
.tt-l td { height: 58px; font-size: .9rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; border-top: 1px solid var(--line); }
.tt-pessoa:first-of-type .tt-l td { border-top: 0; }
.tt-l td:first-child { border-radius: 0; }
.tt-pessoa:hover .tt-l td { background: rgba(var(--fg), .025); }
.tt-l .pessoa b { font-size: .9rem; font-weight: 600; }
.tt-l .pessoa small { font-size: .6rem; font-weight: 500; }
.tt-l .av { width: 2.3rem; height: 2.3rem; border-radius: 50%; font-size: .85rem; }
.tt-seta-td .tm-seta { margin: 0 auto; }
/* flag da meta: escala de 10% a 150%, fraquinha; ao atingir a faixa ela fica forte e brilha */
.tt-flag td { padding: 2px 12px 16px; }
.tt-flag-in { display: flex; align-items: center; gap: 22px; }
.tt-quadros { flex: 1; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; max-width: 980px; }
.tt-q { display: grid; gap: 4px; justify-items: center; }
.tt-q i { width: 100%; height: 9px; border-radius: 5px; background: var(--c-fraco); transition: background .3s, box-shadow .3s; }
.tt-q span { font-size: .56rem; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tt-q.r { --c: #ff2638; --c-fraco: rgba(255, 38, 56, .13); }
.tt-q.y { --c: #ffc400; --c-fraco: rgba(255, 196, 0, .12); }
.tt-q.g { --c: #00e25b; --c-fraco: rgba(0, 226, 91, .11); }
.tt-q.on i { background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent), 0 0 22px color-mix(in srgb, var(--c) 30%, transparent); }
.tt-q.on span { color: var(--ink); }
.tt-flag-txt { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px; width: 230px; flex: none; }
.tt-flag-txt b { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tt-flag-txt b.r { color: #ff2638; } .tt-flag-txt b.y { color: #ffc400; } .tt-flag-txt b.g { color: #00e25b; }
.tt-flag-txt span { font-size: .72rem; color: var(--ink-3); }
.tt-flag-txt small { flex-basis: 100%; font-size: .72rem; color: var(--ink-2); line-height: 1.45; }
/* dias: tabela larga, colunas estreitas, sem rolar para o lado */
.tt-abre td { padding: 0 12px 18px; }
.tt-dias { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; animation: entra .25s ease both; background: rgba(var(--fg), .02); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tt-dias th, .tt-dias td { text-align: center; padding: 7px 3px; font-variant-numeric: tabular-nums; }
.tt-dias th { font-size: .55rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); line-height: 1.2; background: rgba(var(--fg), .03); border-bottom: 1px solid var(--line); vertical-align: bottom; }
.tt-dias td { font-size: .78rem; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-dias tbody tr:first-child td { border-top: 0; }
.tt-dias th:first-child, .tt-dias td:first-child { width: 86px; text-align: left; padding-left: 12px; color: var(--ink-2); }
.tt-dias tr.hoje td { background: rgba(27, 53, 119, .22); }
.tt-dias tr.hoje td:first-child { color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--navy-ink); }
[data-tema="claro"] .tt-dias tr.hoje td { background: rgba(27, 53, 119, .07); }
[data-tema="claro"] .tt-q.r { --c-fraco: rgba(227, 0, 27, .1); } [data-tema="claro"] .tt-q.y { --c-fraco: rgba(255, 196, 0, .18); } [data-tema="claro"] .tt-q.g { --c-fraco: rgba(0, 168, 69, .1); }
.tt-flag > td, .tt-abre > td { text-align: left; }
/* flag v2: escala de ponta a ponta, info discreta no fim */
.tt-flag-in { gap: 16px; }
.tt-quadros { max-width: none; }
.tt-flag-txt { width: auto; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding-bottom: 14px; }
.tt-flag-txt span { font-size: .68rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-flag-txt small { flex-basis: auto; font-size: .6rem; color: var(--ink-3); line-height: 1.2; white-space: nowrap; }
.tt-l td, .tt-dias td { color: var(--ink); }
.tt-dias td.dim { color: var(--ink-3); }
/* cabeçalho repetido em cima de cada pessoa e divisória vertical bem apagada entre as colunas (só no total) */
.tt .tt-cab th { font-size: .58rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); line-height: 1.25; padding: 14px 4px 6px; vertical-align: bottom; border-top: 1px solid var(--line); }
.tt-pessoa:first-of-type .tt-cab th { border-top: 0; padding-top: 4px; }
.tt .tt-cab th em { display: block; font-style: normal; color: var(--ink-2); margin-top: 2px; }
.tt-l td { border-top: 0; height: 48px; }
.tt-cab th + th:not(:last-child), .tt-l td + td:not(.tt-seta-td) { border-left: 1px solid rgba(var(--fg), .055); }
.tt-l td .tt-meta { display: block; margin-top: 2px; font-size: .58rem; font-weight: 500; color: var(--green); opacity: .75; letter-spacing: .02em; }
.tt-flag-txt { width: 150px; flex: 0 0 150px; }
/* Meta · totais no formato do Time (22/10/2026) */
.mt-totais .tt-wrap { overflow-x: auto; }
/* Meta · só o time todo, números grandes para a TV do escritório (22/10/2026) */
.mt-totais .box-head h3 .muted { font-weight: 400; }
.tt.tt-tv { width: 100%; min-width: 0; table-layout: auto; }
.tt.tt-tv .tt-cab th { font-size: .7rem; letter-spacing: .06em; padding: 6px 4px 12px; color: var(--ink-2); white-space: normal; }
.tt.tt-tv .tt-l td { height: auto; padding: 10px 4px 6px; font-size: clamp(1.1rem, 1.6vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.tt.tt-tv .tt-l td .tt-meta { font-size: .8rem; font-weight: 500; letter-spacing: .02em; margin-top: 6px; }

/* Meta v4 (22/10/2026): faturamento, cash e meta em destaque; % dentro do verde e o que falta no cinza; Editar metas ao lado do período */
.aba-topo-dir { display: flex; align-items: center; gap: 10px; }
.aba-topo-dir .btn { height: 2.6rem; padding: 0 1rem; }
.mt-hero .meta-top { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; }
.mt-hero .meta-top .kp small { font-size: .8rem; letter-spacing: .08em; }
.mt-hero .meta-top .kp b { font-size: clamp(2.6rem, 4.4vw, 5rem); line-height: 1.05; margin-top: .3rem; }
.mt-hero .meta-top .kp b small { font-size: .42em; letter-spacing: 0; margin-right: .12em; }
.mt-hero .barra-meta { height: 46px; border-radius: 23px; margin: 2.4rem 0 1.8rem; }
.mt-hero .barra-meta > div { border-radius: 23px; }
.mt-hero .marca i { height: 46px; }
.mt-hero .mt-hoje i { height: 46px; }
.bm-pct, .bm-falta { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font-family: var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; z-index: 2; pointer-events: none; }
.bm-pct { font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; color: #04170c; }
.bm-pct.fora { color: var(--ink); }
.bm-falta { right: 0; justify-content: flex-end; padding-right: 22px; font-size: 1.05rem; font-weight: 500; color: var(--ink-2); }
.bm-falta b { font-weight: 600; color: var(--ink); margin-left: .35em; font-size: 1.35rem; letter-spacing: -.02em; }
@media (max-width: 900px) {
  .mt-hero .meta-top { grid-template-columns: minmax(0, 1fr); }
  .bm-pct { font-size: 1.1rem; } .bm-falta { font-size: .8rem; } .bm-falta b { font-size: 1rem; }
}

/* Meta v5 (22/10/2026): números grandes sem peso extra, faturamento apagado na barra, falta discreto, calendário alinhado */
.mt-hero .meta-top .kp b { font-weight: 400; letter-spacing: -.03em; }
.mt-hero .meta-top .kp-fat b { color: var(--ink); }
.mt-hero .bm-fat { background: rgba(var(--fg), .09); box-shadow: none; }
.bm-falta { font-family: var(--sans); font-size: .82rem; font-weight: 400; color: var(--ink-3); letter-spacing: .01em; }
.bm-pct { font-weight: 500; }
.mt-hero .mini-cal { align-self: center; gap: .6rem; }
.mt-hero .mc-head { align-items: center; gap: .55rem; }
.mt-hero .mc-head b { font-size: 1.9rem; font-weight: 400; }
.mt-hero .mc-head small { font-size: .6rem; line-height: 1.25; max-width: 7.5em; }
.mt-hero .mc-grade { grid-template-columns: repeat(7, 14px); gap: 4px; }
.mt-hero .mc-grade i { width: 14px; height: 14px; }

/* Time comercial (22/10/2026) */
.dialog.eq { width: min(540px, calc(100vw - 32px)); }
.eq h3 { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.eq-lista { display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.eq-grupo { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.eq-p { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; }
.eq-p small { color: var(--ink-3); margin-left: 6px; }
.eq-novo { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.eq-novo label { display: grid; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.eq-novo input:not([type=checkbox]), .eq-novo select { border: 1px solid var(--line-2); border-radius: 12px; background: var(--s-menu); color: var(--ink); padding: 9px 11px; font: inherit; font-size: .9rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.eq-novo .eq-check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.eq-faz { font-size: .78rem; line-height: 1.45; margin: 0; }
.eq-res { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: rgba(var(--fg), .04); font-size: .85rem; }
.eq-res b { font-weight: 600; }
.eq-res .ok { color: var(--green); } .eq-res .x { color: #ff4d5e; }
.time-topo-btn { margin-right: 10px; }
.eq-novo label.eq-check { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; }
.eq-novo .eq-check input { width: auto; margin: 0; flex: none; }

/* ================= Comissões (OTE, 22/10/2026) ================= */
.cm-conteudo { display: grid; gap: 18px; padding-bottom: 24px; }
.cm-tab-wrap { overflow-x: auto; }
.cm-tab { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; font-size: .88rem; }
.cm-tab th { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: right; padding: 0 12px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.cm-tab th:first-child { text-align: left; }
.cm-tab td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cm-tab td.n { text-align: right; }
.cm-tab td.cm-plano { font-weight: 600; }
.cm-tab td.cm-pot { color: var(--green); font-weight: 600; }
.cm-tab tbody tr:hover td { background: rgba(var(--fg), .025); }
.cm-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.cm-dot.r { background: #ff2638; } .cm-dot.y { background: #ffc400; } .cm-dot.g { background: #00e25b; }
.cm-ed, .cm-ed-txt { cursor: text; }
.cm-ed:hover, .cm-ed-txt:hover { outline: 1px dashed var(--line-2); outline-offset: -3px; border-radius: 6px; }
.cm-in { width: 100%; min-width: 90px; border: 1px solid #4d7cff; border-radius: 8px; background: var(--s-menu); color: var(--ink); padding: 6px 8px; font: inherit; text-align: inherit; }
.cm-in-txt { min-height: 110px; text-align: left; resize: vertical; line-height: 1.45; }
.cm-baixo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.cm-baixo h4, .cm-regra h4 { margin: 0 0 10px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cm-pessoas { display: grid; gap: 8px; }
.cm-p { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.cm-p b { font-weight: 600; }
.cm-p span { color: var(--ink-2); }
.cm-p select { border: 1px solid var(--line-2); border-radius: 10px; background: var(--s-menu); color: var(--ink); padding: 6px 8px; font: inherit; font-size: .85rem; }
.cm-dica { margin: 4px 0 0; font-size: .74rem; color: var(--ink-3); }
.cm-regra p { margin: 0 0 10px; font-size: .86rem; line-height: 1.5; color: var(--ink-2); padding: 2px 4px; }
@media (max-width: 1000px) { .cm-baixo { grid-template-columns: minmax(0, 1fr); } }

/* Venda editável (22/10/2026) */
.dialog.vd { width: min(720px, calc(100vw - 32px)); }
.vd-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vd-grade label { display: grid; gap: 6px; font-size: .68rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.vd-grade .vd-2 { grid-column: span 2; }
.vd-grade input:not([type=checkbox]), .vd-grade select { border: 1px solid var(--line-2); border-radius: 12px; background: var(--s-menu); color: var(--ink); padding: 9px 11px; font: inherit; font-size: .9rem; text-transform: none; letter-spacing: 0; font-weight: 400; min-width: 0; }
.vd-grade label.vd-check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 500; color: var(--ink-2); align-self: end; padding-bottom: 6px; }
.vd-grade .vd-check input { width: auto; margin: 0; }
.vd .dialog-actions { display: flex; align-items: center; gap: 8px; }
.vd-esp { flex: 1; }
.vd-apagar { color: #ff4d5e; }
.linha.vd-ed { cursor: pointer; }
.linha.vd-ed:hover { background: rgba(var(--fg), .04); }
@media (max-width: 640px) { .vd-grade { grid-template-columns: minmax(0, 1fr); } .vd-grade .vd-2 { grid-column: auto; } }
.dialog .vd-grade label.vd-check { flex-direction: row; justify-content: flex-start; align-items: center; }
.dialog .vd-grade label.vd-check input { width: auto; flex: none; }

/* ---------- Conteúdo (calendário editorial + Instagram, conteudo.js) ---------- */
.ct-nav { display: flex; align-items: center; gap: 6px; }
.ct-mes { min-width: 150px; text-align: center; font-weight: 600; font-size: 15px; }
.ct-ig { gap: 8px; }
.ct-ig i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.ct-ig:not(.on) { background: var(--ink); color: var(--on-ink); border-color: transparent; font-weight: 600; }
.ct-filtros { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 26px 12px; }
.ct-filtro { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.ct-filtro i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ct-filtro b { font-weight: 600; color: var(--ink-3); }
.ct-filtro[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.ct-filtro[aria-pressed="true"] b { color: var(--on-ink); opacity: .6; }
.ct-corpo { flex: 1; min-height: 0; overflow: auto; padding: 0 26px 26px; }

.ct-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; min-width: 820px; }
.ct-dsem { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 2px; }
.ct-dia { min-height: 132px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); padding: 7px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, background .15s; }
.ct-dia.fora { opacity: .45; }
.ct-dia.hoje { border-color: var(--navy-ink); }
.ct-dia.hoje .ct-dn span { background: var(--ink); color: var(--on-ink); }
.ct-dia.ct-alvo, .ct-col.ct-alvo { border-color: var(--ink-2); background: var(--glass-2); }
.ct-dn { display: flex; align-items: center; justify-content: space-between; }
.ct-dn .ct-add { order: 0; } .ct-dn span { order: 1; }
.ct-dn span { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ct-add { width: 24px; height: 24px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 18px; font-weight: 500; line-height: 1; opacity: 0; display: grid; place-items: center; padding: 0 0 2px; cursor: pointer; }
.ct-add:focus-visible { opacity: 1; }
.ct-dia:hover .ct-add { opacity: 1; }
.ct-add:hover { background: var(--glass-3); color: var(--ink); }
.ct-lista { display: flex; flex-direction: column; gap: 5px; }

.ct-item { position: relative; border-radius: 10px; background: var(--s-ev); padding: 6px 8px 6px 11px; cursor: pointer; font-size: 12px; line-height: 1.3; overflow: hidden; }
.ct-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.ct-item:hover { background: var(--s-ev-hover); }
.ct-item.arrastando { opacity: .4; }
.ct-item.erro { box-shadow: inset 0 0 0 1px var(--red); }
.ct-l1 { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 11px; font-weight: 600; }
.ct-l1 i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ct-l1 em { margin-left: auto; font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--glass-3); color: var(--ink-2); }
.ct-l1 em.ok { background: rgba(76, 195, 138, .16); color: var(--green); }
.ct-l1 em.bad { background: rgba(239, 83, 80, .16); color: var(--red); }
.ct-nome { font-weight: 500; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-item.grande { padding: 9px 10px 9px 13px; font-size: 13px; display: flex; flex-direction: column; gap: 5px; }
.ct-thumb { position: relative; margin: -9px -10px 2px -13px; aspect-ratio: 4 / 5; max-height: 150px; background: #000; overflow: hidden; }
.ct-thumb img, .ct-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-thumb b { position: absolute; right: 6px; top: 6px; font-size: 11px; background: rgba(0, 0, 0, .65); color: #fff; padding: 1px 7px; border-radius: 999px; }
.ct-l3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ct-obj { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.ct-plat { display: inline-flex; gap: 4px; margin-left: auto; }
.ct-plat span { font-size: 10px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 5px; }

.ct-semdata { margin-top: 18px; }
.ct-semdata h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ct-semdata > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }

.ct-quadro { display: flex; gap: 10px; align-items: flex-start; min-height: 100%; }
.ct-col { flex: 0 0 236px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.ct-col header { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 2px 2px 4px; }
.ct-col header i { width: 8px; height: 8px; border-radius: 50%; }
.ct-col header b { margin-left: auto; color: var(--ink-3); font-weight: 600; }
.ct-col .ct-lista { gap: 8px; }

/* janela da peça */
.dialog.ct-dialog { width: min(1060px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: hidden; }
.dialog.ct-dialog[open] { display: flex; flex-direction: column; }
.ct-d { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; padding: 24px 24px 8px; min-height: 0; overflow: auto; }
.ct-d input, .ct-d select, .ct-d textarea { font: 13.5px/1.5 var(--sans); color: var(--ink); background: var(--s-campo); border: 1px solid var(--line-2); border-radius: 12px; outline: 0; padding: 0 12px; height: 40px; width: 100%; }
.ct-d textarea { height: auto; padding: 10px 12px; resize: vertical; }
.ct-d input:focus, .ct-d select:focus, .ct-d textarea:focus { border-color: var(--ink-3); }
.ct-d-esq { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ct-d .ct-d-nome { font-size: 20px; font-weight: 600; height: 48px; background: transparent; border-color: transparent; padding: 0 4px; }
.ct-d .ct-d-nome:hover, .ct-d .ct-d-nome:focus { border-color: var(--line-2); background: var(--s-campo); padding: 0 12px; }
.ct-d-campos { display: grid; grid-template-columns: 136px 96px 1fr .8fr 1.5fr; gap: 8px; }
.ct-igbox .btn:disabled { opacity: .35; cursor: default; }
.ct-d label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.ct-d label small { font-weight: 500; float: right; }
.ct-d label small.bad { color: var(--red); }
.ct-d-txt { position: relative; }
.ct-d-txt small { position: absolute; right: 2px; top: 0; }
.ct-d-linha { display: flex; gap: 8px; align-items: center; }
.ct-plats { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); flex: none; }
.ct-plats button { height: 32px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.ct-plats button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.ct-d-dir { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ct-d-dir h4 { margin: 4px 0 0; font-size: 13px; font-weight: 600; }
.ct-drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-3); cursor: pointer; text-align: center; }
.ct-drop:hover, .ct-drop.sobre { border-color: var(--ink-2); color: var(--ink); background: var(--glass); }
.ct-drop svg { width: 22px; height: 22px; }
.ct-prog { height: 4px; border-radius: 4px; background: var(--glass-3); overflow: hidden; }
.ct-prog i { display: block; height: 100%; width: var(--p, 0%); background: var(--ink); transition: width .2s; }
.ct-midias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ct-m { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #000; }
.ct-m img, .ct-m video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-m > b { position: absolute; left: 5px; top: 5px; font-size: 10.5px; background: rgba(0, 0, 0, .65); color: #fff; border-radius: 999px; padding: 0 6px; }
.ct-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; text-shadow: 0 1px 6px #000; pointer-events: none; }
.ct-m-acoes { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 3px; opacity: 0; transition: opacity .15s; }
.ct-m:hover .ct-m-acoes { opacity: 1; }
.ct-m-acoes button { width: 22px; height: 22px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 14px; line-height: 1; }
.ct-igbox { margin-top: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ct-igbox p { margin: 0; font-size: 12.5px; line-height: 1.45; }
.ct-igbox p:empty { display: none; }
.ct-igbox .ok { color: var(--green); }
.ct-igbox .bad { color: var(--red); }
.ct-igbox a { color: var(--ink); }
.ct-d .ct-auto { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.ct-d .ct-auto input { width: 16px; height: 16px; padding: 0; accent-color: var(--green); }
.ct-d-pe { display: flex; align-items: center; gap: 12px; padding: 12px 24px 18px; border-top: 1px solid var(--line); }
.ct-d-pe .muted { margin-left: auto; font-size: 12px; }
.ct-d-pe .ev-excluir { margin-right: 0; }
@media (max-width: 860px) {
  .ct-d { grid-template-columns: 1fr; }
  .ct-d-campos { grid-template-columns: 1fr 1fr; }
  .ct-d-linha { flex-wrap: wrap; }
}
/* compradores: contato, Asaas e nota (22/10/2026) */
.vd-quem small a { color: var(--ink-2); text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.vd-quem small a:hover { color: var(--ink); }
.vd-asaas { font-weight: 600; }
.vd-quem small a.vd-asaas.g, .vd-asaas.g { color: var(--green); } .vd-quem small a.vd-asaas.y, .vd-asaas.y { color: #ffc400; } .vd-quem small a.vd-asaas.r, .vd-asaas.r { color: #ff4d5e; }
.vd-nota { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .62rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: rgba(27, 53, 119, .35); color: #b9c8f2; vertical-align: 2px; cursor: help; }
.vd-grade textarea { border: 1px solid var(--line-2); border-radius: 12px; background: var(--s-menu); color: var(--ink); padding: 9px 11px; font: inherit; font-size: .9rem; text-transform: none; letter-spacing: 0; font-weight: 400; min-height: 70px; resize: vertical; }
.vd-grade .vd-3 { grid-column: 1 / -1; }
.vd-quem small { text-transform: none; letter-spacing: 0; }
.cm-tipo { justify-self: start; }
.cm-tipo button small { margin-left: 6px; font-size: .7rem; color: var(--ink-3); }
.ct-redes { display: flex; gap: 6px; }
.ct-redes .ct-ig:disabled { opacity: .45; cursor: default; }
.ct-igbox h4 { margin: 0; font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: baseline; }
.ct-igbox h4 small { font-weight: 500; color: var(--ink-3); }
.ct-redes-st { display: flex; flex-direction: column; gap: 4px; }
.ct-redes-st b { font-weight: 600; color: var(--ink); }
.ct-tt-ch { display: flex; gap: 14px; flex-wrap: wrap; }
.ct-tt-ch .ct-auto { font-weight: 500; font-size: 12.5px; }
.ct-d .ct-auto input:disabled + * , .ct-d .ct-auto:has(input:disabled) { opacity: .45; }
.ct-tt-aviso { font-size: 11.5px !important; }
/* aba Vendas: custo, lucro e margem (22/10/2026) */
.vd-res { margin-top: 12px; }
.vd-pos { color: #00e25b; } .vd-neg { color: #ff2638; }
.vd-res-vazio { margin: 12px 0 0; }
/* pagamentos pendentes (22/10/2026) */
.vd-sub { margin: 18px 0 8px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.vd-link { color: var(--ink); text-decoration: none; border-bottom: 1px dotted var(--line-2); font-size: .85rem; }
.vd-mais { margin-top: 10px; }
.vd-pend .linha .v.vd-neg { color: #ff2638; }
/* pendentes: setas (22/10/2026) */
.vd-pend .tm-seta.on { transform: rotate(180deg); background: var(--navy-g); color: #fff; border-color: rgba(109, 138, 214, .35); }
.vd-sec { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.vd-sec .tm-seta { width: 26px; height: 26px; }
.vd-sec small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); margin-left: 4px; }
.vd-boletos { display: grid; gap: 4px; margin: -2px 0 8px 3.2rem; }
.vd-bol { display: grid; grid-template-columns: 6.5rem 7rem 5.5rem minmax(0, 1fr) 4.5rem; gap: 10px; align-items: center; padding: 7px 12px; border-radius: 10px; background: rgba(var(--fg), .03); font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.vd-bol.venc { color: #ff2638; }
/* aba Vendas: as 7 métricas lado a lado (22/10/2026) */
.kps.k7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.vd-kps .kp b { font-size: 1.3rem; }
.vd-kps .mini-pct { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
@media (max-width: 1300px) { .kps.k7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kps.k7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Página Tráfego (menu lateral, 22/10/2026): campanhas da Meta + funis + lucro */
.tr-pagina { padding-top: 8px; }
.tr-graf { width: 100%; height: 220px; display: block; }
.tr-secao { margin: 1.4rem .2rem .7rem; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tr-rolar { overflow-x: auto; margin: 0 -.2rem; padding: 0 .2rem; }
.tr-tab { min-width: 1180px; }
.tr-camps .linha.fina { min-height: 3.2rem; }
.tr-camp { cursor: pointer; }
.tr-camp:hover { border-color: var(--line-2); }
.tr-camp .v small, .tr-ad .v small { display: block; font-size: .68rem; color: var(--ink-3); font-weight: 600; margin-top: 1px; }
.tr-nome { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.tr-nome > div { min-width: 0; }
.tr-nome b { display: block; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-nome b a { color: inherit; text-decoration: none; }
.tr-nome b a:hover { text-decoration: underline; }
.tr-nome small { display: block; font-size: .72rem; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-nome img, .tr-thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--glass-2); }
.tr-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); margin-right: 5px; vertical-align: 1px; }
.tr-dot.on { background: var(--green); box-shadow: 0 0 6px rgba(76, 195, 138, .6); }
.tr-funil { display: inline-block; font-size: .64rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; color: #0c0c0e; letter-spacing: .02em; }
.tr-funil.f-topo { background: #4a8fe7; } .tr-funil.f-meio { background: #8e7cc3; } .tr-funil.f-forms { background: #e3c22b; } .tr-funil.f-outro { background: #8a8a91; }
.tr-spark { width: 100%; height: 22px; display: block; }
.tr-spark polyline { stroke: var(--navy-ink); stroke-width: 1.6; }
.tr-seta { color: var(--ink-3); text-align: center; font-size: .8rem; }
.tr-det { margin: -.1rem 0 .8rem 1.2rem; padding: .9rem 1rem; border-left: 2px solid var(--line-2); display: grid; gap: .9rem; }
.tr-det > div > small, .tr-det-crm > small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.tr-det-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; }
.tr-det-grade > div { background: var(--glass); border: 1px solid var(--line); border-radius: .8rem; padding: .55rem .75rem; }
.tr-det-grade small { display: block; font-size: .68rem; color: var(--ink-3); font-weight: 600; }
.tr-det-grade b { font-size: .95rem; font-weight: 600; }
.tr-det-ads .tab-cab { margin-top: .2rem; }
.tr-ad { cursor: default; }
@media (max-width: 700px) { .tr-det { margin-left: 0; } .tr-graf { height: 170px; } }
.tr-seta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; vertical-align: middle; }
.tr-seta.on svg { transform: rotate(90deg); }
.tr-camp:hover .tr-seta { color: var(--ink); }

/* Conteúdo no estilo Notion (22/10/2026): card com a cor do objetivo, pílula de status e etiqueta; peça aberta como página */
.ct-item { background: color-mix(in srgb, var(--c) 14%, var(--s-ev)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); padding: 8px 9px; display: flex; flex-direction: column; gap: 6px; }
.ct-item::before { display: none; }
.ct-item:hover { background: color-mix(in srgb, var(--c) 20%, var(--s-ev)); }
.ct-item .ct-nome { display: flex; gap: 6px; align-items: flex-start; font-weight: 600; font-size: 12.5px; -webkit-line-clamp: unset; }
.ct-item .ct-nome span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-doc { width: 14px; height: 14px; color: var(--ink-3); margin-top: 1px; flex: none; }
.ct-pills { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ct-st { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; padding: 2px 8px 2px 6px; border-radius: 999px; background: rgba(var(--fg), .1); color: var(--ink-2); }
.ct-st i { width: 7px; height: 7px; border-radius: 50%; }
.ct-pills small { font-size: 10.5px; color: var(--ink-3); }
.ct-pills em { margin-left: auto; font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--glass-3); color: var(--ink-2); }
.ct-pills em.ok { background: rgba(76, 195, 138, .16); color: var(--green); }
.ct-pills em.bad { background: rgba(239, 83, 80, .16); color: var(--red); }
.ct-pills em.ia { background: rgba(167, 139, 250, .18); color: #c4b5fd; }
.ct-item .ct-obj { font-size: 10.5px; border-radius: 6px; padding: 2px 7px; }
.ct-item.grande { gap: 7px; }
.ct-fila { gap: 7px; color: #c4b5fd; }
.ct-fila i { width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; animation: ct-pulso 1.4s ease-in-out infinite; }
@keyframes ct-pulso { 50% { opacity: .3; } }

.ct-pg { gap: 6px; }
.ct-d .ct-pg-titulo { font-size: 30px; font-weight: 700; height: auto; padding: 4px 0 10px; border: 0; background: transparent; letter-spacing: -.01em; }
.ct-d .ct-pg-titulo:focus { background: transparent; }
.ct-props { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.ct-prop { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; min-height: 36px; border-radius: 8px; padding: 0 4px; }
.ct-prop:hover { background: var(--glass); }
.ct-prop > span { display: flex; align-items: center; gap: 9px; color: var(--ink-3); font-size: 13.5px; }
.ct-prop > span svg { width: 16px; height: 16px; }
.ct-d .ct-prop input, .ct-d .ct-prop select { height: 32px; border: 0; background: transparent; padding: 0 8px; width: auto; max-width: 100%; border-radius: 6px; }
.ct-d .ct-prop input:hover, .ct-d .ct-prop select:hover { background: var(--glass-2); }
.ct-d .ct-prop input[name=cta] { width: 100%; }
.ct-prop-v { display: flex; gap: 2px; }
.ct-pill { display: inline-flex; width: fit-content; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(var(--fg), .1); font-weight: 500; font-size: 13px; color: var(--ink); margin-left: 6px; }
.ct-d .ct-sel { appearance: none; -webkit-appearance: none; font-weight: 500; }
.ct-d .ct-sel-obj { background: color-mix(in srgb, var(--c) 20%, transparent); color: color-mix(in srgb, var(--c) 75%, white); margin-left: 6px; height: 28px; }
.ct-d .ct-sel-obj.vazio { background: transparent; color: var(--ink-3); }
.ct-d .ct-sel-st { background: color-mix(in srgb, var(--c) 18%, transparent); margin-left: 6px; height: 28px; border-radius: 999px; padding: 0 12px; }
.ct-prop .ct-plats { border: 0; background: transparent; padding: 0 0 0 4px; }
.ct-prop .ct-plats button { height: 26px; border-radius: 6px; background: var(--glass); }
.ct-prop .ct-plats button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.ct-prop .ct-plats button { display: inline-flex; align-items: center; gap: 6px; }
/* logos das redes (Instagram, TikTok, YouTube) na peça */
svg.rede-ico { width: 15px; height: 15px; min-width: 15px; flex: none; position: static; }
.rede-ico.ig { fill: none; stroke: #e1306c; stroke-width: 2; }
.rede-ico.ig .pt { fill: #e1306c; stroke: none; }
.rede-ico.tt { fill: currentColor; stroke: none; }
.rede-ico.yt { fill: #ff0000; stroke: none; }
.ct-plats button[aria-pressed="true"] .rede-ico.ig { stroke: currentColor; } .ct-plats button[aria-pressed="true"] .rede-ico.ig .pt { fill: currentColor; }
.ct-plats button[aria-pressed="true"] .rede-ico.yt { fill: currentColor; }
.ct-plats button:not([aria-pressed="true"]) .rede-ico { opacity: .55; }
.ct-redes-st .ct-rede { display: flex; align-items: flex-start; gap: 7px; margin: 0; line-height: 1.35; }
.ct-redes-st .ct-rede .rede-ico { margin-top: 1px; }
.ct-redes-st .ct-rede > span { color: var(--ink-3); }
.ct-redes-st .ct-rede > span::before { content: '· '; }
/* quadro: as 10 etapas cabem na tela */
.ct-quadro .ct-col { flex: 1 0 158px; min-width: 158px; }
.ct-coment h5 { margin: 6px 0 6px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.ct-cm { padding: 6px 4px; border-radius: 8px; }
.ct-cm b { font-size: 12.5px; } .ct-cm small { margin-left: 8px; color: var(--ink-3); font-size: 11px; }
.ct-cm p { margin: 2px 0 0; font-size: 13px; white-space: pre-wrap; }
.ct-cm.ia b { color: #c4b5fd; }
.ct-d #ct-coment-in { border: 0; background: transparent; padding: 0 4px; height: 36px; }
.ct-hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.ct-pg-txt { display: flex; flex-direction: column; gap: 4px; }
.ct-pg-txt > span { font-size: 12px; color: var(--ink-3); font-weight: 600; display: flex; justify-content: space-between; }
.ct-d .ct-pg-txt textarea { border: 0; background: transparent; padding: 4px; font-size: 15px; line-height: 1.6; resize: none; overflow: hidden; }
.ct-d .ct-pg-txt textarea:focus { background: var(--glass); }
.ct-d .ct-prop select.ct-sel-obj { background: color-mix(in srgb, var(--c) 22%, transparent); color: color-mix(in srgb, var(--c) 70%, white); }
.ct-d .ct-prop select.ct-sel-obj.vazio { background: transparent; color: var(--ink-3); }
.ct-d .ct-prop select.ct-sel-st { background: color-mix(in srgb, var(--c) 24%, transparent); color: var(--ink); border-radius: 999px; padding: 0 12px; }
.ct-d .ct-prop select.ct-sel-obj:hover, .ct-d .ct-prop select.ct-sel-st:hover { filter: brightness(1.15); }
.ct-d .ct-prop select, .ct-d .ct-prop input[type=date], .ct-d .ct-prop input[type=time] { width: fit-content; field-sizing: content; justify-self: start; }
/* grupos da barra lateral separados (24/10/2026, pedido do Pedro): espaço + linha entre Comercial, Marketing e Time */
.nav-grupo + .nav-grupo { border-top: 0; margin-top: -4px; padding-top: 8px; }
.nav-grupo { padding-bottom: 8px; }
.sidebar { overflow-y: auto; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
@media (max-height: 1000px) {
  .sidebar { padding-top: 12px; padding-bottom: 10px; }
  .brand { margin-bottom: 8px; padding-bottom: 8px; }
  .nav-item { padding: 4px 0 3px; }
  .nav-item svg { width: 18px; height: 18px; }
  .nav-grupo { padding: 3px 0 7px; gap: 2px; }
  .nav-grupo + .nav-grupo { padding-top: 7px; }
}
@media (max-width: 640px) { .nav-grupo + .nav-grupo { margin-top: 0; } }
/* dias da semana fixos no topo ao rolar o calendário */
.ct-dsem { position: sticky; top: 0; z-index: 3; background: var(--frame); padding-top: 6px; padding-bottom: 6px; box-shadow: 0 1px 0 var(--line); }

/* ---------- Playbooks (23/10/2026) ---------- */
.pb-busca { height: 34px; width: 240px; border-radius: 10px; padding: 0 12px; background: var(--glass-2); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 13px; }
.pb-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; padding: 0 26px 18px; }
.pb-indice { overflow: auto; padding: 4px 4px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.pb-sec h4 { margin: 0 0 6px 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pb-link { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.pb-link:hover { background: var(--glass); color: var(--ink); }
.pb-link.on { background: var(--navy-g); color: #fff; }
.pb-cadeado { font-style: normal; font-size: 8px; color: var(--ink-3); }
.pb-link.on .pb-cadeado { color: #fff; }
.pb-corpo { overflow: auto; min-height: 0; border-radius: var(--r-lg); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.pb-art { max-width: 860px; margin: 0 auto; padding: 28px 34px 40px; }
.pb-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.pb-cab h2 { margin: 4px 0 0; font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.pb-secao { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-ink); }
.pb-sub { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.pb-acoes { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.pb-acoes .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pb-rodape { margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }

.pb-doc { font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.pb-doc p { margin: 0 0 8px; }
.pb-doc h3 { font-size: 20px; font-weight: 650; margin: 26px 0 10px; letter-spacing: -.01em; }
.pb-doc h4 { font-size: 16px; font-weight: 600; margin: 18px 0 8px; }
.pb-doc h5 { font-size: 14.5px; font-weight: 600; margin: 14px 0 6px; }
.pb-doc ul, .pb-doc ol { margin: 0 0 10px; padding-left: 22px; }
.pb-doc li { margin: 3px 0; }
.pb-doc hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.pb-doc a { color: var(--navy-ink); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.pb-doc table { border-collapse: collapse; margin: 8px 0 14px; font-size: 13.5px; }
.pb-doc td, .pb-doc th { border: 1px solid var(--line-2); padding: 6px 10px; vertical-align: top; text-align: left; }
.pb-doc blockquote { margin: 8px 0; padding-left: 14px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.pb-doc pre, .pb-doc code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--glass-2); border-radius: 6px; }
.pb-doc pre { padding: 10px 12px; white-space: pre-wrap; }
.pb-doc mark { background: rgba(242, 193, 78, .35); color: inherit; border-radius: 3px; }
.pb-doc details { margin: 4px 0; border-radius: 10px; }
.pb-doc details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 4px; border-radius: 8px; font-weight: 500; }
.pb-doc details > summary::-webkit-details-marker { display: none; }
.pb-doc details > summary::before { content: ''; flex-shrink: 0; width: 0; height: 0; border-left: 6px solid var(--ink-3); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; transition: transform .15s; margin: 0 4px; }
.pb-doc details[open] > summary::before { transform: rotate(90deg); }
.pb-doc details > summary:hover { background: var(--glass); }
.pb-doc details > summary h3, .pb-doc details > summary h4 { margin: 0; }
.pb-doc details > :not(summary) { margin-left: 22px; }
.pb-doc details[open] { padding-bottom: 6px; }
.pb-copiar { margin-left: auto; opacity: 0; height: 24px; padding: 0 9px; border-radius: 7px; border: 0; font: inherit; font-size: 11.5px; font-weight: 500; color: var(--ink-2); background: var(--glass-2); cursor: pointer; }
.pb-doc summary:hover > .pb-copiar { opacity: 1; }
.pb-copiar:hover { color: var(--ink); background: var(--glass-3); }
.pb-callout { display: flex; gap: 10px; padding: 14px 16px; margin: 10px 0; border-radius: 14px; background: rgba(var(--fg), .04); box-shadow: inset 0 0 0 1px var(--line); }
.pb-callout > div { flex: 1; min-width: 0; }
.pb-callout > div > :last-child { margin-bottom: 0; }
.pb-ico { font-size: 18px; line-height: 1.4; }
ul.pb-check { list-style: none; padding-left: 4px; }
ul.pb-check > li { position: relative; padding-left: 28px; cursor: default; }
ul.pb-check > li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; }
ul.pb-check > li.feito::before { background: var(--navy-g); box-shadow: inset 0 0 0 1px rgba(109, 138, 214, .5); }
ul.pb-check > li.feito::after { content: ''; position: absolute; left: 5.5px; top: 6.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
ul.pb-check > li.feito { color: var(--ink-3); }
/* cores do Notion */
.c-gray { color: var(--ink-3); } .c-green { color: #4cc38a; } .c-red { color: #ef5350; } .c-blue { color: #6d9cf0; }
.c-yellow { color: #e0b03c; } .c-purple { color: #a98ef0; } .c-pink { color: #e879b9; } .c-orange { color: #ec9346; } .c-brown { color: #b38a6a; }
[data-tema="claro"] .c-green { color: #1c8a55; } [data-tema="claro"] .c-blue { color: #2f6fd6; } [data-tema="claro"] .c-yellow { color: #a87a06; } [data-tema="claro"] .c-purple { color: #7a55d6; }

.pb-busca-res { max-width: 860px; margin: 0 auto; padding: 24px 34px; display: flex; flex-direction: column; gap: 8px; }
.pb-busca-res h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.pb-res { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--glass); text-decoration: none; color: var(--ink); }
.pb-res:hover { background: var(--glass-2); }
.pb-res p { margin: 0; font-size: 13px; color: var(--ink-2); }

/* editor estilo Notion (23/10/2026) */
.pb-sec-cab { display: flex; align-items: center; gap: 2px; margin: 0 0 6px; padding-right: 2px; border-radius: 8px; }
.pb-sec-cab h4 { flex: 1; margin: 0 0 0 10px; padding: 3px 0; cursor: default; }
#view-playbooks .pb-sec-cab:has(.pb-mini) h4 { cursor: grab; }
.pb-mini { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; flex-shrink: 0; }
.pb-mini:hover { background: var(--glass-3); color: var(--ink); }
.pb-sec-cab:hover .pb-mini, .pb-link:hover .pb-mini { opacity: 1; }
.pb-link .pb-mini { margin: -3px -4px -3px 0; }
.pb-link.on .pb-mini { color: rgba(255, 255, 255, .8); }
.pb-link.on .pb-mini:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.pb-link { justify-content: flex-start; }
.pb-link-ico { flex-shrink: 0; font-size: 14px; line-height: 1; }
.pb-link-ico:empty { display: none; }
.pb-link-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-sec-vazia { margin: 0 4px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 12px; }
.pb-nova-sec { align-self: flex-start; margin-left: 4px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); font: inherit; font-size: 12.5px; cursor: pointer; }
.pb-nova-sec:hover { background: var(--glass); color: var(--ink); }
.pb-sec-in { flex: 1; min-width: 0; height: 26px; margin: 0 0 0 6px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--navy-ink); background: var(--glass-2); color: var(--ink); font: inherit; font-size: 13px; outline: none; }
.pb-link .pb-sec-in { margin: -4px 0; }
.pb-gota { position: fixed; z-index: 60; height: 3px; border-radius: 2px; background: var(--navy-ink); pointer-events: none; }
.pb-arrastando { opacity: .35; }
body.pb-sem-selecao, body.pb-sem-selecao * { user-select: none !important; -webkit-user-select: none !important; cursor: grabbing !important; }

.pb-cab-txt { flex: 1; min-width: 0; }
.pb-icone { display: block; margin: 0 0 8px -4px; padding: 2px 4px; border: 0; border-radius: 10px; background: transparent; font-size: 44px; line-height: 1.1; cursor: pointer; }
.pb-icone:disabled { cursor: default; }
.pb-icone:not(:disabled):hover { background: var(--glass-2); }
.pb-add-ico { display: block; margin: -6px 0 6px -6px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font: inherit; font-size: 12.5px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.pb-cab:hover .pb-add-ico { opacity: 1; }
.pb-add-ico:hover { background: var(--glass-2); color: var(--ink-2); }
.pb-editavel [contenteditable] { outline: none; }
.pb-editavel #pb-titulo { min-height: 1.2em; }
.pb-editavel #pb-subt { min-height: 1.4em; }
.pb-editavel [data-ph]:empty::before { content: attr(data-ph); color: var(--ink-3); opacity: .6; pointer-events: none; }
.pb-estado { font-size: 12px; color: var(--ink-3); min-width: 64px; text-align: right; }
.pb-acoes .icon-btn svg circle { fill: currentColor; stroke: none; }
.pb-editavel .pb-doc { min-height: 50vh; padding-bottom: 30vh; caret-color: var(--navy-ink); }
.pb-editavel .pb-doc > p:only-child:has(> br:only-child)::before, .pb-editavel .pb-doc .pb-ph::before { content: 'Escreva, ou digite “/” para blocos'; position: absolute; color: var(--ink-3); opacity: .6; pointer-events: none; }
.pb-editavel .pb-doc details > summary { cursor: text; }
.pb-editavel .pb-doc details > summary::before { cursor: pointer; }
.pb-editavel .pb-doc td, .pb-editavel .pb-doc th { min-width: 80px; }
.pb-editavel .pb-doc pre:empty::before { content: ' '; }
.pb-editavel .pb-ico { cursor: pointer; border-radius: 6px; }
.pb-editavel .pb-ico:hover { background: var(--glass-2); }
.pb-doc p, .pb-doc h3, .pb-doc h4, .pb-doc h5, .pb-doc li { position: relative; }
.pb-doc a[href^="#/playbooks"] { text-decoration: none; border-bottom: 1px solid var(--line-2); font-weight: 500; }

/* cores de fundo (blocos e trechos) */
.bg-gray { background: rgba(140, 140, 140, .16); } .bg-brown { background: rgba(160, 110, 80, .2); } .bg-orange { background: rgba(236, 147, 70, .2); }
.bg-yellow { background: rgba(224, 176, 60, .2); } .bg-green { background: rgba(76, 195, 138, .18); } .bg-blue { background: rgba(109, 156, 240, .2); }
.bg-purple { background: rgba(169, 142, 240, .2); } .bg-pink { background: rgba(232, 121, 185, .2); } .bg-red { background: rgba(239, 83, 80, .2); }
span[class^="bg-"], span[class*=" bg-"] { border-radius: 4px; padding: 0 2px; }
.pb-doc > [class*="bg-"], .pb-doc details > [class*="bg-"] { border-radius: 8px; padding: 4px 8px; }

/* alça ⋮⋮ e + */
.pb-alca { position: fixed; z-index: 40; display: flex; gap: 1px; opacity: 0; pointer-events: none; transition: opacity .12s; }
.pb-alca.on { opacity: 1; pointer-events: auto; }
.pb-alca button { width: 22px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); font: inherit; font-size: 18px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.pb-alca button:hover { background: var(--glass-3); color: var(--ink); }
.pb-alca-grip { cursor: grab !important; }
.pb-alca-grip svg { width: 10px; height: 16px; fill: currentColor; }

/* menus */
.pb-menu, .pb-barra-menu { min-width: 230px; max-height: min(420px, 70vh); overflow: auto; padding: 5px; border-radius: 14px; }
.pb-menu button, .pb-barra-menu button { display: flex; align-items: center; gap: 10px; padding: 6px 9px; border-radius: 8px; font-weight: 500; font-size: 13.5px; color: var(--ink); }
.pb-menu button.on { color: var(--navy-ink); }
.pb-menu button.on::after { content: '✓'; margin-left: auto; font-size: 12px; }
.pb-barra-menu button.sel { background: var(--glass-2); }
.pb-menu kbd { margin-left: auto; font: inherit; font-size: 11.5px; color: var(--ink-3); }
.pb-menu-tit { padding: 6px 9px 4px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.pb-tipo-ico { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 7px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 650; color: var(--ink-2); }
.pb-cores { padding: 0 2px 4px; }
.pb-cores-l { display: grid; grid-template-columns: repeat(10, 26px); gap: 3px; padding: 2px 7px 4px; }
.pb-menu .pb-cores-l button { width: 26px; height: 26px; padding: 0; justify-content: center; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; }
.pb-menu .pb-cores-l button:hover { box-shadow: inset 0 0 0 1.5px var(--navy-ink); }
.pb-sem { color: var(--ink-3) !important; }
/* amostras do menu de cor */
.pb-cores-l button.c-gray { color: #9b9b9b; } .pb-cores-l button.bg-gray { background: rgba(140,140,140,.35); }
.pb-cores-l button.c-brown { color: #b38a6a; } .pb-cores-l button.bg-brown { background: rgba(160,110,80,.45); }
.pb-cores-l button.c-orange { color: #ec9346; } .pb-cores-l button.bg-orange { background: rgba(236,147,70,.45); }
.pb-cores-l button.c-yellow { color: #e0b03c; } .pb-cores-l button.bg-yellow { background: rgba(224,176,60,.45); }
.pb-cores-l button.c-green { color: #4cc38a; } .pb-cores-l button.bg-green { background: rgba(76,195,138,.4); }
.pb-cores-l button.c-blue { color: #6d9cf0; } .pb-cores-l button.bg-blue { background: rgba(109,156,240,.45); }
.pb-cores-l button.c-purple { color: #a98ef0; } .pb-cores-l button.bg-purple { background: rgba(169,142,240,.45); }
.pb-cores-l button.c-pink { color: #e879b9; } .pb-cores-l button.bg-pink { background: rgba(232,121,185,.45); }
.pb-cores-l button.c-red { color: #ef5350; } .pb-cores-l button.bg-red { background: rgba(239,83,80,.45); }

.pb-emojis { min-width: 0; width: 300px; padding: 8px; }
.pb-emo-grade { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.pb-emojis .pb-emo-grade button { padding: 0; height: 32px; font-size: 19px; text-align: center; border-radius: 8px; }
.pb-emo-pe { display: flex; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.pb-emo-pe input { flex: 1; min-width: 0; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--glass-2); color: var(--ink); padding: 0 8px; font: inherit; font-size: 13px; }
.pb-emojis .pb-emo-pe button { width: auto; padding: 0 10px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }

/* barra de formatação da seleção */
.pb-fmt { position: fixed; z-index: 45; display: none; align-items: center; gap: 2px; padding: 4px; border-radius: 11px; background: var(--s-menu); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.pb-fmt.on { display: flex; }
.pb-fmt button { height: 28px; min-width: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.pb-fmt button:hover { background: var(--glass-2); color: var(--ink); }
.pb-fmt button.on { color: var(--navy-ink); background: var(--glass-2); }
.pb-fmt button code { font-size: 11.5px; background: none; }
.pb-fmt > i { width: 1px; height: 18px; background: var(--line-2); margin: 0 3px; }
.pb-fmt-a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; font-weight: 650; }
.pb-fmt-in { width: 280px; height: 28px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; padding: 0 8px; outline: none; }
.pb-fmt-url { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; font-size: 12.5px; color: var(--navy-ink); text-decoration: none; }
.pb-fmt-url:hover { text-decoration: underline; }
.pb-tab-bar button { font-size: 12px; }
.btn.danger { color: var(--red); }

/* ---------- Daily (23/10/2026) ---------- */
#dl-prev:disabled, #dl-prox:disabled { opacity: .35; cursor: default; }
.dl-corpo { flex: 1; min-height: 0; overflow: auto; padding: 0 26px 24px; }
.dl-grade { display: grid; grid-template-columns: 150px repeat(var(--cols), minmax(220px, 1fr)); gap: 8px; min-width: min-content; }
.dl-canto { position: sticky; top: 0; z-index: 2; background: var(--frame); }
.dl-pessoa { position: sticky; top: 0; z-index: 1; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 13.5px; background: var(--s-menu); box-shadow: inset 0 0 0 1px var(--line); }
.dl-pessoa.minha { background: var(--navy-g); color: #fff; }
.dl-rot { padding: 12px 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.dl-cel { padding: 10px 14px; border-radius: 12px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; min-height: 46px; }
.dl-cel.auto { color: var(--ink-2); }
.dl-cel.ed { padding: 0; background: var(--glass-2); }
.dl-cel.ed:focus-within { box-shadow: inset 0 0 0 1.5px var(--navy-ink); }
.dl-cel textarea { display: block; width: 100%; min-height: 46px; padding: 10px 14px; border: 0; outline: none; background: transparent; color: inherit; font: inherit; line-height: 1.5; resize: none; overflow: hidden; }
.dl-config { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; max-width: 760px; }
.dl-config h4 { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.dl-config textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--glass-2); color: var(--ink); font: inherit; font-size: 13.5px; padding: 10px 12px; resize: vertical; }
.dl-config-acoes { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 760px) {
  .pb-wrap { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 0 16px 16px; }
  .pb-indice { flex-direction: row; overflow-x: auto; gap: 10px; padding: 0 0 4px; }
  .pb-sec { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
  .pb-sec h4 { display: none; }
  .pb-link { white-space: nowrap; background: var(--glass); }
  .pb-art { padding: 20px 18px 30px; }
  .pb-cab { flex-direction: column; }
  .pb-busca { width: 100%; }
  .dl-corpo { padding: 0 16px 16px; }
  .dl-grade { grid-template-columns: 110px repeat(var(--cols), minmax(200px, 1fr)); }
}
/* link da referência: ícone no card e propriedade na página */
.ct-ref-ico { margin-left: auto; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--ink-2); background: rgba(var(--fg), .08); }
.ct-ref-ico:hover { color: var(--ink); background: rgba(var(--fg), .16); }
.ct-ref-ico svg { width: 13px; height: 13px; }
.ct-ref { align-items: center; width: 100%; }
.ct-d .ct-prop .ct-ref input { flex: 1; width: 100%; field-sizing: fixed; }
.ct-ref a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: var(--ink-2); flex: none; }
.ct-ref a:hover { background: var(--glass-2); color: var(--ink); }
.ct-ref a svg { width: 16px; height: 16px; }
/* link da referência em azul */
.ct-ref-ico { color: var(--azul); background: rgba(74, 143, 231, .14); }
.ct-ref-ico:hover { color: #7fb2f2; background: rgba(74, 143, 231, .26); }
.ct-d .ct-prop .ct-ref input { color: var(--azul); text-decoration: underline; text-underline-offset: 3px; text-overflow: ellipsis; }
.ct-d .ct-prop .ct-ref input::placeholder { color: var(--azul); opacity: .8; }
.ct-ref a { color: var(--azul); }
.ct-ref a:hover { color: #7fb2f2; }

/* ---------- Carteira de clientes na aba Vendas (23/10/2026) ---------- */
.cl-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 12px; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.cl-chips small { color: var(--ink-3); margin-left: 3px; }
.cl-filtros select, .cl-filtros input { height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--glass-2); color: var(--ink); font: inherit; font-size: 12.5px; padding: 0 10px; }
.cl-filtros input { width: 180px; }
.cl-l { cursor: default; }
.cl-sub { display: block; font-size: .7rem; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-prazo { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; min-width: 0; }
.cl-prazo small { color: var(--ink-3); font-size: .7rem; }
.cl-barra { display: block; height: 4px; border-radius: 4px; background: rgba(var(--fg), .08); overflow: hidden; }
.cl-barra b { display: block; height: 100%; background: var(--ink-3); border-radius: 4px; }
.cl-barra.g b { background: var(--green); } .cl-barra.y b { background: var(--yellow); } .cl-barra.r b { background: var(--red); }
.cl-etapa { width: 100%; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--glass-2); color: var(--ink); font: inherit; font-size: 12px; padding: 0 6px; }
.cl-mais { margin: 8px auto 0; display: block; }
.cl-sem { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.cl-sem .linha { display: flex; align-items: center; gap: 12px; }
.cl-sem .linha .v { flex: 1; }
.cl-info { font-size: .8rem; margin: 6px 0 0; }
@media (max-width: 900px) { .cl-l, .cl-caixa .tab-cab { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; } .cl-caixa .tab-cab { display: none; } .cl-filtros input { width: 100%; } }
.cl-venda { display: block; margin-top: 3px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.cl-venda .flag { font-size: .68rem; }
.cl-acoes { display: flex; align-items: center; gap: 8px; }

/* Gestor de tráfego com o Claude (página Tráfego, 23/10/2026) */
.g-topo { display: flex; align-items: center; gap: .8rem; }
.g-btn { height: 32px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass-2); color: var(--ink); font-weight: 700; font-size: .8rem; cursor: pointer; }
.g-btn.forte { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.g-btn:disabled { opacity: .5; cursor: default; }
.g-link { border: 0; background: none; color: var(--ink-2); font-weight: 700; font-size: .78rem; cursor: pointer; padding: 2px 4px; }
.g-link:hover { color: var(--ink); text-decoration: underline; }
.g-aviso { background: rgba(242, 193, 78, .1); border: 1px solid rgba(242, 193, 78, .35); border-radius: .8rem; padding: .6rem .8rem; font-size: .84rem; margin-bottom: .8rem; }
.g-resumo { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .9rem; }
.g-resumo p { margin: 0; line-height: 1.5; font-size: .92rem; }
.g-acoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .6rem; margin-bottom: .6rem; }
.g-acao { background: var(--glass); border: 1px solid var(--line); border-radius: 1rem; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .45rem; }
.g-acao.p-alta { border-color: var(--line-2); }
.g-acao-top { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.g-acao-top b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.g-acao-top small { color: var(--ink-3); font-size: .72rem; }
.g-acao p { margin: 0; font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.g-acao-pe { display: flex; align-items: center; gap: .6rem; margin-top: auto; flex-wrap: wrap; }
.g-tipo { font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--glass-3); color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.g-tipo.t-orcamento { background: #22407a; color: #fff; } .g-tipo.t-pausar { background: var(--red); color: #fff; } .g-tipo.t-ativar, .g-tipo.t-duplicar { background: var(--green); color: #0c0c0e; } .g-tipo.t-criativo { background: #e3c22b; color: #0c0c0e; }
.g-orc { white-space: nowrap; font-weight: 700; color: var(--ink); }
.g-orc input { width: 5.2rem; height: 28px; padding: 0 .4rem; border-radius: .5rem; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); font: inherit; font-size: .82rem; }
.g-feito { color: var(--green); font-size: .78rem; font-weight: 700; }
.g-hist { display: grid; gap: .35rem; font-size: .82rem; margin-top: .6rem; max-height: 320px; overflow: auto; }
.g-hist small { color: var(--ink-3); }
.g-cj { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: .8rem; padding: .55rem .8rem; margin-bottom: .4rem; }
.g-cj b { display: block; font-size: .84rem; }
.g-cj small { display: block; font-size: .72rem; color: var(--ink-3); margin-top: 2px; }
.g-cj-ctl { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.g-cj-msg { grid-column: 1 / -1; font-size: .78rem; }
.g-ad-ctl { display: flex; gap: .2rem; justify-content: flex-end; }
.g-ad-ctl .g-link { font-size: .72rem; }
[data-tema="claro"] .g-btn.forte { background: #111113; color: #fff; }

/* Tráfego refeito (23/10/2026): Gestor em lista, criativos campeões, uma caixa por campanha */
.g-tit { display: flex; align-items: center; gap: .55rem; }
.g-robo { width: 26px; height: 20px; flex: 0 0 auto; }
.g-lista { display: grid; gap: .45rem; margin-bottom: .6rem; }
.g-item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: .9rem; padding: .65rem .9rem; }
.g-item.feito { opacity: .6; }
.g-etqs { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.g-pri { font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.g-pri.pri-alta { background: var(--red); color: #fff; } .g-pri.pri-media { background: var(--yellow); color: #0c0c0e; } .g-pri.pri-baixa { background: var(--glass-3); color: var(--ink-2); }
.g-txt b { font-size: .86rem; } .g-txt small { color: var(--ink-3); font-size: .72rem; margin-left: .4rem; }
.g-txt p { margin: .2rem 0 0; font-size: .82rem; color: var(--ink-2); line-height: 1.45; }
.g-txt .g-orc { display: inline-block; margin-top: .35rem; }
.g-bts { display: flex; gap: .4rem; align-items: center; }
@media (max-width: 800px) { .g-item { grid-template-columns: 1fr; } .g-etqs { flex-direction: row; } }
.tc-funil { margin-bottom: 1rem; }
.tc-funil h4 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .55rem; font-size: .76rem; color: var(--ink-3); font-weight: 700; }
.tc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.tc-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .75rem; background: var(--glass); border: 1px solid var(--line); border-radius: 1rem; padding: .55rem; color: inherit; text-decoration: none; }
.tc-card:hover { border-color: var(--line-2); }
.tc-img { position: relative; width: 96px; height: 128px; border-radius: .7rem; overflow: hidden; background: var(--glass-2); }
.tc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-pos { position: absolute; top: 5px; left: 5px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .7rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; }
.tc-pausado { position: absolute; bottom: 5px; left: 5px; background: rgba(0, 0, 0, .7); color: #ddd; font-size: .62rem; padding: 1px 6px; border-radius: 999px; }
.tc-info { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.tc-info > b { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-main span { font-size: 1.25rem; font-weight: 500; } .tc-main small { display: block; font-size: .7rem; color: var(--ink-3); }
.tc-mets { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .6rem; font-size: .8rem; font-weight: 600; }
.tc-mets small { display: block; font-size: .64rem; color: var(--ink-3); font-weight: 600; }
@media (max-width: 1100px) { .tc-cards { grid-template-columns: 1fr; } }
.tr-secao-l { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.4rem .2rem .7rem; }
.tr-secao-l .tr-secao { margin: 0; }
.tr-ctit { min-width: 0; } .tr-ctit h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-ctit small { display: block; font-size: .74rem; color: var(--ink-3); margin-top: 3px; }
.tr-abrir { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.tr-cbox .tr-det { margin-left: 0; margin-top: .8rem; }
.funil-outro::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #8a8a91; }
.tr-funil.f-forms { background: #e3c22b; }
.tr-cbox .linha.fina { min-height: 3.3rem; }
.tr-cbox .tr-ad .v small { display: block; }
/* métricas de cada campanha numa linha só (como o Fundo) */
.kps.tr-linha { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 1100px) { .kps.tr-linha { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kps.tr-linha { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Campanhas mais clean (23/10/2026): métricas pequenas lado a lado, sem cartão em cada número */
.tr-cbox .kps.tr-linha { gap: 0; }
.tr-cbox .kps.tr-linha .kp { background: none !important; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: .15rem .9rem; min-width: 0; }
.tr-cbox .kps.tr-linha .kp:first-child { border-left: 0; padding-left: 0; }
.tr-cbox .kps.tr-linha .kp small { font-size: .62rem; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tr-cbox .kps.tr-linha .kp b { font-size: 1.05rem; font-weight: 500; margin-top: .25rem; display: block; white-space: nowrap; }
.tr-cbox .kps.tr-linha .kp b small { display: inline; font-size: .7rem; }
.tr-cbox .kps.tr-linha .mini-pct { font-size: .66rem; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-cbox { padding-top: 1rem; padding-bottom: 1rem; }
.tr-cbox .box-head { margin-bottom: .7rem; }
@media (max-width: 1100px) { .tr-cbox .kps.tr-linha .kp { border-left: 0; padding: .4rem 0; } }
.tr-mes { color: var(--ink-2); margin-left: .25rem; }
.tr-orc-total { margin-left: auto; margin-right: 1rem; font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.tr-orc-total b { color: var(--ink); font-weight: 600; }

/* Gestor de tráfego operando (23/10/2026): abas, decisões com status, relatório, criativos, aprendizados e regras */
.g-abas button { position: relative; }
.g-badge { font-style: normal; background: var(--yellow); color: #0c0c0e; border-radius: 999px; padding: 0 6px; font-size: .66rem; font-weight: 800; margin-left: 3px; }
.g-diag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .6rem; margin-bottom: 1rem; }
.g-diag > div { background: var(--glass); border: 1px solid var(--line); border-radius: .9rem; padding: .7rem .9rem; }
.g-diag small, .g-dec-corpo small, .g-cri-pq small { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .2rem; }
.g-diag b { display: block; font-size: .95rem; margin-bottom: .2rem; }
.g-diag p { margin: 0; font-size: .84rem; color: var(--ink-2); line-height: 1.45; }
.g-bloco { margin-bottom: 1rem; }
.g-bloco h4 { margin: 0 0 .5rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.g-dec { background: var(--glass); border: 1px solid var(--line); border-radius: .9rem; padding: .7rem .9rem; margin-bottom: .45rem; }
.g-dec-top { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.g-dec-alvo { min-width: 0; margin-left: .2rem; } .g-dec-alvo b { font-size: .86rem; } .g-dec-alvo small { color: var(--ink-3); font-size: .72rem; margin-left: .4rem; }
.g-dec-quando { margin-left: auto; color: var(--ink-3); font-size: .72rem; white-space: nowrap; }
.g-dec-corpo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem 1.1rem; margin-top: .55rem; }
.g-dec-corpo p { margin: 0; font-size: .82rem; color: var(--ink-2); line-height: 1.45; }
.g-dec-pe { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.g-st { font-size: .64rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; background: var(--glass-3); color: var(--ink); white-space: nowrap; }
.g-st.st-ok { background: var(--green); color: #0c0c0e; } .g-st.st-esp { background: var(--yellow); color: #0c0c0e; } .g-st.st-acomp { background: #22407a; color: #fff; }
.g-st.st-erro { background: var(--red); color: #fff; } .g-st.st-off { background: var(--glass-3); color: var(--ink-2); } .g-st.pri-alta { background: var(--red); color: #fff; }
.g-st.t-orcamento { background: #22407a; color: #fff; } .g-st.t-pausar { background: rgba(239, 83, 80, .18); color: var(--red); } .g-st.t-ativar, .g-st.t-duplicar, .g-st.t-anuncio, .g-st.t-teste { background: rgba(76, 195, 138, .16); color: var(--green); }
.g-st.t-criativo { background: #e3c22b; color: #0c0c0e; } .g-st.t-comercial { background: #8e7cc3; color: #fff; }
.g-filtro { display: flex; gap: .4rem; margin-bottom: .7rem; flex-wrap: wrap; } .g-filtro .on { color: var(--ink); text-decoration: underline; }
.g-cri { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .6rem; }
.g-cri-item { background: var(--glass); border: 1px solid var(--line); border-radius: .9rem; padding: .8rem .9rem; }
.g-cri-item .g-dec-top b { font-size: .86rem; }
.g-cri-pq { font-size: .82rem; color: var(--ink-2); margin: .5rem 0; line-height: 1.45; }
.g-cri ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.g-cri li b { display: block; font-size: .84rem; } .g-cri li span { display: block; font-size: .72rem; color: var(--ink-3); } .g-cri li p { margin: .15rem 0 0; font-size: .8rem; color: var(--ink-2); line-height: 1.4; }
.g-apr { display: grid; gap: .4rem; } .g-apr > div { display: flex; gap: .8rem; align-items: baseline; background: var(--glass); border: 1px solid var(--line); border-radius: .8rem; padding: .55rem .8rem; }
.g-apr p { margin: 0; flex: 1; font-size: .84rem; } .g-apr small { color: var(--ink-3); font-size: .7rem; white-space: nowrap; }
.g-regras { display: grid; gap: .7rem; max-width: 720px; }
.g-campo { display: grid; gap: .2rem; } .g-campo > span:first-child { font-size: .84rem; font-weight: 700; }
.g-campo-in { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--ink-2); }
.g-campo input[type=number] { width: 7rem; height: 32px; padding: 0 .5rem; border-radius: .5rem; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); font: inherit; }
.g-campo small { color: var(--ink-3); font-size: .74rem; }
.g-chk { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; } .g-chk input { margin-top: 3px; }
@media (max-width: 800px) { .g-diag { grid-template-columns: 1fr; } .g-topo { flex-wrap: wrap; } }

/* Vendas + carteira numa caixa só, com busca e período no topo (23/10/2026) */
.vd-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.vd-busca { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 .8rem; border-radius: 12px; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink-3); cursor: text; }
.vd-busca:focus-within { border-color: rgba(109, 138, 214, .55); color: var(--ink); }
.vd-busca svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.vd-busca input { border: 0; outline: 0; background: none; color: var(--ink); font: 600 .8rem var(--sans); width: 170px; }
.vd-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.vd-titulo h4 { margin: 0; font-size: .95rem; font-weight: 800; letter-spacing: -.01em; }
.vd-titulo h4 small { font-size: .75rem; font-weight: 600; color: var(--ink-3); margin-left: 8px; }
.vd-caixa .cl-caixa .cl-filtros { margin-top: 4px; }
.vd-tabela { overflow-x: auto; }
.vd-tabela > .tab-cab, .vd-tabela > .linha { min-width: 1100px; gap: .8rem; }
.vd-lin .v, .vd-total .v { font-size: .8rem; }
.vd-lin .cl-sub, .vd-total .cl-sub { display: block; font-size: .68rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-total { background: none !important; border-style: dashed !important; }
@media (max-width: 700px) { .vd-busca input { width: 120px; } .vd-caixa > .box-head { flex-wrap: wrap; } }
/* Gestor: levas do Drive e feedback do comercial (23/10/2026) */
.g-drive-link { display: flex; gap: .5rem; align-items: center; margin-bottom: .8rem; flex-wrap: wrap; }
.g-drive-link input { flex: 1; min-width: 260px; height: 34px; padding: 0 .7rem; border-radius: .6rem; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); font: inherit; font-size: .84rem; }
.g-leva { margin-bottom: .9rem; } .g-leva h4 { margin: 0 0 .45rem; font-size: .82rem; }
.g-leva-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .55rem; }
.g-dv { display: flex; flex-direction: column; gap: .3rem; font-size: .76rem; }
.g-dv b { font-size: .76rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-dv .g-st { align-self: flex-start; }
.g-dv-img { position: relative; aspect-ratio: 9 / 16; border-radius: .7rem; overflow: hidden; background: var(--glass-2); }
.g-dv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-dv-img span { position: absolute; right: 5px; bottom: 5px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .64rem; padding: 1px 5px; border-radius: 6px; }
.g-fb-form { display: grid; gap: .5rem; margin-bottom: 1rem; max-width: 760px; }
.g-fb-linha { display: flex; gap: .5rem; flex-wrap: wrap; }
.g-fb-form select, .g-fb-form textarea { border-radius: .6rem; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); font: inherit; font-size: .84rem; padding: .45rem .6rem; }
.g-fb-form textarea { resize: vertical; }
/* carteira: as 5 etiquetas com o número ao lado; clicar filtra a lista (23/10/2026) */
.cl-etqs { margin-bottom: 14px; }
.cl-etq { display: flex; align-items: center; gap: 10px; flex-direction: row !important; text-align: left; cursor: pointer; font: inherit; color: var(--ink); border: 1px solid var(--line); }
.cl-etq b { font-size: 1.5rem; line-height: 1; }
.cl-etq[aria-pressed="true"] { border-color: rgba(109, 138, 214, .6); background: var(--navy-g); }
.cl-etq:hover { background: rgba(var(--fg), .05); }
.vd-caixa .vd-tabela > .tab-cab, .vd-caixa .vd-tabela > .linha { min-width: 1280px; }
.vd-caixa .cl-etqs { margin-top: 2px; }
.cl-ctt { cursor: pointer; border-radius: 8px; }
.cl-ctt:hover { background: rgba(var(--fg), .05); }
.cl-etq-l { display: block; min-width: 0; overflow: hidden; }
.cl-etq-l .flag { max-width: 100%; }
.cl-etq-l .flag { overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.cl-etq-l .flag::before { display: inline-block; margin-right: 7px; vertical-align: 1px; }
.g-dv .g-st { white-space: normal; line-height: 1.25; max-width: 100%; font-size: .58rem; }

/* ===== Quadros (23/10/2026): o "Miro" do Voss (quadros.js) ===== */
#view-quadros { --qd-ink: var(--ink); --qd-fundo: #0f0f11; --qd-ponto: rgba(255, 255, 255, .07); --qd-sel: var(--azul); }
:root[data-tema="claro"] #view-quadros { --qd-fundo: #f7f7f5; --qd-ponto: rgba(0, 0, 0, .1); }
.qd-abas { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.qd-aba { white-space: nowrap; }
.qd-aba.on { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.qd-salvo { font-size: 12px; white-space: nowrap; }
.qd-wrap { position: relative; flex: 1; min-height: 0; margin: 0 26px 18px; border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--qd-fundo); }
.qd-wrap:fullscreen { margin: 0; border-radius: 0; }
.qd-palco { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default;
  background-color: var(--qd-fundo); background-image: radial-gradient(circle, var(--qd-ponto) 1.1px, transparent 1.3px); }
.qd-palco.so-ver, .qd-palco[data-ferr="mao"], .qd-palco.mao { cursor: grab; }
.qd-palco.pegando { cursor: grabbing; }
.qd-palco[data-ferr="nota"], .qd-palco[data-ferr="texto"], .qd-palco[data-ferr="forma"], .qd-palco[data-ferr="linha"], .qd-palco[data-ferr="caneta"] { cursor: crosshair; }
.qd-palco[data-ferr="mao"] .qd-it, .qd-palco.mao .qd-it { pointer-events: none; }
.qd-mundo { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; font-family: var(--sans); line-height: 1.36; }
.qd-it { position: absolute; box-sizing: border-box; overflow-wrap: break-word; }
.qd-txt { width: 100%; outline: 0; text-align: var(--al, center); }
.qd-txt p, .qd-txt ul, .qd-txt ol { margin: 0; }
.qd-txt ul, .qd-txt ol { padding-left: 1.3em; text-align: left; }
.qd-txt a { color: inherit; }
.qd-txt[contenteditable="true"] { cursor: text; user-select: text; -webkit-user-select: text; }
.qd-forma, .qd-nota { display: flex; align-items: var(--va, center); justify-content: center; padding: .45em; }
.qd-forma .qd-txt, .qd-nota .qd-txt { position: relative; }
.qd-f-redondo { border-radius: max(12px, 14%); }
.qd-f-elipse { border-radius: 50%; padding: 1em; }
.qd-f-losango { padding: 18% 22%; }
.qd-fundo-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.qd-nota { padding: 8%; box-shadow: 0 calc(var(--px, 1px) * 3) calc(var(--px, 1px) * 10) rgba(0, 0, 0, .18); }
.qd-texto { padding: 0; }
.qd-cartao { background: var(--s-menu); border: max(1px, var(--px)) solid var(--line-2); border-left-width: max(6px, calc(var(--px) * 4)); border-radius: max(6px, calc(var(--px) * 6)); padding: .55em .8em; display: flex; align-items: center; }
.qd-imagem { overflow: hidden; background: rgba(var(--fg), .04); }
.qd-imagem img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.qd-traco { pointer-events: none; }
.qd-traco svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.qd-traco .qd-hit, .qd-linhas .qd-hit { stroke: transparent; fill: none; pointer-events: stroke; }
.qd-traco .qd-hit { cursor: move; }
.qd-it.editando { z-index: 2; }
.qd-linhas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.qd-linhas .qd-hit { stroke-width: 12; cursor: pointer; }
.qd-palco.so-ver .qd-linhas .qd-hit, .qd-palco.mao .qd-linhas .qd-hit, .qd-palco[data-ferr="mao"] .qd-linhas .qd-hit { pointer-events: none; }
.qd-linhas .qd-seta { stroke: none; }
.qd-linhas text { stroke: var(--qd-fundo); stroke-width: 4px; paint-order: stroke; text-anchor: middle; dominant-baseline: middle; font-family: var(--sans); font-weight: 500; }
.qd-ln.on path:not(.qd-hit):not(.qd-seta) { stroke: var(--qd-sel); }
.qd-ln.on .qd-seta { fill: var(--qd-sel); }
.qd-linhas .qd-lazo { fill: color-mix(in srgb, var(--qd-sel) 10%, transparent); stroke: var(--qd-sel); stroke-width: 1; }
.qd-linhas .qd-prev { stroke: var(--qd-ink); stroke-width: 2.5; }
.qd-sel { position: absolute; inset: 0; pointer-events: none; }
.qd-caixa { position: absolute; outline: 1.5px solid var(--qd-sel); outline-offset: 1px; border-radius: 2px; }
.qd-alca, .qd-ponta { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: #fff; border: 1.5px solid var(--qd-sel); border-radius: 3px; pointer-events: auto; }
.qd-ponta { border-radius: 50%; cursor: move; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }
.qd-alca[data-alca="nw"], .qd-alca[data-alca="se"] { cursor: nwse-resize; }
.qd-alca[data-alca="ne"], .qd-alca[data-alca="sw"] { cursor: nesw-resize; }
.qd-alca[data-alca="e"], .qd-alca[data-alca="w"] { cursor: ew-resize; }
.qd-alca[data-alca="n"], .qd-alca[data-alca="s"] { cursor: ns-resize; }
.qd-ferramentas { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 18px; background: var(--s-menu); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); z-index: 3; }
.qd-ferramentas button, .qd-zoom button, .qd-props button { display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-2); border-radius: 12px; cursor: pointer; }
.qd-ferramentas button { width: 40px; height: 40px; }
.qd-ferramentas button:hover, .qd-zoom button:hover, .qd-props button:hover { background: var(--glass-2); color: var(--ink); }
.qd-ferramentas button:focus:not(:focus-visible), .qd-zoom button:focus:not(:focus-visible), .qd-props button:focus:not(:focus-visible) { outline: none; }
.qd-ferramentas button.on { background: var(--ink); color: var(--on-ink); }
.qd-ferramentas svg { width: 20px; height: 20px; stroke-width: 1.6; }
.qd-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; background: var(--s-menu); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); z-index: 3; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.qd-zoom button { width: 32px; height: 32px; font-size: 17px; }
.qd-zoom svg { width: 17px; height: 17px; }
.qd-zoom span { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.qd-props { position: absolute; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; background: var(--s-menu); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); z-index: 4; white-space: nowrap; }
.qd-props button { min-width: 32px; height: 32px; padding: 0 6px; font-size: 13px; font-weight: 600; }
.qd-props button.on { background: var(--glass-3); color: var(--ink); }
.qd-props svg { width: 17px; height: 17px; }
.qd-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.qd-bolinha { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); display: block; }
.qd-pop { position: absolute; z-index: 5; min-width: 0; padding: 10px; }
.qd-pop-tit { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin: 2px 2px 8px; }
.qd-pop-tit:not(:first-child) { margin-top: 12px; }
.qd-cores { display: grid; grid-template-columns: repeat(7, 26px); gap: 6px; }
.qd-pop .qd-cores button { width: 26px; height: 26px; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.qd-pop .qd-cores button.auto { background: conic-gradient(var(--ink) 0 50%, var(--qd-fundo) 0); }
.qd-formas { display: flex; gap: 4px; }
.qd-pop .qd-formas button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 10px; }
.qd-pop .qd-formas button.on { background: var(--glass-3); }
.qd-menu { position: fixed; }
@media (max-width: 760px) { .qd-wrap { margin: 0 12px 12px; } .qd-ferramentas { left: 8px; } }

/* ---------- Agentes (24/10/2026): organograma dos robôs por cargo ---------- */
.ag-sub { font-size: 13px; margin-left: 12px; }
.ag-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; padding: 4px 26px 28px; align-items: start; overflow: auto; height: calc(100% - 70px); }
.ag-org { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ag-arvore { display: flex; flex-direction: column; align-items: center; overflow-x: auto; padding: 6px 4px 10px; }
.ag-nivel { display: flex; justify-content: center; }
.ag-fio { width: 1.5px; height: 26px; background: var(--line-2); }
.ag-deps { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 16px; position: relative; padding-top: 26px; width: 100%; min-width: 740px; }
.ag-deps::before { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 26px; border: 1.5px solid var(--line-2); border-bottom: 0; border-radius: 14px 14px 0 0; }
.ag-deps::after { content: ""; position: absolute; top: -26px; left: 50%; width: 1.5px; height: 26px; background: transparent; }
.ag-dep { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ag-dep-nome { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); background: var(--glass-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }
.ag-desce { width: 1.5px; height: 18px; background: var(--line-2); }
.ag-card { width: 100%; max-width: 210px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 12px 12px 12px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; font: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.ag-card:hover { transform: translateY(-2px); border-color: var(--navy-ink); box-shadow: 0 10px 28px rgba(27, 53, 119, .25); }
.ag-card[aria-pressed="true"] { border-color: var(--navy-ink); box-shadow: inset 0 0 0 1px var(--navy-ink), 0 10px 28px rgba(27, 53, 119, .3); }
.ag-card:focus-visible { outline: 2px solid var(--navy-ink); outline-offset: 2px; }
.ag-card.topo, .ag-card.diretor { max-width: 240px; min-width: 210px; }
.ag-card b { font-size: 14.5px; margin-top: 4px; }
.ag-cargo { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--navy-ink); }
.ag-faz { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.ag-conta { font-size: 11px; color: var(--ink-3); margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; }
.ag-conta i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.ag-conta i.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.ag-boneco { display: block; stroke: none; filter: drop-shadow(0 6px 10px rgba(10, 20, 48, .35)); }
.ag-card:hover .ag-boneco { animation: ag-pula .5s ease; }
@keyframes ag-pula { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .ag-card, .ag-card:hover .ag-boneco { transition: none; animation: none; } }
.ag-boneco .sombra { fill: rgba(0, 0, 0, .28); }
.ag-boneco .cabeca { fill: url(#ag-cab); }
.ag-boneco .corpo { fill: url(#ag-corpo); }
.ag-boneco.ceo .cabeca { fill: url(#ag-cab-ceo); }
.ag-boneco.ceo .corpo { fill: url(#ag-corpo-ceo); }
.ag-boneco.claude .cabeca { fill: url(#ag-cab-claude); }
.ag-boneco.claude .corpo { fill: url(#ag-corpo-claude); }
.ag-boneco .luz { fill: rgba(255, 255, 255, .5); }
.ag-boneco .luz-c { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2.5; stroke-linecap: round; }
.ag-boneco .cracha { fill: #f5f5f7; stroke: rgba(0, 0, 0, .15); }
.ag-boneco .icone { fill: none; stroke: #142a5c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ag-ficha { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.ag-ficha-topo { display: flex; align-items: center; gap: 12px; }
.ag-ficha-topo > div { display: flex; flex-direction: column; flex: 1; }
.ag-ficha-topo b { font-size: 16px; }
.ag-ficha p { margin: 0; color: var(--ink-2); }
.ag-tarefas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ag-tarefas li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ag-tarefas small { grid-column: 2; color: var(--ink-3); font-size: 11.5px; margin-top: -6px; }
.ag-st { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.ag-st.on { color: var(--green); }
.ag-st.off { color: var(--red); }
/* ficha do agente ao lado; sem ficha aberta, o organograma ocupa a largura toda */
.ag-lado { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ag-wrap:has(.ag-ficha[hidden]) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) {
  .ag-wrap { grid-template-columns: minmax(0, 1fr); }
  .ag-lado { position: static; order: -1; }
}
.ag-ficha[hidden] { display: none; }

/* ================= Configurações (white label, 24/10/2026): marca e conexões ================= */
.cf-corpo { flex: 1; min-height: 0; overflow: auto; padding: 4px 26px 26px; }
.cf-marca { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.cf-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.cf-card h3 { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cf-card label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.cf-card input { height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); padding: 0 12px; font: inherit; font-size: 14px; }
.cf-card textarea, .cf-card select { border-radius: 12px; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); padding: 10px 12px; font: inherit; font-size: 14px; }
.cf-card select { height: 40px; padding: 0 12px; }
.cf-card textarea { resize: vertical; line-height: 1.45; min-height: 160px; }
.cf-sobre { grid-column: 1 / -1; }
.cf-card .cf-check { flex-direction: row; align-items: center; gap: 8px; }
.cf-card .cf-check input { height: auto; }
.cf-perfil { display: flex; gap: 14px; align-items: center; }
.cf-perfil b { font-size: 13px; font-weight: 600; }
.cf-perfil-foto { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--s-campo); border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; font-size: 10px; color: var(--ink-3); }
.cf-perfil-foto img { width: 100%; height: 100%; object-fit: cover; }
.cf-banco-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.cf-banco-foto { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--s-campo); }
.cf-banco-foto img { width: 100%; height: 100%; object-fit: cover; }
.cf-banco-foto.usada img { opacity: .45; }
.cf-banco-foto button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; opacity: 0; }
.cf-banco-foto:hover button { opacity: 1; }
.cf-cor { display: flex; gap: 8px; }
.cf-cor input[type="color"] { width: 44px; padding: 3px; flex: none; cursor: pointer; }
.cf-cor input:not([type]) { flex: 1; font-family: ui-monospace, monospace; }
.cf-acoes { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.cf-logo { display: grid; place-items: center; height: 120px; border-radius: var(--r-md); background: #0b0b0d; border: 1px solid var(--line); }
.cf-logo img { max-width: 70%; max-height: 64px; }
.cf-previa-caixa { --navy-g: linear-gradient(135deg, var(--navy-2) 0%, color-mix(in srgb, var(--navy-2) 45%, #000) 100%); display: flex; height: 150px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #0b0b0d; }
.cf-previa-lado { width: 64px; padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; border-right: 1px solid rgba(255, 255, 255, .06); }
.cf-previa-lado img { width: 40px; margin-bottom: 6px; }
.cf-previa-lado i { width: 36px; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .08); }
.cf-previa-lado i.on { background: var(--navy-g); }
.cf-previa-corpo { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; color: #fff; }
.cf-previa-corpo .pill { padding: 6px 14px; font-size: 12.5px; }
.cf-resumo { margin: 4px 0 14px; color: var(--ink-2); font-size: 13.5px; }
.cf-grupo { margin: 18px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cf-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cf-con { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cf-con-topo { display: flex; align-items: flex-start; gap: 12px; }
.cf-con-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cf-con-txt b { font-weight: 600; font-size: 14.5px; }
.cf-con-txt .dim { font-size: 12.5px; }
.cf-det { font-size: 12px; color: var(--ink-2); font-family: ui-monospace, monospace; }
.cf-ponto { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--ink-3); opacity: .5; }
.cf-con.on .cf-ponto { background: var(--green); opacity: 1; box-shadow: 0 0 8px var(--green); }
.cf-con > .dim { margin: 0; font-size: 12.5px; }
.cf-claude { display: flex; gap: 8px; }
.cf-claude input { flex: 1; min-width: 0; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); padding: 0 12px; font: inherit; font-size: 13px; }
.cf-qr { display: flex; gap: 14px; align-items: center; }
.cf-perms { font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 8px; }
.cf-perms summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.cf-perms ul { margin: 8px 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.cf-perms code { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--ink); margin-right: 4px; }
.cf-perms .dim { margin: 0; }
.cf-perms a { color: var(--ink); }
.cf-con > [data-meta-tirar] { align-self: flex-start; }
.cf-qr img { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 6px; flex: none; }
/* WhatsApp (24/10/2026): WhatsApp Web ou API oficial da Meta */
.cf-zap-op { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--s-campo); border: 1px solid var(--line); }
.cf-zap-op button { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 12.5px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.cf-zap-op button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); font-weight: 600; }
.cf-zap-em-uso { font-style: normal; font-size: 10.5px; color: var(--green); margin-left: 4px; }
.cf-zap-form { display: flex; flex-direction: column; gap: 8px; }
.cf-zap-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); }
.cf-zap-form input { height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); padding: 0 12px; font: inherit; font-size: 13px; min-width: 0; }
.cf-zap-form .dim { margin: 0; font-size: 12px; }
.cf-copiar { display: flex; gap: 6px; }
.cf-copiar input { flex: 1; font-family: ui-monospace, monospace; font-size: 12px; }
.cf-zap-erro { color: var(--red); }
@media (max-width: 700px) {
  .cf-corpo { padding: 4px 16px 20px; }
  .cf-lista { grid-template-columns: 1fr; }
  .cf-qr { flex-direction: column; align-items: flex-start; }
}

/* ================= Importar vendas (24/10/2026): Google Sheets, Excel ou CSV ================= */
.dialog.vi { width: min(820px, calc(100vw - 32px)); }
.vi-rot { display: block; font-size: 12.5px; color: var(--ink-2); margin: 14px 0 6px; }
.vi-linha { display: flex; gap: 8px; }
.vi-linha input { flex: 1; min-width: 0; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); padding: 0 12px; font: inherit; font-size: 14px; }
.vi-dica { font-size: 12.5px; margin: 8px 0 0; }
.vi-ou { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--ink-3); font-size: 12px; }
.vi-ou::before, .vi-ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.vi-arq { width: 100%; height: 44px; }
.vi-topo { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.vi-topo label, .vi-mapa label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ink-2); min-width: 0; }
.vi-topo label { flex: 1 1 240px; }
.vi-topo select, .vi-mapa select { height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--s-campo); color: var(--ink); padding: 0 8px; font: inherit; font-size: 13px; min-width: 0; }
#vi-corpo h3 { margin: 16px 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
#vi-corpo h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; color: var(--ink-2); font-size: 12px; }
.vi-mapa { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 10px; }
.vi-mapa label.obrig { color: var(--ink); font-weight: 600; }
.vi-previa { overflow: auto; max-height: 260px; border: 1px solid var(--line); border-radius: var(--r-md); }
.vi-previa table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.vi-previa th, .vi-previa td { padding: 7px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.vi-previa th { position: sticky; top: 0; background: var(--card); color: var(--ink-3); font-weight: 600; }
.vi-previa tr.ruim td { color: var(--ink-3); }
.vi-previa i { color: var(--red); font-style: normal; }
.vi-ok { padding: 18px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.vi-ok b { color: var(--green); font-size: 20px; }
.vi-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 6px 0; cursor: pointer; }
.vi-check input { width: 16px; height: 16px; flex: none; margin: 0; accent-color: var(--navy-2); }
.dialog .vi-check { flex-direction: row; justify-content: flex-start; text-align: left; }

/* ================= Planos Basic · Growth · Pro (white label, 24/10/2026) ================= */
.nav-item.travado { opacity: .45; }
.nav-item.travado::after { content: ""; position: absolute; top: 6px; right: 8px; width: 9px; height: 9px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") center / contain no-repeat; }
#p-abas button.travado { opacity: .5; }
.plano-trava { margin: auto; max-width: 420px; padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.plano-trava svg { width: 40px; height: 40px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; margin-bottom: 6px; }
.plano-trava h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 20px; }
.plano-trava p { margin: 0; color: var(--ink-2); font-size: 14px; }
#view-travado:not([hidden]) { display: flex; }
.cf-plano { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.cf-plano-nome { font-family: var(--display); font-size: 30px; font-weight: 500; }
.cf-plano-topo p { margin: 6px 0 0; font-size: 13px; }
.cf-recursos { list-style: none; margin: 0; padding: 0; }
.cf-recursos li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.cf-recursos li.on { color: var(--ink); }
.cf-rec-ic { width: 16px; text-align: center; font-weight: 700; }
.cf-recursos li > span:nth-child(2) { flex: 1; }
.cf-ia { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); margin-left: 6px; vertical-align: 1px; }
.cf-rec-plano { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--glass-2); color: var(--ink-2); }
@media (max-width: 800px) { .cf-plano { grid-template-columns: 1fr; } }

/* =====================================================================
   Visual da proposta (24/10/2026, pedido do Pedro): igual ao HTML dos planos.
   Claro por padrão: fundo branco, painel cinza-claro com borda fina e cards
   brancos com sombra suave, cantos bem arredondados, linhas finas e cinzas.
   No Voss do Grupo Voss nada é marinho: a aba ativa é um chip preto (no escuro, branco).
   Cor forte só nos detalhes de sempre: flags, números principais e etiquetas.
   ===================================================================== */
:root, :root:not([data-tema="claro"]) {
  --bg: #0b0c0e;
  --frame: #141518;
  --side: #1d1e22;
  --card: #1d1e22;
  --card-h: #222327;
  --tile: #232428;
  --ink: #f4f5f7;
  --ink-2: #b6bac2;
  --ink-3: #8d929b;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .11);
  --glass: rgba(255, 255, 255, .025);
  --glass-2: rgba(255, 255, 255, .045);
  --glass-3: rgba(255, 255, 255, .07);
  --s-campo: #141518; --s-dialogo: #1d1e22; --s-menu: #1d1e22;
  --s-ev: #232428; --s-ev-hover: #2a2c31; --s-26: #232428; --s-23: #232428; --s-ativo: #232428; --s-borda: #2a2c31;
  --chip: #f4f4f5;
  --chip-ink: #111214;
  --sombra-card: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 50px -20px rgba(0, 0, 0, .9);
  --sombra-alta: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 26px 60px -22px rgba(0, 0, 0, .95);
  /* o marinho dos detalhes vira neutro (cinza-grafite com texto branco) */
  --navy: #2a2c31;
  --navy-1: #1d1e22;
  --navy-2: #3a3c42;
  --navy-ink: #f4f5f7;
  --navy-g: linear-gradient(180deg, #3a3c42 0%, #26282d 100%);
  --azul: #b6bac2;
  --r-lg: 22px;
  --r-md: 14px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
:root[data-tema="claro"] {
  --bg: #ffffff;
  --frame: #f2f2f3;
  --side: #ffffff;
  --card: #ffffff;
  --card-h: #ffffff;
  --tile: #f7f7f8;
  --ink: #111214;
  --ink-2: #4a4d54;
  --ink-3: #8a8d93;
  --line: #e4e4e7;
  --line-2: #d9d9de;
  --glass: rgba(255, 255, 255, .55);
  --glass-2: #ffffff;
  --glass-3: #ffffff;
  --s-campo: #ffffff; --s-dialogo: #ffffff; --s-menu: #ffffff;
  --s-ev: #f2f2f3; --s-ev-hover: #e9e9ec; --s-26: #f2f2f3; --s-23: #f2f2f3; --s-ativo: #f2f2f3; --s-borda: #e4e4e7;
  --chip: #1a1b1e;
  --chip-ink: #ffffff;
  --sombra-card: 0 1px 2px rgba(17, 18, 20, .04), 0 14px 40px -18px rgba(17, 18, 20, .22);
  --sombra-alta: 0 1px 2px rgba(17, 18, 20, .04), 0 22px 50px -20px rgba(17, 18, 20, .28);
  --navy: #1a1b1e;
  --navy-1: #111214;
  --navy-2: #1a1b1e;
  --navy-ink: #111214;
  --navy-g: linear-gradient(180deg, #2a2b30 0%, #111214 100%);
  --azul: #4a4d54;
  --shadow-lg: 0 1px 2px rgba(17, 18, 20, .04), 0 30px 70px -24px rgba(17, 18, 20, .3);
}

body { background: var(--bg); letter-spacing: -.01em; }
::selection { background: var(--chip); color: var(--chip-ink); }
:focus-visible { outline-color: var(--ink-3); }

/* Moldura = o painel cinza da proposta */
.frame { inset: 12px; border-radius: 30px; background: var(--frame); box-shadow: inset 0 0 0 1px var(--line); }
[data-tema="claro"] .frame { box-shadow: inset 0 0 0 1px #e9e9ec; }
.frame::before, [data-tema="claro"] .frame::before { background: none; }

/* Barra lateral = card que sobe do painel; aba ativa = chip preto (no escuro, branco) */
.sidebar, [data-tema="claro"] .sidebar { background: var(--side); border-radius: 24px; box-shadow: var(--sombra-card); }
.brand { border-bottom-color: var(--line); }
.nav-item { color: var(--ink-3); }
.nav-item:hover { color: var(--ink); background: var(--s-ev); }
.nav-item.active, [data-tema="claro"] .nav-item.active { background: var(--chip); color: var(--chip-ink); box-shadow: 0 6px 16px -8px rgba(17, 18, 20, .45); }
.nav-item.active::before { display: none; }
.nav-grupo { border-color: var(--line); }
.nav-badge, .nav-item.active .nav-badge { background: var(--chip); color: var(--chip-ink); box-shadow: 0 0 0 2px var(--side); }
#conta-ini { background: var(--chip); color: var(--chip-ink); }

/* Topo */
h1 { font-weight: 600; letter-spacing: -.035em; }
.search { background: var(--card); border-color: var(--line); border-radius: 999px; }
.chip, .chip-btn, .icon-btn, .btn { background: var(--card); border-color: var(--line); color: var(--ink-2); }
.chip, .chip-btn, .btn { border-radius: 999px; }
.icon-btn { border-radius: 50%; }
.chip-btn:hover, .icon-btn:hover, .btn:hover { background: var(--card-h); color: var(--ink); border-color: var(--line-2); }
.btn { color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--chip); color: var(--chip-ink); box-shadow: none; border-color: transparent; }
.chip-btn[aria-pressed="true"] .count-pill { background: var(--chip-ink); color: var(--chip); }
.count-pill { background: var(--s-ev); color: var(--ink); }
.btn.primary, .filtro-btn.on, [data-tema="claro"] .btn.primary {
  background: var(--chip); color: var(--chip-ink); border-color: transparent; box-shadow: 0 6px 16px -8px rgba(17, 18, 20, .45);
}
.btn.primary:hover { background: var(--chip); opacity: .88; }

/* Abas: trilho cinza, a ativa é o card branco que sobe */
.seg, .tabs { background: rgba(var(--fg), .045); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button, .tabs button { border-radius: 999px; color: var(--ink-3); }
.seg button[aria-selected="true"], .tabs button[aria-selected="true"] {
  background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(17, 18, 20, .06), 0 6px 16px -10px rgba(17, 18, 20, .35);
}

/* Caixas e cartões: brancos, sombra suave, sem vidro */
.box { background: var(--card); border-color: transparent; box-shadow: var(--sombra-card); backdrop-filter: none; }
[data-tema="claro"] .box { border-color: #ececef; }
.hero, .ano.atual { background: var(--card); }
.hero::after { border-color: var(--line); }
.pill { background: var(--chip); color: var(--chip-ink); border-radius: 999px; box-shadow: none; }
.hero-faixa { background: var(--tile); }
:is(.kps .kp, .passo, .ins, .dg, .venda, .linha, .tx, .tile),
:root:not([data-tema="claro"]) :is(.kps .kp, .passo, .dg, .tx, .venda, .ins, .linha:not(.total)) {
  background: var(--tile); border-color: var(--line); box-shadow: none;
}
.box :is(h3, .tab-cab, .li-cab) { letter-spacing: -.01em; }
.kp small, .tx small, .ano small, .mes-res small, .ins small, .tab-cab, .field label, .fp-sec > small, .li-cab { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--ink-3); }
.num b, .kp b, .tx b, .ano b, .mes-res b, .fat-valor, .hero-num, .meta-pct b, .mt-falta-num b, .dg b, .passo b { font-weight: 500; letter-spacing: -.045em; }
.trilho i, .num .sub i, .fina i { background: var(--ink); }
.bm-fat, .lg-fat { background: var(--chip); box-shadow: none; }
svg.gr .l-fat { stroke: var(--ink); }
.funil-azul::before, .funil-meio::before, .funil-forms::before, .li-col::before { background: var(--line-2); }

/* Funil: colunas no tom do painel, cards brancos com sombra */
.column, :root:not([data-tema="claro"]) .column, .li-col, :root:not([data-tema="claro"]) .li-col { background: rgba(255, 255, 255, .02); border-color: var(--line); border-radius: 22px; }
[data-tema="claro"] :is(.column, .li-col) { background: rgba(255, 255, 255, .5); border-color: #e9e9ec; }
.column.drop { border-color: var(--ink-3); background: var(--glass-3); }
.card, :root:not([data-tema="claro"]) .card {
  background: var(--card); border: 1px solid transparent; border-radius: 16px; box-shadow: var(--sombra-card);
}
[data-tema="claro"] .card { border-color: #ececef; }
.card:hover, :root:not([data-tema="claro"]) .card:hover { background: var(--card-h); box-shadow: var(--sombra-alta); border-color: var(--line-2); }
.card-tempos { border-top-color: var(--line); }
.card-call { background: var(--tile); }
.card-copiar, .badge, .send-text { background: var(--chip); color: var(--chip-ink); }
.card.awaiting::before { background: var(--ink-3); }
.lbl.more { --c: var(--s-ev); }
[data-tema="claro"] .lbl.more { --c: #f2f2f3; }

/* Direct, agenda, listas */
.inbox, .thread, .lead-info, .agenda { background: var(--card); border-color: transparent; box-shadow: var(--sombra-card); }
.row.out .bubble { background: var(--chip); color: var(--chip-ink); }
.ag-dia.hoje b { background: var(--chip); color: var(--chip-ink); }
.ag-col.hoje { background-color: var(--glass-2); }
[data-tema="claro"] .ag-col.hoje { background-color: #fafafa; }
.unread-dot, .stage-steps span.on { background: var(--ink); }
.li-row:hover { background: var(--tile); }

/* Menus, diálogos e avisos: cards brancos, sem borda pesada */
.menu, .filtro-pop, .label-pop { background: var(--card); border-color: var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.dialog { background: var(--card); border-color: var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(17, 18, 20, .35); backdrop-filter: blur(6px); }
.dialog input, .field input, .field select, .field textarea { background: var(--s-campo); border-color: var(--line-2); }
.toast { background: var(--chip); color: var(--chip-ink); border-radius: 999px; }
.mt-slider input, .li-check input, .ra-fonte input, .dialog.ev .ev-check input, .ra-sdr input { accent-color: var(--chip); }

/* White label (24/10/2026): a cor da marca do cliente aparece só na aba selecionada,
   e só no contorno do ícone. O chip da aba fica cinza-claro para qualquer cor aparecer. */
:root[data-marca] .nav-item.active { background: var(--s-ev); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-marca] .nav-item.active svg { stroke: var(--marca); stroke-width: 2; }
.cf-previa-lado i.on { width: 40px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #2a2c31; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.cf-previa-lado i.on svg { width: 18px; height: 18px; stroke: var(--marca); stroke-width: 2; }
.cf-previa-corpo .pill { background: #f4f4f5; color: #111214; }

/* Agentes fora do plano (white label, 24/10/2026) */
.ag-card.travado > :not(.ag-plano) { opacity: .45; }
.ag-card.travado .ag-boneco { filter: grayscale(1); }
.ag-cadeado { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; vertical-align: -1px; margin-right: 4px; }
.ag-plano { color: var(--ink-2); }
.ag-tarefas li.travada { color: var(--ink-3); }
.ag-tarefas li.travada .ag-st { color: var(--ink-2); }

/* Logo do cliente (white label, 24/10/2026): usa a largura toda da barra e até 44 px de altura, sem cortar */
:root[data-wl] .brand { width: 64px; height: 44px; display: flex; align-items: center; justify-content: center; box-sizing: content-box; }
:root[data-wl] .brand img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

/* pagamento pendente (planos.js, 24/10/2026): faixa fixa no topo, Voss só para consulta */
.aviso-pagamento { position: sticky; top: 0; z-index: 9999; padding: 10px 16px; background: #b42318; color: #fff; font-size: 14px; font-weight: 600; text-align: center; }

/* Renovação do plano (white label, só admin, 24/10/2026): faixa discreta no topo e janela com as 3 opções */
.renov-faixa { position: fixed; top: 0; left: 0; right: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 44px 8px 16px; background: linear-gradient(90deg, var(--side), color-mix(in srgb, var(--navy) 22%, var(--side))); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; flex-wrap: wrap; text-align: center; }
.renov-faixa button { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.renov-ponto { color: var(--ink-3); }
body.com-faixa .frame { top: calc(var(--faixa-h, 36px) + 10px); }
.renov-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; text-decoration: none !important; }
.renov-x:hover { color: var(--ink); background: var(--glass-2); }
.dialog.renov { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.renov-box { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.renov-topo { position: relative; padding-right: 36px; }
.renov-topo .renov-x { top: 0; right: -6px; transform: none; }
.renov-topo h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.renov-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.renov-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--glass); }
.renov-card.destaque { background: var(--glass-2); border-color: color-mix(in srgb, var(--navy) 55%, var(--line-2)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--navy) 35%, transparent); }
.renov-card h3 { font-family: var(--display); font-weight: 600; font-size: 17px; }
.renov-card p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.renov-card .btn { margin-top: auto; justify-content: center; }
.renov-rotulo { align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-ink); background: color-mix(in srgb, var(--navy) 18%, transparent); padding: 4px 9px; border-radius: 999px; }
.renov-preco { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -.03em; color: var(--ink); }
.renov-preco small { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.renov-card .renov-meta { font-size: 12px; color: var(--ink-3); }
.renov-aguardando { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--glass); }
.renov-aguardando h3 { font-family: var(--display); font-weight: 600; font-size: 18px; }
.renov-aguardando p, .renov-doc p { margin: 0; font-size: 13px; color: var(--ink-2); }
.renov-aguardando .dialog-actions a { margin-right: 0; }
.renov-doc { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.renov-pe { display: flex; justify-content: center; }
.renov-pe .link { border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px; color: var(--ink-3); }
.renov-pe .link:hover { color: var(--ink); }
@media (max-width: 640px) { .renov-box { padding: 20px 16px; } .renov-topo h2 { font-size: 20px; } }
.dialog form.renov-doc { padding: 0; }
/* duas etapas (24/10/2026): 2 caminhos grandes, depois os 3 planos; barra lateral cabe na altura com a faixa */
.renov-cards.dois { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.renov-card.grande { padding: 26px; gap: 12px; }
.renov-card.grande h3 { font-size: 20px; }
.renov-lista { margin: 4px 0 6px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.renov-lista li { position: relative; padding-left: 22px; }
.renov-lista li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.renov-linha { min-height: 22px; }
.renov-rotulo.vazio { visibility: hidden; }
.renov-voltar { border: 0; background: transparent; padding: 0; margin-bottom: 10px; color: var(--ink-3); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.renov-voltar:hover { color: var(--ink); }
body.com-faixa .sidebar { gap: 2px; padding-top: 10px; padding-bottom: 8px; }
body.com-faixa .brand { margin-bottom: 6px; padding-bottom: 6px; }
body.com-faixa .nav-item { padding: 3px 0 2px; gap: 2px; }
body.com-faixa .nav-grupo { padding: 2px 0 4px; gap: 1px; }
body.com-faixa .nav-grupo + .nav-grupo { padding-top: 4px; }
/* 2ª etapa com os planos completos (24/10/2026): mesmo conteúdo da página de planos (public/planos-dados.js), cores do tema
   do Voss (claro/escuro). Cabeçalho fixo e conteúdo rolando; linhas alinhadas entre os cards (subgrid). */
.dialog.renov { overflow: hidden; }
.dialog.renov.largo { width: min(1180px, calc(100vw - 32px)); }
.dialog.renov .renov-box { padding: 0; gap: 0; max-height: calc(100vh - 34px); display: flex; flex-direction: column; }
.dialog.renov .renov-topo { flex: none; padding: 26px 28px 18px; border-bottom: 1px solid transparent; }
.dialog.renov.largo .renov-topo { border-bottom-color: var(--line); }
.dialog.renov .renov-topo .renov-x { top: 22px; right: 18px; }
.renov-rolo { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 28px 22px; display: flex; flex-direction: column; gap: 18px; }
.dialog.renov.largo .renov-rolo { padding-top: 18px; }
.pl-painel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; padding: 10px; border-radius: 26px; background: var(--glass); border: 1px solid var(--line); }
.pl-card { display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 22px 22px 24px; border-radius: 20px; min-width: 0; }
.pl-card.atual { background: var(--s-dialogo); box-shadow: 0 0 0 1px var(--line-2), 0 16px 40px -20px var(--sombra-forte); }
.pl-topo { min-height: 26px; display: flex; align-items: flex-start; }
.pl-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pl-pill.atual { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pl-nome { margin: 12px 0 0; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.pl-frase { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.pl-preco { margin-top: 18px; }
.pl-valor { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-valor span { font-family: var(--display); font-size: 34px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.pl-valor small { font-size: 13px; color: var(--ink-3); }
.pl-termos { margin: 9px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.pl-termos b { color: var(--ink); font-weight: 600; } .pl-termos s { margin-left: 4px; }
.pl-acao { margin-top: 18px; } .pl-acao .btn { width: 100%; justify-content: center; }
.pl-hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 22px 0 12px; }
.pl-inc { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pl-inc.grp { margin-top: 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pl-hr + .pl-inc.grp { margin-top: 0; }
.pl-sys { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pl-sys s { color: var(--ink-3); } .pl-sys b { margin-left: 3px; color: var(--ink); font-weight: 600; }
.pl-li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pl-li b { color: var(--ink); font-weight: 600; }
.pl-ic { width: 14px; height: 14px; margin-top: 2px; stroke-width: 1.6; color: var(--ink); }
.pl-li.off { color: var(--ink-3); opacity: .55; } .pl-li.off .pl-ic { color: var(--ink-3); } .pl-li.off b { color: inherit; font-weight: inherit; }
.pl-star { color: var(--ink-3); }
.pl-ia { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line-2); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; vertical-align: 1px; color: var(--ink-3); }
.pl-precisa { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.pl-precisa-topo { text-align: center; }
.pl-precisa-topo h3 { margin: 0 0 6px; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.pl-precisa-topo p { margin: 0 auto; max-width: 62ch; font-size: 13px; color: var(--ink-3); }
.pl-precisa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pl-need { display: flex; flex-direction: column; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); min-width: 0; }
.pl-need.atual { border-color: var(--line-2); background: var(--glass-2); }
.pl-need h4 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.pl-need-lead { margin: 4px 0 10px; font-size: 12.5px; color: var(--ink-3); }
.pl-need ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.pl-need li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 13px; color: var(--ink-2); }
.pl-need li .pl-ic { align-self: center; margin: 0; width: 13px; height: 13px; }
.pl-req { flex: none; max-width: 70%; }
.pl-dots { flex: 1; min-width: 12px; border-bottom: 1.5px dotted var(--line-2); transform: translateY(-3px); }
.pl-val { flex: none; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-val.var { font-weight: 500; font-style: italic; color: var(--ink-3); }
.pl-need li.off { color: var(--ink-3); opacity: .6; } .pl-need li.off .pl-val { color: var(--ink-3); font-weight: 400; } .pl-need li.off .pl-ic { color: var(--ink-3); }
.pl-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.pl-total span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pl-total strong { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.pl-nota { margin: 2px auto 0; max-width: 92ch; text-align: center; font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }
@media (max-width: 900px) {
  .pl-painel, .pl-precisa-grid { grid-template-columns: minmax(0, 1fr); }
  .renov-rolo { padding: 0 16px 18px; } .dialog.renov .renov-topo { padding: 20px 16px 14px; }
}
.pl-valor span i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.pl-painel.simples .pl-card { display: flex; flex-direction: column; }
.pl-nota { align-self: center; }
@media (max-width: 900px) { .pl-card.atual { order: -1; } }
