/* ============================================================
   CONNECTADO · Portal do Cliente — v2.0
   Folha única que substitui client-portal.css + client-portal-ds.css.
   Construída a partir do Design System v1.0 (design-system.css)
   e do mockup "Painel do Cliente.html". Light-only.
   ----------------------------------------------------------------
   ORDEM DE CARGA esperada (views/cliente/_chrome.php):
     1) design-system.css   (tokens + Inter + JetBrains Mono)
     2) client-portal-v2.css (este arquivo)
   ============================================================ */

:root {
  --cp-aside-w: 280px;
  --cp-content-max: 1200px;
  --cp-content-narrow: 880px;
  --ease: cubic-bezier(.2,.7,.2,1);
  /* default client accent — overridden inline via style="--client-color: #xxx" */
  --client-color: var(--brand-violet);

  /* ── Aliases legacy --cp-*  →  tokens DS  ─────────────────
     Views antigas (marca, equipe, agenda, solicitacoes, google-ads)
     ainda usam estas vars dentro de $cpHeadExtra. Mantemos por
     compatibilidade — todas resolvem para a paleta oficial DS. */
  --cp-text:           var(--ink-1);
  --cp-text-muted:     var(--ink-3);
  --cp-text-soft:      var(--ink-4);
  --cp-border:         var(--border);
  --cp-border-strong:  var(--border-strong);
  --cp-surface:        var(--surface);
  --cp-surface-soft:   var(--surface-2);
  --cp-surface-3:      var(--surface-3);
  --cp-surface-hover:  var(--violet-50);
  --cp-accent:         var(--brand-violet);
  --cp-accent-soft:    var(--violet-100);
  --cp-success:        var(--success);
  --cp-success-soft:   var(--success-bg);
  --cp-danger:         var(--danger);
  --cp-danger-soft:    var(--danger-bg);
  --cp-warn:           var(--warning);
  --cp-warn-soft:      var(--warning-bg);
  --cp-info:           var(--brand-cyan-deep);
  --cp-info-soft:      var(--cyan-100);
  --cp-radius:         var(--r-md);
  --cp-radius-sm:      var(--r-sm);
  --cp-radius-pill:    var(--r-pill);
  --cp-shadow-sm:      var(--shadow-1);
  --cp-shadow:         var(--shadow-2);
  --cp-shadow-lg:      var(--shadow-3);
}

/* ── BASE ──────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink-2);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── SHELL: cp-shell + cp-aside + cp-content ───────────────── */
.cp-shell {
  display: grid;
  grid-template-columns: var(--cp-aside-w) 1fr;
  min-height: 100vh;
}
body:not(.cp-has-aside) .cp-shell { grid-template-columns: 1fr; }

.cp-aside {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
/* Barra do drawer (mobile/tablet): título + fechar — sempre visível no topo da sidebar */
.cp-aside__toolbar {
  display: none;
  flex: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  position: sticky;
  top: 0;
  z-index: 6;
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.cp-aside__toolbar-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cp-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-1);
}
.cp-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow-2);
}
.cp-aside__close {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.cp-aside__close:hover {
  color: var(--brand-violet);
  background: var(--violet-50);
  border-color: var(--violet-200);
}
.cp-aside__close i,
.cp-aside__close svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.cp-aside__client {
  flex: none;
  margin: var(--s-4) var(--s-3) var(--s-2);
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.cp-aside__client:hover {
  border-color: var(--violet-200);
  background: var(--violet-50);
}
.cp-aside__client-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--violet-50);
  border: 1px solid var(--violet-200);
  color: var(--brand-violet);
  display: grid; place-items: center;
  flex: none;
}
.cp-aside__client-icon i,
.cp-aside__client-icon svg { width: 18px; height: 18px; }
.cp-aside__client-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.cp-aside__client-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cp-aside__client-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.cp-aside__nav {
  padding: var(--s-2) var(--s-2) var(--s-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--violet-200) transparent;
}
.cp-aside__nav::-webkit-scrollbar { width: 5px; }
.cp-aside__nav::-webkit-scrollbar-thumb {
  background: var(--violet-200);
  border-radius: var(--r-pill);
}
.cp-aside__promo {
  flex: none;
  padding: 0 var(--s-3) var(--s-3);
}
.cp-aside__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: var(--s-2) var(--s-3) var(--s-2);
}

.cp-aside__link {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--s-3);
  row-gap: 0;
  padding: 8px 10px 8px 12px;
  margin: 0 var(--s-1);
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.14s var(--ease), color 0.14s ease;
}
.cp-aside__link:hover {
  background: var(--violet-50);
  color: var(--brand-violet);
}
.cp-aside__link.is-active {
  background: var(--violet-100);
  color: var(--brand-violet);
  font-weight: 700;
}
.cp-aside__link.is-active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: var(--brand-violet);
}

.cp-nav-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  grid-column: 1;
  grid-row: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-3);
  box-shadow: var(--shadow-1);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.cp-nav-ico i,
.cp-nav-ico svg { width: 18px; height: 18px; }
.cp-aside__link:hover .cp-nav-ico,
.cp-aside__link.is-active .cp-nav-ico {
  border-color: var(--violet-200);
  color: var(--brand-violet);
}
.cp-aside__link-label {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  line-height: 1.3;
  white-space: nowrap;
}

/* Ícone composto IG + FB (sidebar): mesmo padrão aprovado da agência,
   replicado aqui pq o _chrome.php do portal não carrega agency-shell.css. */
.cp-nav-ico img { width: 18px; height: 18px; object-fit: contain; display: block; }
.cp-nav-ico-brand { width: 18px; height: 18px; object-fit: contain; display: block; }
.cp-nav-ico--duo { overflow: visible; background: var(--violet-50); }
.cp-nav-ico-duo { position: relative; width: 18px; height: 16px; }
.cp-nav-ico-duo__ig,
.cp-nav-ico-duo__fb,
.cp-nav-ico-duo__google,
.cp-nav-ico-duo__meta {
  position: absolute;
  width: 11px !important;
  height: 11px !important;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--surface);
}
.cp-nav-ico-duo__ig,
.cp-nav-ico-duo__google { left: 0; bottom: 0; z-index: 1; }
.cp-nav-ico-duo__fb,
.cp-nav-ico-duo__meta { right: 0; top: 0; z-index: 2; border-radius: 50%; }
.cp-aside__link.is-active .cp-nav-ico--duo {
  background: var(--violet-100);
  border-color: var(--violet-200);
}
.cp-aside__link .cp-upgrade-chip--aside,
.cp-aside__link .cp-aside__nav-meta,
.cp-aside__link .cp-aside__onb-meta {
  grid-column: 3;
  grid-row: 1;
}
.cp-aside__nav-meta,
.cp-aside__onb-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
}
.cp-nav-chip,
.cp-onb-chip {
  flex: none;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-nav-chip--start,
.cp-onb-chip--start {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--brand-violet) 28%, transparent);
}
.cp-nav-chip--progress,
.cp-onb-chip--progress {
  background: var(--violet-100);
  color: var(--brand-violet);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.cp-nav-chip--almost,
.cp-onb-chip--almost {
  background: color-mix(in srgb, var(--brand-cyan) 14%, #fff);
  color: var(--brand-cyan-deep);
}
.cp-nav-chip--tasks,
.cp-onb-chip--tasks {
  background: var(--warning-bg);
  color: var(--warning);
}
.cp-nav-chip--wait,
.cp-onb-chip--wait {
  background: var(--grey-100);
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 10px;
}
.cp-nav-chip--action,
.cp-onb-chip--action {
  background: var(--violet-100);
  color: var(--brand-violet);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 10px;
}
.cp-nav-chip--pulse,
.cp-onb-chip--pulse {
  animation: cp-onb-chip-pulse 2.6s ease-in-out infinite;
}
@keyframes cp-onb-chip-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.94; }
}
.cp-aside__badge {
  flex: none;
  margin-left: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--grey-100);
  padding: 1px 7px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.cp-aside__badge.nav-badge--alert {
  background: var(--danger);
  color: #fff;
}
.cp-aside__link.is-active .cp-aside__badge:not(.nav-badge--alert) {
  background: var(--brand-violet);
  color: #fff;
}
/* Chip "Upgrade" / módulo bloqueado — cadeado + violeta (sem cyan/estrelas) */
.cp-upgrade-chip,
.cp-aside__upgrade.chip {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 6px;
  border-radius: var(--r-pill);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  background: var(--violet-50);
  color: var(--brand-violet);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 20%, var(--border));
  box-shadow: none;
}
.cp-aside__link .cp-upgrade-chip--aside {
  margin-left: 0;
  padding: 0;
  width: 22px;
  height: 22px;
  justify-content: center;
  gap: 0;
}
.cp-upgrade-chip--aside i,
.cp-upgrade-chip--aside svg {
  width: 12px;
  height: 12px;
}
.cp-upgrade-chip i,
.cp-upgrade-chip svg,
.cp-aside__upgrade.chip i,
.cp-aside__upgrade.chip svg {
  width: 11px;
  height: 11px;
  flex: none;
  color: var(--brand-violet);
}
.cp-aside__link--upgrade .cp-aside__link-label { color: var(--ink-3); }

/* Card vibrante de Upgrade — gradiente sólido brand (violet → violet-light → cyan).
   Aparece na sidebar e também como CTA na tela /cliente/contrato.
   Texto branco, glow violeta no hover, micro-tilt sutil. */
.cp-sales-card {
  position: relative;
  margin: 0;
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  border-radius: var(--r-md);
  background: var(--grad-brand);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(81, 46, 148, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  isolation: isolate;
}
.cp-sales-card--aside {
  flex-shrink: 0;
}
.cp-sales-card--aside .cp-sales-card__copy small {
  font-size: 11.5px;
  line-height: 1.45;
}
.cp-sales-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(255,255,255,0.22), transparent 60%),
    radial-gradient(220px 120px at 0% 100%, rgba(0, 176, 216, 0.35), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.cp-sales-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 32px rgba(81, 46, 148, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.cp-sales-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
.cp-sales-card__icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(4px);
  color: #fff;
  display: grid; place-items: center;
  flex: none;
}
.cp-sales-card__icon i,
.cp-sales-card__icon svg { width: 18px; height: 18px; }
.cp-sales-card__pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.30);
  white-space: nowrap;
}
.cp-sales-card__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp-sales-card__copy strong {
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.cp-sales-card__copy small {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.4;
}
.cp-sales-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-sm);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  transition: background 0.14s ease;
}
.cp-sales-card:hover .cp-sales-card__cta {
  background: rgba(255, 255, 255, 0.26);
}
.cp-sales-card__cta i,
.cp-sales-card__cta svg { width: 14px; height: 14px; }

/* Variante para uso fora da sidebar (página de contrato) — maior, ocupa largura */
.cp-sales-card--page {
  margin: 0;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  flex-direction: row;
  align-items: center;
  gap: var(--s-5);
  box-shadow:
    0 12px 40px rgba(81, 46, 148, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.cp-sales-card--page .cp-sales-card__top {
  flex-direction: column;
  align-items: flex-start;
  flex: none;
  gap: var(--s-2);
}
.cp-sales-card--page .cp-sales-card__icon {
  width: 48px; height: 48px;
}
.cp-sales-card--page .cp-sales-card__icon i,
.cp-sales-card--page .cp-sales-card__icon svg { width: 24px; height: 24px; }
.cp-sales-card--page .cp-sales-card__copy { flex: 1; }
.cp-sales-card--page .cp-sales-card__copy strong { font-size: 18px; }
.cp-sales-card--page .cp-sales-card__copy small { font-size: 13.5px; }
.cp-sales-card--page .cp-sales-card__cta {
  align-self: center;
  padding: 12px 18px;
  font-size: 13.5px;
}
@media (max-width: 768px) {
  .cp-sales-card--page { flex-direction: column; align-items: flex-start; }
  .cp-sales-card--page .cp-sales-card__cta { align-self: stretch; justify-content: center; }
}

/* Form embutido no card vibrante (página /cliente/contrato) */
.cp-sales-card__form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.cp-sales-card__form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.cp-sales-card__form select,
.cp-sales-card__form textarea,
.cp-sales-card__form input {
  width: 100%;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  outline: none;
  letter-spacing: 0;
  text-transform: none;
}
.cp-sales-card__form textarea { min-height: 72px; resize: vertical; }
.cp-sales-card__form select:focus,
.cp-sales-card__form textarea:focus,
.cp-sales-card__form input:focus {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.cp-sales-card__submit {
  width: 100%;
  height: 40px;
  background: #fff;
  border-color: #fff;
  color: var(--brand-violet);
  font-weight: 700;
  justify-content: center;
}
.cp-sales-card__submit:hover {
  background: #f3eaff;
  border-color: #f3eaff;
  color: var(--brand-violet);
  transform: translateY(-1px);
}
.cp-sales-card__submit i,
.cp-sales-card__submit svg { color: var(--brand-violet); }

.cp-aside__footer {
  flex: 1 0 auto;
  min-height: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-3) var(--s-4);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* Indicador de área (agência vs cliente) — rodapé da sidebar */
.cp-aside__context {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.cp-aside__context-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: var(--r-pill);
  flex: none;
}
.cp-aside__context-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex: none;
}
.cp-aside__context--agency .cp-aside__context-icon {
  background: var(--violet-50);
  border: 1px solid var(--violet-200);
  color: var(--brand-violet);
}
.cp-aside__context--client .cp-aside__context-icon {
  background: color-mix(in srgb, var(--brand-cyan) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 22%, var(--border));
  color: var(--brand-cyan-deep);
}
.cp-aside__context-icon i,
.cp-aside__context-icon svg { width: 18px; height: 18px; }
.cp-aside__context-icon--logo {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
}
.cp-aside__context-icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cp-aside__context--agency .cp-aside__context-dot {
  background: var(--brand-violet);
  box-shadow: 0 0 0 3px var(--violet-100);
}
.cp-aside__context--client .cp-aside__context-dot {
  background: var(--brand-cyan-deep);
  box-shadow: 0 0 0 3px var(--cyan-100);
}
.cp-aside__context-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.25;
}
.cp-aside__context-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: normal;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-aside__context-text .cp-aside__view-chip {
  align-self: flex-start;
  margin: 0 0 4px;
  padding: 2px 7px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  border-radius: var(--r-sm);
}
.cp-aside__view-chip--agency {
  background: var(--violet-100);
  color: var(--brand-violet);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 16%, var(--border));
}
.cp-aside__view-chip--client {
  background: color-mix(in srgb, var(--brand-cyan) 12%, #fff);
  color: var(--brand-cyan-deep);
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 20%, var(--border));
}
.cp-aside__context--agency .cp-aside__context-text strong { color: var(--ink-1); }
.cp-aside__context--client .cp-aside__context-text strong { color: var(--ink-1); }
.cp-aside__context-text span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-aside__context-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border: 1px dashed color-mix(in srgb, var(--brand-violet) 28%, var(--border));
  background: var(--surface);
  color: var(--brand-violet);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.cp-aside__context-switch--client {
  border-color: color-mix(in srgb, var(--brand-cyan) 35%, var(--border));
  color: var(--brand-cyan-deep);
}
.cp-aside__context-switch i,
.cp-aside__context-switch svg { width: 14px; height: 14px; flex: none; }
.cp-aside__context-switch:hover {
  background: var(--violet-50);
  border-color: var(--violet-200);
}
.cp-aside__context-switch--client:hover {
  background: var(--cyan-50);
  border-color: var(--cyan-200);
}

