/* DW4 (2026-10-18) Group N, F42: colours moved onto the --ds-*
 * tokens (so Navy re-points them), the Connect button row, the
 * Connecting… pill and the per-card message line. */
/* Integrations (Wave 22 fix pass 14) — the Settings directory's
 * own rules, split out rather than added to styles.css, which
 * rides at the per-file upload ceiling. */

.int-group { margin-top: 20px; }
.int-group:first-child { margin-top: 4px; }
.int-group h3, .int-keys h3 {
  margin: 0 0 2px; font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: var(--ds-muted);
}
.int-gsub { margin: 0 0 4px; color: var(--ds-muted); font-size: 12.5px; }
.int-rows { display: flex; flex-direction: column; }
.int-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--ds-hair);
}
.int-row:last-child { border-bottom: 0; }
.int-main { flex: 1 1 auto; min-width: 0; }
.int-name { font-weight: 700; font-size: 14px; color: var(--ds-navy); }
.int-job { font-size: 13.5px; margin-top: 1px; color: var(--ds-ink); }
.int-note { color: var(--ds-muted); font-size: 12.5px; margin-top: 1px; }
.int-status {
  flex: 0 0 auto; margin-top: 2px; white-space: nowrap;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; padding: 3px 8px; border-radius: var(--ds-r-pill);
  background: var(--ds-neutral-bg); color: var(--ds-neutral-ink);
}
.int-status.int-st-on { background: var(--ds-ok-bg); color: var(--ds-ok-ink); }
.int-status.int-st-partial { background: var(--ds-warn-bg); color: var(--ds-warn-ink); }
.int-status.int-st-zap { background: var(--ds-info-bg); color: var(--ds-info-ink); }
.int-status.int-st-busy { background: var(--ds-gold-tint); color: var(--ds-gold-ink); }
/* the button row: the Connect button (the plain button, btn
 * btn-ghost fx-sm — owner ruling 2026-10-19) then the quiet text
 * doors beside it */
.int-door-row { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
/* wave133-doorbtn (2026-10-25, owner ask): the doors ("Open in Zapier"
 * and friends) read as BUTTONS, not underlined text — same ghost shape
 * as the Connect buttons beside them. */
.int-door {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  color: var(--ds-navy); text-decoration: none;
  border: 1px solid var(--ds-line); border-radius: 8px;
  background: #fff; padding: 5px 12px; line-height: 1.35;
}
.int-door:hover { color: var(--ds-gold-ink); border-color: var(--ds-gold); }
.int-appid { font-size: 12.5px; font-weight: 700; color: var(--ds-gold-ink); }
.int-msg { margin: 6px 0 0; font-size: 12.5px; color: var(--ds-muted); }
.int-msg.set-err { color: var(--ds-danger); }
.int-storenote { margin-top: 16px; }
.int-keys { margin-top: 22px; border-top: 1px solid var(--ds-line); padding-top: 16px; }
.int-keys p { font-size: 13.5px; margin: 0 0 8px; color: var(--ds-ink); }
.int-keys p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .int-row { flex-direction: column-reverse; gap: 6px; }
  .int-status { margin-top: 0; }
}

/* ADD-1 §7: the logo slot — a real square mark (INT_LOGO_FILES, files
 * at the portal root) at one consistent size, else the neutral tile:
 * the Rookery penguin, greyed. Never an invented brand letter. */
.int-logo {
  flex: 0 0 auto; width: 36px; height: 36px; margin-top: 1px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.int-logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.int-logo-neutral { background: #eef0f3; }
.int-logo-neutral svg { width: 26px; height: 26px; filter: grayscale(1); opacity: .55; }

/* PAY (2026-10-20) PAY-1 — Settings → Payments: the status rows and the
 * "Needs your attention" items. Navy and the house greys only — gold stays
 * for the one main action. */
.pay-rows { margin: 4px 0 12px; }
.pay-switch { font-size: 15px; }
.pay-att { border: 1px solid var(--line, #dde3e8); border-left: 3px solid var(--navy, #12283f); border-radius: 8px; padding: 10px 12px; margin: 0 0 8px; }
.pay-att-t { margin: 0 0 2px; overflow-wrap: anywhere; }
.pay-att .muted { margin: 0 0 6px; }
[data-pay-etx] textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid var(--line, #dde3e8); border-radius: 8px; }
