.atabot-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #e85222;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    cursor: pointer;
}

.atabot-toggle:hover { background: #c9431a; }

.atabot-panel {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 10000;
    width: 360px;
    max-width: calc(100vw - 24px);
    height: 500px;
    max-height: calc(100vh - 112px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    color: #333;
}

.atabot-panel[hidden] { display: none; }

.atabot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #00558c;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.atabot-close {
    border: 0;
    background: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.atabot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f5f5f5;
}

.atabot-message {
    margin-bottom: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    overflow-wrap: break-word;
}

.atabot-message p { margin: 4px 0 0; }
.atabot-answer { white-space: pre-line; }
.atabot-bot { margin-right: 30px; background: #fff; border: 1px solid #e2e2e2; }
.atabot-user { margin-left: 50px; background: #00558c; color: #fff; }
.atabot-message a { color: #c9431a; text-decoration: underline; }
.atabot-quote { padding-left: 8px; border-left: 3px solid #e85222; }

.atabot-starter {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 6px 10px;
    border: 1px solid #00558c;
    border-radius: 16px;
    background: #fff;
    color: #00558c;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.atabot-starter:hover { background: #00558c; color: #fff; }

.atabot-form {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 10px 12px 4px;
    border-top: 1px solid #e2e2e2;
}

.atabot-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.atabot-send {
    padding: 8px 16px;
    border: 0;
    border-radius: 5px;
    background: #00558c;
    color: #fff;
    cursor: pointer;
}

.atabot-send:disabled { opacity: .6; cursor: default; }

.atabot-note {
    padding: 0 12px 8px;
    color: #777;
    font-size: 11px;
}

.atabot-toggle:focus-visible,
.atabot-panel button:focus-visible,
.atabot-input:focus-visible {
    outline: 3px solid #f6b73c;
    outline-offset: 1px;
}
