/* Análises (Agência): painel, gráficos e relatório (também o link público). */
.an-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.an-card {
  min-width: 0;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 16px);
  background: var(--surface);
}
.an-card > h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.98rem;
}
.an-card > h3 small {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}
.an-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.an-delta {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}
.an-delta.up,
.an-table .up {
  color: #138a52;
}
.an-delta.down,
.an-table .down {
  color: #c2362b;
}
.an-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.an-chart text {
  fill: var(--muted);
  font-size: 15px;
}
.an-grid {
  stroke: var(--line);
  stroke-dasharray: 3 4;
}
.an-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.an-area {
  fill: color-mix(in srgb, var(--accent) 14%, transparent);
}
.an-dot {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2;
}
.an-bar {
  fill: color-mix(in srgb, var(--accent) 75%, var(--surface));
}
.an-empty,
.an-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.an-note {
  margin-bottom: 10px;
}
.an-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.an-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.an-table th,
.an-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}
.an-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.an-table th:first-child,
.an-table td:first-child {
  text-align: left;
}
.an-table td small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}
.an-table tr.is-mine td {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.an-post {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 340px;
  white-space: normal !important;
}
.an-post a,
.an-post > span:last-child {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
}
.an-type {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--subtle);
  font-size: 0.68rem;
  font-weight: 700;
}
.an-type.t-carousel {
  background: var(--lilac, #ece6ff);
}
.an-type.t-reels,
.an-type.t-video {
  background: var(--rose, #ffe3ec);
}
.an-type.t-stories {
  background: var(--peach, #ffe9d6);
}
.an-actions {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}
.an-actions .icon-button {
  width: 30px;
  height: 30px;
}
.an-tip {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.an-tip strong {
  display: block;
  margin-bottom: 2px;
}
.an-tip p {
  margin: 0;
  font-size: 0.84rem;
}
.an-hbars {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.an-hbars li {
  display: grid;
  grid-template-columns: minmax(90px, 1.2fr) 2fr auto;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.an-hbars li small {
  color: var(--muted);
}
.an-hbars i {
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--accent) var(--w), transparent var(--w)),
    var(--subtle);
}
.an-audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.an-audience h4 {
  margin: 0 0 8px;
  font-size: 0.84rem;
}
.an-heat-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
}
.an-heat {
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 0.68rem;
}
.an-heat th {
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  min-width: 14px;
}
.an-heat td {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--subtle);
}
.an-heat td::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: var(--accent);
  opacity: var(--a);
}
.an-times td:first-child {
  font-weight: 600;
}
.an-times td,
.an-times th {
  text-align: left;
}
.an-list {
  display: grid;
  gap: 8px;
}
.an-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.an-row > div {
  flex: 1;
  min-width: 0;
  display: grid;
}
.an-row small {
  color: var(--muted);
}
.an-row .status-pill {
  flex: none;
}
.an-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.an-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  margin: 8px 0;
  padding: 0;
  border: 0;
}
.an-blocks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}
.an-csv-help {
  font-size: 0.8rem;
  color: var(--muted);
}
.an-csv-help code {
  font-size: 0.74rem;
}
/* Relatório */
.an-report-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.an-report-head small {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}
.an-report-head h2 {
  margin: 2px 0;
  font-size: 1.5rem;
}
.an-report-head p {
  margin: 0;
  color: var(--muted);
}
.an-report-foot {
  color: var(--muted);
  font-size: 0.74rem;
  text-align: center;
  margin: 8px 0 16px;
}
.an-note-text {
  margin: 0;
  white-space: pre-wrap;
}
.an-report-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}
body.report-public {
  background: var(--bg);
}
.report-public .an-report {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.an-missing {
  max-width: 520px;
  margin: 10vh auto;
  text-align: center;
}

/* ---------- Cabeçalho, filtros e abas ---------- */
.an-page {
  --an-pad: 32px;
}
@media (max-width: 1023px) {
  .an-page {
    --an-pad: 22px;
  }
}
.an-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 14px;
}
.an-hero small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.an-hero h1 {
  margin: 2px 0 4px;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.an-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.an-client-pick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}
