.chat-messages {
    flex: 1;

    min-height: 0;

    padding: 24px;

    overflow-y: auto;
}


.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 560px;

    margin:
        8vh auto 0;

    text-align: center;
}


.welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin-bottom: 14px;

    border-radius: 12px;

    background: rgba(94, 234, 212, 0.08);

    color: var(--accent);

    font-size: 20px;
}


.welcome-message h2 {
    margin: 0;

    font-size: 20px;
}


.welcome-message p {
    margin: 8px 0 22px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.7;
}


.suggestion-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(150px, 1fr));

    gap: 7px;

    width: 100%;
}


.suggestion-button {
    padding: 10px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: var(--surface);

    color: var(--text-secondary);

    font-size: 10px;

    text-align: left;
}


.suggestion-button:hover {
    border-color: var(--border-light);

    background: var(--surface-2);

    color: var(--text);
}


.message {
    display: flex;

    max-width: 820px;

    margin-bottom: 20px;
}


.user-message {
    justify-content: flex-end;
}


.user-message .message-content {
    max-width: 70%;

    padding: 10px 13px;

    border-radius:
        12px 12px 3px 12px;

    background: var(--surface-3);

    border:
        1px solid var(--border);

    color: var(--text);

    font-size: 12px;

    line-height: 1.6;
}


.agent-message {
    gap: 9px;
}


.agent-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;

    flex-shrink: 0;

    border-radius: 7px;

    background: rgba(94, 234, 212, 0.09);

    color: var(--accent);

    font-size: 12px;
}


.message-wrapper {
    max-width: 78%;
}


.agent-message .message-content {
    color: var(--text-secondary);

    font-size: 12px;

    line-height: 1.7;
}


.message-meta {
    margin-top: 7px;

    color: var(--text-muted);

    font-size: 9px;
}


.message-meta strong {
    color: var(--accent);
}


.chat-input-area {
    padding: 13px 16px 11px;

    border-top:
        1px solid var(--border);

    background: rgba(13, 19, 26, 0.7);
}


#chat-form {
    display: flex;

    gap: 8px;

    align-items: flex-end;
}


#chat-input {
    min-height: 40px;
    max-height: 160px;

    flex: 1;

    resize: none;

    padding: 11px 12px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    outline: none;

    background: var(--surface);

    color: var(--text);

    font-size: 12px;

    line-height: 1.5;
}


#chat-input::placeholder {
    color: var(--text-muted);
}


#chat-input:focus {
    border-color:
        rgba(94, 234, 212, 0.45);
}


#send-button {
    display: flex;
    align-items: center;

    gap: 7px;

    height: 40px;

    padding: 0 13px;

    border: 0;
    border-radius: 9px;

    background: var(--accent);

    color: #09211e;

    font-size: 11px;
    font-weight: 700;
}


#send-button:hover {
    background: var(--accent-dark);
}


#send-button:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}


.send-icon {
    font-size: 12px;
}


.input-hint {
    margin-top: 6px;

    color: var(--text-muted);

    font-size: 8px;

    text-align: right;
}


.conversation-id {
    max-width: 320px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;
}


.route-badge {
    padding: 4px 7px;

    border-radius: 5px;

    background: rgba(94, 234, 212, 0.08);

    color: var(--accent);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.05em;
}


.typing-indicator {
    display: flex;

    gap: 4px;

    padding: 9px 0;
}


.typing-indicator span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--text-muted);

    animation:
        typing 1.2s infinite ease-in-out;
}


.typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}


.typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}


@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);

        opacity: 0.4;
    }

    30% {
        transform: translateY(-3px);

        opacity: 1;
    }
}


@media (max-width: 600px) {

    .chat-messages {
        padding: 15px;
    }

    .suggestion-grid {
        grid-template-columns: 1fr;
    }

    .user-message .message-content,
    .message-wrapper {
        max-width: 90%;
    }

    #send-button span:first-child {
        display: none;
    }
}