/* SupCloud 统一业务弹窗（后台 / 用户控制台共用） */
.sc-modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.sc-modal-mask.on { display: flex; }
.sc-modal {
  background: #fff;
  border-radius: 12px;
  width: min(560px, 96vw);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
.sc-modal.sc-modal-lg { width: min(720px, 96vw); }
.sc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}
.sc-modal-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1c2130;
}
.sc-modal-close {
  border: 0;
  background: #f1f5f9;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sc-modal-close:hover { background: #e2e8f0; color: #0f172a; }
.sc-modal .sc-field { margin-bottom: 0.85rem; }
.sc-modal .sc-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.3rem;
}
.sc-modal .sc-field input,
.sc-modal .sc-field select,
.sc-modal .sc-field textarea {
  width: 100%;
  max-width: none;
  padding: 0.5rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  color: #0f172a;
  background-color: #fff;
  box-sizing: border-box;
}
.sc-modal .sc-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="color"]):not([type="range"]),
.sc-modal .sc-field select:not([multiple]) {
  height: 2.5rem;
  min-height: 2.5rem;
  padding-top: 0;
  padding-bottom: 0;
  line-height: calc(2.5rem - 2px);
}
.sc-modal .sc-field select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 12px;
  cursor: pointer;
}
.sc-modal .sc-field input:focus,
.sc-modal .sc-field select:focus,
.sc-modal .sc-field textarea:focus {
  outline: none;
  border-color: #012478;
  box-shadow: 0 0 0 3px rgba(1, 36, 120, 0.14);
}
.sc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 0.25rem;
}
.sc-modal-hint {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}
body.sc-modal-open { overflow: hidden; }

/* 横向滑动确认（对齐 PostOne） */
.sc-slide-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  box-sizing: border-box;
}
.sc-slide-overlay.active {
  opacity: 1;
  visibility: visible;
}
.sc-slide-dialog {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  transform: scale(0.94) translateY(12px);
  transition: transform .22s ease;
  overflow: hidden;
  box-sizing: border-box;
}
.sc-slide-overlay.active .sc-slide-dialog {
  transform: scale(1) translateY(0);
}
.sc-slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #012478, #0a3a9e);
  color: #fff;
}
.sc-slide-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: #fff;
}
.sc-slide-x {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.sc-slide-x:hover { background: #b91c1c; }
.sc-slide-body {
  padding: 18px 16px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.6;
}
.sc-slide-message { margin: 0; word-break: break-word; }
.sc-slide-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.sc-slide-track {
  position: relative;
  height: 48px;
  margin-top: 14px;
  border-radius: 999px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.sc-slide-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, #fca5a5, #dc2626);
  border-radius: 999px;
  pointer-events: none;
}
.sc-slide-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 36px;
  font-size: 13px;
  font-weight: 600;
  color: #9f1239;
  pointer-events: none;
  letter-spacing: 0.02em;
  z-index: 1;
}
.sc-slide-hint.is-over-fill {
  color: #fff;
  text-shadow: 0 1px 2px rgba(127, 29, 29, 0.35);
}
.sc-slide-knob {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 2;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
}
.sc-slide-knob:active,
.sc-slide-knob.is-dragging { cursor: grabbing; }
.sc-slide-track.is-done .sc-slide-fill {
  background: linear-gradient(90deg, #dc2626, #991b1b);
}
.sc-slide-track.is-done .sc-slide-knob { color: #b91c1c; }

/* Toast（D §12：成功常驻可点关 / 交互关闭；pointer-events 不挡页面） */
.sc-toast {
  position: fixed;
  left: 50%;
  top: 16%;
  transform: translate(-50%, -8px);
  z-index: 10050;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(92vw, 420px);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e8ef;
  box-shadow: 0 12px 32px rgba(1, 36, 120, 0.14);
  color: #1c2130;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sc-toast.active {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
  cursor: pointer;
}
.sc-toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.sc-toast-icon.info { background: #64748b; }
.sc-toast-icon.success { background: #012478; }
.sc-toast-icon.error { background: #dc2626; }
.sc-toast-icon.warning { background: #d97706; }
.sc-toast-text { line-height: 1.45; word-break: break-word; }
