
.ai-chat-bubble .ai-clarification-chip::before {
    content: none;
}

.ai-chat-bubble .ai-clarification-chip:hover {
    background: #eef7f2;
    transform: none;
}

.ai-chat-composer {
    flex: 0 0 auto;
    padding: 14px;
    border: 1px solid rgba(21, 83, 74, 0.12);
    border-radius: 8px;
    background: rgba(255, 253, 250, 0.96);
    box-shadow: 0 -14px 28px rgba(23, 54, 47, 0.07);
}

.ai-chat-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.ai-chat-input {
    min-height: 62px !important;
    max-height: 130px;
    resize: vertical;
    color: #16342f;
}

.ai-chat-input::placeholder {
    color: #5f7380;
    opacity: 1;
}

.ai-chat-send {
    min-height: 54px;
    width: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #0f766e;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.ai-chat-send:disabled {
    opacity: 0.62;
    cursor: wait;
}

.ai-chat-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    color: #4d5e67;
    font-size: 0.88rem;
}

.ai-conversation-failure {
    margin: 10px 0 8px;
}

.ai-conversation-failure .ai-chat-actions {
    margin-top: 0;
}

.ai-chat-meta a {
    color: #15534a;
    font-weight: 800;
}

.ai-chat-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-width: 42px;
}

.ai-chat-typing-wrap {
    display: grid;
    gap: 8px;
}

.ai-chat-wait-text {
    margin: 0;
    color: #40545f;
    font-size: 0.94rem;
    line-height: 1.45;
}

.ai-chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8ca09a;
    animation: aiTyping 1s infinite ease-in-out;
}

.ai-chat-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.ai-chat-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes aiTyping {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
    40% { transform: translateY(-4px); opacity: 1; }
}

.ai-composer-card,
.ai-examples-card,
.ai-processing-shell,
.ai-summary-panel {
    padding: 22px;
}

.ai-field-label {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #163f39;
}

.ai-field-hint {
    margin-bottom: 14px;
}

.ai-textarea {
    width: 100%;
    min-height: 168px;
    padding: 18px 18px 16px;
    resize: vertical;
    border-radius: 20px;
    border: 1px solid rgba(21, 83, 74, 0.16);
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    font-size: 1rem;
    line-height: 1.65;
    color: #17332f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.ai-textarea:focus {
    border-color: rgba(21, 83, 74, 0.42);
    box-shadow: 0 0 0 5px rgba(21, 83, 74, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.ai-input-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: #5f665d;
    flex-wrap: wrap;
}

.ai-examples-head {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.ai-example-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-example-chip {
    display: flex;
    width: 100%;
    text-align: left;
    padding: 13px 14px;
    border: 1px solid rgba(21, 83, 74, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    color: #1b3d37;
    cursor: pointer;
    font: inherit;
    line-height: 1.5;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ai-chat-composer.is-waiting {
    pointer-events: none;
    opacity: 0.62;
}

.ai-chat-composer.is-waiting .ai-chat-input,
.ai-chat-composer.is-waiting .ai-chat-send {
    cursor: wait;
}
