.cmp-visual-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
.cmp-publish-actions { display: none; }
.cmp-preview--ranking:not(.cmp-preview--table) .cmp-publish-actions { display: contents; }
.cmp-publish-actions [role="status"] { flex-basis: 100%; }
.cmp-publish-actions [role="status"]:empty { display: none; }
.cmp-publish-actions [role="status"] { color: var(--sp-text-2); font-size: 14px; }
.cmp-publish-actions a { color: var(--sp-accent); }
.cmp-publish-actions .cmp-cta {
  margin-left: auto;
  flex: none;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.cmp-publish-actions .cmp-cta:disabled { cursor: wait; opacity: .65; }
.cmp-publish-actions .cmp-cta:disabled::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: cmp-publish-spin .8s linear infinite;
}
@keyframes cmp-publish-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cmp-publish-actions .cmp-cta:disabled::before { animation: none; }
}
.cmp-publish-actions .cmp-cta:focus-visible { outline: 2px solid var(--sp-text); outline-offset: 3px; }
.cmp-preview--ranking .cmp-visual-actions { max-width: 480px; margin: 0 auto; }
.sp-published-visual { min-width: 0; width: 100%; }
.sp-published-ranking-image { display: block; width: 100%; height: auto; }
.sp-published-visual .cmp-ranking { max-width: 100%; }
.sp-published-table { max-height: 600px; overflow: auto; padding: 12px; }
.sp-published-table .cmp-table { width: 100%; border-collapse: collapse; }
.sp-published-table th, .sp-published-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--sp-border);
  white-space: nowrap;
  text-align: right;
}
.sp-published-table th { color: var(--sp-text-2); }

/* The fixed render canvas uses the same scale observer as Explore. Keep a
   separate unscaled band below it for the existing playback controls. */
.sp-published-timeline.real-feed-route { --sp-published-dock: 84px; min-height: 0; }
:is(#main-feed-shell, #detail-feed-shell, .sp-post-wrapper) .sp-published-timeline .sp-card-interactive-shell {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}
:is(#main-feed-shell, #detail-feed-shell, .sp-post-wrapper) .sp-published-timeline .sp-card-interactive-stage {
  position: relative;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  box-sizing: border-box;
  padding-top: calc(100% * var(--sp-published-ratio) + var(--sp-published-dock)) !important;
  overflow: hidden !important;
}
.sp-published-timeline .sp-card-interactive-scale-stage { visibility: hidden; }
.sp-published-timeline .sp-card-interactive-scale-wrap.sp-preview-scaled > .sp-card-interactive-scale-stage {
  visibility: visible;
  transform: scale(var(--sp-preview-scale, 1));
}
.sp-published-timeline .sp-card-interactive-graph-box { position: absolute; overflow: hidden; }
:is(#main-feed-shell, #detail-feed-shell, .sp-post-wrapper) .sp-published-timeline .sp-card-interactive-scale-stage .js-plotly-plot {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
:is(#main-feed-shell, #detail-feed-shell, .sp-post-wrapper) .sp-published-timeline .sp-card-interactive-underlay {
  inset: 0 0 var(--sp-published-dock) 0 !important;
}
