/* Connections screen: light cards over the Brazil background. Loaded after brand-system.css. */
.ldp-dark-shell:has(> header + section) > section > .mt-7{
  padding:18px!important;
  border:1px solid rgba(255,255,255,.76)!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.78)!important;
  box-shadow:0 24px 70px rgba(0,91,55,.14)!important;
  backdrop-filter:blur(18px);
}

.ldp-dark-shell:has(> header + section) > section > .mt-7 > div{
  background:rgba(255,255,255,.97)!important;
  border:1px solid #DCE5EE!important;
  color:#10233F!important;
  box-shadow:0 8px 22px rgba(0,59,130,.06)!important;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease!important;
}

.ldp-dark-shell:has(> header + section) > section > .mt-7 > div:hover{
  border-color:rgba(0,82,204,.30)!important;
  box-shadow:0 13px 32px rgba(0,82,204,.11)!important;
  transform:translateY(-1px);
}

/* First integration (GitHub) gets a subtle connected/success tint when present. */
.ldp-dark-shell:has(> header + section) > section > .mt-7 > div:first-child{
  background:linear-gradient(90deg,#F4FFF8 0%,#FFFFFF 100%)!important;
  border-color:rgba(0,158,73,.25)!important;
}

.ldp-dark-shell:has(> header + section) > section > .mt-7 > div .font-medium{
  color:#10233F!important;
  font-weight:700!important;
}

.ldp-dark-shell:has(> header + section) > section > .mt-7 > div [class*="text-slate-500"],
.ldp-dark-shell:has(> header + section) > section > .mt-7 > div [class*="text-slate-400"]{
  color:#6B7890!important;
}

/* Icon tiles */
.ldp-dark-shell:has(> header + section) > section > .mt-7 > div [class*="bg-white/5"],
.ldp-dark-shell:has(> header + section) > section > .mt-7 > div [class*="bg-white/[.04]"]{
  background:#F2F5F8!important;
  color:#003B82!important;
  border:1px solid #E4EAF2!important;
}

/* Keep GitHub icon tile dark, for recognizable contrast. */
.ldp-dark-shell:has(> header + section) > section > .mt-7 > div:first-child [class*="bg-white/5"],
.ldp-dark-shell:has(> header + section) > section > .mt-7 > div:first-child [class*="bg-white/[.04]"]{
  background:#111820!important;
  color:#fff!important;
  border-color:#111820!important;
}

/* White utility buttons become clean outlined brand buttons. */
.ldp-dark-shell:has(> header + section) > section > .mt-7 button[class*="bg-white"]{
  background:#fff!important;
  color:#0052CC!important;
  border:1px solid rgba(0,82,204,.24)!important;
  box-shadow:0 4px 12px rgba(0,82,204,.05)!important;
}

.ldp-dark-shell:has(> header + section) > section > .mt-7 button[class*="bg-white"]:hover{
  background:#F4F8FF!important;
  border-color:rgba(0,82,204,.44)!important;
}

/* Primary buttons stay blue and readable. */
.ldp-dark-shell:has(> header + section) > section > .mt-7 [data-ldp-primary="true"]{
  background:#0052CC!important;
  color:#fff!important;
  border-color:#0052CC!important;
}

/* Connected state */
.ldp-dark-shell:has(> header + section) > section > .mt-7 .text-emerald-400,
.ldp-dark-shell:has(> header + section) > section > .mt-7 .text-emerald-500,
.ldp-dark-shell:has(> header + section) > section > .mt-7 .text-emerald-600{
  color:#009E49!important;
  font-weight:700!important;
}

/* Heading and support copy */
.ldp-dark-shell:has(> header + section) > section h1{
  color:#003B82!important;
}
.ldp-dark-shell:has(> header + section) > section > div:first-child p{
  color:#65758F!important;
}

@media (max-width:900px){
  .ldp-dark-shell:has(> header + section) > section > .mt-7{
    padding:10px!important;
    border-radius:18px!important;
  }
  .ldp-dark-shell:has(> header + section) > section > .mt-7 > div{
    padding:14px!important;
    border-radius:16px!important;
  }
}
