/* Prospecção CRM — base visual: cinza claro, cartões brancos arredondados, verde-limão como destaque, preto para ações fortes. */
:root {
  --bg: #f1f2ee;
  --surface: #ffffff;
  --surface-2: #f6f7f3;
  --surface-3: #eceee8;
  --ink: #111310;
  --ink-2: #393d37;
  --muted: #6c7169;
  --line: #e3e5df;
  --line-2: #d4d7cf;
  --lime: #b5ef3a;
  --lime-strong: #8fd400;
  --lime-ink: #12170a;
  --lime-soft: #eef9d6;
  --dark: #121411;
  --dark-ink: #ffffff;
  --ok: #2f8a3e;
  --ok-soft: #e3f4e5;
  --warn: #b26a00;
  --warn-soft: #fdf0d9;
  --bad: #c2362b;
  --bad-soft: #fbe5e2;
  --info: #2a63c7;
  --info-soft: #e4edfb;
  --s-novo: #8a8f87; --s-prospeccao: #2a63c7; --s-sem_resposta: #a7782e; --s-respondeu: #11878a; --s-retornar: #d07a00;
  --s-interessado: #5aa800; --s-proposta: #7b4bc4; --s-fechado: #16753a; --s-perdido: #c2362b;
  --f: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --r: 14px;
  --r-sm: 10px;
  --sombra: 0 1px 2px rgba(17, 19, 16, .04), 0 4px 16px rgba(17, 19, 16, .04);
  --sombra-forte: 0 18px 50px rgba(17, 19, 16, .18);
  --z-topo: 10; --z-gaveta: 30; --z-modal: 40; --z-toast: 50;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime-strong); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }

/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100%; }
.lateral { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 12px; gap: 4px; }
.marca { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.marca .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--lime); display: grid; place-items: center; color: var(--lime-ink); }
.marca small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: 0; }
.nav-grupo { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 450; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface-3); color: var(--ink); font-weight: 550; }
.nav a .cont { margin-left: auto; font-size: 11px; font-family: var(--f-mono); background: var(--dark); color: var(--dark-ink); border-radius: 999px; padding: 1px 7px; }
.nav a .cont.alerta { background: var(--bad); }
.lateral .rodape { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.eu-card { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.eu-card b { display: block; font-weight: 550; font-size: 13px; }
.eu-card span { font-size: 12px; color: var(--muted); }

.principal { min-width: 0; display: flex; flex-direction: column; }
.topo { position: sticky; top: 0; z-index: var(--z-topo); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); display: flex; align-items: center; gap: 10px; padding: 14px 28px; flex-wrap: wrap; }
.busca-global { flex: 1 1 280px; max-width: 460px; position: relative; }
.busca-global input[type=search] { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px 10px 38px; }
.busca-global svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.topo .espaco { flex: 1; }
.online { display: flex; align-items: center; }
.online .av { margin-left: -6px; border: 2px solid var(--bg); }
.conteudo { padding: 8px 28px 60px; display: grid; gap: 20px; align-content: start; }
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.cabecalho h1 { font-size: 34px; line-height: 1.1; font-weight: 450; }
.cabecalho p { color: var(--muted); margin-top: 6px; }
.cabecalho p b { color: var(--ink); font-weight: 550; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- componentes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; text-decoration: none; white-space: nowrap; min-height: 36px; transition: background .12s, border-color .12s; }
.btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn.lime:hover { background: #a8e62a; }
.btn.dark { background: var(--dark); border-color: var(--dark); color: var(--dark-ink); }
.btn.dark:hover { background: #2a2d29; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.perigo { color: var(--bad); }
.btn.sm { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.btn.icone { padding: 0; width: 36px; }
.btn.icone.sm { width: 30px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn .carregando { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.btn-wa { color: #13803a; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sombra); min-width: 0; }
.card-pad { padding: 18px; }
.card-tit { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.card-tit .e { display: flex; align-items: center; gap: 8px; }

.campo { display: grid; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 500; min-width: 0; }
.campo > input, .campo > select, .campo > textarea { color: var(--ink); font-size: 14px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=tel], input[type=number], select, textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 11px; min-height: 38px; width: 100%; min-width: 0;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime-soft); }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.chk input { width: 16px; height: 16px; accent-color: var(--dark); }
.grade { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.linha { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.erro-campo { color: var(--bad); font-size: 12px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; color: var(--ink-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
.pill.sem-ponto::before { display: none; }
.pill.lime { background: var(--lime-soft); border-color: transparent; color: var(--lime-ink); }
.pill.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.pill.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.pill.info { background: var(--info-soft); border-color: transparent; color: var(--info); }
.pill.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; background: var(--c, #6c7169); flex: none; text-transform: uppercase; }
.av.lg { width: 34px; height: 34px; font-size: 13px; }

/* chips de filtro rápido */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: var(--dark-ink); }
.chip .n { font-family: var(--f-mono); font-size: 12px; opacity: .7; }
.chip .ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ---------- KPIs (estilo das referências) ---------- */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi { padding: 16px 18px 14px; display: grid; gap: 6px; }
.kpi .rot { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.kpi .val { font-size: 30px; font-weight: 450; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 12px; font-family: var(--f-mono); color: var(--ok); letter-spacing: 0; }
.kpi .val small.neg { color: var(--bad); }
.kpi .sub { font-size: 12px; color: var(--muted); }
.progresso { position: relative; height: 4px; background: var(--surface-3); border-radius: 4px; margin-top: 6px; }
.progresso > i { position: absolute; inset: 0 auto 0 0; background: var(--lime); border-radius: 4px; }
.progresso.escuro > i { background: var(--dark); }
.progresso > b { position: absolute; top: -4px; width: 2px; height: 12px; background: var(--ink-2); border-radius: 2px; }

.paineis { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1180px) { .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; } .span-6 { grid-column: span 12; } }

/* gráfico de barras */
.grafico { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; height: 220px; padding-top: 6px; }
.eixo-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; line-height: 12px; color: var(--muted); font-family: var(--f-mono); text-align: right; margin: -6px 0; }
.barras-v { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.barras-v::before { content: ""; position: absolute; inset: 0 0 0 0; background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--surface-3) calc(25% - 1px), var(--surface-3) 25%); pointer-events: none; }
.coluna { position: relative; display: flex; flex-direction: column-reverse; height: 100%; justify-content: flex-start; }
.coluna .seg { width: 100%; max-width: 26px; margin: 0 auto; border-radius: 3px 3px 0 0; }
.coluna .seg + .seg { border-radius: 3px 3px 0 0; }
.coluna .dia { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); font-family: var(--f-mono); white-space: nowrap; }
.coluna:hover .seg { filter: brightness(.92); }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 26px; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* funil horizontal (estilo "conversion funnel") */
.funil { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 4px; }
.funil > div { padding: 10px 14px 0; border-left: 1px solid var(--line); display: grid; align-content: end; gap: 6px; min-height: 130px; min-width: 0; }
.funil > div:first-child { border-left-color: var(--lime-strong); border-left-width: 2px; }
.funil .rot { font-size: 13px; color: var(--muted); }
.funil .v { font-size: 30px; font-weight: 450; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .funil { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } }
.funil .p { font-size: 11px; font-family: var(--f-mono); color: var(--muted); }
.funil .b { height: 5px; border-radius: 3px; background: var(--surface-3); }
.funil .b i { display: block; height: 100%; background: var(--c, var(--dark)); border-radius: 3px; }

.lista-barras { display: grid; gap: 10px; }
.lb { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 58px; gap: 10px; align-items: center; font-size: 13px; }
.lb .t { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.lb .t i { display: block; height: 100%; background: var(--c, var(--dark)); border-radius: 4px; }
.lb .n { text-align: right; font-family: var(--f-mono); font-size: 12px; }

/* ---------- tabela de leads ---------- */
.tabela-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--surface-2); }
tbody tr.sel td { background: var(--lime-soft); }
tbody tr.travado td { background: #fff8e8; }
td.nome b { display: block; font-weight: 550; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.nome span { font-size: 12px; color: var(--muted); }
td.n, th.n { text-align: right; font-family: var(--f-mono); }
.tel-cel { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chamado-sim { display: inline-flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.chamado-sim b { font-weight: 550; color: var(--ok); }
.chamado-nao { font-size: 12px; color: var(--muted); white-space: nowrap; }
.nota-mini { font-size: 12px; color: var(--ink-2); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.paginacao { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.barra-lote { position: sticky; bottom: 16px; z-index: 5; background: var(--dark); color: var(--dark-ink); border-radius: 999px; padding: 8px 8px 8px 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; box-shadow: var(--sombra-forte); }
.barra-lote .btn { background: #2a2d29; border-color: #3a3d39; color: #fff; }
.barra-lote .btn.lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.barra-lote select { background: #2a2d29; border-color: #3a3d39; color: #fff; min-height: 32px; padding: 4px 10px; width: auto; border-radius: 999px; }

.filtros-av { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); padding: 16px 18px; border-top: 1px solid var(--line); }
.multi { position: relative; }
.multi > button { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 30px 8px 11px; min-height: 38px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 400; }
.multi > button::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.multi .caixa { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 300px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sombra-forte); padding: 6px; display: grid; }
.multi .caixa label { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: var(--ink); font-weight: 400; white-space: nowrap; }
.multi .caixa label:hover { background: var(--surface-2); }

/* ---------- gaveta do lead ---------- */
.veu { position: fixed; inset: 0; background: rgba(17, 19, 16, .32); z-index: var(--z-gaveta); }
.gaveta { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--bg); z-index: calc(var(--z-gaveta) + 1); display: flex; flex-direction: column; box-shadow: var(--sombra-forte); }
@media (prefers-reduced-motion: no-preference) { .gaveta { animation: entra .2s ease-out; } @keyframes entra { from { transform: translateX(30px); opacity: .5; } } }
.g-cab { background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 22px 14px; display: grid; gap: 10px; }
.g-cab h2 { font-size: 24px; line-height: 1.15; padding-right: 44px; overflow-wrap: anywhere; }
.g-cab .sub { color: var(--muted); font-size: 13px; }
.g-fechar { position: absolute; top: 14px; right: 16px; }
.g-trava { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.g-trava.minha { background: var(--lime-soft); color: var(--lime-ink); }
.g-corpo { overflow-y: auto; padding: 18px 22px 40px; display: grid; gap: 14px; align-content: start; }
.telefone-grande { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.telefone-grande .mono { font-size: 22px; letter-spacing: -0.01em; }
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.abas button { border: 0; background: none; padding: 10px 12px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.abas button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.dados { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; font-size: 13px; }
.dados dt { color: var(--muted); }
.dados dd { margin: 0; overflow-wrap: anywhere; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.linha-tempo { list-style: none; margin: 0; padding: 0; display: grid; }
.linha-tempo li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.linha-tempo li:last-child { border-bottom: 0; }
.linha-tempo .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.linha-tempo .ic.nota { background: var(--lime-soft); color: var(--lime-ink); }
.linha-tempo .ic.chamada { background: var(--info-soft); color: var(--info); }
.linha-tempo .meta { font-size: 12px; color: var(--muted); }
.linha-tempo .txt { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; }
.linha-tempo .nota-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.composer { display: grid; gap: 8px; }

/* resultados de contato */
.resultados { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.resultados button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 10px 12px; text-align: left; cursor: pointer; display: grid; gap: 2px; font-weight: 500; }
.resultados button small { color: var(--muted); font-weight: 400; font-size: 11px; }
.resultados button:hover { border-color: var(--ink-2); }
.resultados button[aria-pressed="true"] { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.resultados button[aria-pressed="true"] small { color: #c8ccc4; }

/* ---------- fila de chamadas ---------- */
.fila { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .fila { grid-template-columns: 1fr; } }
.fila-lead h2 { font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
.fila-vazia { text-align: center; padding: 48px 20px; display: grid; gap: 10px; justify-items: center; }
.contador-fila { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

/* ---------- funil (kanban) ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); display: grid; align-content: start; min-height: 200px; }
.kcol.alvo { outline: 2px dashed var(--ink-2); outline-offset: -4px; }
.kcol-cab { padding: 12px 14px 10px; border-top: 4px solid var(--c); border-radius: var(--r) var(--r) 0 0; display: grid; gap: 2px; }
.kcol-cab b { font-weight: 550; }
.kcol-cab span { font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.kcards { display: grid; gap: 8px; padding: 4px 10px 12px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: grab; display: grid; gap: 6px; box-shadow: var(--sombra); }
.kcard:active { cursor: grabbing; }
.kcard b { font-weight: 550; overflow-wrap: anywhere; }
.kcard .rod { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

/* ---------- agenda / atividade ---------- */
.grupo-ag { display: grid; gap: 8px; }
.grupo-ag h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.grupo-ag.atras h3 { color: var(--bad); }
.item-ag { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.item-ag:last-child { border-bottom: 0; }
.item-ag:hover { background: var(--surface-2); }
.feed { list-style: none; padding: 0; margin: 0; display: grid; }
.feed li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; font-size: 13px; }
.feed li:last-child { border-bottom: 0; }
.feed time { font-size: 11px; color: var(--muted); font-family: var(--f-mono); white-space: nowrap; }
.feed a { cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }

/* ---------- modal, toast, avisos ---------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(17, 19, 16, .4); display: grid; place-items: center; padding: 16px; }
.modal-caixa { background: var(--surface); border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; display: grid; gap: 14px; box-shadow: var(--sombra-forte); }
.modal-caixa.largo { width: min(820px, 100%); }
.modal-caixa h2 { font-size: 21px; }
.modal-rod { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-toast); display: grid; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
.toast { background: var(--dark); color: var(--dark-ink); border-radius: 12px; padding: 11px 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--sombra-forte); font-size: 13px; }
.toast.erro { background: var(--bad); }
.toast button { background: var(--lime); color: var(--lime-ink); border: 0; border-radius: 999px; padding: 4px 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sino { position: relative; }
.sino .bolinha { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; font-weight: 600; }
.pop-avisos { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, 90vw); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sombra-forte); max-height: 420px; overflow-y: auto; z-index: 25; }
.pop-avisos .it { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; display: grid; gap: 3px; }
.pop-avisos .it.novo { background: var(--lime-soft); }
.pop-avisos .it time { font-size: 11px; color: var(--muted); }
.vazio { text-align: center; padding: 36px 18px; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.vazio b { color: var(--ink); font-weight: 550; font-size: 15px; }
.esqueleto { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; border-radius: 8px; height: 14px; animation: brilho 1.2s infinite; }
@keyframes brilho { to { background-position: -200% 0; } }

/* ---------- login ---------- */
.login { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.login-form { display: grid; place-items: center; padding: 32px 20px; background: var(--surface); }
.login-form form { width: min(380px, 100%); display: grid; gap: 14px; }
.login-form h1 { font-size: 32px; font-weight: 450; }
.login-arte { background: var(--dark); color: #fff; padding: 48px; display: grid; align-content: space-between; position: relative; overflow: hidden; }
.login-arte h2 { font-size: 40px; font-weight: 400; line-height: 1.1; max-width: 14ch; }
.login-arte h2 em { font-style: normal; color: var(--lime); }
.login-arte .num { color: var(--lime); font-size: 56px; letter-spacing: -0.04em; }
.login-arte .grade-pontos { position: absolute; right: -40px; bottom: -40px; width: 380px; height: 380px; background-image: radial-gradient(#3a3f37 1.4px, transparent 1.4px); background-size: 18px 18px; opacity: .7; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-arte { display: none; } }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 35; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--sombra-forte); }
  .app.menu-aberto .lateral { transform: none; }
  .topo, .conteudo { padding-left: 16px; padding-right: 16px; }
  .cabecalho h1 { font-size: 27px; }
  .so-desktop { display: none !important; }
}
@media (min-width: 901px) { .so-mobile { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