.cp-company-switch {
  position: relative;
}
.cp-company-switch__trigger {
  list-style: none;
  cursor: pointer;
}
.cp-company-switch__trigger::-webkit-details-marker { display: none; }
.cp-company-switch[open] .cp-company-switch__trigger {
  background: var(--cyan-50);
  border-color: var(--cyan-200);
}
.cp-company-switch__menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm, 0 4px 16px rgba(15, 23, 42, 0.08));
}
.cp-company-switch__form { margin: 0; }
.cp-company-switch__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--r-sm, 8px);
  background: transparent;
  color: var(--ink-2, var(--text));
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.cp-company-switch__item i,
.cp-company-switch__item svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--brand-cyan-deep);
}
.cp-company-switch__item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-company-switch__item small {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-cyan-deep);
}
.cp-company-switch__item:hover {
  background: var(--cyan-50);
}
.cp-company-switch__item--current {
  cursor: default;
  background: color-mix(in srgb, var(--brand-cyan) 8%, #fff);
}

.cp-aside__footer .cp-aside__client {
  margin: 0;
  width: 100%;
}
.cp-aside__client-meta .cp-aside__view-chip {
  align-self: flex-start;
  margin: 0 0 4px;
  padding: 2px 7px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  max-width: none;
}
.cp-aside__view-chip--agency {
  background: var(--violet-100);
  color: var(--brand-violet);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 16%, var(--border));
}
.cp-aside__view-chip--client {
  background: color-mix(in srgb, var(--brand-cyan) 12%, #fff);
  color: var(--brand-cyan-deep);
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 20%, var(--border));
}
.cp-aside__client:hover .cp-aside__view-chip--agency {
  background: color-mix(in srgb, var(--brand-violet) 14%, #fff);
  border-color: color-mix(in srgb, var(--brand-violet) 24%, var(--border));
}
.cp-aside__client:hover .cp-aside__view-chip--client {
  background: color-mix(in srgb, var(--brand-cyan) 18%, #fff);
  border-color: color-mix(in srgb, var(--brand-cyan) 28%, var(--border));
}
.cp-userbox {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: var(--s-2);
}
.cp-userbox__avatar {
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: var(--brand-violet);
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.cp-userbox__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.cp-userbox__meta strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-userbox__meta small {
  font-size: 11px;
  color: var(--ink-4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-userbox__role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-violet);
  background: var(--violet-100);
  padding: 1px 6px;
  border-radius: var(--r-sm);
  align-self: flex-start;
  margin-top: 2px;
}
.cp-aside__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-3);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.14s ease;
}
.cp-aside__logout:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}
.cp-aside__logout i,
.cp-aside__logout svg { width: 14px; height: 14px; }

/* Drawer backdrop (mobile only) */
.cp-aside-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(29, 27, 46, 0.4);
  z-index: 15;
}

/* ── CONTENT + TOPBAR ──────────────────────────────────────── */
.cp-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.cp-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-7);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.cp-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-3);
  cursor: pointer;
  place-items: center;
  flex: none;
  padding: 0;
  position: relative;
}
.cp-burger:hover {
  background: var(--violet-50);
  color: var(--brand-violet);
  border-color: var(--violet-200);
}
.cp-burger__ico {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.cp-burger__ico i,
.cp-burger__ico svg {
  width: 20px;
  height: 20px;
}
.cp-burger__ico--close { display: none; }
body.cp-aside-open .cp-burger {
  background: var(--violet-100);
  border-color: var(--violet-200);
  color: var(--brand-violet);
}
body.cp-aside-open .cp-burger__ico--menu { display: none; }
body.cp-aside-open .cp-burger__ico--close { display: grid; }
.cp-topbar__brand {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
}
.cp-topbar__titles { flex: 1; min-width: 0; }
.cp-topbar__titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  line-height: 1.2;
}
.cp-topbar__titles p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}
.cp-topbar__action { display: flex; gap: var(--s-2); }
/* Sino de notificações (topbar) */
.cp-notify {
  position: relative;
  flex: none;
}
.cp-notify__btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brand-violet);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.cp-notify__btn:hover,
.cp-notify__btn[aria-expanded="true"] {
  background: var(--violet-50);
  border-color: color-mix(in srgb, var(--brand-violet) 35%, var(--border));
  box-shadow: var(--shadow-1);
}
.cp-notify__btn.has-unread {
  border-color: color-mix(in srgb, var(--brand-violet) 45%, var(--border));
}
.cp-notify__btn i,
.cp-notify__btn svg {
  width: 18px;
  height: 18px;
}
.cp-notify__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  border: 2px solid var(--surface);
}
.cp-notify__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10050;
  width: min(380px, calc(100vw - var(--s-6)));
  max-height: min(70vh, 520px);
  display: none;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.cp-notify__panel.is-open {
  display: flex;
}
.cp-notify__panel[hidden] {
  display: none !important;
}
.cp-notify__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.cp-notify__head-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.cp-notify__mark-all {
  border: none;
  background: none;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-violet);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cp-notify__mark-all:disabled {
  opacity: 0.45;
  cursor: default;
  text-decoration: none;
}
.cp-notify__body {
  overflow-y: auto;
  padding: var(--s-2);
}
.cp-notify__empty {
  margin: var(--s-4) var(--s-3);
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}
.cp-notify__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.cp-notify__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: var(--s-2);
  padding: var(--s-2);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.cp-notify__item:not(.is-read) {
  background: var(--violet-50);
  border-color: color-mix(in srgb, var(--brand-violet) 22%, var(--border));
}
.cp-notify__item.is-read {
  opacity: 0.82;
}
.cp-notify__item-main {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.cp-notify__item-main:hover .cp-notify__title {
  color: var(--brand-violet);
}
.cp-notify__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cp-notify__row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
}
.cp-notify__ico {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex: none;
}
.cp-notify__ico i,
.cp-notify__ico svg {
  width: 15px;
  height: 15px;
}
.cp-notify__ico--warn {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid color-mix(in srgb, var(--warning) 25%, var(--border));
}
.cp-notify__ico--ok {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 25%, var(--border));
}
.cp-notify__ico--comment {
  background: var(--violet-100);
  color: var(--brand-violet);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 20%, var(--border));
}
.cp-notify__ico--info {
  background: var(--cyan-100);
  color: var(--brand-cyan-deep);
  border: 1px solid color-mix(in srgb, var(--brand-cyan-deep) 20%, var(--border));
}
.cp-notify__title {
  display: block;
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.3;
}
.cp-notify__body-text {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.4;
}
.cp-notify__time {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-4);
  white-space: nowrap;
  text-align: right;
  line-height: 1.3;
}
.cp-notify__read {
  align-self: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.cp-notify__read:hover {
  border-color: var(--brand-violet);
  color: var(--brand-violet);
  background: var(--violet-50);
}
@media (max-width: 480px) {
  .cp-notify__panel {
    right: calc(-1 * var(--s-4));
    width: min(360px, calc(100vw - var(--s-4)));
  }
  .cp-notify__item {
    grid-template-columns: 1fr;
  }
  .cp-notify__read {
    justify-self: end;
  }
}

.cp-container {
  width: 100%;
  max-width: var(--cp-content-max);
  margin: 0 auto;
  padding-inline: var(--s-7);
}
.cp-container--narrow { max-width: var(--cp-content-narrow); }
.cp-page { padding: var(--s-6) 0 var(--s-9); }

/* Toast / flash (sessão) — canto inferior direito, fora do fluxo da página */
.cp-flash-stack {
  position: fixed;
  bottom: max(var(--s-5), env(safe-area-inset-bottom, 0px));
  right: max(var(--s-5), env(safe-area-inset-right, 0px));
  z-index: 10060;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-2);
  width: min(22rem, calc(100vw - var(--s-7)));
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.cp-flash {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  width: 100%;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  border-left-width: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  pointer-events: auto;
  animation: cp-flash-in 0.28s ease;
}
.cp-flash.is-leaving {
  animation: cp-flash-out 0.32s ease forwards;
}
@keyframes cp-flash-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes cp-flash-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(18px); }
}
.cp-flash i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.cp-flash--success { border-left-color: var(--success); color: var(--success); }
.cp-flash--error,
.cp-flash--danger  { border-left-color: var(--danger);  color: var(--danger); }
.cp-flash--warning { border-left-color: var(--warning); color: var(--warning); }
.cp-flash--info    { border-left-color: var(--brand-cyan-deep); color: var(--brand-cyan-deep); }

/* Alerts (notificações inline no topo) */
.cp-alerts {
  margin: var(--s-4) auto 0;
  max-width: var(--cp-content-max);
  padding-inline: var(--s-7);
}
.cp-alert {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: all 0.14s ease;
}
.cp-alert:hover {
  background: var(--violet-50);
  border-color: var(--violet-200);
  box-shadow: var(--shadow-2);
}
.cp-alert__icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--violet-100);
  border: 1px solid var(--violet-200);
  color: var(--brand-violet);
  display: grid; place-items: center;
  flex: none;
}
.cp-alert__text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-alert__title { color: var(--ink-1); font-weight: 700; font-size: 13.5px; }
.cp-alert__body { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.cp-alert__more,
.cp-alert__cta {
  color: var(--brand-violet);
  font-weight: 600;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cp-alert__cta i,
.cp-alert__cta svg { width: 14px; height: 14px; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.cp-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 36px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s var(--ease);
}
.cp-btn:hover,
.btn:hover { border-color: var(--brand-violet); color: var(--brand-violet); }
.cp-btn:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--violet-200);
}
.cp-btn i, .cp-btn svg,
.btn i, .btn svg { width: 14px; height: 14px; flex: none; }

.cp-btn--primary, .btn-primary {
  background: var(--brand-violet);
  border-color: var(--brand-violet);
  color: #fff;
}
.cp-btn--primary:hover, .btn-primary:hover {
  background: #43267d;
  border-color: #43267d;
  color: #fff;
}
.cp-btn--accent, .btn-accent {
  background: var(--brand-cyan);
  border-color: var(--brand-cyan);
  color: #06222b;
}
.cp-btn--accent:hover, .btn-accent:hover {
  background: var(--brand-cyan-deep);
  border-color: var(--brand-cyan-deep);
  color: #fff;
}
.cp-btn--ghost, .btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink-3);
}
.cp-btn--ghost:hover, .btn-ghost:hover {
  background: var(--violet-50);
  border-color: var(--violet-200);
  color: var(--brand-violet);
}
.cp-btn--outline {
  background: var(--surface);
  border-color: var(--brand-violet);
  color: var(--brand-violet);
}
.cp-btn--outline:hover {
  background: var(--brand-violet);
  border-color: var(--brand-violet);
  color: #fff;
}
.cp-btn--outline:hover i,
.cp-btn--outline:hover svg { color: #fff; }
/* Botão claro sobre fundo brand (hero roxo) */
.cp-btn--on-brand {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--brand-violet);
  box-shadow: 0 4px 16px rgba(29, 27, 46, 0.14);
}
.cp-btn--on-brand:hover {
  background: #fff;
  border-color: #fff;
  color: var(--brand-violet);
  box-shadow: 0 8px 22px rgba(29, 27, 46, 0.2);
  transform: translateY(-1px);
}
.cp-btn--on-brand:hover i,
.cp-btn--on-brand:hover svg { color: var(--brand-violet); }
.cp-btn--primary:hover i,
.cp-btn--primary:hover svg,
.cp-btn--primary:focus-visible i,
.cp-btn--primary:focus-visible svg { color: #fff; }
.cp-btn--danger, .btn-danger {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--danger);
}
.cp-btn--danger:hover, .btn-danger:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}
.cp-btn--success, .btn-success {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.cp-btn--success:hover, .btn-success:hover {
  background: #226e55;
  border-color: #226e55;
  color: #fff;
}
.cp-btn--warning, .btn-warning {
  background: transparent;
  border-color: var(--warning);
  color: var(--warning);
}
.cp-btn--warning:hover, .btn-warning:hover { background: var(--warning-bg); }

.cp-btn--lg, .btn-lg {
  height: 48px;
  padding: 12px 22px;
  font-size: 14.5px;
}
.cp-btn--sm, .btn-sm {
  height: 28px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: var(--r-sm);
}
.cp-btn--block, .btn-block { width: 100%; }
.cp-btn--icon, .btn-icon { width: 36px; padding: 8px; }

/* ── CARD / PANEL ──────────────────────────────────────────── */
.cp-card, .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
}
.cp-card { transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.cp-card:hover { box-shadow: var(--shadow-2); }

.cp-card > h2,
.cp-card-title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-3);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cp-card > h2 i,
.cp-card-title i { width: 16px; height: 16px; color: var(--brand-violet); }

.cp-mb-2 { margin-bottom: var(--s-3); }
.cp-mb-3 { margin-bottom: var(--s-4); }
.cp-mt-2 { margin-top: var(--s-3); }
.cp-text-muted { color: var(--ink-3); }
.cp-text-small { font-size: 12.5px; }

/* Grid utils */
.cp-grid, .grid { display: grid; gap: var(--s-4); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── MAIN PAGE LAYOUT (dashboard: 2/3 + 1/3) ───────────────── */
.cp-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-5);
}
@media (max-width: 1024px) {
  .cp-main { grid-template-columns: 1fr; }
}

/* ── HERO (cp-hero) ────────────────────────────────────────── */
.cp-hero {
  background:
    radial-gradient(700px 280px at 100% 0%, var(--cyan-100), transparent 60%),
    radial-gradient(800px 360px at 0% 100%, var(--violet-100), transparent 65%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: var(--s-7);
  margin-bottom: var(--s-5);
}
.cp-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.cp-hero h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-1);
  margin: 0 0 var(--s-2);
  line-height: 1.15;
}
.cp-hero h1 { /* used in client-header alt hero */
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-1);
  margin: var(--s-3) 0;
  line-height: 1.05;
}
.cp-hero h1 em,
.cp-hero h2 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cp-hero p {
  font-size: 15px;
  color: var(--ink-3);
  max-width: 620px;
  margin: 0 0 var(--s-4);
}
.cp-hero p strong { color: var(--ink-2); }
.cp-hero-eyebrow,
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-violet);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.cp-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.cp-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  color: var(--ink-2);
}
.cp-hero-tag i { width: 12px; height: 12px; color: var(--brand-violet); }
.cp-hero__contract-link { font-weight: 600; }

/* ── CLIENT HEADER (white-label parcial) ───────────────────── */
.client-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.client-header-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-right: var(--s-4);
  border-right: 1px solid var(--border);
}
.client-logo {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--client-color);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.client-name { display: flex; flex-direction: column; line-height: 1.2; }
.client-name strong { font-size: 14px; color: var(--ink-1); font-weight: 700; }
.client-name span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
}
.client-header-nav {
  display: flex;
  gap: var(--s-1);
  margin-left: var(--s-3);
}
.client-header-nav a {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
}
.client-header-nav a:hover { background: var(--violet-50); color: var(--brand-violet); }
.client-header-nav a.is-active {
  background: var(--violet-100);
  color: var(--brand-violet);
  font-weight: 600;
}
.client-header-actions {
  margin-left: auto;
  display: flex;
  gap: var(--s-2);
  align-items: center;
}
.bell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-3);
}
.bell:hover { background: var(--violet-50); color: var(--brand-violet); }
.bell i, .bell svg { width: 18px; height: 18px; }
.bell .dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--brand-cyan);
  border: 1.5px solid var(--surface);
}
.client-foot-cred {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-top: var(--s-3);
}
.client-foot-cred b { color: var(--brand-violet); font-weight: 700; }

/* ── KPI / DASH STATS ──────────────────────────────────────── */
.cp-kpi-grid,
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.cp-kpi-card,
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.cp-kpi-card:hover,
.stat:hover { border-color: var(--brand-violet); }
.cp-kpi-card.is-attention,
.stat.is-attention {
  border-color: var(--border);
  background: var(--surface);
}
.cp-kpi-card.is-attention .cp-kpi-value,
.stat.is-attention .stat-value { color: var(--ink-1); }

.cp-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  margin-bottom: var(--s-2);
  background: var(--violet-100);
  color: var(--brand-violet);
  display: grid; place-items: center;
}
.cp-kpi-icon i, .cp-kpi-icon svg { width: 18px; height: 18px; }
.cp-kpi-icon.is-warn { background: var(--warning-bg); color: var(--warning); }
.cp-kpi-icon.is-success { background: var(--success-bg); color: var(--success); }
.cp-kpi-icon.is-info { background: var(--cyan-100); color: var(--brand-cyan-deep); }
.cp-kpi-icon.is-danger { background: var(--danger-bg); color: var(--danger); }

