.kaice-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 0;
}

/* main-contents 내부에서는 마진 없음 */
.main-contents .kaice-header-actions {
    margin-bottom: 0;
}

/* 뒤로 가기 버튼 없이 action-buttons만 있을 때 우측 정렬 */
.kaice-header-actions.end {
    justify-content: flex-end;
}

/* 내부가 비어있을 때 숨김 */
.kaice-header-actions:empty,
.kaice-header-actions:not(:has(*)) {
    display: none;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    line-height: 1;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kaice-wrap {
    background: #fff;
    border-radius: var(--theme-card-radius);
    border: solid 1px var(--theme-item-border);
    padding: 30px;
}

.kaice-input-section {
    margin-bottom: 30px;
}

.kaice-input-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.kaice-publish-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ===========================================
   반응형
   =========================================== */

@media (max-width: 768px) {
    .kaice-wrap {
        padding: var(--theme-mobile-content-padding);
    }
}