.an-client-pick:hover {
  border-color: var(--ink);
}
.an-client-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: color-mix(in srgb, var(--accent) 70%, var(--ink));
  font-weight: 800;
  font-size: 0.82rem;
}
.an-client-select {
  flex: 1;
  min-width: 0;
  display: grid;
}
.an-client-select small {
  color: var(--muted);
  font-size: 0.7rem;
}
.an-client-pick select,
.an-client-pick select:not([type]) {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-weight: 700;
  font-size: 0.95rem;
  appearance: none;
  cursor: pointer;
}
.an-client-pick select:focus {
  outline: none;
}
.an-client-pick > .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.an-client-pick:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.an-filters {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 calc(var(--an-pad) * -1) 6px;
  padding: 10px var(--an-pad);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.an-nets {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.an-nets::-webkit-scrollbar,
.an-tabs::-webkit-scrollbar {
  display: none;
}
.an-net {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}
.an-net:hover {
  border-color: var(--ink);
}
.an-net.on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}
.an-net-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
  margin-right: 6px;
  vertical-align: 1px;
}
.an-net .an-net-dot {
  margin: 0;
}
.n-instagram {
  --net: #e1306c;
}
.n-facebook {
  --net: #1877f2;
}
.n-linkedin {
  --net: #0a66c2;
}
.n-tiktok {
  --net: #111317;
}
.n-youtube {
  --net: #ff0000;
}
.n-threads {
  --net: #444851;
}
.n-pinterest {
  --net: #e60023;
}
.n-gmn {
  --net: #34a853;
}
.an-net-dot.n-instagram {
  background: radial-gradient(
    circle at 30% 110%,
    #fdcb5c 0 25%,
    #f56040 45%,
    #c13584 70%,
    #833ab4
  );
}
.an-net-dot[class*="n-"]:not(.n-instagram) {
  background: var(--net);
}
.an-net.on .an-net-dot.n-tiktok,
.an-net.on .an-net-dot.n-threads {
  background: var(--on-ink);
}
.an-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.an-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: var(--subtle);
}
.an-seg button {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.an-seg button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.an-range-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.an-range-custom input,
.an-editor-settings input[type="date"] {
  width: auto;
  min-height: 34px;
  padding: 4px 8px;
  font-size: 0.8rem;
}
.an-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.an-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.an-switch span {
  position: relative;
  width: 34px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  background: var(--line-2);
  transition: background 0.15s;
}
.an-switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.an-switch input:checked + span {
  background: var(--accent);
}
.an-switch input:checked + span::after {
  transform: translateX(14px);
}
.an-switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.an-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 8px 0 16px;
  padding: 4px;
  border-radius: 14px;
  background: var(--subtle);
}
.an-tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.an-tab .icon {
  width: 16px;
  height: 16px;
}
.an-tab:hover {
  color: var(--ink);
}
.an-tab.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.an-tab.on .icon {
  color: var(--accent);
}
/* ---------- Indicadores ---------- */
.an-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.an-kpi {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 14px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.an-kpi header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.an-kpi-ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: color-mix(in srgb, var(--accent) 75%, var(--ink));
}
.an-kpi-ico .icon {
  width: 14px;
  height: 14px;
}
.an-kpi small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}
.an-kpi strong {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.an-kpi footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}
.an-kpi em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
}
.an-delta {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--subtle);
}
.an-delta.up {
  background: color-mix(in srgb, #138a52 12%, var(--surface));
}
.an-delta.down {
  background: color-mix(in srgb, #c2362b 10%, var(--surface));
}
.an-spark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 72px;
  height: 26px;
  opacity: 0.85;
}
.an-spark polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.an-insight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--accent) 16%, var(--surface)),
    var(--surface)
  );
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.an-insight > .icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.an-insight p {
  margin: 0;
  font-size: 0.86rem;
}
.an-card > h3 .text-button {
  font-size: 0.78rem;
}
/* ---------- Estados vazios e carregando ---------- */
.an-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 20px;
  border: 1px dashed var(--line-2);
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
}
.an-empty-state h2 {
  margin: 4px 0 0;
  font-size: 1.15rem;
}
.an-empty-state p {
  max-width: 520px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
}
.an-empty-ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent);
}
.an-empty-ico .icon {
  width: 26px;
  height: 26px;
}
.an-start {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 720px;
}
.an-start-card {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.an-start-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.an-start-card .icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.an-start-card small {
  color: var(--muted);
}
.an-loading {
  display: grid;
  gap: 10px;
}
.an-loading span {
  height: 18px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--subtle),
    var(--hover),
    var(--subtle)
  );
  background-size: 200% 100%;
  animation: an-shimmer 1.2s infinite linear;
}
.an-loading span:nth-child(2) {
  width: 80%;
}
.an-loading span:nth-child(3) {
  width: 60%;
}
@keyframes an-shimmer {
  to {
    background-position: -200% 0;
  }
}
/* ---------- Lista de relatórios ---------- */
.an-reports-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.an-reports-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.an-reports-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.an-report-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.an-report-card {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.an-report-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.an-report-open {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  text-align: left;
}
.an-report-open small {
  color: var(--muted);
  font-size: 0.76rem;
}
.an-live {
  color: #138a52;
  font-weight: 700;
}
.an-report-thumb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 10px;
  background: var(--subtle);
}
.an-report-thumb i {
  display: grid;
  place-items: center;
  height: 26px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
}
.an-report-thumb i.full {
  grid-column: 1 / -1;
}
.an-report-thumb .icon {
  width: 13px;
  height: 13px;
}
.an-report-card > footer {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  padding: 4px 8px;
  border-top: 1px solid var(--line);
}
.an-report-blank {
  justify-items: center;
  gap: 6px;
  padding: 28px 16px;
  border-style: dashed;
  text-align: center;
}
.an-report-blank > .icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.an-report-blank small {
  color: var(--muted);
}
/* ---------- Editor de relatório ---------- */
.an-editor-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 8px calc(var(--an-pad) * -1) 14px;
  padding: 10px var(--an-pad);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.an-title-input,
.an-title-input:not([type]) {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  font-size: 1.15rem;
  font-weight: 800;
}
.an-title-input:hover,
.an-title-input:focus {
  border-color: var(--line-2);
  background: var(--surface);
}
.an-editor-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.an-editor-settings select {
  width: auto;
  min-height: 34px;
  padding: 4px 28px 4px 10px;
  font-size: 0.8rem;
}
.an-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.an-editor-actions .subtle-button,
.an-editor-actions .dark-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.82rem;
}
.an-save-state {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}
.an-editor-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.an-editor.is-preview .an-editor-body {
  grid-template-columns: minmax(0, 1fr);
}
.an-editor.is-preview .an-palette {
  display: none;
}
.an-palette {
  position: sticky;
  top: 74px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.an-palette > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}
