/* =========================================================
   EN•joy STEP 5 Supabase Cloud & Auth UI (patch_step5_cloud.css)
   ========================================================= */

#enAuthModal {
  position: fixed;
  inset: 0;
  z-index: 10090;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
#enAuthModal.open {
  display: flex;
}
.en-auth-card {
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  color: #172026;
  border-radius: 20px;
  padding: 18px 18px 20px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.en-auth-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.en-auth-title {
  font-size: 16.5px;
  font-weight: 900;
  margin: 0;
  color: #172026;
}
.en-auth-sub {
  font-size: 12px;
  color: #52606d;
  margin-top: 3px;
  line-height: 1.45;
}
.en-auth-status {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4fbf5;
  border: 1px solid rgba(38, 99, 61, 0.24);
  font-size: 12px;
  color: #166534;
  line-height: 1.45;
}
.en-auth-status.is-guest {
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.30);
  color: #92400e;
}
.en-auth-btn {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  background: #ffffff;
  color: #172026;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.en-auth-btn.primary {
  background: #26633d;
  border-color: #26633d;
  color: #ffffff;
}
.en-auth-btn.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.en-auth-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}
.en-auth-divider::before,
.en-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.10);
}
.en-auth-msg {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  display: none;
}
.en-auth-msg.show { display: block; }
.en-auth-msg.ok { background: #dcfce7; color: #166534; }
.en-auth-msg.err { background: #fee2e2; color: #b91c1c; }

.en-cloud-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
}
.en-cloud-pill.guest {
  background: #f1f5f9;
  color: #475569;
}

/* Trust & Safety Center モーダル */
#enTsCenterModal {
  position: fixed;
  inset: 0;
  z-index: 10085;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
#enTsCenterModal.open { display: flex; }
