[x-cloak] { display: none !important; }

.lo-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lo-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(20, 40, 30, 0.2);
  overflow: hidden;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

/* 3px gradient accent bar */
.lo-dialog::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-400, #5fa87c), var(--green-200, #b7dcc5));
}

.lo-title {
  margin: 0 0 20px;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1f2d26;
  text-align: center;
}

.lo-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
  border: 1px solid var(--green-200, #cfe6d8);
  border-radius: 14px;
}

.lo-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-100, #e3f1e8);
  color: var(--green-800, #1f4d36);
  font-size: 1.125rem;
  font-weight: 600;
}

.lo-user-text { min-width: 0; }

.lo-name,
.lo-email {
  margin: 0;
  overflow-wrap: anywhere;
}

.lo-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2d26;
}

.lo-email {
  font-size: 0.875rem;
  color: #4a5a52;
}

.lo-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lo-btn {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

/* White on #5fa87c fails WCAG contrast, so the filled button uses a darker green */
.lo-btn-primary {
  background: linear-gradient(135deg, var(--green-500, #2f744e) 0%, var(--green-600, #245b3c) 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lo-btn-primary:hover { background: var(--green-700, #21543a); box-shadow: 0 4px 14px rgba(61,138,95,0.35); }
.lo-btn-primary:hover::after { opacity: 1; }
.lo-btn-primary:active { transform: translateY(0);}

.lo-btn-primary:disabled {
    background:var(--green-400); 
    cursor: not-allowed;
    transition: none;
    box-shadow: none;
}

.lo-btn-primary:disabled:hover {
  transform: none;
  box-shadow: none;
}

.lo-btn-ghost {
  background: #fff;
  border: 1.5px solid var(--green-500, #2f744e);
  color: var(--green-500, #2f744e);
}
.lo-btn-ghost:hover { background: var(--green-100, #e3f1e8); }

.lo-btn:focus-visible {
  outline: 3px solid var(--green-500, #2f744e);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .lo-overlay, .lo-dialog, .lo-btn { transition: none !important; }
}

.lo-spinner {
  width: 1.3rem;
  height: 1.3rem;
  fill: #ffffff;
  margin-left: 0.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .lo-spinner {
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
}