/* ================================================================
   Acompanhamentos — números do dia, quadro das empresas por
   situação na Tax e o dossiê em gaveta, com a linha do tempo e o
   retrato no CRM (funil e agenda). Cor só para estado; o resto é
   superfície, linha fina e respiro.
   ================================================================ */

.ac-wrap,
.ac-drawer,
.ac-toast {
  --ac-a: #1d7486;
  --ac-a-2: #2b93a8;
  --ac-a-soft: rgba(29, 116, 134, 0.08);
  --ac-a-line: rgba(29, 116, 134, 0.30);
  --ac-a-on: #ffffff;
  --ac-violet: #6552bd;
  --ac-violet-on: #ffffff;
  --ac-amber: #a8701a;
  --ac-amber-on: #ffffff;
  --ac-green: #1f8a5b;
  --ac-r: 12px;
  --ac-gold: var(--accent-strong);
  --ac-gold-line: var(--gold-line);
  --ac-serif: var(--font-editorial);
  --ac-glow: rgba(184, 178, 122, 0.10);
  --ac-card: var(--surface);
  --ac-ease: cubic-bezier(.2, .8, .3, 1);
}
.ac-wrap { min-width: 0; }
[data-theme="dark"] .ac-wrap,
[data-theme="dark"] .ac-drawer,
[data-theme="dark"] .ac-toast {
  --ac-a: #6cc4d8;
  --ac-a-2: #9ad8e6;
  --ac-a-soft: rgba(108, 196, 216, 0.08);
  --ac-a-line: rgba(108, 196, 216, 0.28);
  --ac-a-on: #0b2a31;
  --ac-violet: #b1a2ef;
  --ac-violet-on: #1c1540;
  --ac-amber: #e3b460;
  --ac-amber-on: #2b1d04;
  --ac-green: #5fd49a;
  --ac-glow: rgba(207, 203, 150, 0.06);
}

.ac-mono { font-family: var(--font-mono); }
.t-fiscal   { --tc: var(--ac-a); }
.t-passivo  { --tc: var(--ac-violet); }
.t-juridico { --tc: var(--ac-amber); }
.is-muted { color: var(--muted); font-weight: 400; }

.ac-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ac-gold);
}
.ac-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--ac-gold-line); }
.ac-eyebrow em { font-family: var(--font-body); font-style: normal; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted-soft); }
.ac-eyebrow em::before { content: "·"; margin-right: 10px; color: var(--muted-soft); }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}

/* Pontinho de estado, usado em toda a tela no lugar de etiquetas. */
.ac-sdot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tc, var(--border-strong));
}
.ac-sdot.is-wait { background: var(--ac-amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac-amber) 22%, transparent); }
.ac-sdot.is-closed { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted-soft); }
.ac-sdot.is-loading { background: var(--ac-a); animation: acBlink 1s ease-in-out infinite; }

/* Estágio do funil (cores de js/lead_stage.js). */
.ac-stage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: var(--sbg);
  color: var(--sfg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.ac-stage::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.ac-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 24px 12px;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--ac-a-line);
  border-radius: var(--ac-r);
  background: var(--ac-a-soft);
  color: var(--ink);
  font-size: 13.5px;
  animation: acFadeDown .3s ease-out both;
}
.ac-banner-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius); background: color-mix(in srgb, var(--ac-a) 16%, transparent); color: var(--ac-a); font-size: 1rem; }
.ac-banner p { margin: 0; flex: 1; }

.ac-round {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: .95rem;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.ac-round:hover { background: var(--surface-2); border-color: var(--hairline); color: var(--ink); }
.ac-round.is-on { background: var(--surface-2); border-color: var(--hairline); color: var(--ac-a); }
.ac-round.is-spinning i { animation: acSpin .8s linear infinite; }

.ac-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s, color .15s;
}
.ac-btn:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--ink); }
.ac-btn:active { transform: scale(.97); }
.ac-btn:disabled { cursor: default; opacity: .7; transform: none; }
.ac-btn > i { font-size: .95rem; color: var(--muted); transition: color .15s; }
.ac-btn:hover > i { color: var(--ink); }
.ac-btn.is-primary {
  border-color: transparent;
  background: var(--brand-charcoal);
  color: var(--brand-paper);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 8px 18px -12px rgba(0, 0, 0, .55);
}
.ac-btn.is-primary > i { color: inherit; }
.ac-btn.is-primary:hover { background: color-mix(in srgb, var(--brand-charcoal) 85%, var(--brand-gold)); color: var(--brand-paper); }
[data-theme="dark"] .ac-btn.is-primary { background: var(--brand-cream); color: var(--brand-ink); }
[data-theme="dark"] .ac-btn.is-primary:hover { background: var(--brand-paper); color: var(--brand-ink); }
.ac-btn.is-wait { border-color: color-mix(in srgb, var(--ac-amber) 45%, transparent); background: color-mix(in srgb, var(--ac-amber) 8%, transparent); color: var(--ac-amber); box-shadow: none; }
.ac-btn.is-wait > i { color: inherit; }
.ac-btn.is-wait:hover { background: color-mix(in srgb, var(--ac-amber) 16%, transparent); color: var(--ac-amber); }
.ac-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ac-a);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ac-link:hover { color: var(--ac-a-2); text-decoration: underline; text-underline-offset: 3px; }

.ac-spin { display: inline-block; flex-shrink: 0; width: 12px; height: 12px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: acSpin .8s linear infinite; }

/* ── Avatar com iniciais ──────────────────────────────────────── */
.ac-ava {
  --tc: var(--muted-soft);
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--tc) 14%, var(--surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 22%, transparent);
  color: color-mix(in srgb, var(--tc) 75%, var(--ink));
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  user-select: none;
}
.ac-ava.t-fiscal { --tc: var(--ac-a); }
.ac-ava.t-passivo { --tc: var(--ac-violet); }
.ac-ava.t-juridico { --tc: var(--ac-amber); }
.ac-ava.is-sm { width: 32px; height: 32px; border-radius: var(--radius); font-size: 11.5px; }
.ac-ava.is-lg { width: 56px; height: 56px; border-radius: var(--radius-lg); font-size: 19px; }

