#dsac-chat {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.dsac-messages {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.dsac-message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.dsac-message.user {
    align-items: flex-end;
}

.dsac-message.assistant {
    align-items: flex-start;
}

.dsac-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
}

.dsac-message.user .dsac-bubble {
    background: #0066ff;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.dsac-message.assistant .dsac-bubble {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.dsac-bubble pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
    font-size: 13px;
}

.dsac-bubble code {
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.dsac-message.user .dsac-bubble code {
    background: rgba(255,255,255,0.2);
}

.dsac-input-area {
    display: flex;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

#dsac-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 12px 18px;
    font-size: 15px;
    resize: none;
    outline: none;
    font-family: inherit;
    max-height: 120px;
    line-height: 1.4;
}

#dsac-input:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 2px rgba(0,102,255,0.1);
}

#dsac-send {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #0066ff;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

#dsac-send:hover {
    background: #0052cc;
}

#dsac-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#dsac-send svg {
    width: 20px;
    height: 20px;
}

.dsac-typing {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.dsac-typing span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.dsac-typing span:nth-child(2) { animation-delay: 0.2s; }
.dsac-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.dsac-error {
    color: #dc3232;
    font-size: 14px;
}
