.sp-feed {
  --sp-feed-inset: 14px;
  --sp-feed-rule: #e8e8ef;
  container-type: inline-size;
  display: grid;
  min-width: 0;
  color: var(--navy, #181c3d);
  background: #fff;
}
.sp-feed-identity {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 12px var(--sp-feed-inset);
}
.sp-feed .sp-author { gap: 9px; }
.sp-feed .sp-avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border: 1px solid #2a33532a;
  border-radius: 50%;
}
.sp-feed .sp-author-text strong { font-size: 13px; line-height: 1.22; }
.sp-feed .sp-author-text span,
.sp-feed .sp-schedule { font-size: 11px; line-height: 1.3; }
.sp-feed .sp-schedule { margin: 0; overflow-wrap: anywhere; }
.sp-feed-writing {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px var(--sp-feed-inset) 14px;
}
.sp-feed .sp-caption { font-size: 13px; line-height: 1.55; }
.sp-feed .sp-gallery,
.sp-feed .sp-link-card { margin: 0; }
.sp-feed .sp-link-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-feed .sp-media-frame {
  aspect-ratio: 4 / 3;
  min-width: 0;
  max-height: none;
  border-radius: 0;
  background: #f0f1f7;
}
.sp-feed .sp-slide { border-radius: 0; }
.sp-feed .sp-slide > img { object-fit: cover; }
.sp-feed .sp-gallery-controls {
  min-height: 44px;
  border-bottom: 1px solid var(--sp-feed-rule);
}
.sp-feed .sp-metrics {
  gap: 8px 10px;
  margin: 0;
  padding: 10px var(--sp-feed-inset);
}
.sp-feed .sp-metric { gap: 4px; }
.sp-feed .sp-metric .sp-icon { width: 17px; height: 17px; }
.sp-feed .sp-metric-value { font-size: 11px; font-weight: 660; }