/* ── Busca e filtros ──────────────────────────────────────────── */
.ac-search { position: relative; margin: 0; }
.ac-search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-soft); font-size: 13px; pointer-events: none; }
.ac-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; transition: opacity .15s; }
.ac-search input:focus ~ kbd,
.ac-search input:not(:placeholder-shown) ~ kbd { opacity: 0; }
.ac-search input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ac-search input::placeholder { color: var(--muted-soft); }
.ac-search input:focus { border-color: var(--ac-a-line); box-shadow: 0 0 0 3px var(--ac-a-soft); }

.ac-fronts-filter { display: flex; gap: 2px; min-width: 0; }
.ac-fronts-filter button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.ac-fronts-filter button:hover { color: var(--ink); background: var(--surface-2); }
.ac-fronts-filter button.is-active { color: var(--ink); border-color: color-mix(in srgb, var(--tc) 45%, transparent); background: color-mix(in srgb, var(--tc) 10%, transparent); }

.ac-sort { position: relative; display: inline-flex; align-items: center; margin: 0; color: var(--muted); flex-shrink: 0; }
.ac-sort i { position: absolute; left: 8px; font-size: 12px; pointer-events: none; }
.ac-sort select {
  height: 26px;
  padding: 0 8px 0 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 12px;
  outline: none;
  cursor: pointer;
  appearance: none;
}
.ac-sort select:focus { border-color: var(--ac-a-line); }
.ac-sort select option { background: var(--surface); color: var(--ink); }

.ac-owner {
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  outline: none;
}
.ac-owner:focus { border-color: var(--ac-a-line); }

.ac-flag { flex-shrink: 0; font-size: 11px; font-weight: 500; color: var(--muted); }
.ac-flag.is-wait { padding: 1px 7px; border-radius: var(--radius); background: color-mix(in srgb, var(--ac-amber) 12%, transparent); color: var(--ac-amber); font-weight: 600; }
.ac-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.ac-pill i { font-size: 10.5px; }
.ac-pill.is-meet { background: var(--ac-a-soft); color: var(--ac-a); box-shadow: inset 0 0 0 1px var(--ac-a-line); }

.ac-track { display: flex; gap: 3px; height: 3px; margin-top: 6px; }
.ac-track-seg { position: relative; flex: 1; border-radius: 2px; background: var(--hairline); overflow: hidden; }
.ac-track-seg i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: 2px; background: var(--tc); opacity: .85; animation: acGrow .7s var(--ac-ease) both; }
.ac-track-seg.is-closed i { background: var(--muted-soft); opacity: .6; }
.ac-track.is-loading { position: relative; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.ac-track.is-loading i { position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--ac-a); animation: acScan 1.1s ease-in-out infinite; }
.ac-empty-ico { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 4px; border-radius: var(--radius-lg); background: var(--surface-2); color: var(--muted-soft); font-size: 1.3rem; }

/* ── Página ───────────────────────────────────────────────────── */
.ac-page { width: 100%; max-width: 1560px; margin: 0 auto; padding: 28px 36px 64px; }

/* Saudação à esquerda, números à direita */
.ac-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr);
  align-items: end;
  gap: 28px 40px;
  padding-bottom: 28px;
}
.ac-hero:not(.is-still) > * { animation: acFadeUp .4s ease-out both; }
.ac-hero:not(.is-still) > :nth-child(2) { animation-delay: .06s; }
.ac-hero-text h2 { margin: 12px 0 8px; font-family: var(--ac-serif); font-size: 2.6rem; font-weight: 300; line-height: 1.05; letter-spacing: -.015em; color: var(--ink); }
.ac-hero-text h2 i { font-style: italic; color: var(--ac-gold); }
.ac-hero-text p { margin: 0; max-width: 440px; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.ac-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ac-stat {
  --sc: var(--ac-gold);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: inherit;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, transform .25s var(--ac-ease), box-shadow .25s, background .2s;
}
.ac-stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, oklch(from var(--sc) l c h / 0.14), oklch(from var(--sc) l c h / 0) 70%); pointer-events: none; }
.ac-stat:hover { border-color: color-mix(in srgb, var(--sc) 40%, transparent); transform: translateY(-2px); box-shadow: 0 18px 34px -26px rgba(0, 0, 0, .6); }
.ac-stat:focus-visible { outline: 2px solid color-mix(in srgb, var(--sc) 60%, transparent); outline-offset: 2px; }
.ac-stat.is-active { border-color: color-mix(in srgb, var(--sc) 60%, transparent); background: color-mix(in srgb, var(--sc) 8%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 30%, transparent); }
.ac-stat.is-hot { --sc: var(--ac-a); }
.ac-stat.is-wait { --sc: var(--ac-amber); }
.ac-stat.is-meet { --sc: var(--ac-a-2); }
.ac-stat-ico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius); background: color-mix(in srgb, var(--sc) 14%, transparent); color: var(--sc); font-size: .95rem; }
.ac-stat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-stat b { font-family: var(--ac-serif); font-size: 2.3rem; font-weight: 300; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.ac-stat.is-hot b, .ac-stat.is-wait b, .ac-stat.is-meet b { color: var(--sc); }
.ac-stat b.is-skel { width: 44px; height: 30px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--bg-sunken), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.ac-stat-label { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ac-stat small { font-size: 11.5px; color: var(--muted-soft); }

.ac-scan { display: flex; align-items: center; gap: 12px; max-width: 440px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.ac-scan-text { flex-shrink: 0; }
.ac-scan-text b { color: var(--ink); font-weight: 600; }
.ac-scan-bar { flex: 1; min-width: 60px; height: 4px; border-radius: 2px; background: var(--hairline); overflow: hidden; }
.ac-scan-bar i { display: block; height: 100%; width: var(--w); border-radius: 2px; background: var(--ac-a); transition: width .6s var(--ac-ease); }
.ac-scan .ac-link { flex-shrink: 0; font-size: 12px; }
.ac-scan .ac-link:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* Faixa de próximas reuniões */
.ac-rail { margin-bottom: 24px; padding: 14px 16px 16px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: linear-gradient(90deg, oklch(from var(--ac-a) l c h / 0.06), oklch(from var(--ac-a) l c h / 0) 60%), color-mix(in srgb, var(--surface) 70%, transparent); animation: acFadeUp .4s ease-out .1s both; }
.ac-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ac-rail-head h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-family: var(--ac-serif); font-size: 1.15rem; font-weight: 400; color: var(--ink); }
.ac-rail-head h3 > i { font-size: .9rem; color: var(--ac-a); }
.ac-rail-head h3 b { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ac-a) 14%, transparent); font-family: var(--font-body); font-size: 11.5px; font-weight: 700; color: var(--ac-a); }
.ac-rail-head .ac-link i { font-size: .75rem; }
.ac-rail-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.ac-meet {
  flex: 0 0 auto;
  width: 264px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, transform .2s var(--ac-ease), box-shadow .2s;
}
.ac-meet:hover { border-color: color-mix(in srgb, var(--ac-a) 45%, transparent); transform: translateY(-1px); box-shadow: 0 12px 24px -20px rgba(0, 0, 0, .6); }
.ac-meet .ac-cal { background: color-mix(in srgb, var(--ac-a) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac-a) 30%, transparent); color: var(--ac-a); }
.ac-meet-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-meet-text strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; color: var(--ink); }
.ac-meet-text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; color: var(--muted); }
.ac-meet-text small b { font-weight: 600; color: var(--ac-a); }

