.stemCampaignEditor {
 display: grid;
 gap: 12px;
 width: 100%;
 min-width: 0;
}

.stemCampaignSection {
 min-width: 0;
 margin: 0;
 border: 1px solid #564461;
 border-radius: 12px;
 background: #201927;
}

.stemCampaignSection > summary {
 padding: 12px 14px;
 color: #ecdbff;
 font-weight: 700;
 cursor: pointer;
}

.stemCampaignSectionBody {
 padding: 0 14px 14px;
}

.stemCampaignEditor label {
 display: block;
 margin: 10px 0;
 font-weight: 600;
}

.stemCampaignEditor :is(input,textarea,select) {
 display: block;
 box-sizing: border-box;
 width: 100%;
 max-width: 100%;
 min-width: 0;
 min-height: 42px;
 margin-top: 6px;
 font: inherit;
 font-weight: 400;
}

.stemCampaignEditor textarea {
 resize: vertical;
}

.stemCampaignEditor button {
 min-height: 44px;
 white-space: normal;
}

.stemCampaignHelp {
 margin: 0 0 12px;
 color: #c7bbd0;
 font-size: .92rem;
 line-height: 1.45;
}

.stemCampaignEntryList,.stemCampaignMediaList {
 display: grid;
 grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr));
 gap: 12px;
}

.stemCampaignEntry,.stemCampaignMediaEntry {
 box-sizing: border-box;
 min-width: 0;
 margin: 8px 0;
 padding: 10px;
 border: 1px solid #65546f;
 border-radius: 10px;
 background: #292031;
 overflow-wrap: anywhere;
}

.stemCampaignEntry legend,.stemCampaignMediaEntry legend {
 max-width: 100%;
 padding: 0 4px;
 color: #e1c9fa;
 font-weight: 700;
}

.stemCampaignPreview {
 display: block;
 width: 100%;
 max-height: 240px;
 border-radius: 7px;
 object-fit: contain;
 background: #141019;
}

.stemCampaignPreview[hidden] {
 display: none;
}

.stemCampaignFooter {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 10px;
}

.stemCampaignStatus {
 flex-basis: 100%;
 margin: 0;
 color: #e6caff;
}

.stemCampaignStatus:empty {
 display: none;
}

.stemCampaignGallery {
 display: grid;
 grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr));
 gap: 12px;
 margin: 14px 0;
}

.stemCampaignGalleryCompact {
 grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr));
}

.stemCampaignImageCard {
 min-width: 0;
 margin: 0;
 overflow: hidden;
 border: 1px solid #5a4967;
 border-radius: 12px;
 background: #21192b;
}

.stemCampaignImageCard img {
 display: block;
 width: 100%;
 max-height: 360px;
 object-fit: contain;
 background: #131017;
}

.stemCampaignImageCard figcaption {
 padding: 10px 12px;
 overflow-wrap: anywhere;
}

.stemCampaignImageCard figcaption p {
 margin: 5px 0 0;
 white-space: pre-wrap;
}

.stemCampaignImageButton {
 display: block;
 width: 100%;
 margin: 0;
 padding: 0;
 border: 0;
 border-radius: 0;
 background: transparent;
 cursor: zoom-in;
}

.stemCampaignFullImage {
 display: block;
 max-width: 100%;
 max-height: 72vh;
 margin: 0 auto;
 object-fit: contain;
}