.cp-kpi-label,
.stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cp-kpi-value,
.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-delta {
  font-size: 11.5px;
  color: var(--success);
  font-weight: 600;
}
.stat-delta.down { color: var(--danger); }

/* ── MODULE CARDS ──────────────────────────────────────────── */
.cp-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-3);
}
.cp-module-grid--dashboard { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .cp-module-grid--dashboard { grid-template-columns: 1fr; }
}
.cp-module-card {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.cp-module-card--link:hover {
  border-color: var(--brand-violet);
  box-shadow: var(--shadow-1);
}
.cp-module-card.is-active {
  border-color: var(--success);
  background: linear-gradient(180deg, var(--success-bg), var(--surface) 55%);
}
.cp-module-card.is-locked {
  border-color: color-mix(in srgb, var(--border) 88%, var(--brand-violet) 12%);
  background: var(--surface);
  opacity: 0.92;
}
.cp-module-card.is-locked:hover {
  opacity: 1;
  border-color: color-mix(in srgb, var(--brand-violet) 28%, var(--border));
  background: var(--violet-50);
}
.cp-module-card__icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--violet-100);
  color: var(--brand-violet);
  display: grid; place-items: center;
  flex: none;
}
.cp-module-card__icon i,
.cp-module-card__icon svg { width: 18px; height: 18px; }
.cp-module-card.is-active .cp-module-card__icon {
  background: var(--success-bg);
  color: var(--success);
}
.cp-module-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cp-module-card__body strong {
  color: var(--ink-1);
  font-weight: 700;
  font-size: 13.5px;
}
.cp-module-card__status {
  color: var(--ink-3);
  font-size: 12px;
}

/* Quick actions */
.cp-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-2);
}
.cp-sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: all 0.14s ease;
}
.cp-sidebar-link:hover {
  background: var(--violet-50);
  color: var(--brand-violet);
  border-color: var(--violet-200);
}
.cp-sidebar-link i { width: 14px; height: 14px; color: var(--ink-3); }
.cp-sidebar-link:hover i { color: var(--brand-violet); }

/* Info row */
.cp-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.cp-info-row:last-child { border-bottom: 0; }
.cp-info-row span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cp-info-row strong { color: var(--ink-1); font-weight: 600; }

/* ── BADGES / CHIPS ────────────────────────────────────────── */
.chip,
.cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--violet-100);
  color: var(--brand-violet);
}
.chip .dot,
.cp-badge .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.chip.cyan,
.cp-badge--info,
.cp-badge.cyan { background: var(--cyan-100); color: var(--brand-cyan-deep); }
.chip.grey,
.cp-badge--muted { background: var(--grey-100); color: var(--ink-3); }
.chip.ink   { background: var(--brand-ink); color: #fff; }
.chip.success,
.cp-badge--success { background: var(--success-bg); color: var(--success); }
.chip.warning,
.cp-badge--warn { background: var(--warning-bg); color: var(--warning); }
.chip.danger,
.cp-badge--danger { background: var(--danger-bg); color: var(--danger); }

/* ── AVATAR ────────────────────────────────────────────────── */
.avatar {
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: var(--brand-violet);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  letter-spacing: 0;
  flex: none;
}
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; border-width: 0; box-shadow: none; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar + .avatar { margin-left: -8px; }

/* ── FORM FIELDS ───────────────────────────────────────────── */
.cp-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-3); }
.cp-form-group label,
.field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cp-form-group input,
.cp-form-group textarea,
.cp-form-group select,
.input, .select, .textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-1);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  height: 44px;
  outline: none;
  width: 100%;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.input.lg, .cp-form-group input.lg { height: 52px; font-size: 15px; padding: 12px 16px; }
.textarea,
.cp-form-group textarea { height: auto; min-height: 90px; resize: vertical; padding: 12px 14px; }
.input:focus, .select:focus, .textarea:focus,
.cp-form-group input:focus,
.cp-form-group textarea:focus,
.cp-form-group select:focus {
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px var(--violet-200);
}

/* ── LOGIN (com magic link) ────────────────────────────────── */
.cp-login-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--bg);
}
.cp-login-aside {
  position: relative;
  background: var(--grad-brand);
  color: #fff;
  padding: clamp(var(--s-5), 4vw, var(--s-7)) clamp(var(--s-4), 5vw, var(--s-7));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-5);
  overflow: hidden;
  min-height: 0;
}
.cp-login-aside > div:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 26rem;
}
@media (max-width: 768px) {
  .cp-login-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  .cp-login-aside { display: none; }
  .cp-login-main {
    padding: max(var(--s-5), env(safe-area-inset-top, 0px)) var(--s-4) max(var(--s-5), env(safe-area-inset-bottom, 0px));
    place-items: center;
  }
  .cp-login-card {
    max-width: 420px;
    padding: var(--s-5);
    box-shadow: var(--shadow-1);
  }
}
.cp-login-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 100% 100%, rgba(0, 176, 216, 0.35), transparent 60%),
    radial-gradient(400px 200px at 0% 0%, rgba(255, 255, 255, 0.15), transparent 60%);
  pointer-events: none;
}
.cp-login-aside > * { position: relative; z-index: 1; }
.cp-login-aside .cp-logo { color: #fff; }
.cp-login-aside h2 {
  font-size: clamp(30px, 2.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
  line-height: 1.15;
}
.cp-login-aside p {
  font-size: clamp(15.5px, 1.15vw, 17.5px);
  line-height: 1.55;
  opacity: 0.92;
  margin: 0 0 var(--s-5);
}
.cp-aside-list { display: flex; flex-direction: column; gap: var(--s-3); }
.cp-aside-list > div {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 15.5px;
  line-height: 1.4;
  opacity: 0.96;
}
.cp-aside-list i { width: 20px; height: 20px; }

.cp-login-main {
  display: grid;
  place-items: center;
  padding: clamp(var(--s-5), 4vw, var(--s-7)) clamp(var(--s-4), 4vw, var(--s-5));
  min-width: 0;
}
.cp-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: var(--s-7);
}
.login-mark {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: var(--s-5);
}
.cp-login-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-1);
}
.cp-login-header p {
  margin: var(--s-2) 0 var(--s-5);
  font-size: 13.5px;
  color: var(--ink-3);
}
.cp-login-form { display: flex; flex-direction: column; gap: var(--s-3); }
.cp-login-form[hidden] { display: none !important; }
.cp-login-modes { display: flex; flex-direction: column; gap: var(--s-3); }
.cp-error-message {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--danger-bg);
  border: 1px solid rgba(185, 52, 58, 0.25);
  color: var(--danger);
  border-radius: var(--r-md);
  font-size: 13px;
  margin-bottom: var(--s-3);
}
.cp-error-message i { width: 16px; height: 16px; }

/* Chip de contexto — identifica qual área da plataforma está sendo acessada
   (PAINEL DA AGÊNCIA no /login, VISÃO DO CLIENTE no /cliente/login). */
.cp-context-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: var(--violet-100);
  color: var(--brand-violet);
  margin-bottom: var(--s-3);
}
.cp-context-chip i, .cp-context-chip svg { width: 13px; height: 13px; flex: none; }
.cp-context-chip--cyan { background: var(--cyan-100); color: var(--brand-cyan-deep); }
.cp-context-chip--ink  { background: var(--brand-ink);  color: #fff; }

.cp-login-footer {
  margin-top: var(--s-5);
  font-size: 12px;
  color: var(--ink-4);
  text-align: center;
}

/* "ou" divider + magic-link callout */
.login-or {
  text-align: center;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: var(--s-4) 0;
  position: relative;
}
.login-or::before,
.login-or::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  background: var(--border);
  width: calc(50% - 24px);
}
.login-or::before { left: 0; }
.login-or::after { right: 0; }

.magic-link {
  margin-top: var(--s-3);
  padding: var(--s-3);
  background: var(--cyan-50);
  border: 1px dashed var(--cyan-200);
  border-radius: var(--r-md);
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.magic-link b { color: var(--brand-cyan-deep); }
.magic-link a { color: var(--brand-violet); font-weight: 600; text-decoration: none; }
.magic-link a:hover { text-decoration: underline; }
.magic-link-resend { display: inline; margin: 0; padding: 0; }
.magic-link-resend__btn {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--brand-violet);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.magic-link-resend__btn:hover { color: var(--brand-cyan-deep); }
.magic-link[hidden] { display: none !important; }

.login-toggle {
  margin-top: var(--s-3);
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}
.login-toggle a,
.login-toggle button {
  background: transparent;
  border: 0;
  color: var(--brand-violet);
  font-weight: 600;
  cursor: pointer;
  font-size: 12.5px;
  padding: 0;
  font-family: inherit;
}
.login-toggle a:hover,
.login-toggle button:hover { text-decoration: underline; }

/* ── APPROVAL CARD (fila de aprovações) ────────────────────── */
.approval-card,
.cf2-q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  display: flex;
  gap: var(--s-4);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.approval-card:hover,
.cf2-q:hover {
  border-color: var(--brand-violet);
  box-shadow: var(--shadow-1);
}
.approval-thumb,
.cf2-q__media {
  width: 96px; height: 96px;
  flex: none;
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.4) 0 2px, transparent 2px 10px),
    var(--grad-brand);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.approval-thumb img,
.cf2-q__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.approval-thumb .kind {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(29,27,46,0.78);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
}
.approval-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.approval-title,
.cf2-q__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-1);
  margin: 0;
  line-height: 1.35;
}
.approval-meta,
.cf2-q__when {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.approval-meta b,
.cf2-q__when strong { color: var(--ink-2); }
.approval-actions {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  margin-top: 6px;
}
.approval-card .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-2);
  flex: none;
}
.deadline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
  text-align: right;
}
.deadline.is-urgent { color: var(--warning); font-weight: 600; }
.deadline.is-late { color: var(--danger); font-weight: 600; }

/* tabs/chips de filtro da fila */
.cf2-tabs,
.approval-filters {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: 3px;
  background: var(--grey-100);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
}
.cf2-tab,
.approval-filters button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.14s ease;
}
.cf2-tab:hover,
.approval-filters button:hover { color: var(--brand-violet); background: var(--violet-50); }
.cf2-tab.is-active,
.approval-filters button.is-active {
  background: var(--surface);
  color: var(--brand-violet);
  box-shadow: var(--shadow-1);
  font-weight: 700;
}
.cf2-tab__n {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--violet-100);
  color: var(--brand-violet);
  padding: 1px 6px;
  border-radius: var(--r-pill);
}
.cf2-tab.is-active .cf2-tab__n { background: var(--brand-violet); color: #fff; }

/* ── DETAIL LAYOUT (2 colunas) ─────────────────────────────── */
.detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--s-5);
  align-items: start;
}
@media (max-width: 1024px) {
  .detail { grid-template-columns: 1fr; }
}
.detail-left,
.detail-right {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.detail-cta {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: sticky;
  bottom: var(--s-4);
  box-shadow: var(--shadow-2);
  z-index: 5;
}
.detail-cta .cp-btn,
.detail-cta .btn { flex: 1; justify-content: center; }

.t-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-violet);
}
.t-mono { font-family: var(--font-mono); }
.t-small { font-size: 12.5px; color: var(--ink-3); }

/* ── IG / FB / STORY PREVIEW ───────────────────────────────── */
.ig-preview,
.ig-mock {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  font-family: var(--font-sans);
  color: #262626;
  margin: 0 auto;
}
.ig-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 12px 14px;
  border-bottom: 1px solid #efefef;
}
.ig-avatar,
.ig-av {
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: var(--client-color);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
.ig-meta { display: flex; flex-direction: column; line-height: 1.2; }
.ig-meta strong { font-size: 13px; color: #262626; font-weight: 600; }
.ig-meta span { font-size: 11px; color: #8e8e8e; }
.ig-dots { margin-left: auto; color: #262626; }
.ig-img {
  width: 100%;
  aspect-ratio: 1/1;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.4) 0 2px, transparent 2px 10px),
    var(--grad-brand);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.ig-img > img { width: 100%; height: 100%; object-fit: cover; }
.ig-img .ratio-label {
  background: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  padding: 3px 9px;
  border-radius: 999px;
}
.ig-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 14px 0;
  color: #262626;
}
.ig-actions .save { margin-left: auto; }
.ig-actions i,
.ig-actions svg { width: 22px; height: 22px; }
.ig-likes {
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #262626;
  margin-top: 6px;
}
.ig-caption,
.ig-cap {
  padding: 4px 14px 0;
  font-size: 13px;
  color: #262626;
  line-height: 1.4;
}
.ig-caption b,
.ig-cap strong { font-weight: 600; }
.ig-time {
  padding: 6px 14px 12px;
  font-size: 10px;
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ig-dots-pager {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 8px 0 0;
}
.ig-dots-pager span {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #c7c7c7;
}
.ig-dots-pager span.is-active,
.ig-dots-pager span.on { background: #0095f6; }

/* Story preview */
.story-preview {
  width: 220px;
  height: 391px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.3) 0 2px, transparent 2px 10px),
    var(--grad-brand);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  margin: 0 auto;
}
.story-bars {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  display: flex;
  gap: 3px;
}
.story-bars span {
  flex: 1; height: 2px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}
.story-bars span.is-active { background: rgba(255,255,255,1); }
.story-head {
  position: absolute;
  top: 18px; left: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.story-head .ig-avatar {
  width: 26px; height: 26px;
  font-size: 10px;
  border: 1.5px solid #fff;
}
.story-head strong { font-size: 12px; }
.story-head span { font-size: 10px; opacity: 0.8; }
.story-cta {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--ink-1);
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* ── PIN (comentário em ponto da arte) ─────────────────────── */
.preview-with-pins {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.pin {
  position: absolute;
  z-index: 5;
  width: 28px; height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--brand-violet);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(81, 46, 148, 0.4);
  cursor: pointer;
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}
.pin > span { transform: rotate(45deg); display: inline-block; }
.pin:hover { transform: rotate(-45deg) scale(1.08); }
.pin.is-resolved {
  background: var(--success);
  box-shadow: 0 4px 12px rgba(44, 138, 107, 0.4);
}
.pin.is-active {
  background: var(--brand-cyan-deep);
  box-shadow: 0 4px 12px rgba(0, 132, 190, 0.4);
  animation: pinPulse 1.5s ease-out infinite;
}
@keyframes pinPulse {
  0%, 100% { transform: rotate(-45deg) scale(1); }
  50%      { transform: rotate(-45deg) scale(1.12); }
}
.pin-overlay {
  position: absolute;
  inset: 0;
  cursor: crosshair;
  z-index: 2;
}

/* ── FEEDBACK / THREAD ─────────────────────────────────────── */
.feedback {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.feedback h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.feedback h3 .chip {
  letter-spacing: 0;
  text-transform: none;
}
.thread {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.comment,
.cf2-msg {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--s-3);
  padding: var(--s-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
}
.cf2-msg--me {
  border-color: var(--violet-200);
  background: var(--violet-50);
}
.comment.has-pin { padding-left: var(--s-7); }
.comment .pin-ref {
  position: absolute;
  left: var(--s-3); top: var(--s-3);
  width: 22px; height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--brand-violet);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.comment .pin-ref > span { transform: rotate(45deg); display: inline-block; }
.comment.is-resolved .pin-ref { background: var(--success); }
.comment.is-resolved {
  background: var(--success-bg);
  border-color: rgba(44, 138, 107, 0.25);
}
.comment-head,
.cf2-msg__head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 12.5px;
  flex-wrap: wrap;
}
.comment-head b,
.cf2-msg__head b { color: var(--ink-1); font-weight: 700; }
.comment-head .time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  margin-left: auto;
}
.comment-body {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
  line-height: 1.5;
}
.comment-actions {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-2);
  font-size: 12px;
}
.comment-actions a {
  color: var(--brand-violet);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}
.comment-actions a:hover { text-decoration: underline; }

.feedback-composer {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  align-items: flex-end;
}
.feedback-composer textarea {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-1);
  resize: none;
  min-height: 28px;
  max-height: 160px;
  height: auto;
}
.feedback-tools {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.feedback-tools .cp-btn,
.feedback-tools .btn { background: var(--surface); }

/* ── CALENDAR ──────────────────────────────────────────────── */
.cal,
.cf2-cal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cal-head,
.cf2-cal__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.cal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-1);
}
.cal-head .nav { margin-left: auto; display: flex; gap: var(--s-1); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-dow,
.cf2-cal__dow span {
  padding: var(--s-2);
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.cal-day,
.cf2-cell {
  min-height: 96px;
  padding: 6px 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.12s ease;
}
.cal-day:hover,
.cf2-cell:hover { background: var(--violet-50); }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day .num,
.cf2-cell__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.cal-day.is-today,
.cf2-cell--today { background: var(--violet-50); }
.cal-day.is-today .num,
.cf2-cell--today .cf2-cell__num { color: var(--brand-violet); }
.cal-day.is-other { background: var(--surface-2); }
.cal-day.is-other .num { color: var(--ink-5); }

.cal-event,
.cf2-ev {
  font-size: 11px;
  background: var(--violet-100);
  color: var(--brand-violet);
  padding: 2px 6px;
  border-radius: 4px;
  border-left: 2px solid var(--brand-violet);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event.cyan {
  background: var(--cyan-100);
  color: var(--brand-cyan-deep);
  border-color: var(--brand-cyan-deep);
}
.cal-event.success {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success);
}
.cal-event.warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning);
}
.cal-event.danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger);
}

