/* Profiler Modal — matches app dark theme, clears fixed navbar (72px) */

#profilerModal .modal-dialog {
  --profiler-modal-top-offset: calc(72px + env(safe-area-inset-top));
  margin-top: calc(var(--profiler-modal-top-offset) + 0.5rem);
  margin-bottom: 0.5rem;
}

/* Override modal-dialog-centered so margin-top positions from the top */
#profilerModal .modal-dialog.modal-dialog-centered {
  align-items: flex-start;
  min-height: auto;
}

#profilerModal .modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-xl);
  max-height: calc(100dvh - var(--profiler-modal-top-offset) - 1.5rem);
}

#profilerModal .modal-header {
  border-bottom-color: var(--border-primary);
}

#profilerModal .list-group-item {
  background: transparent;
  border-color: var(--border-primary);
  color: var(--text-primary);
}

#profilerModal .border-bottom {
  border-color: var(--border-primary) !important;
}
