#pisachub-ai-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1a4d3e;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

#pisachub-ai-button:hover {
    transform: scale(1.05);
}

#pisachub-ai-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 360px;
    max-width: 90vw;
    height: 500px;
    max-height: 75vh;
    background: #f7f3ea;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    z-index: 99999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#pisachub-ai-window.pisachub-open {
    display: flex;
}

#pisachub-ai-header {
    background: #1a4d3e;
    color: #fff;
    padding: 16px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#pisachub-ai-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    background: none;
    border: none;
    color: #fff;
}

#pisachub-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pisachub-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.pisachub-msg-user {
    align-self: flex-end;
    background: #1a4d3e;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.pisachub-msg-bot {
    align-self: flex-start;
    background: #fff;
    color: #1a4d3e;
    border-bottom-left-radius: 4px;
}

.pisachub-msg-loading {
    align-self: flex-start;
    background: #fff;
    color: #999;
    font-style: italic;
}

#pisachub-ai-input-area {
    display: flex;
    padding: 12px;
    gap: 8px;
    border-top: 1px solid #e0dcd0;
    background: #fff;
}

#pisachub-ai-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

#pisachub-ai-send {
    background: #1a4d3e;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 600;
}