/* ── Supabase connect UI ────────────────────────────────────── */
.sb-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.85);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.sb-sync-pill:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.sb-sync-pill .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: #999;
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
.sb-sync-pill.on .dot {
  background: #4ea672;
  box-shadow: 0 0 0 3px rgba(78,166,114,.25);
}
.sb-sync-pill.on { border-color: rgba(78,166,114,.45); color: #d8f0e1; }
.sb-sync-pill.err .dot { background: #e0775e; box-shadow: 0 0 0 3px rgba(224,119,94,.25); }
.sb-sync-pill.err { border-color: rgba(224,119,94,.45); color: #ffd8cf; }
.sb-sync-pill.off .dot { background: #c9a85b; box-shadow: 0 0 0 3px rgba(218,170,58,.18); }

.sb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,26,35,.55);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.sb-modal {
  background: #FBF6EC;
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  padding: 26px 28px 24px;
  position: relative;
  box-shadow: 0 24px 60px -20px rgba(27,50,64,.45);
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #1B3240;
}
.sb-modal h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.sb-modal .sb-lede {
  font-size: 13px;
  color: #5a5444;
  margin: 0 0 18px;
  line-height: 1.5;
}
.sb-modal .sb-lede a { color: #B68D2C; }
.sb-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: 0;
  width: 28px; height: 28px;
  border-radius: 6px;
  font-size: 16px;
  color: #5a5444;
  cursor: pointer;
}
.sb-close:hover { background: rgba(0,0,0,.05); }

.sb-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F4ECDD;
  border: 1px solid #DCCFB4;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  color: #5a5444;
}
.sb-pill {
  font-size: 11.5px;
  font-weight: 700;
}
.sb-pill.on  { color: #2d7a4f; }
.sb-pill.err { color: #c4453a; }
.sb-pill.off { color: #B68D2C; }

.sb-field {
  display: block;
  margin-bottom: 14px;
}
.sb-field span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5a5444;
  margin-bottom: 4px;
}
.sb-field input {
  width: 100%;
  background: #fff;
  border: 1.5px solid #DCCFB4;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #1B3240;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.sb-field input:focus {
  outline: none;
  border-color: #DAAA3A;
  box-shadow: 0 0 0 3px rgba(218,170,58,.18);
}
.sb-field small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #8a8270;
}
.sb-field small strong { color: #1B3240; }

.sb-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 12.5px;
  color: #1B3240;
  line-height: 1.5;
  margin: 10px 0;
}
.sb-step strong { color: #1B3240; }
.sb-step em { color: #B68D2C; font-style: normal; font-weight: 700; }
.sb-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #1B3240;
  color: #DAAA3A;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.sb-link {
  display: inline-block;
  margin-top: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  color: #B68D2C;
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.sb-err {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #c4453a;
  white-space: pre-line;
  min-height: 18px;
  line-height: 1.4;
}

.sb-actions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sb-btn {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.sb-btn-ghost     { background: transparent; color: #5a5444; border-color: #DCCFB4; }
.sb-btn-ghost:hover { background: #F4ECDD; }
.sb-btn-secondary { background: #fff; color: #1B3240; border-color: #DCCFB4; }
.sb-btn-secondary:hover { background: #F4ECDD; }
.sb-btn-danger    { background: #fff; color: #c4453a; border-color: #c4453a; }
.sb-btn-danger:hover { background: #fdf1ef; }
.sb-btn-primary   { background: #1B3240; color: #fff; border-color: #1B3240; }
.sb-btn-primary:hover { background: #142634; }
