/* ==========================================================================
 * common.css — Toast / Modal 浮层
 * ========================================================================== */
.dc-toast-box {
  position: fixed; top: 20px; right: 20px; z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.dc-toast {
  display: flex; align-items: center; gap: 8px; min-width: 200px; max-width: 360px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-btn);
  padding: 10px 14px; box-shadow: var(--shadow-modal); font-size: var(--fs-caption);
  transform: translateX(20px); opacity: 0; transition: all var(--dur) var(--ease);
}
.dc-toast.show { transform: translateX(0); opacity: 1; }
.dc-toast-dot { font-weight: bold; }
.dc-toast-success .dc-toast-dot { color: var(--success); }
.dc-toast-error .dc-toast-dot { color: var(--danger); }
.dc-toast-info .dc-toast-dot { color: var(--info); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn var(--dur-fast) var(--ease) both;
}
.modal-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-modal); width: 100%; max-width: 440px;
  animation: slideUp var(--dur) var(--ease) both; max-height: 90vh; overflow: auto;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: var(--fs-h4); font-weight: var(--fw-semi); }
.modal-close { padding: 6px; border-radius: var(--r-sm); color: var(--text-sub); }
.modal-close:hover { background: var(--bg); color: var(--text-main); }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
