/* Área do Cliente · Centralcomm (clientes.centralcomm.media)
   Cadu Design System, skin "workspace": ponte de tokens do Untitled UI React v8
   (frontend/cadu-design-system/tokens.css) reproduzida em CSS para Jinja, como
   em campanha_publica.css. Diferença de propósito: aqui a navegação é uma
   sidebar CLARA à esquerda; a página pública do PI usa barra superior escura.
   Sempre claro. Fonte mínima 12px. */
:root {
  --colors-brand-25: #f2fbf8;  --colors-brand-50: #e8f5f1;  --colors-brand-100: #d4eee7;
  --colors-brand-200: #a8ddd0; --colors-brand-300: #72c7b5; --colors-brand-400: #3dae99;
  --colors-brand-500: #168f7b; --colors-brand-600: #087765; --colors-brand-700: #055c50;
  --colors-brand-800: #084f44;
  --colors-gray-25: #fcfcfd;  --colors-gray-50: #f9fafb;  --colors-gray-100: #f2f4f7;
  --colors-gray-200: #e4e7ec; --colors-gray-300: #d0d5dd; --colors-gray-400: #98a2b3;
  --colors-gray-500: #667085; --colors-gray-600: #475467; --colors-gray-700: #344054;
  --colors-gray-800: #1d2939; --colors-gray-900: #101828;
  --colors-warning-50: #fffaeb; --colors-warning-200: #fedf89; --colors-warning-500: #f79009; --colors-warning-700: #b54708;
  --colors-success-50: #ecfdf3; --colors-success-200: #abefc6; --colors-success-500: #17b26a; --colors-success-700: #067647;
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 10px; --radius-xl: 12px; --radius-2xl: 16px; --radius-full: 9999px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .10), 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);
  --ring-brand: 0 0 0 4px rgba(8, 119, 101, .18);

  /* --cadu-* da skin workspace (tokens.css) */
  --bg: #fcfcfd;
  --surface: #ffffff;
  --soft: var(--colors-gray-50);
  --ink: var(--colors-gray-900);
  --ink-2: var(--colors-gray-700);
  --muted: var(--colors-gray-600);
  --line: #eaecf0;
  --accent: var(--colors-brand-600);
  --accent-strong: var(--colors-brand-700);
  --accent-soft: var(--colors-brand-50);
  --side-w: 272px;
  --top-h: 64px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ac-icon { flex: none; display: block; }
.ac-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ac-skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; border-radius: var(--radius-md); background: var(--ink); color: #fff; text-decoration: none; }
.ac-skip:focus { top: 12px; }

/* ---------- Shell ---------- */
.ac-app { display: flex; min-height: 100vh; }
.ac-side {
  position: sticky; top: 0; height: 100vh; width: var(--side-w); flex: none;
  display: flex; flex-direction: column; gap: 16px; padding: 20px 16px;
  background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto;
}
.ac-side__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 4px 4px; }
.ac-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.ac-brand__mark { width: 40px; height: 28px; object-fit: contain; flex: none; }
.ac-brand__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-left: 12px; border-left: 1px solid var(--line); line-height: 1; }
.ac-brand__text b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ac-brand__text small { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); white-space: nowrap; }

.ac-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ac-nav__label { font-size: 12px; font-weight: 600; color: var(--colors-gray-500); text-transform: uppercase; letter-spacing: .04em; padding: 0 12px 6px; }
.ac-nav__link {
  display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px;
  border-radius: var(--radius-md); color: var(--ink-2); font-weight: 600; text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}
.ac-nav__link .ac-icon { color: var(--colors-gray-500); }
.ac-nav__link:hover { background: var(--soft); color: var(--ink); }
.ac-nav__link.is-active { background: var(--accent-soft); color: var(--accent-strong); }
.ac-nav__link.is-active .ac-icon { color: var(--accent); }
.ac-nav__link.is-disabled { color: var(--colors-gray-400); cursor: default; }
.ac-nav__link.is-disabled:hover { background: none; }
.ac-nav__ext { margin-left: auto; color: var(--colors-gray-400); }
.ac-nav__soon { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--colors-gray-100); border-radius: var(--radius-full); padding: 0 8px; }
.ac-nav--cadu { padding-top: 16px; border-top: 1px solid var(--line); }

.ac-exec {
  margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--soft);
}
.ac-exec__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.ac-exec__text small { font-size: 12px; color: var(--muted); }
.ac-exec__text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sidebar recolhida em ícones (desktop). O botão do topo alterna; a escolha fica no localStorage. */
@media (min-width: 1024px) {
  .ac-rail { --side-w: 76px; }
  .ac-rail .ac-side { padding: 20px 12px; align-items: center; }
  .ac-rail .ac-side__head { justify-content: center; padding: 0 0 4px; }
  .ac-rail .ac-brand__text, .ac-rail .ac-nav__text, .ac-rail .ac-nav__ext, .ac-rail .ac-nav__soon,
  .ac-rail .ac-nav__label, .ac-rail .ac-exec__text, .ac-rail .ac-exec .ac-icon-btn { display: none; }
  .ac-rail .ac-nav { width: 100%; }
  .ac-rail .ac-nav--cadu { padding-top: 12px; }
  .ac-rail .ac-nav__link { justify-content: center; padding: 10px; }
  .ac-rail .ac-exec { padding: 8px; justify-content: center; border-color: transparent; background: none; }
}

.ac-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ac-top {
  position: sticky; top: 0; z-index: 20; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 32px;
  background: rgba(252, 252, 253, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.ac-search {
  flex: 1; max-width: 440px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--colors-gray-300); border-radius: var(--radius-md); box-shadow: var(--shadow-xs);
  color: var(--colors-gray-500);
}
.ac-search:focus-within { border-color: var(--colors-brand-300); box-shadow: var(--ring-brand); }
.ac-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); }
.ac-top__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ac-content { padding: 32px; width: 100%; max-width: 1280px; margin: 0 auto; outline: none; }

/* ---------- Menus ---------- */
.ac-menu { position: relative; }
.ac-menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 260px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.ac-menu__panel--notes { width: 300px; padding: 16px; }
.ac-menu__title { font-weight: 600; margin-bottom: 6px; }
.ac-menu__empty { color: var(--muted); font-size: 13px; }
.ac-menu__who { display: flex; flex-direction: column; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ac-menu__who small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ac-menu__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); text-decoration: none; font-weight: 500; color: var(--ink-2); }
.ac-menu__item:hover { background: var(--soft); }
.ac-user {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 4px; border: 0; background: none;
  border-radius: var(--radius-md); font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.ac-user:hover { background: var(--colors-gray-100); }
.ac-user__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; text-align: left; max-width: 200px; }
.ac-user__text b { font-size: 14px; font-weight: 600; color: var(--ink); }
.ac-user__text small { font-size: 12px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ac-menu__who small + small { margin-top: 2px; color: var(--accent-strong); font-weight: 600; }

/* ---------- Primitivos ---------- */
.ac-avatar { width: 32px; height: 32px; border-radius: var(--radius-full); object-fit: cover; flex: none; }
.ac-avatar--lg { width: 44px; height: 44px; }
.ac-avatar--initials { display: grid; place-items: center; background: var(--colors-brand-100); color: var(--accent-strong); font-weight: 600; font-size: 13px; }
.ac-avatar--soft { background: var(--colors-gray-100); color: var(--ink-2); }
.ac-icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none; border: 0; background: none;
  border-radius: var(--radius-md); color: var(--colors-gray-500); cursor: pointer; text-decoration: none;
}
.ac-icon-btn:hover { background: var(--colors-gray-100); color: var(--ink-2); }
.ac-icon-btn.ac-side__close { display: none; }
.ac-icon-btn--brand { color: var(--accent); }
.ac-icon-btn--brand:hover { background: var(--accent-soft); color: var(--accent-strong); }
.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 16px;
  border-radius: var(--radius-md); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 14px;
  text-decoration: none; cursor: pointer; box-shadow: var(--shadow-xs); white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.ac-btn--primary { background: var(--accent); color: #fff; }
.ac-btn--primary:hover { background: var(--accent-strong); }
.ac-btn--secondary { background: var(--surface); color: var(--ink-2); border-color: var(--colors-gray-300); }
.ac-btn--secondary:hover { background: var(--soft); color: var(--ink); }
.ac-btn--sm { min-height: 36px; padding: 8px 14px; }
.ac-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.ac-link:hover { text-decoration: underline; }
.ac-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--radius-full);
  border: 1px solid var(--line); background: var(--colors-gray-50); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.ac-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ac-badge--success { background: var(--colors-success-50); border-color: var(--colors-success-200); color: var(--colors-success-700); }
.ac-badge--brand { background: var(--colors-brand-50); border-color: var(--colors-brand-200); color: var(--colors-brand-700); }
.ac-badge--warning { background: var(--colors-warning-50); border-color: var(--colors-warning-200); color: var(--colors-warning-700); }
.ac-progress { height: 8px; border-radius: var(--radius-full); background: var(--colors-gray-100); overflow: hidden; }
.ac-progress__fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

/* ---------- Tipografia e blocos ---------- */
.ac-h1 { margin: 0; font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: -.02em; }
.ac-h2 { margin: 0; font-size: 18px; line-height: 28px; font-weight: 600; }
.ac-h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.ac-lead { margin-top: 4px; color: var(--muted); font-size: 16px; }
.ac-eyebrow { font-size: 13px; font-weight: 600; color: var(--accent-strong); margin-bottom: 4px; }
.ac-page-head__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ac-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ac-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); padding: 24px; min-width: 0; }
.ac-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ac-card__sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.ac-section { margin-top: 32px; }
.ac-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ac-grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }

.ac-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ac-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.ac-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); padding: 20px 24px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.ac-kpi__icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-xs); margin-bottom: 4px; }
.ac-kpi__label { color: var(--muted); font-weight: 500; }
.ac-kpi__value { font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: -.02em; }
.ac-kpi__value small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ac-kpi__hint { color: var(--muted); font-size: 13px; }

.ac-perf { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.ac-perf__item { display: grid; gap: 8px; }
.ac-perf__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ac-perf__name { display: flex; flex-direction: column; min-width: 0; }
.ac-perf__name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-perf__name small, .ac-perf__meta { color: var(--muted); font-size: 13px; }
.ac-perf__pct { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }

.ac-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ac-feed__item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.ac-feed__dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--colors-success-50); color: var(--colors-success-700); }
.ac-feed__title { font-weight: 600; }
.ac-feed__meta { color: var(--muted); font-size: 13px; }
.ac-feed__meta a { color: var(--accent-strong); text-decoration: none; font-weight: 500; }

.ac-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.ac-project {
  display: flex; flex-direction: column; gap: 10px; padding: 20px; text-decoration: none; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.ac-project:hover { border-color: var(--colors-brand-200); box-shadow: var(--shadow-sm); }
.ac-project__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-project__code { font-size: 12px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-project__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.ac-project__meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.ac-project__progress { margin-top: auto; padding-top: 8px; display: grid; gap: 6px; }
.ac-project__progress-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.ac-project__progress-row b { color: var(--ink); }

.ac-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 24px 12px; }
.ac-empty__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--colors-gray-100); color: var(--colors-gray-600); box-shadow: 0 0 0 8px var(--colors-gray-50); margin-bottom: 8px; }
.ac-empty__title { font-weight: 600; font-size: 16px; }
.ac-empty__text { color: var(--muted); max-width: 380px; margin-bottom: 8px; }

.ac-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ac-toolbar__note { color: var(--muted); }
.ac-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--colors-gray-50); border: 1px solid var(--line); border-radius: var(--radius-lg); max-width: 100%; overflow-x: auto; }
.ac-tabs__item { padding: 8px 12px; border-radius: var(--radius-md); font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ac-tabs__item:hover { color: var(--ink-2); }
.ac-tabs__item.is-active { background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.ac-tabs--anchors { margin-bottom: 24px; }

/* ---------- Projeto 360° ---------- */
.ac-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; text-decoration: none; margin-bottom: 16px; }
.ac-back:hover { color: var(--ink); }
.ac-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ac-hero__main { min-width: 0; }
.ac-hero__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); }
.ac-hero__meta > span:not(.ac-badge) { display: inline-flex; align-items: center; gap: 6px; }
.ac-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.ac-steps__item { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-bottom: 20px; }
.ac-steps__item:last-child { padding-bottom: 0; }
.ac-steps__item:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 28px; bottom: 4px; width: 2px; background: var(--line); }
.ac-steps__item.is-done:not(:last-child)::before { background: var(--colors-brand-300); }
.ac-steps__dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--colors-gray-300); background: var(--surface); color: #fff; }
.is-done .ac-steps__dot { background: var(--accent); border-color: var(--accent); }
.is-current .ac-steps__dot { border-color: var(--accent); box-shadow: var(--ring-brand); }
.ac-steps__title { font-weight: 600; }
.is-todo .ac-steps__title { color: var(--ink-2); }
.ac-steps__meta { color: var(--muted); font-size: 13px; }
.ac-campaigns { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.ac-campaign { display: grid; gap: 12px; align-content: start; }
.ac-campaign__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ac-campaign__badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ac-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.ac-stats dt { color: var(--muted); font-size: 13px; }
.ac-stats dd { margin: 0; font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.ac-defs { margin: 0; display: grid; gap: 12px; }
.ac-defs > div { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ac-defs > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ac-defs dt { color: var(--muted); }
.ac-defs dd { margin: 0; font-weight: 500; }
.ac-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ac-file { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--colors-gray-500); }
.ac-file:hover { background: var(--soft); }
.ac-file__icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ac-file__name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; color: var(--ink); }
.ac-file__name small { font-weight: 400; color: var(--muted); font-size: 12px; }
.ac-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ac-person { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; }
.ac-person__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.ac-person__text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-person__text small { color: var(--muted); font-size: 13px; }
.ac-person__actions { display: flex; }
#visao, #campanhas, #combinados, #documentos, #equipe { scroll-margin-top: calc(var(--top-h) + 16px); }
#equipe { margin-top: 24px; }

/* ---------- Em preparação e sem acesso ---------- */
.ac-soon { display: grid; justify-items: start; gap: 12px; max-width: 640px; padding: 32px; }
.ac-soon__icon { width: 56px; height: 56px; border-radius: var(--radius-xl); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ac-soon__text { color: var(--ink-2); font-size: 16px; }
.ac-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--soft); }
.ac-gate__card { width: 100%; max-width: 480px; display: grid; justify-items: center; text-align: center; gap: 12px; padding: 40px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); }
.ac-gate__card .ac-h1 { font-size: 24px; line-height: 32px; }
.ac-gate__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--colors-warning-50); color: var(--colors-warning-700); margin-top: 8px; }
.ac-gate__exec { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: left; width: 100%; }
.ac-gate__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ac-gate__out { margin-top: 8px; }