/* ── ONBOARDING STEPPER + TASK CARDS ───────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-4);
}
.step .num {
  width: 24px; height: 24px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.step.is-current .num {
  background: var(--brand-violet);
  color: #fff;
  border-color: var(--brand-violet);
}
.step.is-current { color: var(--ink-1); }
.step.is-done .num {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.step.is-done .num i { width: 12px; height: 12px; }
.step.is-done { color: var(--ink-2); }
.step-line {
  flex: 1;
  min-width: 12px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}
.step-line.is-done { background: var(--success); }

.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.task-card.is-current {
  border-color: var(--brand-violet);
  background: linear-gradient(180deg, var(--violet-50), var(--surface));
}
.task-check {
  width: 22px; height: 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
  flex: none;
}
.task-card.is-current .task-check { border-color: var(--brand-violet); }
.task-card.is-done .task-check {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.task-card.is-done .task-check i,
.task-card.is-done .task-check svg { width: 12px; height: 12px; }
.task-card.is-done .task-name {
  color: var(--ink-3);
  text-decoration: line-through;
}
.task-card > div { flex: 1; min-width: 0; }
.task-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-1);
}
.task-desc {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.task-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  margin-left: auto;
  flex: none;
}

/* ── CONTRACT ──────────────────────────────────────────────── */
.contract {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.contract-head {
  padding: var(--s-5);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--violet-50), var(--surface));
}
.contract-head h3 {
  margin: var(--s-3) 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-1);
}
.contract-head .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-4);
  margin-top: 4px;
}
.contract-body {
  padding: var(--s-5);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.contract-body p { margin: 0 0 var(--s-3); }
.contract-body p:last-child { margin-bottom: 0; }
.contract-foot {
  padding: var(--s-4) var(--s-5);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.signature-pad {
  flex: 1;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, var(--border) 31px 32px),
    var(--surface);
  height: 64px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}

/* ── METRICS (sparkline) ───────────────────────────────────── */
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  box-shadow: var(--shadow-1);
}
.metric-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.metric-head i,
.metric-head svg {
  width: 16px; height: 16px;
  color: var(--brand-violet);
}
.metric-head .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: -0.02em;
}
.metric-value sup {
  font-size: 14px;
  color: var(--ink-4);
  font-weight: 500;
  vertical-align: top;
}
.metric-delta {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--success);
}
.metric-delta.down { color: var(--danger); }
.metric-spark {
  height: 28px;
  width: 100%;
  background: linear-gradient(180deg, var(--violet-100), transparent);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.metric-spark svg { width: 100%; height: 100%; }

/* ── NOTIFICATIONS LIST ────────────────────────────────────── */
.notif-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.notif {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.notif:hover { background: var(--violet-50); }
.notif:last-child { border-bottom: 0; }
.notif.is-unread { background: var(--cyan-50); }
.notif-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--violet-100);
  color: var(--brand-violet);
  display: grid; place-items: center;
  flex: none;
}
.notif-icon i,
.notif-icon svg { width: 18px; height: 18px; }
.notif-icon.success { background: var(--success-bg); color: var(--success); }
.notif-icon.warning { background: var(--warning-bg); color: var(--warning); }
.notif-icon.cyan    { background: var(--cyan-100); color: var(--brand-cyan-deep); }
.notif-icon.danger  { background: var(--danger-bg); color: var(--danger); }
.notif-text {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.notif-text b { color: var(--ink-1); font-weight: 700; }
.notif-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  white-space: nowrap;
  align-self: flex-start;
}

/* ── EMPTY STATES ──────────────────────────────────────────── */
.empty,
.cf2-empty,
.cp-empty {
  text-align: center;
  padding: var(--s-9) var(--s-5);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}
.empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--s-4);
  border-radius: var(--r-md);
  background: var(--violet-50);
  display: grid; place-items: center;
  color: var(--brand-violet);
}
.empty-icon i,
.empty-icon svg { width: 28px; height: 28px; }
.empty h3,
.cf2-empty h3,
.cp-empty h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.empty p,
.cf2-empty p,
.cp-empty p {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: var(--s-2) auto var(--s-4);
  max-width: 360px;
}

/* ── CALLOUT ───────────────────────────────────────────────── */
.callout {
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  font-size: 12.5px;
  color: var(--ink-3);
}
.callout b { color: var(--ink-1); }

/* ── TABLES ────────────────────────────────────────────────── */
.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cp-table th {
  text-align: left;
  padding: var(--s-2) var(--s-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.cp-table td {
  padding: var(--s-3);
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
}
.cp-table tbody tr:hover td { background: var(--violet-50); }

/* ── PROGRESS BAR ──────────────────────────────────────────── */
.progress,
.cp-progress {
  width: 100%;
  height: 6px;
  background: var(--grey-100);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress > span,
.cp-progress-bar {
  display: block;
  height: 100%;
  background: var(--grad-brand);
  border-radius: var(--r-pill);
}

/* ── PHONE MOBILE PREVIEW (component) ──────────────────────── */
.phone {
  width: 320px;
  height: 640px;
  background: #000;
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow-3);
  margin: 0 auto;
}
.phone-inner {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-status {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-4);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-1);
}
.phone-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.phone-tab {
  display: flex;
  gap: var(--s-1);
  padding: var(--s-1);
  background: var(--grey-100);
  border-radius: var(--r-md);
}
.phone-tab button {
  flex: 1;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 6px;
  border-radius: 7px;
  cursor: pointer;
}
.phone-tab button.is-active {
  background: var(--surface);
  color: var(--brand-violet);
  box-shadow: var(--shadow-1);
}
.phone-bottom-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE (portal — mobile-first breakpoints) ─────────── */
@media (max-width: 1024px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body.cp-aside-locked,
  body.cp-aside-open {
    overflow: hidden;
    touch-action: none;
  }
  body.cp-req-modal-open {
    overflow: hidden;
    touch-action: none;
  }
  .cp-shell {
    grid-template-columns: 1fr;
    overflow-x: clip;
  }
  .cp-aside {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    width: min(92vw, 300px);
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
    box-shadow: var(--shadow-3);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .cp-aside-backdrop { z-index: 40; }
  .cp-topbar { z-index: 30; }
  .cp-aside__toolbar { display: flex; }
  body.cp-aside-open .cp-aside,
  .cp-aside.is-open { transform: translateX(0); }
  body.cp-aside-open .cp-aside-backdrop { display: block; }
  .cp-aside__close { display: inline-flex; }
  .cp-burger { display: inline-grid; }
  .cp-container {
    padding-inline: max(var(--s-4), env(safe-area-inset-left, 0px));
    padding-right: max(var(--s-4), env(safe-area-inset-right, 0px));
  }
  .cp-topbar {
    padding-inline: max(var(--s-4), env(safe-area-inset-left, 0px));
    padding-right: max(var(--s-4), env(safe-area-inset-right, 0px));
    flex-wrap: wrap;
    row-gap: var(--s-2);
  }
  .cp-topbar__action {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .cp-page { padding-bottom: max(var(--s-9), env(safe-area-inset-bottom, 0px)); }
  .cp-kpi-grid,
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approval-card,
  .cf2-q { flex-wrap: wrap; align-items: flex-start; }
  .approval-card .right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .client-header { flex-wrap: wrap; }
  .client-header-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .client-header-nav::-webkit-scrollbar { display: none; }
  .cf2-board {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .cf2-col { scroll-snap-align: start; }
}

@media (max-width: 768px) {
  .cp-topbar__titles h1 { font-size: 18px; }
  .cp-topbar__titles p {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cp-card,
  .panel { padding: var(--s-4); }
  .cp-hero {
    padding: var(--s-5);
    margin-bottom: var(--s-4);
  }
  .cp-hero__row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
  }
  .cp-hero h2,
  .cp-hero h1 { font-size: 1.35rem; }
  .cp-hero--dashboard .cp-hero__aside {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .cp-hero__pulse-stat { min-width: 72px; flex: 1 1 72px; }
  .cp-hero__contract-link.cp-btn--outline { width: 100%; justify-content: center; }
  .cp-kpi-value,
  .stat-value { font-size: 1.35rem; }
  .cp-kpi-grid,
  .dash-stats,
  .cp-module-grid,
  .cp-module-grid--dashboard,
  .cp-dash-actions,
  .cp-contrato-summary { grid-template-columns: 1fr; }
  .cols-2,
  .cols-3,
  .cols-4 { grid-template-columns: 1fr; }
  .cp-btn,
  .btn {
    min-height: 44px;
    padding-inline: 14px;
  }
  .cp-btn--sm,
  .btn-sm { min-height: 38px; }
  .cp-btn--block,
  .btn-block { width: 100%; }
  .cp-gads-hero {
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-4);
  }
  .cp-gads-hero__intro {
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }
  .cp-gads-hero__form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .cp-gads-hero__field {
    width: 100%;
    min-width: 0;
  }
  .cp-gads-hero__field input[type="date"] {
    width: 100%;
    min-height: 44px;
  }
  .cp-gads-hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .cp-gads-hero__actions .cp-btn {
    width: 100%;
    flex: none;
    justify-content: center;
  }
  .cp-gads-metrics,
  .cp-gads-metrics--primary { grid-template-columns: 1fr 1fr; }
  .cp-crm-panel { padding: var(--s-4); }
  .cp-crm-panel__head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .cp-funnel__top {
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-4);
  }
  .cp-funnel__badges {
    justify-content: flex-start;
    width: 100%;
  }
  .cp-funnel__body { padding: var(--s-4); }
  .cp-funnel__metrics {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: var(--s-3);
  }
  .cp-chart-wrap--tall { height: 220px; min-height: 200px; }
  .cp-chart-wrap--short { height: 180px; min-height: 160px; }
  .cf2-head {
    flex-direction: column;
    align-items: stretch;
  }
  .cf2-tabs,
  .approval-filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cf2-tabs::-webkit-scrollbar,
  .approval-filters::-webkit-scrollbar { display: none; }
  .cf2-tab,
  .approval-filters button {
    flex: none;
    white-space: nowrap;
  }
  .approval-card,
  .cf2-q {
    flex-direction: column;
    gap: var(--s-3);
  }
  .approval-thumb,
  .cf2-q__media {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 140px;
    aspect-ratio: 1 / 1;
  }
  .cf2-q__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cf2-q__actions .cp-btn { width: 100%; justify-content: center; }
  .cf2-col { width: min(88vw, 300px); }
  .cr-segtoggle {
    width: 100%;
    flex-direction: column;
    border-radius: var(--r-md);
    padding: 4px;
  }
  .cr-seg {
    width: 100%;
    text-align: center;
    min-height: 44px;
    border-radius: var(--r-sm);
  }
  .cr-grid2 { grid-template-columns: 1fr !important; }
  .cal,
  .cf2-cal { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cal-grid { min-width: 560px; }
  .cal-day,
  .cf2-cell { min-height: 72px; }
  .cf2-agtop {
    flex-direction: column;
    align-items: stretch;
  }
  .cf2-segtoggle {
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
  }
  .stepper:not(.onb-phase-stepper) {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--s-2);
  }
  .step .num { width: 24px; height: 24px; }
  .detail-cta {
    position: fixed;
    left: max(var(--s-3), env(safe-area-inset-left, 0px));
    right: max(var(--s-3), env(safe-area-inset-right, 0px));
    bottom: max(var(--s-3), env(safe-area-inset-bottom, 0px));
    z-index: 90;
    padding: var(--s-3);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
  }
  .detail-cta .cp-btn { width: 100%; justify-content: center; }
  .cp-page:has(.detail-cta) { padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)); }
  .cp-sales-card--page {
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-5);
  }
  .cp-sales-card--page .cp-sales-card__cta {
    align-self: stretch;
    justify-content: center;
  }
  .cp-userbox__meta strong,
  .cp-userbox__meta small { white-space: normal; }
  .cp-table th,
  .cp-table td { padding: 8px 10px; font-size: 12px; }
  .cp-req-modal {
    padding: 0;
    align-items: stretch;
  }
  .cp-req-modal__panel {
    max-width: none;
    min-height: 100dvh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  .cp-req-modal__body {
    flex: 1;
    max-height: none;
    padding-bottom: max(var(--s-5), env(safe-area-inset-bottom, 0px));
  }
  .cp-req-modal__forms { grid-template-columns: 1fr; }
  .ig-mock,
  .preview-with-pins,
  .ig-preview { max-width: 100%; }
  .cp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  :root { --cp-aside-w: min(100vw, 300px); }
  .cp-topbar__brand { display: none; }
  .cp-topbar__titles h1 { font-size: 16px; }
  .cp-kpi-grid,
  .dash-stats,
  .cp-gads-metrics,
  .cp-gads-metrics--primary { grid-template-columns: 1fr; }
  .cp-dash-actions { grid-template-columns: 1fr; }
  .cp-flash-stack {
    left: max(var(--s-4), env(safe-area-inset-left, 0px));
    right: max(var(--s-4), env(safe-area-inset-right, 0px));
    width: auto;
  }
  .cp-notify__panel {
    position: fixed;
    top: auto;
    left: max(var(--s-3), env(safe-area-inset-left, 0px));
    right: max(var(--s-3), env(safe-area-inset-right, 0px));
    bottom: max(var(--s-3), env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(70dvh, 480px);
  }
  .cp-notify__item { grid-template-columns: 1fr; }
  .cp-notify__read { justify-self: end; }
  .cp-crm-stat__v { font-size: 1.65rem; }
  .cp-trap { min-height: 56px; }
  .cp-login-main { padding: var(--s-5) var(--s-4); }
  .cp-login-card { padding: var(--s-5); }
}

/* ── FEED v2 EXTRAS (cf2-*) ────────────────────────────────── */
.cp-page-body { display: flex; flex-direction: column; gap: var(--s-4); }
.cf2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.cf2-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}
.cf2-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: var(--success);
  animation: cf2DotPulse 1.6s ease-in-out infinite;
}
@keyframes cf2DotPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--success); opacity: 1; }
  50%      { box-shadow: 0 0 0 6px transparent; opacity: 0.6; }
}
.cf2-reload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan-50);
  color: var(--brand-cyan-deep);
  border: 1px solid var(--cyan-200);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cf2-reload:hover { background: var(--cyan-100); }
.cf2-reload i { width: 14px; height: 14px; }

