:root {
  --navy: #002142;
  --navy-2: #0a2c52;
  --navy-3: #13365f;
  --steel: #335e8b;
  --steel-2: #4a78a8;
  --gold: #c79e4d;
  --gold-2: #b38a3a;
  --gold-soft: #f6ead2;
  --cream: #f4eee4;
  --bg: #f3f1ec;
  --surface: #ffffff;
  --surface-2: #f7f6f3;
  --line: #e4e0d8;
  --line-2: #d6d1c6;
  --text: #13233a;
  --muted: #66707e;
  --green: #2e8b57;
  --green-soft: #e3f2e9;
  --red: #b4483c;
  --red-soft: #f7e4e1;
  --amber-soft: #fbf1dc;
  --blue-soft: #e5edf6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 33, 66, .06), 0 2px 8px rgba(0, 33, 66, .05);
  --shadow-lg: 0 12px 40px rgba(0, 33, 66, .22);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Outfit', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--steel); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }
.hidden { display: none !important; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: auto minmax(0, 1fr); background: #00152a; }
/* foto do prédio da capa da apresentação: a borda direita (curva dourada + azul #00152a) se funde com o painel */
.login-photo { height: 100vh; overflow: hidden; max-width: 50vw; display: flex; justify-content: flex-end; }
.login-photo img { height: 100%; width: auto; max-width: none; display: block; object-fit: cover; object-position: right center; }
.login-panel { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 48px clamp(28px, 6vw, 96px); color: #fff;
  background: linear-gradient(135deg, #00152a 0%, #00152a 55%, #152f48 100%); }
.login-inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.login-inner .login-form { width: 100%; text-align: left; }
.brand-row { display: flex; align-items: center; gap: 12px; }
/* letreiro EGX (vetor oficial, proporção 2,7:1) — o tamanho é sempre definido pela altura */
img.egx-logo { display: block; width: auto; flex: none; }
.login-panel .brand-row .egx-logo { height: 50px; }
.login-panel h1 { font: 600 clamp(38px, 4.6vw, 64px)/1.06 var(--display); color: #fff; margin: 28px 0 36px; letter-spacing: -.01em; }
.login-form .field > span { color: #a9b6c8; }
.login-form .input { background: rgba(255, 255, 255, .96); border-color: transparent; padding: 11px 13px; }
.login-form .input:focus { box-shadow: 0 0 0 3px rgba(199, 158, 77, .45); border-color: var(--gold); }
.login-form .btn.gold { justify-content: center; padding: 12px; font-size: 15px; margin-top: 4px; }
.login-addr { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; color: #6f819a; }
/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 240px 1fr; height: 100vh; }
.sidebar { background: var(--navy); color: #c9d3e0; display: flex; flex-direction: column; min-height: 0; }
.sidebar .brand-row { padding: 24px 20px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.sidebar .brand-row .egx-logo { height: 32px; }
.sidebar .brand-row small { display: block; font: 500 10px var(--display); letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.nav { padding: 14px 10px; overflow-y: auto; flex: 1; }
.nav-label { font: 600 10px var(--display); letter-spacing: .18em; text-transform: uppercase; color: #7f8ea3; padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #c9d3e0; text-decoration: none; font-weight: 500; cursor: pointer; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: var(--navy-3); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a .count { margin-left: auto; font-size: 11px; color: #8fa0b6; }
.sidebar-foot { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .07); display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font: 600 12px var(--display); flex: none; }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.sidebar-foot .who { flex: 1; min-width: 0; }
.sidebar-foot .who b { display: block; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .who small { color: #8fa0b6; text-transform: capitalize; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 6px; cursor: pointer; color: inherit; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(127, 127, 127, .14); }
.icon-btn svg { width: 18px; height: 18px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 18px 28px 14px; background: var(--bg); flex-wrap: wrap; }
.topbar h1 { font-size: 24px; font-weight: 600; }
.topbar .crumb { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-family: var(--display); }
.topbar .spacer { flex: 1; }
.content { flex: 1; overflow: auto; padding: 4px 28px 28px; min-height: 0; }
.content.board-mode { padding-right: 0; overflow: hidden; display: flex; flex-direction: column; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; font-size: 13.5px; }
.btn:hover { border-color: var(--steel); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-3); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(0, 33, 66, .06); }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.field > span em { color: var(--red); font-style: normal; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 9px 11px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--steel); box-shadow: 0 0 0 3px rgba(51, 94, 139, .15); }
textarea.input { resize: vertical; min-height: 80px; }
.input.invalid { border-color: var(--red); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search .input { padding-left: 32px; width: 240px; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters select.input { width: auto; padding-right: 28px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ativo, .badge.assinada { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge.churn, .badge.cancelada, .badge.expirada, .badge.perdido { background: var(--red-soft); color: var(--red); border-color: transparent; }
.badge.projeto, .badge.enviada { background: var(--blue-soft); color: var(--steel); border-color: transparent; }
.badge.onboarding, .badge.visualizada { background: var(--amber-soft); color: #95702a; border-color: transparent; }
.badge.lead { background: #eef0f3; color: #4b5563; border-color: transparent; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 5px; background: var(--blue-soft); color: var(--steel); font-size: 11px; font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; gap: 10px; }
.card-h h3 { font-size: 15px; font-weight: 600; }
.card-b { padding: 12px 18px 18px; }
.muted { color: var(--muted); }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- board ---------- */
.pipe-tabs { display: flex; gap: 6px; margin-bottom: 14px; padding-right: 28px; flex-wrap: wrap; align-items: center; }
.pipe-tab { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.pipe-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pipe-summary { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.pipe-summary b { color: var(--text); }
.board { display: flex; gap: 12px; overflow-x: auto; flex: 1; min-height: 0; padding: 0 28px 16px 0; align-items: stretch; }
.col { flex: 0 0 286px; display: flex; flex-direction: column; background: #ebe8e1; border-radius: 12px; min-height: 0; border-top: 3px solid var(--c, var(--steel)); }
.col-h { padding: 11px 12px 9px; display: flex; flex-direction: column; gap: 2px; }
.col-h .t { display: flex; align-items: center; gap: 8px; font: 600 13.5px var(--display); }
.col-h .t .n { background: rgba(0, 33, 66, .08); color: var(--muted); border-radius: 999px; padding: 0 7px; font: 600 11px var(--font); }
.col-h .t .kind { margin-left: auto; font: 600 9.5px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.col-h .sum { color: var(--muted); font-size: 12px; }
.col-body { flex: 1; overflow-y: auto; padding: 4px 8px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.col-body.drop { background: rgba(199, 158, 77, .14); border-radius: 0 0 12px 12px; }
.col-add { margin: 0 8px 8px; padding: 7px; border: 1px dashed var(--line-2); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 12.5px; }
.col-add:hover { border-color: var(--steel); color: var(--steel); background: rgba(255, 255, 255, .5); }
.deal { background: var(--surface); border-radius: 9px; padding: 10px 11px; box-shadow: var(--shadow); cursor: grab; border: 1px solid transparent; display: flex; flex-direction: column; gap: 6px; }
.deal:hover { border-color: var(--line-2); }
.deal.dragging { opacity: .45; }
.deal .name { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.deal .val { font: 600 13px var(--display); color: var(--navy); }
.deal .val small { color: var(--muted); font-weight: 500; }
.deal .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.deal .foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.deal .owner { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.deal .owner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal .date { font-size: 11px; color: var(--muted); display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.deal .date svg { width: 12px; height: 12px; }
.deal .date.missing { color: var(--red); }

/* ---------- table ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font: 600 11px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 10px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; white-space: nowrap; cursor: default; }
table.t th.sortable { cursor: pointer; }
table.t th.sortable:hover { color: var(--text); }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #faf8f4; }
table.t td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.t input[type=date] { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 4px 6px; }
table.t input[type=date]:hover, table.t input[type=date]:focus { border-color: var(--line-2); background: #fff; }
.tbl-foot { padding: 10px 12px; color: var(--muted); font-size: 12.5px; }

/* ---------- drawer / modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 20, 40, .42); z-index: 40; display: flex; justify-content: flex-end; animation: fade .15s; }
.overlay.center { justify-content: center; align-items: flex-start; padding: 5vh 16px; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.drawer { width: min(620px, 100%); height: 100%; background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: .5; } }
.drawer-h { background: var(--navy); color: #fff; padding: 20px 22px 0; }
.drawer-h .row { display: flex; align-items: flex-start; gap: 12px; }
.drawer-h h2 { font-size: 22px; font-weight: 600; color: #f4eee4; }
.drawer-h .sub { color: #a9b6c8; font-size: 12.5px; margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.drawer-h .icon-btn { color: #c9d3e0; margin-left: auto; }
.tabs { display: flex; gap: 2px; margin-top: 16px; }
.tabs button { background: none; border: 0; color: #a9b6c8; padding: 10px 14px; cursor: pointer; font-weight: 600; border-bottom: 3px solid transparent; }
.tabs button.active { color: #fff; border-bottom-color: var(--gold); }
.drawer-b { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer-f { padding: 12px 22px; border-top: 1px solid var(--line); background: var(--surface); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.section-t { font: 600 11px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin: 18px 0 10px; display: flex; align-items: center; gap: 10px; }
.section-t::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.section-t:first-child { margin-top: 0; }
.closing-box { background: var(--gold-soft); border: 1px solid #ecd9b2; border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.closing-box .field { flex: 1; min-width: 160px; }
.closing-box .field > span { color: #8a6a2c; }
.stage-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-pill { border: 1px solid var(--line-2); background: var(--surface); padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted); }
.stage-pill.active { background: var(--c); border-color: var(--c); color: #fff; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 2px solid var(--steel); margin-top: 1px; }
.tl-dot.assinatura { border-color: var(--green); background: var(--green); }
.tl-dot.proposta { border-color: var(--gold); }
.tl-dot.nota { border-color: var(--navy); background: var(--navy); }
.tl-item p { margin: 0; }
.tl-item small { color: var(--muted); }
.prop-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 8px; flex-wrap: wrap; }
.prop-row .info { flex: 1; min-width: 180px; }
.prop-row .info b { display: block; }

.modal { width: min(980px, 100%); background: var(--bg); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .18s ease-out; }
.modal.sm { width: min(480px, 100%); }
@keyframes pop { from { transform: translateY(10px); opacity: .6; } }
.modal-h { background: var(--navy); color: #fff; padding: 18px 22px; display: flex; align-items: center; gap: 12px; }
.modal-h .egx-logo { height: 21px; opacity: .95; }
.modal-h h2 { font-size: 19px; font-weight: 600; color: #f4eee4; }
.modal-h .sub { color: #a9b6c8; font-size: 12.5px; }
.modal-h .icon-btn { margin-left: auto; color: #c9d3e0; }
.modal-b { padding: 20px 22px; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface); display: flex; gap: 8px; align-items: center; }
.modal-f .spacer { flex: 1; }
.steps { display: flex; gap: 0; background: var(--navy-2); padding: 0 22px; }
.steps div { flex: 1; padding: 11px 0; color: #7f8ea3; font-weight: 600; font-size: 12.5px; display: flex; align-items: center; gap: 8px; border-bottom: 3px solid transparent; }
.steps div b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; font-size: 11px; }
.steps div.active { color: #fff; border-bottom-color: var(--gold); }
.steps div.done { color: var(--gold); }

.seg-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.seg-tab { flex: 1; min-width: 160px; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 10px 14px; cursor: pointer; text-align: left; }
.seg-tab b { display: block; font-family: var(--display); font-size: 15px; }
.seg-tab small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; font-weight: 600; }
.seg-tab.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.seg-tab.active small { color: var(--gold); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.plan { border: 2px solid var(--line); background: var(--surface); border-radius: 12px; padding: 14px 16px; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.plan:hover { border-color: var(--steel-2); }
.plan.rec { background: #fbf3e1; }
.plan.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199, 158, 77, .25); }
.plan .tier { align-self: flex-start; border: 1px solid var(--gold); color: var(--navy); border-radius: 999px; padding: 1px 10px; font: 600 10.5px var(--display); letter-spacing: .14em; text-transform: uppercase; }
.plan .rec-flag { position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 700; color: var(--gold-2); text-transform: uppercase; letter-spacing: .08em; }
.plan h4 { font-size: 15px; font-weight: 600; color: var(--navy); }
.plan .price { font: 700 24px var(--display); color: var(--navy); }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan dl { margin: 4px 0 0; display: grid; grid-template-columns: 82px 1fr; gap: 4px 8px; font-size: 12px; }
.plan dt { color: var(--gold-2); font: 600 10px var(--display); letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.plan dd { margin: 0; white-space: pre-line; }
.summary { background: var(--navy); color: #fff; border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.summary .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #c9d3e0; }
.summary .row b { color: #fff; }
.summary .total { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 10px; margin-top: 4px; }
.summary .total b { font: 700 22px var(--display); color: var(--gold); }
.summary .ext { color: #a9b6c8; font-size: 12px; font-style: italic; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--navy); }
.linkbox { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 6px 6px 12px; align-items: center; }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--steel); }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 4px auto 14px; }
.success-icon svg { width: 32px; height: 32px; }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi.hero { background: var(--navy); border-color: var(--navy); color: #fff; }
.kpi.hero::after { content: ''; position: absolute; right: -18px; bottom: -14px; width: 170px; height: 52px; background: url(/egx-lockup.svg) center/contain no-repeat; opacity: .07; }
.kpi .l { font: 600 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kpi.hero .l { color: var(--gold); }
.kpi .v { font: 600 28px var(--display); margin-top: 6px; letter-spacing: -.02em; }
.kpi .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi.hero .s { color: #a9b6c8; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 18px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .bar { width: 100%; max-width: 34px; background: var(--steel); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars .bar.cur { background: var(--gold); }
.bars .bar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--text); }
.bars .lbl { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.hbar { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.hbar .track { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--steel); border-radius: 5px; }
.hbar .num { text-align: right; white-space: nowrap; min-width: 70px; font-variant-numeric: tabular-nums; color: var(--muted); }
.hbar .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- settings ---------- */
.set-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.stage-edit { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) 200px auto; gap: 8px; align-items: center; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px; }
.stage-edit .handle { cursor: grab; color: var(--muted); display: grid; place-items: center; }
.stage-edit input[type=color] { width: 34px; height: 30px; padding: 2px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; cursor: pointer; }
.stage-edit.drag-over { border-color: var(--gold); }
.help { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.help b { color: var(--text); }

/* ---------- whatsapp / contrato / metas ---------- */
.wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 26px; height: 26px; border-radius: 50%; background: #e7f6ec; color: #1f9d55; flex: none; text-decoration: none; vertical-align: middle; transition: background .15s; }
.wa-btn:hover { background: #1f9d55; color: #fff; }
.wa-btn svg { width: 15px; height: 15px; }
.wa-btn.wide { width: auto; border-radius: 999px; padding: 0 10px 0 8px; font-size: 12px; font-weight: 600; }
.contact-cell { display: flex; align-items: center; gap: 8px; }
.contact-cell span { min-width: 0; }
.contract { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.contract .part { display: flex; flex-direction: column; }
.contract .part small { font: 600 10.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contract .part b { font: 600 18px var(--display); color: var(--navy); }
.contract .part.total b { color: var(--gold-2); }
.contract .btn { margin-left: auto; }
.hist { margin-top: 8px; font-size: 12.5px; }
.hist-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; padding: 7px 2px; border-bottom: 1px dashed var(--line); align-items: center; }
.hist-row:last-child { border-bottom: 0; }
.hist-row .future { color: var(--gold-2); font-weight: 600; }
.sector-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.sector-dot.growth { background: var(--steel); }
.sector-dot.tech { background: var(--gold); }
.sector-toggle { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; }
.sector-toggle label { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); user-select: none; }
.sector-toggle input { accent-color: var(--navy); width: 15px; height: 15px; margin: 0; }
.sector-toggle label.on { background: var(--navy); color: #fff; }
.sector-toggle label.on input { accent-color: var(--gold); }
.bars .stack { width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; position: relative; min-height: 2px; }
.bars .stack div { width: 100%; }
.bars .stack .g { background: var(--steel); }
.bars .stack .t { background: var(--gold); }
.bars .b.cur .lbl { color: var(--text); font-weight: 700; }
.bars .val { font-size: 10.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.progress { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; min-width: 90px; }
.progress div { height: 100%; background: var(--steel); border-radius: 4px; }
.progress.hit div { background: var(--green); }
.progress.over div { background: var(--gold); }
.goal-input { width: 120px; text-align: right; padding: 6px 8px; }
.tier-row { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 8px; align-items: end; margin-bottom: 8px; }
.tier-chip { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--gold-soft); color: #8a6a2c; font-weight: 600; font-size: 12px; white-space: nowrap; }
.sub-list { background: var(--surface-2); }
.sub-list td { font-size: 12.5px; padding-top: 6px; padding-bottom: 6px; }

.proj-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.proj-top { display: flex; align-items: flex-start; gap: 8px; }
.proj-top > div:first-child { flex: 1; }
.proj-total { font: 600 17px var(--display); color: var(--navy); white-space: nowrap; }
.inst-list { display: flex; flex-wrap: wrap; gap: 5px; }
.inst { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--gold-soft); color: #6f5523; white-space: nowrap; }
.inst.past { background: var(--surface-2); color: var(--muted); }

.d4-row { flex-basis: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; }
.d4-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.d4-chip.finalizado, .d4-chip.cliente_assinou { background: var(--green-soft); color: var(--green); border-color: transparent; }
.d4-chip.aguardando, .d4-chip.enviando { background: var(--amber-soft); color: #95702a; border-color: transparent; }
.d4-chip.erro, .d4-chip.cancelado { background: var(--red-soft); color: var(--red); border-color: transparent; }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 9px; box-shadow: var(--shadow-lg); font-weight: 500; animation: pop .2s; border-left: 4px solid var(--gold); max-width: 90vw; }
.toast.err { border-left-color: #e0796d; }

/* ---------- responsive ---------- */
.menu-btn { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: grid; }
  .topbar { padding: 14px 16px 10px; }
  .content { padding: 4px 16px 20px; }
  .content.board-mode { padding-right: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .search .input { width: 100%; }
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-photo { height: 34vh; max-width: none; border-bottom: 4px solid var(--gold); }
  .login-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 30%; }
  .login-panel { justify-content: flex-start; padding: 28px 22px 64px; }
  .login-addr { padding: 0 16px; }
  .login-panel h1 { margin: 18px 0 24px; }
  .col { flex-basis: 260px; }
  .stage-edit { grid-template-columns: 22px 36px minmax(0, 1fr) auto; }
  .stage-edit select { grid-column: 3; }
  .hbar { grid-template-columns: 100px 1fr 64px; }
}

/* ---------- negociações esfriando ---------- */
.deal.cool-esfriando { border-left: 3px solid #D9A441; }
.deal.cool-frio { border-left: 3px solid #5B8DC9; background: #F4F8FD; }
.cool-chip { align-self: flex-start; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.cool-chip.esfriando { background: #FBF1DC; color: #95702A; }
.cool-chip.frio { background: #E3EDF9; color: #2F5E96; }
.cool-count { color: #95702A; font-weight: 600; }
.cool-toggle { margin-left: 8px; font-size: 13px; }
.stage-edit { grid-template-columns: 22px 36px minmax(0, 1fr) 150px 200px auto; }
.cool-days { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.cool-days .input { width: 62px; padding: 6px 8px; }

/* ---------- ficha: registro rápido ---------- */
.quick-log { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: 12px; color: #a9b6c8; }
.quick-log .ql { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; border-radius: 999px; padding: 4px 11px; font-weight: 600; font-size: 12px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.quick-log .ql:hover { background: rgba(255, 255, 255, .16); }
.quick-log .ql.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.quick-log .ql svg { width: 13px; height: 13px; }

/* ---------- anDRE ---------- */
.andre-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.andre-plan { border: 2px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; background: var(--surface); }
.andre-plan:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199, 158, 77, .2); }
.andre-plan input { display: none; }
.andre-plan .price { font: 700 18px var(--display); color: var(--navy); }
.andre-plan .price small { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- agenda ---------- */
.banner-info { background: var(--blue-soft); color: var(--steel); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.ag-day { margin-bottom: 14px; }
.ag-date { font: 600 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; }
.ag-date.today { color: var(--navy); }
.ag-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px; background: var(--surface); }
.ag-item.crm { border-left: 3px solid var(--gold); }
.ag-time { font: 600 13px var(--display); color: var(--navy); line-height: 1.2; }
.ag-time small { color: var(--muted); font-weight: 500; }
.ag-act { display: flex; gap: 4px; align-items: center; }

/* ---------- pace ---------- */
.pace-cell { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.pace-chip { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.pace-chip.ok { background: var(--green-soft); color: var(--green); }
.pace-chip.mid { background: var(--amber-soft); color: #95702a; }
.pace-chip.low { background: var(--red-soft); color: var(--red); }

/* ---------- materiais ---------- */
.mat-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.mat-cat { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--text); }
.mat-cat span { color: var(--muted); font-size: 11px; margin-left: 2px; }
.mat-cat.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.mat-cat.active span { color: var(--gold); }
.mat-cat.drop { border-color: var(--gold); background: var(--gold-soft); transform: scale(1.05); }
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); cursor: grab; }
.mat-card:active { cursor: grabbing; }
.mat-thumb { height: 120px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.mat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mat-ext { color: #fff; font: 700 15px var(--display); padding: 10px 14px; border-radius: 8px; letter-spacing: .05em; }
.mat-info { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mat-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mat-act { display: flex; gap: 4px; align-items: center; padding: 8px 10px 10px; flex-wrap: wrap; }
.mat-act .btn svg { width: 14px; height: 14px; }
.mat-drop { border: 2px dashed var(--line-2); border-radius: 14px; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: var(--surface); }
.mat-drop svg { width: 36px; height: 36px; color: var(--steel); }
.content.file-over { outline: 3px dashed var(--gold); outline-offset: -10px; background: rgba(199, 158, 77, .06); }
.mat-up { display: grid; grid-template-columns: minmax(0, 1fr) 160px 70px; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; }
@media (max-width: 900px) { .andre-plans { grid-template-columns: 1fr; } .stage-edit { grid-template-columns: 22px 36px minmax(0, 1fr) auto; } }
.sector-dot.permuta { background: #7A5BA6; }
.bars .stack .x { background: #7A5BA6; }

/* ---------- temperatura, follow-up, tarefas e perda no card ---------- */
.deal-top { display: flex; align-items: center; gap: 5px; min-height: 18px; }
.deal-top .lose-btn { margin-left: auto; opacity: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0 3px; border-radius: 4px; }
.deal:hover .lose-btn { opacity: 1; }
.deal-top .lose-btn:hover { color: var(--red); background: var(--red-soft); }
button.cool-chip { border: 0; cursor: pointer; font-family: inherit; }
.cool-chip.quente { background: #FDE4D8; color: #B4431D; }
.cool-chip.esquentando { background: #FBF0D6; color: #A86A12; }
.cool-chip.neutro { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); opacity: 0; }
.deal:hover .cool-chip.neutro { opacity: 1; }
.deal.temp-quente { border-left: 3px solid #E0662F; }
.deal.temp-esquentando { border-left: 3px solid #E0A33A; }
.deal.temp-esfriando { border-left: 3px solid #8FB3DA; }
.deal.temp-frio { border-left: 3px solid #5B8DC9; background: #F4F8FD; }
.task-chip { position: relative; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #FFF1C2; color: #8A5A00; cursor: help; white-space: nowrap; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: max-content; max-width: 240px; white-space: normal;
  background: var(--navy); color: #fff; font-weight: 500; font-size: 12px; line-height: 1.35; padding: 7px 9px; border-radius: 7px; box-shadow: var(--shadow-lg); }
.fu-check { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; cursor: pointer; }
.fu-check input { accent-color: var(--green); width: 14px; height: 14px; margin: 0; }
.fu-check small { font-weight: 500; }
.lost-reason { font-size: 11.5px; color: var(--red); background: var(--red-soft); border-radius: 6px; padding: 3px 7px; }
.pop-menu { position: fixed; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px; width: 210px; display: flex; flex-direction: column; gap: 2px; }
.pop-menu b { font-size: 12px; padding: 2px 6px 4px; }
.pop-menu button { text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 13px; }
.pop-menu button:hover, .pop-menu button.on { background: var(--surface-2); }
.pop-menu small { color: var(--muted); font-size: 11px; padding: 4px 6px 0; }
.lost-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lost-opt { border: 1.5px solid var(--line-2); border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; background: var(--surface); }
.lost-opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.lost-opt input { accent-color: var(--red); margin: 0; }

/* ---------- ficha: responsável, temperatura, tarefas ---------- */
.deal-ctrl { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.deal-ctrl label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.deal-ctrl .input { padding: 5px 8px; font-size: 13px; width: auto; }
.task-form { display: grid; grid-template-columns: minmax(0, 1fr) 130px 95px 130px auto; gap: 6px; margin-top: 8px; }
.task-form .input { padding: 6px 8px; font-size: 13px; }
.task-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 2px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.task-row small { color: var(--muted); white-space: nowrap; }
.task-row.today small { color: #8A5A00; font-weight: 700; }
.task-row.late small { color: var(--red); font-weight: 700; }
.task-row.done span { text-decoration: line-through; color: var(--muted); }

/* ---------- sininho ---------- */
.bell { position: relative; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.bell svg { width: 19px; height: 19px; }
.bell:hover { border-color: var(--steel); }
.bell-n { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font: 700 10.5px var(--font); min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); }
.bell-panel { position: fixed; top: 64px; right: 24px; z-index: 55; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.bp-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.bp-sec { font: 600 10.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); padding: 10px 14px 4px; }
.bp-item { display: flex; gap: 10px; padding: 8px 14px; text-decoration: none; color: var(--text); font-size: 13px; cursor: pointer; align-items: flex-start; }
.bp-item:hover { background: var(--surface-2); }
.bp-item span { display: flex; flex-direction: column; gap: 1px; }
.bp-item small { color: var(--muted); }
.bp-item.unread { background: #F5F8FC; }
.bp-item.unread span::before { content: ''; }
.bp-item.late small { color: var(--red); font-weight: 600; }

/* ---------- comemoração ---------- */
.celebrate { position: fixed; inset: 0; z-index: 90; background: rgba(0, 21, 42, .55); display: grid; place-items: center; animation: fade .2s; }
.celebrate canvas { position: absolute; inset: 0; pointer-events: none; }
.celebrate-card { position: relative; background: var(--navy); color: #fff; border-radius: 18px; padding: 28px 30px 24px; width: min(420px, calc(100vw - 32px)); text-align: center; box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.cel-emoji { font-size: 44px; line-height: 1; }
.celebrate-card h2 { color: #fff; font-size: 26px; margin: 8px 0 4px; }
.celebrate-card p { color: #C9D3E0; margin: 0 0 16px; }
.cel-meta { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; text-align: left; }
.cel-l { font: 600 11px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.cel-bar { position: relative; height: 12px; background: rgba(255, 255, 255, .12); border-radius: 6px; overflow: hidden; }
.cel-prev, .cel-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.cel-prev { background: rgba(199, 158, 77, .35); }
.cel-fill { background: linear-gradient(90deg, #C79E4D, #E8C77E); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.cel-n { display: flex; justify-content: space-between; margin-top: 7px; font-size: 13px; color: #C9D3E0; }
.cel-n b { color: var(--gold); font: 700 18px var(--display); }

/* ---------- metas mês a mês ---------- */
.goal-card { margin-bottom: 14px; overflow: hidden; }
.goal-t th, .goal-t td { text-align: center; padding: 7px 6px; }
.goal-t th:first-child, .goal-t td:first-child { text-align: left; white-space: nowrap; }
.goal-t th.cur { color: var(--navy); background: var(--gold-soft); }
.gcell { font-size: 11.5px; min-width: 64px; white-space: nowrap; }
.gcell.future { opacity: .6; }
.g-meta { color: var(--muted); border-radius: 5px; padding: 1px 3px; }
.g-meta.editable { cursor: pointer; border: 1px dashed transparent; }
.g-meta.editable:hover { border-color: var(--gold); color: var(--text); }
.g-real { font-weight: 600; color: var(--navy); }
.sector-dot.andre { background: #2E8B57; }

/* ---------- faturamento (planilha EGX | Clientes) ---------- */
.bill-wrap { max-height: calc(100vh - 220px); border-radius: 8px; }
.bill-t { font-size: 12.5px; border-collapse: separate; border-spacing: 0; }
.bill-t th, .bill-t td { padding: 6px 9px; white-space: nowrap; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bill-t thead th { position: sticky; top: 0; z-index: 3; background: #E7F3EA; color: var(--text); font: 700 12px var(--font); text-transform: none; letter-spacing: 0; }
.bill-t thead th.cur { background: #D7EBDD; }
.bill-t .bill-top td { position: sticky; top: 31px; z-index: 3; background: #F4F4F2; font-weight: 700; border-bottom: 2px solid #B9BDB7; }
.bill-t .bill-top td.cur { background: var(--gold-soft); }
.bill-t .sticky { position: sticky; left: 0; z-index: 2; background: var(--surface); min-width: 200px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; box-shadow: 1px 0 0 var(--line-2); }
.bill-t thead .sticky, .bill-t .bill-top .sticky { z-index: 4; }
.bill-t .c3, .bill-t .c4, .bill-t .c5 { max-width: 150px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.bill-t td.num { min-width: 104px; }
.bill-t td.zero { background: #C9C9C9; color: #6E6E6E; text-align: center; }
.bill-t td.future { color: var(--muted); }
.bill-t .tc { background: #FAFAF8; font-weight: 700; position: sticky; right: 0; z-index: 2; box-shadow: -1px 0 0 var(--line-2); }
.bill-t thead .tc, .bill-t .bill-top .tc { z-index: 4; background: #E7F3EA; }
.bill-t .bill-top .tc { background: #F4F4F2; }
.bill-t tbody tr:hover td { background: #FBF8F1; }
.bill-t tbody tr:hover td.zero { background: #BDBDBD; }
.st-pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--muted); }
.st-pill.ativo { background: #2E7D4F; } .st-pill.churn { background: #B3261E; } .st-pill.projeto { background: #E8891B; } .st-pill.onboarding { background: #C79E4D; } .st-pill.lead { background: #7A8594; }
@media (max-width: 900px) { .task-form { grid-template-columns: 1fr 1fr; } .lost-reasons { grid-template-columns: 1fr; } .bell-panel { right: 16px; } }
/* sininho fixo no canto superior direito do topo */
.topbar { position: relative; padding-right: 84px; }
.topbar .bell { position: absolute; right: 28px; top: 18px; }
@media (max-width: 900px) { .topbar { padding-right: 64px; } .topbar .bell { right: 16px; top: 14px; } }

/* ---------- modo privacidade (botão de olho no topo / Shift + B) ---------- */
.priv-btn { position: absolute; right: 74px; top: 18px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.priv-btn svg { width: 19px; height: 19px; }
.priv-btn:hover { border-color: var(--steel); }
.priv-btn.on { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.topbar { padding-right: 130px; }
body.privacy :is(
  .kpi .v, .kpi .s, .bars .val, .bars .bar span, .people .hbar .name, .hbar .num,
  .t tbody td, .t tfoot td, .bill-t .bill-top td, .tbl-foot, .pipe-summary, .col-h .sum,
  .deal .name, .deal .val, .deal .owner span, .deal .lost-reason, .deal .fu-check small,
  .sidebar-foot .who b, .drawer-h h2, .drawer-h .sub, .contract .part b, .proj-total, .hist-row span,
  .g-meta, .g-real, .goal-card .card-h .muted, .cel-n, .celebrate-card p,
  .ag-body, .mat-info b, .prop-row .info, .pace-cell, .pace-cell + .progress + small,
  .bp-item span, .linkbox code, .summary .row b
) { filter: blur(7px); user-select: none; }
body.privacy :is(.kpi .v, .t tbody td, .deal .name) { transition: filter .15s; }
@media (max-width: 900px) { .priv-btn { right: 60px; top: 14px; } .topbar { padding-right: 110px; } }

.mode-pick { display: grid; gap: 6px; }
.mode-pick .lost-opt { align-items: flex-start; }
.mode-pick .lost-opt span { display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.mode-pick .lost-opt small { color: var(--muted); font-weight: 400; }
.mode-pick .lost-opt:has(input:checked) { border-color: var(--navy); background: var(--blue-soft); color: var(--text); }
.mode-pick .lost-opt input { accent-color: var(--navy); margin-top: 3px; }

.cal-embed { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.cal-embed iframe { width: 100%; height: 620px; border: 0; display: block; }
@media (max-width: 900px) { .cal-embed iframe { height: 480px; } }
