:root {
  --bg: #f6f4f0; --surface: #ffffff; --surface-2: #faf8f5; --text: #24211e; --muted: #7b756d; --line: #e8e3db;
  --gold: #b08d57; --gold-soft: #f3ead9; --gold-ink: #7a5e2c;
  --side: #1f1d1b; --side-text: #d9d4cc; --side-muted: #8c867d;
  --danger: #b3261e; --danger-bg: #fbe9e7; --warn: #8a5a00; --warn-bg: #fdf1d6; --ok: #1f6b3d; --ok-bg: #e4f3ea; --info: #2c5282; --info-bg: #e6eef8;
  --radius: 12px; --shadow: 0 1px 2px rgba(36,33,30,.05), 0 4px 14px rgba(36,33,30,.05);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161412; --surface: #1f1c19; --surface-2: #24201d; --text: #ece7df; --muted: #a39c92; --line: #332e29;
    --gold: #d1ad74; --gold-soft: #332a1a; --gold-ink: #e3c68f;
    --side: #100f0d; --side-text: #d9d4cc; --side-muted: #8c867d;
    --danger: #ff8f84; --danger-bg: #3b1f1c; --warn: #f0c56a; --warn-bg: #36290f; --ok: #7bd39b; --ok-bg: #16301f; --info: #8fb8ee; --info-bg: #17263a;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
    --bg: #161412; --surface: #1f1c19; --surface-2: #24201d; --text: #ece7df; --muted: #a39c92; --line: #332e29;
    --gold: #d1ad74; --gold-soft: #332a1a; --gold-ink: #e3c68f;
    --side: #100f0d; --side-text: #d9d4cc; --side-muted: #8c867d;
    --danger: #ff8f84; --danger-bg: #3b1f1c; --warn: #f0c56a; --warn-bg: #36290f; --ok: #7bd39b; --ok-bg: #16301f; --info: #8fb8ee; --info-bg: #17263a;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; margin: 0; }
h1 { font-size: 26px; } h2 { font-size: 17px; } h3 { font-size: 14px; }
a { color: var(--gold-ink); }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.ic.sm { width: 15px; height: 15px; vertical-align: -2px; }

.demo-banner { position: sticky; top: 0; z-index: 60; background: #8f1d16; color: #fff; text-align: center; font-weight: 700; font-size: 12px; letter-spacing: .06em; padding: 5px 12px; }

/* estrutura */
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 28px); }
nav.side { background: var(--side); color: var(--side-text); padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 28px; height: calc(100vh - 28px); overflow: hidden; }
nav.side .navlist { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.navgrp { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--side-muted); padding: 12px 12px 3px; }
.navgrp:first-child { padding-top: 2px; }
nav.side .who { flex: 0 0 auto; }
.brand { padding: 2px 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; flex: 0 0 auto; }
.brand b { display: block; font-family: var(--serif); font-size: 19px; color: #fff; font-weight: 600; line-height: 1.2; }
.brand span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
nav.side a.nav { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; padding: 8px 12px; border-radius: 9px; border-left: 3px solid transparent; }
nav.side a.nav:hover { background: rgba(255,255,255,.06); }
nav.side a.nav.on { background: rgba(176,141,87,.14); border-left-color: var(--gold); color: #fff; }
nav.side .count { margin-left: auto; background: var(--gold); color: #1f1d1b; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; line-height: 18px; }
nav.side .who { margin-top: 6px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
nav.side .who small { color: var(--side-muted); display: block; }
nav.side .who a { color: var(--gold); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.content { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 28px 0; position: relative; }
main { padding: 8px 28px 40px; max-width: 1440px; }
.pagehead { display: flex; align-items: end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 6px 0 20px; }
.pagehead .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* cartões e blocos */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card > h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.stat .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.stat.red .ico { background: var(--danger-bg); color: var(--danger); } .stat.green .ico { background: var(--ok-bg); color: var(--ok); } .stat.blue .ico { background: var(--info-bg); color: var(--info); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.1; white-space: nowrap; } .stat span { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; line-height: 1.3; }
.stat > div:last-child { min-width: 0; } .stat .ico { flex: 0 0 38px; } a.stat:hover { border-color: var(--gold); }

/* pílulas / status */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 9px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.red { background: var(--danger-bg); color: var(--danger); border-color: transparent; } .pill.yellow { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill.green { background: var(--ok-bg); color: var(--ok); border-color: transparent; } .pill.blue { background: var(--info-bg); color: var(--info); border-color: transparent; } .pill.gold { background: var(--gold-soft); color: var(--gold-ink); border-color: transparent; }

/* listas */
.item { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 11px 6px; cursor: pointer; color: inherit; font: inherit; border-radius: 0; }
.item:first-of-type { border-top: 0; } .item:hover { background: var(--surface-2); }
.item b { font-weight: 600; } .item .meta { color: var(--muted); font-size: 13px; margin-top: 2px; display: flex; gap: 6px 12px; flex-wrap: wrap; }
.empty { color: var(--muted); font-size: 14px; padding: 10px 2px; display: flex; gap: 8px; align-items: center; }

/* controles */
button, select, input, textarea { font: inherit; color: inherit; }
.btn { display: inline-flex; align-items: center; gap: 7px; background: var(--gold); color: #1f1d1b; border: 0; border-radius: 9px; padding: 8px 15px; cursor: pointer; font-weight: 600; text-decoration: none; }
.btn:hover { filter: brightness(1.06); } .btn.dark { background: var(--side); color: #fff; } .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.btn.danger { background: var(--danger-bg); color: var(--danger); } .btn.ok { background: var(--ok-bg); color: var(--ok); } .btn.sm { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
input[type=checkbox] { width: auto; }
textarea { resize: vertical; }
label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.iconbtn { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.iconbtn .dot { position: absolute; top: -5px; right: -5px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; }
.bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 0 0 16px; } .bar > div { min-width: 170px; }
.err { background: var(--danger-bg); color: var(--danger); padding: 9px 12px; border-radius: 9px; margin: 10px 0; font-size: 14px; }
.hint { background: var(--gold-soft); color: var(--gold-ink); padding: 9px 12px; border-radius: 9px; margin: 10px 0; font-size: 13px; }

/* login */
.loginwrap { min-height: calc(100vh - 28px); display: grid; place-items: center; padding: 20px; background: radial-gradient(1000px 500px at 50% -10%, var(--gold-soft), transparent); }
.login { width: 100%; max-width: 400px; padding: 30px; }
.login .brand { padding: 0 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; } .login .brand b { color: var(--text); font-size: 22px; }
.login .demo { margin-top: 16px; font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 9px; padding: 10px; }

/* tabela */
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 11px 8px; border-top: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
tr.click { cursor: pointer; } tr.click:hover { background: var(--surface-2); }

/* kanban */
.board { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 260px; scroll-snap-align: start; }
.col h3 { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; text-transform: uppercase; font-family: var(--sans); font-size: 12px; letter-spacing: .05em; color: var(--muted); }
.col.over { outline: 2px dashed var(--gold); }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin-bottom: 9px; cursor: pointer; box-shadow: var(--shadow); border-left: 4px solid transparent; }
.tcard:hover { border-color: var(--gold); }
.tcard.late { border-left-color: var(--danger); } .tcard.blocked { border-left-color: var(--warn); }
.tcard .t { font-weight: 600; font-size: 14px; margin-bottom: 6px; } .tcard .m { font-size: 12px; color: var(--muted); margin-top: 6px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* tarefa (modal estilo Trello) */
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--text); padding: 0; width: calc(100% - 24px); max-width: 940px; max-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.narrow { max-width: 560px; }
dialog::backdrop { background: rgba(20,18,16,.55); }
.dlg { padding: 22px; }
.dlg-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 14px; }
.dlg-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.panel > h3 { margin-bottom: 8px; text-transform: uppercase; font-family: var(--sans); letter-spacing: .05em; font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 10px; } .row > * { flex: 1; min-width: 0; }
.comment { border-top: 1px solid var(--line); padding: 10px 0; font-size: 14px; } .comment:first-of-type { border-top: 0; }
.mention { background: var(--gold-soft); color: var(--gold-ink); border-radius: 5px; padding: 0 4px; font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .chip { cursor: pointer; }
.hist { font-size: 13px; border-left: 2px solid var(--line); padding-left: 10px; margin: 0 0 9px 4px; }
.linkrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); } .linkrow:first-of-type { border-top: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* notificações */
.notif { position: absolute; right: 28px; top: 56px; width: 360px; max-width: calc(100vw - 32px); z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.2); max-height: 70vh; overflow: auto; }
.notif .n { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 11px 14px; cursor: pointer; font-size: 14px; }
.notif .n.unread { background: var(--gold-soft); } .notif .n:first-child { border-top: 0; }

/* aprovações */
.appr { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 13px 4px; border-top: 1px solid var(--line); } .appr:first-of-type { border-top: 0; }
.appr .main { min-width: 220px; flex: 1; cursor: pointer; }

/* responsivo */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; padding-bottom: 66px; }
  nav.side { position: fixed; inset: auto 0 0 0; top: auto; height: auto; z-index: 55; flex-direction: row; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); gap: 0; }
  .brand, nav.side .who { display: none; }
  nav.side a.nav { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 4px; border-left: 0; border-top: 3px solid transparent; border-radius: 8px; flex: 1; align-items: center; position: relative; }
  nav.side a.nav.on { border-top-color: var(--gold); }
  nav.side .count { position: absolute; top: 0; right: 14%; margin: 0; }
  main { padding: 6px 16px 30px; } .topbar { padding: 10px 16px 0; } .notif { right: 16px; }
  h1 { font-size: 22px; }
  .dlg-grid { grid-template-columns: 1fr; } .dlg { padding: 16px; }
  .board { grid-template-columns: repeat(6, 82vw); }
  .logout-m { display: inline-flex !important; }
}
.logout-m { display: none; }
@media print { nav.side, .topbar, .demo-banner { display: none; } }

/* ===== telas completas (caso, financeiro, CRM, hoje, conteúdo, auditoria) ===== */
.trilha { list-style: none; display: flex; gap: 0; margin: 12px 0 14px; padding: 0; overflow-x: auto; }
.trilha li { flex: 1 0 auto; position: relative; padding: 0 2px; }
.trilha li button, .trilha li span { display: block; width: 100%; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); padding: 7px 14px; font-size: 12.5px; white-space: nowrap; cursor: default; text-align: center; border-radius: 0; }
.trilha li:first-child button, .trilha li:first-child span { border-radius: 9px 0 0 9px; } .trilha li:last-child button, .trilha li:last-child span { border-radius: 0 9px 9px 0; }
.trilha li button { cursor: pointer; } .trilha li button:hover { border-color: var(--gold); color: var(--text); }
.trilha li.feita button, .trilha li.feita span { background: var(--gold-soft); color: var(--gold-ink); }
.trilha li.atual button, .trilha li.atual span { background: var(--gold); color: #1f1d1b; font-weight: 700; border-color: var(--gold); }
.abas { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.aba { padding: 9px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 500; }
.aba:hover { color: var(--text); } .aba.on { color: var(--text); border-bottom-color: var(--gold); font-weight: 700; }
.kv { display: flex; gap: 10px; padding: 4px 0; font-size: 14px; } .kv span { color: var(--muted); min-width: 110px; } .kv.bloco { display: block; } .kv.bloco span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.kv2 { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; font-size: 14px; } .kv2 span { color: var(--muted); } .kv2 b { text-align: right; }
.linha { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; } .linha:first-of-type { border-top: 0; }
.linha .data { flex: none; width: 92px; color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .fm2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .fm2 > label.chk, .fm2 > label:has(+ textarea), .fm2 > textarea { grid-column: 1 / -1; }
label.chk { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--text); margin: 8px 0; cursor: pointer; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.acoes { white-space: nowrap; } .rolagem { overflow-x: auto; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--side); color: #fff; padding: 10px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: 90vw; font-size: 14px; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: linear-gradient(135deg, var(--side), #2c2823); color: #f4efe6; border-radius: 16px; padding: 22px 26px; margin-bottom: 16px; box-shadow: var(--shadow); }
.hero h2 { font-size: 24px; margin: 4px 0 4px; color: #fff; } .hero .muted { color: #b9b1a4; } .hero .eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.contagem { display: flex; gap: 10px; } .contagem div { text-align: center; background: rgba(255,255,255,.07); border: 1px solid rgba(176,141,87,.35); border-radius: 12px; padding: 10px 14px; min-width: 64px; }
.contagem b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; color: #fff; } .contagem span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.stat.gold .ico, .stat.gold { }
.barras { display: flex; align-items: end; gap: 14px; height: 120px; padding: 6px 4px 0; }
.col-b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; } .col-b .par { flex: 1; display: flex; align-items: end; gap: 4px; width: 100%; justify-content: center; }
.col-b i { display: block; width: 38%; max-width: 28px; background: var(--line); border-radius: 4px 4px 0 0; min-height: 2px; } .col-b i.rec { background: var(--gold); } .col-b span { font-size: 11px; color: var(--muted); }
.board.crm { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); } .board.semana { grid-template-columns: repeat(7, minmax(170px, 1fr)); }
.board.crm .col { min-height: 320px; }
.bar > label.chk { align-self: center; }
@media (max-width: 860px) {
  nav.side { overflow: hidden; justify-content: flex-start; } nav.side .navlist { flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 0; } .navgrp { display: none; } nav.side a.nav { flex: 0 0 auto; min-width: 76px; }
  .hero { grid-template-columns: 1fr; } .contagem { justify-content: space-between; } .row3 { grid-template-columns: 1fr; } .fm2 { grid-template-columns: 1fr; }
  .linha .data { width: 70px; } .board.semana { grid-template-columns: repeat(7, 78vw); } .board.crm { grid-auto-columns: 80vw; }
}

.demo-banner.real { background: var(--side); color: var(--gold); font-weight: 600; letter-spacing: .03em; font-size: 12px; }
.demo-banner.aviso { background: #8a5a00; color: #fff; }

html { color-scheme: light dark; } :root[data-theme="light"] { color-scheme: light; } :root[data-theme="dark"] { color-scheme: dark; }

/* ===== Social Seller e WhatsApp ===== */
.ativ { padding: 8px 0; border-top: 1px solid var(--line); } .ativ:first-of-type { border-top: 0; }
.ativ-t { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; } .prog { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.prog i { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .3s; } .prog i.ok { background: var(--ok); }
.panel.prio { border-left: 4px solid var(--danger); }
.conversa { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.bolha { max-width: 85%; padding: 8px 12px; border-radius: 12px; font-size: 14px; white-space: pre-wrap; } .bolha span { display: block; margin-top: 3px; }
.bolha.in { background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; } .bolha.out { background: var(--gold-soft); color: var(--text); align-self: flex-end; }

/* ===== Andamento dos processos ===== */
.tab-and td { vertical-align: top; } .tab-and .num { font-variant-numeric: tabular-nums; font-size: 13px; }
.tab-and tr.linha-critica { background: var(--danger-bg); } .tab-and .venc { color: var(--danger); font-weight: 600; }
.pend { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; margin-top: 4px; } .pend.crit { color: var(--danger); }
.stat[data-filtro] { cursor: pointer; text-decoration: none; }

/* aprovações em lista */
.lista-aprov td { vertical-align: middle; } .lista-aprov a.tl { color: inherit; text-decoration: none; } .lista-aprov a.tl:hover { text-decoration: underline; }
.lista-aprov tr.grp td { background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; }
.lista-aprov td.acoes { white-space: nowrap; text-align: right; }

/* menu lateral que fecha */
nav.side .recolher { position: absolute; top: 12px; right: 10px; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: var(--side-text); font-size: 18px; line-height: 1; cursor: pointer; z-index: 2; }
nav.side .recolher:hover { background: rgba(255,255,255,.14); }
.layout.recolhido { grid-template-columns: 64px 1fr; }
.layout.recolhido nav.side { padding-left: 8px; padding-right: 8px; }
.layout.recolhido nav.side .recolher { right: 19px; top: 8px; }
.layout.recolhido .brand, .layout.recolhido .navgrp, .layout.recolhido nav.side a.nav span:not(.count), .layout.recolhido .who { display: none; }
.layout.recolhido nav.side a.nav { justify-content: center; padding: 10px 0; border-left: 0; position: relative; }
.layout.recolhido nav.side .count { position: absolute; top: 2px; right: 4px; margin: 0; }
.layout.recolhido nav.side .navlist { margin-top: 30px; }
@media (max-width: 860px) { nav.side .recolher { display: none; } .layout.recolhido { grid-template-columns: 1fr; } }

/* prazos e tarefas: resumo clicável, lista agrupada, alternância lista/quadro */
.rchips { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.rchip { display: flex; align-items: baseline; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; cursor: pointer; color: var(--text); font: inherit; }
.rchip b { font-size: 20px; font-family: var(--serif); } .rchip b.red { color: var(--danger); } .rchip b.green { color: var(--ok); } .rchip b.gold { color: var(--gold-ink); } .rchip b.blue { color: var(--info); }
.rchip span { font-size: 13px; color: var(--muted); } .rchip:hover { border-color: var(--gold); } .rchip.on { border-color: var(--gold); background: var(--gold-soft); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; align-self: end; }
.seg button { background: transparent; border: 0; padding: 9px 14px; cursor: pointer; color: var(--muted); font: inherit; } .seg button.on { background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; }
table.tarefas tr[data-task] { cursor: pointer; border-left: 4px solid transparent; } table.tarefas tr[data-task]:hover, table.tarefas tr[data-task]:focus { background: var(--gold-soft); outline: 0; }
table.tarefas tr.pri-urgente { box-shadow: inset 4px 0 0 var(--danger); } table.tarefas tr.pri-alta { box-shadow: inset 4px 0 0 var(--gold); }
table.tarefas td.titulo { max-width: 420px; } table.tarefas td.prazos { white-space: nowrap; }
table.tarefas tr.grp td { background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; }

/* comercial: sub-abas, lista de leads, colunas vazias menores */
.subabas { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 14px; } .subabas a { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13px; } .subabas a.on { background: var(--gold-soft); color: var(--gold-ink); border-color: var(--gold); font-weight: 700; }
table.leads-lista tr[data-lead] { cursor: pointer; } table.leads-lista tr[data-lead]:hover, table.leads-lista tr[data-lead]:focus { background: var(--gold-soft); outline: 0; }
.board .col.vazia { min-width: 150px; flex: 0 0 150px; opacity: .65; }

/* assistente IA do caso */
.chat-u { background: var(--gold-soft); border-radius: 12px; padding: 10px 14px; margin: 12px 0 6px; } .chat-u div { white-space: pre-wrap; }
.chat-a { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 6px 0 14px; }
.chat-a .texto-ia { white-space: pre-wrap; line-height: 1.55; margin: 8px 0; } .aviso-ia { font-size: 12px; color: var(--warn); background: var(--warn-bg); padding: 5px 9px; border-radius: 8px; }
.chat-a .fontes { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; font-size: 13px; } .chat-a .fontes b { display: block; margin-bottom: 3px; }
.pre-ia { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 13px/1.5 var(--sans, system-ui); max-height: 260px; overflow: auto; }

/* mentoria */
.meta-barra { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: -6px 0 16px; } .meta-barra span { display: block; height: 100%; background: var(--gold); }
.canal-msg { padding: 6px 0; } .canal-msg + .canal-msg { border-top: 1px dashed var(--line); } .tab-canal td { vertical-align: top; } .tab-canal .pre-ia { max-height: none; margin-bottom: 6px; }

/* prontas para o seu OK */
.card.prontas { margin-bottom: 16px; border-color: var(--gold); }
.pronta { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); } .pronta:first-of-type { border-top: 0; }
.pronta-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); flex: 0 0 34px; }
.pronta-ic.red { background: var(--danger-bg); color: var(--danger); } .pronta-ic.blue { background: var(--info-bg); color: var(--info); }
.pronta-txt { flex: 1; min-width: 0; } .pronta-acoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
h2.secao { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; font-family: inherit; }
@media (max-width: 860px) { .pronta { flex-wrap: wrap; } .pronta-acoes { width: 100%; justify-content: flex-start; } }

/* busca geral */
.topbar .busca-global { position: relative; margin-right: auto; flex: 1; max-width: 560px; }
.topbar .busca-global input { width: 100%; border-radius: 12px; padding: 10px 14px; }
.busca-res { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); max-height: 60vh; overflow: auto; }
.busca-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line); padding: 9px 12px; color: var(--text); cursor: pointer; font: inherit; } .busca-item:first-child { border-top: 0; } .busca-item:hover { background: var(--gold-soft); }
@media (max-width: 860px) { .topbar .busca-global { max-width: none; } }

/* ---------- Conteúdo visual: banco de imagens, criador de artes, editor de vídeo ---------- */
.midia-grade { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.midia-grade.pequena { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: 60vh; overflow: auto; }
.midia-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; color: inherit; font: inherit; box-shadow: var(--shadow); }
.midia-item:hover { border-color: var(--gold); }
.midia-thumb { position: relative; aspect-ratio: 1; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.midia-thumb img, .midia-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.midia-tag { position: absolute; left: 6px; bottom: 6px; }
.midia-info { padding: 7px 9px; } .midia-info b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soltar { border: 2px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); margin-top: 10px; font-size: 14px; }
.soltar.over { border-color: var(--gold); background: var(--gold-soft); }
.arte-card { text-decoration: none; color: inherit; } .arte-card:hover { border-color: var(--gold); }
.editor-arte { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.ea-palco { position: sticky; top: 10px; }
.ea-moldura { max-height: 78vh; max-width: 100%; margin: 0 auto; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; }
.ea-moldura canvas { width: 100%; height: 100%; object-fit: contain; display: block; cursor: grab; touch-action: none; }
.ea-paginas { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; justify-content: center; }
.ea-pag { min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 600; }
.ea-pag.on { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-ink); }
.ea-lado textarea, .ea-lado input:not([type=checkbox]):not([type=color]), .ea-lado select { width: 100%; }
.ea-props2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.ea-props2 input[type=color] { width: 100%; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.ea-paleta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; } .ea-paleta button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; }
.video-par video { width: 100%; max-height: 62vh; border-radius: 8px; background: #000; display: block; }
.leg-lista { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.leg-linha { display: flex; gap: 6px; align-items: center; padding: 3px 0; } .leg-linha input { flex: 1; } .leg-linha .btn { font-variant-numeric: tabular-nums; min-width: 64px; justify-content: center; }
@media (max-width: 1100px) { .editor-arte { grid-template-columns: 1fr; } .ea-palco { position: static; } .ea-moldura { max-height: 70vh; } }
