:root {
  --primary: #2AB894;
  --primary-alt: #1E9A7C;
}

html.is-modal-open,
html.is-modal-open body {
  overflow: hidden;
  overscroll-behavior: none;
}
#siteUiModal { z-index: 10020; }
.site-ui-modal--layer-2 { z-index: 10001; }
.site-ui-modal--layer-3 { z-index: 10002; }
.site-ui-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.site-ui-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-ui-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
}
.site-ui-modal__card {
  position: relative;
  width: min(400px, 100%);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e2da;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.site-ui-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-alt));
}
.site-ui-modal__title { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; }
.site-ui-modal__close {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: #fff; cursor: pointer;
}
.site-ui-modal__body { padding: 20px 18px 8px; }
.site-ui-modal__message { margin: 0; color: #222; line-height: 1.65; white-space: pre-wrap; }
.site-ui-modal__actions { display: flex; gap: 10px; padding: 16px 18px 18px; }
.site-ui-modal__btn {
  flex: 1; padding: 13px 16px; border: 0; border-radius: 10px;
  font: inherit; font-weight: 700; cursor: pointer;
}
.site-ui-modal__btn--cancel { background: #f5f5f5; color: #727272; }
.site-ui-modal__btn--confirm { background: linear-gradient(135deg, var(--primary), var(--primary-alt)); color: #fff; }
.site-ui-modal--alert .site-ui-modal__btn--cancel { display: none; }
.site-ui-modal--wide { padding: 0; }
.site-ui-modal--wide .site-ui-modal__card {
  width: 90vw;
  height: 80vh;
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
}
.site-ui-modal--wide .site-ui-modal__body {
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.site-ui-modal--wide .site-ui-modal__message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}
