.campaign-custom-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:16px;align-items:start}
.campaign-custom-card{min-width:0}
.campaign-custom-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;max-height:340px;overflow:auto;margin:12px 0 18px;padding-right:6px}
.campaign-custom-card .button-row{flex-wrap:wrap}
.campaign-custom-card[draggable=true]{cursor:grab}
.campaign-custom-card[draggable=true]:active{cursor:grabbing}
.codex-campaign-source{color:var(--accent);font-weight:600}
.campaign-dialog-head h2{min-width:0;flex:1;overflow-wrap:anywhere}
.campaign-dialog-head .dialog-close{width:40px;min-width:40px;height:40px;flex:0 0 40px;padding:0}
@media(max-width:600px){.campaign-dialog-head h2{font-size:22px;line-height:1.3}.campaign-dialog .campaign-field input,.campaign-dialog .campaign-field textarea,.campaign-dialog .campaign-field select{font-size:16px}}