.an-palette h4 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.an-palette section {
  display: grid;
  gap: 4px;
}
.an-pal-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  cursor: grab;
}
.an-pal-item:hover {
  border-color: var(--line-2);
  background: var(--hover);
}
.an-pal-item:active {
  cursor: grabbing;
}
.an-pal-item > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--subtle);
  color: var(--ink);
}
.an-pal-item .icon {
  width: 15px;
  height: 15px;
}
.an-pal-item b {
  font-size: 0.82rem;
}
.an-pal-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.7rem;
}
.an-palette-sheet {
  position: static;
  max-height: 65vh;
  border: 0;
  padding: 0;
}
.an-add-mobile {
  display: none !important;
}
.an-editor-canvas .an-report {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}
.an-editor.is-dragging .an-canvas {
  outline: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 6px;
  border-radius: 12px;
}
/* ---------- Página do relatório e widgets ---------- */
.an-canvas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 120px;
}
.an-canvas.cols-1 {
  grid-template-columns: minmax(0, 1fr);
}
.an-canvas-empty {
  grid-column: 1 / -1;
  padding: 40px 16px;
  border: 2px dashed var(--line-2);
  border-radius: 14px;
  text-align: center;
}
.an-widget {
  position: relative;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition:
    box-shadow 0.15s,
    opacity 0.15s;
}
.an-widget.is-full,
.an-canvas.cols-1 .an-widget {
  grid-column: 1 / -1;
}
.an-widget.is-hidden {
  opacity: 0.45;
  border-style: dashed;
}
.an-widget.is-dragging {
  opacity: 0.35;
}
.an-widget.an-drop-before::before,
.an-canvas.an-drop-end::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -9px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
}
.an-canvas.an-drop-end {
  position: relative;
}
.an-canvas.an-drop-end::after {
  top: auto;
  bottom: -9px;
}
.an-w-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-right: 4px;
}
.an-w-head h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.95rem;
}
.an-w-ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--subtle);
}
.an-w-ico .icon {
  width: 14px;
  height: 14px;
}
.an-net-tag {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--net, var(--muted)) 12%, var(--surface));
  color: color-mix(in srgb, var(--net, var(--muted)) 85%, var(--ink));
  font-size: 0.7rem;
  font-weight: 700;
}
.an-w-body .an-kpis {
  margin: 0;
}
.an-w-tools {
  position: absolute;
  top: -14px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-lift, 0 8px 18px rgba(0, 0, 0, 0.12));
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.an-widget:hover .an-w-tools,
.an-widget:focus-within .an-w-tools {
  opacity: 1;
  transform: none;
}
.an-w-tools button,
.an-w-grip {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--text);
}
.an-w-tools button:hover:not(:disabled) {
  background: var(--hover);
}
.an-w-tools button[data-action="an-ed-del"]:hover {
  color: #c2362b;
}
.an-w-tools button:disabled {
  opacity: 0.3;
}
.an-w-grip {
  cursor: grab;
  color: var(--muted);
}
.an-w-tools .icon {
  width: 15px;
  height: 15px;
}
.an-editor .an-widget:hover {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}
.an-dynamic {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}
.an-kpi-manual {
  display: grid;
  gap: 2px;
}
.an-kpi-manual small {
  color: var(--muted);
  font-weight: 600;
}
.an-kpi-manual strong {
  font-size: 2rem;
  letter-spacing: -0.02em;
}
.an-kpi-manual em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.8rem;
}
.an-page-break {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.an-page-break::before,
.an-page-break::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--line-2);
}
.w-pageBreak {
  padding: 8px 14px;
  border-style: dashed;
  background: transparent;
}
.report-public .w-pageBreak,
.an-editor.is-preview .w-pageBreak {
  display: none;
}
.an-pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.an-pie-disc {
  position: relative;
  width: 140px;
  height: 140px;
  flex: none;
  border-radius: 50%;
}
.an-pie-disc::after {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: var(--surface);
}
.an-pie-disc span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.an-pie ul {
  flex: 1;
  min-width: 140px;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}
.an-pie li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.an-pie li i {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 3px;
}
.an-pie li span {
  flex: 1;
}
/* ---------- Imagens das publicações, destaque e funil ---------- */
.an-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--subtle);
  color: var(--muted);
}
.an-thumb .icon {
  width: 18px;
  height: 18px;
}
.an-thumb.is-big {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}
.an-thumb.is-big .icon {
  width: 32px;
  height: 32px;
}
.an-posts .an-post {
  max-width: 380px;
  gap: 10px;
}
.an-rank {
  flex: none;
  width: 18px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}
