/* TLGAWY Chat 10.1 V13.7
   Fixes requested from the marked screenshots:
   1) profile toolbar buttons are real clickable controls above every visual effect,
   2) More / Saraha / Edit / Actions use the native profile menu behavior and neutral colors,
   3) moving profile message starts from the LEFT side. */

.v130_reference_profile.v137_profile_fixed {
    position: relative !important;
    isolation: isolate !important;
}

/* The animated effect still covers the profile, but never captures a click. */
.v130_reference_profile.v137_profile_fixed > .v137_profile_effect_layer,
.v130_reference_profile.v137_profile_fixed > .v137_profile_effect_layer * {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* Toolbar is now a DIRECT child of the profile, so no effect layer can sit above its click area. */
.v130_reference_profile.v137_profile_fixed > .v137_profile_toolbar {
    position: absolute !important;
    top: 8px !important;
    left: 10px !important;
    right: auto !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: row !important;
    direction: ltr !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

.v130_reference_profile.v137_profile_fixed > .v137_profile_toolbar .v137_toolbar_btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    z-index: 1001 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 40px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}
.v130_reference_profile.v137_profile_fixed > .v137_profile_toolbar .v137_toolbar_btn i {
    display: block !important;
    color: #fff !important;
    background: transparent !important;
    pointer-events: none !important;
}
.v130_reference_profile.v137_profile_fixed > .v137_profile_toolbar .v137_toolbar_close { order: 1 !important; }
.v130_reference_profile.v137_profile_fixed > .v137_profile_toolbar .v137_toolbar_menu { order: 2 !important; }
.v130_reference_profile.v137_profile_fixed > .v137_profile_toolbar .v137_toolbar_gallery { order: 3 !important; }

/* Moving message: begin from the left and travel to the right. */
.v130_reference_profile.v137_profile_fixed .v130_message_row,
.v130_reference_profile.v137_profile_fixed .pro_msg {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.v130_reference_profile.v137_profile_fixed .pro_msg marquee {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-inline-start: 0 !important;
    padding-inline-end: 0 !important;
    box-sizing: border-box !important;
    direction: ltr !important;
    text-align: left !important;
    white-space: nowrap !important;
}
.v130_reference_profile.v137_profile_fixed .pro_msg marquee > span {
    display: inline-block !important;
    direction: rtl !important;
    unicode-bidi: isolate !important;
    text-align: right !important;
    background: transparent !important;
}

/* The four marked quick controls use the same neutral profile palette — no blue labels. */
.v130_reference_profile.v137_profile_fixed .v137_profile_quick_tools {
    position: relative !important;
    z-index: 120 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    background: #fff !important;
    border-top: 1px solid rgba(0,0,0,.06) !important;
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
    pointer-events: auto !important;
}
.v130_reference_profile.v137_profile_fixed .v137_profile_quick_tools > .v137_profile_tool {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    z-index: 121 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-width: 82px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 7px 12px !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 18px !important;
    background: #f4f4f4 !important;
    color: #333 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.12) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}
.v130_reference_profile.v137_profile_fixed .v137_profile_quick_tools > .v137_profile_tool i,
.v130_reference_profile.v137_profile_fixed .v137_profile_quick_tools > .v137_profile_tool span {
    color: #333 !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
}
.v130_reference_profile.v137_profile_fixed .v137_profile_quick_tools > .v137_profile_tool.modal_selected,
.v130_reference_profile.v137_profile_fixed .v137_profile_quick_tools > .v137_profile_tool:hover,
.v130_reference_profile.v137_profile_fixed .v137_profile_quick_tools > .v137_profile_tool:focus,
.v130_reference_profile.v137_profile_fixed .v137_profile_quick_tools > .v137_profile_tool:active {
    background: #e8e8e8 !important;
    border-color: #d5d5d5 !important;
    color: #222 !important;
}

/* Ensure native profile zones switch cleanly when More/Saraha are pressed. */
.v130_reference_profile.v137_profile_fixed #mprofilemenu > .modal_zone {
    position: relative !important;
    z-index: 20 !important;
}

@media screen and (max-width: 640px) {
    .v130_reference_profile.v137_profile_fixed > .v137_profile_toolbar {
        top: 6px !important;
        left: 7px !important;
        width: 108px !important;
        min-width: 108px !important;
        max-width: 108px !important;
        height: 38px !important;
    }
    .v130_reference_profile.v137_profile_fixed > .v137_profile_toolbar .v137_toolbar_btn {
        flex-basis: 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        line-height: 36px !important;
        font-size: 18px !important;
    }
    .v130_reference_profile.v137_profile_fixed .v137_profile_quick_tools {
        gap: 6px !important;
        padding: 8px 7px !important;
    }
    .v130_reference_profile.v137_profile_fixed .v137_profile_quick_tools > .v137_profile_tool {
        min-width: 72px !important;
        min-height: 32px !important;
        padding: 6px 9px !important;
        font-size: 11px !important;
    }
}
