
:root {
  --overlay-bg: rgba(0,0,0,.55);
  --card-bg: #ffffff;
  --title: #111827;   /* slate-900 */
  --text: #374151;    /* gray-700 */
  --accent: #2563eb;  /* blue-600 */
  --accent-contrast: #ffffff;
  --radius: 16px;
}

/* Overlay */
.uc-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.uc-overlay[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* Dialog */
.uc-dialog {
  width: min(560px, 100%);
  background: var(--card-bg);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25), 0 10px 15px -3px rgba(0,0,0,.1);
  transform: translateY(10px) scale(.98);
  transition: transform .22s ease;
  outline: none;
}
.uc-overlay[data-open="true"] .uc-dialog {
  transform: translateY(0) scale(1);
}

.uc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 0 20px;
}
.uc-icon {
  width: 40px; height: 40px;
}
.uc-title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--title);
}

.uc-body { padding: 12px 20px 0 20px; line-height: 1.6; }

.uc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 20px 20px;
}

.uc-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.uc-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s ease;
}
.uc-btn.primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.uc-btn.secondary {
  background: #e5e7eb; /* gray-200 */
  color: #111827;      /* slate-900 */
}
.uc-btn:hover { filter: brightness(0.97); }

.uc-close-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
}
.uc-close-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.uc-note {
  display: inline-flex; align-items: center; gap: 8px; font-size: .9rem;
}

/* Prevent background scroll when open */
body.uc-lock { overflow: hidden; }
