  #schat-launcher {
    position: fixed;
    bottom: 65px;
    right: 24px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--schat-color, #0a7a5f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 999999;
    font-size: 26px;
    transition: transform 0.15s ease;
}
#schat-launcher:hover { transform: scale(1.06); }

#schat-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 460px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
#schat-window.open { display: flex; }

#schat-header {
    background: var(--schat-color, #0a7a5f);
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}
#schat-close { cursor: pointer; font-size: 18px; opacity: 0.9; }

#schat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f7f7f8;
}

.schat-msg { margin-bottom: 10px; display: flex; }
.schat-msg.user { justify-content: flex-end; }
.schat-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 13.5px;
    line-height: 1.4;
    white-space: pre-wrap;
}
.schat-msg.user .schat-bubble { background: var(--schat-color, #0a7a5f); color: #fff; border-bottom-right-radius: 3px; }
.schat-msg.bot .schat-bubble { background: #fff; color: #222; border: 1px solid #e3e3e3; border-bottom-left-radius: 3px; }

.schat-sources { margin-top: 6px; font-size: 11.5px; }
.schat-sources a { color: var(--schat-color, #0a7a5f); text-decoration: none; }
.schat-sources a:hover { text-decoration: underline; }

#schat-inputbar {
    display: flex;
    border-top: 1px solid #eee;
    padding: 8px;
    gap: 6px;
}
#schat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13.5px;
    outline: none;
}
#schat-send {
    background: var(--schat-color, #0a7a5f);
    color: #000000;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 15px;
}
#schat-send:disabled { opacity: 0.5; cursor: default; }

.schat-typing { font-size: 12px; color: #888; padding: 4px 12px; }