/* ---------- Entrada (respeita prefers-reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ac-enter { animation: ac-enter 360ms var(--ease) both; }
  .ac-enter:nth-child(2) { animation-delay: 40ms; }
  .ac-enter:nth-child(3) { animation-delay: 80ms; }
  .ac-enter:nth-child(4) { animation-delay: 120ms; }
  .ac-side { transition: transform 240ms var(--ease); }
  @keyframes ac-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .ac-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .ac-side { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); visibility: hidden; box-shadow: var(--shadow-lg); }
  .ac-side-open .ac-side { transform: none; visibility: visible; }
  .ac-icon-btn.ac-side__close { display: grid; }
  .ac-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(16, 24, 40, .32); }
  .ac-top { padding: 0 16px; }
  .ac-content { padding: 24px 16px; }
}
@media (max-width: 720px) {
  .ac-kpis--3 { grid-template-columns: minmax(0, 1fr); }
  .ac-user__text { display: none; }
  .ac-h1 { font-size: 24px; line-height: 32px; }
  .ac-kpi__value { font-size: 24px; line-height: 32px; }
  .ac-card { padding: 20px 16px; }
  .ac-campaigns, .ac-project-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-defs > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ac-menu__panel--notes { width: min(300px, calc(100vw - 32px)); }
}
@media (max-width: 480px) {
  .ac-kpis { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ac-page-head .ac-btn { width: 100%; }
}

/* ---------- Briefing ---------- */
.ac-briefing { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ac-form { display: grid; gap: 20px; }
.ac-field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ac-field label, .ac-field legend { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 0; }
.ac-req { color: var(--accent); }
.ac-field input[type="text"], .ac-field input[type="date"], .ac-field textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--colors-gray-300); border-radius: var(--radius-md); box-shadow: var(--shadow-xs);
}
.ac-field textarea { resize: vertical; line-height: 1.5; }
.ac-field input::placeholder, .ac-field textarea::placeholder { color: var(--colors-gray-500); }
.ac-field input:focus, .ac-field textarea:focus { outline: none; border-color: var(--colors-brand-300); box-shadow: var(--ring-brand); }
.ac-field [aria-invalid="true"] { border-color: #fda29b; }
.ac-field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(240, 68, 56, .16); }
.ac-field__error { color: #b42318; font-size: 13px; }
.ac-field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ac-chips__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ac-chip { position: relative; cursor: pointer; }
.ac-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ac-chip span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: var(--radius-full);
  border: 1px solid var(--colors-gray-300); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 500;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.ac-chip:hover span { background: var(--soft); }
.ac-chip input:checked + span { background: var(--accent-soft); border-color: var(--colors-brand-300); color: var(--accent-strong); }
.ac-chip input:focus-visible + span { box-shadow: var(--ring-brand); }
.ac-form__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 20px; }
.ac-form__hint { color: var(--muted); font-size: 13px; }
.ac-notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-xl); border: 1px solid var(--line); margin-bottom: 24px; }
.ac-form .ac-notice { margin-bottom: 0; }
.ac-notice__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ac-notice__title { font-weight: 600; }
.ac-notice--success { background: var(--colors-success-50); border-color: var(--colors-success-200); color: var(--colors-success-700); }
.ac-notice--success .ac-notice__icon { background: #dcfae6; }
.ac-notice--warning { background: var(--colors-warning-50); border-color: var(--colors-warning-200); color: var(--colors-warning-700); align-items: center; }
.ac-notice--warning .ac-notice__icon { background: #fef0c7; }
.ac-briefs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ac-brief { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ac-brief.is-new { border-color: var(--colors-brand-300); box-shadow: var(--ring-brand); }
.ac-brief__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ac-brief__top b { min-width: 0; overflow-wrap: anywhere; }
.ac-brief__text { color: var(--ink-2); font-size: 14px; }
.ac-brief__meta { color: var(--muted); font-size: 13px; }
@media (max-width: 1180px) { .ac-briefing { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .ac-field-row { grid-template-columns: minmax(0, 1fr); }
  .ac-form__actions .ac-btn { width: 100%; }
}

/* ---------- Descobrir ---------- */
.ac-nav__count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-full); display: inline-grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
@media (min-width: 1024px) { .ac-rail .ac-nav__link { position: relative; } .ac-rail .ac-nav__count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; } }
.ac-discover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.ac-discover-card {
  display: flex; flex-direction: column; gap: 16px; padding: 24px; text-decoration: none; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.ac-discover-card:hover { border-color: var(--colors-brand-200); box-shadow: var(--shadow-sm); }
.ac-discover-card__icon { width: 48px; height: 48px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ac-discover-card__body { display: grid; gap: 4px; }
.ac-discover-card__body b { font-size: 18px; font-weight: 600; }
.ac-discover-card__body span { color: var(--muted); }
.ac-discover-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--accent-strong); font-weight: 600; font-size: 14px; }
.ac-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ac-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 6px 4px 12px; border-radius: var(--radius-full); background: var(--accent-soft); border: 1px solid var(--colors-brand-200); color: var(--accent-strong); font-size: 14px; font-weight: 500; }
.ac-tag small { font-size: 12px; color: var(--muted); font-weight: 500; }
.ac-tag:not(:has(button)) { padding-right: 12px; }
.ac-tag__remove { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--accent-strong); cursor: pointer; }
.ac-tag__remove:hover { background: #fff; }
.ac-field__label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.ac-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 24px; }
.ac-search--inline { flex: 1 1 260px; max-width: none; }
.ac-select { height: 40px; padding: 0 36px 0 12px; font: inherit; font-size: 14px; color: var(--ink-2); background: var(--surface) 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='%23667085' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--colors-gray-300); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); appearance: none; max-width: 100%; }
.ac-select:focus { outline: none; border-color: var(--colors-brand-300); box-shadow: var(--ring-brand); }
.ac-filters__count { margin-left: auto; color: var(--muted); font-size: 14px; }
.ac-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.ac-item { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); overflow: hidden; }
.ac-item__media { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--soft); color: var(--colors-gray-400); overflow: hidden; }
.ac-item__media img { width: 100%; height: 100%; object-fit: cover; }
.ac-item__media .ac-item__logo-big { width: 72px; height: 72px; object-fit: contain; }
.ac-item__body { display: grid; gap: 6px; padding: 16px 16px 8px; align-content: start; }
.ac-item__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.ac-item__title a { text-decoration: none; }
.ac-item__title a:hover { color: var(--accent-strong); }
.ac-item__meta { color: var(--muted); font-size: 13px; }
.ac-item__text { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-item__foot { margin-top: auto; padding: 8px 16px 16px; }
.ac-pick { margin: 0; }
.ac-pick--on { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--colors-brand-300); }
.ac-pick--on:hover { background: var(--colors-brand-100); }
.ac-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--muted); }
.ac-hero__main--logo { display: flex; align-items: center; gap: 16px; }
.ac-hero__logo { width: 48px; height: 48px; object-fit: contain; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; padding: 6px; flex: none; }
.ac-grid-2--top { margin-top: 0; align-items: start; }
.ac-detail__image { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 20px; }
.ac-detail__text { color: var(--ink-2); margin-top: 8px; white-space: pre-line; }
.ac-detail__group { margin-top: 24px; margin-bottom: 12px; }
.ac-detail__list { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.ac-defs--stack > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.ac-defs--stack { margin-top: 16px; }
.ac-detail__hint { margin-top: 20px; }
@media (max-width: 720px) {
  .ac-filters__count { margin-left: 0; width: 100%; }
  .ac-select { width: 100%; }
}

/* ---------- Tabelas (Campanhas, PIs) ---------- */
.ac-table-card { padding: 0; overflow: hidden; }
.ac-table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.ac-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ac-table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--soft); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ac-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.ac-table tr:last-child td { border-bottom: 0; }
.ac-table td b { color: var(--ink); font-weight: 600; }
.ac-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.ac-table td .ac-link { display: inline-flex; margin-top: 4px; }
.ac-table td:first-child .ac-link { margin-top: 0; font-weight: 600; }
.ac-table__bar { min-width: 140px; }
.ac-table__bar .ac-progress { margin-top: 6px; }
.ac-table__pct { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.ac-table--compact td, .ac-table--compact th { padding: 10px 12px; }
.ac-table--compact th:first-child, .ac-table--compact td:first-child { padding-left: 0; }
.ac-table--compact { font-size: 14px; }
.ac-table--compact th { background: none; }
.ac-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-tabs__count { margin-left: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
.ac-kpi__value--money { font-size: 24px; line-height: 32px; font-variant-numeric: tabular-nums; }
.ac-track { list-style: none; margin: 0 0 24px; padding: 16px 20px; display: flex; gap: 8px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); }
.ac-track__step { flex: 1 1 140px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: 14px; }
.ac-track__dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--colors-gray-300); color: #fff; flex: none; }
.ac-track__step.is-done { color: var(--ink-2); }
.ac-track__step.is-done .ac-track__dot { background: var(--accent); border-color: var(--accent); }
.ac-track__step.is-current { color: var(--accent-strong); font-weight: 600; }
.ac-track__step.is-current .ac-track__dot { border-color: var(--accent); box-shadow: var(--ring-brand); }
@media (max-width: 900px) {
  .ac-table thead { display: none; }
  .ac-table, .ac-table tbody, .ac-table tr, .ac-table td { display: block; width: 100%; }
  .ac-table tr { padding: 16px; border-bottom: 1px solid var(--line); }
  .ac-table tr:last-child { border-bottom: 0; }
  .ac-table td { border: 0; padding: 6px 0; display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 12px; }
  .ac-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  .ac-table td.ac-num { text-align: left !important; }
  .ac-table--compact td:first-child { padding-left: 0; }
  .ac-table-wrap { margin: 0; padding: 0; }
}

/* ---------- Ver como cliente (admin CentralComm) ---------- */
/* No menu é um item só, recolhido; a lista abre num modal, em dois grupos (PI em andamento e os demais). */
.ac-viewas-open { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.ac-viewas-open span { display: grid; gap: 1px; }
.ac-viewas-open small { font-size: 12px; font-weight: 500; color: var(--accent-strong, var(--colors-brand-700)); }
.ac-viewas-pick__filter { width: 100%; height: 40px; padding: 0 12px; font: inherit; font-size: 15px; border: 1px solid var(--colors-gray-300); border-radius: var(--radius-md); box-sizing: border-box; }
.ac-viewas-pick__filter:focus { outline: none; border-color: var(--colors-brand-300); box-shadow: var(--ring-brand); }
.ac-viewas-modal { width: min(560px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 48px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 64px rgba(16, 24, 40, .24); color: var(--ink-2); }
.ac-viewas-modal::backdrop { background: rgba(16, 24, 40, .48); }
.ac-viewas-modal[open] { display: flex; }
.ac-viewas-modal__box { display: flex; flex-direction: column; gap: 12px; width: 100%; min-height: 0; padding: 20px; box-sizing: border-box; }
.ac-viewas-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ac-viewas-modal__head h2 { margin: 0; font-size: 18px; color: var(--ink); }
.ac-viewas-modal__head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ac-viewas-modal__fechar { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; flex: none; }
.ac-viewas-modal__fechar:hover { background: var(--soft); }
.ac-viewas-modal__lista { overflow-y: auto; min-height: 0; margin: 0 -8px; padding: 0 8px; }
.ac-viewas-modal__lista h3 { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 6px 0; background: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--colors-gray-500); }
.ac-viewas-modal__lista h3 span { padding: 1px 8px; border-radius: 99px; background: var(--soft); color: var(--ink-2); letter-spacing: 0; }
.ac-viewas-modal__lista ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ac-viewas-modal__item { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; padding: 9px 12px; border: 1px solid transparent; border-radius: var(--radius-md); background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.ac-viewas-modal__item b { font-weight: 600; font-size: 14px; color: var(--ink); }
.ac-viewas-modal__item small { grid-column: 1; font-size: 12px; color: var(--muted); }
.ac-viewas-modal__item:hover, .ac-viewas-modal__item:focus-visible { background: var(--soft); outline: none; }
.ac-viewas-modal__item.is-atual { border-color: var(--colors-brand-300); background: var(--colors-brand-50, #eef8f5); }
.ac-viewas-modal__check { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent-strong, var(--colors-brand-700)); }
.ac-viewas-modal__vazio { margin: 16px 0; text-align: center; color: var(--muted); font-size: 14px; }
.ac-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Refino de espaçamentos (Início e cards) ---------- */
.ac-content { padding: 32px 40px 48px; }
.ac-page-head { margin-bottom: 28px; }
.ac-page-head .ac-eyebrow { margin-bottom: 2px; }
.ac-lead { font-size: 15px; }
.ac-kpis { gap: 16px; }
.ac-kpi { position: relative; padding: 20px; gap: 4px; }
.ac-kpi__icon { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; margin: 0; box-shadow: none; color: var(--colors-gray-500); }
.ac-kpi__label { padding-right: 44px; font-size: 14px; }
.ac-kpi__value { margin-top: 4px; }
.ac-grid-2 { gap: 16px; margin-top: 16px; align-items: start; }
.ac-section { margin-top: 32px; }
.ac-card { padding: 20px 24px; }
.ac-card__head { margin-bottom: 16px; }
.ac-perf { gap: 16px; }
.ac-feed { gap: 14px; }
.ac-feed__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-feed__item > div { min-width: 0; }
.ac-project-grid, .ac-catalog, .ac-discover-grid, .ac-campaigns { gap: 16px; }
@media (max-width: 1023px) { .ac-content { padding: 24px 16px 40px; } }

/* ---------- Ver como: selo compacto no topo ---------- */
.ac-viewas { display: inline-flex; align-items: center; gap: 8px; height: 32px; margin: 0; padding: 0 4px 0 10px; border-radius: var(--radius-full); background: var(--colors-warning-50); border: 1px solid var(--colors-warning-200); color: var(--colors-warning-700); font-size: 13px; max-width: 340px; }
.ac-viewas__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-viewas__exit { height: 24px; padding: 0 10px; border: 0; border-radius: var(--radius-full); background: #fff; color: var(--colors-warning-700); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; flex: none; }
.ac-viewas__exit:hover { background: #fef0c7; }
@media (max-width: 720px) { .ac-viewas__text { display: none; } .ac-viewas { padding-left: 8px; } }

/* ---------- Cadu no menu do usuário ---------- */
.ac-menu__label { padding: 10px 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--colors-gray-500); border-top: 1px solid var(--line); margin-top: 4px; }
.ac-menu__item .ac-nav__ext, .ac-menu__item .ac-nav__soon { margin-left: auto; }
.ac-menu__item.is-disabled { color: var(--colors-gray-400); cursor: default; }
.ac-menu__item.is-disabled:hover { background: none; }
.ac-menu__sep { height: 1px; background: var(--line); margin: 4px 0; }

/* ---------- Menu: Descobrir como título com as vitrines abertas ---------- */
.ac-nav__label--link { display: block; text-decoration: none; padding-top: 4px; }
.ac-nav__label--link:hover, .ac-nav__label--link.is-active { color: var(--accent-strong); }
.ac-nav__sep { height: 1px; background: var(--line); margin: 12px 8px; }
@media (min-width: 1024px) { .ac-rail .ac-nav__label--link { display: none; } .ac-rail .ac-nav__sep { margin: 8px 4px; } }

/* =====================================================================
   Densidade (referência: gerenciadores de anúncio). Tela inteira, títulos
   pequenos, menos texto, linhas compactas e navegação sem animação.
   ===================================================================== */
:root { --side-w: 232px; --top-h: 52px; }
body { font-size: 14px; }
.ac-enter { animation: none !important; }

/* Shell */
.ac-side { gap: 12px; padding: 14px 10px; }
.ac-side__head { min-height: 36px; padding: 0 6px; }
.ac-brand__mark { width: 34px; height: 24px; }
.ac-brand__text b { font-size: 14px; }
.ac-brand__text small { font-size: 12px; letter-spacing: .04em; }
.ac-brand__text { padding-left: 10px; gap: 2px; }
.ac-nav__link { min-height: 34px; padding: 6px 10px; gap: 10px; font-size: 13px; font-weight: 500; }
.ac-nav__link .ac-icon { width: 18px; height: 18px; }
.ac-nav__label { padding: 0 10px 4px; }
.ac-nav__sep { margin: 8px 6px; }
.ac-exec { padding: 8px 10px; gap: 8px; }
.ac-exec__text b { font-size: 13px; }
.ac-top { padding: 0 20px; gap: 10px; }
.ac-search { height: 34px; max-width: 360px; }
.ac-icon-btn { width: 34px; height: 34px; }
.ac-user { height: 36px; }
.ac-content { max-width: none; margin: 0; padding: 20px 24px 40px; }

/* Títulos e cabeçalhos de página */
.ac-h1 { font-size: 20px; line-height: 28px; letter-spacing: -.01em; }
.ac-h2 { font-size: 15px; line-height: 22px; }
.ac-h3 { font-size: 14px; line-height: 20px; }
.ac-page-head { margin-bottom: 16px; align-items: center; }
.ac-hero { margin-bottom: 16px; align-items: center; }
.ac-hero__meta { margin-top: 6px; gap: 12px; font-size: 13px; }
.ac-eyebrow { font-size: 12px; margin-bottom: 2px; }
.ac-back { font-size: 13px; margin-bottom: 10px; }
.ac-card__head .ac-card__sub { display: none; }

/* Botões, selos, filtros */
.ac-btn { min-height: 34px; padding: 6px 12px; font-size: 13px; gap: 6px; }
.ac-btn--sm { min-height: 30px; padding: 4px 10px; }
.ac-btn .ac-icon { width: 16px; height: 16px; }
.ac-badge { font-size: 12px; padding: 1px 8px; }
.ac-tabs { padding: 3px; }
.ac-tabs__item { padding: 6px 10px; font-size: 13px; }
.ac-filters { margin: 0 0 12px; gap: 8px; }
.ac-select { height: 34px; font-size: 13px; }
.ac-search--inline { height: 34px; }

/* Cards e KPIs */
.ac-card, .ac-kpi, .ac-project, .ac-item, .ac-discover-card { box-shadow: none; border-radius: 10px; }
.ac-card { padding: 16px; }
.ac-card__head { margin-bottom: 12px; }
.ac-kpis, .ac-kpis--3 { gap: 12px; margin-bottom: 0; }
.ac-kpis--3 { margin-bottom: 12px; }
.ac-kpi { padding: 12px 16px; gap: 2px; }
.ac-kpi__icon { display: none; }
.ac-kpi__label { padding-right: 0; font-size: 12px; color: var(--muted); }
.ac-kpi__value { font-size: 22px; line-height: 30px; margin-top: 0; }
.ac-kpi__value--money { font-size: 20px; line-height: 28px; }
.ac-kpi__hint { font-size: 12px; }
.ac-grid-2 { gap: 12px; margin-top: 12px; }
.ac-section { margin-top: 20px; }
.ac-section__head { margin-bottom: 10px; }
.ac-project-grid, .ac-catalog, .ac-discover-grid, .ac-campaigns, .ac-people { gap: 12px; }
.ac-project { padding: 14px; gap: 6px; }
.ac-project__title, .ac-item__title { font-size: 14px; line-height: 20px; }
.ac-item__body { padding: 12px 12px 6px; gap: 4px; }
.ac-item__foot { padding: 6px 12px 12px; }
.ac-item__text { font-size: 13px; -webkit-line-clamp: 2; }
.ac-item__meta, .ac-project__meta, .ac-perf__meta, .ac-feed__meta, .ac-perf__name small { font-size: 12px; }
.ac-discover-card { padding: 16px; gap: 10px; }
.ac-discover-card__icon { width: 36px; height: 36px; }
.ac-discover-card__body b { font-size: 15px; }
.ac-discover-card__body span { font-size: 13px; }
.ac-perf { gap: 12px; }
.ac-perf__item { gap: 6px; }
.ac-progress { height: 6px; }
.ac-feed { gap: 10px; }
.ac-feed__title { font-size: 13px; }
.ac-empty { padding: 12px 8px; gap: 6px; }
.ac-empty__icon { width: 36px; height: 36px; box-shadow: none; margin-bottom: 4px; }
.ac-empty__title { font-size: 14px; }
.ac-empty__text { font-size: 13px; }
.ac-steps__item { padding-bottom: 12px; }
.ac-track { padding: 10px 14px; margin-bottom: 12px; }
.ac-track__step { font-size: 13px; }
.ac-defs { gap: 8px; }
.ac-defs > div { padding-bottom: 8px; font-size: 13px; }
.ac-form { gap: 14px; }
.ac-field input[type="text"], .ac-field input[type="date"], .ac-field textarea { min-height: 38px; padding: 8px 12px; font-size: 14px; }
.ac-field label, .ac-field legend, .ac-field__label { font-size: 13px; }
.ac-chip span { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.ac-notice { padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.ac-brief { padding: 10px 12px; }

/* Tabelas em linhas compactas */
.ac-table { font-size: 13px; }
.ac-table th { padding: 8px 12px; font-size: 12px; }
.ac-table td { padding: 10px 12px; }
.ac-table td small { font-size: 12px; margin-top: 2px; }
.ac-table tbody tr:hover td { background: var(--colors-gray-25); }
.ac-table__bar { min-width: 120px; }
.ac-table__bar .ac-progress { margin-top: 4px; }

@media (max-width: 1023px) { .ac-content { padding: 16px 12px 32px; } .ac-top { padding: 0 12px; } }

/* ---------- CTA único no topo ---------- */
.ac-top__cta { margin-right: 4px; }
.ac-top__cta-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-full); background: rgba(255,255,255,.22); display: inline-grid; place-items: center; font-size: 12px; }
@media (max-width: 720px) { .ac-top__cta span:not(.ac-top__cta-count) { display: none; } .ac-top__cta { padding: 6px 8px; } }
.ac-page-title { margin: 0 0 14px; }

/* ---------- Início: faixa de indicadores e painéis simétricos ---------- */
.ac-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.ac-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: baseline; padding: 12px 16px; min-width: 0; }
.ac-stat + .ac-stat { border-left: 1px solid var(--line); }
.ac-stat__label { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.ac-stat__value { font-size: 22px; line-height: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ac-stat__hint { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ac-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 0; display: flex; flex-direction: column; }
.ac-panel--full { margin-top: 12px; }
.ac-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ac-panel__head .ac-link { font-size: 13px; }
.ac-panel__empty { padding: 20px 16px; color: var(--muted); font-size: 13px; }
.ac-rows { list-style: none; margin: 0; padding: 0; }
.ac-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 140px) auto; align-items: center; gap: 12px; padding: 10px 16px; min-height: 52px; }
.ac-row + .ac-row { border-top: 1px solid var(--colors-gray-100); }
.ac-row:has(.ac-row__dot) { grid-template-columns: 20px minmax(0, 1fr) auto; }
.ac-row__main { display: flex; flex-direction: column; min-width: 0; }
.ac-row__main b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-row__main small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-row__main small a { color: var(--accent-strong); text-decoration: none; }
.ac-row__link { text-decoration: none; min-width: 0; }
.ac-row__link:hover b { color: var(--accent-strong); }
.ac-row__end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-row__end small { color: var(--muted); font-size: 12px; }
.ac-row__dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--colors-success-50); color: var(--colors-success-700); }
@media (max-width: 1180px) { .ac-panels { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-stat:nth-child(3) { border-left: 0; }
  .ac-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ac-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ac-row__bar { display: none; }
}
.ac-row:has(.ac-row__bar) .ac-row__end { min-width: 170px; }
@media (max-width: 720px) { .ac-row:has(.ac-row__bar) .ac-row__end { min-width: 0; } }

/* ---------- Campanhas: barra de ferramentas e grade estilo gerenciador ---------- */
.ac-toolbar2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ac-toolbar2__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-seg { display: inline-flex; border: 1px solid var(--colors-gray-300); border-radius: 8px; overflow: hidden; background: var(--surface); max-width: 100%; overflow-x: auto; }
.ac-seg__item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.ac-seg__item + .ac-seg__item { border-left: 1px solid var(--colors-gray-300); }
.ac-seg__item span { font-size: 12px; color: var(--muted); }
.ac-seg__item:hover { background: var(--soft); }
.ac-seg__item.is-active { background: var(--colors-gray-100); color: var(--ink); font-weight: 600; }
.ac-search--sm { height: 32px; width: 240px; flex: none; }
.ac-search--sm input { font-size: 13px; }
.ac-select--sm { height: 32px; }
.ac-inline-stats { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.ac-inline-stats b { color: var(--ink); font-weight: 600; margin-left: 4px; }
.ac-grid-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: auto; max-height: calc(100vh - 210px); }
.ac-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ac-grid th, .ac-grid td { padding: 8px 12px; border-bottom: 1px solid var(--colors-gray-100); white-space: nowrap; text-align: left; vertical-align: middle; color: var(--ink-2); background: var(--surface); }
.ac-grid thead th { position: sticky; top: 0; z-index: 2; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--soft); border-bottom: 1px solid var(--line); }
.ac-grid .ac-grid__sticky { position: sticky; left: 0; z-index: 1; min-width: 240px; max-width: 320px; border-right: 1px solid var(--line); font-weight: 400; }
.ac-grid thead .ac-grid__sticky { z-index: 3; }
.ac-grid tbody tr:hover > * { background: var(--colors-gray-25); }
.ac-grid tbody tr.is-selected > * { background: var(--accent-soft); }
.ac-grid__name { display: block; max-width: 100%; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-grid__name:hover { color: var(--accent-strong); text-decoration: underline; }
.ac-grid__sticky small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ac-grid__pct { min-width: 150px; }
.ac-grid__pctrow { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 8px; }
.ac-grid__pctrow b { font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.ac-grid__actions { width: 1%; text-align: right !important; }
.ac-grid__actions .ac-icon-btn { display: inline-grid; }
.ac-grid__empty { padding: 20px 16px; color: var(--muted); font-size: 13px; }
.ac-icon-btn--xs { width: 28px; height: 28px; }
.ac-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--colors-gray-400); vertical-align: 1px; }
.ac-dot--andamento { background: var(--colors-success-500); }
.ac-dot--aguardando { background: var(--colors-warning-500); }
.ac-dot--parada { background: #f04438; }

/* Painel lateral de detalhes */
.ac-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(420px, 100vw); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.ac-drawer[hidden], .ac-drawer-scrim[hidden] { display: none; }
.ac-drawer-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(16, 24, 40, .16); }
.ac-drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.ac-drawer__head .ac-h2 { overflow-wrap: anywhere; }
.ac-drawer__body { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 16px; align-content: start; }
.ac-drawer__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; }
.ac-drawer__stats > div { padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.ac-drawer__stats > div + div { border-left: 1px solid var(--line); }
.ac-drawer__stats span { font-size: 12px; color: var(--muted); }
.ac-drawer__stats b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ac-drawer__defs { margin: 0; display: grid; }
.ac-drawer__defs > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--colors-gray-100); font-size: 13px; }
.ac-drawer__defs dt { color: var(--muted); }
.ac-drawer__defs dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ac-drawer__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .ac-search--sm { width: 100%; } .ac-toolbar2__tools { width: 100%; } }

