/* Settings hub — the integration grid at the top of Firm settings.
   Replaces four sidebar entries. House palette only, no new tokens. */

.sh-panel { margin-bottom: 18px; }

.sh-intro {
  font-size: 13px;
  line-height: 1.6;
  margin: 2px 0 14px;
  max-width: 62ch;
}

.sh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.sh-card {
  border: 1px solid var(--stroke-soft, rgba(26, 27, 24, .1));
  background: var(--paper, #FBF9F4);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  min-width: 0;                 /* lets long status text shrink instead of overflowing */
}
.sh-card:hover {
  border-color: var(--gold, #A9824C);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 27, 24, .06);
}
.sh-card-dead { cursor: default; opacity: .55; }
.sh-card-dead:hover { transform: none; box-shadow: none; border-color: var(--stroke-soft, rgba(26,27,24,.1)); }

.sh-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sh-orb {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bone, #F4F0E9);
  color: var(--gold-deep, #8A6634);
  flex: 0 0 auto;
}
.sh-orb svg { width: 16px; height: 16px; }

.sh-state {
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;      /* a long connected address must wrap, not overflow */
}
.sh-state-green  { color: var(--green, #1E3A33); }
.sh-state-gold   { color: var(--gold-deep, #8A6634); }
.sh-state-muted,
.sh-state-load,
.sh-state-none   { color: var(--ink, #1A1B18); opacity: .45; }

.sh-card-title {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 5px;
}

.sh-card-blurb {
  font-size: 12.5px;
  line-height: 1.55;
  opacity: .72;
}

.sh-card-note {
  font-size: 11.5px;
  margin-top: 8px;
  color: var(--red, #8C3B2E);
}

@media (max-width: 640px) {
  /* One per row on a phone: two 230px columns would force a horizontal
     scroll at 390px, which is the thing this app must never do. */
  .sh-grid { grid-template-columns: 1fr; gap: 10px; }
  .sh-card { padding: 13px; }
  .sh-card-top { margin-bottom: 8px; }
}
