/* Sistema Upvisy — barra lateral preta recolhível com a marca; conteúdo em painéis claros; quadros em tela cheia */
:root {
  --laranja: #ff4403;
  --laranja-escuro: #e03a00;
  --laranja-suave: #fff1eb;
  --verde: #c6ff3d;
  --verde-escuro: #4a6400;
  --marrom: #4f2624;
  --preto: #0a0a0a;
  --fundo: #f4f2ef;
  --painel: #ffffff;
  --painel-2: #faf9f7;
  --texto: #15110e;
  --texto-2: #6f665f;
  --linha: #e8e3de;
  --perigo: #c8231b;
  --perigo-suave: #fdeae8;
  --ok: #1d7a3a;
  --ok-suave: #e4f5e9;
  --alerta: #8f5c00;
  --alerta-suave: #fff3d1;
  --sombra: 0 1px 2px rgba(20, 12, 6, 0.05), 0 4px 14px rgba(20, 12, 6, 0.04);
  --fonte-titulo: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --fonte: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --raio: 14px;
  --lateral: 248px;
  --simbolo: url("img/simbolo.png");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --laranja-suave: #3a1c10; --fundo: #0f0d0c; --painel: #1a1715; --painel-2: #201c1a; --texto: #f3efeb; --texto-2: #a79e97;
    --linha: #2e2926; --perigo-suave: #3d1714; --ok-suave: #13301c; --alerta-suave: #352a0c; --verde-escuro: #c6ff3d;
    --perigo: #ff6b61; --ok: #5fd47f; --alerta: #f0b53d; --sombra: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --laranja-suave: #3a1c10; --fundo: #0f0d0c; --painel: #1a1715; --painel-2: #201c1a; --texto: #f3efeb; --texto-2: #a79e97;
  --linha: #2e2926; --perigo-suave: #3d1714; --ok-suave: #13301c; --alerta-suave: #352a0c; --verde-escuro: #c6ff3d;
  --perigo: #ff6b61; --ok: #5fd47f; --alerta: #f0b53d; --sombra: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--fundo); color: var(--texto); font: 15px/1.5 var(--fonte); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--laranja); }
h1, h2, h3 { font-family: var(--fonte-titulo); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 0.95rem; }
.num { font-variant-numeric: tabular-nums; }
svg.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Estrutura ---------- */
.app { display: grid; grid-template-columns: var(--lateral) 1fr; min-height: 100vh; transition: grid-template-columns .2s ease; }
.app.recolhido { --lateral: 76px; }
.lateral { background: var(--preto); color: #f3efeb; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; z-index: 20; }
.marca { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 22px; min-height: 64px; }
.marca .logo-cheio { height: 30px; width: auto; }
.marca .logo-icone { height: 36px; width: auto; display: none; }
.recolher { width: 30px; height: 30px; border-radius: 99px; border: 1px solid #2c2725; background: #161312; color: #d8d1cb; display: grid; place-items: center; cursor: pointer; flex: none; }
.recolher:hover { border-color: var(--laranja); color: #fff; }
.recolher svg { width: 16px; height: 16px; transition: transform .2s; }
.app.recolhido .marca { flex-direction: column; justify-content: center; padding-inline: 0; gap: 12px; }
.app.recolhido .logo-cheio { display: none; }
.app.recolhido .logo-icone { display: block; }
.app.recolhido .recolher svg { transform: rotate(180deg); }
.menu { display: flex; flex-direction: column; gap: 3px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #cfc7c0; text-decoration: none; font-weight: 500; position: relative; white-space: nowrap; }
.menu a:hover { background: #1c1816; color: #fff; }
.menu a.ativo { background: var(--laranja); color: #fff; box-shadow: 0 6px 20px rgba(255, 68, 3, 0.35); }
.menu .cont { margin-left: auto; background: var(--verde); color: var(--preto); border-radius: 99px; font-size: 0.72rem; font-weight: 700; padding: 0 7px; line-height: 1.5; }
.app.recolhido .menu a { justify-content: center; padding: 11px 0; }
.app.recolhido .menu a .rot { display: none; }
.app.recolhido .menu .cont { position: absolute; top: 4px; right: 8px; margin: 0; }
.lateral .rodape { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid #241f1d; font-size: 0.85rem; color: #a79e97; }
.lateral .rodape .quem { display: flex; flex-direction: column; min-width: 0; }
.lateral .rodape b { color: #f3efeb; font-weight: 600; }
.lateral .rodape button { background: none; border: 0; color: #a79e97; padding: 0; cursor: pointer; text-decoration: underline; text-align: left; }
.app.recolhido .rodape .quem { display: none; }
.app.recolhido .rodape { justify-content: center; }
.principal { padding-block: 30px 80px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); min-width: 0; }
@media (min-width: 861px) { .principal { padding-left: 36px; padding-right: 36px; } }
.conteudo { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.conteudo.largo { max-width: none; }
.cabeca { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.cabeca p { margin: 6px 0 0; color: var(--texto-2); max-width: 62ch; }
.eyebrow { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--laranja); margin-bottom: 6px; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

@media (max-width: 860px) {
  .app, .app.recolhido { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: auto 0 0 0; height: auto; top: auto; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); overflow-x: auto; }
  .marca, .lateral .rodape { display: none; }
  .menu { flex-direction: row; gap: 2px; }
  .menu a, .app.recolhido .menu a { flex-direction: column; gap: 2px; font-size: 0.66rem; padding: 6px 10px; justify-content: center; }
  .app.recolhido .menu a .rot { display: inline; }
  .menu a.ativo { box-shadow: none; }
  .menu .cont, .app.recolhido .menu .cont { position: absolute; top: 2px; right: 4px; margin: 0; }
  h1 { font-size: 1.5rem; }
  .principal { padding-block: 18px 110px; }
}

/* ---------- Painéis ---------- */
.painel { background: var(--painel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px; min-width: 0; box-shadow: var(--sombra); }
.painel > h2 { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.painel > h2 .cont { font: 700 0.75rem var(--fonte); color: var(--texto-2); background: var(--painel-2); border: 1px solid var(--linha); padding: 0 8px; border-radius: 99px; }
.grade { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.numeros { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.numero { background: var(--painel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px 18px; box-shadow: var(--sombra); min-width: 0; }
.numero span { display: block; font-size: 0.74rem; color: var(--texto-2); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.numero strong { display: block; font-family: var(--fonte-titulo); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.numero small { display: block; color: var(--texto-2); }
.barra { height: 8px; border-radius: 99px; background: var(--linha); overflow: hidden; margin-top: 10px; }
.barra i { display: block; height: 100%; background: var(--laranja); border-radius: 99px; }
.vazio { color: var(--texto-2); padding: 12px 0; }

/* ---------- Faixa de destaque (Hoje) ---------- */
.faixa { position: relative; overflow: hidden; background: var(--preto); color: #fff; border-radius: 18px; padding: 26px 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.faixa::after { content: ""; position: absolute; right: -40px; top: -30px; width: 340px; height: 220px; background: var(--simbolo) no-repeat center / contain; opacity: 0.18; pointer-events: none; }
.faixa h1 { color: #fff; }
.faixa p { color: #bdb4ad; margin: 6px 0 0; }
.faixa .meta-mes { position: relative; z-index: 1; }
.faixa .meta-mes span { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: #bdb4ad; font-weight: 700; }
.faixa .meta-mes strong { display: block; font-family: var(--fonte-titulo); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.faixa .barra { background: #2a2523; height: 10px; }
.faixa .barra i { background: var(--verde); }
.faixa .acoes { margin-top: 16px; position: relative; z-index: 1; }
@media (max-width: 760px) { .faixa { grid-template-columns: 1fr; padding: 22px; } .faixa::after { width: 220px; height: 150px; } }

/* ---------- Listas ---------- */
.lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lista li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--linha); min-width: 0; }
.lista li:first-child { border-top: 0; padding-top: 2px; }
.lista .txt { flex: 1; min-width: 0; }
.lista .txt b { display: block; overflow-wrap: anywhere; font-weight: 600; }
.lista .txt small { color: var(--texto-2); }
.check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--linha); background: var(--painel); cursor: pointer; flex: none; display: grid; place-items: center; }
.check:hover { border-color: var(--ok); background: var(--ok-suave); }
.check:hover::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translate(1px, -1px); }
@media (max-width: 600px) {
  .lista li { flex-wrap: wrap; }
  .lista .txt { flex: 1 1 calc(100% - 44px); }
  .lista li > .tag:first-of-type, .lista li > .av:first-of-type { margin-left: 34px; }
  .numero strong { font-size: 1.3rem; }
}

/* ---------- Avatar e etiquetas ---------- */
.av { width: 26px; height: 26px; border-radius: 99px; display: inline-grid; place-items: center; font: 700 0.72rem var(--fonte); flex: none; }
.av.normando { background: var(--marrom); color: #fff; }
.av.lucas { background: var(--verde); color: var(--preto); }
.av.grande { width: 34px; height: 34px; font-size: 0.85rem; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 0.74rem; font-weight: 600; background: var(--painel-2); color: var(--texto-2); border: 1px solid var(--linha); white-space: nowrap; }
.tag.perigo { background: var(--perigo-suave); color: var(--perigo); border-color: transparent; }
.tag.ok { background: var(--ok-suave); color: var(--ok); border-color: transparent; }
.tag.alerta { background: var(--alerta-suave); color: var(--alerta); border-color: transparent; }
.tag.laranja { background: var(--laranja-suave); color: var(--laranja); border-color: transparent; }
.tag.lucas { background: #ecfccb; color: #3d5200; border-color: transparent; }
.tag.normando { background: #f4e5e3; color: var(--marrom); border-color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.lucas { background: #263408; color: var(--verde); } :root:not([data-theme="light"]) .tag.normando { background: #3a2321; color: #f0c2bc; } }
:root[data-theme="dark"] .tag.lucas { background: #263408; color: var(--verde); }
:root[data-theme="dark"] .tag.normando { background: #3a2321; color: #f0c2bc; }

/* ---------- Botões e formulários ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--linha); background: var(--painel); cursor: pointer; font-weight: 600; text-decoration: none; color: var(--texto); white-space: nowrap; }
.btn:hover { border-color: var(--texto-2); }
.btn.primario { background: var(--laranja); border-color: var(--laranja); color: #fff; box-shadow: 0 4px 14px rgba(255, 68, 3, 0.25); }
.btn.primario:hover { background: var(--laranja-escuro); }
.btn.claro { background: #1d1917; border-color: #2e2926; color: #fff; }
.btn.pequeno { padding: 5px 11px; font-size: 0.84rem; border-radius: 8px; }
.btn.perigo { color: var(--perigo); }
.btn:disabled { opacity: 0.5; cursor: default; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; }
.campo { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.campo label { font-size: 0.8rem; font-weight: 600; color: var(--texto-2); }
.campo input, .campo select, .campo textarea, select.filtro { width: 100%; padding: 10px 12px; border: 1px solid var(--linha); border-radius: 10px; background: var(--painel); }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--laranja); outline: none; box-shadow: 0 0 0 3px var(--laranja-suave); }
.campo textarea { min-height: 90px; resize: vertical; }
.campo small { color: var(--texto-2); }
.form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form .largo { grid-column: 1 / -1; }
select.filtro { width: auto; padding: 8px 12px; }

/* ---------- Tabelas ---------- */
.tabela-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--texto-2); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--linha); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.clicavel { cursor: pointer; }
tr.clicavel:hover td { background: var(--painel-2); }
.painel.tabela-wrap { padding: 6px 8px; }

/* ---------- Quadros (tarefas e comercial) ---------- */
.quadro { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(205px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.coluna { background: var(--painel-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.coluna > header { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.coluna > header h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; flex: 1; }
.coluna > header .qtd { font-size: 0.78rem; font-weight: 700; color: var(--texto-2); background: var(--painel); border: 1px solid var(--linha); border-radius: 99px; padding: 0 8px; }
.coluna > header .sub { font-size: 0.78rem; color: var(--texto-2); font-weight: 600; }
.ponto { width: 9px; height: 9px; border-radius: 99px; background: var(--cor, var(--texto-2)); flex: none; }
.cartoes { display: flex; flex-direction: column; gap: 9px; min-height: 60px; flex: 1; border-radius: 10px; }
.cartao { background: var(--painel); border: 1px solid var(--linha); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: grab; box-shadow: var(--sombra); position: relative; touch-action: manipulation; }
.cartao:hover { border-color: var(--laranja); }
.cartao::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cor, transparent); }
.cartao.atrasado { --cor: var(--perigo); }
.cartao b { overflow-wrap: anywhere; font-weight: 600; line-height: 1.35; }
.cartao .cli { font-size: 0.8rem; color: var(--texto-2); font-weight: 600; }
.cartao .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.8rem; color: var(--texto-2); }
.cartao .rodape-c { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.cartao select { font-size: 0.78rem; padding: 4px 6px; border: 1px solid var(--linha); border-radius: 8px; background: var(--painel-2); max-width: 150px; cursor: pointer; }
.fantasma { opacity: 0.35; border-style: dashed; }
.arrastando { transform: rotate(2deg); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2); }
.cartoes.vazia::after { content: "Arraste para cá"; display: grid; place-items: center; min-height: 60px; border: 2px dashed var(--linha); border-radius: 10px; color: var(--texto-2); font-size: 0.85rem; }

/* ---------- Funil (comercial) ---------- */
.funil { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.funil div { background: var(--painel); border: 1px solid var(--linha); padding: 12px 14px; position: relative; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); padding-left: 26px; min-width: 0; }
.funil div:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-left: 16px; border-radius: 12px 0 0 12px; }
.funil div span { display: block; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 700; color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funil div strong { font-family: var(--fonte-titulo); font-size: 1.4rem; font-weight: 800; }
.funil div small { display: block; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.funil div.ultimo { background: var(--preto); color: #fff; border-color: var(--preto); }
.funil div.ultimo span, .funil div.ultimo small { color: #bdb4ad; }
@media (max-width: 760px) { .funil { grid-template-columns: repeat(2, 1fr); } .funil div, .funil div:first-child { clip-path: none; border-radius: 12px; padding-left: 14px; } }
.desfecho { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.desfecho .coluna.fechou { --cor: var(--ok); background: var(--ok-suave); border-color: transparent; }
.desfecho .coluna.perdeu { --cor: var(--texto-2); }
@media (max-width: 760px) { .desfecho { grid-template-columns: 1fr; } }

/* ---------- Abas ---------- */
.abas { display: flex; gap: 4px; background: var(--painel); border: 1px solid var(--linha); padding: 4px; border-radius: 12px; overflow-x: auto; width: fit-content; max-width: 100%; }
.abas button { background: none; border: 0; padding: 7px 14px; cursor: pointer; font-weight: 600; color: var(--texto-2); border-radius: 9px; white-space: nowrap; }
.abas button.ativo { color: #fff; background: var(--preto); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .abas button.ativo { background: var(--laranja); } }
:root[data-theme="dark"] .abas button.ativo { background: var(--laranja); }

/* ---------- Janela (modal) ---------- */
.fundo-modal { position: fixed; inset: 0; background: rgba(10, 10, 10, 0.6); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--painel); border-radius: 18px; width: min(760px, 100%); padding: 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); }
.modal .rodape-modal { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; border-top: 1px solid var(--linha); padding-top: 16px; }

/* ---------- Avisos ---------- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); background: var(--preto); color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 60; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); max-width: calc(100% - 32px); font-weight: 500; }
.toast.erro { background: var(--perigo); }
.caixa { border-radius: 12px; padding: 12px 14px; background: var(--laranja-suave); }
.caixa.ok { background: var(--ok-suave); }
.copiavel { display: block; background: var(--painel-2); border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; user-select: all; font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; overflow-wrap: anywhere; }
ol.passos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--preto); position: relative; overflow: hidden; }
.login::before { content: ""; position: absolute; width: 760px; height: 520px; right: -200px; bottom: -160px; background: var(--simbolo) no-repeat center / contain; opacity: 0.08; }
.login form { position: relative; width: min(400px, 100%); background: var(--painel); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.login .topo-login { background: var(--preto); border-radius: 14px; padding: 22px; display: grid; place-items: center; gap: 6px; }
.login .topo-login img { height: 96px; width: auto; }
.login .topo-login small { color: #a79e97; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.carregando { padding: 40px; text-align: center; color: var(--texto-2); }
@media (prefers-reduced-motion: no-preference) { .cartao, .btn, .menu a { transition: border-color .15s, background .15s, box-shadow .15s; } }
@media (prefers-reduced-motion: reduce) { .app, .recolher svg { transition: none; } }

/* ---------- Onboarding ---------- */
.onb { display: flex; flex-direction: column; gap: 12px; }
.onb-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.onb-nome small { color: var(--texto-2); }
.onb-dir { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.onb-prog { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.onb-prog .barra { flex: 1; margin: 0; height: 10px; }
.onb-prog .barra i { background: linear-gradient(90deg, var(--laranja), #ff7a45); }
.onb-prog span { font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.onb-prox { color: var(--texto-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.onb-prox small { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.onb-prox b { color: var(--texto); }
.onb-passos { border-top: 1px solid var(--linha); padding-top: 4px; }
.onb-passos li.feito .txt b { text-decoration: line-through; color: var(--texto-2); font-weight: 500; }
.onb-dia { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--texto-2); width: 52px; flex: none; }
.check.marcado { background: var(--ok); border-color: var(--ok); }
.check.marcado::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.onb-linha { flex-wrap: wrap; }
.onb-linha .txt small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
@media (max-width: 600px) { .onb-dia { width: auto; } .onb-prog { min-width: 0; width: 100%; } }
.msg-pronta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.msg-pronta .copiavel { width: 100%; background: var(--painel); }

/* briefing na ficha do cliente */
details.briefing { border: 1px solid var(--linha); border-radius: 12px; padding: 10px 14px; }
details.briefing summary { cursor: pointer; font-weight: 600; }
details.briefing dl { margin: 12px 0 0; display: grid; gap: 4px; }
details.briefing dt { font-weight: 700; font-size: 0.88rem; color: var(--texto-2); margin-top: 10px; }
details.briefing dd { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.caixa.alerta-caixa { margin-bottom: 14px; border: 1px solid var(--laranja, #ff4403); }
.caixa.alerta-caixa select { min-width: 0; flex: 1 1 200px; }

/* visão de cada pessoa (topo do menu) */
.lateral .visao { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 0 0 10px; border-radius: 12px; background: #171311; border: 1px solid #2a2421; color: #f3efeb; text-decoration: none; white-space: nowrap; }
.lateral .visao:hover { border-color: var(--laranja); }
.lateral .visao .rot { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.lateral .visao small { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: #a79e97; }
.lateral .visao b { font-weight: 600; }
.lateral .visao .troca { width: 16px; height: 16px; margin-left: auto; color: #a79e97; flex: none; }
.av.todos { background: var(--laranja); color: #fff; }
.av.todos .ic { width: 15px; height: 15px; }
.av.grande.todos .ic { width: 19px; height: 19px; }
.app.recolhido .lateral .visao { justify-content: center; padding: 9px 0; }
.app.recolhido .lateral .visao .rot, .app.recolhido .lateral .visao .troca { display: none; }
@media (max-width: 860px) {
  .lateral .visao { flex-direction: column; gap: 2px; margin: 0 4px 0 0; padding: 6px 10px; font-size: 0.66rem; }
  .lateral .visao small, .lateral .visao .troca { display: none; }
}

/* tela Equipe */
.pessoas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pessoa-card { text-align: left; font: inherit; color: inherit; background: var(--painel); border: 1.5px solid var(--linha); border-radius: 18px; padding: 22px; box-shadow: var(--sombra); cursor: pointer; display: flex; flex-direction: column; gap: 16px; transition: border-color .15s, transform .15s; }
.pessoa-card:hover { border-color: var(--laranja); transform: translateY(-2px); }
.pessoa-card.ativo { border-color: var(--laranja); box-shadow: 0 0 0 3px var(--laranja-suave), var(--sombra); }
.pessoa-card .pc-topo { display: flex; align-items: center; gap: 12px; }
.pessoa-card .pc-topo .av.grande { width: 48px; height: 48px; font-size: 1.1rem; }
.pessoa-card .pc-topo h2 { margin: 0; font-family: var(--fonte-titulo); font-size: 1.35rem; }
.pessoa-card .pc-topo small { color: var(--texto-2); }
.pessoa-card .pc-topo .tag { margin-left: auto; align-self: flex-start; }
.pessoa-card .pc-num { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pessoa-card .pc-num div { background: var(--painel-2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.pessoa-card .pc-num strong { font-family: var(--fonte-titulo); font-size: 1.5rem; }
.pessoa-card .pc-num strong.perigo { color: var(--perigo); }
.pessoa-card .pc-num span { font-size: 0.78rem; color: var(--texto-2); }
.pessoa-card .pc-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.pessoa-card > .btn { align-self: flex-start; }

/* aba Conteúdo */
.cont-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cont-topo .tag { margin-left: 6px; }
.lista .cont-linha { cursor: pointer; align-items: center; }
.lista .cont-linha:hover { background: var(--painel-2); }
.cont-thumb { position: relative; width: 58px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--painel-2); border: 1px solid var(--linha); flex: none; display: grid; place-items: center; }
.cont-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cont-thumb span { font-size: 0.62rem; color: var(--texto-2); text-align: center; padding: 2px; }
.cont-thumb b { position: absolute; top: 4px; right: 4px; background: rgba(10,10,10,.75); color: #fff; font-size: 0.66rem; border-radius: 99px; padding: 1px 6px; }
.cont-linha .txt small.aj { color: var(--perigo); font-weight: 600; }
.cont-linha .txt small.okc { color: var(--ok); font-weight: 600; }
.cont-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cont-acoes select { border-left: 4px solid var(--cor); }
.cartao .cartao-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.cont-midias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.cont-midias a { position: relative; flex: none; width: 92px; height: 115px; border-radius: 10px; overflow: hidden; border: 1px solid var(--linha); }
.cont-midias img { width: 100%; height: 100%; object-fit: cover; }
.cont-midias span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.4rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
@media (max-width: 860px) { .lista .cont-linha { flex-wrap: wrap; } .cont-acoes { width: 100%; justify-content: flex-start; } }

/* Conteúdo: alternar visão e "como o cliente vê" */
.segmento { display: inline-flex; background: var(--painel); border: 1px solid var(--linha); border-radius: 12px; padding: 3px; gap: 2px; }
.segmento button { border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; font: 600 0.9rem var(--fonte); color: var(--texto-2); cursor: pointer; white-space: nowrap; }
.segmento button.ativo { background: var(--preto); color: #fff; }
.como-cliente .cc-topo { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.como-cliente .cc-topo small { color: var(--texto-2); }
.cc-moldura { margin: 0 auto; background: #0a0a0a; padding: 12px; box-shadow: 0 20px 50px rgba(20,12,6,.18); }
.cc-moldura.cel { width: 404px; max-width: 100%; height: 800px; border-radius: 44px; }
.cc-moldura.pc { width: 100%; height: 760px; border-radius: 16px; padding: 8px; }
.cc-moldura iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #f6f1ea; }
.cc-moldura.pc iframe { border-radius: 10px; }
@media (max-width: 860px) { .segmento { width: 100%; overflow-x: auto; } .cc-moldura.cel { height: 680px; border-radius: 34px; } }

/* quadro do mês (um cartão por cliente) */
.cartao-mes { cursor: pointer; }
.cartao-mes b { display: block; font-size: 1rem; margin-bottom: 2px; }
.mini-barra { display: flex; height: 7px; border-radius: 99px; overflow: hidden; background: var(--painel-2); margin: 10px 0 8px; gap: 1px; }
.mini-barra i { display: block; }
.cartao-mes .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cartao-mes .meta small { color: var(--texto-2); }
.voltar-quadro { border: 0; background: none; padding: 0; margin: 0 0 6px; color: var(--laranja); font: 600 0.88rem var(--fonte); cursor: pointer; }
.quadro-mes { grid-template-columns: repeat(6, minmax(168px, 1fr)); gap: 10px; }
.quadro-mes .coluna { padding: 10px; }
