#toast.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  background: rgba(0,0,0,.82);
  color: #fff;
  border-radius: 8px;
  z-index: 12000;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: toastSlideF .3s ease;
}
@keyframes toastSlideF {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
#toast.toast.ok { background: linear-gradient(135deg, #34a358, #2f8545); }
#toast.toast.err, #toast.toast-error { background: linear-gradient(135deg, #d33524, #c92b1b); }
#toast.toast.warn { background: linear-gradient(135deg, #e89517, #c97a1b); }

.ui-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: uiFade .2s ease;
}
@keyframes uiFade { from { opacity: 0; } to { opacity: 1; } }
.ui-modal-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: uiScale .25s ease;
  border-top: 3px solid #c92b1b;
}
@keyframes uiScale {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
.ui-modal-body { padding: 22px; overflow-y: auto; flex: 1; }
.ui-modal-foot {
  padding: 14px 22px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafafa;
}
.ui-modal-foot .ui-btn {
  padding: 7px 18px;
  border: 1px solid #e0d2b0;
  border-radius: 6px;
  background: #fff;
  color: #555;
  cursor: pointer;
  font-size: 13px;
  transition: all .18s;
  user-select: none;
}
.ui-modal-foot .ui-btn:hover { border-color: #c92b1b; color: #c92b1b; }
.ui-modal-foot .ui-btn-primary {
  background: linear-gradient(135deg, #d33524, #c92b1b);
  color: #fff;
  border-color: #c92b1b;
}
.ui-modal-foot .ui-btn-primary:hover {
  background: linear-gradient(135deg, #c02817, #b02516);
  color: #fff;
  border-color: #b02516;
}

.ui-modal-alert .ui-modal-box, .ui-modal-confirm .ui-modal-box, .ui-modal-prompt .ui-modal-box { min-width: 360px; max-width: 460px; }
.ui-modal-alert .ui-modal-body, .ui-modal-confirm .ui-modal-body {
  padding: 24px 22px;
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: center;
}
.ui-modal-icon {
  display: inline-block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 52px;
  text-align: center;
  font-weight: bold;
  color: #fff;
}
.ui-modal-icon.info     { background: linear-gradient(135deg, #3c8bdc, #2173c5); }
.ui-modal-icon.success  { background: linear-gradient(135deg, #3cb36b, #2f8545); }
.ui-modal-icon.warning  { background: linear-gradient(135deg, #f0ad4e, #c97a1b); }
.ui-modal-icon.error    { background: linear-gradient(135deg, #e85142, #c92b1b); }
.ui-modal-icon.question { background: linear-gradient(135deg, #8e5fe0, #6b3cc5); }

.ui-prompt-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: all .18s;
  box-sizing: border-box;
}
.ui-prompt-input:focus { border-color: #c92b1b; box-shadow: 0 0 0 3px rgba(201,43,27,.1); }
