#pnia-mod12-wrap .pnia-editor-section { margin-bottom: 24px; }
#pnia-mod12-wrap .pnia-editor-section label { display: block; font-weight: 600; margin-bottom: 8px; color: #1f2937; }
#pnia-mod12-wrap .pnia-input { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 6px; font-family: inherit; resize: vertical; line-height: 1.5; }

#pnia-mod12-wrap .pnia-card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
#pnia-mod12-wrap .pnia-card-cargo { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: all 0.2s; }

/* Novo: Botão remover */
#pnia-mod12-wrap .pnia-btn-remove-cargo { position: absolute; top: 5px; right: 5px; background: none; border: none; color: #f87171; cursor: pointer; font-size: 20px; opacity: 0; }
#pnia-mod12-wrap .pnia-card-cargo:hover .pnia-btn-remove-cargo { opacity: 1; }

/* Novo: Estilo de edição inline */
#pnia-mod12-wrap [contenteditable="true"] { outline: none; border-bottom: 1px dashed transparent; transition: all 0.2s; }
#pnia-mod12-wrap [contenteditable="true"]:hover { border-bottom-color: #3b82f6; background-color: #f9fafb; }
#pnia-mod12-wrap [contenteditable="true"]:focus { border-bottom-style: solid; background-color: #fff; }
#pnia-mod12-wrap [contenteditable="true"]:empty:before { content: attr(data-placeholder); color: #9ca3af; font-style: italic; }

#pnia-mod12-wrap .pnia-cargo-titulo { margin: 0 0 10px 0; color: #111827; font-size: 1.1em; border-bottom: 2px solid #e5e7eb; padding-bottom: 5px; min-height: 1.2em; }
#pnia-mod12-wrap .pnia-card-cargo p { margin: 8px 0 0 0; font-size: 0.9em; color: #4b5563; }
#pnia-mod12-wrap .pnia-mod-actions { display: flex; gap: 10px; margin-top: 30px; border-top: 1px solid #e5e7eb; padding-top: 20px; }
/* ── Header do editor com botão regenerar ── */
#pnia-mod12-wrap .pnia-mod12-editor-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

/* ── Botão Regenerar com IA ── */
#pnia-mod12-wrap .pnia-btn-ia-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f3ff;
    color: #6d28d9;
    border: 1.5px solid #c4b5fd;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
#pnia-mod12-wrap .pnia-btn-ia-sm:hover {
    background: #ede9fe;
    border-color: #7c3aed;
    color: #5b21b6;
}
#pnia-mod12-wrap .pnia-btn-ia-sm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
