.eclipse-assistant-toggle {
    position: fixed;
    right: 82px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    min-height: 50px;
    padding: 0 17px;
    border: 1px solid rgba(225, 190, 142, 0.6);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(55, 35, 22, 0.98), rgba(21, 12, 8, 0.98));
    color: #eccb99;
    font: 700 12px/1 Inter, sans-serif;
    letter-spacing: 0.8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(225, 190, 142, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.eclipse-assistant-toggle:hover {
    transform: translateY(-3px);
    border-color: #e7c38e;
}

.eclipse-assistant-toggle svg {
    width: 21px;
    height: 21px;
}

.eclipse-assistant {
    position: fixed;
    right: 24px;
    bottom: 86px;
    z-index: 901;
    display: flex;
    flex-direction: column;
    width: min(410px, calc(100vw - 28px));
    height: min(630px, calc(100vh - 120px));
    border: 1px solid rgba(225, 190, 142, 0.38);
    border-radius: 13px;
    background: rgba(17, 10, 7, 0.985);
    color: #d9c9b3;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.82);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.eclipse-assistant.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.assistant-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(225, 190, 142, 0.22);
    background: linear-gradient(135deg, #34241a, #1b100b);
}

.assistant-avatar {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border: 1px solid #aa7f4e;
    border-radius: 50%;
    color: #e9c489;
    font: 700 19px Cinzel, serif;
    box-shadow: inset 0 0 15px rgba(225, 190, 142, 0.12);
}

.assistant-head-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.assistant-head-copy b {
    color: #edcf9f;
    font: 700 14px Cinzel, serif;
    letter-spacing: 1px;
}

.assistant-head-copy span {
    color: #9d8d7c;
    font-size: 11px;
}

.assistant-close {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #a79583;
    font-size: 23px;
    cursor: pointer;
}

.assistant-messages {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #6f5138 #17100c;
}

.assistant-message {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 9px;
    font: 13px/1.55 Inter, sans-serif;
    white-space: pre-line;
}

.assistant-message.bot {
    align-self: flex-start;
    border: 1px solid #473327;
    border-top-left-radius: 2px;
    background: #241710;
}

.assistant-message.user {
    align-self: flex-end;
    border: 1px solid #765737;
    border-bottom-right-radius: 2px;
    background: #49311f;
    color: #f0dbc0;
}

.assistant-result {
    display: grid;
    gap: 9px;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #4c382b;
    border-radius: 8px;
    background: #1b120e;
}

.assistant-result-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #e8c58f;
    font-weight: 700;
}

.assistant-result-title code {
    color: #8f7d6a;
    font-size: 10px;
}

.assistant-result ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.assistant-result li {
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(225, 190, 142, 0.1);
    color: #cbbba5;
    font-size: 12px;
    line-height: 1.45;
}

.assistant-result li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.assistant-result small {
    display: block;
    margin-top: 2px;
    color: #8f7e6d;
}

.assistant-section-link {
    display: inline-flex;
    justify-content: center;
    padding: 8px 11px;
    border: 1px solid #75573a;
    border-radius: 4px;
    color: #e5bd82;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.assistant-suggestions {
    display: flex;
    gap: 7px;
    padding: 0 14px 11px;
    overflow-x: auto;
}

.assistant-suggestion {
    flex: 0 0 auto;
    width: auto;
    padding: 7px 10px;
    border: 1px solid #5a422f;
    border-radius: 14px;
    background: #20150f;
    color: #cdb18b;
    font-size: 11px;
    cursor: pointer;
}

.assistant-form {
    display: flex;
    gap: 8px;
    padding: 11px;
    border-top: 1px solid rgba(225, 190, 142, 0.2);
    background: #160e0a;
}

.assistant-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #493629;
    border-radius: 6px;
    background: #0f0907;
    color: #ebd7bc;
    padding: 11px 12px;
    outline: none;
}

.assistant-input:focus {
    border-color: #b88a53;
}

.assistant-send {
    width: 43px;
    flex: 0 0 43px;
    border: 1px solid #c09157;
    border-radius: 6px;
    background: #d4aa70;
    color: #21140c;
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .eclipse-assistant-toggle {
        right: 72px;
        bottom: 14px;
        min-width: 50px;
        padding: 0 14px;
    }

    .eclipse-assistant-toggle span {
        display: none;
    }

    .eclipse-assistant {
        right: 14px;
        bottom: 76px;
        height: min(620px, calc(100vh - 95px));
    }
}
