.po-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(20, 20, 19, 0.55);
  backdrop-filter: blur(3px);
  animation: po-dialog-fade 0.18s ease;
}

.po-dialog-root[hidden] {
  display: none;
}

@keyframes po-dialog-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.po-dialog {
  width: min(420px, 94vw);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(28, 28, 26, 0.22);
  border: 1px solid var(--border, #e5e0d6);
  overflow: hidden;
  animation: po-dialog-pop 0.2s ease;
}

@keyframes po-dialog-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.po-dialog__head {
  padding: 1.1rem 1.25rem 0.5rem;
  border-bottom: 1px solid #f0ebe3;
}

.po-dialog__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.15rem;
  color: var(--text, #1a1a18);
  margin: 0;
}

.po-dialog__body {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted, #5c5a54);
  white-space: pre-line;
}

.po-dialog__input {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border, #e5e0d6);
  border-radius: 8px;
}

.po-dialog__input:focus {
  outline: 2px solid rgba(180, 83, 9, 0.35);
  border-color: var(--accent, #b45309);
}

.po-dialog__body p {
  margin: 0;
}

.po-dialog__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0 1.25rem 1.25rem;
}

.po-dialog__actions .btn {
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
}