/* ───────────────────────────────────────────
   Poltergeist popup styles
   ─────────────────────────────────────────── */
dialog#poltergeistDialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 600px;
  width: 90vw;
  background: #1a1a1a;
  color: #eee;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] dialog#poltergeistDialog {
  background: #f5f5f5;
  color: #111;
}

dialog#poltergeistDialog::backdrop {
  background: rgba(0,0,0,0.75);
}

.poltergeist-modal-content {
  padding: 1.5rem;
}

.poltergeist-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.poltergeist-modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.poltergeist-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#poltergeistProgress {
  width: 100%;
  height: 1.1rem;
}

#poltergeistLog {
  background: #000;
  color: #0f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  padding: 0.5rem;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
}

html[data-theme="light"] #poltergeistLog {
  background: #111;
}

.poltergeist-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  gap: 0.5rem;
}

.btn-close {
  border-radius: 999px;
  border: none;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  background: #333;
  color: #eee;
  font-size: 0.9rem;
}

html[data-theme="light"] .btn-close {
  background: #ddd;
  color: #111;
}
