.social-platforms { width: 100%; max-width: 1160px; min-width: 0; margin: 0 auto 24px; color: #273831; font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: 0; container-type: inline-size; }
.social-platforms *, .social-platforms *::before, .social-platforms *::after { box-sizing: border-box; letter-spacing: 0; }
.sp-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid #dae3df; padding: 0 0 14px; }
.social-platforms h2 { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 6px; }
.sp-heading p, .sp-note { margin: 0; color: #64716b; font-size: 12px; overflow-wrap: anywhere; }
.sp-total { color: #277666; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sp-toolbar { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(140px, 220px) 38px; gap: 12px; align-items: end; padding: 16px 0 10px; }
.sp-toolbar label { min-width: 0; display: grid; gap: 6px; font-size: 12px; color: #64716b; }
.sp-search { position: relative; display: block; }
.sp-search > svg { position: absolute; left: 10px; top: 10px; width: 18px; height: 18px; pointer-events: none; }
.sp-toolbar input, .sp-toolbar select { display: block; min-width: 0; width: 100%; height: 38px; padding: 7px 10px; border: 1px solid #c8d4ce; border-radius: 5px; background: white; color: #273831; font: inherit; font-size: 14px; }
.sp-toolbar input { padding-left: 36px; }
.sp-icon { display: inline-flex; width: 38px; height: 38px; padding: 9px; justify-content: center; align-items: center; border: 1px solid #c8d4ce; border-radius: 5px; background: white; color: #455d53; cursor: pointer; }
.sp-count { min-height: 27px; color: #64716b; font-size: 12px; font-variant-numeric: tabular-nums; }
.sp-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #dae3df; }
.sp-list > li { padding: 0; margin: 0; border-bottom: 1px solid #dae3df; }
.social-platforms .sp-list details { border: 0; padding: 0; margin: 0; }
.social-platforms summary { list-style: none; display: grid; grid-template-columns: minmax(170px, 1fr) minmax(140px, 1.1fr) minmax(150px, 1.2fr) 18px; gap: 18px; align-items: center; min-height: 66px; padding: 12px 8px; cursor: pointer; }
.social-platforms summary::-webkit-details-marker { display: none; }
.social-platforms summary:hover { background: #edf3f0; }
.sp-platform { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-platform strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sp-mark { flex: 0 0 32px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; font-size: 11px; font-weight: 700; }
.sp-blue { color: #2361a3; background: #e8f0fb; }
.sp-rose { color: #a63c57; background: #f9e9ef; }
.sp-green { color: #267447; background: #e5f3e9; }
.sp-ink { color: #333b3f; background: #e5eaec; }
.sp-stage { font-size: 13px; color: #645127; overflow-wrap: anywhere; }
.sp-scope { color: #64716b; font-size: 13px; overflow-wrap: anywhere; }
.social-platforms svg { width: 18px; height: 18px; flex-shrink: 0; }
.sp-list details[open] > summary > svg { transform: rotate(180deg); }
.sp-list details[open] > summary { background: #edf3f0; }
.sp-detail { padding: 16px 18px 18px 50px; background: #fff; }
.sp-detail dl { display: grid; gap: 12px; margin: 0 0 16px; }
.sp-detail dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; }
.sp-detail dt { color: #64716b; font-size: 12px; }
.sp-detail dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; max-width: 760px; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 12px; }
.sp-actions a, .sp-actions button { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 36px; max-width: 100%; border: 0; border-radius: 4px; padding: 5px 0; color: #256d65; font: inherit; font-size: 13px; text-decoration: none; background: transparent; cursor: pointer; }
.sp-actions a:hover, .sp-actions button:hover { text-decoration: underline; }
.sp-actions span { overflow-wrap: anywhere; }
.social-platforms :is(summary,button,a,input,select):focus-visible { outline: 2px solid #287968; outline-offset: 3px; }
.sp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sp-empty { padding: 28px 12px !important; text-align: center; color: #64716b; }
.grovi-connections > .social-platforms { margin-top: 6px; }
@container (max-width: 640px) {
  .social-platforms summary { grid-template-columns: minmax(0, 1fr) 18px; gap: 4px 10px; padding: 12px 4px; }
  .sp-platform { grid-column: 1; }
  .social-platforms summary > svg { grid-column: 2; grid-row: 1 / 4; }
  .sp-stage, .sp-scope { grid-column: 1; margin-left: 42px; }
  .sp-detail { padding: 14px 12px; }
  .sp-detail dl > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .sp-toolbar { grid-template-columns: minmax(0, 1fr) 38px; gap: 10px; }
  .sp-toolbar label:first-child { grid-column: 1 / -1; }
}
