/* ARCA — estilos compartilhados.
   Sem framework/build step de propósito: o backend serve isso direto como
   arquivo estático (ver src/app.js), então o único requisito pra editar é
   salvar o arquivo — nada de compilar nada. */

/* Fontes da marca, servidas pelo próprio ARCA. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/cinzel-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/cinzel-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }

:root {
  /* Paleta oficial ARCA (Brand Book v1.0, 27/11/2026). */
  --bg: #071522;
  --bg-soft: #0a1b2b;
  --surface: #0D2233;
  --surface-hover: #12304a;
  --border: #1d3448;
  --text: #F2EBDD;
  --text-dim: #B7B3AA;
  --text-faint: #858a8c;
  --brand: #C9A45C;
  --brand-hover: #E0C486;
  --brand-contrast: #071522;
  --success: #22c55e;
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --caps: 'Cinzel', 'Cormorant Garamond', serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Telas públicas (login/signup) centralizadas ---------- */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.auth-card.wide {
  max-width: 520px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark .logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #E0C486);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #071522;
  font-size: 15px;
}

.brand-mark .name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
}

h1.page-title {
  font-size: 20px;
  margin: 0 0 4px;
}

p.page-subtitle {
  color: var(--text-dim);
  margin: 0 0 24px;
  font-size: 13.5px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea,
.tia-ask input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus,
.tia-ask input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--brand);
  color: var(--brand-contrast);
  border: none;
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  background: var(--brand-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.secondary:hover {
  background: var(--surface-hover);
}

.btn.small {
  width: auto;
  padding: 7px 12px;
  font-size: 13px;
}

.btn.danger {
  background: var(--danger);
}

.form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}

.alert {
  background: var(--danger-bg);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: none;
}

.alert.visible {
  display: block;
}