/* ---------- Detalhe simétrico (PI) ---------- */
.ac-detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ac-detail-head__main { min-width: 0; }
.ac-detail-head .ac-h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-detail-head__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.ac-stat__value--money { font-size: 18px; line-height: 28px; }
.ac-panels + .ac-panels { margin-top: 12px; }
.ac-panels .ac-panel { align-self: stretch; }
.ac-panel__count { font-size: 12px; color: var(--muted); }
.ac-row--nf, .ac-row:has(.ac-row__money) { grid-template-columns: minmax(0, 1fr) auto auto; }
.ac-row__money { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.ac-row__money b { font-size: 13px; font-weight: 600; }
.ac-row__money small { font-size: 12px; color: var(--muted); }
.ac-row__dot--file { background: var(--accent-soft); color: var(--accent); }
.ac-track { padding: 8px 12px; }
.ac-drawer__bar .ac-progress { display: block; }
.ac-panels .ac-rows { max-height: 312px; overflow-y: auto; }
.ac-muted { color: var(--muted); }

/* ---------- Logos de plataforma ---------- */
.ac-plat { flex: none; display: inline-block; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line); padding: 2px; vertical-align: middle; }
.ac-plat--lg { width: 36px; height: 36px; padding: 4px; border-radius: 8px; }
.ac-plat--txt { display: inline-grid; place-items: center; padding: 0; font-size: 10px; font-weight: 700; color: var(--ink-2); background: var(--colors-gray-100); }
.ac-platname { display: inline-flex; align-items: center; gap: 6px; }
.ac-grid__namecell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ac-grid__namewrap { display: flex; flex-direction: column; min-width: 0; }
.ac-row:has(.ac-row__icon) { grid-template-columns: 24px minmax(0, 1fr) minmax(80px, 140px) auto; }
.ac-row__icon { display: grid; place-items: center; }
.ac-platstack { display: inline-flex; align-items: center; }
.ac-platstack .ac-plat { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.ac-platstack .ac-plat + .ac-plat { margin-left: -6px; }
.ac-platstack__more { margin-left: 4px; font-size: 12px; color: var(--muted); }
.ac-drawer__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ac-campaign__title { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.ac-campaign__title .ac-card__sub { font-size: 12px; margin-top: 2px; }

/* Faixa "Plataformas" (PI e Visão 360°) */
.ac-platstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.ac-platcard { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.ac-platcard .ac-plat { width: 32px; height: 32px; padding: 4px; border-radius: 8px; }
.ac-platcard__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ac-platcard__text b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-platcard__text small { font-size: 12px; color: var(--muted); }
.ac-platcard__pct { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .ac-row:has(.ac-row__icon) { grid-template-columns: 24px minmax(0, 1fr) auto; } }
/* Meta / Entregue / Entrega dentro do card de campanha (Visão 360°) */
.ac-cstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ac-cstats dt { color: var(--muted); font-size: 12px; }
.ac-cstats dd { margin: 0; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-campaign { gap: 10px; }
section.ac-stats { gap: 0; margin: 0; }

/* ---------- Telas de acesso (login, senha) ---------- */
.ac-auth__title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.ac-auth__lead { margin: -8px 0 0; color: var(--muted); font-size: 14px; }
.ac-auth__form { display: grid; gap: 14px; }
.ac-auth__field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.ac-auth__field > span { display: flex; justify-content: space-between; gap: 8px; }
.ac-auth__field .ac-link { font-size: 13px; font-weight: 500; }
.ac-auth__field input { height: 40px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--colors-gray-300); border-radius: 8px; box-shadow: var(--shadow-xs); }
.ac-auth__field input:focus { outline: none; border-color: var(--colors-brand-300); box-shadow: var(--ring-brand); }
.ac-auth__submit { width: 100%; min-height: 40px; font-size: 14px; }
.ac-auth__hint { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }
.ac-auth__msg { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.45; }
.ac-auth__msg--erro { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.ac-auth__msg--ok { background: var(--colors-success-50); color: var(--colors-success-700); border: 1px solid var(--colors-success-200); }
.ac-auth__msg--info { background: var(--colors-brand-50); color: var(--accent-strong); border: 1px solid var(--colors-brand-200); }
.ac-auth__foot { margin: 0; color: var(--muted); font-size: 12px; }
.ac-auth__foot a { color: inherit; }
.ac-gate__card form { margin: 0; }

/* ---------- Selo de campanhas no ar e brilho do Briefing ---------- */
.ac-nav__count--live { background: var(--colors-success-50); color: var(--colors-success-700); border: 1px solid var(--colors-success-200); }
.ac-nav__link--shine { position: relative; overflow: hidden; }
.ac-nav__link--shine .ac-icon { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .ac-nav__link--shine::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(61, 174, 153, .28), transparent);
    animation: ac-brilho 15s ease-in-out infinite;
  }
  .ac-nav__link--shine .ac-icon { animation: ac-brilho-icone 15s ease-in-out infinite; }
  @keyframes ac-brilho { 0%, 90% { left: -60%; } 96%, 100% { left: 120%; } }
  @keyframes ac-brilho-icone { 0%, 90%, 100% { transform: none; } 93% { transform: scale(1.18) rotate(-8deg); } }
}

/* ---------- Barra de progresso: cor pelo ritmo e marca do período ---------- */
.ac-progress { position: relative; overflow: visible; height: 6px; }
.ac-progress__fill { position: relative; z-index: 1; }
.ac-progress--adiantado .ac-progress__fill { background: var(--colors-success-500); }
.ac-progress--no_ritmo .ac-progress__fill { background: var(--accent); }
.ac-progress--atencao .ac-progress__fill { background: var(--colors-warning-500); }
.ac-progress.is-over .ac-progress__fill { background: var(--colors-success-500); }
.ac-progress__mark { position: absolute; z-index: 2; top: -3px; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; background: var(--ink); opacity: .55; }
.ac-progress { border-radius: var(--radius-full); }
.ac-progress__fill { border-radius: var(--radius-full); }

/* ---------- Relatórios ---------- */
.ac-reports { display: grid; gap: 12px; }
.ac-report__head { align-items: center; }
.ac-report__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; padding: 12px 16px; }
.ac-report__links:empty { display: none; }
.ac-report__link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--colors-gray-500); }
.ac-report__link:hover { border-color: var(--colors-brand-200); background: var(--colors-brand-25); }
.ac-report__link > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ac-report__link b { color: var(--ink); font-size: 13px; font-weight: 600; }
.ac-report__link small { font-size: 12px; color: var(--muted); }
.ac-report__icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }

/* =====================================================================
   Refino responsivo (celular e tablet) e correções do menu
   ===================================================================== */
/* Barra recolhida: "html.ac-rail" vence o ":root" da camada de densidade. */
@media (min-width: 1024px) {
  html.ac-rail { --side-w: 72px; }
  html.ac-rail .ac-side { width: 72px; padding: 14px 10px; }
  html.ac-rail .ac-nav__group { margin-bottom: 10px; }
}
.ac-side { width: var(--side-w); }

