/* 24-dialogs.css — non-blocking alert / confirm / prompt.
   Design language: library/_shared/tokens.css — pure black, copper hairline,
   square corners, monospace micro-labels, inset bezel shadow. */

#ql-dialog-root {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 500);
  pointer-events: none;
}

.ql-dlg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: auto;
  animation: ql-dlg-fade 160ms var(--ease, ease);
}

.ql-dlg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  background: rgba(8, 8, 12, 0.96);
  border: 1px solid var(--border-2, rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow-inset-bezel, inset 0 1px 0 rgba(255, 255, 255, 0.12)),
              0 18px 48px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  animation: ql-dlg-rise 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ql-dlg[hidden], .ql-dlg-overlay[hidden] { display: none !important; }

@keyframes ql-dlg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ql-dlg-rise {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) scale(0.98); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.ql-dlg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.ql-dlg-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--c-ink-muted, #6b6151);
  cursor: pointer;
  font-size: 16px;
  transition: color 150ms, border-color 150ms, background 150ms;
}
.ql-dlg-x:hover {
  color: var(--c-ink, #ece6de);
  border-color: var(--border-2, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.04);
}

.ql-dlg-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.ql-dlg-msg {
  margin: 0;
  font: 500 14px/1.55 var(--body, system-ui, sans-serif);
  color: var(--c-ink, #ece6de);
  white-space: pre-wrap;
  word-break: break-word;
}

.ql-dlg-label {
  font: 700 10px/1.4 var(--mono, monospace);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-muted, #6b6151);
}

.ql-dlg-body textarea.ql-input {
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
}

.ql-dlg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  background: rgba(0, 0, 0, 0.3);
}

/* Device-based UI limitations disabled — all devices get full animations */