/* Barra de busca e filtros, presa no topo ao rolar */
.ac-toolbar {
  position: sticky;
  top: 69px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 -36px 20px;
  padding: 12px 36px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: oklch(from var(--bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ac-toolbar .ac-search { flex: 0 1 240px; min-width: 170px; }
.ac-toolbar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.ac-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface); }
.ac-seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.ac-seg button b { min-width: 16px; font-size: 11px; font-weight: 600; color: var(--muted-soft); text-align: center; }
.ac-seg button b:empty { display: none; }
.ac-seg button:hover { color: var(--ink); background: var(--surface-2); }
.ac-seg button.is-active { background: var(--ink); color: var(--bg); }
.ac-seg button.is-active b { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.ac-seg button.is-wait:not(.is-zero):not(.is-active) b { color: var(--ac-amber); }
.ac-seg button.is-meet:not(.is-zero):not(.is-active) b { color: var(--ac-a); }

.ac-fronts-filter[hidden] { display: none; }
.ac-toolbar.is-minimal > :not(.ac-toolbar-end),
.ac-toolbar.is-minimal .ac-owner,
.ac-toolbar.is-minimal .ac-sort { display: none; }
.ac-view { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); }
.ac-view button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-family: var(--font-body); font-size: 12px; font-weight: 500; cursor: pointer; transition: color .15s, background .15s; }
.ac-view button:hover { color: var(--ink); }
.ac-view button.is-active { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }

/* ── Quadro por situação ──────────────────────────────────────── */
.ac-cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(270px, 1fr)); gap: 16px; align-items: start; }
.ac-col {
  --cc: var(--muted-soft);
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--cc);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-sunken) 45%, transparent);
}
.ac-col.is-waiting { --cc: var(--ac-amber); }
.ac-col.is-open { --cc: var(--ac-a); }
.ac-col.is-done { --cc: var(--success); }
.ac-col.is-pending { --cc: var(--border-strong); border-top-style: dashed; }
.ac-col-head { display: flex; align-items: flex-start; gap: 11px; padding: 14px 14px 10px; }
.ac-col-ico { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--radius); background: color-mix(in srgb, var(--cc) 14%, transparent); color: var(--cc); font-size: .9rem; }
.ac-col-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--ac-serif); font-size: 1.15rem; font-weight: 400; color: var(--ink); }
.ac-col-head h3 b { padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--cc) 14%, transparent); font-family: var(--font-body); font-size: 11.5px; font-weight: 700; color: var(--cc); }
.ac-col-head p { margin: 1px 0 0; font-size: 11.5px; color: var(--muted-soft); }
.ac-col-body { display: flex; flex-direction: column; gap: 8px; padding: 2px 10px 12px; }
.ac-col-empty { padding: 18px 8px; border: 1px dashed var(--hairline); border-radius: var(--radius-lg); color: var(--muted-soft); font-size: 12px; text-align: center; }
.ac-col-more { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); font-family: var(--font-body); font-size: 12px; font-weight: 600; cursor: pointer; transition: color .15s, background .15s; }
.ac-col-more:hover { background: var(--surface-2); color: var(--ink); }
.ac-col-more i { font-size: .7rem; }

.ac-kcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  padding: 13px 14px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: border-color .15s, transform .2s var(--ac-ease), box-shadow .2s;
  animation: acFadeUp .3s ease-out both;
  animation-delay: calc(var(--i, 0) * 25ms);
}
.ac-board.is-ready .ac-kcard,
.ac-board.is-ready .ac-tr { animation: none; }
.ac-kcard:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: 0 14px 28px -22px rgba(0, 0, 0, .6); }
.ac-kcard:focus-visible { outline: 2px solid var(--ac-a-line); outline-offset: 2px; }
.ac-kcard.is-active { border-color: var(--ac-gold-line); box-shadow: 0 0 0 3px var(--ac-glow), 0 14px 28px -22px rgba(0, 0, 0, .6); }
.ac-kcard-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ac-kcard-name { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.ac-kcard-name strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ac-kcard-name small { display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; font-size: 11.5px; color: var(--muted-soft); }
.ac-kcard-name small .ac-mono { font-size: 11px; }
.ac-kcard-head time { align-self: flex-start; flex-shrink: 0; font-size: 11px; color: var(--muted-soft); }
.ac-kcard .ac-track { margin-top: 0; }
.ac-kcard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }

