/*! ui/modal.css —— 弹窗与确认框（浮层只选一种深度语言：柔和浮起，不加描边） */
/* ---------- 弹窗 ---------- */
.modal, .confirm {
  position: fixed; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 22, .36);
  z-index: 50;
  padding: 20px;
}

.modal.on, .confirm.on { display: flex; }

/*
 * 浮层只选一种深度语言：柔和的浮起，不加 1px 描边。
 * 「发丝边框 + 大范围弥散阴影」是典型的生成式 UI 签名，两者同用等于没做选择。
 */
.modal-box {
  background: var(--card);
  border-radius: var(--r-modal);
  width: 532px;
  max-width: 100%;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-3);
  overflow: hidden;
  animation: modalIn .26s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
}

.confirm-box {
  background: var(--card);
  border-radius: var(--r-modal);
  width: 404px;
  max-width: 100%;
  padding: 22px;
  box-shadow: var(--sh-3);
  animation: modalIn .26s var(--ease);
}

.confirm-box h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.confirm-box p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.confirm-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--card-2);
  font-weight: 600;
  flex: 0 0 auto;
}

.modal-body { padding: 20px; overflow: auto; }
.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--card-2);
  display: flex; gap: 8px; justify-content: flex-end;
  flex: 0 0 auto;
}