/* Fila articles */
.cf2-queue { display: flex; flex-direction: column; gap: var(--s-3); }
.cf2-q__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cf2-q__meta { display: flex; flex-direction: column; gap: 4px; }
.cf2-q__meta-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.cf2-q__type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cf2-q__excerpt {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cf2-q__hint {
  margin: var(--s-2) 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cf2-q__actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-2);
}
.cf2-q--done { opacity: 0.4; transition: opacity 0.3s ease, transform 0.3s ease; transform: translateX(40px); }
.cf2-q--no-media .cf2-q__media { display: none; }

.cf2-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  background: var(--violet-100);
  color: var(--brand-violet);
  border-radius: var(--r-pill);
}
.cf2-tag--muted {
  background: var(--grey-100);
  color: var(--ink-3);
}
.cf2-surface {
  position: absolute;
  bottom: 6px; left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(29,27,46,0.78);
  color: #fff;
  border-radius: var(--r-pill);
}
.cf2-surface i { width: 10px; height: 10px; }

/* Pick (aprovação por aspecto) */
.cf2-pick {
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
}
.cf2-pick__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  cursor: pointer;
}
.cf2-pick__item input {
  accent-color: var(--brand-violet);
  width: 14px; height: 14px;
}
.cf2-pick__item:has(input:checked) {
  border-color: var(--brand-violet);
  background: var(--violet-50);
  color: var(--brand-violet);
}
.cf2-note { margin-top: var(--s-2); }
.cf2-note textarea {
  width: 100%;
  min-height: 64px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  font: inherit;
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
}
.cf2-note textarea:focus {
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px var(--violet-200);
}
.cf2-btn-adjust {
  background: var(--warning) !important;
  border: 1px solid #8a5c10 !important;
  color: #fff !important;
  font-weight: 700;
}
.cf2-btn-adjust i,
.cf2-btn-adjust svg {
  color: #fff !important;
}
.cf2-btn-adjust:hover {
  background: #9a6618 !important;
  border-color: #7a4f0f !important;
  color: #fff !important;
}
.cf2-btn-reject {
  background: var(--danger) !important;
  border: 1px solid var(--danger) !important;
  color: #fff !important;
  font-weight: 700;
}
.cf2-btn-reject i,
.cf2-btn-reject svg {
  color: #fff !important;
}
.cf2-btn-reject:hover {
  background: #9a2b30 !important;
  border-color: #9a2b30 !important;
  color: #fff !important;
}

/* Chips dos campos pendentes */
.cf2-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--r-pill);
  background: var(--grey-100);
  color: var(--ink-3);
}
.cf2-chip i { width: 12px; height: 12px; }
.cf2-chip.is-approved { background: var(--success-bg); color: var(--success); }
.cf2-chip.is-changes  { background: var(--danger-bg); color: var(--danger); }
.cf2-chip.is-pending  { background: var(--warning-bg); color: var(--warning); }

/* Board (kanban) */
.cf2-board {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  padding-bottom: var(--s-3);
}
.cf2-col {
  width: 280px;
  flex: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
}
.cf2-col__head {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-1);
}
.cf2-col__head span { display: inline-flex; align-items: center; gap: 6px; }
.cf2-col__head i { width: 14px; height: 14px; }
.cf2-col__head strong {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0 7px;
  border-radius: var(--r-pill);
}
.cf2-tone--warn    .cf2-col__head { color: var(--warning); }
.cf2-tone--info    .cf2-col__head { color: var(--brand-cyan-deep); }
.cf2-tone--accent  .cf2-col__head { color: var(--brand-violet); }
.cf2-tone--success .cf2-col__head { color: var(--success); }

.cf2-col__body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-height: 60px;
}
.cf2-col__empty {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-4);
  padding: var(--s-4) 0;
}
.cf2-kc {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-2);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
  box-shadow: var(--shadow-1);
}
.cf2-kc:hover { border-color: var(--brand-violet); box-shadow: var(--shadow-2); }
.cf2-kc img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex: none;
}
.cf2-kc__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cf2-kc__title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cf2-kc__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
}
.cf2-kc--no-media img { display: none; }

/* ════════════════════════════════════════════════════════════
   REFINAMENTOS POR TELA — Polimento profissional, sem quebrar layout.
   Mantém as mesmas classes; só adiciona detalhe (sombra, glow, micro-tipografia).
   ════════════════════════════════════════════════════════════ */

/* ─── /cliente/login ─────────────────────────────────────── */
.login-mark {
  box-shadow:
    0 14px 32px rgba(81, 46, 148, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  position: relative;
}
.login-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--r-md) + 4px);
  border: 1px solid var(--violet-200);
  opacity: 0.6;
  pointer-events: none;
}
.cp-login-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.10) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}
.cp-login-aside h2 { font-size: clamp(30px, 2.6vw, 38px); line-height: 1.15; }
.cp-login-aside p { font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.55; }
.cp-aside-list > div { font-size: 15.5px; line-height: 1.4; }
.cp-aside-list i { width: 20px; height: 20px; }
.cp-login-card {
  border: 1px solid var(--border);
  position: relative;
}
.cp-login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
}
.cp-aside-list > div {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.cp-aside-list > div:last-child { border-bottom: 0; }
.cp-aside-list i { opacity: 0.85; }

/* ─── /cliente/dashboard ─────────────────────────────────── */
.cp-dash {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

/* Hero dashboard — fundo brand (grad roxo) como onboarding/login */
.cp-hero--dashboard {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  padding: var(--s-6) var(--s-6) var(--s-5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  border: none;
}
.cp-hero--dashboard.cp-hero--brand {
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    var(--grad-brand);
}
.cp-hero--dashboard .cp-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.cp-hero--dashboard.cp-hero--brand .cp-hero__glow {
  opacity: 1;
  background:
    radial-gradient(400px 200px at 100% 100%, rgba(0, 176, 216, 0.35), transparent 60%),
    radial-gradient(400px 200px at 0% 0%, rgba(255, 255, 255, 0.12), transparent 60%);
}
.cp-hero--dashboard.cp-hero--brand::before {
  display: none;
}
.cp-hero--dashboard .cp-hero__row {
  position: relative;
  z-index: 1;
  align-items: flex-start;
}
.cp-hero--dashboard .cp-hero__main { flex: 1; min-width: 0; }
.cp-hero--dashboard .cp-hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.cp-hero--dashboard.cp-hero--brand .cp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}
.cp-hero--dashboard.cp-hero--brand .cp-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: var(--brand-violet);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(29, 27, 46, 0.1);
}
.cp-hero--dashboard.cp-hero--brand .cp-hero__chip i { width: 12px; height: 12px; color: var(--success); }
.cp-hero--dashboard.cp-hero--brand h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--s-2);
  color: #fff;
}
.cp-hero--dashboard.cp-hero--brand h2 em {
  font-style: normal;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  font-weight: 800;
}
.cp-hero--dashboard.cp-hero--brand p {
  margin-bottom: var(--s-3);
  line-height: 1.55;
  color: #fff;
  opacity: 0.94;
}
.cp-hero--dashboard.cp-hero--brand p strong {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
}
.cp-hero--dashboard.cp-hero--brand .cp-hero-tag {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.cp-hero--dashboard.cp-hero--brand .cp-hero-tag i { color: #fff; }

/* Hero clean — padrão do sistema: fundo tech (degradê + grade + brilho ciano) */
.cp-hero--dashboard.cp-hero--clean {
  color: var(--ink-1);
  background:
    radial-gradient(640px 260px at 100% 0%, rgba(0, 176, 216, 0.12), transparent 66%),
    radial-gradient(560px 280px at 0% 115%, rgba(81, 46, 148, 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff, #fbfaff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.cp-hero--dashboard.cp-hero--clean::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  z-index: 1;
}
/* Grade técnica "blueprint" desvanecendo da direita — atrás do conteúdo */
.cp-hero--dashboard.cp-hero--clean::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(81, 46, 148, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 46, 148, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, transparent 50%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 50%, #000 100%);
  pointer-events: none;
}
.cp-hero--dashboard.cp-hero--clean .cp-hero__glow {
  display: none;
}
.cp-hero--dashboard.cp-hero--clean .cp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 10px;
  background: var(--violet-100);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 18%, var(--border));
  border-radius: var(--r-pill);
  color: var(--brand-violet);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.cp-hero--dashboard.cp-hero--clean .cp-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
}
.cp-hero--dashboard.cp-hero--clean .cp-hero__chip i,
.cp-hero--dashboard.cp-hero--clean .cp-hero__chip svg {
  width: 12px;
  height: 12px;
  color: var(--success);
}
.cp-hero--dashboard.cp-hero--clean h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin-bottom: var(--s-2);
  color: var(--ink-1);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cp-hero--dashboard.cp-hero--clean h2 em {
  font-style: normal;
  color: var(--brand-violet);
  -webkit-text-fill-color: var(--brand-violet);
  font-weight: 800;
}
.cp-hero--dashboard.cp-hero--clean p {
  margin-bottom: 0;
  line-height: 1.5;
  font-size: 13.5px;
  color: var(--ink-3);
  opacity: 1;
  max-width: 52ch;
}
.cp-hero--dashboard.cp-hero--clean p strong {
  color: var(--ink-1);
  font-weight: 700;
  text-decoration: none;
}
.cp-hero--dashboard.cp-hero--clean .cp-hero__pulse-stat {
  background: var(--violet-100);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 22%, var(--border));
  color: var(--brand-violet);
  box-shadow: var(--shadow-1);
  backdrop-filter: none;
}
.cp-hero--dashboard.cp-hero--clean .cp-hero__pulse-stat:hover {
  background: var(--violet-100);
  border-color: var(--brand-violet);
  color: var(--brand-violet);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.cp-hero--dashboard.cp-hero--clean .cp-hero__pulse-stat-val {
  color: var(--brand-violet);
}
.cp-hero--dashboard.cp-hero--clean .cp-hero__pulse-stat-lbl {
  color: var(--ink-3);
  opacity: 1;
}
.cp-hero--dashboard.cp-hero--clean .cp-hero__pulse-stat--static:hover {
  transform: none;
  box-shadow: var(--shadow-1);
}
.cp-hero--dashboard.cp-hero--clean .cp-hero__contract-link.cp-btn--outline {
  border-color: color-mix(in srgb, var(--brand-violet) 35%, var(--border));
  background: var(--surface);
  color: var(--brand-violet);
  font-weight: 700;
  box-shadow: none;
}
.cp-hero--dashboard.cp-hero--clean .cp-hero__contract-link.cp-btn--outline i,
.cp-hero--dashboard.cp-hero--clean .cp-hero__contract-link.cp-btn--outline svg {
  color: var(--brand-violet);
}
.cp-hero--dashboard.cp-hero--clean .cp-hero__contract-link.cp-btn--outline:hover {
  border-color: var(--brand-violet);
  background: var(--violet-100);
  color: var(--brand-violet);
  transform: none;
}
.cp-hero--dashboard.cp-hero--clean .cp-hero__contract-link.cp-btn--outline:hover i,
.cp-hero--dashboard.cp-hero--clean .cp-hero__contract-link.cp-btn--outline:hover svg {
  color: var(--brand-violet);
}

.cp-hero--dashboard .cp-hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-3);
  flex-shrink: 0;
}
.cp-hero__pulse-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(29, 27, 46, 0.15);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.cp-hero__pulse-stat:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 28px rgba(29, 27, 46, 0.22);
  color: #fff;
}
.cp-hero__pulse-stat-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cp-hero__pulse-stat-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-top: 4px;
}
.cp-hero__contract-link {
  white-space: nowrap;
  font-weight: 700;
}
/* Card contrato (sidebar dashboard) — layout tipo “contract” do DS */
.cp-contract-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.cp-contract-card__head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-4) var(--s-3);
  background: linear-gradient(180deg, var(--violet-50) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}
.cp-contract-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(81, 46, 148, 0.22);
}
.cp-contract-card__icon i { width: 20px; height: 20px; }
.cp-contract-card__titles { min-width: 0; }
.cp-contract-card__titles h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  line-height: 1.2;
}
.cp-contract-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--success);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--success-bg);
  border: 1px solid rgba(44, 138, 107, 0.2);
}
.cp-contract-card__status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}
.cp-contract-card__empty {
  margin: 0;
  padding: var(--s-4);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.cp-contract-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4) var(--s-2);
}
.cp-contract-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.cp-contract-metric__val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-violet);
}
.cp-contract-metric__lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cp-contract-card__services {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
  margin: var(--s-2) var(--s-4) var(--s-4);
  padding: 0 2px 2px 0;
  max-height: 4.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.cp-contract-card__services::-webkit-scrollbar { width: 5px; }
.cp-contract-card__services::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}
.cp-contract-chip {
  display: inline-block;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}
.cp-contract-chip:hover {
  border-color: var(--violet-200);
  color: var(--ink-2);
  background: var(--violet-50);
}
.cp-contract-card__foot {
  margin-top: auto;
  padding: var(--s-4) var(--s-4) var(--s-5);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.cp-contract-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: 100%;
  padding: 11px var(--s-4);
  border-radius: var(--r-md);
  background: var(--brand-violet);
  border: 1px solid var(--brand-violet);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}
.cp-contract-card__cta:hover {
  background: #43267d;
  border-color: #43267d;
  color: #fff;
  box-shadow: 0 6px 18px rgba(81, 46, 148, 0.28);
  transform: translateY(-1px);
}
.cp-contract-card__cta i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #fff;
}

/* KPI strip */
.cp-dash .dash-stats { margin-bottom: 0; }
.dash-stats .stat {
  gap: var(--s-2);
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.stat-icon i { width: 18px; height: 18px; }
.stat-icon--violet { background: var(--violet-100); color: var(--brand-violet); }
.stat-icon--cyan { background: var(--cyan-100); color: var(--brand-cyan-deep); }
.stat-icon--info { background: var(--violet-50); color: var(--brand-ink); }
.stat-icon--warn { background: var(--warning-bg); color: var(--warning); }
.stat-icon--success { background: var(--success-bg); color: var(--success); }
.stat-delta--brand { color: var(--brand-violet); }
.stat-delta--muted { color: var(--ink-4); font-weight: 600; }
.dash-stats .stat .stat-value {
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

/* Layout principal */
.cp-main--dashboard {
  align-items: start;
  gap: var(--s-5);
}
.cp-dash-primary {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-width: 0;
}
.cp-dash-aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

/* Blocos de seção */
.cp-dash-block__head {
  margin-bottom: var(--s-4);
}
.cp-dash-block__head h2 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.2;
}
.cp-dash-block__head h2 i,
.cp-dash-block__head h2 svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--brand-violet);
}
.cp-dash-block__head p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.cp-dash-block__head--compact { margin-bottom: var(--s-3); }
.cp-dash-block__head--compact h2 { margin-bottom: 0; }
.cp-dash-block__text {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.cp-dash-block__note {
  margin: var(--s-3) 0 0;
  font-size: 12px;
  color: var(--ink-4);
  line-height: 1.45;
}
.cp-dash-block__more {
  width: 100%;
  justify-content: center;
  margin-top: var(--s-3);
}

/* Fila de aprovações */
.cp-approval-queue {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.cp-card .approval-card {
  background: var(--surface);
  border-color: var(--border);
  border-radius: var(--r-lg);
}
.cp-card .approval-card:hover {
  border-color: var(--brand-violet);
  box-shadow:
    0 6px 20px rgba(81, 46, 148, 0.10),
    0 1px 3px rgba(29, 27, 46, 0.06);
}
.approval-card .right .cp-btn--primary {
  background: var(--brand-violet);
  color: #fff;
}
.approval-card .right .cp-btn--primary i { color: #fff; }

/* Empty state */
.cp-dash-empty {
  text-align: center;
  padding: var(--s-7) var(--s-5);
}
.cp-dash-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s-4);
  border-radius: var(--r-md);
  background: var(--violet-100);
  color: var(--brand-violet);
  display: grid;
  place-items: center;
}
.cp-dash-empty__icon i { width: 28px; height: 28px; }
.cp-dash-empty h3 {
  margin: 0 0 var(--s-2);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-1);
  letter-spacing: -0.02em;
}
.cp-dash-empty p {
  margin: 0 0 var(--s-4);
  font-size: 13px;
  color: var(--ink-3);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

/* Módulos bloqueados — chip herda .cp-upgrade-chip; ícone do card mais suave */
.cp-module-card .cp-upgrade-chip {
  margin-left: 0;
}
.cp-module-card.is-locked .cp-module-card__icon {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-4);
}
.cp-module-card.is-locked .cp-module-card__body strong {
  color: var(--ink-2);
}
.cp-module-card.is-locked:hover .cp-upgrade-chip {
  background: var(--violet-100);
  border-color: color-mix(in srgb, var(--brand-violet) 35%, var(--border));
}

