/* AI HTML 작성 모드 */
.ai-write-mode {
    display: flex;
    gap: 8px;
    margin: 0 0 15px;
}

.ai-mode-button {
    padding: 11px 18px;
    border: 1px solid #ccc;
    background: #fff;
    color: #555;
    border-radius: 5px;
    cursor: pointer;
}

.ai-mode-button.is-active {
    border-color: #259b16;
    background: #259b16;
    color: #fff;
}

.ai-html-guide {
    margin: 0 0 10px;
    color: #666;
    font-size: 15px;
}

.ai-html-textarea {
    display: block;
    width: 100%;
    min-height: 520px;
    padding: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #171717;
    color: #f3f3f3;
    font: 14px/1.6 Consolas, Monaco, monospace;
    resize: vertical;
    box-sizing: border-box;
    white-space: pre;
    tab-size: 4;
}

.ai-content-box {
    width: 100%;
    padding: 0;
    overflow: visible;
}

.ai-html-render {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.ai-html-error {
    padding: 30px;
    border: 1px solid #e3a1a1;
    background: #fff5f5;
    color: #a02020;
    text-align: center;
}

@media (max-width: 767px) {
    .ai-write-mode {
        flex-wrap: wrap;
    }

    .ai-mode-button {
        flex: 1;
        min-width: 130px;
    }

    .ai-html-textarea {
        min-height: 360px;
        font-size: 12px;
    }
}