/* Menu sem linhas: grupos separados só por espaço */
.ac-nav__sep { display: none; }
.ac-nav__group { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.ac-nav__group:last-child { margin-bottom: 0; }
.ac-nav__label--link { margin-top: 2px; }

/* Tablet (até 1023 px): sidebar em gaveta, conteúdo na largura toda */
@media (max-width: 1023px) {
  .ac-side { width: 264px; }
  .ac-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-grid-wrap { max-height: none; }
}
@media (max-width: 860px) {
  .ac-panels { grid-template-columns: minmax(0, 1fr); }
  .ac-search { max-width: none; }
}

/* Celular (até 600 px): escala menor, topo enxuto, listas adaptadas */
@media (max-width: 600px) {
  body { font-size: 13px; }
  :root { --top-h: 48px; }
  .ac-top { gap: 6px; padding: 0 10px; }
  .ac-top .ac-search { display: none; }
  .ac-top__actions { margin-left: auto; gap: 4px; }
  .ac-icon-btn { width: 32px; height: 32px; }
  .ac-user { padding: 0 2px; gap: 4px; }
  .ac-user .ac-icon { display: none; }
  .ac-avatar { width: 28px; height: 28px; }
  .ac-content { padding: 12px 12px 28px; }
  .ac-h1 { font-size: 18px; line-height: 24px; }
  .ac-h2 { font-size: 14px; line-height: 20px; }
  .ac-page-title { margin-bottom: 10px; }
  .ac-stat { padding: 10px 12px; }
  .ac-stat__value { font-size: 18px; line-height: 24px; }
  .ac-stat__value--money { font-size: 15px; }
  .ac-panel__head { padding: 10px 12px; }
  .ac-row { padding: 9px 12px; gap: 8px; min-height: 0; }
  .ac-row__end { gap: 6px; }
  .ac-row__end .ac-badge { display: none; }
  .ac-row--nf .ac-row__end .ac-badge, .ac-row:has(.ac-row__money) .ac-row__end .ac-badge { display: inline-flex; }
  .ac-detail-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ac-detail-head .ac-h1 { white-space: normal; }
  .ac-track { gap: 6px 10px; padding: 8px 10px; }
  .ac-track__step { flex: 0 0 auto; font-size: 12px; }
  .ac-platstrip { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ac-toolbar2 { gap: 8px; }
  .ac-seg { width: 100%; }
  .ac-seg__item { flex: 1 0 auto; justify-content: center; padding: 6px 10px; }
  .ac-inline-stats { gap: 10px; }
  .ac-grid .ac-grid__sticky { min-width: 170px; max-width: 200px; }
  .ac-grid th, .ac-grid td { padding: 8px 10px; }
  .ac-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ac-item__body { padding: 10px 10px 4px; }
  .ac-item__text { display: none; }
  .ac-item__foot { padding: 4px 10px 10px; }
  .ac-item__foot .ac-btn { width: 100%; padding: 4px 6px; font-size: 12px; }
  .ac-discover-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ac-discover-card { flex-direction: row; align-items: center; padding: 12px; }
  .ac-discover-card__body span { display: none; }
  .ac-discover-card__foot { margin: 0 0 0 auto; }
  .ac-filters { gap: 6px; }
  .ac-filters .ac-btn { display: none; }
  .ac-card { padding: 12px; }
  .ac-briefing { gap: 12px; }
  .ac-form__actions { padding-top: 12px; }
  .ac-menu__panel { position: fixed; top: calc(var(--top-h) + 4px); left: 8px; right: 8px; width: auto; max-height: calc(100vh - var(--top-h) - 16px); overflow-y: auto; }
  .ac-menu__panel:has(.ac-viewas-pick) { width: auto; }
  .ac-drawer { width: 100vw; }
  .ac-report__links { grid-template-columns: minmax(0, 1fr); padding: 10px 12px; }
  .ac-hero__meta { gap: 8px; }
  .ac-campaigns { grid-template-columns: minmax(0, 1fr); }
}
/* Campanhas no celular: só Campanha, Entrega, Tempo e ações; o resto fica no painel lateral. */
@media (max-width: 600px) {
  .ac-grid th:nth-child(2), .ac-grid td:nth-child(2), .ac-grid th:nth-child(3), .ac-grid td:nth-child(3),
  .ac-grid th:nth-child(4), .ac-grid td:nth-child(4), .ac-grid th:nth-child(5), .ac-grid td:nth-child(5),
  .ac-grid th:nth-child(7), .ac-grid td:nth-child(7), .ac-grid th:nth-child(9), .ac-grid td:nth-child(9),
  .ac-grid th:nth-child(10), .ac-grid td:nth-child(10), .ac-grid th:nth-child(11), .ac-grid td:nth-child(11) { display: none; }
  .ac-grid .ac-grid__sticky { position: static; min-width: 0; max-width: 46vw; border-right: 0; }
  .ac-grid__pct { min-width: 96px; }
  .ac-grid__pctrow { grid-template-columns: 34px 1fr; gap: 6px; }
  .ac-grid__actions .ac-icon-btn[title="Dashboard"] { display: none; }
  .ac-grid-wrap { overflow-x: hidden; }
}
@media (max-width: 600px) { .ac-grid .ac-grid__sticky { max-width: 38vw; } .ac-grid__actions { padding-left: 4px !important; padding-right: 6px !important; } }

/* Sessões do menu: título pequeno + respiro entre grupos (sem linhas) */
.ac-nav .ac-nav__group { margin-bottom: 18px; }
.ac-nav .ac-nav__group:last-child { margin-bottom: 0; }
.ac-nav .ac-nav__label { display: block; margin: 0; padding: 0 10px 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--colors-gray-400); }
.ac-nav .ac-nav__label--link { text-decoration: none; }
.ac-nav .ac-nav__label--link:hover, .ac-nav .ac-nav__label--link.is-active { color: var(--accent-strong); }
@media (min-width: 1024px) {
  html.ac-rail .ac-nav .ac-nav__label { display: block; height: 0; padding: 0; overflow: hidden; }
  html.ac-rail .ac-nav .ac-nav__group { margin-bottom: 14px; }
}

/* Faixa de indicadores clicável, com mini barra */
.ac-stats--links .ac-stat { text-decoration: none; color: inherit; grid-template-rows: auto auto auto; row-gap: 2px; transition: background-color 140ms ease; }
.ac-stats--links .ac-stat:hover { background: var(--colors-gray-25); }
.ac-stats--links .ac-stat:first-child { border-radius: 10px 0 0 10px; }
.ac-stats--links .ac-stat:last-child { border-radius: 0 10px 10px 0; }
.ac-stat__bar { grid-column: 1 / -1; margin-top: 8px; }
.ac-stat__bar .ac-progress { height: 4px; }
.ac-stat__bar .ac-progress__mark { top: -3px; height: 10px; }
@media (max-width: 720px) { .ac-stats--links .ac-stat { border-radius: 0 !important; } }

/* ---------- Barra estilo slider de tempo ---------- */
.ac-meter { display: grid; gap: 4px; min-width: 0; }
.ac-meter .ac-progress { height: 6px; background: var(--colors-gray-100); overflow: visible; }
.ac-progress__time { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--radius-full); background: repeating-linear-gradient(135deg, var(--colors-gray-200) 0 4px, var(--colors-gray-100) 4px 8px); }
.ac-meter .ac-progress__fill { position: absolute; left: 0; top: 0; bottom: 0; }
.ac-meter .ac-progress__mark { top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; border: 2px solid var(--ink-2); opacity: 1; box-shadow: 0 1px 2px rgba(16, 24, 40, .2); }
.ac-meter__cap { font-size: 12px; line-height: 14px; color: var(--muted); text-align: right; white-space: nowrap; }
.ac-row__bar .ac-meter { width: 100%; }
.ac-stat__bar .ac-meter .ac-progress { height: 4px; }
.ac-stat__bar .ac-meter .ac-progress__mark { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
@media (prefers-reduced-motion: no-preference) {
  .ac-meter .ac-progress__fill { animation: ac-encher 900ms cubic-bezier(.2, .8, .2, 1) both; }
  .ac-meter .ac-progress__time { animation: ac-encher-tempo 700ms ease-out both; }
  .ac-meter .ac-progress__mark { animation: ac-deslizar 900ms cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes ac-encher { from { width: 0; } }
  @keyframes ac-encher-tempo { from { width: 0; opacity: 0; } }
  @keyframes ac-deslizar { from { left: 0; opacity: 0; } }
}
.ac-row { grid-template-columns: minmax(0, 1fr) minmax(130px, 220px) auto; }
.ac-row:has(.ac-row__icon) { grid-template-columns: 24px minmax(0, 1fr) minmax(130px, 220px) auto; }
.ac-meter__cap { text-align: left; }
@media (max-width: 720px) { .ac-row:has(.ac-row__icon) { grid-template-columns: 24px minmax(0, 1fr) auto; } .ac-row { grid-template-columns: minmax(0, 1fr) auto; } }

/* =====================================================================
   Navegação sem flash: transição nativa entre páginas (View Transitions,
   Chrome 126+ e Safari 18.2+; nos demais, carregamento normal). A sidebar
   e a barra do topo ficam paradas; só o conteúdo troca, num fade curto.
   ===================================================================== */
@view-transition { navigation: auto; }
.ac-side { view-transition-name: ac-side; }
.ac-top { view-transition-name: ac-top; }
.ac-content { view-transition-name: ac-conteudo; }
::view-transition-old(ac-side), ::view-transition-new(ac-side),
::view-transition-old(ac-top), ::view-transition-new(ac-top) { animation: none; mix-blend-mode: normal; }
::view-transition-group(ac-side), ::view-transition-group(ac-top) { animation-duration: 0s; }
::view-transition-old(ac-conteudo) { animation: 90ms ease-out both ac-vt-sai; }
::view-transition-new(ac-conteudo) { animation: 160ms ease-out both ac-vt-entra; }
::view-transition-group(ac-conteudo) { animation-duration: 160ms; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
@keyframes ac-vt-sai { to { opacity: 0; } }
@keyframes ac-vt-entra { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* Na gaveta do celular a sidebar fica fora da tela: sem nome, ela não entra na transição. */
@media (max-width: 1023px) { .ac-side { view-transition-name: none; } }

/* Grupos do menu recolhíveis (estado no cookie ac_nav, aplicado pelo servidor) */
.ac-nav__head { display: flex; align-items: center; gap: 4px; margin: 0; }
.ac-nav .ac-nav__toggle { flex: 1; display: flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit; border-radius: 6px; padding: 2px 10px 6px; }
.ac-nav .ac-nav__toggle:hover { color: var(--ink-2); }
.ac-nav .ac-nav__toggle:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.ac-nav__toggle .ac-icon { margin-left: auto; transition: transform 160ms var(--ease); color: var(--colors-gray-400); }
.ac-nav__toggle[aria-expanded="false"] .ac-icon { transform: rotate(-90deg); }
.ac-nav__peek { display: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 12px; line-height: 18px; text-align: center; letter-spacing: 0; background: var(--colors-gray-100); color: var(--ink-2); }
.ac-nav__peek--live { background: var(--colors-success-50); color: var(--colors-success-700); }
.ac-nav__toggle[aria-expanded="false"] .ac-nav__peek { display: inline-block; }
.ac-nav .ac-nav__group.is-collapsed { display: none; }
@media (min-width: 1024px) {
  html.ac-rail .ac-nav__head { height: 0; overflow: hidden; }
  html.ac-rail .ac-nav .ac-nav__group.is-collapsed { display: grid; }
}

/* Botão de incluir só com ícone (listas e parecidos) e aviso flutuante */
.ac-pick__mini { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--colors-gray-300); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
.ac-pick__mini:hover { border-color: var(--colors-brand-300); color: var(--accent-strong); }
.ac-pick__mini.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ac-pick__mini:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.ac-pick button:disabled { opacity: .6; cursor: progress; }
.ac-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 12px); margin: 0; max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 10px; background: var(--colors-gray-900); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
.ac-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   Ficha do Descobrir: mesma organização do Cadu Planner (faixa com foto,
   números, resumo, índice de sessões, sessões e itens parecidos), na pele
   clara da Área do Cliente.
   ===================================================================== */
.ac-ficha { display: grid; gap: 16px; min-width: 0; }
.ac-fbanner { position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #0d171a, #123a35); color: #fff; min-height: 168px; display: grid; align-content: end; }
.ac-fbanner.has-image { min-height: 260px; background: #0d171a var(--fb-img) center / cover no-repeat; }
.ac-fbanner.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 23, 26, .05) 20%, rgba(13, 23, 26, .82) 100%); }
.ac-fbanner__inner { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 14px; padding: 20px; }
.ac-fbanner__title { flex: 1; min-width: 0; }
.ac-fbanner__title h1 { margin: 2px 0 0; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.ac-fbanner__eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.ac-fbanner__cta { flex: none; }
.ac-fbanner__cta .ac-btn--secondary { background: #fff; }
.ac-fbanner__preview { position: relative; z-index: 1; margin: 0 20px 20px; padding: 12px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.ac-fbanner__preview img { max-width: 100%; max-height: 340px; object-fit: contain; border-radius: 6px; }

.ac-fmark { flex: none; position: relative; display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--accent-strong); font-weight: 700; }
.ac-fmark img { width: 100%; height: 100%; object-fit: contain; padding: 14%; }
.ac-fmark b { display: none; }
.ac-fmark.is-txt b { display: block; }
.ac-fmark--lg { width: 64px; height: 64px; border-radius: 14px; font-size: 24px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.ac-fmark--md { width: 40px; height: 40px; border-radius: 10px; font-size: 16px; }
.ac-fmark--sm { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }

.ac-fmetrics { margin: 0; display: flex; flex-wrap: wrap; gap: 1px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); overflow: hidden; }
.ac-fmetrics > div { flex: 1 1 128px; padding: 12px 16px; display: grid; gap: 2px; align-content: start; background: var(--surface); min-width: 0; }
.ac-fmetrics dt { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ac-fmetrics dd { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
.ac-fmetrics dd.is-long { font-size: 15px; }
.ac-fmetrics small, .ac-fmetrics__src { font-size: 12px; color: var(--muted); }
.ac-fmetrics__src { color: var(--accent-strong); text-decoration: none; }
.ac-fmetrics__src:hover { text-decoration: underline; }
.ac-forigin { padding: 0 6px; border-radius: 4px; font-size: 12px; background: var(--colors-warning-50); color: var(--colors-warning-700); }

.ac-fbody { display: grid; gap: 24px; min-width: 0; }
.ac-fbody.has-side { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.ac-fmain { display: grid; gap: 16px; min-width: 0; }

.ac-fnotes { display: grid; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; }
.ac-fnotes strong { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.ac-fintro { display: grid; gap: 12px; }
.ac-fintro__lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); max-width: 72ch; }
.ac-fintro__src { font-size: 12px; color: var(--muted); }
.ac-fhigh { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ac-fhigh > section { padding: 14px 16px; border-radius: 12px; background: var(--colors-brand-25); border: 1px solid var(--colors-brand-100); }
.ac-fhigh h2 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--accent-strong); }

.ac-ftext { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.ac-fmore { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.ac-fmore summary { cursor: pointer; list-style: none; }
.ac-fmore summary::-webkit-details-marker { display: none; }
.ac-fmore__btn { color: var(--accent-strong); font-weight: 600; white-space: nowrap; }
.ac-fmore__menos, .ac-fmore[open] .ac-fmore__short, .ac-fmore[open] .ac-fmore__mais { display: none; }
.ac-fmore[open] .ac-fmore__menos { display: inline; }
.ac-fmore[open] summary { margin-bottom: 4px; }
.ac-fmore p { margin: 0; }

.ac-fnav { position: sticky; top: calc(var(--top-h) + 0px); z-index: 5; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; margin: 0 0 -8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.ac-fnav::-webkit-scrollbar { display: none; }
.ac-fnav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ac-fnav a:hover { background: var(--soft); color: var(--ink); }
.ac-fnav a.is-active { background: var(--accent-soft); color: var(--accent-strong); }
.ac-fnav a span { font-size: 12px; color: inherit; opacity: .75; }
html { scroll-padding-top: calc(var(--top-h) + 64px); }

.ac-fsec { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.ac-fsec__head { margin-bottom: 14px; }
.ac-fsec__head h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.ac-fsec__head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ac-fsub { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ac-fsub:first-child { margin-top: 0; }

.ac-ffacts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; }
.ac-ffacts > div { min-width: 0; }
.ac-ffacts dt { font-size: 12px; color: var(--muted); }
.ac-ffacts dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.ac-ftags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ac-ftags li { padding: 3px 10px; border-radius: 999px; background: var(--colors-gray-100); color: var(--ink-2); font-size: 13px; }
.ac-fgroups { display: grid; gap: 4px; }
.ac-fbullets { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; }
.ac-fbullets a, .ac-fnews a { color: var(--accent-strong); }
.ac-fsegs { margin: 0; display: grid; gap: 10px; }
.ac-fsegs > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; }
.ac-fsegs dt { font-size: 13px; font-weight: 600; color: var(--ink-2); padding-top: 3px; }
.ac-fsegs dd { margin: 0; }

.ac-froles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ac-froles li, .ac-fplay li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--soft); }
.ac-froles__icon, .ac-fplay__icon { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ac-froles strong, .ac-fplay strong { display: block; font-size: 14px; color: var(--ink); }
.ac-froles small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ac-fplay { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ac-fplay p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ac-fplay p b { font-weight: 600; color: var(--ink); }
.ac-fplay__ex { color: var(--muted) !important; }

.ac-fformats { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ac-fformats li { position: relative; display: flex; }
.ac-fformats__card { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 48px 10px 10px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; transition: border-color 120ms ease, background-color 120ms ease; }
a.ac-fformats__card:hover { border-color: var(--colors-brand-200); background: var(--colors-brand-25); }
.ac-fformats li > .ac-pick { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.ac-fformats__text { display: grid; gap: 1px; min-width: 0; }
.ac-fformats__text strong { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-fformats__text small { font-size: 12px; color: var(--muted); }
.ac-fformats__text em { font-style: normal; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-fprev { flex: none; width: 52px; height: 52px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; padding: 8px; }
.ac-fprev > span { display: block; max-width: 100%; max-height: 100%; border: 1.5px solid var(--colors-brand-400); background: var(--colors-brand-50); border-radius: 3px; }
.ac-fprev--icon { color: var(--colors-gray-400); }

.ac-fpick { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ac-fpick li { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.ac-fpick a { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.ac-fpick a:hover strong { color: var(--accent-strong); }
.ac-fpick__icon { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ac-fpick strong { display: block; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-fpick small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ac-fads { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ac-fads li { display: grid; gap: 6px; align-content: start; }
.ac-fads__img, .ac-fgallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--soft); border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.ac-fads__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 240ms var(--ease); }
.ac-fads__img:hover img, .ac-fgallery button:hover img { transform: scale(1.03); }
.ac-fads__fmt { justify-self: start; padding: 1px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 500; }
.ac-fads strong { font-size: 14px; color: var(--ink); }
.ac-fads p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ac-fgallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ac-fgallery figure { margin: 0; display: grid; gap: 4px; }
.ac-fgallery figure.is-lead { grid-column: span 2; grid-row: span 2; }
.ac-fgallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 240ms var(--ease); }
.ac-fgallery figcaption { font-size: 12px; color: var(--muted); }

.ac-fdemo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.ac-fdemo .ac-fsub { margin-top: 0; }
.ac-fbars { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ac-fbars li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 13px; }
.ac-fbars span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-fbars i { height: 8px; border-radius: 4px; background: var(--colors-gray-100); overflow: hidden; }
.ac-fbars i b { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.ac-fbars strong { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.ac-fnews { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ac-fnews li { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ac-fnews li:last-child { border-bottom: 0; padding-bottom: 0; }
.ac-fnews small { font-size: 12px; color: var(--muted); }
.ac-fnews strong { font-size: 14px; color: var(--ink); }

.ac-fsizes { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; }
.ac-fsizes li { display: grid; justify-items: center; gap: 4px; }
.ac-fsizes__box { display: block; border: 1.5px solid var(--colors-brand-400); background: var(--colors-brand-50); border-radius: 4px; }
.ac-fsizes strong { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ac-fsizes small { font-size: 12px; color: var(--muted); }
.ac-flinks { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ac-flinks a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--colors-gray-300); color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.ac-flinks a:hover { border-color: var(--colors-brand-300); color: var(--accent-strong); }

.ac-frail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ac-frail a { flex: none; display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 260px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.ac-frail a:hover { border-color: var(--colors-brand-200); background: var(--colors-brand-25); }
.ac-frail strong { display: block; font-size: 13px; color: var(--ink); }
.ac-frail small { display: block; font-size: 12px; color: var(--muted); }
.ac-fcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 8px; }
.ac-fcards > div { padding: 12px 14px; border-radius: 10px; background: var(--soft); }
.ac-fcards .ac-fsub { margin-top: 0; }
.ac-fhint { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.ac-fside { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 10px; }
.ac-fside h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.ac-fside h2 span { font-size: 12px; font-weight: 500; color: var(--muted); }
.ac-fside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ac-fside li { position: relative; }
.ac-fside li > .ac-pick { position: absolute; top: 8px; right: 8px; }
.ac-fside li:not(:has(.has-photo)) > .ac-pick { top: 50%; transform: translateY(-50%); }
.ac-frel { display: flex; align-items: center; gap: 10px; padding: 8px 48px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; }
.ac-frel:hover { border-color: var(--colors-brand-200); }
.ac-frel.has-photo { display: grid; padding: 0 0 10px; gap: 8px; overflow: hidden; }
.ac-frel__photo { position: relative; display: block; }
.ac-frel__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ac-frel__photo .ac-fmark { position: absolute; left: 10px; bottom: -14px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.ac-frel.has-photo .ac-frel__text { padding: 8px 12px 0; }
.ac-frel__text { min-width: 0; display: grid; gap: 1px; }
.ac-frel__text strong { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-frel__text small { font-size: 12px; color: var(--muted); }

.ac-lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.ac-lightbox::backdrop { background: rgba(13, 23, 26, .82); }
.ac-lightbox figure { margin: 0; display: grid; gap: 8px; }
.ac-lightbox img { max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: 10px; display: block; margin: 0 auto; }
.ac-lightbox figcaption { color: #fff; font-size: 13px; text-align: center; }
.ac-lightbox form { position: absolute; top: 8px; right: 8px; margin: 0; }
.ac-lightbox__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(13, 23, 26, .7); color: #fff; display: grid; place-items: center; cursor: pointer; }

@media (max-width: 1180px) {
  .ac-fbody.has-side { grid-template-columns: minmax(0, 1fr); }
  .ac-fside { position: static; }
  .ac-fside ul { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 600px) {
  .ac-fbanner.has-image { min-height: 220px; }
  .ac-fbanner__inner { flex-wrap: wrap; padding: 16px; gap: 10px; }
  .ac-fbanner__title h1 { font-size: 22px; }
  .ac-fbanner__cta { width: 100%; }
  .ac-fbanner__cta .ac-btn { width: 100%; justify-content: center; }
  .ac-fmark--lg { width: 48px; height: 48px; font-size: 18px; }
  .ac-fmetrics > div { flex-basis: 40%; padding: 10px 12px; }
  .ac-fmetrics dd { font-size: 16px; }
  .ac-fsec { padding: 14px; }
  .ac-fsegs > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ac-fgallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-fbars li { grid-template-columns: 80px minmax(0, 1fr) 40px; }
  .ac-fnav { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
}

/* =====================================================================
   Vitrines com marca: capa + selo do canal/portal/plataforma, selo próprio
   de Programática e vitrine de formatos agrupada por canal (ou por tipo).
   ===================================================================== */
.ac-fmark--xs { width: 20px; height: 20px; border-radius: 5px; font-size: 11px; }
.ac-fmark--xs img { padding: 8%; }
.ac-fmark--xl { width: 72px; height: 72px; border-radius: 16px; font-size: 26px; box-shadow: var(--shadow-sm); }
.ac-item__media { position: relative; }
.ac-item__media.is-empty { background: linear-gradient(135deg, var(--colors-gray-50), var(--colors-brand-25)); }
.ac-item__badge { position: absolute; left: 10px; bottom: 10px; display: block; line-height: 0; }
.ac-item__badge .ac-fmark { box-shadow: 0 2px 6px rgba(16, 24, 40, .18); }
.ac-item__brand { display: grid; place-items: center; }
.ac-item__scale { display: grid; justify-items: center; gap: 6px; align-content: center; }
.ac-item__scale > span { display: block; border: 1.5px solid var(--colors-brand-400); background: var(--colors-brand-50); border-radius: 3px; }
.ac-item__badge--top { top: 8px; bottom: auto; left: 8px; }
.ac-item__media { text-decoration: none; }
.ac-item__scale small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.ac-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--colors-gray-100); }
.ac-seg__opt { padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }
.ac-seg__opt:hover { color: var(--ink); }
.ac-seg__opt.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.ac-bchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.ac-bchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px; border: 1px solid var(--colors-gray-200); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.ac-bchip:first-child { padding-left: 12px; }
.ac-bchip span { font-size: 12px; color: var(--muted); }
.ac-bchip:hover { border-color: var(--colors-brand-200); }
.ac-bchip.is-on { background: var(--accent-soft); border-color: var(--colors-brand-300); color: var(--accent-strong); }
.ac-fnav--groups { margin: 0 0 8px; }
.ac-shelf { margin: 0 0 24px; scroll-margin-top: calc(var(--top-h) + 56px); }
.ac-shelf__head { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; }
.ac-catalog--dense { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ac-catalog--dense .ac-item__media { aspect-ratio: 16 / 10; }

.ac-fpick__img { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.ac-fbanner__sub { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, .86); }
.ac-fbanner__chips { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ac-fbanner__chips span { padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.ac-fbanner__chips .is-premium { background: #f5c451; color: #3d2c00; }
@media (max-width: 600px) {
  .ac-bchips { flex-wrap: nowrap; overflow-x: auto; margin-left: -12px; margin-right: -12px; padding: 0 12px; scrollbar-width: none; }
  .ac-catalog--dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Miniaturas sem distorção: o logo nunca herda o recorte da foto em que está por cima,
   e anúncios/fotos aparecem inteiros (verticais e horizontais) sobre fundo neutro. */
span.ac-fmark > img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: center; padding: 14%; transform: none; background: #fff; }
.ac-fads__img, .ac-fgallery button { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--colors-gray-100); }
.ac-fads__img img, .ac-fgallery img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.ac-fgallery figure.is-lead button { aspect-ratio: 4 / 3; }
.ac-fads__img:hover img, .ac-fgallery button:hover img { transform: none; }
.ac-fpick__img, .ac-frel__photo img { object-position: center 30%; }
.ac-item__media > img { object-position: center 30%; }

/* Programática: as duas DSPs lado a lado no mesmo selo */
span.ac-fmark--duo { display: flex; align-items: center; justify-content: center; gap: 0; }
span.ac-fmark--duo > img { width: 50%; height: 100%; padding: 12% 6%; }
span.ac-fmark--duo > img + img { border-left: 1px solid var(--line); }

/* =====================================================================
   Ficha de formato e de formato interativo: a peça em destaque (palco com a
   prévia e o demo), ao lado o que ela faz, as ações e as especificações.
   ===================================================================== */
.ac-fpiece { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ac-fpiece__stage { position: relative; display: grid; place-items: center; min-height: 380px; padding: 24px; border-radius: 12px; background: radial-gradient(120% 90% at 50% 0%, var(--colors-brand-25), var(--colors-gray-100)); overflow: hidden; }
.ac-fpiece__shot { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; max-width: 100%; }
.ac-fpiece__shot img { display: block; max-width: 100%; max-height: 460px; object-fit: contain; border-radius: 10px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); }
.ac-fpiece__stage.is-phone .ac-fpiece__shot img { max-height: 520px; }
.ac-fpiece__scale { display: grid; justify-items: center; gap: 10px; }
.ac-fpiece__scale > span { display: grid; place-items: center; border: 2px solid var(--colors-brand-400); background: #fff; border-radius: 6px; box-shadow: 0 8px 24px rgba(16, 24, 40, .08); }
.ac-fpiece__scale small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ac-fpiece__mark { display: grid; place-items: center; }
.ac-fpiece__play { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 0; border-radius: 999px; background: rgba(13, 23, 26, .82); color: #fff; font: 600 13px/1 var(--sans); cursor: pointer; backdrop-filter: blur(6px); }
.ac-fpiece__play span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); }
.ac-fpiece__play:hover { background: rgba(13, 23, 26, .92); }
.ac-fpiece__info { display: grid; gap: 12px; align-content: start; min-width: 0; padding-top: 4px; }
.ac-fpiece__eyebrow { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ac-fpiece__title { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ac-fpiece__chips { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ac-fpiece__chips span { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--accent-soft); color: var(--accent-strong); }
.ac-fpiece__lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
.ac-fpiece__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ac-fpiece .ac-ffacts { padding-top: 14px; border-top: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.ac-fmini { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ac-fmini li { position: relative; }
.ac-fmini a { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.ac-fmini__media { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--colors-gray-100); overflow: hidden; }
.ac-fmini__media img { width: 100%; height: 100%; object-fit: contain; }
.ac-fmini a:hover strong { color: var(--accent-strong); }
.ac-fmini strong { font-size: 13px; color: var(--ink); }
.ac-fmini small { font-size: 12px; color: var(--muted); }
.ac-fmini li > .ac-pick { position: absolute; top: 8px; right: 8px; }

.ac-demo { width: min(1180px, 96vw); height: min(860px, 92vh); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface); }
.ac-demo[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.ac-demo::backdrop { background: rgba(13, 23, 26, .78); }
.ac-demo header { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.ac-demo header b { font-size: 15px; color: var(--ink); }
.ac-demo header span { font-size: 13px; color: var(--muted); flex: 1; }
.ac-demo header form { margin: 0; }
.ac-demo iframe { width: 100%; height: 100%; border: 0; background: #fff; }

@media (max-width: 900px) {
  .ac-fpiece { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 18px; }
  .ac-fpiece__stage { min-height: 280px; }
  .ac-fpiece__title { font-size: 22px; }
}
@media (max-width: 600px) {
  .ac-demo { width: 100vw; height: 100dvh; border-radius: 0; }
  .ac-demo header span { display: none; }
  .ac-fpiece__actions .ac-btn, .ac-fpiece__actions .ac-pick, .ac-fpiece__actions .ac-pick .ac-btn { width: 100%; justify-content: center; }
}

/* Entrega e tempo restante como dois gráficos (sem o marcador de "hoje") */
.ac-meter { display: grid; gap: 5px; min-width: 0; }
.ac-meter__row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 8px; }
.ac-meter--full .ac-meter__row { grid-template-columns: 50px minmax(0, 1fr) 46px; }
.ac-meter__lbl { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ac-meter__val { font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-meter .ac-progress { height: 6px; overflow: hidden; background: var(--colors-gray-100); }
.ac-meter .ac-progress__fill { position: static; display: block; height: 100%; }
.ac-meter--duo:not(.ac-meter--full) .ac-progress { height: 4px; }
.ac-progress--tempo .ac-progress__fill { background: var(--colors-gray-400) !important; }
.ac-progress__mark, .ac-progress__time, .ac-meter__cap { display: none; }
/* Linha com os dois gráficos: nome e % em cima, os gráficos embaixo na largura toda */
.ac-row:has(.ac-meter--full) { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
.ac-row:has(.ac-row__icon):has(.ac-meter--full) { grid-template-columns: 24px minmax(0, 1fr) auto; }
.ac-row:has(.ac-meter--full) .ac-row__bar { grid-column: 1 / -1; grid-row: 2; }
.ac-row:has(.ac-row__icon):has(.ac-meter--full) .ac-row__bar { grid-column: 2 / -1; }
.ac-row:has(.ac-meter--full) .ac-meter { max-width: 520px; }
@media (prefers-reduced-motion: no-preference) {
  .ac-progress--tempo .ac-progress__fill { animation: ac-encher 900ms cubic-bezier(.2, .8, .2, 1) both; }
}
/* No celular os dois gráficos continuam: são o principal da linha */
@media (max-width: 720px) {
  .ac-row:has(.ac-meter--full) .ac-row__bar { display: block; }
  .ac-row:has(.ac-meter--full) .ac-row__end { min-width: 0; }
  .ac-row:has(.ac-row__icon):has(.ac-meter--full) { grid-template-columns: 24px minmax(0, 1fr) auto; }
}

/* ---------- Início: indicadores em faixa, campanhas + aviso, PIs recentes e atualizações ---------- */
.ac-home-title { margin: 0 0 20px; padding-bottom: 12px; position: relative; font-size: 28px; line-height: 34px; letter-spacing: -.02em; }
.ac-home-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 96px; height: 4px; border-radius: 2px; background: var(--accent); }
.ac-hk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px 0 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.ac-hk__item { display: flex; align-items: center; gap: 14px; padding: 6px 20px; min-width: 0; color: inherit; text-decoration: none; border-left: 1px solid var(--line); }
.ac-hk__item:first-child { padding-left: 0; border-left: 0; }
.ac-hk__item:hover .ac-hk__label { color: var(--accent-strong); }
.ac-hk__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.ac-hk__label { display: block; font-size: 13px; color: var(--muted); }
.ac-hk__value { display: block; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-hk__value b { font-size: 24px; line-height: 30px; font-weight: 700; color: var(--ink); margin-right: 2px; font-variant-numeric: tabular-nums; }

.ac-home-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 40px; align-items: start; margin-bottom: 28px; }
.ac-home-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ac-home-sec__title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.ac-home-sec__sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ac-home-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent-strong); text-decoration: none; white-space: nowrap; }
.ac-home-link:hover { text-decoration: underline; }
.ac-home-empty { margin: 8px 0 0; padding: 20px; border: 1px dashed var(--colors-gray-300); border-radius: 12px; font-size: 13px; color: var(--muted); }

.ac-hcamp { width: 100%; border-collapse: collapse; font-size: 13px; }
.ac-hcamp thead th { padding: 8px 10px; text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.ac-hcamp tbody th, .ac-hcamp tbody td { padding: 12px 10px; border-bottom: 1px solid var(--colors-gray-100); vertical-align: middle; text-align: left; font-weight: 400; }
.ac-hcamp .is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-hcamp .is-num b { font-size: 15px; font-weight: 700; color: var(--ink); }
.ac-hcamp tbody th:first-child, .ac-hcamp thead th:first-child { padding-left: 0; }
.ac-hcamp__name { display: flex; align-items: flex-start; gap: 12px; color: inherit; text-decoration: none; }
.ac-hcamp__name:hover b { color: var(--accent-strong); }
.ac-hcamp__logo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.ac-hcamp__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-hcamp__text b { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-hcamp__text small { font-size: 12.5px; color: var(--muted); }
.ac-hcamp__bar { position: relative; display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--colors-gray-100); }
.ac-hcamp__fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--accent); }
.ac-hcamp__fill--adiantado { background: var(--colors-success-500); }
.ac-hcamp__fill--atencao { background: var(--colors-warning-500); }
.ac-hcamp__mark { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink-2); }

.ac-home-side { display: flex; flex-direction: column; gap: 20px; padding-top: 6px; }
.ac-aviso { padding: 14px 16px; border-radius: 12px; background: var(--colors-brand-25); border: 1px solid var(--colors-brand-100); }
.ac-aviso__title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ac-aviso__title .ac-icon { color: var(--accent); }
.ac-aviso__frase { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.ac-aviso--neutro { background: var(--colors-gray-50); border-color: var(--line); }

.ac-home-sec__title--sm { font-size: 16px; line-height: 22px; }
.ac-hpis-list { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ac-hpis-list li { border-bottom: 1px solid var(--colors-gray-100); }
.ac-hpis-list__item { display: flex; flex-direction: column; gap: 5px; padding: 10px 0; color: inherit; text-decoration: none; }
.ac-hpis-list__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.ac-hpis-list__top b { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-hpis-list__item:hover b { color: var(--accent-strong); }
.ac-hpis-list__pct { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ac-hpis-list .ac-hcamp__bar { margin: 0; height: 5px; }
.ac-hpis-list__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ac-hpis-list__meta small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-hpis-list__meta .ac-badge { flex: none; }

.ac-hupd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ac-hupd__title { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; align-self: center; }
.ac-hupd__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-hupd__list li { display: flex; align-items: flex-start; gap: 12px; padding: 0 20px; border-left: 1px solid var(--line); min-width: 0; }
.ac-hupd__list li:first-child { border-left: 0; padding-left: 0; }
.ac-hupd__list li > span:last-child { min-width: 0; }
.ac-hupd__list b, .ac-hupd__hist b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ac-hupd__list small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-hupd__check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--colors-success-50); color: var(--colors-success-700); }
.ac-hupd__mais { grid-column: 3; grid-row: 1; align-self: center; }
.ac-hupd__mais summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-strong); white-space: nowrap; }
.ac-hupd__mais summary::-webkit-details-marker { display: none; }
.ac-hupd__mais[open] summary .ac-icon { transform: rotate(90deg); }
.ac-hupd__mais[open] { grid-column: 1 / -1; grid-row: auto; }
.ac-hupd__hist { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.ac-hupd__hist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.ac-hupd__hist li small { grid-column: 2; font-size: 12px; color: var(--muted); }
.ac-hupd__hist a { color: inherit; }
@media (max-width: 1180px) {
  .ac-hk { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .ac-hk__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .ac-home-main { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ac-home-side { padding-top: 0; }
  .ac-hupd { grid-template-columns: minmax(0, 1fr) auto; }
  .ac-hupd__list { grid-column: 1 / -1; grid-row: 2; }
  .ac-hupd__mais { grid-column: 2; }
}
@media (max-width: 720px) {
  .ac-home-title { font-size: 22px; line-height: 28px; }
  .ac-hk { gap: 14px 12px; }
  .ac-hk__item { padding: 0; border-left: 0; gap: 10px; align-items: flex-start; }
  .ac-hk__icon { width: 36px; height: 36px; }
  .ac-hk__icon .ac-icon { width: 18px; height: 18px; }
  .ac-hk__value { white-space: normal; }
  .ac-hk__value b { font-size: 20px; line-height: 26px; }
  .ac-hcamp thead { display: none; }
  .ac-hcamp, .ac-hcamp tbody { display: block; width: 100%; }
  .ac-hcamp tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--colors-gray-100); }
  .ac-hcamp tbody th, .ac-hcamp tbody td { display: block; padding: 0; border: 0; }
  .ac-hcamp tbody th { flex: 1 1 100%; min-width: 0; }
  .ac-hcamp tbody td.is-num { margin-left: 52px; }
  .ac-hcamp__text b { white-space: normal; }
  .ac-hupd__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ac-hupd__list li { padding: 0; border-left: 0; }
}

/* ---------- Relatórios: um PI por vez — cabeçalho com seletor, 4 indicadores e tabela ---------- */
.ac-rel-head { display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.ac-rel-head__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ac-rel-head__main { min-width: 0; flex: 1 1 260px; padding-right: 16px; }
.ac-rel-head__title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
.ac-rel-head__title a { color: var(--ink); text-decoration: none; }
.ac-rel-head__title a:hover { color: var(--accent-strong); }
.ac-rel-head__sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.ac-rel-head__pick { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 1px solid var(--line); min-width: 0; }
.ac-rel-head__pick label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ac-rel-head__pick .ac-select { height: 36px; width: 280px; max-width: 100%; font-size: 13px; }
.ac-rel-head__end { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ac-rel-head__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ac-rel-link { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.ac-rel-link .ac-icon { color: var(--accent); }
.ac-rel-link:hover { border-color: var(--colors-brand-200); background: var(--colors-brand-25); color: var(--accent-strong); }

.ac-rel-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.ac-rel-kpi { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); min-width: 0; }
.ac-rel-kpi__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ac-rel-kpi--atencao .ac-rel-kpi__icon { background: var(--colors-warning-50); color: var(--colors-warning-500); }
.ac-rel-kpi div { min-width: 0; }
.ac-rel-kpi p { margin: 0; font-size: 13px; color: var(--muted); font-weight: 500; }
.ac-rel-kpi b { display: block; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.ac-rel-kpi small { display: block; font-size: 12px; color: var(--muted); }

.ac-rel-table { padding: 0; overflow: hidden; }
.ac-rel-table .ac-table-wrap { margin: 0; padding: 0; }
.ac-rel-table .ac-table td { vertical-align: middle; padding: 12px 16px; font-variant-numeric: tabular-nums; }
.ac-rel-table .ac-table td small { margin-top: 2px; font-size: 12px; }
.ac-rel-table .ac-table th { padding: 10px 16px; }
.ac-rel-table .is-num { text-align: right; white-space: nowrap; }
.ac-rel-table .is-center { text-align: center; }
.ac-rel-table .is-center .ac-plat { display: inline-block; vertical-align: middle; }
.ac-rel-table th button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.ac-rel-table th button:hover { color: var(--ink-2); }
.ac-rel-table th button:focus-visible { outline: none; box-shadow: var(--ring-brand); border-radius: 4px; }
.ac-rel-table th button .ac-icon { color: var(--colors-gray-400); }
.ac-rel-table th[aria-sort="ascending"] button, .ac-rel-table th[aria-sort="descending"] button { color: var(--ink); }
.ac-rel-table th[aria-sort="ascending"] button .ac-icon, .ac-rel-table th[aria-sort="descending"] button .ac-icon { color: var(--accent); }
.ac-rel-bar { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.ac-rel-bar .ac-progress { flex: 1; }
.ac-rel-bar span { width: 40px; text-align: right; font-weight: 600; color: var(--ink); }
@media (max-width: 1100px) {
  .ac-rel-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-rel-head__pick { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .ac-rel-table .ac-table tr { padding: 12px 16px; }
  .ac-rel-table .ac-table td { padding: 4px 0; align-items: center; }
  .ac-rel-table .ac-table td:first-child { grid-template-columns: minmax(0, 1fr); padding-bottom: 8px; }
  .ac-rel-table .ac-table td:first-child::before { display: none; }
  .ac-rel-table .ac-table td > .ac-badge, .ac-rel-table .ac-table td > .ac-plat, .ac-rel-table .ac-table td > .ac-icon-btn { justify-self: start; }
  .ac-rel-table .is-num, .ac-rel-table .is-center { text-align: left; }
  .ac-rel-table .ac-rel-table__dash:not(:has(a)) { display: none; }
  .ac-rel-bar { min-width: 0; }
}
@media (max-width: 640px) {
  .ac-rel-head__pick, .ac-rel-head__pick .ac-select { width: 100%; }
  .ac-rel-head__end { margin-left: 0; align-items: flex-start; }
  .ac-rel-kpi { padding: 14px; gap: 12px; }
  .ac-rel-kpi__icon { width: 40px; height: 40px; }
  .ac-rel-kpi b { font-size: 22px; line-height: 28px; }
}
@media (max-width: 480px) { .ac-rel-kpi__icon { display: none; } }

/* Sidebar: ícone numa caixa fixa e rótulo do grupo começando na mesma coluna do ícone */
.ac-nav__link .ac-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.ac-nav .ac-nav__toggle { padding-left: 12px; }

/* ---------- Campanhas: abas sublinhadas, resumo e tabela sem rolagem lateral ---------- */
/* Abas sublinhadas (subcabeçalho padrão): sem fundo; a ativa ganha texto escuro e traço verde. */
.ac-utabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 0 0 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ac-utabs__item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0 11px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ac-utabs__item span { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--colors-gray-100); font-variant-numeric: tabular-nums; }
.ac-utabs__item:hover { color: var(--ink-2); }
.ac-utabs__item.is-active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.ac-utabs__item.is-active span { color: var(--accent-strong); background: var(--accent-soft); }
.ac-subbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ac-subbar__sum { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 15px; color: var(--ink-2); }
.ac-subbar__sum b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ac-subbar__sum .ac-dot { margin: 0; }
.ac-subbar__sep { color: var(--colors-gray-300); }
.ac-subbar__alert { font-weight: 600; color: var(--colors-warning-700); text-decoration: none; border-radius: 6px; padding: 0 4px; }
.ac-subbar__alert:hover { text-decoration: underline; }
.ac-subbar__alert.is-on { background: var(--colors-warning-50); box-shadow: inset 0 0 0 1px var(--colors-warning-200); text-decoration: none; }

/* overflow visível: a largura fixa das colunas já garante que a tabela cabe, e a dica do Ritmo não é cortada. */
.ac-camp-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); overflow: visible; }
.ac-camp thead th:first-child { border-top-left-radius: var(--radius-xl); }
.ac-camp thead th:last-child { border-top-right-radius: var(--radius-xl); }
/* Largura fixa por coluna: a tabela nunca passa da caixa (sem rolagem lateral); o nome quebra linha. */
.ac-camp { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
/* Colunas: 1 PI, 2 campanha (resto), 3 cliente/agência, 4 plataforma, 5 entrega, 6 ritmo, 7 tempo, 8 ações. */
.ac-camp thead th:nth-child(1) { width: 92px; }
.ac-camp thead th:nth-child(3) { width: 150px; }
.ac-camp thead th:nth-child(4) { width: 112px; }
.ac-camp thead th:nth-child(5) { width: 20%; }
.ac-camp thead th:nth-child(6) { width: 132px; }
.ac-camp thead th:nth-child(7) { width: 152px; }
.ac-camp thead th:nth-child(8) { width: 72px; }
.ac-camp__parte { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ac-camp tbody th, .ac-camp tbody td { overflow: hidden; }
.ac-camp .ac-grid__name { white-space: normal; overflow-wrap: anywhere; overflow: visible; }
.ac-camp .ac-platname { overflow: hidden; text-overflow: ellipsis; }
.ac-camp thead th { padding: 10px 10px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ac-camp thead th small { display: inline; font-size: inherit; font-weight: inherit; text-transform: none; letter-spacing: 0; color: var(--muted); }
.ac-camp .ac-platname { white-space: nowrap; }
.ac-camp tbody th, .ac-camp tbody td { padding: 10px 10px; border-bottom: 1px solid var(--colors-gray-100); vertical-align: middle; text-align: left; font-weight: 400; color: var(--ink-2); }
.ac-camp tbody tr:last-child > * { border-bottom: 0; }
.ac-camp tbody tr:hover > * { background: var(--colors-gray-25); }
.ac-camp tbody tr.is-selected > * { background: var(--accent-soft); }
.ac-camp small { display: block; font-size: 11.5px; color: var(--muted); }
.ac-camp__name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ac-camp__name > span:last-child { min-width: 0; }
.ac-camp__name .ac-grid__name { font-weight: 600; color: var(--ink); text-align: left; }
.ac-camp__entrega { min-width: 0; }
.ac-camp__nums { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; color: var(--ink); }
.ac-camp__nums b { font-weight: 600; }
.ac-camp__bar { position: relative; display: block; height: 6px; margin: 5px 0 3px; border-radius: 3px; background: var(--colors-gray-100); }
.ac-camp__fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--colors-gray-400); }
.ac-camp__fill--adiantado { background: var(--colors-success-500); }
.ac-camp__fill--no_ritmo { background: var(--accent); }
.ac-camp__fill--atencao { background: var(--colors-warning-500); }
.ac-camp__mark { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink-2); }
.ac-camp__dif { margin-top: 4px; white-space: nowrap; }
.ac-camp__tempo { display: inline-flex; align-items: flex-start; gap: 8px; white-space: nowrap; }
.ac-camp__tempo .ac-icon { margin-top: 1px; color: var(--muted); }
.ac-camp__tempo b { font-weight: 600; color: var(--ink); }
.ac-camp__pi { font-weight: 600; color: var(--accent-strong); text-decoration: none; white-space: nowrap; }
.ac-camp__pi:hover { text-decoration: underline; }
.ac-camp__acts { white-space: nowrap; text-align: right; }
.ac-camp__acts .ac-icon-btn { display: inline-grid; }
.ac-badge--ritmo { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ac-camp__th-tip { display: inline-flex; align-items: center; gap: 4px; }
.ac-tip { position: relative; display: inline-grid; place-items: center; color: var(--muted); cursor: help; border-radius: 50%; }
.ac-tip:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.ac-tip:hover::after, .ac-tip:focus-visible::after {
  content: attr(aria-label); position: absolute; z-index: 20; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 260px; padding: 8px 10px; border-radius: 8px; background: var(--colors-gray-900); color: #fff;
  font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: 0; text-transform: none; white-space: normal; box-shadow: var(--shadow-lg);
}
@media (max-width: 1366px) {
  .ac-camp th:nth-child(4), .ac-camp td:nth-child(4) { display: none; }   /* plataforma já aparece no logo do nome */
}
@media (max-width: 1200px) {
  .ac-camp thead th:nth-child(3) { width: 118px; }
  .ac-camp thead th:nth-child(7) { width: 134px; }
}
@media (max-width: 900px) {
  .ac-camp { table-layout: auto; }
  .ac-camp thead { display: none; }
  .ac-camp, .ac-camp tbody { display: block; width: 100%; }
  .ac-camp tr { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .ac-camp tbody th, .ac-camp tbody td { display: block; padding: 0; border: 0; overflow: visible; }
  .ac-camp tbody th { order: -1; flex: 1 1 100%; }
  .ac-camp__name { padding-right: 72px; min-width: 0; }
  .ac-camp td:nth-child(4) { display: none; }
  .ac-camp__picol, .ac-camp__parte { font-size: 12px; }
  .ac-camp__parte { max-width: 60%; }
  .ac-camp__entrega { flex: 1 1 100%; min-width: 0; }
  .ac-camp td:nth-child(6) { display: flex; align-items: center; gap: 8px; }
  .ac-camp td:nth-child(6) .ac-camp__dif { margin: 0; }
  .ac-camp tbody td.ac-camp__acts { position: absolute; top: 10px; right: 12px; width: auto; }
}

/* Topo: nomes de cliente longos (ex.: SICOOB CENTRAL CREDIMINAS) encurtam com reticências em vez de empurrar a barra para fora da tela. */
.ac-top__actions { min-width: 0; }
.ac-viewas { min-width: 0; }
.ac-viewas__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-user { min-width: 0; }
.ac-user__text { min-width: 0; max-width: 170px; }
.ac-user__text b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1280px) {
  .ac-viewas { max-width: 240px; }
  .ac-user__text { max-width: 130px; }
}

/* Relatórios: lista de PIs com o mesmo subcabeçalho e a mesma tabela de Campanhas.
   Colunas: 1 PI, 2 título (resto), 3 cliente/agência, 4 entrega, 5 ritmo, 6 período, 7 relatórios, 8 abrir. */
.ac-rlist thead th:nth-child(1) { width: 92px; }
.ac-rlist thead th:nth-child(3) { width: 150px; }
.ac-rlist thead th:nth-child(4) { width: 20%; }
.ac-rlist thead th:nth-child(5) { width: 140px; }
.ac-rlist thead th:nth-child(6) { width: 170px; }
.ac-rlist thead th:nth-child(7) { width: 96px; }
.ac-rlist thead th:nth-child(8) { width: 52px; }
.ac-rlist__titulo { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; min-width: 0; }
.ac-rlist__titulo b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ac-rlist__titulo:hover b { color: var(--accent-strong); }
.ac-rlist__links { white-space: nowrap; }
.ac-rlist__links .ac-icon-btn { display: inline-grid; }
.ac-rlist .ac-camp__tempo small { white-space: nowrap; }
.ac-pis__pi { font-weight: 600; white-space: nowrap; }
@media (max-width: 1366px) { .ac-rlist thead th:nth-child(6) { width: 140px; } }
@media (max-width: 1200px) { .ac-rlist thead th:nth-child(3) { width: 118px; } }
@media (max-width: 900px) {
  .ac-rlist tbody td:nth-child(4) { display: block; flex: 1 1 100%; }
  .ac-rlist tbody td:nth-child(5) { display: block; }
}

/* PIs: mesmo cabeçalho de tabela das demais listas (Campanhas, Relatórios). */
.ac-table-card { border-radius: var(--radius-xl); }
.ac-table-card .ac-table thead th { padding: 10px 12px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ac-table-card .ac-table td { vertical-align: middle; padding: 12px; }

/* Sem rolagem lateral entre 1024 e 1280 px (menu aberto): colunas secundárias saem.
   PIs: 3 Plataformas e 6 Valor bruto (fica o líquido). Detalhe do relatório: 2 Plataforma. */
@media (min-width: 901px) and (max-width: 1280px) {
  .ac-pis-table th:nth-child(3), .ac-pis-table td:nth-child(3),
  .ac-pis-table th:nth-child(6), .ac-pis-table td:nth-child(6) { display: none; }
  .ac-rel-table .ac-table th:nth-child(2), .ac-rel-table .ac-table td:nth-child(2) { display: none; }
  .ac-rel-bar { min-width: 120px; gap: 8px; }
}

/* ---------- Detalhe do PI: cabeçalho, trilho com datas, valores, campanhas + NFs | linha do tempo + documentos ---------- */
.ac-pi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ac-pi-head__main { min-width: 0; flex: 1 1 420px; }
.ac-pi-head__title { margin: 0; font-size: 24px; line-height: 30px; overflow-wrap: anywhere; }
.ac-pi-head__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.ac-pi-head__meta span { display: inline-flex; align-items: center; gap: 5px; }
.ac-pi-head__meta b { color: var(--ink-2); font-weight: 600; }
.ac-pi-head__links { display: flex; gap: 8px; flex-wrap: wrap; }

.ac-pi-track { list-style: none; margin: 0 0 16px; padding: 14px 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); }
.ac-pi-track__step { position: relative; display: flex; align-items: flex-start; gap: 8px; min-width: 0; color: var(--muted); }
.ac-pi-track__step:not(:last-child)::after { content: ""; position: absolute; left: 28px; right: 6px; top: 10px; height: 2px; background: var(--colors-gray-200); z-index: 0; }
.ac-pi-track__step.is-done:not(:last-child)::after { background: var(--accent); }
.ac-pi-track__dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--colors-gray-300); background: var(--surface); color: #fff; }
.ac-pi-track__step.is-done .ac-pi-track__dot { background: var(--accent); border-color: var(--accent); }
.ac-pi-track__step.is-current .ac-pi-track__dot { border-color: var(--accent); box-shadow: var(--ring-brand); }
.ac-pi-track__txt { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; padding: 0 6px 0 2px; background: var(--surface); margin-top: 22px; margin-left: -28px; }
.ac-pi-track__txt b { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-pi-track__step.is-todo .ac-pi-track__txt b { color: var(--muted); font-weight: 500; }
.ac-pi-track__step.is-current .ac-pi-track__txt b { color: var(--accent-strong); }
.ac-pi-track__txt small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.ac-pi-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ac-pi-val { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); }
.ac-pi-val span { font-size: 12.5px; color: var(--muted); }
.ac-pi-val b { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ac-pi-val small { font-size: 12px; color: var(--muted); }

.ac-pi-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 12px; align-items: start; margin-top: 12px; }
.ac-pi-grid__main, .ac-pi-grid__side { display: grid; gap: 12px; min-width: 0; }
.ac-pi-camps, .ac-pi-nfs, .ac-pi-docs, .ac-pi-tl { list-style: none; margin: 0; padding: 0; }
.ac-pi-camp { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--colors-gray-100); }
.ac-pi-camp:first-child { border-top: 0; }
.ac-pi-camp__logo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--line); background: var(--surface); }
.ac-pi-camp__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ac-pi-camp__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ac-pi-camp__top b { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ac-pi-camp__pct { font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ac-pi-camp .ac-camp__bar { margin: 2px 0; }
.ac-pi-camp__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ac-pi-camp__meta small { font-size: 12px; color: var(--muted); }
.ac-pi-camp__st.is-live { color: var(--colors-success-700); font-weight: 600; }
.ac-pi-nf { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--colors-gray-100); }
.ac-pi-nf:first-child { border-top: 0; }
.ac-pi-nf__main, .ac-pi-nf__val { display: flex; flex-direction: column; min-width: 0; }
.ac-pi-nf__val { align-items: flex-end; font-variant-numeric: tabular-nums; }
.ac-pi-nf b { font-size: 13px; font-weight: 600; color: var(--ink); }
.ac-pi-nf small { font-size: 12px; color: var(--muted); }
.ac-pi-tl { padding: 8px 16px 14px; }
.ac-pi-tl__item { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; padding: 6px 0; }
.ac-pi-tl__item:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 24px; bottom: -6px; width: 2px; background: var(--colors-gray-100); }
.ac-pi-tl__dot { grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--colors-success-50); color: var(--colors-success-700); }
.ac-pi-tl__item.is-final .ac-pi-tl__dot { background: var(--accent); color: #fff; }
.ac-pi-tl__item b { font-size: 13px; font-weight: 600; color: var(--ink); }
.ac-pi-tl__item small { font-size: 12px; color: var(--muted); }
.ac-pi-docs { padding: 4px 8px 8px; }
.ac-pi-docs a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 500; }
.ac-pi-docs a:hover { background: var(--soft); color: var(--accent-strong); }
.ac-pi-docs a span { flex: 1; min-width: 0; }
.ac-pi-docs a .ac-icon:first-child { color: var(--accent); }

/* Tablet: uma coluna; valores em 2 colunas, o líquido ocupa a linha toda */
@media (max-width: 1100px) {
  .ac-pi-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-pi-vals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-pi-val:first-child { grid-column: 1 / -1; }
}
/* Celular: trilho vertical, NF em duas linhas */
@media (max-width: 640px) {
  .ac-pi-head__title { font-size: 20px; line-height: 26px; }
  .ac-pi-track { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px 14px; }
  .ac-pi-track__step { padding: 4px 0; align-items: center; }
  .ac-pi-track__step:not(:last-child)::after { left: 9px; right: auto; top: 24px; bottom: -6px; width: 2px; height: auto; }
  .ac-pi-track__txt { margin: 0; flex-direction: row; align-items: baseline; gap: 8px; background: none; }
  .ac-pi-val { padding: 12px; }
  .ac-pi-val b { font-size: 17px; line-height: 24px; }
  .ac-pi-nf { grid-template-columns: minmax(0, 1fr) auto; }
  .ac-pi-nf__st { grid-column: 1 / -1; }
  .ac-pi-camp { padding: 12px; }
}

/* ---------- Painel lateral de detalhe (campanha / PI) ----------
   Renderizado fora de .ac-content (ver _painel.html): fica acima da barra do topo. */
.ac-painel { z-index: 80; width: min(460px, 100vw); }
.ac-painel + .ac-drawer-scrim, .ac-drawer-scrim { z-index: 75; }
html.ac-painel-aberto { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .ac-painel.is-entrando { animation: ac-painel-entra 260ms var(--ease) both; }
  .ac-painel.is-entrando .ac-painel__num, .ac-painel.is-entrando .ac-painel__barra { animation: ac-painel-sobe 380ms var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 50ms); }
}
@keyframes ac-painel-entra { from { transform: translateX(24px); opacity: 0; } }
@keyframes ac-painel-sobe { from { transform: translateY(6px); opacity: 0; } }
.ac-painel__logo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--line); background: var(--surface); }
.ac-painel__logo img { width: 24px; height: 24px; object-fit: contain; }
.ac-painel__titulos { min-width: 0; }
.ac-painel__sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.ac-painel__sub:empty { display: none; }

.ac-painel__hero { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--colors-gray-25), var(--surface)); position: relative; }
.ac-painel__anel { width: 132px; height: 132px; transform: rotate(-90deg); grid-row: 1; grid-column: 1; }
.ac-painel__anel circle { fill: none; }
.ac-painel__trilha { stroke: var(--colors-gray-100); stroke-width: 12; }
.ac-painel__trilha--fina { stroke-width: 5; }
.ac-painel__entrega { stroke: var(--accent); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.ac-painel__tempo { stroke: var(--ink-2); stroke-width: 5; stroke-linecap: round; opacity: .55; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1) .15s; }
.ac-painel[data-cor="success"] .ac-painel__entrega { stroke: var(--colors-success-500); }
.ac-painel[data-cor="warning"] .ac-painel__entrega { stroke: var(--colors-warning-500); }
.ac-painel__centro { grid-row: 1; grid-column: 1; display: grid; place-items: center; align-content: center; text-align: center; pointer-events: none; }
.ac-painel__centro b { font-size: 26px; line-height: 30px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ac-painel__centro small { font-size: 11.5px; color: var(--muted); }
.ac-painel__legenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.ac-painel__legenda li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-painel__legenda b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }
.ac-painel__chave { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ac-painel__chave--entrega { background: var(--accent); }
.ac-painel[data-cor="success"] .ac-painel__chave--entrega { background: var(--colors-success-500); }
.ac-painel[data-cor="warning"] .ac-painel__chave--entrega { background: var(--colors-warning-500); }
.ac-painel__chave--tempo { background: var(--ink-2); opacity: .55; }
.ac-painel__ritmo small { font-size: 12px; color: var(--muted); }

.ac-painel__nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ac-painel__num { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.ac-painel__num span { font-size: 12px; color: var(--muted); }
.ac-painel__num b { font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ac-painel__num small { font-size: 11.5px; color: var(--muted); }

.ac-painel__h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ac-painel__barras ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ac-painel__barra > a, .ac-painel__barra > div { display: grid; gap: 5px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: inherit; text-decoration: none; }
.ac-painel__barra > a:hover { background: var(--soft); }
.ac-painel__barra-topo { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.ac-painel__barra-topo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-painel__barra-topo b { font-variant-numeric: tabular-nums; color: var(--ink); }
.ac-painel__trilho { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--colors-gray-100); }
.ac-painel__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: var(--accent); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.ac-painel__fill.is-adiantado { background: var(--colors-success-500); }
.ac-painel__fill.is-atencao { background: var(--colors-warning-500); }
.ac-painel__fill.is-tempo { background: var(--ink-2); opacity: .5; }
.ac-painel__marca { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink-2); }

.ac-painel__acoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.ac-painel__acoes .ac-btn { justify-content: center; gap: 6px; min-width: 0; }
.ac-painel__acoes .ac-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-painel__principal { grid-column: 1 / -1; height: 40px; }
@media (max-width: 480px) {
  .ac-painel__hero { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .ac-painel__anel { width: 112px; height: 112px; }
  .ac-painel__centro b { font-size: 22px; }
}
.ac-pis-table__acts { width: 44px; text-align: right; }
.ac-pis-table tbody tr.is-selected td, .ac-rlist tbody tr.is-selected > * { background: var(--accent-soft); }
@media (max-width: 900px) { .ac-pis-table__acts::before { content: none !important; } .ac-pis-table__acts { text-align: left; } }

/* ---------- Início: conta vazia (boas-vindas + prévia) e ideias personalizadas ---------- */
.ac-boas { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 24px; align-items: center; padding: 28px; margin-bottom: 20px; border-radius: 20px; border: 1px solid var(--colors-brand-100); background: radial-gradient(120% 140% at 100% 0%, var(--colors-brand-50), var(--surface) 60%); }
.ac-boas__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-strong); }
.ac-boas__titulo { margin: 0; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ac-boas__lead { margin: 10px 0 18px; max-width: 60ch; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ac-boas__passos { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ac-boas__passos li { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ac-boas__passos li > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.ac-boas__passos b { display: block; font-size: 13px; color: var(--ink); }
.ac-boas__passos small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.ac-boas__acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-boas__ilus { display: grid; place-items: center; }
.ac-ilus { width: 100%; max-width: 360px; height: auto; }
.ac-ilus__blob { fill: var(--colors-brand-100); opacity: .55; }
.ac-ilus__card { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; filter: drop-shadow(0 10px 18px rgba(16, 24, 40, .08)); }
.ac-ilus__linha { fill: var(--ink-2); opacity: .8; }
.ac-ilus__linha--fraca { opacity: .25; }
.ac-ilus__barras rect { fill: var(--accent); transform-origin: bottom; transform-box: fill-box; }
.ac-ilus__barras rect:nth-child(odd) { fill: var(--colors-brand-300, #7cc4ae); }
.ac-ilus__trilha { fill: none; stroke: var(--colors-gray-100); stroke-width: 8; }
.ac-ilus__anel { fill: none; stroke: var(--colors-success-500); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 188.5; stroke-dashoffset: 52.8; transform: rotate(-90deg); transform-origin: 246px 160px; }
.ac-ilus__pct { font: 700 14px Inter, sans-serif; fill: var(--ink); }
.ac-ilus__selo circle { fill: var(--accent); }
.ac-ilus__selo path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ac-ilus__mega rect { fill: var(--colors-warning-50); stroke: var(--colors-warning-200); }
.ac-ilus__mega path { fill: var(--colors-warning-500); }
@media (prefers-reduced-motion: no-preference) {
  .ac-ilus__barras rect { animation: ac-subir-barra 900ms var(--ease) both; }
  .ac-ilus__barras rect:nth-child(2) { animation-delay: 80ms; } .ac-ilus__barras rect:nth-child(3) { animation-delay: 160ms; } .ac-ilus__barras rect:nth-child(4) { animation-delay: 240ms; }
  .ac-ilus__anel { animation: ac-anel 1.2s var(--ease) both; }
  .ac-ilus__selo { animation: ac-flutua 4s ease-in-out infinite; transform-box: fill-box; }
  .ac-previa__fill { animation: ac-previa 1.1s var(--ease) both; }
}
@keyframes ac-subir-barra { from { transform: scaleY(.1); } }
@keyframes ac-anel { from { stroke-dashoffset: 188.5; } }
@keyframes ac-flutua { 50% { transform: translateY(-5px); } }
@keyframes ac-previa { from { width: 0; } }

.ac-previa { position: relative; margin-bottom: 24px; padding: 16px 18px; border: 1px dashed var(--colors-gray-300); border-radius: 16px; background: var(--surface); }
.ac-previa__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ac-previa__tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--colors-gray-100); }
.ac-previa__corpo { opacity: .8; filter: saturate(.85); pointer-events: none; user-select: none; }
.ac-previa__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ac-previa__kpis div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 2px; }
.ac-previa__kpis span { font-size: 12px; color: var(--muted); }
.ac-previa__kpis b { font-size: 20px; color: var(--ink); }
.ac-previa__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ac-previa__lista li { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) 44px; align-items: center; gap: 14px; }
.ac-previa__nome b { display: block; font-size: 13px; color: var(--ink); }
.ac-previa__nome small { font-size: 12px; color: var(--muted); }
.ac-previa__lista > li > b { text-align: right; font-size: 13px; color: var(--ink); }
.ac-previa__lista .ac-hcamp__bar { margin: 0; }
.ac-previa__fill { width: var(--w); }

.ac-ideias { margin: 4px 0 28px; }
.ac-ideias__lista { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ac-ideia { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.ac-ideia:hover, .ac-ideia:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-md, 0 8px 20px rgba(16,24,40,.08)); border-color: var(--colors-brand-200); }
.ac-ideia__img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; background: var(--colors-brand-25); color: var(--accent); overflow: hidden; }
.ac-ideia__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.ac-ideia:hover .ac-ideia__img img { transform: scale(1.04); }
.ac-ideia__obj { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--accent-strong); background: rgba(255,255,255,.92); }
.ac-ideia__txt { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.ac-ideia__txt b { font-size: 14px; line-height: 19px; color: var(--ink); }
.ac-ideia__txt small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.ac-ideia__canais { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.ac-ideia__canal { padding: 2px 7px; border-radius: 999px; font-size: 11px; color: var(--ink-2); background: var(--colors-gray-100); }
.ac-ideia__canal.is-conhecido { color: var(--colors-success-700); background: var(--colors-success-50); }
.ac-ideia__verba { font-size: 12px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 1100px) {
  .ac-boas { grid-template-columns: minmax(0, 1fr); }
  .ac-boas__ilus { order: -1; }
  .ac-ilus { max-width: 300px; }
  .ac-ideias__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ac-boas { padding: 18px; }
  .ac-boas__titulo { font-size: 20px; line-height: 26px; }
  .ac-boas__passos { grid-template-columns: minmax(0, 1fr); }
  .ac-previa__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-previa__lista li { grid-template-columns: minmax(0, 1fr) 44px; }
  .ac-previa__lista .ac-hcamp__bar { grid-column: 1 / -1; grid-row: 2; }
  .ac-ideias__lista { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Comparação: Relatórios > Comparar, PI e chips ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ac-anima-largura { animation: ac-largura 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
  .ac-cmp__barra { animation: ac-altura .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 50ms); }
}
.ac-anima-largura { width: var(--w); }
@keyframes ac-largura { from { width: 0; } }
@keyframes ac-altura { from { height: 0; } }
.ac-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ac-cmp__duelo { grid-column: 1 / -1; }
.ac-cmp__plats { list-style: none; margin: 0; padding: 12px 16px; display: grid; gap: 10px; }
.ac-cmp__plats li { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) 48px; align-items: center; gap: 12px; }
.ac-cmp__plat { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ac-cmp__plat b { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-cmp__plat small { font-size: 11px; color: var(--muted); background: var(--colors-gray-100); border-radius: 999px; padding: 0 6px; }
.ac-cmp__trilho { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--colors-gray-100); }
.ac-cmp__trilho--sm { height: 6px; flex: 1; min-width: 60px; }
.ac-cmp__fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.ac-cmp__fill.is-ok { background: var(--colors-success-500); }
.ac-cmp__fill.is-baixo { background: var(--colors-warning-500); }
.ac-cmp__meta { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink-2); opacity: .6; border-radius: 1px; }
.ac-cmp__pct { text-align: right; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ac-cmp__nota { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 16px 14px; font-size: 12px; color: var(--muted); }
.ac-cmp__meta-chave { width: 12px; height: 0; border-top: 2px dashed var(--ink-2); opacity: .6; }
.ac-cmp__evo { list-style: none; margin: 0; padding: 14px 16px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: end; }
.ac-cmp__col { display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; text-decoration: none; border-radius: 8px; padding: 4px 0; }
.ac-cmp__col:hover { background: var(--soft); }
.ac-cmp__col b { font-size: 11.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ac-cmp__col small { font-size: 11px; color: var(--muted); }
.ac-cmp__area { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 150px; }
.ac-cmp__area::before { content: ""; position: absolute; left: 0; right: 0; bottom: var(--l); border-top: 2px dashed var(--ink-2); opacity: .25; }
.ac-cmp__barra { position: relative; width: min(28px, 70%); height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--accent); }
.ac-cmp__barra.is-ok { background: var(--colors-success-500); }
.ac-cmp__barra.is-baixo { background: var(--colors-warning-500); }
.ac-cmp__picks { display: flex; gap: 12px; flex-wrap: wrap; padding: 12px 16px 0; }
.ac-cmp__pick { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; min-width: 0; }
.ac-cmp__pick span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ac-cmp__pick .ac-select { width: 100%; }
.ac-cmp__tabela { padding: 8px 16px 14px; }
.ac-cmp__linha { display: grid; grid-template-columns: minmax(110px, 180px) repeat(2, minmax(0, 1fr)); gap: 16px; align-items: center; padding: 9px 0; border-top: 1px solid var(--colors-gray-100); font-size: 13px; }
.ac-cmp__cab { border-top: 0; }
.ac-cmp__rot { color: var(--muted); }
.ac-cmp__val { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ac-cmp__cab .ac-cmp__val { flex-direction: column; align-items: flex-start; gap: 0; }
.ac-cmp__val b { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.ac-cmp__val b.is-ok { color: var(--colors-success-700); }
.ac-cmp__val b.is-baixo { color: var(--colors-warning-700); }
.ac-cmp__val small { font-size: 11.5px; color: var(--muted); }
.ac-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; color: var(--ink-2); background: var(--colors-gray-100); }
.ac-chip b { color: var(--ink); }
.ac-chip.is-bom { color: var(--colors-success-700); background: var(--colors-success-50); }
.ac-chip.is-baixo { color: var(--colors-warning-700); background: var(--colors-warning-50); }
.ac-pi-camp__comp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ac-pi-cmp__corpo { padding: 12px 16px 14px; display: grid; gap: 10px; }
.ac-pi-cmp__frase { margin: 0; font-size: 13px; color: var(--ink-2); }
.ac-pi-cmp__frase b.is-bom { color: var(--colors-success-700); }
.ac-pi-cmp__frase b.is-baixo { color: var(--colors-warning-700); }
.ac-pi-cmp__barra { display: grid; grid-template-columns: 110px minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.ac-pi-cmp__barra b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.ac-pi-cmp__media { background: var(--ink-2); opacity: .45; }
.ac-rel-link--main { border-color: var(--colors-brand-200); color: var(--accent-strong); font-weight: 600; }
@media (max-width: 1100px) { .ac-cmp { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ac-cmp__plats li { grid-template-columns: minmax(0, 1fr) 44px; }
  .ac-cmp__plats .ac-cmp__trilho { grid-column: 1 / -1; grid-row: 2; }
  .ac-cmp__linha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
  .ac-cmp__rot { grid-column: 1 / -1; font-weight: 600; color: var(--ink-2); }
  .ac-cmp__cab .ac-cmp__rot { display: none; }
  .ac-cmp__area { height: 110px; }
  .ac-cmp__evo { gap: 4px; padding: 10px 8px 6px; }
}

/* ---------- Início: barra de aviso, três colunas simétricas, operação e cartão de vídeo ---------- */
.ac-aviso--barra { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 22px; padding: 12px 16px; border-radius: var(--radius-xl, 14px); }
.ac-aviso--barra .ac-aviso__title { margin: 0; }
.ac-aviso--barra .ac-aviso__frase { margin: 0; flex: 1 1 280px; }
.ac-home3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; margin-bottom: 28px; }
.ac-home3__col { min-width: 0; }
.ac-hc { list-style: none; margin: 0; padding: 0; display: grid; }
.ac-hc li + li { border-top: 1px solid var(--line); }
.ac-hc__item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; color: inherit; text-decoration: none; }
.ac-hc__item:hover b { color: var(--accent-strong); }
.ac-hc__text { min-width: 0; display: grid; gap: 3px; }
.ac-hc__text b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-hc__text small { color: var(--muted); font-size: 12px; }
.ac-hc__fim { display: grid; justify-items: end; gap: 4px; font-size: 14px; }
.ac-op__live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent-strong); }
.ac-op__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0, 150, 110, .5); animation: ac-live 1.8s ease-out infinite; }
.ac-vcard { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; width: min(360px, calc(100vw - 32px)); padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-xl, 16px); background: var(--surface); box-shadow: 0 16px 40px rgba(16, 24, 40, .18); opacity: 0; transform: translateY(14px); transition: opacity .22s var(--ease), transform .22s var(--ease); }
.ac-vcard[hidden] { display: none; }
.ac-vcard.is-on { opacity: 1; transform: none; }
.ac-vcard__x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.ac-vcard__x:hover { background: var(--soft); color: var(--ink); }
.ac-vcard__play { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(0, 120, 90, .3); }
.ac-vcard__txt { display: grid; gap: 2px; min-width: 0; padding-right: 18px; }
.ac-vcard__txt b { font-size: 14px; line-height: 1.3; }
.ac-vcard__txt small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.ac-vcard__link { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
@media (max-width: 1100px) { .ac-home3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ac-home3 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 720px) { .ac-home3 { grid-template-columns: minmax(0, 1fr); gap: 22px; } .ac-vcard { right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .ac-vcard { transition: none; } .ac-op__live i { animation: none; } }


/* ---------- Início: hero, colunas em cartões simétricos e atualizações no mesmo grid ---------- */
.ac-hero { display: grid; gap: 2px; margin: 0 0 20px; }
.ac-hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--accent); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ac-hero__nome { margin: 0; font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ac-hero__sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.ac-hero__sub b { color: var(--ink); font-weight: 600; }
.ac-home3 { align-items: stretch; gap: 20px; }
.ac-home3__col { display: flex; flex-direction: column; padding: 16px 18px 12px; border: 1px solid var(--line); border-radius: var(--radius-xl, 14px); background: var(--surface); }
.ac-home3__col > .ac-home-sec__head { align-items: center; min-height: 28px; margin-bottom: 10px; }
.ac-home3__col .ac-hc li:first-child .ac-hc__item { padding-top: 4px; }
.ac-home3__col .ac-hpis-list { margin: 0; }
.ac-home3__col .ac-home-empty { margin: 0; }
.ac-op__live { margin-left: 10px; vertical-align: middle; }
.ac-hupd { display: grid; gap: 4px; padding: 0; border: 0; margin: 0 0 28px; }
.ac-hupd .ac-home-sec__head { margin-bottom: 10px; }
.ac-hupd__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.ac-hupd__list li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; min-height: 76px; border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--radius-xl, 14px); background: var(--surface); min-width: 0; }
.ac-hupd__list li:first-child { padding-left: 16px; border-left: 1px solid var(--line); }
.ac-hupd__list b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ac-hupd__mais { grid-column: auto; grid-row: auto; justify-self: end; align-self: auto; margin-top: 6px; }
@media (max-width: 1100px) { .ac-hupd__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .ac-hupd__list { grid-template-columns: minmax(0, 1fr); } .ac-hero__nome { font-size: 24px; line-height: 30px; } .ac-home3 { gap: 16px; } }
.ac-hupd { grid-template-columns: minmax(0, 1fr); align-items: start; }
.ac-hupd__title { white-space: normal; }

/* Campanhas, PIs e Relatórios: cabeçalho com a mesma altura (o botão "Enviar um PI" não empurra as abas) */
.ac-page-head { min-height: 40px; align-items: center; }
.ac-page-head .ac-page-title { margin: 0; }
.ac-rel-table__entrega { min-width: 150px; }
.ac-rel-table__entrega > b { display: block; font-size: 14px; }
.ac-rel-table__entrega .ac-camp__bar { display: block; margin-top: 6px; max-width: 160px; }
.ac-rel-table__links a { display: block; font-size: 13px; line-height: 1.5; }
.ac-rel-table__links small { display: block; color: var(--muted); }

/* ---------- Operação: três números lado a lado, ritmo e plataformas em listas verticais ---------- */
.ac-op__body { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.ac-op__label { display: block; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ac-op__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ac-op__kpi { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; }
a.ac-op__kpi:hover { border-color: var(--accent); }
.ac-op__kpi.is-main { background: var(--colors-brand-25); border-color: var(--colors-brand-100); }
.ac-op__kpi b { font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.ac-op__kpi b small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ac-op__mini { display: block; height: 4px; border-radius: 2px; background: var(--colors-gray-100); overflow: hidden; }
.ac-op__mini span { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.ac-op__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ac-op__lista { display: grid; gap: 8px; align-content: start; min-width: 0; }
.ac-op__lista ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ac-op__lista li { display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: 14px; font-weight: 500; }
.ac-op__lista li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-op__lista li > b { margin-left: auto; font-size: 14px; font-weight: 600; }
.ac-op__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--colors-gray-300, #d0d5dd); }
.is-adiantado > .ac-op__dot { background: var(--colors-success-500, #17b26a); }
.is-no_ritmo > .ac-op__dot { background: var(--accent); }
.is-atencao > .ac-op__dot { background: var(--colors-warning-400, #fdb022); }
.ac-op__nota { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
/* esqueleto claro quando não há campanha no ar: só forma, nenhum número ou plataforma inventada */
.ac-sk { display: block; border-radius: 6px; background: var(--colors-gray-100); }
.ac-sk--num { width: 44px; height: 26px; }
.ac-sk--mini { width: 22px; height: 12px; margin-left: auto; }
.ac-sk--logo { flex: none; width: 22px; height: 22px; border-radius: 50%; }
.ac-sk--linha { flex: 1; height: 10px; max-width: 110px; }
.ac-op__body.is-vazio .ac-op__kpi { background: var(--surface); border-style: dashed; }
.ac-op__body.is-vazio .ac-op__kpi.is-main { background: var(--colors-brand-25); }
.ac-op__body.is-vazio .ac-op__dot { opacity: .45; }
@media (max-width: 560px) { .ac-op__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ac-op__kpi b { font-size: 22px; } }
/* marcador discreto da conta de demonstração (sem texto: o foco do topo é a busca, o briefing e a conta) */
.ac-modo-demo { flex: none; align-self: center; width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--colors-gray-100); color: var(--muted); }
@keyframes ac-live { 70% { box-shadow: 0 0 0 7px rgba(0, 150, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 150, 110, 0); } }
.ac-table tr[hidden] { display: none; }
.ac-subbar__opt { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.ac-subbar__opt.is-on { text-decoration: underline; }

/* Lista de PIs e de Relatórios: o mesmo cartão rente e a mesma célula de Campanhas, com colunas automáticas */
.ac-camp-wrap--rolar { overflow-x: auto; }
.ac-lista { width: 100%; border-collapse: collapse; font-size: 13px; }
.ac-lista thead th { padding: 10px 10px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ac-lista thead th:first-child { border-top-left-radius: var(--radius-xl); }
.ac-lista thead th:last-child { border-top-right-radius: var(--radius-xl); }
.ac-lista tbody td { padding: 10px 10px; border-bottom: 1px solid var(--colors-gray-100); vertical-align: middle; text-align: left; font-weight: 400; color: var(--ink-2); }
.ac-lista tbody tr:last-child > * { border-bottom: 0; }
.ac-lista tbody tr:hover > * { background: var(--colors-gray-25); }
.ac-lista small { display: block; font-size: 11.5px; color: var(--muted); }
.ac-lista .ac-num, .ac-lista th.ac-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-lista td:first-child { white-space: nowrap; }
.ac-lista td:first-child small { white-space: normal; max-width: 260px; }
.ac-lista .ac-camp__acts { width: 52px; }
.ac-lista .ac-rel-table__entrega { min-width: 130px; }
.ac-lista .ac-rel-table__entrega .ac-camp__bar { max-width: 150px; }
.ac-lista tbody tr.is-selected > * { background: var(--accent-soft); }

/* Operação: números em colunas simples (sem cartões), rótulos numa linha só; logos com um único círculo */
.ac-op__kpis { gap: 0; }
.ac-op__kpi, .ac-op__kpi.is-main, .ac-op__body.is-vazio .ac-op__kpi, .ac-op__body.is-vazio .ac-op__kpi.is-main { padding: 0 0 0 14px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
.ac-op__kpi:first-child, .ac-op__body.is-vazio .ac-op__kpi:first-child { padding-left: 0; border-left: 0; }
.ac-op__kpi .ac-op__label { white-space: nowrap; font-size: 10.5px; letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; }
a.ac-op__kpi:hover { border-color: var(--line); }
a.ac-op__kpi:hover b { color: var(--accent-strong); }
.ac-hc__item .ac-hcamp__logo { width: 30px; height: 30px; border: 0; background: transparent; box-shadow: none; }
.ac-hc__item .ac-plat { width: 28px; height: 28px; border-radius: 50%; padding: 4px; }
.ac-op__lista .ac-plat { border-radius: 50%; }

.ac-subbar--filtro { justify-content: flex-end; }

/* Celular: cada campanha, PI ou relatório vira um item de DUAS linhas.
   Linha 1: nome e o valor principal (entrega ou valor líquido). Linha 2: PI ou período e a situação. */
@media (max-width: 900px) {
  .ac-camp-wrap table thead { display: none; }
  .ac-camp-wrap table, .ac-camp-wrap tbody { display: block; width: 100%; }
  .ac-camp-wrap tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nome valor" "sub situacao"; align-items: center; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .ac-camp-wrap tbody tr:last-child { border-bottom: 0; }
  .ac-camp-wrap td[data-c], .ac-camp-wrap th[data-c] { display: none; padding: 0; border: 0; overflow: hidden; background: transparent; }
  .ac-camp-wrap td[data-c="nome"], .ac-camp-wrap th[data-c="nome"] { display: block; grid-area: nome; min-width: 0; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 600; color: var(--ink); }
  .ac-camp-wrap td[data-c="valor"] { display: block; grid-area: valor; text-align: right; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink); }
  .ac-camp-wrap td[data-c="sub"] { display: block; grid-area: sub; min-width: 0; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--muted); }
  .ac-camp-wrap td[data-c="situacao"] { display: flex; grid-area: situacao; justify-content: flex-end; align-items: center; }
  /* dentro das células: só o que cabe numa linha */
  .ac-camp-wrap td[data-c="nome"] small { display: inline; margin-left: 6px; font-weight: 400; }
  .ac-camp-wrap th[data-c="nome"] .ac-camp__name { padding-right: 0; gap: 8px; }
  .ac-camp-wrap th[data-c="nome"] .ac-camp__name small { display: none; }
  .ac-camp-wrap td[data-c="valor"] .ac-camp__bar, .ac-camp-wrap td[data-c="valor"] small, .ac-camp-wrap td[data-c="valor"] .ac-camp__nums > span { display: none; }
  .ac-camp-wrap td[data-c="valor"] .ac-camp__nums { display: block; }
  .ac-camp-wrap td[data-c="valor"] b { font-size: 14px; }
  .ac-camp-wrap td[data-c="sub"] small, .ac-camp-wrap td[data-c="sub"] .ac-camp__tempo small { display: none; }
  .ac-camp-wrap td[data-c="sub"] .ac-camp__pi { font-size: 12px; }
}
@media (max-width: 900px) {
  .ac-camp-wrap td[data-c="nome"] small, .ac-camp-wrap td[data-c="nome"] a { white-space: nowrap; max-width: none; }
  .ac-camp-wrap td[data-c="nome"] { overflow: hidden; text-overflow: ellipsis; }
}

/* Abas e filtro de plataforma na mesma linha: o seletor fica à direita, as abas rolam se faltar espaço */
.ac-utabs-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.ac-utabs-row .ac-utabs { flex: 1 1 auto; min-width: 0; margin: 0; border-bottom: 0; }
.ac-utabs-row__tools { flex: none; padding-bottom: 4px; }
.ac-utabs-row__tools .ac-select { max-width: 190px; }
@media (max-width: 560px) { .ac-utabs-row__tools .ac-select { max-width: 130px; } }
@media (max-width: 560px) { .ac-utabs-row__tools .ac-select { max-width: 112px; } }

/* Desktop: o título da página (Campanhas, PIs, Relatórios) sobe para a barra do topo, ao lado da busca; no celular continua na página */
.ac-top__titulo { display: none; margin: 0; padding-right: 14px; border-right: 1px solid var(--line); font-size: 17px; line-height: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
@media (min-width: 901px) {
  .ac-top__titulo { display: block; }
  .ac-page-title--topo { display: none; }
  .ac-page-head--so-titulo { display: none; }
}

.ac-so-desktop { display: none; }
@media (min-width: 901px) {
  .ac-so-desktop { display: block; }
  /* PIs: o cabeçalho some no desktop; no celular o botão fica no cabeçalho */
}
@media (max-width: 900px) { .ac-page-head--so-titulo .ac-page-title--topo { display: block; } }

/* Descobrir: a busca do topo busca na seção aberta (atalho ⌘K), o título fica ao lado dela
   e cada vitrine tem um único filtro em chips. */
.ac-search__kbd { flex: none; padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 11px; line-height: 16px; font-weight: 500; color: var(--muted); background: var(--surface); }
.ac-search:focus-within .ac-search__kbd, .ac-search:has(input:not(:placeholder-shown)) .ac-search__kbd { display: none; }
@media (hover: none), (max-width: 900px) { .ac-search__kbd { display: none; } }
.ac-top--busca .ac-search { flex: 1 1 auto; max-width: 520px; }
.ac-bchips--rola { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.ac-bchips--rola::-webkit-scrollbar { display: none; }
.ac-bchips--rola .ac-bchip { flex: none; }
.ac-dbusca { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.ac-dbusca b { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) {
  /* No celular a busca continua visível no topo do Descobrir (é a única busca da página) */
  .ac-top--busca .ac-search { display: flex; height: 32px; padding: 0 10px; min-width: 0; }
  .ac-top--busca .ac-search input { font-size: 16px; } /* 16 px evita o zoom automático do iOS */
  .ac-top--busca .ac-menu:has(.ac-menu__panel--notes) { display: none; }
  .ac-dbusca { font-size: 13px; margin-bottom: 10px; }
}

/* ---------- Equipe (só consulta) ---------- */
.eq-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.eq-main, .eq-side { display: grid; gap: 20px; min-width: 0; }
.eq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.eq-conta { font-size: 13px; color: var(--muted); }
.eq-lista { list-style: none; margin: 0; padding: 0; }
.eq-pessoa { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.eq-pessoa:first-child { border-top: 0; }
.eq-pessoa__txt { display: grid; gap: 2px; min-width: 0; }
.eq-pessoa__txt b { font-weight: 600; color: var(--ink); }
.eq-pessoa__txt small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-pessoa.is-sem .eq-pessoa__txt b { color: var(--ink-2); }
.eq-voce { margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: var(--soft); font-size: 11px; font-weight: 600; color: var(--muted); vertical-align: 1px; }
.eq-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.eq-av--g { width: 56px; height: 56px; }
.eq-av--ini { display: grid; place-items: center; background: var(--colors-brand-100, #d7efe9); color: var(--accent-strong); font-weight: 700; font-size: 14px; }
.eq-av--g.eq-av--ini { font-size: 20px; }
.eq-badge-sem { background: var(--soft); color: var(--muted); }
.eq-pessoa .ac-badge { white-space: nowrap; }
.eq-exec { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.eq-exec b { display: block; color: var(--ink); }
.eq-exec small { font-size: 13px; color: var(--muted); }
.eq-contatos { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.eq-contatos li { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.eq-zap { width: 100%; justify-content: center; }
.eq-ajuda p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.eq-vazio { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 1023px) { .eq-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .eq-pessoa { grid-template-columns: 40px minmax(0, 1fr); }
  .eq-pessoa .ac-badge { grid-column: 2; justify-self: start; }
}