/* Ações rápidas — tiles */
.cp-dash-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: var(--s-2);
}
.cp-dash-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.cp-dash-action:hover {
  border-color: var(--brand-violet);
  background: var(--violet-50);
  box-shadow: var(--shadow-1);
  color: var(--ink-1);
}
.cp-dash-action--highlight {
  border-color: var(--violet-200);
  background: linear-gradient(180deg, var(--violet-50), var(--surface) 70%);
}
.cp-dash-action__ico {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand-violet);
  display: grid;
  place-items: center;
}
.cp-dash-action__ico i { width: 16px; height: 16px; }
.cp-dash-action:hover .cp-dash-action__ico {
  background: var(--brand-violet);
  border-color: var(--brand-violet);
  color: #fff;
}
.cp-dash-action__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.25;
}

.cp-dash-muted { color: var(--ink-4); font-weight: 500; }

/* Alerta acessos */
.cp-card--alert-warning {
  border-color: rgba(185, 122, 26, 0.35);
  background: linear-gradient(180deg, var(--warning-bg), var(--surface) 55%);
}
.cp-card--alert-warning > h2,
.cp-card--alert-warning .cp-dash-block__head h2 {
  color: var(--warning);
}
.cp-card--alert-warning .cp-dash-block__head h2 i { color: var(--warning); }

/* ─── /cliente/feed ──────────────────────────────────────── */
.cf2-head {
  align-items: center;
  margin-bottom: var(--s-3);
}
.cf2-tabs {
  box-shadow: var(--shadow-1);
}
.cf2-tab i { width: 14px; height: 14px; }
.cf2-q {
  align-items: stretch;
}
.cf2-q__media {
  align-self: stretch;
  width: 96px;
  min-height: 96px;
  height: auto;
}
.cf2-q__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cf2-q__actions .cp-btn {
  box-shadow: var(--shadow-1);
}
.cf2-q__actions .cp-btn--primary {
  box-shadow:
    0 4px 12px rgba(81, 46, 148, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* KPI strip: a primeira card com is-attention vira tecno */
.cp-kpi-card.is-attention {
  position: relative;
  overflow: hidden;
}
.cp-kpi-card.is-attention::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
}
.cp-kpi-card.is-attention .cp-kpi-icon.is-warn {
  background: var(--violet-100);
  color: var(--brand-violet);
}

/* ─── /cliente/feed/{id} ─────────────────────────────────── */
.detail-cta {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow:
    0 14px 36px rgba(29, 27, 46, 0.10),
    0 1px 3px rgba(29, 27, 46, 0.06);
}
.detail-cta .cp-btn--success {
  box-shadow:
    0 4px 12px rgba(44, 138, 107, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.detail-cta .cp-btn--danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.detail-cta .cp-btn--danger i,
.detail-cta .cp-btn--danger svg { color: #fff; }
.detail-cta .cp-btn--danger:hover {
  color: #fff;
  background: #9a2b30;
  border-color: #9a2b30;
}
.detail-cta .cp-btn--danger:hover i { color: #fff; }

.cf2-detail-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.cf2-detail-actions-row .cp-btn {
  min-height: 44px;
  justify-content: center;
}

.preview-with-pins { padding: 4px; }
.ig-mock { box-shadow: 0 12px 36px rgba(29, 27, 46, 0.08); }

.thread .comment {
  box-shadow: var(--shadow-1);
}
.thread .comment.has-pin .pin-ref {
  box-shadow: 0 4px 10px rgba(81, 46, 148, 0.32);
}

.feedback-composer {
  border-radius: var(--r-md);
  padding: var(--s-2);
}
.feedback-composer textarea { padding: 6px 8px; }
.feedback-tools {
  margin-top: var(--s-2);
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
#cpPinToggle {
  border-color: var(--violet-200);
  color: var(--brand-violet);
  background: var(--surface);
}
#cpPinToggle.cp-btn--primary {
  background: var(--brand-violet);
  color: #fff;
  border-color: var(--brand-violet);
}

/* ─── /cliente/agenda ────────────────────────────────────── */
.cf2-agtop {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding: var(--s-3) var(--s-4);
}
.cf2-agnav {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.cf2-segtoggle {
  margin-left: auto;
  box-shadow: var(--shadow-1);
}
.cf2-cell {
  border-color: var(--border);
}
.cf2-cell--today {
  background: linear-gradient(180deg, var(--violet-50), var(--surface));
}
.cf2-cell--today .cf2-cell__num {
  background: var(--brand-violet);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 1px 7px;
  align-self: flex-start;
}
.cf2-ev {
  cursor: pointer;
  transition: transform 0.12s ease;
}
.cf2-ev:hover { transform: translateX(2px); }

/* ─── Briefing status card — fundo sólido por tom ─────────── */
.cp-brief-status {
  margin-bottom: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: none;
}
.cp-brief-status--warn {
  background: color-mix(in srgb, var(--warning) 16%, #fff);
  border-color: color-mix(in srgb, var(--warning) 34%, #fff);
}
.cp-brief-status--info {
  background: color-mix(in srgb, var(--brand-cyan-deep) 12%, #fff);
  border-color: color-mix(in srgb, var(--brand-cyan-deep) 28%, #fff);
}
.cp-brief-status--ok {
  background: color-mix(in srgb, var(--success) 14%, #fff);
  border-color: color-mix(in srgb, var(--success) 30%, #fff);
}
.cp-brief-status--pending,
.cp-brief-status--muted {
  background: var(--surface-3);
  border-color: var(--border);
}
.cp-brief-status__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: var(--s-5);
  align-items: stretch;
}
.cp-brief-status__grid:not(:has(.cp-brief-status__aside)) {
  grid-template-columns: 1fr;
}
@media (max-width: 768px) {
  .cp-brief-status__grid { grid-template-columns: 1fr; }
}
.cp-brief-status__main { min-width: 0; }
.cp-brief-status__head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.cp-brief-status__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(29, 27, 46, 0.06);
}
.cp-brief-status__icon i,
.cp-brief-status__icon svg {
  width: 16px;
  height: 16px;
  color: var(--ink-2);
}
.cp-brief-status--warn .cp-brief-status__icon i,
.cp-brief-status--warn .cp-brief-status__icon svg { color: var(--warning); }
.cp-brief-status--info .cp-brief-status__icon i,
.cp-brief-status--info .cp-brief-status__icon svg { color: var(--brand-cyan-deep); }
.cp-brief-status--ok .cp-brief-status__icon i,
.cp-brief-status--ok .cp-brief-status__icon svg { color: var(--success); }
.cp-brief-status__titles { min-width: 0; }
.cp-brief-status__eyebrow {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cp-brief-status--warn .cp-brief-status__eyebrow { color: color-mix(in srgb, var(--warning) 72%, var(--ink-2)); }
.cp-brief-status--info .cp-brief-status__eyebrow { color: color-mix(in srgb, var(--brand-cyan-deep) 78%, var(--ink-2)); }
.cp-brief-status--ok .cp-brief-status__eyebrow { color: color-mix(in srgb, var(--success) 78%, var(--ink-2)); }
.cp-brief-status__title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink-1);
}
.cp-brief-status__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
}
.cp-brief-status__meta {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin: var(--s-3) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid rgba(29, 27, 46, 0.08);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-3);
}
.cp-brief-status--warn .cp-brief-status__meta {
  border-top-color: color-mix(in srgb, var(--warning) 20%, transparent);
}
.cp-brief-status--info .cp-brief-status__meta {
  border-top-color: color-mix(in srgb, var(--brand-cyan-deep) 18%, transparent);
}
.cp-brief-status--ok .cp-brief-status__meta {
  border-top-color: color-mix(in srgb, var(--success) 18%, transparent);
}
.cp-brief-status__meta i,
.cp-brief-status__meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: inherit;
}
.cp-brief-status__aside { min-width: 0; display: flex; }
.cp-brief-status__next {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1px 2px rgba(29, 27, 46, 0.05);
}
.cp-brief-status__next-kicker {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-bottom: var(--s-1);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cp-brief-status__next-kicker i,
.cp-brief-status__next-kicker svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--brand-violet);
}
.cp-brief-status__next p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.cp-brief-status__next strong {
  color: var(--ink-1);
  font-weight: 700;
}

/* ─── /cliente/contrato ──────────────────────────────────── */
.cp-contrato {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.cp-hero--contrato.cp-hero--clean { margin-bottom: 0; }
.cp-hero--contrato .cp-hero__pulse-stat--static {
  pointer-events: none;
  cursor: default;
}
.cp-hero--contrato.cp-hero--clean .cp-hero__pulse-stat--static:hover {
  transform: none;
  background: var(--violet-100);
  box-shadow: var(--shadow-1);
}

.cp-contrato-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: var(--s-5);
  align-items: start;
}
@media (max-width: 1024px) {
  .cp-contrato-layout { grid-template-columns: 1fr; }
}
.cp-contrato-main {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-width: 0;
}
.cp-contrato-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 768px) {
  .cp-contrato-summary { grid-template-columns: 1fr; }
}
.cp-contrato-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.cp-contrato-panel .cp-dash-block__head--compact {
  margin-bottom: var(--s-3);
}
.cp-contrato-panel .cp-dash-block__head--compact h2 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.2;
}
.cp-contrato-panel .cp-dash-block__head--compact h2 i,
.cp-contrato-panel .cp-dash-block__head--compact h2 svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--brand-violet);
}
.cp-contrato-panel .cp-dash-block__text {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

.cp-contrato-contracts {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.cp-contrato-doc {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.cp-contrato-doc__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.cp-contrato-doc__head strong {
  color: var(--ink-1);
  font-weight: 700;
  font-size: 14px;
}
.cp-contrato-doc__meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--s-2) var(--s-4);
  margin: 0;
}
.cp-contrato-doc__meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cp-contrato-doc__meta dt {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cp-contrato-doc__meta dd {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.cp-contrato-doc__meta dd i,
.cp-contrato-doc__meta dd svg { width: 13px; height: 13px; color: var(--ink-4); flex: none; }

.cp-contrato-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
  min-height: 0;
  max-height: 220px;
  overflow-y: auto;
}
.cp-contrato-service-list::-webkit-scrollbar { width: 5px; }
.cp-contrato-service-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-pill);
}
.cp-contrato-service-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.cp-contrato-service-item:hover {
  border-color: color-mix(in srgb, var(--brand-violet) 28%, var(--border));
  background: var(--violet-50);
}
.cp-contrato-service-item__ico {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--violet-100);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 18%, var(--border));
  color: var(--brand-violet);
  display: grid;
  place-items: center;
}
.cp-contrato-service-item__ico i,
.cp-contrato-service-item__ico svg {
  width: 15px;
  height: 15px;
}
.cp-contrato-service-item__name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-1);
  line-height: 1.35;
  word-break: break-word;
}

.cp-module-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-3);
}
.cp-module-tile {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.cp-module-tile.is-active {
  border-color: color-mix(in srgb, var(--success) 35%, var(--border));
  background: linear-gradient(180deg, var(--success-bg) 0%, var(--surface) 55%);
}
.cp-module-tile.is-locked {
  background: var(--surface-2);
}
.cp-module-tile:hover { box-shadow: var(--shadow-2); }
.cp-module-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.cp-module-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--violet-100);
  color: var(--brand-violet);
  display: grid;
  place-items: center;
}
.cp-module-tile__icon i,
.cp-module-tile__icon svg { width: 20px; height: 20px; }
.cp-module-tile.is-active .cp-module-tile__icon {
  background: var(--success-bg);
  color: var(--success);
}
.cp-module-tile__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--grey-100);
  color: var(--ink-3);
}
.cp-module-tile.is-active .cp-module-tile__chip {
  background: var(--success-bg);
  color: var(--success);
}
.cp-module-tile.is-locked .cp-module-tile__chip {
  background: var(--violet-50);
  color: var(--brand-violet);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 20%, var(--border));
  padding: 3px 8px 3px 6px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
}
.cp-module-tile__chip i,
.cp-module-tile__chip svg {
  width: 11px;
  height: 11px;
  flex: none;
  color: var(--brand-violet);
}
.cp-module-tile.is-active .cp-module-tile__chip i,
.cp-module-tile.is-active .cp-module-tile__chip svg {
  color: var(--success);
}
.cp-module-tile__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.cp-module-tile__body strong {
  color: var(--ink-1);
  font-weight: 700;
  font-size: 14px;
}
.cp-module-tile__body p {
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.5;
}
.cp-module-tile__foot {
  margin-top: auto;
  padding-top: var(--s-3);
}
.cp-module-tile__foot form { margin: 0; }
.cp-module-tile__included {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}
.cp-module-tile__included i,
.cp-module-tile__included svg { width: 14px; height: 14px; flex: none; }

.cp-contrato-aside { min-width: 0; }
.cp-contrato-upgrade {
  margin: 0;
  position: sticky;
  top: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-lg);
}
@media (max-width: 1024px) {
  .cp-contrato-upgrade { position: static; }
}
.cp-contrato-upgrade .cp-sales-card__form {
  margin-top: var(--s-1);
}
.cp-contrato-upgrade .cp-sales-card__submit {
  margin-top: var(--s-1);
}
.cp-sales-card__note {
  margin: 0;
  padding: var(--s-3);
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-sm);
}

/* ─── /cliente/onboarding ────────────────────────────────── */
.cp-hero--onboarding.cp-hero--brand { margin-bottom: var(--s-4); }
.cp-hero--onboarding .cp-hero__pulse-stat--static {
  pointer-events: none;
}
.cp-hero--onboarding .cp-hero__pulse-stat--static:hover {
  transform: none;
}
.onb-tl-item.is-current .onb-tl-body,
.cp-timeline-item.current {
  box-shadow:
    0 0 0 1px var(--violet-200),
    var(--shadow-2);
}

/* ─── /cliente/acessos ───────────────────────────────────── */
.cp-access-hero {
  position: relative;
  overflow: hidden;
}
.cp-access-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
}
.cp-access-kpi {
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cp-access-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  border-top: 3px solid var(--access-accent, var(--brand-violet));
  padding: var(--s-4);
  transition: box-shadow 0.14s ease;
}
.cp-access-card:hover { box-shadow: var(--shadow-2); }

/* ─── /cliente/equipe ────────────────────────────────────── */
/* (legacy --cp-* já cobre via aliases — só refinamento opcional aqui) */