.ac-status { min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.ac-status > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ac-status.is-muted { color: var(--muted-soft); }

.ac-kcard.is-skel { cursor: default; animation: none; gap: 10px; }
.ac-kcard.is-skel i,
.ac-col.is-skel .ac-col-head i { display: block; height: 10px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--surface-2), var(--bg-sunken), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.ac-kcard.is-skel i:nth-child(1) { width: 70%; height: 12px; }
.ac-kcard.is-skel i:nth-child(2) { width: 50%; }
.ac-kcard.is-skel i:nth-child(3) { width: 100%; height: 3px; }
.ac-col.is-skel { border-top-color: var(--hairline); }
.ac-col.is-skel .ac-col-head { padding: 18px 14px 12px; }
.ac-col.is-skel .ac-col-head i { width: 45%; height: 14px; }

/* ── Lista em tabela ──────────────────────────────────────────── */
.ac-table { border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.ac-tr {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(200px, 2fr) 130px 140px 160px 90px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 11px 18px;
  border: 0;
  border-top: 1px solid var(--hairline);
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background .15s;
  animation: acFadeUp .25s ease-out both;
  animation-delay: calc(var(--i, 0) * 15ms);
}
.ac-tr:hover { background: var(--surface-2); }
.ac-tr:focus-visible { outline: 2px solid var(--ac-a-line); outline-offset: -2px; }
.ac-tr.is-active { background: linear-gradient(90deg, var(--ac-glow), oklch(from var(--ac-glow) l c h / 0) 70%), var(--surface-2); box-shadow: inset 3px 0 0 var(--ac-gold); }
.ac-tr.is-head { border-top: 0; background: color-mix(in srgb, var(--bg-sunken) 50%, transparent); color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; cursor: default; animation: none; }
.ac-tr.is-head:hover { background: color-mix(in srgb, var(--bg-sunken) 50%, transparent); }
.ac-td { min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.ac-td-name { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ac-td-name strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; color: var(--ink); }
.ac-td-name small { display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; font-size: 11.5px; color: var(--muted-soft); }
.ac-td-name small .ac-mono { font-size: 11px; }
.ac-td.is-when { justify-content: flex-end; color: var(--muted-soft); font-size: 11.5px; }
.ac-tr.is-head span:last-child { text-align: right; }
.ac-mini { display: flex; align-items: center; gap: 8px; width: 100%; }
.ac-mini-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--hairline); overflow: hidden; }
.ac-mini-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--brand-gold-deep), var(--brand-gold)); }
.ac-mini b { font-size: 11.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.ac-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 64px 24px; border: 1px dashed var(--hairline); border-radius: var(--radius-lg); text-align: center; color: var(--muted); }
.ac-empty p { margin: 0; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.ac-empty small { font-size: 12.5px; }
.ac-empty .ac-btn { margin-top: 8px; }
.ac-empty.is-error .ac-empty-ico { color: var(--danger); }
.ac-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0 0; color: var(--muted-soft); font-size: 12px; }
.ac-note a { color: var(--ac-a); font-weight: 600; text-decoration: none; }
.ac-note a:hover { text-decoration: underline; }

/* ── Gaveta do dossiê ─────────────────────────────────────────── */
body.ac-lock { overflow: hidden; }
.ac-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(8, 10, 12, .45); opacity: 0; transition: opacity .3s ease; }
.ac-scrim.is-open { opacity: 1; }
.ac-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 61;
  width: min(860px, calc(100vw - 72px));
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--hairline);
  background: radial-gradient(900px 320px at 85% -80px, var(--ac-glow), oklch(from var(--ac-glow) l c h / 0) 70%), var(--bg);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .55);
  container-type: inline-size;
  outline: none;
  transform: translateX(104%);
  transition: transform .34s var(--ac-ease);
}
.ac-drawer.is-open { transform: none; }
.ac-dw-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--hairline); }
.ac-dw-nav, .ac-dw-tools { display: flex; align-items: center; gap: 4px; }
.ac-dw-nav span { margin-left: 8px; font-size: 12px; color: var(--muted-soft); font-variant-numeric: tabular-nums; }
.ac-round:disabled { opacity: .35; cursor: default; background: transparent; border-color: transparent; }
.ac-dw-scroll { flex: 1; min-height: 0; overflow-y: auto; }

/* Resumo do contrato: andamento, frentes e valores */
.ac-sum { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 0 36px 24px; padding: 18px 22px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.ac-sum-block h4 { margin: 0 0 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ac-sum .ac-gauge { width: 96px; height: 96px; }
.ac-sum .ac-gauge-text b { font-size: 1.6rem; }

/* ── Dossiê ───────────────────────────────────────────────────── */
.ac-dos-head { padding: 24px 36px 24px; animation: acFadeDown .3s ease-out both; }
.ac-dos-top { display: flex; align-items: flex-start; gap: 16px; }
.ac-dos-title { min-width: 0; flex: 1; }
.ac-dos-title h2 { margin: 6px 0 8px; font-family: var(--ac-serif); font-size: 2rem; font-weight: 400; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.ac-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ac-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.ac-tag > i { font-size: .72rem; color: var(--muted-soft); }
.ac-tag .ac-mono { font-size: 11.5px; color: var(--ink-2); }
.ac-tag.is-copy { cursor: pointer; font-family: inherit; transition: color .15s, border-color .15s; }
.ac-tag.is-copy:hover { border-color: var(--ac-a-line); color: var(--ac-a); }
.ac-tag.is-copy .bi-copy { opacity: .45; transition: opacity .15s; }
.ac-tag.is-copy:hover .bi-copy { opacity: 1; color: var(--ac-a); }
.ac-dos-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.ac-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0 72px; }

/* Faixa com o retrato da empresa: Tax, funil, conversa e agenda. */
.ac-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.ac-tile {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: border-color .2s, background .2s, box-shadow .2s, opacity .35s ease, transform .4s var(--ac-ease);
}
.ac-strip.is-in .ac-tile { opacity: 1; transform: none; }
.ac-strip.is-in .ac-tile:nth-child(2) { transition-delay: 0s, 0s, 0s, .05s, .05s; }
.ac-strip.is-in .ac-tile:nth-child(3) { transition-delay: 0s, 0s, 0s, .1s, .1s; }
a.ac-tile:hover { border-color: var(--border-strong); background: var(--surface); box-shadow: 0 12px 26px -20px rgba(0, 0, 0, .55); color: inherit; }
.ac-tile-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; }
.ac-tile-label > i:first-child { font-size: .8rem; color: var(--muted-soft); }
.ac-tile-go { margin-left: auto; font-size: .65rem; opacity: 0; transform: translate(-2px, 2px); transition: opacity .15s, transform .15s; }
a.ac-tile:hover .ac-tile-go { opacity: 1; transform: none; }
.ac-tile-value { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 22px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.25; }
.ac-tile-value b { font-family: var(--ac-serif); font-size: 1.45rem; font-weight: 400; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.ac-tile-value em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ac-a); }
.ac-tile-sub { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted-soft); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ac-tile-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--hairline); overflow: hidden; }
.ac-tile-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--brand-gold-deep), var(--brand-gold)); transition: width 1.1s var(--ac-ease) .25s; }
.ac-strip.is-in .ac-tile-bar i { width: var(--w); }
.ac-tile.is-loading .ac-tile-value { gap: 8px; color: var(--muted); font-weight: 500; font-size: 13px; }
.ac-tile.is-meet { border-color: var(--ac-a-line); background: color-mix(in srgb, var(--ac-a) 6%, var(--surface)); }
.ac-tile.is-meet .ac-tile-label > i:first-child { color: var(--ac-a); }
.ac-tabs { position: relative; display: flex; gap: 24px; padding: 0 36px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); overflow-x: auto; }
.ac-tabs button {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s;
}
.ac-tabs button b { padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-size: 11px; font-weight: 600; color: var(--muted); }
.ac-tabs button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--ac-gold);
  transform: scaleX(0);
  transition: transform .25s var(--ac-ease);
}
.ac-tabs button:hover,
.ac-tabs button.is-active { color: var(--ink); }
.ac-tabs button.is-active::after { transform: scaleX(1); }

