#ari-help-button {
    border: none;
    background: #ffffff;
    color: #1f2937;
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
    cursor: pointer;
    margin-left: 8px;
}

#ari-help-button:hover {
    background: #f3f4f6;
}

#ari-help-button.scu-side-button {
    width: 40px;
    height: 40px;
    right: 2%;
    margin-left: 0;
    background: #c4c4c4;
    color: #ffffff;
}

#ari-help-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: 80vh;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(15, 23, 42, 0.12);
    overflow: hidden;
    display: none;
    z-index: 9999;
}

#ari-help-panel.is-open {
    display: flex;
    flex-direction: column;
}

.ari-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f7f7fb;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ari-help-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.ari-help-close {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: #4b5563;
}

.ari-help-search {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.ari-help-search input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
}

.ari-help-home {
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
}

.ari-help-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.ari-help-slider {
    display: flex;
    width: 200%;
    flex: 1;
    transition: transform 0.35s ease;
    min-height: 0;
}

#ari-help-panel.is-post .ari-help-slider {
    transform: translateX(-50%);
}

.ari-help-tree-pane,
.ari-help-post-pane {
    width: 50%;
    padding: 12px 16px;
    overflow-y: auto;
}

.ari-help-tree-pane {
    background: #ffffff;
}

.ari-help-post-pane {
    background: #fcfcff;
}

.ari-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ari-tree-node {
    margin: 4px 0;
}

.ari-tree-category {
    border-left: 2px solid rgba(59, 130, 246, 0.15);
    padding-left: 6px;
}

.ari-tree-label {
    cursor: pointer;
    font-size: 13px;
    color: #1f2937;
}

.ari-tree-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    margin-right: 4px;
    color: #6b7280;
}

.ari-tree-children {
    list-style: none;
    margin: 4px 0 4px 14px;
    padding: 0;
    display: none;
}

.ari-tree-category.is-open > .ari-tree-children {
    display: block;
}

.ari-tree-post {
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    color: #374151;
}

.ari-tree-post:hover {
    background: #f3f4f6;
}

.ari-post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ari-post-back {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #2563eb;
}

.ari-post-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.ari-post-content {
    font-size: 14px;
    color: #1f2937;
}

.ari-bubble {
    background: #dcf8c6;
    border-radius: 20px;
    padding: 12px 14px;
    max-width: 80%;
    margin: 12px 0 12px auto;
    display: inline-block;
    clear: both;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.ari-bubble-text {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 8px;
}

.ari-bubble-actions {
    display: flex;
    gap: 8px;
}

.ari-bubble-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
}

.ari-bubble-btn-edit {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid rgba(15, 23, 42, 0.15);
}

.ari-bubble-btn-send {
    background: #2563eb;
    color: #ffffff;
}

.ari-bubble-status {
    margin-top: 6px;
    font-size: 11px;
    color: #2563eb;
    display: none;
}

.ari-assistant-selector {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 14px;
    max-width: 80%;
    margin: 12px 0 12px auto;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.ari-assistant-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.ari-assistant-select.is-empty .ari-assistant-value {
    color: #9ca3af;
    font-weight: 500;
}

.ari-assistant-value {
    font-weight: 600;
}

.ari-assistant-caret {
    font-size: 12px;
    opacity: 0.7;
}

.ari-assistant-btn-select {
    align-self: flex-start;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    background: #2563eb;
    color: #ffffff;
}

.ari-bubble.is-prepared .ari-bubble-status {
    display: block;
}

.ari-bubble.is-sent .ari-bubble-status {
    display: block;
    color: #16a34a;
}

.ari-help-toast {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.ari-help-toast.is-visible {
    opacity: 1;
}

.ari-config {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ari-config select {
    max-width: 320px;
}

@media (max-width: 600px) {
    #ari-help-panel {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }
}
