/* Diálogos (cuenta, editor) y avisos */
.dlg-back {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 6, 20, .55);
  display: grid; place-items: center; padding: 16px;
}
.dlg {
  width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--raised); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.dlg.wide { max-width: 760px; }
.dlg .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg h3 { font-size: 22px; }

.toasts {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast { background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 500; box-shadow: var(--shadow); animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.dlg-actions.sticky { position: sticky; bottom: -24px; background: var(--raised); padding-block: 14px; margin-bottom: -24px; border-top: 1px solid var(--line); }
.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg-tabs button { border: 0; background: none; border-radius: 999px; padding: 8px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg-tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }

/* Vista previa del editor */
.preview-card { max-width: 300px; }
.preview-card .ecard { cursor: default; }
.preview-detail { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.preview-detail .ev-banner { min-height: 220px; padding-block: 40px 24px; }
.preview-detail .ev-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 20px; }
