/* Shared status badges (status-badges.js): same words and colours in every section. */
.csg-status{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:2px 8px;border-radius:999px;border:1px solid var(--status-fill,currentColor);font-size:11px;font-weight:800;line-height:1.5;white-space:nowrap;background:var(--status-fill);color:var(--status-ink,#fff)}
.csg-status+.csg-status{margin-left:6px}
/* Draft · not saved and Live · unpublished changes follow Joey's concept in both themes: cream fill, gold
   outline, brown text; the Live · part is a deep green cap with white text. */
.csg-status-unsaved,.csg-status-changed{--status-fill:#fdf1d3;--status-ink:#7c4a0f;--status-line:#e3a425}
.csg-status-unsaved{border-color:var(--status-line)}
.csg-status-saved{--status-fill:#dbeafe;--status-ink:#1e40af}
/* Live uses the same deep green as the Live · part of Live · unpublished changes, in both themes. */
.csg-status-live{--status-fill:#0b6b4f;--status-ink:#fff}
/* No border box here (an inset outline instead, 1px wider padding keeps the size) so the green cap reaches
   the pill's left edge; the cap paints over the outline on its side. */
.csg-status-changed{--status-live-fill:#0b6b4f;--status-live-ink:#fff;overflow:hidden;border:0;padding:3px 9px;box-shadow:inset 0 0 0 1px var(--status-line)}
.csg-status-live-part{position:relative;isolation:isolate;white-space:pre;color:var(--status-live-ink);padding-right:6px;margin-right:2px}
.csg-status-live-part::before{content:"";position:absolute;z-index:-1;inset:-3px 0 -3px -9px;background:var(--status-live-fill)}
.csg-status-changed>span:last-child{white-space:pre}
.csg-status-archived{color:#6b7280;border-style:dashed}
html[data-theme="dark"] .csg-status-saved{--status-fill:var(--balanced-blue,#3b82f6);--status-ink:#fff}
html[data-theme="dark"] .csg-status-archived{color:#9ca3af}
.csg-status-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;font-size:11px;color:var(--studio-muted,#5b6b82);grid-column:1/-1}
.csg-status-legend>span{display:inline-flex;align-items:center;gap:4px}
/* Keep each key badge whole on narrow screens; the explanation text beside it wraps instead. */
.csg-status-legend .csg-status{flex-shrink:0;max-width:none}
.csg-status-legend[hidden]{display:none}
/* Status line under a card's name (View all, All offers, Sponsored). */
.va-status{display:flex;flex-wrap:wrap;gap:4px}
.va-status .csg-status+.csg-status{margin-left:0}
/* Explore / Sponsored headings and thumbnails share the same solid fills without the old dot. */
#carousel-studio .carousel-status-pill.csg-status{background:var(--status-fill);color:var(--status-ink,#fff);border-color:var(--status-line,var(--status-fill,currentColor));padding:2px 8px;gap:0;font-size:11px;font-weight:800}
#carousel-studio .carousel-status-pill.csg-status-changed{padding:3px 9px}
#carousel-studio .carousel-status-pill.csg-status::before{display:none}
#carousel-studio .qs-thumb .carousel-status-pill.csg-status{font-size:10px;padding:1px 6px}