.ac-feed { padding: 26px 36px 56px; }
.ac-dos-head + .ac-feed { border-top: 1px solid var(--hairline); }
.ac-section-title { max-width: 920px; margin: 0 0 16px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }

/* Próximo passo */
.ac-next {
  --tc: var(--ac-a);
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 920px;
  margin: 0 0 30px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 140px at 0% 0%, oklch(from var(--tc) l c h / 0.12), oklch(from var(--tc) l c h / 0) 70%),
    var(--ac-card);
  box-shadow: 0 16px 36px -28px rgba(0, 0, 0, .6);
  animation: acFadeUp .35s ease-out both;
}
.ac-next.is-wait { --tc: var(--ac-amber); }
.ac-next.is-done { --tc: var(--success); }
.ac-next-ico { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc); font-size: 1.15rem; }
.ac-next-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ac-next-label { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--tc); }
.ac-next-label em { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-style: normal; font-weight: 400; color: var(--muted); }
.ac-next-text b { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--ac-serif); font-size: 1.45rem; font-weight: 400; line-height: 1.2; color: var(--ink); }
.ac-next-text b i { align-self: center; font-size: .8rem; color: var(--muted-soft); }
.ac-next-text b span { font-style: italic; font-weight: 300; color: var(--muted); }
.ac-next.is-done .ac-next-text b { font-family: var(--font-body); font-size: .92rem; font-weight: 400; color: var(--ink-2); }
.ac-next-text small { font-size: 12px; color: var(--muted-soft); }