.alert.ok {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.hint {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ---------- Shell do app (pós-login) ---------- */

.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
}

.sidebar .brand-mark {
  padding: 0 6px;
  margin-bottom: 24px;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 0 10px;
  margin-bottom: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.nav-link:hover {
  background: var(--surface-hover);
  color: var(--text);
  text-decoration: none;
}

.nav-link.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.nav-link .icon {
  width: 18px;
  text-align: center;
  opacity: 0.85;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  margin-bottom: 8px;
}

.user-chip .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-chip .meta {
  overflow: hidden;
}

.user-chip .meta .name {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip .meta .role {
  font-size: 11.5px;
  color: var(--text-faint);
}

.main {
  padding: 28px 36px;
  overflow-y: auto;
}

.main-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.main-header h1 {
  font-size: 22px;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
}

.card h2 {
  font-size: 15px;
  margin: 0 0 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-hover);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.badge.trial { color: #fbbf24; border-color: rgba(251, 191, 36, 0.35); }
.badge.active { color: #86efac; border-color: rgba(134, 239, 172, 0.35); }

.grid-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.stat .label {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.stat .value {
  font-size: 26px;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}

.empty-state .icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.placeholder-note {
  font-size: 13px;
  color: var(--text-faint);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 10px;
}

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.banner.blocked {
  background: var(--danger-bg);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.banner a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.nav-link.locked {
  opacity: 0.45;
}

.status-line {
  font-size: 15px;
  margin: 0 0 6px;
}

.muted {
  color: var(--text-dim);
  font-size: 13.5px;
}

.actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

a.btn {
  text-decoration: none;
}

/* Cobrança: aviso claro antes de cadastrar o cartão, oferta anual. */
.notice {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
}
.notice p {
  margin: 6px 0;
}
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  max-width: 640px;
}
.check-line input {
  margin-top: 3px;
}
.card.offer {
  border-color: rgba(201, 164, 92, 0.55);
  background: linear-gradient(180deg, rgba(201, 164, 92, 0.10), var(--surface) 70%);
}
.offer-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #E0C486;
  background: rgba(201, 164, 92, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.inline-select {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 7px 10px;
  font-size: 13px;
}
.pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* Botão ☰ e fundo escuro: só aparecem no celular. */
.menu-btn { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    max-width: 82vw;
    z-index: 40;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    position: fixed; inset: 0; z-index: 39; background: rgba(5, 6, 10, 0.6);
  }
  .sidebar-backdrop.open { display: block; }
  body.menu-open { overflow: hidden; }
  .nav-link { padding: 11px 10px; font-size: 15px; }
  .main {
    padding: 0 14px 24px;
    min-width: 0;
  }
  .main-header {
    position: sticky; top: 0; z-index: 30; background: var(--bg);
    margin: 0 -14px 14px; padding: 10px 14px; border-bottom: 1px solid var(--border);
    align-items: center; flex-wrap: nowrap; gap: 10px;
  }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font-size: 20px; cursor: pointer; font-family: inherit;
  }
  .main-header h1 { font-size: 18px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .main-header .badge { max-width: 42%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
  .card { padding: 16px; }
  #section-dashboard .grid-cols { grid-template-columns: 1fr 1fr; gap: 10px; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-width: 100% !important; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 18px 16px; max-height: 92vh; overflow-y: auto; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Leads & Pipeline (Kanban) ---------- */
.badges-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stat.clickable { cursor: pointer; }
.stat.clickable:hover { border-color: var(--brand); }
.stat .value.warn { color: #fbbf24; }

.funnel-row { display: grid; grid-template-columns: 180px 1fr 40px; align-items: center; gap: 12px; margin: 8px 0; font-size: 13.5px; }
.funnel-name { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel-bar { background: var(--bg-soft); border-radius: 999px; height: 10px; overflow: hidden; }
.funnel-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; min-width: 2px; }
.funnel-bar span.won { background: var(--success); }
.funnel-bar span.lost { background: #858a8c; }
.funnel-count { text-align: right; font-weight: 600; }

.leads-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.leads-toolbar input[type="search"], .leads-toolbar select {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: 7px 10px; font-size: 13px; font-family: inherit;
}
.leads-toolbar input[type="search"] { min-width: 240px; }
.inline-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.toolbar-spacer { flex: 1; }

.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kanban-col {
  flex: 0 0 260px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 10px; max-height: calc(100vh - 230px); display: flex; flex-direction: column;
}
.kanban-col.won { border-top: 3px solid var(--success); }
.kanban-col.lost { border-top: 3px solid #858a8c; }
.kanban-col.drop { border-color: var(--brand); background: rgba(201, 164, 92, 0.08); }
.kanban-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13.5px; padding: 2px 4px 8px; }
.kanban-count { font-size: 12px; color: var(--text-dim); background: var(--surface); border-radius: 999px; padding: 1px 8px; }
.kanban-total { font-size: 12px; color: var(--text-dim); padding: 0 4px 8px; }
.kanban-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.kanban-empty { font-size: 12px; color: var(--text-faint); text-align: center; padding: 14px 4px; border: 1px dashed var(--border); border-radius: var(--radius); }
.lead-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 11px; cursor: pointer; font-size: 13px;
}
.lead-card:hover { border-color: #3a4152; }
.lead-card.dragging { opacity: 0.5; }
.lead-name { font-weight: 600; margin-bottom: 6px; }
.lead-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.lead-meta .src { font-size: 11.5px; color: var(--text-faint); }
.lead-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); }
.lead-foot .who {
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-contrast);
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.stale { color: #fbbf24; font-weight: 600; }
.lvl { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); }
.lvl-frio { color: #93c5fd; border-color: rgba(147, 197, 253, 0.35); }
.lvl-em_avaliacao { color: #fcd34d; border-color: rgba(252, 211, 77, 0.35); }
.lvl-qualificado { color: #86efac; border-color: rgba(134, 239, 172, 0.35); }
.lvl-pronto { color: #f0abfc; border-color: rgba(240, 171, 252, 0.45); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(5, 6, 10, 0.65); z-index: 50;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.modal {
  width: 100%; max-width: 680px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { font-size: 18px; margin: 0; }
h3.sub { font-size: 14px; margin: 22px 0 10px; }
details.answers { margin: 6px 0 4px; }
details.answers summary { cursor: pointer; font-size: 13.5px; color: var(--text-dim); margin-bottom: 10px; }
.timeline { display: flex; flex-direction: column; gap: 2px; }
.tl-item { display: grid; grid-template-columns: 100px 1fr; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.tl-type { color: var(--text-dim); font-size: 12px; grid-row: span 2; }
.tl-when { color: var(--text-faint); font-size: 11.5px; }
.btn.danger-text { color: #fca5a5; }

#section-dashboard .grid-cols { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* ---------- WhatsApp + IA ---------- */
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--brand); color: var(--brand-contrast); font-size: 11px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.nav-badge.urgent { background: var(--danger); }
.wa-tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.wa-tab {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: var(--radius); padding: 7px 14px; font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.wa-tab.active { color: var(--text); border-color: var(--brand); background: rgba(201, 164, 92, 0.12); }
.wa-conn { font-size: 12.5px; }
.wa-conn.on { color: #86efac; }
.wa-conn.off { color: var(--text-faint); }
.wa-layout { display: grid; grid-template-columns: 330px 1fr; gap: 14px; margin-top: 12px; }
.wa-list-col, .wa-chat-col {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  height: calc(100vh - 210px); min-height: 460px; display: flex; flex-direction: column; overflow: hidden;
}
.wa-list-tools { padding: 10px; border-bottom: 1px solid var(--border); }
.wa-list-tools input[type="search"] {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: 7px 10px; font-size: 13px; font-family: inherit; box-sizing: border-box;
}
.wa-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chip {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.chip.active { color: var(--text); border-color: var(--brand); }
.wa-list { overflow-y: auto; flex: 1; }
.wa-item { padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.wa-item:hover { background: var(--surface-hover); }
.wa-item.active { background: rgba(201, 164, 92, 0.12); }
.wa-item.urgent { border-left: 3px solid var(--danger); }
.wa-item-top { display: flex; justify-content: space-between; gap: 8px; }
.wa-item-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-item-time { font-size: 11.5px; color: var(--text-faint); flex-shrink: 0; }
.wa-item-preview { font-size: 12.5px; color: var(--text-dim); margin: 3px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-item-flags { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.flag { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); }
.flag.urgent { color: #fff; background: var(--danger); border-color: var(--danger); }
.flag.human { color: #fcd34d; border-color: rgba(252, 211, 77, 0.4); }
.flag.ai { color: #E0C486; border-color: rgba(165, 180, 252, 0.4); }
.flag.muted { color: var(--text-faint); }
.wa-unread {
  margin-left: auto; background: var(--success); color: #062b12; font-size: 11px; font-weight: 700;
  border-radius: 999px; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.wa-empty { color: var(--text-faint); font-size: 13px; padding: 18px; text-align: center; }
.wa-empty.big { margin: auto; }
.wa-chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.wa-chat-name { font-weight: 700; font-size: 15px; }
.wa-chat-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.wa-chat-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wa-ai-state { font-size: 12px; padding: 6px 14px; border-bottom: 1px solid var(--border); }
.wa-ai-state.on { color: #E0C486; }
.wa-ai-state.off { color: var(--text-faint); }
.wa-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 14px; font-size: 13px; background: rgba(252, 211, 77, 0.1); border-bottom: 1px solid rgba(252, 211, 77, 0.3);
}
.wa-banner.urgent { background: var(--danger-bg); border-bottom-color: rgba(239, 68, 68, 0.45); color: #fecaca; }
.wa-summary { padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); }
.wa-summary summary { cursor: pointer; }
.wa-summary div { margin-top: 6px; }
.wa-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-soft); }
.wa-msgs.test { height: 340px; flex: none; border-radius: var(--radius); border: 1px solid var(--border); margin: 12px 0; }
.wa-msg { max-width: 75%; padding: 8px 11px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; }
.wa-msg.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.wa-msg.out { align-self: flex-end; background: rgba(201, 164, 92, 0.22); border: 1px solid rgba(201, 164, 92, 0.35); border-bottom-right-radius: 4px; }
.wa-msg.out.ai { background: rgba(34, 197, 94, 0.13); border-color: rgba(34, 197, 94, 0.3); }
.wa-msg.out.system { background: rgba(252, 211, 77, 0.1); border-color: rgba(252, 211, 77, 0.3); }
.wa-msg.held { opacity: 0.75; border-style: dashed; }
.wa-who { font-size: 11px; font-weight: 700; color: var(--text-dim); margin-bottom: 3px; }
.wa-kind { font-size: 11.5px; font-style: italic; color: var(--text-dim); }
.wa-text { white-space: pre-wrap; word-wrap: break-word; }
.wa-meta { font-size: 10.5px; color: var(--text-faint); text-align: right; margin-top: 3px; }
.wa-status.read { color: #60a5fa; }
.wa-status.failed { color: var(--danger); font-weight: 700; }
.wa-error { font-size: 12px; color: #fca5a5; margin-top: 4px; }
.link-btn { background: none; border: none; color: #E0C486; text-decoration: underline; cursor: pointer; font-size: 12px; padding: 0; font-family: inherit; }
.wa-suggest { padding: 10px 14px; border-top: 1px solid var(--border); background: rgba(165, 180, 252, 0.07); font-size: 13px; }
.wa-suggest-head { font-weight: 700; font-size: 12px; color: #E0C486; margin-bottom: 4px; }
.wa-suggest-head span { font-weight: 400; color: var(--text-faint); }
.wa-suggest .btn { margin-top: 8px; }
.wa-compose-row { display: flex; gap: 8px; padding: 10px 14px 4px; align-items: flex-end; }
.card .wa-compose-row { padding: 0; }
.wa-compose-row .btn { width: auto; flex: 0 0 auto; }
.wa-compose-row textarea {
  flex: 1; min-width: 0; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: 8px 10px; font-size: 13.5px; font-family: inherit; resize: vertical; min-height: 42px;
}
.wa-chat-col .hint { padding: 0 14px 10px; }
.wa-chat-col .notice { margin: 10px 14px; font-size: 13px; }
.wa-connect-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.wa-connect-grid > div > .card + .card { margin-top: 14px; }
.wa-acc { display: flex; flex-direction: column; gap: 6px; font-size: 14px; margin-bottom: 12px; }
.wa-toggles { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.wa-toggles .hint { margin: 0 0 8px 24px; }
.wa-steps { padding-left: 18px; font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }
.wa-support { margin-top: 14px; font-size: 13px; }
.wa-support summary { cursor: pointer; color: var(--text-dim); }
.wa-code { display: block; margin-top: 6px; padding: 8px 10px; background: var(--bg-soft); border-radius: var(--radius); font-size: 12px; word-break: break-all; }
.wa-dec-row { font-size: 13.5px; margin-bottom: 10px; line-height: 1.5; }
.wa-dec-row ul { margin: 4px 0 0; padding-left: 18px; }
.ok-text { color: #86efac; }
.err-text { color: #fca5a5; }
@media (max-width: 900px) {
  .wa-layout, .wa-connect-grid { grid-template-columns: 1fr; }
  .wa-list-col { height: 300px; min-height: 0; }
}
.wa-tpl { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; font-size: 13.5px; }
.wa-tpl-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.wa-tpl-head .link-btn { margin-left: auto; }
.wa-tpl-status { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); }
.wa-tpl-status.ok { color: #86efac; border-color: rgba(134, 239, 172, 0.4); }
.wa-tpl-status.wait { color: #fcd34d; border-color: rgba(252, 211, 77, 0.4); }
.wa-tpl-status.bad { color: #fca5a5; border-color: rgba(252, 165, 165, 0.4); }
.wa-tpl-preview { margin: 8px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.wa-tpl-preview .wa-msg { max-width: 100%; align-self: flex-start; }

/* Contatos pessoais e modo de resposta da IA */
.flag.personal { background: rgba(236, 72, 153, 0.14); color: #f472b6; }
.flag.ad { background: rgba(59, 130, 246, 0.14); color: #60a5fa; }
.wa-ai-state.personal { color: #f472b6; }
.wa-banner.personal { border-color: rgba(236, 72, 153, 0.45); background: rgba(236, 72, 153, 0.08); flex-wrap: wrap; gap: 10px; }
.wa-mode { margin: 12px 0 14px; padding: 12px; border: 1px solid var(--border, #1d3448); border-radius: 10px; }
.wa-mode-title { font-weight: 600; margin-bottom: 8px; }
.wa-mode-opt { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.wa-mode-opt input { margin-top: 4px; }
.wa-personal-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.wa-personal-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border, #1d3448); }

/* ---------- Agenda (grade do dia) ---------- */
.agd-head { padding-bottom: 14px; }
.agd-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.agd-toolbar input[type="date"] {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
  padding: 6px 10px; font-family: inherit; font-size: 14px; color-scheme: dark;
}
.agd-title { margin: 18px 0 4px; font-size: 19px; }
.agd-sub { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.agd-meta { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--text-faint); }
.agd-meta .ag-check { margin-left: 8px; font-size: 12.5px; }
.agd-grid { padding: 0; overflow-y: auto; max-height: calc(100vh - 290px); min-height: 380px; }
.agd-row { display: grid; grid-template-columns: 74px 1fr; border-bottom: 1px solid var(--border); min-height: 46px; }
.agd-row:last-child { border-bottom: none; }
.agd-hour { padding: 12px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--text-dim); background: var(--bg-soft); border-right: 1px solid var(--border); }
.agd-row.closed .agd-cell { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255,255,255,0.015) 8px 16px); }
.agd-row.closed .agd-hour { color: var(--text-faint); }
.agd-cell { padding: 5px 8px; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.agd-row.free { cursor: pointer; }
.agd-row.free:hover .agd-cell { background: rgba(201, 164, 92, 0.08); }
.agd-add {
  align-self: flex-start; color: var(--brand-hover); font-size: 13.5px; padding: 4px 6px; opacity: 0; transition: opacity .12s; pointer-events: none;
}
.agd-row.free:hover .agd-add { opacity: 1; }
@media (hover: none) { .agd-add { opacity: 0.55; } }
.agd-appt {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; font-family: inherit;
  background: var(--surface-hover); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 8px;
  padding: 7px 12px; color: var(--text);
}
.agd-appt:hover { border-color: var(--brand); }
.agd-appt.confirmed { border-left-color: var(--success); }
.agd-appt.done { border-left-color: #64748b; }
.agd-appt.no_show { border-left-color: #f59e0b; }
.agd-appt.canceled { opacity: 0.55; border-left-color: var(--text-faint); }
.agd-appt.canceled .agd-name { text-decoration: line-through; }
.agd-time { font-weight: 700; color: #E0C486; font-size: 14px; }
.agd-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agd-ai { font-size: 10px; font-weight: 700; color: #E0C486; border: 1px solid rgba(165,180,252,.4); border-radius: 999px; padding: 0 6px; }
.agd-mod { margin-left: auto; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.agd-status { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: rgba(165,180,252,.12); color: #E0C486; white-space: nowrap; }
.agd-status.confirmed { background: rgba(134,239,172,.12); color: #86efac; }
.agd-status.done { background: rgba(148,163,184,.15); color: #cbd5e1; }
.agd-status.no_show { background: rgba(252,211,77,.12); color: #fcd34d; }
.agd-status.canceled { background: rgba(148,163,184,.1); color: var(--text-faint); }
.agd-contact { position: relative; }
.agd-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.agd-sug { display: flex; justify-content: space-between; gap: 10px; width: 100%; background: none; border: none; border-bottom: 1px solid var(--border); color: var(--text); padding: 9px 12px; font-family: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.agd-sug span { color: var(--text-dim); font-size: 12.5px; }
.agd-sug:hover { background: var(--surface-hover); }
.agd-sug.new { color: var(--brand-hover); justify-content: flex-start; }
.agd-picked { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; font-size: 14px; }
.modal input[type="datetime-local"] { color-scheme: dark; }
.ag-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.ag-check.block { display: flex; margin: 8px 0; color: var(--text); font-size: 14px; align-items: flex-start; }
.ag-check.block input { margin-top: 3px; }
.ag-detail { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ag-detail span { display: inline-block; width: 110px; color: var(--text-dim); font-size: 13px; }
.ag-actions { flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 760px) { .agd-mod { display: none; } .agd-row { grid-template-columns: 58px 1fr; } }

/* ---------- Modalidades ---------- */
.mod-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.mod-table th { text-align: left; color: var(--text-dim); font-size: 12.5px; font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.mod-table td { padding: 10px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.mod-table tr.mod-off td { opacity: 0.55; }
.mod-add { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mod-tpls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }

/* ---------- Meu negócio ---------- */
#section-business .card + .card { margin-top: 14px; }
.biz-know-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.biz-pct { text-align: right; flex-shrink: 0; }
.biz-pct strong { display: block; font-size: 26px; color: #E0C486; }
.biz-pct span { font-size: 12px; color: var(--text-faint); }
.biz-bar { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin: 14px 0; }
.biz-bar div { height: 100%; background: var(--brand); border-radius: 999px; }
.biz-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.biz-item {
  display: flex; align-items: center; gap: 10px; text-align: left; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px; color: var(--text); font-family: inherit; cursor: pointer;
}
.biz-item:hover { border-color: var(--brand); }
.biz-check { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.biz-item.done .biz-check { background: var(--success); border-color: var(--success); color: #062b12; }
.biz-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.biz-item-text strong { font-size: 13.5px; }
.biz-item-text span { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-item-go { font-size: 12px; color: var(--brand-hover); white-space: nowrap; }
.biz-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.biz-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.biz-savebar {
  position: sticky; bottom: 0; margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 16px; box-shadow: var(--shadow);
}

/* ---------- Follow-up ---------- */
#section-followup .card + .card { margin-top: 14px; }
.fu-warn { margin: 10px 0 0; color: #fcd34d; font-size: 13.5px; }
.fu-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.fu-head h3 { margin: 0 0 4px; font-size: 16px; }
.fu-head p { margin: 0; font-size: 13.5px; max-width: 720px; }
.fu-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.fu-switch input { width: 18px; height: 18px; }
.fu-stats { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0; font-size: 12.5px; color: var(--text-dim); }
.fu-stats strong { color: var(--text); font-size: 14px; }
.fu-steps { display: flex; flex-direction: column; gap: 12px; }
.fu-step { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.fu-step-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13.5px; color: var(--text-dim); }
.fu-step-head strong { color: var(--text); }
.fu-step-head input[type="number"] { width: 70px; }
.fu-step-head input, .fu-step-head select {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 5px 8px; font-family: inherit; font-size: 13.5px;
}
.fu-step textarea {
  width: 100%; box-sizing: border-box; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: 8px 10px; font-family: inherit; font-size: 14px; resize: vertical;
}
.fu-del { margin-left: auto; }
.fu-pill { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: rgba(148,163,184,.12); color: var(--text-dim); white-space: nowrap; }
.fu-pill.ok { background: rgba(134,239,172,.12); color: #86efac; }
.fu-pill.wait { background: rgba(252,211,77,.12); color: #fcd34d; }
.fu-pill.bad { background: rgba(239,68,68,.12); color: #fca5a5; }

/* ---------- Celular: ajustes por tela (21/11/2026) ---------- */
@media (max-width: 760px) {
  /* Aviso do teste/assinatura mais compacto no topo. */
  .banner { font-size: 12.5px; padding: 8px 12px; gap: 6px; margin-bottom: 12px; line-height: 1.4; }
  /* Tabelas largas rolam para o lado dentro do cartão, sem estourar a tela. */
  .main .card table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #section-team td { white-space: nowrap; }
  .mod-table td, .mod-table th { white-space: nowrap; }
  .mod-table .biz-desc { white-space: normal; min-width: 180px; }
  /* Etapas do pipeline: o nome da etapa precisa caber inteiro. */
  #section-pipeline-config input[data-field="name"] { min-width: 150px; font-size: 14px; }
  /* Horário de atendimento cabe sem rolar. */
  #section-hours table { display: table; table-layout: fixed; width: 100%; }
  #section-hours th, #section-hours td { padding: 6px 2px !important; font-size: 13px; }
  #section-hours th:first-child, #section-hours td:first-child { width: 72px; }
  #section-hours th:nth-child(2), #section-hours td:nth-child(2) { width: 44px; }
  #section-hours input[type="time"] { width: 100%; padding: 6px 2px !important; font-size: 13px; min-width: 0; }
  /* Agenda: barra de botões em duas linhas organizadas. */
  .agd-toolbar { gap: 6px; }
  .agd-toolbar input[type="date"] { flex: 1; min-width: 0; }
  .agd-toolbar .toolbar-spacer { display: none; }
  .agd-toolbar #agd-settings, .agd-toolbar #agd-new { flex: 1; justify-content: center; }
  .agd-title { font-size: 16px; margin-top: 12px; }
  .agd-grid { max-height: none; }
  /* Meu negócio e Follow-up: blocos empilhados. */
  .biz-items { grid-template-columns: 1fr; }
  .biz-pair { grid-template-columns: 1fr; }
  .fu-head { flex-direction: column; gap: 10px; }
  .fu-step-head { gap: 6px; }
  .fu-del { margin-left: 0; }
  .fu-stats { gap: 10px; }
  /* Botões de ação com área de toque confortável. */
  .btn.small { min-height: 36px; }
  .actions-row { gap: 8px; }
}

/* WhatsApp no celular: lista OU conversa em tela cheia (21/11/2026). */
.wa-back { display: none; }
@media (max-width: 760px) {
  .wa-back { display: inline-flex; flex-shrink: 0; }
  .wa-chat-head { gap: 10px; flex-wrap: wrap; }
  .wa-layout { margin-top: 8px; }
  .wa-list-col { height: calc(100vh - 230px); min-height: 360px; }
  .wa-chat-col { height: calc(100vh - 130px); min-height: 420px; }
  .wa-layout.has-open .wa-list-col { display: none; }
  .wa-layout:not(.has-open) .wa-chat-col { display: none; }
  .wa-compose-row textarea { font-size: 16px; }
  /* Horário: títulos sem encostar. */
  #section-hours th { font-size: 11px; }
  #section-hours th:first-child, #section-hours td:first-child { width: 66px; }
  #section-hours th:nth-child(2), #section-hours td:nth-child(2) { width: 52px; text-align: center; }
  /* Agenda: data com espaço; Ajustes e Novo agendamento na 2ª linha. */
  .agd-toolbar input[type="date"] { min-width: 130px; }
  .agd-toolbar #agd-settings, .agd-toolbar #agd-new { flex: 1 1 40%; }
}
@media (max-width: 760px) { .agd-toolbar #agd-new { white-space: nowrap; font-size: 13px; padding-left: 8px; padding-right: 8px; } }

/* ---------- Cadastro (21/11/2026) ---------- */
#section-clients .card + .card { margin-top: 14px; }
.cad-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cad-head h2 { margin: 0 0 4px; }
.cad-head p { margin: 0; font-size: 13.5px; max-width: 640px; }
.cad-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cad-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.cad-toolbar input[type="search"] { flex: 1; min-width: 220px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--text); font-size: 14px; font-family: inherit; outline: none; }
.cad-toolbar input[type="search"]:focus { border-color: var(--brand); }
.cad-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cad-chip { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; font-family: inherit; }
.cad-chip.on { background: rgba(201, 164, 92,.16); border-color: var(--brand); color: var(--text); }
.cad-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border-color: rgba(201, 164, 92,.45); }
.cad-setup .muted { flex: 1; min-width: 240px; font-size: 13.5px; }
.cad-list { display: flex; flex-direction: column; gap: 6px; }
.cad-row { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--text); font-family: inherit; text-align: left; cursor: pointer; }
.cad-row:hover { background: var(--surface-hover); }
.cad-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(201, 164, 92,.18); color: var(--brand-hover); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.cad-avatar.group { background: rgba(134,239,172,.14); color: #86efac; font-size: 18px; }
.cad-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cad-main strong { font-size: 14.5px; }
.cad-main .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cad-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.cad-tag { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: rgba(148,163,184,.12); color: var(--text-dim); white-space: nowrap; }
.cad-tag.ok { background: rgba(134,239,172,.12); color: #86efac; }
.cad-next { font-size: 12px; color: var(--text-dim); }
.cad-ficha-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cad-ficha-title { flex: 1; min-width: 200px; }
.cad-ficha-title h2 { margin: 0 0 2px; }
.cad-ficha-title .muted { font-size: 13px; }
.cad-ficha-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 14px; }
.cad-grid .field.wide { grid-column: 1 / -1; }
.cad-person-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cad-person-head strong { font-size: 15.5px; }
.cad-person-links { display: flex; gap: 6px; flex-wrap: wrap; }
.cad-ai { font-size: 11px; font-weight: 600; color: var(--brand-hover); margin-left: 4px; }
.cad-lock { font-size: 11px; margin-left: 4px; }
.cad-appts { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.cad-savebar { position: sticky; bottom: 0; margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 16px; box-shadow: var(--shadow); z-index: 3; }
.cad-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cad-kind-btn { display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; color: var(--text); font-family: inherit; cursor: pointer; }
.cad-kind-btn span { font-size: 12.5px; color: var(--text-dim); }
.cad-kind-btn.on { border-color: var(--brand); background: rgba(201, 164, 92,.12); }
.cad-new-person { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 12px; }
.cad-new-person .field { position: relative; }
.cad-base { display: flex; flex-direction: column; gap: 8px; }
.cad-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 400; cursor: pointer; margin-bottom: 6px; color: var(--text); }
.cad-check input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; }
.cad-radio { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.cad-radio label { display: flex; gap: 8px; align-items: center; font-weight: 400; color: var(--text); cursor: pointer; }
.cad-fields { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cad-field-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; font-size: 14px; }
.cad-field-row .muted { font-size: 12.5px; margin-top: 2px; }
.cad-field-btns { display: flex; gap: 6px; flex-shrink: 0; }
.cad-field-form { background: var(--bg-soft); border: 1px solid var(--brand); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.cad-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cad-template { display: flex; flex-direction: column; gap: 4px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.cad-template .muted { font-size: 12.5px; }
.cad-template ul { margin: 6px 0 10px; padding-left: 18px; font-size: 13px; color: var(--text-dim); flex: 1; }
.cad-template .btn { align-self: flex-start; }
@media (max-width: 760px) {
  .cad-head { flex-direction: column; }
  .cad-actions { width: 100%; }
  .cad-actions .btn { flex: 1; }
  .cad-side .cad-next { display: none; }
  .cad-kind { grid-template-columns: 1fr; }
  .cad-new-person { grid-template-columns: 1fr; }
  .cad-field-row { flex-direction: column; align-items: flex-start; }
  .cad-savebar .muted { display: none; }
  .cad-savebar .btn { width: 100%; }
}

/* ---------- Financeiro (21/11/2026) ---------- */
#section-finance .card + .card, #section-finance .fn-stats + .card, #section-finance .card + .fn-stats, #section-finance .fn-stats + .fn-stats, #section-finance .card + .fn-two, #section-finance .fn-stats + .fn-two { margin-top: 14px; }
.fn-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.fn-tab { flex: 0 0 auto; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.fn-tab:hover { color: var(--text); }
.fn-tab.active { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.fn-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.fn-monthnav { display: flex; align-items: center; gap: 10px; }
.fn-monthnav strong { min-width: 150px; text-align: center; }
.fn-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fn-h3 { font-size: 15px; margin: 0 0 10px; }
.fn-h4 { font-size: 13px; color: var(--text-dim); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.fn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.fn-stats.small .value { font-size: 19px; }
.fn-stat .value { font-size: 22px; white-space: nowrap; }
.fn-stat .value.ok { color: #86efac; }
.fn-stat .value.bad { color: #f87171; }
.fn-stat .value.warn { color: #fbbf24; }
.fn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fn-two .card { margin-top: 0 !important; }
.fn-alert { border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .07); color: #fde68a; }
.fn-alert.bad { border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .08); color: #fecaca; }
.fn-alert.small { font-size: 13px; padding: 8px 12px; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid; }
.fn-alert a { color: inherit; text-decoration: underline; }
.fn-mini { display: flex; flex-direction: column; }
.fn-mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.fn-mini-row:last-child { border-bottom: 0; }
.fn-mini-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fn-mini-main strong, .fn-mini-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn-mini-main .muted { font-size: 12.5px; }
.fn-mini-val { font-weight: 600; white-space: nowrap; }
.fn-mini-val.income, .fn-in { color: #86efac; }
.fn-mini-val.expense, .fn-out { color: #fca5a5; }
.fn-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.fn-dot.income { background: #22c55e; }
.fn-dot.expense { background: #ef4444; }
.fn-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fn-toolbar input[type="search"], .fn-toolbar select, .fn-toolbar input[type="date"], #section-finance .actions-row input[type="text"], #section-finance .actions-row select, .fn-table input, .fn-table select {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; color: var(--text); font-size: 14px; font-family: inherit; }
.fn-toolbar input[type="search"] { flex: 1; min-width: 160px; }
.fn-toolbar input[type="date"] { color-scheme: dark; }
.fn-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fn-table-card { overflow-x: auto; }
.fn-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fn-table th { text-align: left; color: var(--text-dim); font-size: 12.5px; font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fn-table td { padding: 10px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.fn-table tbody tr[data-entry], .fn-table tbody tr[data-rec], .fn-table tbody tr[data-debt] { cursor: pointer; }
.fn-table tbody tr[data-entry]:hover, .fn-table tbody tr[data-rec]:hover, .fn-table tbody tr[data-debt]:hover { background: var(--surface-hover); }
.fn-table tr.off td { opacity: .5; }
.fn-table tfoot td { color: var(--text-dim); border-bottom: 0; }
.fn-table .r { text-align: right; white-space: nowrap; }
.fn-table .small, .muted.small { font-size: 12.5px; }
.fn-table input { width: 100%; }
.fn-dre tr.tot td { font-weight: 700; background: rgba(201, 164, 92, .08); }
.fn-dre tr.grp[data-toggle] { cursor: pointer; }
.fn-dre tr.cat td { color: var(--text-dim); font-size: 13px; padding-left: 26px; }
.fn-dre tr.cat td.r { padding-left: 6px; }
.fn-caret { display: inline-block; width: 16px; color: var(--text-faint); }
.fn-scroll { overflow-x: auto; }
.fn-pill { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: rgba(148,163,184,.12); color: var(--text-dim); white-space: nowrap; }
.fn-pill.ok { background: rgba(34,197,94,.14); color: #86efac; }
.fn-pill.bad { background: rgba(239,68,68,.15); color: #fca5a5; }
.fn-pill.warn { background: rgba(251,191,36,.14); color: #fde68a; }
.fn-tag { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; margin-left: 4px; vertical-align: middle; }
.fn-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); margin: 6px 0 12px; cursor: pointer; }
.fn-more { margin: 4px 0 12px; }
.fn-more summary { cursor: pointer; color: var(--text-dim); font-size: 13.5px; margin-bottom: 8px; }
.fn-suggest { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.fn-suggest button { text-align: left; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-size: 13.5px; }
.fn-suggest button:hover { border-color: var(--brand); }
.fn-entry-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: -6px 0 12px; }
.fn-modal-actions { flex-wrap: wrap; }
.fn-chart { width: 100%; height: auto; display: block; }
#section-finance .modal input[type="date"] { color-scheme: dark; }
@media (max-width: 760px) {
  .fn-two { grid-template-columns: 1fr; }
  .fn-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fn-stat .value { font-size: 17px; }
  .fn-stats.small .value { font-size: 16px; }
  .fn-monthnav strong { min-width: 0; }
  .fn-table { font-size: 13px; }
  .fn-table td, .fn-table th { padding: 8px 4px; }
  .fn-toolbar > * { flex: 1 1 auto; }
  .fn-head .fn-actions { width: 100%; }
  .fn-head .fn-actions .btn { flex: 1; }
}
.modal input[type="date"] { color-scheme: dark; }
.fn-two > .card { min-width: 0; }
.fn-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) {
  .fn-two { grid-template-columns: minmax(0, 1fr); }
  .fn-mini-row { flex-wrap: wrap; }
  .fn-mini-main { flex: 1 1 calc(100% - 20px); }
  .fn-mini-val { margin-left: 18px; flex: 1; }
  .fn-list thead { display: none; }
  .fn-list tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 10px 2px; border-bottom: 1px solid var(--border); }
  .fn-list tbody td { border: 0; padding: 0; }
  .fn-list tbody td:nth-child(1) { grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--text-dim); }
  .fn-list tbody td:nth-child(2) { grid-column: 1; grid-row: 1; min-width: 0; }
  .fn-list tbody td:nth-child(3) { grid-column: 2; grid-row: 1; font-weight: 600; }
  .fn-list tbody td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  .fn-list tbody td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; text-align: left; }
  .fn-list tbody td:nth-child(5):empty { display: none; }
  .fn-list tfoot tr { display: flex; justify-content: space-between; padding-top: 8px; }
  .fn-list tfoot td { padding: 0; }
  .fn-list tfoot td:last-child { display: none; }
}

/* ---------- Tráfego (21/11/2026) ---------- */
#section-traffic .card + .card, #section-traffic .tf-funnel + .fn-stats, #section-traffic .fn-stats + .card, #section-traffic .card + .tf-funnel { margin-top: 14px; }
.tf-funnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tf-step .value { font-size: 26px; }
.tf-conv { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.tf-code { display: flex; gap: 10px; align-items: center; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.tf-code code { flex: 1; min-width: 0; font-size: 12.5px; word-break: break-all; color: #E0C486; }
.tf-list { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
.tf-list code, .hint code { font-size: 12px; }
.tf-checks, .tf-cases { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tf-cases { flex-direction: column; margin-bottom: 8px; }
#section-traffic .actions-row input[type="month"], #section-traffic .actions-row input[type="text"] { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; color: var(--text); font-size: 14px; color-scheme: dark; }
@media (max-width: 760px) {
  .tf-funnel { grid-template-columns: 1fr 1fr; }
  .tf-step .value { font-size: 20px; }
  .tf-code { flex-direction: column; align-items: stretch; }
}
.tf-note { color: var(--warning, #e0b44c); }
.tf-own { border-color: var(--brand); background: rgba(201, 164, 92, 0.08); }
.tf-row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .tf-row-actions { flex-direction: column; align-items: stretch; } }
/* Gestor por IA */
.tia-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tia-tabs { margin: 0 0 12px; }
.tia-ul, .tia-ol { margin: 6px 0 10px; padding-left: 20px; }
.tia-ul li, .tia-ol li { margin: 0 0 8px; line-height: 1.5; }
.tia-camps { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 10px; }
.tia-camp, .tia-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: var(--bg-soft); margin-bottom: 8px; }
.tia-camp .small, .tia-box .small { margin-top: 4px; line-height: 1.45; }
.tia-row { cursor: pointer; }
.tia-row:hover td { background: var(--surface-hover); }
.tia-detail { padding: 6px 2px 10px; }
.tia-chat { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px 2px; }
.tia-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; white-space: pre-wrap; line-height: 1.5; font-size: 14px; }
.tia-msg.user { align-self: flex-end; background: var(--brand); color: var(--brand-contrast); border-bottom-right-radius: 4px; }
.tia-msg.assistant { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.tia-typing { color: var(--text-dim); font-style: italic; }
.tia-ask { display: flex; gap: 8px; }
.tia-ask input { flex: 1; }
@media (max-width: 640px) { .tia-msg { max-width: 95%; } .tia-camps { grid-template-columns: 1fr; } }
.tc-pub { margin-top: 10px; }
.tc-pub-box { border-color: var(--brand); background: rgba(201, 164, 92, 0.07); }
.tc-pub-box input[type="file"] { max-width: 100%; }

/* Planos (26/11/2026) */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.plan-card { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; }
.plan-card.current { border-color: rgba(201, 164, 92, 0.75); background: linear-gradient(180deg, rgba(201, 164, 92, 0.14), var(--bg-soft) 70%); }
.plan-name { font-weight: 700; font-size: 16px; }
.plan-price { font-size: 24px; font-weight: 800; }
.plan-price span { font-size: 13px; font-weight: 500; color: var(--text-dim); margin-left: 2px; }
.plan-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.plan-rows li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.35; }
.plan-rows li span { width: 16px; flex: none; text-align: center; font-weight: 700; }
.plan-rows li.yes span { color: #4ade80; }
.plan-rows li.no { color: var(--text-dim); opacity: 0.7; }
.plan-current { text-align: center; font-size: 13px; font-weight: 700; color: #E0C486; background: rgba(201, 164, 92, 0.22); border-radius: 999px; padding: 7px 10px; }
.plan-card .btn { width: 100%; }

/* Mentoria — vitrine de formação (26/11/2026) */
#section-mentoria { max-width: 1180px; }
.mt-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #E0C486; background: rgba(201, 164, 92, 0.22); border: 1px solid rgba(129, 140, 248, 0.35); border-radius: 999px; padding: 4px 11px; margin-bottom: 14px; }
.mt-skel { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-hover), #2a3042, var(--surface-hover)); background-size: 200% 100%; animation: mtSk 1.2s infinite; margin: 10px 0; }
@keyframes mtSk { to { background-position: -200% 0; } }
.mt-hero2 { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; padding: 34px 36px; border-radius: 18px; border: 1px solid rgba(129, 140, 248, 0.3); background: radial-gradient(120% 140% at 100% 0%, rgba(201, 164, 92, 0.32), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(200, 150, 30, 0.14), transparent 60%), linear-gradient(180deg, #1d2232, #171b26); margin-bottom: 18px; }
.mt-hero2::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.02), 0 0 0 80px rgba(255, 255, 255, 0.015); pointer-events: none; }
.mt-hero-txt { flex: 1; position: relative; z-index: 1; }
.mt-hero2 h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.mt-hero2 p { margin: 0 0 18px; color: #d8d2c5; max-width: 640px; font-size: 15px; line-height: 1.6; }
.mt-hero-note { margin-top: 12px !important; font-size: 12.5px !important; }
.mt-ring { --p: 0; position: relative; z-index: 1; flex: none; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(#E0C486 calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); display: grid; place-items: center; }
.mt-ring > div { width: 108px; height: 108px; border-radius: 50%; background: #191d29; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mt-ring b { font-size: 26px; letter-spacing: -0.02em; }
.mt-ring span { font-size: 11.5px; color: var(--text-dim); }
.mt-next { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 22px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.mt-next:hover { border-color: var(--c1); transform: translateY(-1px); }
.mt-next-ico, .mt-row-ico, .mt-link-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.mt-next-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-next-txt small { color: var(--text-dim); font-size: 12px; }
.mt-next-txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-next-go { color: #E0C486; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.mt-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 2px 14px; }
.mt-sec-head h2 { margin: 0; font-size: 18px; }
.mt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mt-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; outline: none; }
.mt-card:hover, .mt-card:focus-visible { transform: translateY(-3px); border-color: #2a4560; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38); }
.mt-cover { position: relative; height: 128px; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.22), transparent 50%), linear-gradient(135deg, var(--c1), var(--c2)); }
.mt-cover.big { height: auto; min-height: 190px; border-radius: 16px; }
.mt-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.mt-cover img ~ .mt-cover-mark { display: none; }
.mt-cover-num { position: absolute; left: 18px; bottom: 10px; z-index: 2; font-size: 46px; font-weight: 800; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.92); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18); line-height: 1; }
.mt-cover.big .mt-cover-num { font-size: 64px; left: 22px; bottom: 16px; }
.mt-cover-ico { position: absolute; left: 18px; top: 16px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, 0.2); color: #fff; backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, 0.28); }
.mt-cover.big .mt-cover-ico { width: 54px; height: 54px; left: 22px; top: 20px; }
.mt-cover-mark { position: absolute; right: -22px; top: -14px; color: rgba(255, 255, 255, 0.16); transform: rotate(-8deg); }
.mt-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.mt-card-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.mt-card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.mt-card p { margin: 0 0 12px; color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mt-chip { font-size: 11.5px; color: #d8d2c5; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-chip.more { color: var(--text-faint); }
.mt-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-dim); padding-top: 12px; border-top: 1px solid var(--border); }
.mt-soon { font-weight: 700; font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: #fcd34d; background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 999px; padding: 2px 9px; }
.mt-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-top: 10px; }
.mt-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #E0C486, #22c55e); }
.mt-formats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 22px 2px 4px; font-size: 13px; color: var(--text-dim); }
.mt-formats span { display: inline-flex; align-items: center; gap: 6px; }
.mt-back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-dim); text-decoration: none; font-size: 13.5px; font-weight: 600; margin: 0 0 14px; padding: 4px 8px 4px 2px; border-radius: 8px; }
.mt-back:hover { color: var(--text); }
.mt-cat-head { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: stretch; margin-bottom: 26px; }
.mt-cat-info { display: flex; flex-direction: column; justify-content: center; }
.mt-cat-info h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.mt-cat-info p { margin: 0; color: #d8d2c5; font-size: 15px; line-height: 1.6; max-width: 640px; }
.mt-cat-prog { margin-top: 16px; max-width: 420px; }
.mt-cat-prog span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-dim); }
.mt-cat-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.mt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mt-tabs button { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; font-family: inherit; }
.mt-tabs button i { font-style: normal; opacity: .7; margin-left: 2px; }
.mt-tabs button.on { background: rgba(201, 164, 92, 0.2); color: #F2EBDD; border-color: rgba(129, 140, 248, 0.5); }
.mt-list2 { display: flex; flex-direction: column; gap: 8px; }
.mt-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.mt-row:hover { border-color: #2a4560; background: var(--surface-hover); }
.mt-row-n { flex: none; width: 22px; font-size: 12.5px; font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.mt-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-row-txt b { font-size: 14.5px; }
.mt-row-txt small { color: var(--text-dim); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-row-txt em { font-style: normal; font-size: 12px; color: var(--text-faint); }
.mt-row.locked .mt-row-ico { filter: saturate(.5) brightness(.85); }
.mt-row-go { color: var(--text-faint); font-size: 20px; line-height: 1; }
.mt-state { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.mt-state.done { color: #86efac; background: rgba(34, 197, 94, 0.12); }
.mt-state.lock { color: var(--text-dim); background: var(--bg-soft); border: 1px solid var(--border); }
.mt-state.free { color: #fcd34d; background: rgba(245, 158, 11, 0.14); }
.mt-empty { text-align: center; padding: 40px 24px; border-radius: 14px; border: 1px dashed #2a4560; background: var(--surface); }
.mt-empty-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); margin-bottom: 12px; opacity: .9; }
.mt-empty h3 { margin: 0 0 6px; }
.mt-empty p { max-width: 460px; margin: 0 auto 14px; line-height: 1.55; }
.mt-topics h3 { margin: 0 0 12px; font-size: 15px; }
.mt-topics ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mt-topics li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; color: #d4d7e0; }
.mt-topics li span { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: var(--c1); background: rgba(255, 255, 255, 0.06); margin-top: 1px; }
.mt-topics-cta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.mt-topics-cta p { margin: 0 0 10px; }
.mt-content { max-width: 860px; }
.mt-content h1 { margin: 0 0 8px; font-size: 27px; line-height: 1.25; letter-spacing: -0.02em; }
.mt-lead { margin: 0 0 20px; color: #d8d2c5; font-size: 15.5px; line-height: 1.6; }
.mt-player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--border); margin-bottom: 20px; }
.mt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mt-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; margin-bottom: 20px; }
.mt-link:hover { border-color: var(--c1); }
.mt-link > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.mt-link small { color: var(--text-dim); font-size: 12.5px; }
.mt-body { font-size: 15.5px; line-height: 1.75; color: #dfe2ea; }
.mt-body p { margin: 0 0 14px; }
.mt-body h3 { margin: 24px 0 10px; font-size: 18px; }
.mt-body ul { margin: 0 0 14px; padding-left: 22px; }
.mt-body li { margin: 4px 0; }
.mt-body a { color: #E0C486; }
.mt-content-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.mt-content-foot .btn svg { vertical-align: -3px; margin-right: 2px; }
.mt-pn { display: flex; gap: 8px; }
.mt-err { color: var(--danger); font-size: 13px; margin-left: 10px; }
.mt-locked { max-width: 620px; margin: 10px auto; text-align: center; padding: 38px 30px; border-radius: 18px; border: 1px solid var(--border); background: radial-gradient(100% 80% at 50% 0%, rgba(201, 164, 92, 0.16), transparent 70%), var(--surface); }
.mt-locked-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); margin-bottom: 14px; }
.mt-locked h2 { margin: 4px 0 8px; }
.mt-locked p { line-height: 1.6; }
@media (max-width: 1080px) { .mt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mt-cat-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .mt-hero2 { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .mt-hero2 h1 { font-size: 24px; }
  .mt-ring { width: 110px; height: 110px; } .mt-ring > div { width: 88px; height: 88px; } .mt-ring b { font-size: 21px; }
  .mt-grid { grid-template-columns: 1fr; }
  .mt-cat-head { grid-template-columns: 1fr; gap: 16px; }
  .mt-cover.big { min-height: 150px; }
  .mt-cat-info h1 { font-size: 23px; }
  .mt-row { gap: 10px; padding: 12px; } .mt-row-n { display: none; }
  .mt-state { padding: 2px 7px; }
  .mt-content h1 { font-size: 22px; }
  .mt-next-go { display: none; }
}

/* Temperatura do lead */
.temp { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid transparent; }
.temp.big { font-size: 12.5px; padding: 4px 11px; }
.temp-quente { color: #fca5a5; background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.4); }
.temp-morno { color: #fcd34d; background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.38); }
.temp-frio { color: #93c5fd; background: rgba(59, 130, 246, 0.14); border-color: rgba(59, 130, 246, 0.35); }

/* ---------- Painel do Dono (26/11/2026) ---------- */
.dn-crown { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fbbf24; border: 1px solid rgba(251,191,36,.4); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.dn-badge { color: #fbbf24; border-color: rgba(251,191,36,.4); }
.dn-code-input { font-size: 24px !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.dn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dn-tiles .stat .value { font-variant-numeric: tabular-nums; }
.dn-tiles .stat .value.brand { color: #E0C486; }
.dn-tiles.small .stat .value { font-size: 22px; }
.dn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dn-two > .card { margin-bottom: 0; }
.dn-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 170px; padding-top: 8px; }
.dn-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.dn-bar-fill { width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #E0C486, #C9A45C); min-height: 0; }
.dn-bar span { font-size: 11px; color: var(--text-faint); }
.dn-plan-row { display: grid; grid-template-columns: 140px 1fr 32px; align-items: center; gap: 10px; margin: 10px 0; font-size: 14px; }
.dn-plan-track { height: 10px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.dn-plan-track > div { height: 100%; background: #C9A45C; border-radius: 999px; }
.dn-plan-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.dn-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.dn-mini-stats div { display: flex; flex-direction: column; gap: 2px; }
.dn-mini-stats strong { font-size: 20px; }
.dn-mini-stats span { font-size: 12px; color: var(--text-dim); }
.dn-li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.dn-li:last-child { border-bottom: 0; }
.dn-li-end { flex-shrink: 0; text-align: right; display: flex; gap: 6px; align-items: center; }
.dn-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.dn-pill.ok { color: #86efac; border-color: rgba(134,239,172,.35); background: rgba(34,197,94,.08); }
.dn-pill.info { color: #E0C486; border-color: rgba(165,180,252,.35); background: rgba(201, 164, 92,.1); }
.dn-pill.warn { color: #fbbf24; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.dn-pill.bad { color: #fca5a5; border-color: rgba(252,165,165,.35); background: rgba(239,68,68,.1); }
.dn-pill.mute { color: var(--text-dim); }
.dn-sales-card { border-color: rgba(251,191,36,.35); background: linear-gradient(135deg, rgba(251,191,36,.08), var(--surface) 55%); }
.dn-row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dn-funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 16px; }
.dn-funnel-step { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.dn-funnel-step strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.dn-funnel-step span { font-size: 12px; color: var(--text-dim); }
.dn-funnel-step.won { border-color: rgba(134,239,172,.4); }
.dn-funnel-step.won strong { color: #86efac; }
.dn-funnel-step.lost { opacity: .7; }
.dn-hero h2 { font-size: 20px; }
.dn-checks { list-style: none; padding: 0; margin: 12px 0; }
.dn-checks li { position: relative; padding: 6px 0 6px 26px; line-height: 1.5; }
.dn-checks li::before { content: '✓'; position: absolute; left: 0; top: 6px; color: #86efac; font-weight: 700; }
.dn-steps { display: flex; flex-direction: column; gap: 12px; }
.dn-step { display: flex; gap: 12px; align-items: flex-start; }
.dn-step > span { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--border); font-weight: 700; font-size: 13px; }
.dn-step.done > span { background: rgba(34,197,94,.15); border-color: rgba(134,239,172,.4); color: #86efac; }
.dn-step p { margin: 2px 0 0; }
.dn-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dn-toolbar input[type="search"] { flex: 1 1 260px; }
.dn-toolbar input, .dn-toolbar select, .dn-inline select, .dn-plan input { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); padding: 9px 11px; font: inherit; }
.dn-chips { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.dn-chip { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.dn-chip.on { color: var(--text); border-color: var(--brand); background: rgba(201, 164, 92,.15); }
.dn-click { cursor: pointer; }
.dn-table tr.dn-click:hover td { background: var(--surface-hover); }
.dn-modal-wide { max-width: 760px !important; width: 100%; max-height: 90vh; overflow-y: auto; }
.dn-ficha-top { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.dn-ficha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dn-ficha-grid > div { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dn-ficha-grid .small { word-break: break-word; }
.dn-h3 { font-size: 15px; margin: 20px 0 8px; }
.dn-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dn-act { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.dn-act label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.dn-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dn-inline select { flex: 1; min-width: 0; padding: 7px 9px; }
.dn-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dn-timeline { display: flex; flex-direction: column; }
.dn-timeline > div { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; align-items: baseline; }
.dn-timeline > div:last-child { border-bottom: 0; }
.dn-timeline span { color: var(--text-faint); font-size: 12px; }
.dn-timeline em { font-style: normal; color: var(--text-dim); text-align: right; }
.dn-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dn-plan input { width: 100%; }
.small { font-size: 12.5px; }
@media (max-width: 900px) {
  .dn-two { grid-template-columns: 1fr; }
  .dn-ficha-grid { grid-template-columns: 1fr; }
  .dn-actions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dn-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dn-tiles .stat .value { font-size: 22px; }
  .dn-timeline > div { grid-template-columns: 1fr; gap: 2px; }
  .dn-timeline em { text-align: left; }
  .dn-plan-row { grid-template-columns: 110px 1fr 28px; }
  .dn-bars { height: 130px; gap: 3px; }
  .dn-bar span { font-size: 9px; }
  .dn-modal-wide { max-height: 92vh; }
}
/* CRM de vendas do ARCA (conta da casa) */
.house-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(201, 164, 92,.08)); border: 1px solid rgba(251,191,36,.35); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.house-banner a { color: #fbbf24; font-weight: 600; text-decoration: none; white-space: nowrap; }
/* CRM de vendas dentro do Painel do Dono (app.html?embed=house) */
body.embedded .sidebar, body.embedded .sidebar-backdrop, body.embedded .main-header { display: none !important; }
body.embedded .app-shell { grid-template-columns: 1fr; min-height: 100vh; }
body.embedded .main { padding: 2px 4px 24px; }
.dn-crm-frame { width: 100%; height: calc(100vh - 92px); border: 0; border-radius: var(--radius-lg); background: var(--bg); display: block; }
.dn-crm-wrap { margin: 0 -8px; }
.nav-link.dn-sub { padding-left: 14px; }
@media (max-width: 760px) {
  .dn-crm-frame { height: calc(100vh - 70px); border-radius: 0; }
  .dn-crm-wrap { margin: 0 -14px; }
}
#section-mentoria a.mt-row:hover, #section-mentoria a.mt-row:hover *, #section-mentoria .mt-next:hover, #section-mentoria .mt-next:hover *, #section-mentoria .mt-link:hover, #section-mentoria .mt-link:hover *, #section-mentoria .mt-back:hover { text-decoration: none; }
.mt-locked .mt-locked-ico { display: grid; margin: 0 auto 14px; }
.mt-locked .mt-card-kicker { display: flex; justify-content: center; }
.mt-hero2 h1 { letter-spacing: 0.01em; }
.mt-h-sep { color: #E0C486; font-weight: 400; margin: 0 4px; }
.mt-h-sub { margin: -2px 0 14px; font-size: 17px; font-weight: 600; color: #F2EBDD; letter-spacing: 0.01em; }
.mt-h-sub b { color: #f6b73c; font-weight: 800; }
@media (max-width: 760px) { .mt-h-sub { font-size: 15px; } .mt-h-sep { display: none; } .mt-h-2 { display: block; color: #E0C486; } }
/* Mentoria — materiais de apoio */
.mt-side { display: flex; flex-direction: column; gap: 16px; }
.mt-side .card { margin: 0; }
.mt-mats h3, .mt-mats-in h3 { margin: 0 0 4px; font-size: 15px; }
.mt-mats .muted { margin: 0 0 12px; }
.mt-mats-in { margin: 6px 0 18px; }
.mt-mats-in h3 { margin-bottom: 10px; font-size: 16px; }
.mt-files { display: flex; flex-direction: column; gap: 8px; }
.mt-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); }
.mt-file.locked { opacity: .75; }
.mt-fbadge { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--fc); }
.mt-file-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-file-txt b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-file-txt small { color: var(--text-faint); font-size: 12px; }
.mt-file .btn { flex: none; }

/* Mentoria em módulos (27/11/2026) */
.mt-mods { display: flex; flex-direction: column; gap: 10px; }
.mt-mod { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.mt-mod:hover { border-color: #2a4560; background: var(--surface-hover); transform: translateY(-1px); }
.mt-mod.soon { opacity: .78; }
.mt-mod-n { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 6px 16px -8px var(--c1); }
.mt-mod-n.big { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }
.mt-mod.soon .mt-mod-n { filter: saturate(.55) brightness(.85); }
.mt-mod-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mt-mod-txt small { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.mt-mod-txt b { font-size: 15.5px; line-height: 1.35; }
.mt-mod-txt em { font-style: normal; font-size: 12.5px; color: var(--text-dim); }
.mt-mod-txt .mt-bar { display: block; margin-top: 6px; max-width: 280px; }
.mt-mod-head { display: flex; align-items: center; gap: 18px; margin: 4px 0 22px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 14%, transparent), transparent 65%), var(--surface); }
.mt-mod-head h1 { margin: 4px 0 4px; font-size: 24px; line-height: 1.25; }
.mt-mod-head .mt-cat-prog { margin-top: 10px; }
.mt-mod-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.mt-mod-grid.one { grid-template-columns: 1fr; }
.mt-mod-empty { padding: 18px 4px; }
.mt-mod-pn { justify-content: space-between; margin-top: 22px; }
#section-mentoria a.mt-mod:hover, #section-mentoria a.mt-mod:hover * { text-decoration: none; }
@media (max-width: 1080px) { .mt-mod-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .mt-mod { gap: 12px; padding: 13px 14px; }
  .mt-mod-n { width: 40px; height: 40px; font-size: 14px; }
  .mt-mod .mt-state, .mt-mod .mt-soon { display: none; }
  .mt-mod-head { padding: 16px; gap: 14px; }
  .mt-mod-n.big { width: 50px; height: 50px; font-size: 18px; }
  .mt-mod-head h1 { font-size: 20px; }
}
.mt-mod-grid > * { min-width: 0; }


/* ---------- Identidade ARCA (27/11/2026) ---------- */
.brand-mark { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.brand-mark .brand-logo { height: 40px; width: auto; display: block; }
.sidebar .brand-mark .brand-logo { height: 38px; }
.logo-sig { font-family: var(--caps); font-size: 7.8px; letter-spacing: .15em; line-height: 1.4; color: var(--brand); text-align: center; white-space: nowrap; }
.auth-card .brand-mark { display: flex; justify-content: center; margin-bottom: 26px; }
.auth-card .brand-mark .brand-logo.full { height: 52px; width: auto; }
.auth-card .logo-sig { font-size: 9.5px; }
h1.page-title { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: .005em; line-height: 1.15; }
.main-header h1 { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: .005em; }
.nav-group-label { font-family: var(--caps); letter-spacing: .16em; }
.auth-screen { background: radial-gradient(800px 420px at 50% -10%, rgba(201, 164, 92, 0.10), transparent 70%), var(--bg); }
.auth-card { border-color: rgba(201, 164, 92, 0.22); }
.sidebar { background: #061320; }
.nav-link.active { box-shadow: inset 2px 0 0 var(--brand); }
@media (max-width: 760px) { .main-header h1 { font-size: 22px; } }
