.app-dialog-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.app-dialog-bg.open { display: flex; }
.app-dialog-box {
  background: #fff;
  border-radius: 14px;
  padding: 28px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.app-dialog-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}
.app-dialog-msg {
  font-size: 14px;
  color: #444;
  line-height: 1.65;
  margin-bottom: 18px;
  text-align: center;
}
.app-dialog-extra { text-align: left; margin-bottom: 16px; }
.app-dialog-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.app-dialog-btn {
  min-width: 96px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
}
.app-dialog-btn.primary {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.app-dialog-btn.danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}
.app-dialog-textarea,
.app-dialog-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 8px;
  box-sizing: border-box;
}
.app-dialog-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.app-dialog-preset {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  font-size: 12px;
  cursor: pointer;
  color: #555;
}
.app-dialog-preset:hover { border-color: #86efac; color: #15803d; }
.app-dialog-code-row {
  font-size: 13px;
  color: #666;
  margin-top: 10px;
}
.app-dialog-detail {
  text-align: left;
  font-size: 13px;
  line-height: 1.8;
  background: #f8faf8;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 4px;
}
.app-dialog-detail dt { color: #888; display: inline; }
.app-dialog-detail dd { display: inline; margin: 0 0 0 4px; color: #222; }
