.an-frame {
  flex: 0 0 auto;
  min-height: 0;
  margin-bottom: 1.5rem;
  background: var(--color-neutral-off-white);
}

.an-frame > .mv-frame-header {
  border-bottom: 1px solid rgba(var(--black-color-rgb), 0.06);
  margin-bottom: 1.25rem;
}

.an-frame > .mv-frame-header .mv-frame-header-top {
  align-items: center;
}

.an-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.an-panel > *:nth-child(1) {
  animation: anFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.an-panel > *:nth-child(2) {
  animation: anFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.an-panel > *:nth-child(3) {
  animation: anFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.an-panel > *:nth-child(4) {
  animation: anFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.an-panel > *:nth-child(5) {
  animation: anFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.an-panel > *:nth-child(6) {
  animation: anFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.an-panel > *:nth-child(7) {
  animation: anFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.an-panel > *:nth-child(8) {
  animation: anFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.an-panel > *:nth-child(9) {
  animation: anFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.an-panel > *:nth-child(10) {
  animation: anFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.an-panel > *:nth-child(11) {
  animation: anFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}
.an-panel > *:nth-child(12) {
  animation: anFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

@keyframes anFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.an-time-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-neutral-off-white);
  border: 1px solid rgba(var(--black-color-rgb), 0.08);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
}

.an-card {
  background: var(--white-color);
  border: 1px solid rgba(var(--black-color-rgb), 0.1);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(var(--black-color-rgb), 0.04);
}
.an-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--black-color-rgb), 0.08);
}
.an-card-title {
  color: var(--text-color);
  font-weight: 600;
  font-size: var(--an-heading);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.an-card-sub {
  font-size: var(--an-subhead);
  color: var(--color-gray-400);
  margin-top: 3px;
}
.an-icon-box {
  padding: 0.5rem;
  background: rgba(var(--black-color-rgb), 0.05);
  border-radius: 0.5rem;
}
.an-divider {
  border-top: 1px solid rgba(var(--black-color-rgb), 0.08);
}
.an-mini-stat {
  padding: 0.75rem;
  text-align: center;
}
.an-mini-label {
  font-size: var(--an-text-sm);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.an-mini-val {
  font-size: var(--an-text-base);
  font-weight: 600;
  color: var(--text-color);
  font-family: "JetBrains Mono", monospace;
}

.an-neon-line {
  filter: drop-shadow(0 0 4px rgba(var(--primary-color-rgb), 0.4));
}

/* Analytics time-range pills — the "active" pill has a distinctive
   white card look (vs the generic .v-action-btn--active boost). Visuals
   come from ActionButton (.v-action-btn--secondary, --size-sm). */
.an-range-btn.v-action-btn {
  font-size: var(--an-range-btn);
  background: transparent;
  border-color: transparent;
  color: var(--color-gray-400);
}
.an-range-btn.v-action-btn:hover {
  background: transparent;
  border-color: transparent;
  color: var(--color-gray-700);
}
.an-range-btn.v-action-btn--active {
  color: var(--text-color);
  background: var(--color-gray-100);
  border-color: rgba(var(--black-color-rgb), 0.08);
  box-shadow: 0 1px 2px rgba(var(--black-color-rgb), 0.06);
}

.an-glass {
  background: rgba(var(--white-color-rgb), 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--black-color-rgb), 0.1);
}

.an-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 0.625rem 0.4375rem 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  cursor: pointer;
  font-size: var(--an-text-sm);
  font-weight: 500;
  color: var(--color-gray-500);
  letter-spacing: -0.005em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.an-active-toggle:hover {
  color: var(--text-color);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.an-active-toggle:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(99, 234, 113, 0.25),
    0 1px 2px rgba(15, 23, 42, 0.04);
}
.an-active-toggle:active {
  transform: scale(0.98);
}
.an-active-toggle.is-on {
  color: #1a1a2e;
  background: linear-gradient(
    180deg,
    rgba(99, 234, 113, 0.14),
    rgba(99, 234, 113, 0.06)
  );
  border-color: rgba(99, 234, 113, 0.45);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 0 0 1px rgba(99, 234, 113, 0.18);
}
.an-active-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--color-gray-500);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
  flex: 0 0 auto;
}
.an-active-toggle.is-on .an-active-toggle-icon {
  background: #ffffff;
  color: #16a34a;
  box-shadow:
    0 0 0 1px rgba(99, 234, 113, 0.45),
    0 0 10px rgba(99, 234, 113, 0.3);
}
.an-active-toggle-label {
  white-space: nowrap;
}
.an-active-toggle-track {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: #e2e8f0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  flex: 0 0 auto;
}
.an-active-toggle-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s ease;
}
.an-active-toggle.is-on .an-active-toggle-track {
  background: linear-gradient(180deg, #63ea71, #2dd4a4);
  border-color: rgba(99, 234, 113, 0.6);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 12px rgba(99, 234, 113, 0.45);
}
.an-active-toggle.is-on .an-active-toggle-thumb {
  transform: translateX(12px);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(99, 234, 113, 0.35);
}

.an-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
}
.an-slider::-webkit-slider-runnable-track {
  background: var(--color-gray-200);
  height: 4px;
  border-radius: 2px;
}
.an-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  margin-top: -5px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.4);
}

.an-bp-label {
  transition:
    fill 0.25s ease,
    font-weight 0.25s ease;
}
.an-bp-box {
  transition:
    fill 0.25s ease,
    stroke-width 0.25s ease,
    stroke-opacity 0.25s ease,
    filter 0.3s ease;
}
.an-bp-whisker {
  transition: stroke 0.25s ease;
}
.an-bp-outlier {
  transition:
    opacity 0.25s ease,
    r 0.25s ease,
    filter 0.3s ease;
}
.an-bp-row {
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
#an-bp-scanner {
  transition:
    opacity 0.2s ease,
    x1 0.06s linear,
    x2 0.06s linear;
}
#an-box-tooltip {
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.an-box-tip-hidden {
  transform: translateX(2.5rem);
  opacity: 0;
  pointer-events: none;
}
.an-box-tip-visible {
  transform: translateX(0);
  opacity: 1;
}

.an-sankey-path {
  transition:
    fill-opacity 0.3s ease,
    stroke 0.3s ease;
  cursor: pointer;
}
.an-sankey-dimmed {
  fill-opacity: 0.05 !important;
}
.an-sankey-highlighted {
  fill-opacity: 0.8 !important;
  stroke: var(--text-color);
  stroke-width: 1px;
}
#an-flow-tooltip {
  pointer-events: none;
  position: absolute;
  background: rgba(var(--white-color-rgb), 0.95);
  border: 1px solid rgba(var(--black-color-rgb), 0.1);
  color: var(--text-color);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: var(--an-label);
  box-shadow: 0 10px 15px -3px rgba(var(--black-color-rgb), 0.1);
  display: none;
  z-index: 100;
  font-family: "JetBrains Mono", monospace;
  transition:
    left 0.08s ease,
    top 0.08s ease,
    opacity 0.2s ease;
}

.an-pyr-gold {
  background: linear-gradient(
    180deg,
    rgba(var(--primary-color-rgb), 0.12) 0%,
    rgba(var(--primary-color-rgb), 0.04) 100%
  );
  box-shadow:
    0 0 0 1px rgba(var(--primary-color-rgb), 0.25),
    inset 0 1px 0 rgba(var(--primary-color-rgb), 0.15);
}
.an-pyr-neutral {
  background: linear-gradient(
    180deg,
    rgba(var(--black-color-rgb), 0.06) 0%,
    rgba(var(--black-color-rgb), 0.02) 100%
  );
  box-shadow:
    0 0 0 1px rgba(var(--black-color-rgb), 0.1),
    inset 0 1px 0 rgba(var(--black-color-rgb), 0.06);
}

.an-mono {
  font-family: "JetBrains Mono", monospace;
}

.apexcharts-tooltip {
  transition:
    opacity 0.15s ease,
    transform 0.15s ease !important;
}
.apexcharts-xaxistooltip {
  transition:
    opacity 0.15s ease,
    left 0.08s ease !important;
}
.apexcharts-marker {
  transition: all 0.2s ease !important;
}

#an-bubble-tooltip {
  background: rgba(var(--white-color-rgb), 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--black-color-rgb), 0.1);
}

