.codex-actions {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.btn-codex {
    flex: 1;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #116466, #0b8f87);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(11, 143, 135, 0.24);
}

.btn-codex:disabled {
    opacity: 0.65;
    box-shadow: none;
}

.btn-codex-settings {
    flex: 0 0 auto;
    min-height: 48px;
}

.codex-answer {
    margin: 12px 0;
    padding: 14px;
    border: 1px solid #a6ddd8;
    border-radius: 12px;
    background: #f3fbfa;
    color: #173b39;
}

.codex-answer[data-state="error"] {
    border-color: #e2aaa4;
    background: #fff4f2;
    color: #7a2922;
}

.codex-answer-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

#codexAnswerModel {
    color: #5e7775;
    font-size: 0.75rem;
}

.codex-answer-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.7;
    font-size: 0.98rem;
}

.codex-followups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.btn-codex-sub {
    border: 1px solid #0b8f87;
    border-radius: 10px;
    padding: 9px 12px;
    color: #08665f;
    background: #fff;
    font-weight: 700;
}

@media (max-width: 520px) {
    .codex-actions {
        align-items: stretch;
    }

    .btn-codex-settings {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.85rem;
    }
}
