#root div[id*="goal-card"] {
  border-radius: 8px !important;
  clip-path: inset(0 round 8px) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  margin-bottom: 12px !important;
  border: 1px solid #E5E5EA !important;
}

#root div[id*="goal-card"] > div:last-child {
  border-radius: 8px !important;
  clip-path: inset(0 round 8px) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #E5E5EA !important;
}

#root .ipad-layout-content .bg-white:not([data-footprint-page]):not([data-footprint-card]):not(.page-header),
#root .mobile-content-container .bg-white:not([data-footprint-page]):not([data-footprint-card]):not(.page-header),
#root .app-main-container .bg-white:not([data-footprint-page]):not([data-footprint-card]):not(.page-header):not([id*="goal-card"]):not([data-goal-card]) {
  border-radius: 12px !important;
  clip-path: inset(0 round 12px) !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e2e8f0 !important;
}

#root .ipad-layout-content div[data-dream-id],
#root .mobile-content-container div[data-dream-id],
#root div[data-dream-id] {
  border-radius: 8px !important;
  clip-path: inset(0 round 8px) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 12px !important;
}

#root .ipad-layout-content div[data-collection-id],
#root .mobile-content-container div[data-collection-id],
#root div[data-collection-id] {
  border-radius: 8px !important;
  clip-path: inset(0 round 8px) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 12px !important;
}

/* Profile 页面所有卡片终极 12px 圆角（最高优先级，覆盖所有全局 8px 规则） */
body[data-page="Profile"] #root div[class*="rounded-"]:not([class*="rounded-full"]):not(.rounded-full),
body[data-page="Profile"] #root .bg-white:not([data-footprint-page]):not([data-footprint-card]):not(.page-header),
body[data-page="Profile"] #root .card-profile,
body[data-page="Profile"] #root [data-profile-identity-card],
body[data-page="Profile"] #root [class*="profile-card"] {
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  -moz-border-radius: 12px !important;
  clip-path: inset(0 round 12px) !important;
  -webkit-clip-path: inset(0 round 12px) !important;
}