/* ─── /cliente/solicitacoes ──────────────────────────────── */
.cr-segtoggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-bottom: var(--s-4);
  background: var(--grey-100);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.cr-seg {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.cr-seg.is-on {
  background: var(--surface);
  color: var(--ink-1);
  box-shadow: var(--shadow-1);
}
.cr-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
body.cp-req-modal-open .cp-aside-backdrop { pointer-events: none; }
.cp-req-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(var(--s-4), 3vh) var(--s-4);
  background: rgba(29, 27, 46, 0.48);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cp-req-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cp-req-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  transform: translateY(10px) scale(0.99);
  transition: transform 0.22s var(--ease);
  overflow: hidden;
}
.cp-req-modal.is-open .cp-req-modal__panel { transform: none; }
.cp-req-modal__head {
  position: relative;
  padding: var(--s-5) 3.25rem var(--s-4) var(--s-5);
  color: #fff;
  background: var(--grad-brand);
}
.cp-req-modal__head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(480px 180px at 92% -20%, rgba(255, 255, 255, 0.22), transparent 58%);
  pointer-events: none;
}
.cp-req-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: background 0.15s ease;
}
.cp-req-modal__close:hover { background: rgba(255, 255, 255, 0.3); }
.cp-req-modal__close i,
.cp-req-modal__close svg { width: 18px; height: 18px; }
.cp-req-modal__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.92;
}
.cp-req-modal__eyebrow .cr-kc__cat {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}
.cp-req-modal__title {
  position: relative;
  z-index: 1;
  margin: var(--s-3) 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.cp-req-modal__status {
  position: relative;
  z-index: 1;
  margin: var(--s-2) 0 0;
  font-size: 13px;
  opacity: 0.9;
}
.cp-req-modal__body {
  padding: var(--s-5);
  max-height: min(72vh, 640px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cp-req-detail__body {
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  margin: 0 0 var(--s-3);
}
.cp-req-modal__forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  align-items: start;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.cr-kc__cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-violet);
  background: var(--violet-100);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 18%, var(--border));
}
.cr-kc__cat i,
.cr-kc__cat svg { width: 12px; height: 12px; }
.cr-kc__title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: var(--s-1) 0;
  line-height: 1.35;
}
.cr-kc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  font-size: 11px;
  color: var(--ink-4);
}
.cr-kc__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cr-kc__meta i,
.cr-kc__meta svg { width: 12px; height: 12px; }
.cr-thread {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin: var(--s-3) 0;
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cr-msg {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-3);
  font-size: 13px;
}
.cr-msg--agency { background: var(--cyan-100); }
.cr-msg--client { background: var(--surface-2); }
.cr-msg--sys {
  background: var(--surface-3);
  font-style: italic;
  color: var(--ink-3);
}
.cr-msg__h {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  font-size: 11px;
  color: var(--ink-4);
  margin-bottom: 4px;
  flex-wrap: wrap;
}

/* ─── /cliente/google-ads ────────────────────────────────── */
.cp-gads {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.cp-gads-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 18%, var(--border));
  box-shadow: var(--shadow-1);
  background:
    linear-gradient(135deg, var(--violet-50) 0%, var(--surface) 42%, var(--surface) 100%);
}
.cp-gads-hero__intro {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex: 1;
  min-width: min(100%, 280px);
}
.cp-gads-hero__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}
.cp-gads-hero__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.cp-gads-hero__logo--icon {
  color: var(--brand-violet);
  background: var(--violet-100);
}
.cp-gads-hero__logo--icon i,
.cp-gads-hero__logo--icon svg { width: 24px; height: 24px; }
.cp-gads-hero__title {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.cp-gads-hero__desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
  max-width: 42ch;
}
.cp-gads-hero__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s-3);
}
.cp-gads-hero__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 148px;
}
.cp-gads-hero__field span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cp-gads-hero__field input[type="date"] {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-1);
  font: inherit;
  font-size: 13px;
}
.cp-gads-hero__field input[type="date"]:focus {
  outline: none;
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px var(--violet-100);
}
.cp-gads-hero__field--grow {
  flex: 1 1 12rem;
  min-width: 180px;
}
.cp-gads-hero__field select {
  height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c6982' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--ink-1);
  font: inherit;
  font-size: 13px;
  appearance: none;
  cursor: pointer;
  max-width: 100%;
}
.cp-gads-hero__field select:focus {
  outline: none;
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px var(--violet-100);
}
.cp-gads-accounts-host.is-loading {
  opacity: 0.72;
  pointer-events: none;
}
.cp-gads-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.cp-gads-report-area {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.cp-gads-account { margin-top: 0; }
.cp-gads-account__head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}
.cp-gads-account__head h2 i,
.cp-gads-account__head h2 svg {
  width: 18px;
  height: 18px;
  color: var(--brand-violet);
}
.cp-gads-account__head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.cp-gads-account__empty { padding: var(--s-6) var(--s-4); }
.cp-gads-kpis { margin-bottom: 0; } /* legado */

.cp-gads-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: var(--s-3);
}
.cp-gads-banner i,
.cp-gads-banner svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
}
.cp-gads-banner--info {
  background: var(--cyan-100);
  border: 1px solid color-mix(in srgb, var(--brand-cyan-deep) 25%, var(--border));
  color: var(--brand-cyan-deep);
}
.cp-gads-banner--success {
  background: var(--success-bg);
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--border));
  color: var(--success);
}
.cp-gads-banner--warn {
  background: var(--warning-bg);
  border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--border));
  color: var(--warning);
}

.cp-gads-banner__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}

.cp-gads-banner__cta {
  flex-shrink: 0;
}

.cp-gads-account__empty .btn {
  margin-top: var(--s-3);
}

.cp-kpi-trend {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--success);
}
.cp-kpi-trend.down { color: var(--danger); }
.cp-kpi-trend.flat { color: var(--ink-4); }
/* Métricas compactas (conta + indicadores estendidos) */
.cp-gads-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-4);
  margin-bottom: var(--s-3);
}
@media (min-width: 640px) {
  .cp-gads-metrics { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .cp-gads-metrics--primary { grid-template-columns: repeat(6, 1fr); }
  .cp-gads-metrics:not(.cp-gads-metrics--primary) { grid-template-columns: repeat(4, 1fr); }
}
.cp-gads-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cp-gads-metric--lead {
  border-color: color-mix(in srgb, var(--brand-violet) 28%, var(--border));
  background: linear-gradient(145deg, var(--violet-50), var(--surface));
}
.cp-gads-metric__k {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-4);
  line-height: 1.2;
}
.cp-gads-metric__v {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-word;
}
.cp-gads-metric--lead .cp-gads-metric__v { color: var(--brand-violet); }
.cp-gads-metric__trend {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--success);
  line-height: 1.2;
}
.cp-gads-metric__trend.down { color: var(--danger); }

.cp-gads-section { margin-top: var(--s-4); }
.cp-gads-section__title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 var(--s-3);
  color: var(--ink-1);
}
.cp-gads-section__ico {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--violet-100);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 18%, var(--border));
  color: var(--brand-violet);
  display: grid;
  place-items: center;
  flex: none;
}
.cp-gads-section__ico i,
.cp-gads-section__ico svg { width: 15px; height: 15px; stroke-width: 2px; }
.cp-gads-section .cp-gads-metrics { margin-top: 0; }

/* CRM integrado — KPIs grandes + leitura clara */
.cp-crm-panel {
  position: relative;
  overflow: hidden;
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-family: var(--font-sans);
}
.cp-crm-panel__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-violet) 12%, var(--border));
}
.cp-crm-panel__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--violet-100);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 22%, var(--border));
  color: var(--brand-violet);
  display: grid;
  place-items: center;
  flex: none;
}
.cp-crm-panel__icon i,
.cp-crm-panel__icon svg { width: 17px; height: 17px; stroke-width: 2px; }
.cp-crm-panel__eyebrow {
  margin: 0 0 2px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-violet);
}
.cp-crm-panel__titles h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.cp-crm-panel__meta {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.4;
}
.cp-crm-panel__head + .cp-gads-banner,
.cp-crm-panel__head + .cp-loading { margin-top: 0; margin-bottom: var(--s-3); }

/* Loading inline (portal + agência Google Ads) */
.cp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-4);
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  background: color-mix(in srgb, var(--brand-violet) 4%, var(--surface-2));
  border: 1px dashed color-mix(in srgb, var(--brand-violet) 18%, var(--border));
  border-radius: var(--r-md);
}
.cp-spinner {
  width: 22px;
  height: 22px;
  flex: none;
  border: 3px solid color-mix(in srgb, var(--brand-violet) 12%, var(--border));
  border-top-color: var(--brand-violet);
  border-radius: 50%;
  animation: cp-spin 0.9s linear infinite;
}
@keyframes cp-spin {
  to { transform: rotate(360deg); }
}
.cp-crm-panel--loading .cp-loading {
  margin: 0;
  min-height: 120px;
}
.cp-gads-agency .google-crm-host.is-loading,
.cp-gads-agency .google-async-body-root.is-loading,
.cp-gads .cp-gads-accounts-host.is-loading {
  opacity: 0.82;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cp-crm-panel__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 var(--s-3);
  padding: 6px 10px;
  font-size: 11px;
  color: var(--ink-3);
  background: rgba(81, 46, 148, 0.06);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 14%, var(--border));
  border-radius: var(--r-sm);
}
.cp-crm-panel__filters i,
.cp-crm-panel__filters svg {
  width: 12px;
  height: 12px;
  color: var(--brand-violet);
}
.cp-crm-panel__filters code {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--violet-100);
  color: var(--brand-violet);
  border: none;
}
.cp-crm-panel__foot {
  margin: var(--s-3) 0 0;
  font-size: 10px;
  color: var(--ink-4);
  font-family: var(--font-mono);
}

.cp-crm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
@media (max-width: 1024px) {
  .cp-crm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-crm-stats > .cp-crm-stat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cp-crm-stats { grid-template-columns: 1fr; }
  .cp-crm-stats > .cp-crm-stat:last-child { grid-column: auto; }
}
.cp-crm-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-4);
  min-height: 96px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.cp-crm-stat--lead {
  border-color: color-mix(in srgb, var(--brand-violet) 35%, var(--border));
  border-left: 3px solid var(--brand-violet);
  background: linear-gradient(145deg, var(--violet-50), var(--surface));
  box-shadow: var(--shadow-1);
}
.cp-crm-stat__k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cp-crm-stat__v {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--brand-violet);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.cp-crm-stat__v--money {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cp-crm-stat__sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 2px;
}

.cp-crm-mix {
  margin-bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cp-crm-mix__label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-violet);
}
.cp-crm-mix__bar {
  height: 16px;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: linear-gradient(
    90deg,
    var(--success) 0%,
    #4ade80 var(--mix-co, 0%),
    var(--warning) var(--mix-co, 0%),
    #facc15 var(--mix-at-end, 0%),
    var(--danger) 100%
  );
}
.cp-crm-mix__bar.is-empty { background: var(--grey-100); }
.cp-crm-mix > .cp-crm-mix__legend {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--s-2) var(--s-3);
  margin: var(--s-3) 0 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.cp-crm-mix__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 0.1em;
}
.cp-crm-mix__dot--ok { background: var(--success); }
.cp-crm-mix__dot--warn { background: var(--warning); }
.cp-crm-mix__dot--bad { background: var(--danger); }

.cp-crm-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
@media (max-width: 1024px) {
  .cp-crm-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-crm-pills > .cp-crm-pill:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cp-crm-pills { grid-template-columns: 1fr; }
  .cp-crm-pills > .cp-crm-pill:last-child { grid-column: auto; }
}
.cp-crm-pill {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-2);
  padding: var(--s-4);
  min-height: 108px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.cp-crm-pill__k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cp-crm-pill__n {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.cp-crm-pill__v {
  margin-top: auto;
  padding-top: var(--s-2);
  border-top: 1px solid color-mix(in srgb, currentColor 12%, var(--border));
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: left;
  line-height: 1.3;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.cp-crm-pill--ok {
  border-color: color-mix(in srgb, var(--success) 30%, var(--border));
  background: color-mix(in srgb, var(--success-bg) 70%, var(--surface));
}
.cp-crm-pill--warn {
  border-color: color-mix(in srgb, var(--warning) 35%, var(--border));
  background: color-mix(in srgb, var(--warning-bg) 65%, var(--surface));
}
.cp-crm-pill--bad {
  border-color: color-mix(in srgb, var(--danger) 30%, var(--border));
  background: color-mix(in srgb, var(--danger-bg) 65%, var(--surface));
}

.cp-crm-bridge {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-3) var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--brand-violet) 10%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--brand-violet) 22%, var(--border));
}
@media (max-width: 640px) {
  .cp-crm-bridge {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cp-crm-bridge__mid { justify-self: center; transform: rotate(90deg); }
}
.cp-crm-bridge__item {
  text-align: center;
  min-width: 0;
}
.cp-crm-bridge__k {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-violet);
}
.cp-crm-bridge__v {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.cp-crm-bridge__mid {
  color: var(--brand-violet-light);
  display: grid;
  place-items: center;
}
.cp-crm-bridge__mid i,
.cp-crm-bridge__mid svg { width: 16px; height: 16px; }
.cp-crm-bridge__ratio {
  grid-column: 1 / -1;
  width: 100%;
  margin: var(--s-2) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid color-mix(in srgb, var(--brand-violet) 15%, var(--border));
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
}
.cp-crm-bridge__ratio strong {
  color: var(--brand-violet);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.cp-crm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.cp-crm-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 160px;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: calc(var(--r-md) - 4px);
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.cp-crm-tab i,
.cp-crm-tab svg { width: 15px; height: 15px; flex: none; }
.cp-crm-tab:hover { color: var(--ink-1); background: color-mix(in srgb, var(--brand-violet) 6%, var(--surface)); }
.cp-crm-tab.is-active {
  background: var(--surface);
  color: var(--brand-violet);
  box-shadow: var(--shadow-1);
}
.cp-crm-tab__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--grey-100);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 800;
}
.cp-crm-tab.is-active .cp-crm-tab__n {
  background: color-mix(in srgb, var(--brand-violet) 14%, #fff);
  color: var(--brand-violet);
}

.cp-crm-tab-panel { display: none; }
.cp-crm-tab-panel.is-active { display: block; }

.cp-crm-detail { display: flex; flex-direction: column; gap: var(--s-5); }

.cp-crm-dash-visual {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-family: var(--font-sans);
}
.cp-crm-dash-visual__row {
  display: grid;
  gap: var(--s-3);
}
.cp-crm-dash-visual__row--split {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
/* Cards nunca ficam mais estreitos que ~300px — quebra automática sem espremer legenda */
.cp-crm-dash-visual__row--triple {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
  align-items: stretch;
}
.cp-crm-dash-visual__row--triple > .cp-crm-dash-visual__card--kpi {
  display: flex;
  flex-direction: column;
}
.cp-crm-dash-visual__row--triple > .cp-crm-dash-visual__card--kpi .cp-crm-dash-visual__head {
  flex: none;
}
.cp-crm-dash-visual__row--triple > .cp-crm-dash-visual__card--kpi .cp-crm-dash-visual__canvas {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.cp-crm-dash-visual__card {
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}
.cp-crm-dash-visual__head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-4) var(--s-2);
}
.cp-crm-dash-visual__head .cp-crm-panel__icon {
  flex: none;
  margin-top: 1px;
}
.cp-crm-dash-visual__head .cp-crm-stat__sub {
  display: block;
  margin-top: 2px;
}
.cp-crm-dash-visual__canvas {
  margin: 0;
  padding: 0 var(--s-4) var(--s-4);
  background: transparent;
  border: 0;
  border-radius: 0;
}
.cp-crm-dash-visual__canvas--donut,
.cp-crm-dash-visual__canvas--gauge {
  --cp-crm-legend-band: 5.25rem;
}
.cp-crm-dash-visual__canvas--donut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.cp-crm-dash-visual__canvas--donut .cp-crm-dash-visual__chart--donut {
  width: 100%;
  max-width: 15.5rem;
  height: 11.75rem;
  min-height: 11.75rem;
  margin-inline: auto;
}
.cp-crm-dash-visual__canvas--gauge {
  display: grid;
  grid-template-rows: 1fr var(--cp-crm-legend-band);
  align-items: stretch;
  justify-items: center;
  gap: var(--s-3);
}
.cp-crm-dash-visual__canvas--gauge .cp-crm-dash-visual__chart--gauge {
  grid-row: 1;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 11.75rem;
  margin: 0;
  flex: none;
}
/* Reserva a mesma faixa dos 3 blocos da legenda nos donuts */
.cp-crm-dash-visual__canvas--gauge::after {
  content: '';
  grid-row: 2;
  align-self: stretch;
  display: block;
  width: 100%;
  min-height: var(--cp-crm-legend-band);
  pointer-events: none;
}
.cp-crm-chart-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--s-2);
  width: 100%;
  min-height: var(--cp-crm-legend-band);
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 0 0 auto;
}
.cp-crm-chart-legend__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 5.25rem;
  padding: var(--s-2) var(--s-1);
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.3;
}
.cp-crm-chart-legend__item--ok {
  border-color: color-mix(in srgb, var(--success) 32%, var(--border));
  background: color-mix(in srgb, var(--success-bg) 55%, var(--surface));
}
.cp-crm-chart-legend__item--warn {
  border-color: color-mix(in srgb, var(--warning) 35%, var(--border));
  background: color-mix(in srgb, var(--warning-bg) 50%, var(--surface));
}
.cp-crm-chart-legend__item--bad {
  border-color: color-mix(in srgb, var(--danger) 32%, var(--border));
  background: color-mix(in srgb, var(--danger-bg) 50%, var(--surface));
}
.cp-crm-chart-legend__lbl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  overflow: visible;
  word-break: break-word;
  hyphens: auto;
}
.cp-crm-chart-legend__lbl > span:last-child {
  display: block;
  max-width: 100%;
  line-height: 1.25;
}
.cp-crm-chart-legend__lbl .cp-crm-mix__dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0;
}
.cp-crm-chart-legend__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  font-variant-numeric: tabular-nums;
  text-transform: none;
}
.cp-crm-chart-legend__amt {
  display: block;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-violet);
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.cp-crm-chart-legend__pct {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
/* Só empilha em 1 coluna quando o card é muito estreito — evita layout 2+1 assimétrico */
@container cp-crm-kpi (max-width: 19rem) {
  .cp-crm-chart-legend {
    grid-template-columns: 1fr;
    max-width: 14rem;
    margin-inline: auto;
  }
  .cp-crm-chart-legend__item {
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: var(--s-1) var(--s-3);
    padding: var(--s-2) var(--s-3);
  }
  .cp-crm-chart-legend__lbl {
    flex-direction: row;
    flex: 1 1 auto;
    justify-content: center;
  }
  .cp-crm-chart-legend__meta {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
  }
}
@supports not (container-type: inline-size) {
  @media (max-width: 400px) {
    .cp-crm-chart-legend { grid-template-columns: 1fr; }
  }
}
.cp-crm-dash-visual__card--kpi {
  container-type: inline-size;
  container-name: cp-crm-kpi;
}
.cp-crm-dash-visual__chart {
  position: relative;
  width: 100%;
  min-width: 0;
  flex: none;
  height: 15rem;
  font-family: var(--font-sans);
}
.cp-crm-dash-visual__chart--donut {
  height: 11.75rem;
  min-height: 11.75rem;
}
.cp-crm-dash-visual__chart--tall { height: 20rem; }
.cp-crm-chart-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 11.25rem;
  margin: 0;
  text-align: center;
  font: 400 12.5px/18px var(--font-sans);
  color: var(--ink-3);
}

