.integrations-center {
  overflow: hidden;
}

.watchdog-card { margin-top: 1rem; max-width: 100%; overflow: hidden; overflow-wrap: anywhere; }
.watchdog-card details { margin: .75rem 0; }
.watchdog-card summary { cursor: pointer; font-weight: 700; }
#watchdogRuns { max-height: 16rem; overflow-y: auto; border-radius: .75rem; padding: .5rem; scrollbar-width: thin; }
.source-state.checked { color: #8bf0c4; background: #173f32; }
.source-state.stale, .source-state.not_checked, .source-state.configured { color: #ffe1a3; background: #49391f; }

.source-hub {
  overflow: hidden;
  border-color: rgba(34, 104, 66, .22) !important;
  background: linear-gradient(145deg, #ffffff 0%, #f4faf6 100%) !important;
}

.source-hub-heading {
  align-items: flex-start;
}

.source-route-map {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 42px minmax(150px, .72fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  margin: .8rem 0 1rem;
  padding: .9rem;
  border: 1px solid rgba(31, 92, 57, .15);
  border-radius: 18px;
  background: rgba(255, 255, 255, .85);
}

.source-route-inputs,
.source-route-results {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
}

.source-route-inputs span,
.source-route-results span {
  padding: .38rem .58rem;
  border-radius: 999px;
  background: #edf5f0;
  color: #294b39;
  font-size: .73rem;
  font-weight: 800;
}

.source-route-results span {
  background: #f5f0df;
  color: #675118;
}

.source-route-arrow {
  display: flex;
  align-items: center;
  color: #2e7d4f;
}

.source-route-arrow i {
  width: 100%;
  height: 2px;
  background: #7bb18e;
}

.source-route-arrow strong {
  margin-left: -.2rem;
  font-size: 1.25rem;
}

.source-route-core {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: .75rem;
  border-radius: 18px;
  background: linear-gradient(145deg, #174e31, #2e7d4f);
  color: #fff;
  box-shadow: 0 12px 30px rgba(23, 78, 49, .24);
  text-align: center;
}

.source-route-core strong {
  font-size: 1.15rem;
}

.source-route-core span {
  font-size: .74rem;
  font-weight: 700;
  opacity: .9;
}

.source-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.source-hub-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .55rem;
  padding: .8rem;
  border: 1px solid rgba(33, 59, 44, .13);
  border-radius: 14px;
  background: #fff;
}

.source-hub-card-head,
.source-hub-card-metrics,
.source-hub-actions,
.source-receipts-head,
.source-receipt,
.source-receipt-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}

.source-hub-card h3,
.source-receipts-head h3,
.source-receipt p {
  margin: 0;
}

.source-hub-card p,
.source-hub-card small,
.source-receipts-head span,
.source-receipt small {
  margin: 0;
  color: #607066;
  font-size: .77rem;
  line-height: 1.4;
}

.source-hub-card-route {
  padding: .45rem .55rem;
  border-radius: 10px;
  background: #f4f7f5;
  color: #355442 !important;
  font-weight: 700;
}

.source-state {
  flex: none;
  padding: .27rem .52rem;
  border-radius: 999px;
  background: #f6ead7;
  color: #7b531b;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-state.live,
.source-state.ready {
  background: #def2e5;
  color: #17613a;
}

.source-hub-card-metrics strong {
  color: #173c27;
  font-size: .82rem;
}

.source-hub-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: .85rem;
}

.source-hub-actions span {
  margin-left: auto;
}

.source-receipts-head {
  align-items: flex-end;
  margin: 1.1rem 0 .55rem;
}

.source-receipts {
  display: grid;
  gap: .45rem;
}

.source-receipt {
  padding: .7rem .75rem;
  border: 1px solid rgba(33, 59, 44, .11);
  border-radius: 12px;
  background: #fff;
}

.source-receipt-main {
  min-width: 0;
  justify-content: flex-start;
}

.source-receipt-copy {
  min-width: 0;
}

.source-receipt-copy p,
.source-receipt-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-receipt button {
  flex: none;
}

.integrations-heading {
  align-items: flex-start;
}

.integration-summary {
  margin: .25rem 0 1rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(27, 72, 48, .16);
  border-radius: 14px;
  background: #f5faf7;
  color: #294b39;
  font-weight: 700;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.integration-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid rgba(33, 59, 44, .14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 53, 37, .06);
}

.integration-card-head,
.supporting-connection-head,
.supporting-connections-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.integration-card h3,
.supporting-connections-head h3 {
  margin: 0;
}

.integration-state {
  flex: none;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: #f3eee2;
  color: #674f18;
  font-size: .73rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.integration-state.connected {
  background: #e3f4e9;
  color: #17613a;
}

.integration-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.integration-capabilities span {
  padding: .28rem .5rem;
  border-radius: 999px;
  background: #f1f5f2;
  color: #3a5646;
  font-size: .75rem;
  font-weight: 700;
}

.integration-account,
.integration-detail,
.integration-last-sync,
.supporting-connection p,
.integration-security-note {
  margin: 0;
  color: #5a695f;
  font-size: .86rem;
  line-height: 1.45;
}

.integration-account strong {
  color: #243d2e;
}

.integration-error {
  margin: 0;
  padding: .65rem .75rem;
  border-radius: 10px;
  background: #fff3e6;
  color: #875118;
  font-size: .8rem;
  line-height: 1.4;
}

.integration-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
}

.integration-card-actions button {
  flex: 1 1 8rem;
}

.integration-help { min-width: 0; padding: .75rem; border: 1px solid #cbdccc; border-radius: 12px; background: #f5faf7; color: #294b39; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.5; }
.integration-help summary { cursor: pointer; font-weight: 750; padding: .25rem 0; }
.integration-help p { margin: .65rem 0 0; }
.integration-help ol { margin: .75rem 0; padding-left: 1.25rem; }
.integration-help li + li { margin-top: .65rem; }
.integration-help-links { display: flex; flex-direction: column; gap: .5rem; }
.integration-help-links a { display: flex; align-items: center; min-height: 44px; padding: .5rem .75rem; border: 1px solid #aac6b2; border-radius: 999px; background: #fff; color: #174e31; font-weight: 700; text-decoration: underline; }
.integration-help a:focus-visible, .integration-help summary:focus-visible { outline: 3px solid #27613f; outline-offset: 3px; }
.integration-provider-detail { font-size: .8125rem; }

.supporting-connections-head {
  align-items: center;
  margin: 1.2rem 0 .7rem;
}

.supporting-connections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.supporting-connection {
  padding: .85rem;
  border: 1px solid rgba(33, 59, 44, .12);
  border-radius: 13px;
  background: #fbfcfb;
}

.supporting-connection h4 {
  margin: 0 0 .2rem;
  color: #243d2e;
}

.supporting-connection-status {
  display: block;
  margin-top: .45rem;
  color: #3c5a48;
  font-size: .78rem;
  font-weight: 800;
}

.supporting-connection-status.connected {
  color: #17613a;
}

.integration-security-note {
  margin-top: .8rem;
  padding: .75rem .85rem;
  border-left: 4px solid #2e7d4f;
  border-radius: 8px;
  background: #f4f8f5;
}

@media (max-width: 900px) {
  .integration-grid,
  .source-hub-grid {
    grid-template-columns: 1fr;
  }

  .source-route-map {
    grid-template-columns: 1fr;
  }

  .source-route-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }

  .source-route-arrow i {
    width: 28px;
  }
}

@media (max-width: 600px) {
  .integrations-center {
    padding: .9rem !important;
  }

  .integration-card {
    padding: .85rem;
  }

  .supporting-connections {
    grid-template-columns: 1fr;
  }

  .supporting-connections-head {
    align-items: stretch;
    flex-direction: column;
  }

  .supporting-connections-head button {
    width: 100%;
  }

  .source-hub {
    padding: .9rem !important;
  }

  .source-hub-actions,
  .source-receipts-head,
  .source-receipt {
    align-items: stretch;
    flex-direction: column;
  }

  .source-hub-actions button,
  .source-receipt button {
    width: 100%;
  }

  .source-hub-actions span {
    margin-left: 0;
  }
}
.google-ads-report { margin-top: 1rem; border-top: 1px solid var(--line, #ced6df); padding-top: 1rem; }
.google-ads-report h4 { margin: 0 0 .6rem; font-size: 1rem; }
.google-ads-account { margin-top: 1rem; }
.google-ads-account h5 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.google-ads-account h5 span { display: block; font-size: .875rem; font-weight: 400; }
.google-ads-account p { font-size: .875rem; overflow-wrap: anywhere; }
.google-ads-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: .8rem 0; }
.google-ads-metrics dt { font-size: .875rem; }
.google-ads-metrics dd { margin: .2rem 0 0; font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.lead-review-inbox { margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--line, #ced6df); border-radius: .8rem; }
.lead-review-inbox h3 { margin-top: 0; }
.lead-review-inbox h3 span { margin-left: .5rem; }
.lead-review-item { padding: 1rem 0; border-top: 1px solid var(--line, #ced6df); overflow-wrap: anywhere; }
.lead-review-message { white-space: pre-wrap; max-height: 20rem; overflow-y: auto; }
.lead-review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .8rem; }
.lead-review-actions a { font-weight: 700; }
.lead-review-item summary { cursor: pointer; }