/* Linha do tempo */
.ac-tl { position: relative; max-width: 920px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.ac-tl::before { content: ""; position: absolute; left: 83px; top: 24px; bottom: 24px; width: 1px; background: linear-gradient(180deg, var(--ac-gold-line), var(--hairline) 30%, var(--hairline) 70%, oklch(from var(--hairline) l c h / 0)); }
.ac-tl-row {
  display: grid;
  grid-template-columns: 64px 40px minmax(0, 1fr);
  align-items: start;
  animation: acFadeUp .4s var(--ac-ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.ac-tl-when { padding-top: 14px; text-align: right; }
.ac-tl-when b { display: block; font-family: var(--ac-serif); font-size: 1.6rem; font-weight: 300; line-height: 1; font-variant-numeric: lining-nums; color: var(--ink); }
.ac-tl-when small { font-size: 11px; letter-spacing: .02em; color: var(--muted-soft); }
.ac-tl-node {
  justify-self: center;
  width: 11px;
  height: 11px;
  margin-top: 23px;
  border-radius: 50%;
  background: var(--tc);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px color-mix(in srgb, var(--tc) 30%, transparent);
}
.ac-tl-row.is-closed .ac-tl-node { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--muted-soft), 0 0 0 4px var(--bg); }

/* Cartão do registro */
.ac-card {
  --ac-c: var(--tc);
  --ac-on: var(--ac-a-on);
  position: relative;
  padding: 20px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 97%, #fff), var(--surface));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .04);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ac-ease);
}
.ac-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ac-c); opacity: .8; }
.ac-card:hover { border-color: var(--border); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 14px 32px -22px rgba(0, 0, 0, .55); transform: translateY(-1px); }
.ac-card.t-passivo { --ac-on: var(--ac-violet-on); }
.ac-card.t-juridico { --ac-on: var(--ac-amber-on); }
.ac-card.is-closed { --ac-c: var(--muted-soft); --ac-on: var(--surface); }
.ac-card.is-closed::before { opacity: .35; }
.ac-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ac-card-type { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ac-c); }
.ac-card-type > i { font-size: .8rem; }
.ac-card-type em { font-style: normal; font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--muted-soft); }
.ac-card-side { display: inline-flex; align-items: center; gap: 12px; }
.ac-card-state { display: inline-flex; align-items: center; gap: 7px; height: 22px; padding: 0 9px; border-radius: var(--radius); background: var(--surface-2); font-size: 11.5px; font-weight: 500; color: var(--muted); }
.ac-card-state.is-wait { background: color-mix(in srgb, var(--ac-amber) 12%, transparent); color: var(--ac-amber); font-weight: 600; }
.ac-card-fold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s;
}
.ac-card-fold:hover { color: var(--ink); }
.ac-card-fold i { font-size: .65rem; transform: rotate(180deg); transition: transform .2s; }
.ac-card.is-folded .ac-card-fold i { transform: none; }
.ac-card-title { margin: 8px 0 0; font-family: var(--ac-serif); font-size: 1.4rem; font-weight: 400; line-height: 1.2; letter-spacing: -.005em; color: var(--ink); }
.ac-card-title small { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 12.5px; font-weight: 400; color: var(--muted); }
.ac-card.is-closed .ac-card-title { color: var(--ink-2); }
.ac-card.is-folded { padding-top: 14px; padding-bottom: 14px; background: transparent; }
.ac-card.is-folded .ac-card-body { display: none; }
.ac-card.is-folded .ac-card-title { font-size: 1.15rem; }
.ac-card.is-folded:hover { transform: none; box-shadow: none; }
.ac-card-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.ac-card-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ac-a); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.ac-card-link:hover { color: var(--ac-a-2); text-decoration: underline; text-underline-offset: 3px; }
.ac-card-link .bi-arrow-up-right { font-size: .7rem; }
.ac-card-foot:has(.ac-report, .ac-report-lock) { justify-content: stretch; }
.ac-report { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.ac-report-tools { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ac-mini-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface-2); color: var(--ink-2); font-family: var(--font-body); font-size: 12px; font-weight: 500; cursor: pointer; transition: color .15s, border-color .15s; }
.ac-mini-btn:hover:not(:disabled) { color: var(--ink); border-color: var(--border-strong); }
.ac-mini-btn:disabled { opacity: .5; cursor: not-allowed; }
.ac-mini-btn .bi-whatsapp { color: var(--success); }
a.ac-mini-btn { text-decoration: none; }
.ac-chat-btn .bi { color: var(--success); }
.ac-report-lock { flex: 1; display: flex; align-items: center; gap: 7px; margin: 0; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 12px; color: var(--muted-soft); }
.ac-step-note { max-width: 720px; display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 9px 12px; border-radius: var(--radius); background: var(--surface-2); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.ac-step-note i { margin-top: 2px; color: var(--muted); }
.ac-step-note.is-info { background: color-mix(in srgb, var(--info) 10%, transparent); }
.ac-step-note.is-info i { color: var(--info); }
.ac-meta dd.is-pending { font-style: italic; color: var(--muted); }
.ac-meta dd.is-money small { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 11.5px; color: var(--muted); }

.ac-cal { width: 32px; height: 34px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--ac-a-soft); box-shadow: inset 0 0 0 1px var(--ac-a-line); color: var(--ac-a); line-height: 1; }
.ac-cal b { font-family: var(--ac-serif); font-size: 1rem; font-weight: 500; }
.ac-cal small { margin-top: 1px; font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.ac-state { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; animation: acFadeUp .35s ease-out both; }
.ac-state .farol-loader { --size: 90px; }
.ac-state h3 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.ac-state p { max-width: 440px; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.ac-state > i { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 4px; border-radius: var(--radius-lg); background: var(--surface-2); font-size: 1.4rem; color: var(--muted-soft); }
.ac-state.is-error > i { color: var(--danger); }

.ac-gauge { position: relative; width: 112px; height: 112px; }
.ac-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ac-gauge circle { fill: none; stroke-width: 5; }
.ac-gauge-track { stroke: var(--surface-2); }
.ac-gauge-fill { stroke: var(--ac-gold); stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); transition: stroke-dashoffset 1.1s var(--ac-ease) .2s; }
.ac-sum.is-in .ac-gauge-fill { stroke-dashoffset: var(--off); }
.ac-gauge-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ac-gauge-text b { font-family: var(--ac-serif); font-size: 1.9rem; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.ac-gauge-text span { margin-top: 3px; font-size: 11px; color: var(--muted); }

.ac-fronts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ac-front-head { display: flex; justify-content: space-between; font-size: 12.5px; }
.ac-front-head span { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink); }
.ac-front-head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tc); }
.ac-front-head b { font-size: 12px; font-weight: 400; color: var(--muted); }
.ac-bar { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.ac-bar span { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--tc); transition: width 1s var(--ac-ease) .3s; }
.ac-sum.is-in .ac-bar span { width: var(--w); }

.ac-values { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ac-values dt { display: flex; justify-content: space-between; font-size: 12px; font-weight: 400; color: var(--muted); }
.ac-values dt em { font-style: normal; font-size: 11px; color: var(--muted-soft); }
.ac-values dd { margin: 1px 0 0; font-family: var(--ac-serif); font-size: 1.3rem; font-weight: 400; font-variant-numeric: lining-nums tabular-nums; }

/* ── Passos com bolinhas ──────────────────────────────────────── */
.ac-stepper {
  --n: 3;
  --p: 0;
  position: relative;
  display: flex;
  margin: 20px 0 4px;
  padding: 0;
  list-style: none;
}
.ac-stepper::before,
.ac-stepper::after {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(50% / var(--n));
  height: 2px;
  width: calc(100% - 100% / var(--n));
  border-radius: 2px;
}
.ac-stepper::before { background: var(--hairline); }
.ac-stepper::after {
  background: var(--ac-c);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .9s var(--ac-ease) .15s;
}
.ac-stepper.is-in::after { transform: scaleX(var(--p)); }

.ac-step {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  text-align: center;
}
.ac-dot {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: .72rem;
  color: var(--muted-soft);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  transform: scale(.4);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.4), opacity .25s ease;
  transition-delay: calc(.15s + var(--si, 0) * 100ms);
}
.ac-stepper.is-in .ac-dot { transform: scale(1); opacity: 1; }

.ac-step.is-done .ac-dot { border-color: var(--ac-c); background: var(--ac-c); color: var(--ac-on); }
.ac-step.is-now .ac-dot { border-color: var(--ac-c); border-width: 2px; color: var(--ac-c); }
.ac-step.is-now .ac-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ac-c); }
.ac-step.is-now .ac-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--ac-c);
  animation: acPulse 2.4s ease-out infinite;
  animation-delay: 1s;
}