.an-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: var(--an-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  background: rgba(var(--primary-color-rgb), 0.1);
  border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

.an-heatmap-cell {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.an-heatmap-cell:hover {
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(var(--primary-color-rgb), 0.3);
  z-index: 1;
  position: relative;
}

.an-dot-pattern {
  background-image: radial-gradient(rgba(var(--black-color-rgb), 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.an-grid-pattern {
  background-image:
    linear-gradient(rgba(var(--black-color-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--black-color-rgb), 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.an-jobs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.an-jobs-card {
  background: #f8f9fa;
  border: 1px solid rgba(var(--black-color-rgb), 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}
.an-jobs-card:hover {
  background: #f1f3f5;
  border-color: rgba(var(--black-color-rgb), 0.14);
}
.an-jobs-card:focus-visible {
  outline: 2px solid rgba(var(--primary-color-rgb), 0.5);
  outline-offset: 2px;
}
.an-jobs-card-titlewrap {
  min-width: 0;
  flex: 1;
}
.an-jobs-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--an-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
}
.an-jobs-card-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.an-jobs-card-title {
  margin-top: 0.15rem;
  font-size: var(--an-text-base);
  font-weight: 600;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.an-jobs-card-views {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-shrink: 0;
}
.an-jobs-card-views-val {
  font-size: var(--an-text-base);
  font-weight: 700;
}
.an-jobs-card-views-label {
  font-size: var(--an-text-xs);
  color: #888;
  font-weight: 500;
}
.an-jobs-card-chev {
  color: #94a3b8;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .an-jobs-cards {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
 * Hero sidebar — Stats and Reports filters + bottom action
 * ========================================================================== */

.an-hero-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.25rem;
}

.an-hero-filter-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.an-hero-filter-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-color-subtle);
}

/* Time range segmented bar -------------------------------------------------*/
.an-time-range {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(var(--black-color-rgb), 0.04);
  border: 1px solid rgba(var(--black-color-rgb), 0.08);
  border-radius: 0.65rem;
  padding: 3px;
  width: 100%;
}

.an-time-range .an-range-btn {
  width: 100%;
  text-align: center;
  padding: 0.4rem 0;
  font-size: 0.78rem;
  border-radius: 0.45rem;
}

/* Job dropdown (msg-filter inspiration) ------------------------------------*/
.an-filter {
  position: relative;
  min-width: 0;
}

/* Analytics filter dropdown trigger — inherits layout from ActionButton
   (.v-action-btn--secondary, --size-sm, --inline). The label needs to
   flex-fill so long titles ellipsize cleanly. */
.an-filter-btn.v-action-btn {
  width: 100%;
  background: var(--white-color);
  color: var(--color-gray-900);
  border-color: rgba(var(--black-color-rgb), 0.08);
  font-size: 0.82rem;
  font-weight: 500;
}
.an-filter-btn.v-action-btn:hover {
  border-color: rgba(var(--primary-color-rgb), 0.35);
  background: rgba(var(--primary-color-rgb), 0.04);
}
.an-filter[data-open="true"] .an-filter-btn.v-action-btn {
  border-color: rgba(var(--primary-color-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}
.an-filter-btn .v-action-btn-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  text-align: left;
}
.an-filter-btn .v-action-btn-icon--trailing iconify-icon {
  font-size: 0.95rem;
  color: var(--color-gray-400);
  transition: transform 0.2s ease;
}
.an-filter[data-open="true"] .an-filter-btn .v-action-btn-icon--trailing iconify-icon {
  transform: rotate(180deg);
}

.an-filter-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--white-color);
  border: 1px solid rgba(var(--black-color-rgb), 0.08);
  border-radius: 0.65rem;
  box-shadow:
    0 8px 24px rgba(var(--black-color-rgb), 0.12),
    0 2px 6px rgba(var(--black-color-rgb), 0.04);
  padding: 0.3rem;
  display: none;
  flex-direction: column;
  gap: 1px;
  max-height: 280px;
  overflow-y: auto;
}

.an-filter[data-open="true"] .an-filter-menu {
  display: flex;
  animation: anFilterDropdownIn 0.16s ease;
}

@keyframes anFilterDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.an-filter-option {
  all: unset;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.45rem;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-gray-700);
  transition: background 0.15s ease;
  box-sizing: border-box;
  min-width: 0;
}

.an-filter-option:hover {
  background: rgba(var(--black-color-rgb), 0.04);
}

.an-filter-option.is-active {
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--color-brand-green-ink-2, #16a34a);
  font-weight: 600;
}

.an-filter-option-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.an-filter-option-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.an-filter-option-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  color: var(--color-gray-400);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.an-filter-option-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  color: var(--color-gray-500);
  background: rgba(var(--black-color-rgb), 0.04);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
}

.an-filter-option.is-active .an-filter-option-count {
  color: var(--color-brand-green-ink-2, #16a34a);
  background: rgba(var(--primary-color-rgb), 0.18);
}


/* Bottom-pinned actions ----------------------------------------------------*/
.an-hero-actions {
  margin-top: auto;
  padding-top: 1.25rem;
}

.an-hero-actions-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.an-hero-actions .v-action-btn.an-download-btn {
  width: 100%;
  flex: 1 1 auto;
}

