.creative-editor, .creative-profile { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.creative-editor label, .creative-profile label, .creative-basket label { display: block; margin: 12px 0 5px; color: var(--text-dim); font-size: 13px; }
.creative-editor small, .creative-profile [role=status], .creative-ref small { color: var(--text-dim); }
.creative-editor input, .creative-profile input, .creative-basket input, .creative-editor textarea, .creative-profile textarea, .creative-basket textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.creative-basket label input, .creative-basket label textarea { display: block; margin-top: 5px; }
.creative-editor input[type=file] { margin: 4px 0 6px; padding: 6px; }
.creative-editor input::file-selector-button { margin-right: 8px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg-elev-1); color: var(--text); cursor: pointer; }
.creative-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.creative-actions, .creative-ref { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.creative-ref > details { min-width: 0; flex: 1; }
.creative-ref summary, .creative-editor summary, .creative-profile summary { cursor: pointer; overflow-wrap: anywhere; }
.creative-ref pre { max-height: 180px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.creative-ref .gen-select-wrap { flex: 0 0 115px; }
.creative-basket [role=status], .creative-editor [role=status] { color: var(--text-dim); font-size: 13px; }
.creative-basket footer { flex-wrap: wrap; }
@media (max-width:600px) {
  .creative-fields { grid-template-columns: minmax(0,1fr); gap: 0; }
  .creative-ref { flex-wrap: wrap; }
  .creative-ref > details { flex: 1 1 100%; }
  .cl-toolbar:has(button[onclick="CreativeDesk.openBasket()"]) { flex-wrap: wrap; }
}
