.ia22-chatbot {
    max-width: 980px;
    margin: 24px auto;
}

.ia22-chatbot-card {
    background: #ffffff;
    border: 1px solid #e2e6ea;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ia22-chatbot-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

#my-openai-chatbot-input {
    width: 100%;
    min-height: 110px;
    padding: 12px;
    border: 1px solid #cfd7df;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.45;
    box-sizing: border-box;
}

.ia22-chatbot-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.ia22-chatbot-actions button {
    border: 0;
    border-radius: 9px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 700;
}

.ia22-primary {
    background: #1d4ed8;
    color: #fff;
}

.ia22-primary:disabled {
    opacity: 0.7;
    cursor: wait;
}

.ia22-secondary {
    background: #eef2f7;
    color: #111827;
}

.ia22-loading {
    margin-top: 14px;
    font-weight: 700;
    animation: ia22Blink 1.2s ease-in-out infinite;
}

@keyframes ia22Blink {
    50% { opacity: 0.45; }
}

#loading-seconds {
    display: inline-block;
    min-width: 24px;
    text-align: right;
    font-size: inherit;
    margin-left: 6px;
}

.ia22-chatbot-response {
    display: none;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #d9e2ec;
    background: #f8fafc;
    border-radius: 12px;
    min-height: 180px;
    max-height: 720px;
    overflow-y: auto;
    line-height: 1.65;
    white-space: normal;
}

.ia22-chatbot-response h1,
.ia22-chatbot-response h2,
.ia22-chatbot-response h3 {
    margin: 18px 0 8px;
    line-height: 1.25;
}

.ia22-chatbot-response p {
    margin: 0 0 14px;
}

.ia22-chatbot-response ul,
.ia22-chatbot-response ol {
    margin: 0 0 14px 24px;
}

.ia22-token-usage {
    margin-top: 10px;
    color: #475569;
    font-size: 14px;
}

.ia22-error {
    color: #b91c1c;
    font-weight: 700;
}

.ia22-agent-select {
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid #cfd7df;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 8px;
    background: #fff;
}

.ia22-agent-description {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-left: 4px solid #1d4ed8;
    background: #eef4ff;
    color: #334155;
    border-radius: 8px;
    font-size: 14px;
}