.an-post-text {
  min-width: 0;
  display: grid;
  gap: 3px;
  justify-items: start;
}
.an-post-text a,
.an-post-text > span:last-child {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
}
.an-best-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.an-best {
  display: grid;
  grid-template-columns: minmax(110px, 180px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.an-best-row .an-best {
  grid-template-columns: 110px minmax(0, 1fr);
}
.an-best-info {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.an-best-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.74rem;
}
.an-best-caption {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 0.88rem;
}
.an-best-date {
  color: var(--muted);
  font-size: 0.74rem;
}
.an-best-metric {
  display: grid;
}
.an-best-metric strong {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.an-best-metric span {
  color: var(--muted);
  font-size: 0.76rem;
}
.an-best-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.an-best-stats li {
  display: grid;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--subtle);
}
.an-best-stats small {
  color: var(--muted);
  font-size: 0.66rem;
}
.an-best-stats b {
  font-size: 0.86rem;
}
.an-best .text-button {
  justify-self: start;
}
.an-funnel {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.an-funnel li {
  display: grid;
  justify-items: center;
}
.an-funnel-bar {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  width: var(--w);
  min-width: 170px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  color: var(--ink);
  text-align: center;
}
.an-funnel li:nth-child(2) .an-funnel-bar {
  background: color-mix(in srgb, var(--accent) 36%, var(--surface));
}
.an-funnel li:nth-child(3) .an-funnel-bar {
  background: color-mix(in srgb, var(--accent) 52%, var(--surface));
}
.an-funnel li:nth-child(4) .an-funnel-bar {
  background: color-mix(in srgb, var(--accent) 70%, var(--surface));
  color: #fff;
}
.an-funnel li:nth-child(5) .an-funnel-bar {
  background: var(--accent);
  color: #fff;
}
.an-funnel-bar strong {
  font-size: 1.05rem;
  white-space: nowrap;
}
.an-funnel-bar span {
  font-size: 0.78rem;
  white-space: nowrap;
}
.an-funnel-conv {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 2px 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.an-funnel-conv .icon {
  width: 12px;
  height: 12px;
}
.an-funnel-total {
  margin-top: 10px;
  text-align: center;
}
.an-kpi-group h4 {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.an-subtabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
}
.an-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
}
.an-chip b {
  color: var(--muted);
  font-size: 0.72rem;
}
.an-chip.on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}
.an-chip.on b {
  color: inherit;
  opacity: 0.7;
}
.an-post-form-head {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.an-thumb-pick {
  display: grid;
  gap: 6px;
  justify-items: center;
  cursor: pointer;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}
.an-thumb-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.an-thumb-pick:focus-within .an-thumb {
  outline: 2px solid var(--accent);
}
.an-more-fields {
  margin: 8px 0;
}
.an-more-fields summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 8px;
}
.an-actions label.icon-button {
  cursor: pointer;
}
/* ---------- Telas menores ---------- */
@media (max-width: 1100px) {
  .an-editor-body {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .an-editor-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .an-editor .an-palette:not(.an-palette-sheet) {
    display: none;
  }
  .an-add-mobile {
    display: inline-flex !important;
    position: sticky;
    bottom: calc(var(--bottom-nav, 0px) + 14px);
    margin: 14px auto 0;
    width: 100%;
  }
  .an-w-tools {
    position: static;
    opacity: 1;
    transform: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: -6px -8px 8px;
    box-shadow: none;
    border: 0;
    background: var(--subtle);
  }
  .an-w-grip {
    display: none;
  }
}
@media (max-width: 760px) {
  .an-page {
    --an-pad: 18px;
  }
  .an-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .an-hero h1 {
    font-size: 1.35rem;
  }
  .an-client-pick {
    min-width: 0;
  }
  .an-filters {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .an-nets {
    max-width: 100%;
  }
  .an-editor-bar {
    position: static;
  }
  .an-editor-settings .an-seg {
    display: none;
  }
  .an-period {
    gap: 8px;
  }
  .an-seg {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .an-seg button {
    flex: 1 0 auto;
  }
  .an-tab span {
    display: none;
  }
  .an-tab.on span {
    display: inline;
  }
  .an-grid-2,
  .an-audience,
  .an-canvas {
    grid-template-columns: minmax(0, 1fr);
  }
  .an-widget,
  .an-card {
    padding: 14px;
  }
  .an-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .an-kpi {
    padding: 12px 10px 8px;
  }
  .an-kpi strong {
    font-size: 1.15rem;
  }
  .an-spark {
    display: none;
  }
  .an-start {
    grid-template-columns: minmax(0, 1fr);
  }
  .an-best,
  .an-best-row .an-best {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }
  .an-best-metric strong {
    font-size: 1.3rem;
  }
  .an-post-form-head {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .an-funnel-bar {
    min-width: 0;
    width: max(var(--w), 62%);
    flex-wrap: wrap;
  }
  .an-reports-head {
    flex-direction: column;
    align-items: stretch;
  }
  .an-editor-actions {
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
  }
  .an-editor-actions .an-save-state {
    flex: 1;
  }
  .an-editor-canvas .an-report {
    padding: 10px;
  }
}
/* ---------- PDF: só o relatório ---------- */
@media print {
  body.an-printing * {
    visibility: hidden;
  }
  body.an-printing .an-report,
  body.an-printing .an-report * {
    visibility: visible;
  }
  body.an-printing .an-report {
    position: absolute;
    inset: 0 0 auto 0;
    padding: 0;
    border: 0;
    background: #fff;
  }
  .an-w-tools,
  .an-report-tools,
  .an-widget.is-hidden {
    display: none !important;
  }
  .w-pageBreak {
    visibility: hidden !important;
    break-after: page;
    border: 0;
    padding: 0;
  }
  .an-widget,
  .an-card {
    break-inside: avoid;
  }
}

/* ---------- Métricas no modelo de 01/11/2026 ----------
   Redes em cartões com marca e seguidores, faixa da rede escolhida e oito
   destaques com gráfico de área. Os demais indicadores ficam em
   "Todos os indicadores". */
.an-filters .an-nets {
  flex: 1 1 100%;
  gap: 8px;
  padding: 2px;
}
.an-filters .an-net {
  gap: 10px;
  min-height: 0;
  min-width: 180px;
  padding: 8px 16px 8px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--ink);
  text-align: left;
}
.an-filters .an-net:hover {
  border-color: var(--line-2);
  background: var(--surface);
}
.an-filters .an-net.on {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 18px -10px rgba(21, 22, 26, 0.35);
}
.an-net > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.an-net b {
  font-size: 0.82rem;
  font-weight: 700;
}
.an-net small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}
.brand-mark {
  flex: none;
  display: block;
  border-radius: 50%;
}
.brand-mark.is-empty {
  background: var(--line-2);
}

.an-band {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--r-xl);
  background: var(--band);
  color: #18181b;
}
.an-band > div:first-of-type {
  flex: 1;
  min-width: 0;
}
.an-band h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.an-band p {
  margin: 2px 0 0;
  color: #52525b;
  font-size: 0.8rem;
}
.an-band-total {
  text-align: right;
}
.an-band-total strong {
  display: block;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.an-band-total small {
  color: #52525b;
  font-size: 0.75rem;
}

.an-spot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 4px;
}
.an-spot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 14px 14px 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--subtle);
}
.an-spot-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.an-spot-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--spot) 16%, transparent);
  color: var(--spot);
}
.an-spot-ico .icon {
  width: 17px;
  height: 17px;
}
.an-spot-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.an-spot-delta.up {
  background: var(--mint);
  color: var(--mint-ink);
}
.an-spot-delta.down {
  background: var(--rose);
  color: var(--rose-ink);
}
.an-spot-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.an-spot-card strong {
  margin-top: 2px;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.an-spot-spark {
  display: block;
  width: calc(100% + 28px);
  height: 46px;
  margin: auto -14px 0;
}
.an-spot-card:not(:has(.an-spot-spark)) {
  padding-bottom: 14px;
}

.an-all-kpis {
  margin: 8px 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.an-all-kpis > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.an-all-kpis > summary::-webkit-details-marker {
  display: none;
}
.an-all-kpis > summary > span {
  margin-left: auto;
  display: inline-flex;
  transition: transform 0.2s var(--ease);
}
.an-all-kpis[open] > summary > span {
  transform: rotate(180deg);
}
.an-all-kpis > .an-kpi-group {
  padding: 0 18px 14px;
}

@media (max-width: 1100px) {
  .an-spot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .an-filters .an-net {
    min-width: 0;
    padding-right: 12px;
  }
  .an-band {
    padding: 14px 16px;
    gap: 12px;
  }
  .an-band .brand-mark {
    width: 40px;
    height: 40px;
  }
  .an-band p {
    display: none;
  }
  .an-spot {
    gap: 8px;
  }
  .an-spot-card {
    min-height: 142px;
    padding: 12px 12px 0;
  }
  .an-spot-spark {
    width: calc(100% + 24px);
    margin: auto -12px 0;
    height: 38px;
  }
  .an-spot-card header {
    margin-bottom: 10px;
  }
}
@media (max-width: 360px) {
  .an-spot-card strong {
    font-size: 1.25rem;
  }
  .an-spot-delta {
    padding: 0 6px;
  }
}
:root[data-theme="dark"] .an-band {
  color: #18181b;
}
.an-all-kpis > summary::before {
  display: none;
}
@media (max-width: 600px) {
  /* Com as redes em cartões, a barra presa ocuparia meia tela no celular. */
  .an-filters {
    position: static;
  }
}

/* Gráficos dos destaques se desenham na primeira vez (fase 3). */
.an-play .an-spot-line {
  stroke-dasharray: 1;
  animation: an-draw 1.1s var(--ease) both;
}
.an-play .an-spot-area {
  animation: an-fade 1.1s var(--ease) both;
}
.an-play .an-spot-card:nth-child(2) .an-spot-line,
.an-play .an-spot-card:nth-child(2) .an-spot-area {
  animation-delay: 0.06s;
}
.an-play .an-spot-card:nth-child(3) .an-spot-line,
.an-play .an-spot-card:nth-child(3) .an-spot-area {
  animation-delay: 0.12s;
}
.an-play .an-spot-card:nth-child(4) .an-spot-line,
.an-play .an-spot-card:nth-child(4) .an-spot-area {
  animation-delay: 0.18s;
}
.an-play .an-spot-card:nth-child(n + 5) .an-spot-line,
.an-play .an-spot-card:nth-child(n + 5) .an-spot-area {
  animation-delay: 0.24s;
}
@keyframes an-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes an-fade {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .an-play .an-spot-line,
  .an-play .an-spot-area {
    animation: none;
  }
}

/* ---------- Relatório mensal do cliente (02/11/2026) ----------
   Faixa escura com o título, três números com a variação e os três melhores
   posts numerados; os widgets do relatório seguem abaixo. */
.rp-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 28px 30px;
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(242, 154, 56, 0.28),
      transparent 50%
    ),
    #1b1916;
  color: #fafafa;
}
.rp-chips {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f29a38;
  color: #1f1300;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rp-chip.is-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #e4e4e7;
  letter-spacing: 0;
  text-transform: none;
}
.rp-chip .icon {
  width: 12px;
  height: 12px;
}
.rp-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.rp-hero p {
  margin: 0;
  color: #a1a1aa;
  font-size: 13px;
}
.rp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.rp-stats article {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--subtle);
}
.rp-stats small {
  color: var(--muted);
  font-size: 12px;
}
.rp-stats strong {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.rp-stats em,
.rp-hero em {
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.rp-stats em.up {
  color: #11845e;
}
.rp-stats em.down {
  color: var(--danger-ink);
}
.rp-best-wrap h2 {
  margin: 4px 0 12px;
  font-size: 18px;
}
.rp-best-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.rp-best {
  position: relative;
  margin: 0;
}
.rp-best > span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #18181b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.rp-best img,
.rp-best-text {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
  background: #f29a38;
}
.rp-best-text {
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #1f1300;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.rp-best figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.rp-best figcaption b {
  color: var(--ink);
}
@media (max-width: 640px) {
  .rp-hero {
    padding: 20px;
  }
  .rp-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .rp-best-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media print {
  .rp-hero {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
/* Arquivo CSV: botão no estilo do sistema e o nome do arquivo ao lado. */
.an-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 6px 0 10px;
  padding: 6px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  cursor: pointer;
}
.an-file:hover,
.an-file:focus-within {
  border-color: var(--accent);
}
.an-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.an-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--subtle);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.an-file-btn .icon {
  width: 15px;
  height: 15px;
}
.an-file-name {
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#an-csv-form .field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

/* Ferramentas de análise (V4 5.9). */
.an-tl-out {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.an-tl-out > div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  background: var(--subtle);
}
.an-tl-out span {
  font-size: 12px;
  color: var(--muted);
}
.an-tl-out b {
  font-size: 18px;
  color: var(--ink);
}
.an-tl-lvl.is-ok {
  color: var(--mint-ink) !important;
}
.an-tl-lvl.is-wait {
  color: var(--peach-ink) !important;
}
.an-tl-lvl.is-bad {
  color: var(--danger-ink) !important;
}
.an-tl-win {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.an-tl-win li {
  display: grid;
  gap: 2px;
}
.an-tl-win small {
  color: var(--muted);
}
.an-tl-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.an-tl-periods fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.an-tl-periods legend {
  font-size: 12px;
  color: var(--muted);
  padding: 0 4px;
}
.an-tl-periods input {
  font: inherit;
  padding: 7px 9px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
.an-tl-periods span {
  color: var(--muted);
  font-size: 13px;
}
#an-tl-text {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.an-tl-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
td.an-up {
  color: var(--mint-ink);
  font-weight: 600;
}
td.an-down {
  color: var(--danger-ink);
  font-weight: 600;
}

/* Gráficos redesenhados (07/11/2026): grade discreta, linha de 2px com área
   em degradê, barras finas com ponta arredondada, média tracejada, rosca com
   espaço entre fatias e balão ao passar o mouse. */
.an-chart text { fill: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.an-grid { stroke: var(--line); stroke-dasharray: none; stroke-width: 1; }
.an-grid.is-base { stroke: var(--line-2); }
.an-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.an-area-top { stop-color: var(--accent); stop-opacity: .18; }
.an-area-bot { stop-color: var(--accent); stop-opacity: 0; }
.an-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; }
.an-bar { fill: var(--accent); transition: opacity .15s; }
.an-chart:hover .an-bar { opacity: .45; }
.an-chart .an-hit:hover .an-bar { opacity: 1; }
.an-hit rect { fill: transparent; }
.an-hit line { stroke: var(--line-2); stroke-width: 1; opacity: 0; }
.an-hit circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; opacity: 0; }
.an-hit:hover line, .an-hit:hover circle { opacity: 1; }
.an-avg { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; opacity: .7; }
.an-chart text.an-avg-label { fill: var(--muted); font-size: 11px; }
.an-pop { position: fixed; z-index: 1200; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
.an-pop[hidden] { display: none; }
.an-pie { gap: 24px; }
.an-donut { width: 148px; height: 148px; flex: none; }
.an-donut circle { fill: none; stroke-width: 14; transition: stroke-width .15s; cursor: default; }
.an-donut circle:hover { stroke-width: 18; }
.an-donut-big { font-size: 20px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
.an-donut-small { font-size: 9px; fill: var(--muted); }
.an-pie ul { gap: 0; }
.an-pie li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.an-pie li:last-child { border-bottom: 0; }
.an-pie li i { width: 8px; height: 8px; border-radius: 50%; }
.an-pie li b { font-variant-numeric: tabular-nums; color: var(--ink); }
.an-hbars { gap: 12px; }
.an-hbars i { height: 6px; background: linear-gradient(90deg, var(--accent) var(--w), transparent var(--w)), var(--subtle); }
.an-hbars b { font-variant-numeric: tabular-nums; color: var(--ink); }
/* Funil: barras alinhadas à esquerda, número e nome fora da cor. */
.an-funnel { gap: 2px; }
.an-funnel li { justify-items: stretch; }
.an-funnel-bar { position: relative; justify-content: space-between; width: 100%; min-width: 0; padding: 10px 0; background: none !important; color: var(--ink) !important; text-align: left; border-bottom: 1px solid var(--line); }
.an-funnel-bar::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: var(--w); border-radius: 3px; background: var(--accent); }
.an-funnel-bar strong { order: 2; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.an-funnel-bar span { order: 1; font-size: .84rem; color: var(--text); }
.an-funnel-conv { justify-self: start; margin: 6px 0 0; font-weight: 600; }
.an-funnel-total { text-align: left; }
@media (max-width: 560px) {
  .an-chart text { font-size: 22px; }
  .an-chart text.an-avg-label { font-size: 20px; }
}

/* Importar tudo do Instagram (12/11/2026). */
.an-meta-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.an-meta-row .field {
  min-width: 140px;
}
.an-meta-result {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--subtle);
  font-size: 13px;
}
.an-meta-result p {
  margin: 0;
}
.an-meta-result details {
  margin-top: 6px;
  color: var(--muted);
}
.an-meta-result ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

/* ===== Novo visual das Análises (12/11/2026, referências do usuário) ===== */
/* Indicadores: cartões brancos com borda fina, ícone em chip e número grande. */
.an-spot-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.an-spot-card strong {
  font-weight: 650;
}
/* Cabeçalho do perfil. */
.an-profile-card {
  padding: 18px 20px;
}
.pf-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.pf-pic {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #feda75, #fa7e1e 35%, #d62976 60%, #962fbf 85%, #4f5bd5);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, #d62976 45%, transparent);
}
.pf-head.is-compact .pf-pic {
  width: 56px;
  height: 56px;
  font-size: 20px;
}
.pf-id h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.pf-name {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.pf-bio {
  margin: 6px 0 0;
  max-width: 60ch;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}
.pf-site {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--accent-ink, var(--text));
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.pf-site .icon {
  width: 14px;
  height: 14px;
}
.pf-period {
  display: inline-block;
  margin: 8px 0 0 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 11.5px;
}
.pf-stats {
  display: flex;
  gap: 22px;
  text-align: center;
}
.pf-stats strong {
  display: block;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.pf-stats small {
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 720px) {
  .pf-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .pf-stats {
    grid-column: 1 / -1;
    justify-content: space-around;
  }
}
/* Aviso de período sem publicações. */
.an-insight.is-warn {
  border-color: color-mix(in srgb, var(--peach-ink, #b35c00) 25%, transparent);
  background: var(--peach, #fff3e6);
}
.an-insight.is-warn .text-button {
  margin-left: 4px;
  font-weight: 700;
}
/* Publicações em cartões. */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}
.pc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.pc-cover {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--subtle);
}
.pc-cover .an-thumb,
.pc-cover .pc-img {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}
.pc-cover .an-thumb.is-empty {
  display: grid;
  place-items: center;
}
.pc-cover .an-type {
  position: absolute;
  top: 8px;
  left: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.pc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
}
.pc-body small {
  color: var(--muted);
  font-size: 11.5px;
}
.pc-body p {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12.5px;
  line-height: 1.4;
}
.pc-metrics {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.pc-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pc-metrics .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.pc-foot {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-2);
  color: var(--muted);
  font-size: 11.5px;
}
.pc-foot b {
  color: var(--text);
}
/* Frequência de publicação (colunas por semana). */
.pfq-cols {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  height: 180px;
  padding-top: 6px;
}
.pfq-col {
  display: grid;
  grid-template-rows: 18px 1fr 18px;
  height: 100%;
  text-align: center;
}
.pfq-col b {
  font-size: 12px;
}
.pfq-col span {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 10px;
  background: var(--subtle);
}
.pfq-col i {
  display: block;
  width: 100%;
  height: max(var(--h), 4px);
  border-radius: 10px;
  background: var(--accent);
}
.pfq-col small {
  color: var(--muted);
  font-size: 10.5px;
}
/* Público: resumo, barra de gênero, colunas de idade e ranking de cidades. */
.aud-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--subtle);
}
.aud-sum-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
}
.aud-summary p {
  flex: 1;
  margin: 0;
  min-width: 220px;
  font-size: 14px;
}
.aud-summary small {
  color: var(--muted);
  font-size: 12px;
}
.aud-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 12px;
}
.aud-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.aud-card h4 {
  margin: 0 0 12px;
  font-size: 13px;
}
.aud-stack {
  display: flex;
  height: 14px;
  overflow: hidden;
  gap: 2px;
  border-radius: 999px;
  background: var(--subtle);
}
.aud-stack i {
  width: var(--w);
}
.g-f {
  background: #d62976;
}
.g-m {
  background: #3d74d6;
}
.g-o {
  background: #b9c0cc;
}
.aud-legend {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.aud-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aud-legend li i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.aud-legend b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.aud-cols {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  height: 170px;
}
.aud-col {
  display: grid;
  grid-template-rows: 18px 1fr 18px;
  text-align: center;
}
.aud-col b {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.aud-col span {
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  background: var(--subtle);
}
.aud-col i {
  width: 100%;
  height: max(var(--h), 3px);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}
.aud-col.is-top i {
  background: var(--accent);
}
.aud-col small {
  color: var(--muted);
  font-size: 10.5px;
}
.aud-rank {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.aud-rank li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 70px 46px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.aud-pos {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--subtle);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.aud-rank li:first-child .aud-pos {
  background: var(--accent);
  color: #fff;
}
.aud-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aud-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--subtle);
}
.aud-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.aud-rank b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .aud-grid {
    grid-template-columns: 1fr;
  }
}
/* Topo do relatório: estilos escolhidos no editor. */
.rp-hero {
  --rp-c: var(--rp-color, #6b4fd8);
}
.rp-hero.is-gradient {
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--rp-c) 75%, #fff) 0%, transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--rp-c) 70%, #000) 0%, var(--rp-c) 100%);
  color: #fff;
}
.rp-hero.is-accent {
  background: var(--rp-c);
  color: #fff;
}
.rp-hero.is-light {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--rp-c) 18%, transparent), transparent 55%),
    var(--surface);
  color: var(--text);
}
.rp-hero.is-light p {
  color: var(--muted);
}
.rp-hero.is-gradient .rp-chip,
.rp-hero.is-accent .rp-chip {
  background: rgba(255, 255, 255, 0.92);
  color: color-mix(in srgb, var(--rp-c) 70%, #000);
}
.rp-hero.is-light .rp-chip {
  background: var(--rp-c);
  color: #fff;
}
.rp-hero .rp-chip.is-ghost {
  background: transparent;
  color: inherit;
}
.rp-logo {
  max-height: 34px;
  max-width: 140px;
  margin-left: auto;
  object-fit: contain;
}
.rp-chips:has(.rp-logo) .rp-chip.is-ghost {
  margin-left: 0;
}
/* Formulário do topo. */
.an-hero-form {
  display: grid;
  gap: 12px;
}
.an-hero-styles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.an-hero-styles legend,
.an-hero-show legend {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}
.an-hero-style {
  position: relative;
  display: block;
  min-width: 0;
}
.an-hero-style input {
  position: absolute;
  opacity: 0;
}
.an-hero-style span {
  display: grid;
  flex: 1;
  width: 100%;
  height: 100%;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}
.an-hero-style i {
  display: block;
  height: 34px;
  border-radius: 8px;
}
.s-dark i {
  background: #1b1916;
}
.s-gradient i {
  background: linear-gradient(135deg, #3a2a7a, #6b4fd8);
}
.s-accent i {
  background: #6b4fd8;
}
.s-light i {
  border: 1px solid var(--line);
  background: #fff;
}
.an-hero-style input:checked + span {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}
.an-hero-style input:focus-visible + span {
  outline: 2px solid var(--accent);
}
.an-hero-color input[type="color"] {
  width: 64px;
  height: 36px;
  padding: 2px;
}
.an-hero-show {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}
.an-hero-show label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
@media (max-width: 520px) {
  .an-hero-styles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Link próprio do relatório. */
.an-share-slug {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
}
.an-share-slug .field {
  flex: 1;
  min-width: 240px;
}
.an-slug-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
}
.an-slug-input em {
  padding: 0 4px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}
.an-slug-input input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  box-shadow: none !important;
}
.an-share-slug .form-error {
  flex-basis: 100%;
}
.an-share-note {
  margin-top: 10px;
  font-size: 12.5px;
}
/* Site do relatório para o cliente. */
.report-public .an-report {
  max-width: none;
  padding: 0;
}
.rs-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px max(16px, calc((100vw - 1040px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
}
.rs-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.rs-brand img {
  max-height: 30px;
  max-width: 120px;
  object-fit: contain;
}
.rs-meta {
  display: grid;
  margin-left: auto;
  text-align: right;
}
.rs-meta small {
  color: var(--muted);
  font-size: 11.5px;
}
.rs-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
@media (max-width: 560px) {
  .rs-meta {
    display: none;
  }
  .rs-bar .dark-button {
    margin-left: auto;
  }
}
@media print {
  .rs-bar {
    display: none;
  }
}
/* Widgets do relatório: cabeçalho mais limpo. */
.an-widget {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.an-w-head h3 {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.rp-hero.is-gradient p,
.rp-hero.is-accent p {
  color: rgba(255, 255, 255, 0.85);
}

/* Melhores horários (12/11/2026, novo visual). */
.bt-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.bt-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.bt-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.bt-ico .icon {
  width: 17px;
  height: 17px;
}
.bt-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bt-card strong {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.bt-card em {
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
}
.bt-win {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bt-win li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.bt-win li > div {
  display: grid;
  gap: 4px;
}
.bt-win small {
  color: var(--muted);
  font-size: 12.5px;
}
.bt-medal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--subtle);
  font-weight: 800;
}
.bt-medal.m1 {
  background: #f6c344;
  color: #4a3500;
}
.bt-medal.m2 {
  background: #d7dbe2;
  color: #2f3540;
}
.bt-medal.m3 {
  background: #e3a576;
  color: #4a2507;
}
.bt-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--subtle);
}
.bt-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.bt-heat {
  display: grid;
  gap: 4px;
}
.bt-row {
  display: grid;
  grid-template-columns: 38px repeat(8, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
}
.bt-head span {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.bt-day {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.bt-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1.4 / 1;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) calc(var(--a) * 100%), var(--subtle));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.bt-cell.is-empty {
  background: var(--subtle);
}
.bt-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
}
.bt-legend i {
  width: 90px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--subtle), var(--accent));
}
.bt-legend small {
  flex-basis: 100%;
}
.bt-days {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bt-days li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.bt-days li:last-child {
  border-bottom: 0;
}
.bt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bt-chips i,
.bt-key i {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.bt-chips .icon,
.bt-key .icon {
  width: 13px;
  height: 13px;
}
.is-best {
  background: var(--mint);
  color: var(--mint-ink);
}
.is-avoid {
  background: var(--subtle);
  color: var(--muted);
  text-decoration: line-through;
}
.is-none {
  color: var(--muted);
}
.bt-key {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
}
.bt-grid {
  align-items: start;
}
@media (max-width: 720px) {
  .bt-cards {
    grid-template-columns: 1fr;
  }
}
/* Ferramentas › atalho do relatório. */
.an-tl-shortcut {
  display: grid;
  align-content: start;
  gap: 8px;
}
.an-tl-sc-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.an-tl-sc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.an-tl-sc-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.an-tl-sc-hint .icon {
  width: 14px;
  height: 14px;
}
