/* ConfirmDialog — 通用居中确认 dialog（设计图：单删/批删/改生辰确认） */

#confirm-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#confirm-dialog-root[hidden] { display: none; }

.confirm-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.confirm-dialog__panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.confirm-dialog__title {
  font-size: 17px;
  font-weight: 700;
  color: #2c2620;
  text-align: center;
  margin-bottom: 16px;
}

.confirm-dialog__body {
  background: #FAF5EB;
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #5a4a3a;
  line-height: 1.7;
}
.confirm-dialog__body-section {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.confirm-dialog__body-section-icon {
  display: inline-flex;
  width: 16px;
  flex-shrink: 0;
  color: #b08842;
}
.confirm-dialog__body-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.confirm-dialog__body-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}
.confirm-dialog__body-heading {
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 13px;
  color: #8a7560;
}
.confirm-dialog__body-divider {
  height: 1px;
  background: rgba(176, 136, 66, 0.2);
  margin: 10px 0;
}
.confirm-dialog__rel-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  margin-left: 4px;
  vertical-align: middle;
}
.confirm-dialog__rel-tag--romance { background: #f4d6e3; color: #a0356b; }
.confirm-dialog__rel-tag--parent  { background: #d6e8f4; color: #2a5b8c; }
.confirm-dialog__rel-tag--child   { background: #d6e8f4; color: #2a5b8c; }
.confirm-dialog__rel-tag--friendship { background: #dff0d8; color: #3c763d; }
.confirm-dialog__rel-tag--business   { background: #e8e0d0; color: #6b5832; }

.confirm-dialog__warning {
  margin-top: 8px;
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
}

.confirm-dialog__footer {
  display: flex;
  gap: 12px;
}
.confirm-dialog__btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
}
.confirm-dialog__btn:active { transform: scale(0.98); }
.confirm-dialog__btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.confirm-dialog__btn.is-loading::after {
  content: '...';
  display: inline-block;
  margin-left: 4px;
}
.confirm-dialog__btn--cancel {
  background: #fff;
  color: #5a4a3a;
  border: 1px solid #d4c4a8;
}
.confirm-dialog__btn--danger {
  background: #c0392b;
  color: #fff;
}
.confirm-dialog__btn--primary {
  background: #b08842;
  color: #fff;
}

/* ============ archive-edit 页样式 ============ */
.archive-edit { padding: 16px; max-width: 480px; margin: 0 auto; }
.archive-nav__save {
  background: none; border: none; color: #b08842; font-size: 15px; font-weight: 600; cursor: pointer; padding: 8px;
}
.archive-edit__form { display: flex; flex-direction: column; gap: 18px; }
.archive-edit__field { display: flex; flex-direction: column; gap: 6px; }
.archive-edit__label { font-size: 13px; color: #8a7560; font-weight: 600; }
.archive-edit__field input[type="text"],
.archive-edit__field input[type="number"],
.archive-edit__field select {
  padding: 12px 14px; border: 1px solid #d4c4a8; border-radius: 10px; font-size: 15px; background: #fff; color: #2c2620;
}
.archive-edit__gender-row, .archive-edit__lunar-row { display: flex; gap: 10px; }
.archive-edit__gender-pill, .archive-edit__lunar-pill {
  flex: 1; padding: 10px 0; border: 1px solid #d4c4a8; border-radius: 10px; background: #fff; color: #5a4a3a;
  font-size: 14px; cursor: pointer;
}
.archive-edit__gender-pill.is-active, .archive-edit__lunar-pill.is-active {
  background: #b08842; color: #fff; border-color: #b08842;
}
.archive-edit__date-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 6px; }
.archive-edit__leap-row, .archive-edit__hour-unknown-row {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: #5a4a3a; margin-top: 4px;
}