.ac-step-label {
  max-width: 150px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-step.is-done .ac-step-label { color: var(--muted); }
.ac-step.is-now .ac-step-label { color: var(--ink); font-weight: 700; }
.ac-step small { margin-top: -5px; font-size: 11px; color: var(--muted-soft); }

/* Detalhes */
.ac-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px 24px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.ac-meta div { min-width: 0; }
.ac-meta dt { margin: 0 0 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.ac-meta dd { margin: 0; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.ac-meta dd.is-money { font-family: var(--ac-serif); font-size: 1.25rem; font-weight: 400; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; }
.ac-meta.is-extra { margin-top: 12px; padding: 14px 16px; border: 0; border-radius: var(--radius); background: var(--surface-2); }

.ac-more { margin-top: 14px; }
.ac-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
  transition: color .15s;
}
.ac-more summary:hover { color: var(--ink); }
.ac-more summary::-webkit-details-marker { display: none; }
.ac-more summary i { font-size: .7rem; transition: transform .2s; }
.ac-more[open] summary i { transform: rotate(180deg); }
.ac-more summary b { font-weight: 400; color: var(--muted-soft); }

.ac-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 9px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
  font-weight: 600;
  transform: translateX(-50%);
  box-shadow: var(--shadow-lg);
}
.ac-toast.is-in { animation: acToast .25s ease-out both; }

/* ── Animações ────────────────────────────────────────────────── */
@keyframes acFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes acFadeDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@keyframes acGrow { from { width: 0; } }
@keyframes acScan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(340%); }
}
@keyframes acPulse {
  0%   { transform: scale(1); opacity: .5; }
  80%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes acBlink { 50% { opacity: .3; } }
@keyframes acSpin { to { transform: rotate(360deg); } }
@keyframes acToast {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ── Responsivo ───────────────────────────────────────────────── */
@container (max-width: 700px) {
  .ac-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-sum { grid-template-columns: auto minmax(0, 1fr); }
  .ac-sum .ac-sum-block:last-child:not(:nth-child(2)) { grid-column: 1 / -1; }
}
@container (max-width: 520px) {
  .ac-strip { grid-template-columns: minmax(0, 1fr); }
  .ac-dos-head { padding: 18px 16px 18px; }
  .ac-dos-top .ac-ava.is-lg { width: 44px; height: 44px; border-radius: var(--radius-lg); font-size: 15px; }
  .ac-dos-title h2 { font-size: 1.55rem; }
  .ac-dos-title .ac-eyebrow em { display: none; }
  .ac-actions { margin-left: 0; }
  .ac-actions .ac-btn { flex: 1 1 calc(50% - 4px); justify-content: center; }
  .ac-actions .ac-btn.is-primary { flex-basis: 100%; }
  .ac-sum { grid-template-columns: minmax(0, 1fr); margin: 0 16px 20px; justify-items: stretch; }
  .ac-sum .ac-gauge { justify-self: center; }
  .ac-tabs { padding: 0 16px; }
  .ac-feed { padding: 18px 16px 28px; }
  .ac-next { flex-wrap: wrap; padding: 16px; }
  .ac-next-text { flex: 1 1 calc(100% - 60px); }
  .ac-next-text b { font-size: 1.25rem; }
  .ac-next .ac-btn { flex-basis: 100%; justify-content: center; }
  .ac-tl::before { left: 5px; }
  .ac-tl-row { grid-template-columns: 22px minmax(0, 1fr); }
  .ac-tl-when { grid-column: 2; grid-row: 1; padding: 0 0 6px; text-align: left; display: flex; align-items: baseline; gap: 6px; }
  .ac-tl-when b { display: inline; }
  .ac-tl-node { grid-column: 1; grid-row: 1 / 3; justify-self: start; margin-top: 4px; }
  .ac-card { grid-column: 2; padding: 14px 16px; }
  .ac-stepper { flex-direction: column; gap: 12px; margin-top: 16px; }
  .ac-stepper::before,
  .ac-stepper::after { top: 12px; left: 11px; width: 2px; height: calc(100% - 24px); }
  .ac-stepper::after { transform-origin: center top; transform: scaleY(0); }
  .ac-stepper.is-in::after { transform: scaleY(var(--p)); }
  .ac-step { flex-direction: row; align-items: center; gap: 12px; text-align: left; padding: 0; }
  .ac-step-label { max-width: none; }
  .ac-step small { margin-top: 0; }
}
@media (max-width: 1280px) {
  .ac-hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ac-tr { grid-template-columns: minmax(200px, 2fr) minmax(180px, 2fr) 120px 150px 80px; }
  .ac-tr > :nth-child(4) { display: none; }
}
@media (max-width: 1100px) {
  .ac-cols { grid-template-columns: repeat(var(--cols, 3), minmax(260px, 300px)); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
  .ac-col { scroll-snap-align: start; }
  .ac-tr { grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 1.6fr) 150px 80px; }
  .ac-tr > :nth-child(3) { display: none; }
}
@media (max-width: 860px) {
  .ac-page { padding: 20px 16px 48px; }
  .ac-hero-text h2 { font-size: 2rem; }
  .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-stat { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .ac-stat b { font-size: 1.8rem; }
  .ac-stat small { display: none; }
  .ac-stat-label { margin-top: 2px; }
  .ac-toolbar { top: 0; margin: 0 -16px 16px; padding: 10px 16px; }
  .ac-toolbar .ac-search { flex: 1 1 100%; }
  .ac-seg { order: 2; max-width: 100%; overflow-x: auto; }
  .ac-fronts-filter { order: 3; }
  .ac-toolbar-end { order: 4; margin-left: auto; }
  .ac-view button span { display: none; }
  .ac-wrap .topbar-title { flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
  .ac-wrap .leads-top-subnav { display: flex; flex-wrap: nowrap; max-width: 100%; margin-top: 4px !important; overflow-x: auto; scrollbar-width: none; }
  .ac-wrap .leads-top-subnav::-webkit-scrollbar { display: none; }
  .ac-wrap .leads-top-subnav .nav-tab-btn { white-space: nowrap; flex-shrink: 0; }
  .ac-banner { margin: 0 16px 12px; flex-wrap: wrap; }
  .ac-drawer { width: 100vw; border-left: 0; }
  .ac-dw-bar { padding: 10px 12px; }
  .ac-cols { grid-template-columns: repeat(var(--cols, 3), minmax(260px, 82vw)); margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 16px; }
  .ac-tr, .ac-tr.is-head { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; }
  .ac-tr.is-head { display: none; }
  .ac-tr > .is-name { grid-column: 1; }
  .ac-tr > .is-when { grid-column: 2; grid-row: 1; }
  .ac-tr > .is-status { grid-column: 1 / -1; padding-left: 42px; }
  .ac-tr > .is-meet, .ac-tr > .is-stage { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-kcard, .ac-tr, .ac-hero > *, .ac-rail, .ac-tl-row, .ac-next, .ac-state, .ac-banner, .ac-dos-head { animation: none; }
  .ac-track-seg i, .ac-track.is-loading i, .ac-sdot.is-loading, .ac-spin, .ac-round.is-spinning i { animation: none; }
  .ac-dot, .ac-stepper::after, .ac-gauge-fill, .ac-bar span, .ac-tile, .ac-tile-bar i, .ac-drawer, .ac-scrim { transition: none; }
  .ac-tile { opacity: 1; transform: none; }
  .ac-step.is-now .ac-dot::after { animation: none; }
}

/* ── Modais (mensagem e apresentação) ─────────────────────────── */
.ac-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.ac-modal[hidden] { display: none; }
.ac-modal-scrim { position: absolute; inset: 0; background: rgba(8, 10, 12, .55); opacity: 0; transition: opacity .2s ease; }
.ac-modal-box {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(.99);
  transition: opacity .2s ease, transform .25s var(--ac-ease);
}
.ac-modal.is-open .ac-modal-scrim { opacity: 1; }
.ac-modal.is-open .ac-modal-box { opacity: 1; transform: none; }
.ac-modal.is-wide .ac-modal-box { width: min(1480px, 100%); height: calc(100vh - 40px); }
.ac-modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--hairline); }
.ac-modal-head > div { flex: 1; min-width: 0; }
.ac-modal-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); }
.ac-modal-head h3 .bi-whatsapp { color: var(--success); }
.ac-modal-head p { margin: 2px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--muted); }
.ac-modal-body { padding: 16px 20px; overflow-y: auto; }
.ac-msg-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.ac-modal-body textarea {
  width: 100%;
  min-height: 170px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
  resize: vertical;
}
.ac-modal-body textarea:focus { outline: none; border-color: var(--ac-gold-line); box-shadow: 0 0 0 3px var(--ac-glow); }
.ac-msg-erro { margin: 8px 0 0; font-size: 12.5px; color: var(--danger); }
.ac-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--hairline); background: var(--surface-2); }
.ac-msg-count { margin-right: auto; font-size: 11.5px; color: var(--muted-soft); font-variant-numeric: tabular-nums; }
.ac-modal-foot .ac-btn:disabled { opacity: .55; cursor: not-allowed; }
.ac-apres-body { position: relative; flex: 1; min-height: 0; display: flex; background: var(--bg-sunken); }
.ac-apres-body iframe { flex: 1; width: 100%; height: 100%; border: 0; background: #fff; }
.ac-apres-body .ac-state { margin: auto; }
@media (max-width: 640px) {
  .ac-modal { padding: 0; place-items: end stretch; }
  .ac-modal-box { width: 100%; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .ac-modal.is-wide .ac-modal-box { height: 92vh; }
  .ac-modal-head .ac-btn span { display: none; }
}

/* ── Ação sugerida no próximo passo ───────────────────────────── */
.ac-next.has-acao { flex-wrap: wrap; }
.ac-acao { flex-basis: 100%; display: flex; align-items: center; gap: 12px; margin-top: 2px; padding: 10px 12px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1px solid var(--hairline); }
.ac-acao-ico { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--radius); background: color-mix(in srgb, var(--tc) 14%, transparent); color: var(--tc); }
.ac-acao-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.ac-acao-text small { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--tc); }
@media (max-width: 640px) {
  .ac-acao { flex-wrap: wrap; }
  .ac-acao .ac-mini-btn { flex-basis: 100%; justify-content: center; }
}