.sp-feed-instagram .sp-feed-identity {
  border-bottom: 1px solid var(--sp-feed-rule);
  padding-block: 10px;
}
.sp-feed-instagram .sp-avatar {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  outline: 1px solid #9f7096;
  outline-offset: 2px;
}
.sp-feed-instagram .sp-author-text span { order: -1; color: var(--navy, #181c3d); font-weight: 700; }
.sp-feed-instagram .sp-author-text:has(span) strong { color: var(--sp-muted); font-size: 10px; font-weight: 520; }
.sp-feed-instagram .sp-gallery { position: relative; }
.sp-feed-instagram .sp-media-frame { aspect-ratio: 4 / 5; }
.sp-feed-instagram .sp-gallery-controls {
  position: absolute;
  inset: 0;
  justify-content: space-between;
  padding: 0 5px;
  border: 0;
  pointer-events: none;
  background: transparent;
}
.sp-feed-instagram .sp-gallery-arrow {
  color: #fff;
  border: 1px solid #ffffff56;
  border-radius: 50%;
  background: #181c3dda;
  pointer-events: auto;
}
.sp-feed-instagram .sp-gallery-arrow:enabled:hover { background: var(--navy, #181c3d); }
.sp-feed-instagram .sp-gallery-arrow:disabled { visibility: hidden; }
.sp-feed-instagram .sp-gallery-progress {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: #181c3dda;
}
.sp-feed-instagram-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 40px;
  padding: 9px var(--sp-feed-inset) 6px;
  color: var(--navy, #181c3d);
}
.sp-feed-instagram-actions .sp-icon { width: 20px; height: 20px; }
.sp-feed-instagram-actions .sp-icon:last-child { margin-left: auto; }
.sp-feed-instagram-likes { font-size: 12px; font-weight: 700; }
.sp-feed-instagram .sp-caption-byline { color: var(--navy, #181c3d); font-weight: 740; }
.sp-feed-instagram > .sp-metrics {
  min-height: 40px;
  padding-bottom: 7px;
  color: var(--navy, #181c3d);
}
.sp-feed-instagram .sp-metric .sp-icon { color: var(--navy, #181c3d); }
.sp-feed-instagram .sp-metric:last-child { margin-left: auto; }
.sp-feed-instagram .sp-feed-writing { padding-top: 3px; }

.sp-feed-facebook .sp-feed-identity {
  padding-bottom: 6px;
}
.sp-feed-facebook .sp-feed-identity:has(.sp-schedule) {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 3px 9px;
}
.sp-feed-facebook .sp-feed-identity:has(.sp-schedule) .sp-author { display: contents; }
.sp-feed-facebook .sp-feed-identity:has(.sp-schedule) .sp-avatar { grid-column: 1; grid-row: 1 / span 2; }
.sp-feed-facebook .sp-feed-identity:has(.sp-schedule) .sp-author-text { grid-column: 2; align-self: end; }
.sp-feed-facebook .sp-feed-identity > .sp-schedule { grid-column: 2; align-self: start; }
.sp-feed-facebook .sp-feed-writing { padding-top: 6px; padding-bottom: 10px; }
.sp-feed-facebook .sp-caption { font-size: 14px; }
.sp-feed-facebook .sp-media-frame { aspect-ratio: 4 / 3; }
.sp-feed-facebook .sp-mosaic-5 {
  grid-template: minmax(0, 3fr) minmax(0, 2fr) / repeat(6, minmax(0, 1fr));
  gap: 2px;
  aspect-ratio: 6 / 5;
}
.sp-feed-facebook .sp-mosaic-5 > button { grid-column: span 2; }
.sp-feed-facebook .sp-mosaic-5 > button:nth-child(-n+2) { grid-column: span 3; }
.sp-feed-link-wrap:empty { display: none; }
.sp-feed-facebook .sp-link-card {
  padding: 8px var(--sp-feed-inset);
  border-inline: 0;
  border-radius: 0;
  background: #f5f7fc;
}
.sp-feed-facebook-counts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 8px var(--sp-feed-inset);
  color: var(--sp-muted);
  font-size: 11px;
  line-height: 1.35;
}
.sp-feed-facebook-reactions,
.sp-feed-facebook-reactions > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.sp-feed-facebook-reactions { gap: 6px; }
.sp-feed-facebook-reactions .sp-icon {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: var(--indigo, #364780);
  color: #fff;
}
.sp-feed-facebook-reactions .sp-icon + .sp-icon {
  margin-left: -7px;
  border: 1px solid #fff;
  background: #a75075;
}
.sp-feed-facebook-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  min-height: 39px;
  margin-inline: var(--sp-feed-inset);
  padding-block: 5px;
  border-top: 1px solid var(--sp-feed-rule);
  color: var(--navy, #181c3d);
  font-size: 11px;
  font-weight: 640;
}
.sp-feed-facebook-actions > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.sp-feed-facebook-actions .sp-icon { width: 16px; height: 16px; }
.sp-feed-facebook-actions > span + span {
  border-left: 1px solid var(--sp-feed-rule);
}
.sp-feed-facebook > .sp-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  border-top: 1px solid var(--sp-feed-rule);
  background: #f5f7fc;
}
.sp-feed-facebook .sp-metric {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 4px;
  min-width: 0;
  align-items: center;
  justify-content: center;
}
.sp-feed-facebook .sp-metric-label {
  position: static;
  grid-area: 2 / 1 / auto / -1;
  width: auto;
  height: auto;
  clip-path: none;
  text-align: center;
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}
.sp-feed-facebook .sp-metric .sp-icon {
  color: var(--sp-accent, #364780);
  width: 16px;
  height: 16px;
}

.sp-feed-x {
  padding-bottom: 4px;
}
.sp-feed-x .sp-feed-identity { padding-bottom: 3px; }
.sp-feed-x .sp-author-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 5px; }
.sp-feed-x .sp-feed-thread {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-inline: calc(var(--sp-feed-inset) + 45px) var(--sp-feed-inset);
}
.sp-feed-context:not(:empty) {
  display: grid;
  gap: 8px;
}
.sp-feed-context:empty { display: none; }
.sp-feed-x .sp-caption { font-size: 14px; }
.sp-feed-x .sp-media-frame { aspect-ratio: 16 / 9; border-radius: 8px; }
.sp-feed-x .sp-metrics {
  padding: 8px 0;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid var(--sp-feed-rule);
}
.sp-feed-x .sp-metric { gap: 3px; }
.sp-feed-x .sp-metric .sp-icon { color: var(--navy, #181c3d); width: 16px; height: 16px; }

@container (max-width: 290px) {
  .sp-feed-identity, .sp-feed-writing, .sp-feed > .sp-metrics, .sp-feed-instagram-actions,
  .sp-feed-facebook-counts, .sp-feed-facebook .sp-link-card { padding-inline: 11px; }
  .sp-feed-x .sp-feed-thread { margin-inline: 56px 11px; }
  .sp-feed-facebook-actions { margin-inline: 11px; }
}
