.connect-board { margin: 4px 0 22px; }
.connect-progress { margin: 0 0 4px; color: var(--muted-foreground); font-size: 13px; }
.connect-group { margin: 16px 0 8px; font-size: 13px; font-weight: 650; color: var(--muted-foreground); }

/* Two equal columns fill the content width. Cards in a row share a height. */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.connect-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--tile, #1c2430);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}
.connect-logo { flex: none; }
.connect-name, .connect-pull, .connect-pill, .connect-facts { flex: none; }
.connect-consent { flex: none; min-width: 0; }
.connect-stack {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  width: 100%;
  margin: 0;
}
.connect-spacer { flex: 1 1 auto; min-height: 0; }
.connect-action { flex: none; width: 100%; min-width: 0; }
.connect-extra { flex: none; }
.connect-logo {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--tile, #1c2430) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--tile, #1c2430) 28%, #e6e6e6);
}
.connect-logo img { width: 32px; height: 32px; display: block; }
.connect-name {
  margin: 0; height: 22px; line-height: 22px;
  font-size: 15px; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.connect-pull, .connect-pill, .connect-facts { margin: 0; overflow: hidden; }
.connect-pull {
  height: 36px; color: var(--muted-foreground); font-size: 13px; line-height: 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.connect-pill {
  min-height: 54px; height: auto; box-sizing: border-box; border-radius: 8px;
  padding: 8px; font-size: 12px; line-height: 16px; font-weight: 650;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.connect-pill.on { background: #e7f6ee; color: #146c36; }
.connect-pill.off { background: #f3f4f6; color: #3f3f46; }
.connect-pill.warn { background: #fff4e5; color: #8a4b08; }
.connect-facts {
  height: 32px; color: var(--muted-foreground); font-size: 12px; line-height: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.connect-action { min-height: 40px; height: auto; width: 100%; min-width: 0; }
.connect-action form { min-height: 40px; height: auto; width: 100%; min-width: 0; margin: 0; }
.connect-go, .connect-c2qb {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 40px; min-height: 40px; max-height: 40px;
  padding: 0 10px; box-sizing: border-box; border: 0; border-radius: 4px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  font-weight: 650; font-size: 13px; line-height: 40px; font-family: Helvetica, Arial, sans-serif;
}
.connect-go { background: #1c2430; color: #fff; }
.connect-c2qb { background: #2CA01C; color: #fff; }
.connect-extra { height: 18px; overflow: hidden; display: flex; align-items: center; }
.connect-extra form { margin: 0; height: 18px; display: flex; align-items: center; }
.connect-quiet {
  height: 18px; line-height: 18px; margin: 0; padding: 0;
  background: transparent; color: var(--muted-foreground); border: 0;
  font-size: 12px; cursor: pointer; text-align: left;
}
.connect-action .connect-auto {
  margin: 0; font-size: 12px; line-height: 16px; color: var(--muted-foreground);
  overflow-wrap: anywhere;
}
.connect-note { margin: 12px 0 0; color: var(--muted-foreground); font-size: 12px; }
@media (max-width: 720px) {
  .connect-grid { grid-template-columns: 1fr; }
}

/* Two-step sign-up connect flow and the missing-connection banner. */
.setup-flow { max-width: 28rem; margin: 28px auto 48px; }
.setup-progress {
  margin: 0 0 8px; color: var(--muted-foreground);
  font-size: 13px; letter-spacing: 0.02em;
}
.setup-flow h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.03em; font-weight: 700; }
.setup-lead { margin: 0 0 20px; color: var(--muted-foreground); }
.setup-card {
  background: #f6f7f8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
}
.setup-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 650; }
.setup-reassure { margin: 0 0 18px; color: var(--muted-foreground); font-size: 14px; }
.setup-done { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 650; }
.setup-done .ok { color: #146c36; }
.setup-done .off { color: var(--muted-foreground); }
.setup-primary, button.setup-primary {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; margin: 0;
  padding: 0 16px; box-sizing: border-box;
  border: 0; border-radius: 8px;
  background: #1c2430; color: #fff;
  font-weight: 650; font-size: 15px; font-family: inherit;
  cursor: pointer; text-decoration: none;
}
.setup-primary:hover, button.setup-primary:hover { background: #10141a; text-decoration: none; color: #fff; }
button[data-bank-connect]:disabled,
button.setup-primary:disabled,
button.setup-primary:disabled:hover,
button.connect-go:disabled {
  opacity: 0.45; cursor: not-allowed; background: #1c2430;
}
.bank-consent {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 0 0 12px; font-size: 13px; line-height: 1.45; font-weight: 450;
}
.bank-consent input { margin-top: 3px; flex: none; }
.bank-consent span { min-width: 0; }
.connect-card .bank-consent { font-size: 12px; line-height: 1.4; margin: 0 0 8px; }
.setup-c2qb {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; margin: 0;
  padding: 0 16px; box-sizing: border-box;
  border-radius: 8px;
  background: #2CA01C; color: #fff;
  font-weight: 650; font-size: 15px;
  text-decoration: none;
}
.setup-c2qb:hover { background: #248a18; color: #fff; text-decoration: none; }
.setup-skip, button.setup-skip {
  display: inline-block; width: 100%; margin-top: 16px; padding: 0;
  background: none; border: 0; color: var(--muted-foreground);
  font: inherit; font-size: 14px; cursor: pointer; text-align: center;
  text-decoration: underline; text-underline-offset: 2px;
}
.setup-skip:hover, button.setup-skip:hover { color: var(--foreground); }
.setup-alt { margin: 16px 0 0; font-size: 14px; color: var(--muted-foreground); text-align: center; }
.setup-note { margin: 20px 0 0; color: var(--muted-foreground); font-size: 12px; }
.setup-field { display: grid; gap: 4px; margin: 0 0 12px; font-size: 13px; font-weight: 650; }
.setup-field input {
  font: inherit; font-weight: 450; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
}

.bookkeeper {
  margin: 8px 0 22px; padding: 16px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
.bookkeeper h2 { margin: 0 0 6px; font-size: 18px; }
.bookkeeper h3 { margin: 14px 0 8px; font-size: 14px; }
.bookkeeper-lead, .bookkeeper-state, .bookkeeper-forward { margin: 0 0 10px; color: var(--muted-foreground); font-size: 14px; }
.bookkeeper-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin: 0 0 12px; }
.bookkeeper label { display: grid; gap: 4px; font-size: 13px; font-weight: 650; }
.bookkeeper input {
  font: inherit; font-weight: 450; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; min-width: 0;
}
.bookkeeper-addr { color: var(--foreground); font-weight: 650; word-break: break-all; }
.dns-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dns-table th, .dns-table td {
  text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border);
  vertical-align: top; word-break: break-all;
}
.connect-banner {
  display: block; margin: 0 0 16px; padding: 10px 14px;
  background: #f3f4f6; border: 1px solid var(--border); border-radius: 8px;
  color: var(--foreground); font-size: 13px; line-height: 1.45;
}
.connect-banner p { margin: 0; }
@media (max-width: 720px) {
  .setup-flow { margin: 16px auto 32px; }
  .setup-flow h1 { font-size: 22px; }
  .bookkeeper-fields { grid-template-columns: 1fr; }
}

