.sco-root {
    --sco-color: #1b2551;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1d2926;
    text-align: left
}

.sco-root * {
    box-sizing: border-box
}

.sco-root [hidden] {
    display: none !important
}

.sco-floating {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 99999
}

.imgchat {
    filter: brightness(0) invert(1);
}

.sco-root button {
    font: inherit;
    cursor: pointer;
    border: 0;
    border-radius: 100px 0 0 0;
    padding: 20px 30px 15px 40px;
    background: #d43072;
    color: #fff;
    line-height: 1.4
}
.btnsend {
border-radius: 10px !important;
padding: 16px 20px  !important;
}
.sco-root button:disabled {
    opacity: .55;
    cursor: wait
}

.sco-root button:focus-visible,
.sco-root textarea:focus-visible,
.sco-root a:focus-visible {
    outline: 3px solid #c58b2c;
    outline-offset: 3px
}

.sco-launch {
    box-shadow: 0 6px 24px #0002
}

.sco-panel {
    background: #fff;
    border: 1px solid #dce6e1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 60px #0002;
    width: 490px;
    max-width: calc(100vw - 50px)
}

.sco-floating .sco-panel {
    position: absolute;
    bottom: 54px;
    right: 25px;
    display: flex;
    flex-direction: column;
    height: min(675px, calc(100dvh - 110px));
    max-height: calc(100dvh - 110px);
    overflow: auto;
}

.sco-floating .sco-panel > :not(.sco-log) {
    flex-shrink: 0;
}

.sco-floating .sco-log {
    flex: 1 1 auto;
    height: auto;
    min-height: 120px;
}

.sco-inline {
    max-width: 700px;
    margin: 24px auto
}

.sco-inline .sco-panel {
    width: 100%;
    max-width: none
}

.sco-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: #efefef;
}

.sco-panel header strong {
    font-size: 16px
}

.sco-root .sco-close {
    background: #d7d7d7;
        color: #1b2551;
        border-radius: 5px;
font-size: 15px;
    padding: 5px 10px;
}

.sco-log {
    height: 420px;
    overflow: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.sco-message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 12px;
    border-radius: 12px;
    background: #efefef;
    max-width: 96%
}

.sco-user {
    background: #1b2551;
    color: #fff;
    align-self: flex-end
}

.sco-error {
    background: #fff1ed;
    color: #8c3021
}

.sco-message a {
    color: #1b2551;
    text-decoration: underline
}

.sco-message ul {
    white-space: normal;
    padding-left: 20px;
    margin: 6px 0 0
}

.sco-sources-label {
    display: block;
    margin-top: 12px;
    font-size: 12px
}

.sco-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 12px
}

.sco-root .sco-tools button {
    font-size: 12px;
    background: #57ba75;
        color: #ffffff;
    padding: 6px 10px;
transition: 0.2s ease;
border-radius: 10px !important;
}

.sco-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 16px
}

.sco-label {
    grid-column: 1/-1;
    font-size: 12px
}

.sco-root textarea {
    resize: vertical;
    min-height: 60px;
    max-height: 140px;
    width: 100%;
    font: inherit;
    background: #fff;
    color: #1d2926;
    border: 1px solid #c6d7ce;
    border-radius: 10px;
    padding: 10px;
    margin: 0
}

.sco-form button {
    align-self: end
}

.sco-info {
    font-size: 11px;
    color: #596c62;
    padding: 12px 16px;
    margin: 0
}

@media(max-width:480px) {
    .sco-floating {
        right: 14px;
        bottom: 14px
    }

    .sco-floating .sco-panel {
        right: 0;
        max-width: calc(100vw - 28px);
        height: min(740px, calc(100vh - 124px));
        height: min(740px, calc(100dvh - 124px));
        max-height: calc(100dvh - 124px);
    }

    .sco-log {
        height: 240px
    }
}

@media(prefers-reduced-motion:reduce) {
    .sco-root * {
        scroll-behavior: auto
    }
}

.sco-cache-info {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    opacity: .75
}

.sco-tools {
    flex-wrap: wrap
}
.sco-prompts { position: relative; max-width: 100%; }
.sco-prompts-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 2;
    width: 240px;
    max-width: calc(100vw - 80px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: #fff;
    border: 1px solid #dce6e1;
    border-radius: 12px;
    box-shadow: 0 8px 24px #0002;
}
.sco-root .sco-prompts-panel button { text-align: left; padding: 10px 12px; }
.sco-root .sco-tools button:hover:not(:disabled) { background: #434549; }