/* ── Novidades e tempo na etapa ───────────────────────────────── */
.ac-new {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--ac-a);
  color: var(--surface);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 0 0 3px var(--ac-glow);
}
.ac-td.is-status { min-width: 0; display: flex; align-items: center; gap: 8px; }
.ac-td.is-status .ac-new { align-self: center; }
.ac-flag.is-stale { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: var(--radius); background: color-mix(in srgb, var(--ac-amber) 14%, transparent); color: var(--ac-amber); font-weight: 600; }
.ac-step-note.is-time { background: transparent; padding: 0; margin-top: 10px; color: var(--muted); font-size: 12px; }
.ac-step-note.is-stale { background: color-mix(in srgb, var(--ac-amber) 12%, transparent); color: var(--ink); }
.ac-step-note.is-stale i { color: var(--ac-amber); }
.ac-next-text small { display: inline-flex; align-items: center; gap: 5px; }
.ac-next-text small.is-stale { color: var(--ac-amber); font-weight: 600; }

.ac-news { margin: 0 36px 16px; padding: 14px 18px 6px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface); }
.ac-news .ac-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ac-news .ac-section-title b { padding: 0 7px; border-radius: 999px; background: var(--ac-a); color: var(--surface); font-size: 10.5px; font-weight: 700; }
.ac-news ul { margin: 0; padding: 0; list-style: none; }
.ac-news li { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; border-top: 1px solid var(--hairline); }
.ac-news li:first-child { border-top: 0; }
.ac-news-ico { flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius); background: var(--surface-2); color: var(--muted); font-size: .85rem; }
.ac-news li.is-new .ac-news-ico { background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc); }
.ac-news-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; }
.ac-news-text b { font-weight: 600; color: var(--ink); }
.ac-news li:not(.is-new) .ac-news-text b { font-weight: 500; color: var(--ink-2); }
.ac-news-text em { font-style: normal; font-size: 11.5px; color: var(--muted-soft); }
.ac-news-text span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; color: var(--ink-2); }
.ac-news-text span i { font-size: .7rem; color: var(--muted-soft); }
.ac-news time { flex-shrink: 0; font-size: 11px; color: var(--muted-soft); }
@media (max-width: 860px) {
  .ac-news { margin: 0 16px 14px; }
}