.cp-crm-neg-preview {
  padding: var(--s-4);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 10%, var(--border));
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.cp-crm-neg-preview__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-3);
}
.cp-crm-neg-preview__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-1);
}
.cp-crm-neg-preview__hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-4);
  line-height: 1.4;
}
.cp-crm-neg-preview__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--grey-100);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cp-crm-neg-preview__search { margin-bottom: var(--s-3); }
.cp-crm-neg-preview__wrap {
  overflow: auto;
  max-height: min(520px, 62vh);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}
.cp-crm-neg-preview__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cp-crm-neg-preview__table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.cp-crm-neg-preview__table thead th.num { text-align: right; }
.cp-crm-neg-preview__th-id { width: 7.5rem; }
.cp-crm-neg-preview__table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  vertical-align: top;
  color: var(--ink-2);
}
.cp-crm-neg-preview__table tbody tr:last-child td { border-bottom: 0; }
.cp-crm-neg-preview__table tbody tr:hover td {
  background: color-mix(in srgb, var(--brand-violet) 4%, var(--surface));
}
.cp-crm-neg-preview__id-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--brand-cyan) 35%, var(--border));
  background: color-mix(in srgb, var(--brand-cyan) 10%, #fff);
  color: var(--brand-cyan-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.cp-crm-neg-preview__td-valor {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-1);
  white-space: nowrap;
}
.cp-crm-neg-preview__emp {
  min-width: 180px;
  max-width: 280px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink-1);
}
.cp-crm-neg-preview__td-date,
.cp-crm-neg-preview__td-seller,
.cp-crm-neg-preview__td-fase {
  font-size: 12px;
  color: var(--ink-3);
  max-width: 220px;
}
.cp-crm-neg-preview__td-date {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cp-crm-neg-preview__td-fase { font-weight: 600; }

.cp-crm-leads__search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 360px);
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.cp-crm-leads__search i,
.cp-crm-leads__search svg {
  width: 15px;
  height: 15px;
  color: var(--ink-4);
  flex: none;
}
.cp-crm-leads__search input {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink-1);
  outline: none;
}
.cp-crm-leads-empty,
.cp-crm-leads__empty-filter {
  padding: var(--s-5);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--ink-4);
  background: var(--surface-2);
}
.cp-crm-leads-empty i,
.cp-crm-leads-empty svg {
  width: 28px;
  height: 28px;
  margin-bottom: var(--s-2);
  color: var(--ink-4);
}
@media (max-width: 900px) {
  .cp-crm-neg-preview__wrap { max-height: none; }
}

/* Funil */
.cp-gads-account.cp-dash-block {
  padding: var(--s-4);
  border-color: color-mix(in srgb, var(--brand-violet) 12%, var(--border));
}
.cp-funnel {
  margin-top: 0;
  margin-bottom: 0;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--brand-violet) 10%, var(--border));
  background: linear-gradient(180deg, var(--violet-50) 0%, var(--surface-2) 28%);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.cp-funnel__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5) var(--s-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.cp-funnel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.cp-funnel__subtitle {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.cp-funnel__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: flex-end;
}
.cp-funnel__badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cp-funnel__badge--cpa {
  background: var(--violet-100);
  border-color: color-mix(in srgb, var(--brand-violet) 25%, var(--border));
}
.cp-funnel__badge-k {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-4);
}
.cp-funnel__badge-v {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-violet);
}
.cp-funnel__body {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5) var(--s-5);
}
@media (min-width: 900px) {
  .cp-funnel__body {
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: center;
  }
}
.cp-funnel-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: var(--s-1) 0;
}
.cp-trap-wrap { margin: 0 auto; transition: width 0.35s ease; }
.cp-trap {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--s-2) var(--s-3);
  text-align: center;
  clip-path: polygon(6% 0%, 94% 0%, 88% 100%, 12% 100%);
  box-shadow: var(--shadow-2);
}
.cp-trap__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cp-trap__value {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cp-trap--impr { background: linear-gradient(180deg, #fde047, #eab308, #ca8a04); color: #1d1b2e; }
.cp-trap--clicks { background: linear-gradient(180deg, #fef9c3, #fde047, #eab308); color: #422006; }
.cp-trap--conv { background: linear-gradient(180deg, #5eead4, #2dd4bf, #0d9488); color: #042f2e; }
.cp-trap-wrap--tip { margin-top: 2px; }
.cp-trap--tip {
  min-height: 30px;
  padding: 0;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, var(--brand-violet-light), var(--brand-violet));
}
.cp-funnel__metrics {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
@media (min-width: 900px) {
  .cp-funnel__metrics {
    border-left: 1px solid var(--border);
    padding-left: var(--s-4);
  }
}
.cp-funnel-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cp-funnel-metric__k {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cp-funnel-metric__v {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-1);
}

/* Gráficos e tabelas */
.cp-gads-section__title > i { display: none; } /* legado: usar .cp-gads-section__ico */
.cp-gads-charts { margin-top: var(--s-4); }
.cp-gads-charts__panel--full {
  margin-bottom: var(--s-5);
}
.cp-gads-charts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-4);
  margin-bottom: var(--s-4);
}
@media (min-width: 900px) {
  .cp-gads-charts__grid--half { grid-template-columns: 1fr 1fr; }
}
.cp-gads-charts__grid--pair > :only-child {
  grid-column: 1 / -1;
}
.cp-gads-charts__panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.cp-gads-charts__panel-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-1);
}
.cp-gads-charts__panel-desc {
  margin: 0 0 var(--s-3);
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
}
.cp-gads-charts__empty {
  padding: var(--s-6) var(--s-3);
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}
.cp-chart-wrap {
  position: relative;
  width: 100%;
}
.cp-chart-wrap--tall { height: 280px; min-height: 220px; }
.cp-chart-wrap--short { height: 220px; min-height: 180px; }
.cp-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.cp-gads-chart__bar {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, var(--brand-violet-light), var(--brand-violet));
}

.cp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cp-table th,
.cp-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cp-table th {
  background: var(--surface-2);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-4);
  white-space: nowrap;
}
.cp-table tbody tr:last-child td { border-bottom: none; }
.cp-table tbody tr:hover td { background: var(--violet-50); }
.cp-table .cp-num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.cp-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
}
.cp-pill--kw {
  background: var(--violet-100);
  color: var(--brand-violet);
}
.cp-pill--search {
  background: var(--cyan-100);
  color: var(--brand-cyan-deep);
}
.cp-table-wrap--scroll {
  max-height: min(420px, 52vh);
  overflow: auto;
}
.cp-table-wrap--scroll .cp-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-2);
}

/* Overlay upgrade (módulo bloqueado) */
.cp-page-body--gated,
.cp-gads--locked .cp-gads-hero,
.cp-gads--locked .cp-crm-panel,
.cp-gads--locked .cp-gads-account {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
}
.cp-feature-lock {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: var(--s-5);
  background: rgba(29, 27, 46, 0.35);
  backdrop-filter: blur(2px);
}
.cp-feature-lock__panel {
  width: min(100%, 22rem);
  margin: 0;
}
.cp-feature-lock__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.cp-feature-lock__extra { display: block; margin-top: 4px; }
.cp-feature-lock__cats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.cp-feature-lock__cats i,
.cp-feature-lock__cats svg { width: 14px; height: 14px; }
.cp-feature-lock__actions { display: grid; gap: var(--s-2); }
.cp-feature-lock__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.cp-feature-lock__link:hover { color: #fff; text-decoration: underline; }
.cp-feature-lock__link i,
.cp-feature-lock__link svg { width: 14px; height: 14px; }

/* ─── EXTRA: rolagem suave + foco acessível ──────────────── */
html { scroll-behavior: smooth; }
:focus-visible {
  outline: 2px solid var(--brand-violet);
  outline-offset: 2px;
}

/* ── PRINT ─────────────────────────────────────────────────── */
@media print {
  .cp-aside, .cp-topbar, .cp-aside-backdrop, .detail-cta { display: none !important; }
  .cp-shell { display: block; }
  .cp-content { padding: 0; }
  body { background: #fff; }
}

/* ============================================================
   CONNECTADO · MARCA OFICIAL — Logotipo v1
   ------------------------------------------------------------
   Lockups que consomem os símbolos definidos em
   views/partials/connectado-logo-sprite.php (#cn-mark, #cn-mark-white).
   Wordmark: Inter 800 com tracking -0.025em (espelha
   "Design System/Logotipo.html"). NÃO trocar por outra fonte.
   ============================================================ */

/* Lockup horizontal usado no topo da sidebar do portal (_chrome.php). */
.cp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: var(--s-3) var(--s-4);
  margin: var(--s-4) var(--s-3) 0;
  border-radius: var(--r-md);
  color: var(--ink-1);
  flex: none;
  transition: background 0.14s var(--ease);
}
.cp-brand:hover { background: var(--violet-50); }
.cp-brand:focus-visible {
  outline: 2px solid var(--brand-violet);
  outline-offset: 2px;
}
.cp-brand__mark {
  width: 32px;
  height: 32px;
  flex: none;
  display: block;
}
.cp-brand__word {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-feature-settings: "ss01" on, "cv11" on;
  color: var(--ink-1);
  line-height: 1;
  white-space: nowrap;
}

/* Reskin do logotipo no aside esquerdo do login: ele fica sobre o
   gradiente brand, então usar #cn-mark-white sem tile de fundo. */
.cp-login-aside .cp-logo { gap: 10px; }
.cp-login-aside .cp-logo .cp-logo-icon {
  width: 36px;
  height: 36px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  display: block;
}
.cp-login-aside .cp-logo span:last-child {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-feature-settings: "ss01" on, "cv11" on;
}

/* Card de login (lado direito): a antiga tile gradiente com a letra "C"
   vira contêiner transparente — o próprio símbolo já carrega o gradiente. */
.login-mark {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}
.login-mark::after { display: none; }
.login-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   CONNECTADO · Identificação do usuário no topbar (aprovado)
   ------------------------------------------------------------
   Chip compacto (avatar + nome + role) à direita do topbar,
   imediatamente antes do sino. Substituiu o cp-userbox que ficava
   no rodapé da sidebar — aquele lugar agora hospeda o cartão
   "Empresa" (cp-aside__client), enquanto o topo da sidebar mostra
   apenas a marca CONNECTADO (cp-brand). Layout aprovado 24/mai/2026.
   ============================================================ */

.cp-topbar__user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 4px 10px 4px 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  max-width: 220px;
  line-height: 1;
}
.cp-topbar__user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--brand-violet);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.cp-topbar__user-meta {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.cp-topbar__user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.cp-topbar__user-role {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-violet);
}

/* Mobile: colapsa pra só o avatar (poupa espaço com o sino + burger) */
@media (max-width: 640px) {
  .cp-topbar__user {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: none;
  }
  .cp-topbar__user-meta { display: none; }
}

/* Toast lateral — carregamento API (portal: Google Ads, etc.) */
.cp-side-toast,
.si-side-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  max-width: 340px;
  padding: 12px 16px 12px 14px;
  background: #fff;
  border: 1px solid #e6e4ea;
  border-left: 4px solid #512e94;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(29, 27, 46, 0.18);
  font-family: var(--font-sans, Inter, system-ui, sans-serif);
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.cp-side-toast.is-visible,
.si-side-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.cp-side-toast__ico,
.si-side-toast__ico {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(81, 46, 148, 0.12);
  color: #512e94;
}
.cp-side-toast__ico svg,
.si-side-toast__ico svg {
  width: 18px;
  height: 18px;
}
.cp-side-toast__body,
.si-side-toast__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.25;
}
.cp-side-toast__title,
.si-side-toast__title {
  font-size: 13px;
  font-weight: 700;
  color: #1d1b2e;
  letter-spacing: -0.01em;
}
.cp-side-toast__msg,
.si-side-toast__msg {
  font-size: 11.5px;
  color: #6c6982;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-side-toast--loading,
.si-side-toast--loading {
  border-left-color: #512e94;
}
.cp-side-toast--loading .cp-side-toast__ico svg,
.si-side-toast--loading .si-side-toast__ico svg {
  animation: cp-side-toast-spin 0.9s linear infinite;
  transform-origin: 50% 50%;
}
.cp-side-toast--ok,
.si-side-toast--ok {
  border-left-color: #2c8a6b;
}
.cp-side-toast--ok .cp-side-toast__ico,
.si-side-toast--ok .si-side-toast__ico {
  background: rgba(44, 138, 107, 0.14);
  color: #2c8a6b;
}
.cp-side-toast--err,
.si-side-toast--err {
  border-left-color: #c0265a;
}
.cp-side-toast--err .cp-side-toast__ico,
.si-side-toast--err .si-side-toast__ico {
  background: rgba(192, 38, 90, 0.14);
  color: #c0265a;
}
.cp-side-toast--err .cp-side-toast__msg,
.si-side-toast--err .si-side-toast__msg {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
@keyframes cp-side-toast-spin {
  to { transform: rotate(360deg); }
}

.cp-gads-accounts-host.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 640px) {
  .cp-side-toast,
  .si-side-toast {
    left: 12px;
    right: 12px;
    top: 70px;
    max-width: none;
    min-width: 0;
  }
}
