#site-menu,
.money {
    display: none;
}

body #uservoice-feedback-tab {
    background-color: #a9a8a8 !important;
}

.great-job,
.profile-dropdown,
.update-level,
#connection-error,
#settings-container #settings section#avatar {
    display: none !important;
}

section#groups {
    width: 351px !important;
}

.switcher {
    text-align: left !important;
}

ul.subjects-menu {
    left: 0px !important;
    width: 348px !important;
    background-color: #869AA5 !important;
}

.update-list-container {
    background-color: #869AA5 !important;
}

#group-breadcrumb li button span {
    color: #fff !important;
    max-height: 30px;
    overflow: hidden;
    display: inline-block;
    width: 100% !important;
}

#header-container,
body {
    background-color: #E5ECF2 !important;
}

#open-update h2 {
    color: white !important;
    text-shadow: none !important;
}

#open-update .update .state button {
    border-radius: 20px !important;
}

.auto-load img,
img.ajax {
    height: 15px;
    width: 15px;
}

img.avatar,
.avatar-link {
    border-radius: 5pc !important;
}

#loading-overlay {
    background-color: #E5ECF2 !important
}

.filters>li button.current {
    background: #98CC9C !important;
    color: white !important;
    text-shadow: none !important;
}

.filters>li button {
    background: rgba(0, 0, 0, 0) !important;
    color: white !important;
    text-shadow: none !important;
}

.filters>li button.current::after {
    border: none !important;
}

.moderator .user-link,
.moderator.user-link,
div#online-users ul li.moderator a.user-link>img.avatar,
#online-users a.user-link.moderator>img.avatar,
li.update>a.user-link.moderator>img.avatar,
li.reply>a.user-link.moderator>img.avatar,
div.update-content>h2>a.user-link.moderator>img.avatar {
    color: teal !important;
    border-color: teal !important;
}

.moderator.avatar-link .level,
.moderator .level {
    border-color: turquoise !important;
    background-color: teal !important;
}

div.short-profile .the-profile h5 .moderator {
    color: teal !important;
}

section.update img.medals {
    width: 18px;
    height: 18px;
    left: 5px;
    top: 0px !important;
}

#next-steps,
#online-users {
    background-color: #f9fbfd !important;
}

.username.tier-1,
.tier-1 .user-link,
.component.tier-1 .title {
    color: orange !important;
}

.tier-1.level {
    background: #e8921b !important;
}

.component.tier-1,
.tier-1 .level {
    background: orange !important;
}

.component.tier-1 .score {
    background: #e8921b !important;
}

.username.tier-2,
.tier-2 .user-link,
.component.tier-2 .title {
    color: #f36100 !important;
}

.tier-2.level {
    background: #c10101 !important;
}

.component.tier-2,
.tier-2 .level {
    background: #f36100 !important;
}

.component.tier-2 .score {
    background: #c10101 !important;
}

.username.tier-3,
.tier-3 .user-link,
.component.tier-3 .title {
    color: #872af0 !important;
}

.tier-3.level {
    background: darkviolet !important;
}

.component.tier-3,
.tier-3 .level {
    background: #872af0 !important;
}

.component.tier-3 .score {
    background: darkviolet !important;
}

.username.tier-4,
.tier-4 .user-link,
.component.tier-4 .title {
    color: #23b7f3 !important;
}

.tier-4.level {
    background: #1691c3 !important;
}

.component.tier-4,
.tier-4 .level {
    background: #23b7f3 !important;
}

.component.tier-4 .score {
    background: #1691c3 !important;
}

.username.moderator,
.moderator .user-link {
    color: teal !important;
}

.moderator.avatar-link .level,
.moderator .level {
    background-color: teal !important;
}

.user-link.username.direct.this-user {
    color: white !important;
}

.list-of-buttons:hover {
    background-color: white !important;
    border-radius: 10px;
    margin-right: -20px !important;
    padding-right: 19px;
}

#group-breadcrumb .topic .subjects-menu li .list-of-buttons:hover button span {
    color: #869AA5 !important;
}

.body>b {
    font-weight: bold !important;
}

.body>i {
    font-style: italic !important;
}

.body>sub {
    vertical-align: sub !important;
    font-size: smaller !important;
}

.body>sup {
    vertical-align: sup !important;
    font-size: smaller !important;
}

.bbcode_spoiler {
    background: black !important;
}


/* div.bbcode_code {
     border: 1px solid blue;
     margin: 0.5em 0;
}
 div.bbcode_code_body {
     background-color: skyblue;
     color: black;
     font: 10pt monospace;
     padding: 0.5em 1em;
}
 div.bbcode_code_head {
     background-color: blue;
     color: white;
     font-weight: bold;
     padding: 0.25em 0.5em;
}
 */

xmp.code {
    border: 1px dashed #DCB;
    background-color: #FED;
    padding: 0.5em 1em;
    margin: 0 1em 1em 1em;
    page-break-inside: avoid;
    page-break-before: avoid;
}

div.output {
    border: 1px dashed #CDE;
    background-color: #E8F4FF;
    padding: 0.5em 1em;
    margin: 0 1em 1em 1em;
    page-break-inside: avoid;
    page-break-before: avoid;
}

div.code_header {
    font-weight: bold;
    margin: 1em 0 0.25em 1em;
    color: #630;
    page-break-inside: avoid;
    page-break-after: avoid;
}

div.output_header {
    font-weight: bold;
    margin: 1em 0 0.25em 1em;
    color: #036;
    page-break-inside: avoid;
    page-break-after: avoid;
}

div.tipbox {
    margin: 1em 3em;
    border: 1px solid #BBC;
    background-color: #DDE;
    padding: 0em 1em;
    position: relative;
    page-break-inside: avoid;
}

div.tipbox_header {
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    width: 5em;
    text-align: center;
    color: #336;
}

div.tipbox_star {
    font-size: 48pt;
    margin-bottom: -0.5em;
}

div.tipbox_content {
    margin-left: 5em;
}

div.tipbox_content2 {
    border-left: 1px dashed #BBC;
    padding-left: 1em;
}

table.class_containers {
    border-collapse: collapse;
}

table.class_containers th,
table.class_containers td {
    border: 1px solid #999;
    text-align: center;
}

table.class_containers th {
    background-color: #EEE;
    padding: 0.25em 0.5em;
}

table.class_containers th.empty {
    background: transparent;
    border: 0;
}

table.smiley_table {
    border-collapse: collapse;
    margin-bottom: 1em;
}

table.smiley_table th,
table.smiley_table td {
    border: 1px solid #999;
    text-align: left;
    background-color: #EEE;
    padding: 0.5em 1em;
}

table.smiley_table td {
    font: 10pt Courier, monospace, mono;
    white-space: pre;
}

table.smiley_table tbody th {
    text-align: center;
}

table.list_table {
    border-collapse: collapse;
    margin-bottom: 1em;
}

table.list_table th,
table.list_table td {
    border: 1px solid #999;
    text-align: left;
    background-color: #EEE;
    padding: 0.25em 0.5em;
}

table.list_table tbody th {
    text-align: center;
    font: 10pt Courier, monospace, mono;
}

p.bblib {
    margin-left: 2em;
    text-indent: -2em;
}

span.acronym {
    border-bottom: 1px dashed #090;
}

span.acronym:hover {
    color: #060;
    border-bottom: 1px dashed #6C6;
}

table.bbcode_columns {
    border-collapse: collapse;
    margin-top: 1em;
    margin-bottom: 1em;
}

table.bbcode_columns td.bbcode_column {
    padding-left: 1em;
    padding-right: 1em;
}

table.bbcode_columns td.bbcode_firstcolumn {
    border-left: 0;
    padding-left: 0;
}

div.bbcode_quote {
    border: 1px solid #68C;
    margin: 0.5em 0;
}

div.bbcode_quote_head {
    background-color: #68C;
    color: #FFF;
    font-weight: bold;
    padding: 0.25em 0.5em;
}

div.bbcode_quote_body {
    background-color: #F0F8FF;
    color: #000;
    padding: 0.5em 1em;
}

div.bbcode_quote_head a:link {
    color: #FF7;
}

div.bbcode_quote_head a:visited {
    color: #FF7;
}

div.bbcode_quote_head a:hover {
    color: #FFF;
    text-decoration: underline;
}

div.bbcode_quote_head a:active {
    color: #FFF;
    text-decoration: underline;
}

div.api {
    border: 1px solid #C0C8E0;
    background-color: #E0E8FF;
    color: #000;
    padding: 0.25em 1em;
    margin: 1em;
    font-family: verdana, arial, helvetica, sans-serif;
    page-break-inside: avoid;
}

div.api_head {
    font-size: 11pt;
    margin: 0.5em 2em;
    text-indent: -2em;
}

div.api_descr {
    margin: 0.5em 1em;
    border-bottom: 1px dotted #C0C8E0;
    border-top: 1px dotted #C0C8E0;
    padding: 0.5em 0;
}

div.api_info {
    margin: 0.5em 3em;
    text-indent: -2em;
}

div.api_info ul {
    margin: 0 0 0 1em;
    padding: 0;
    display: block;
    text-indent: 0;
}

div.api_info ul ul {
    margin: 0 0 0 3em;
}

div.api_info ul li {
    margin: 0.5em 0;
    padding: 0;
    display: list-item;
    list-style-type: disc;
}

div.api_info ul ul li {
    margin: 0;
    list-style-type: circle;
}

div.api_info_block {
    margin: 0.5em 1em;
    border-top: 1px dotted #C0C8E0;
    padding: 0.5em 0;
}

div.api_info_block_header {
    margin: 0.5em 0;
    font-weight: bold;
}

b {
    font-weight: bold !important;
}

i {
    font-style: italic !important;
}


/* .username.tier-1, .component.engagement.tier-1 .title, .component.problem-solving.tier-1 .title, .component.teamwork.tier-1 .title {
     color:#e8921b!important;
}
 .tier-1 .level, .tier-1.level {
     background:#e8921b!important;
}
 .component.engagement.tier-1,.component.problem-solving.tier-1,.component.teamwork.tier-1 {
     background:orange!important;
}
 .component.engagement.tier-1 .score, .component.problem-solving.tier-1 .score, .component.teamwork.tier-1 .score {
     background:#e8921b!important;
}
 .update-list-ul-wrapper {
     top:117px!important;
}
 #main-header {
     background-color:#869AA5;
}
 .moderator .user-link, .moderator.user-link, div#online-users ul li.moderator a.user-link>img.avatar, #online-users a.user-link.moderator>img.avatar, li.update>a.user-link.moderator>img.avatar, li.reply>a.user-link.moderator>img.avatar, div.update-content>h2>a.user-link.moderator>img.avatar {
     color:blue!important;
     border-color:blue!important;
}
 .moderator.avatar-link .level, .moderator .level {
     border-color:darkblue!important;
     background-color:blue!important;
}
 */


/*May be removed*/

li.update.post,
.update.open-update.post {
    border-radius: 10px;
}

.avatar.user-link,
.avatar.user-link img,
.give-medal {
    border-radius: 100px !important;
}

#updates.update-list-container,
.toggle-chat,
.chat-content,
ul.update-users {
    border-radius: 20px 20px 0 0 !important;
}

#groups.subjects.inline {
    border-radius: 0 !important;
    width: 225px !important;
    height: 50px;
    background: #79cdff url(/images/arrow_down.png) no-repeat right 14px center;
}

.subjects-menu,
div.notauthorized ul.subjects-menu {
    top: 38px !important;
    border-radius: 0 0 21px 21px !important;
}

.find_more.join-groups,
#replyFormLi {
    border-radius: 0 0 20px 20px !important;
}

.filter,
.close,
.toolbar button,
.toolbar input {
    border-radius: 100px !important;
}

.stats>li>.fans-link,
.stats>li>.medals-link,
.group dl dd.online,
#site-menu-logged-out,
#transaction-history,
.bottom-links,
.invite.wait,
.whats-new,
.wait-for-rating,
#current-update>div.update-header>a:nth-child(2) {
    display: none !important;
}

#group-search dd.group,
#groups dd.group {
    margin: 0 0px 0 0px !important;
}

#message-indicator {
    margin-top: 15px;
    z-index: 1 !important;
}

#message-indicator.open {
    margin-top: 5px;
}

button.reply.post, .notauthorized.logged-out {
    border-radius: 100px !important;
}

button.reply.post:focus {
    outline: none;
}

#group-search>ul {
    border-radius: 0 !important;
}

#group-search li:first-child {
    border-radius: 3px 0 0 0 !important;
}

#group-search li:last-child {
    border-radius: 0 0 0 25px !important;
}

#group-search {
    background: rgba(0, 0, 0, 0) !important;
}

#group-search-shim {
    opacity: 0.27;
}

.reply.post,
#replyFormLi {
    margin-top: 0px !important;
    border-top: turquoise 1px solid !important;
    /* border-image: url('/images/rainbow_gradient_vertical.jpg') 1 round; */
}

.reply.post:nth-child(1) {
    border-top: none !important;
}

.update-body.update.post.current {
    border-radius: 0px !important;
    /*border-bottom:none;
    */
}

.mark-closed {
    /* background-image: linear-gradient(#869AA5, #5b717d) !important; */
    background: #869aa5!important;
    box-shadow: none!important;
}

.update-body.update.post.current {
    background-color: #9cecda;
    border-color: #9ACC9B;
    border-top: none;
}

ul.update-users {
    margin-bottom: 0px !important;
    border-color: #9ACC9B !important;
    border-width: 1px;
    border: solid 1px;
    border-bottom: none;
}

.update-body.update.post.current .delete {
    padding-right: 16px !important;
}

.toolbar input {
    background-color: #5ece09 !important;
}

.toolbar .equation,
.toolbar .draw,
.give-medal,
.notauthorized.logged-out,
#notebook-button,
.file-upload .cover {
    background-color: #869AA5 !important;
}

.file-attach {
    opacity: 0 !important;
}

.chat-list .chat {
    /* border-image: url('/images/rainbow_gradient_vertical.jpg') 1 round; */
    border-color: turquoise;
}

form#logout button {
    color: red;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

form#logout button:hover {
    text-decoration: underline;
}

form#logout {
    position: absolute;
    right: 124px;
    top: 33px;
}

#online-users {
    border-radius: 20px;
}

#subtopics[class=""]+#online-users {
    border-radius: 0 0 20px 20px;
    border-top: teal 1px solid;
    margin-top: -10px;
}

#subtopics {
    border-radius: 20px 20px 0 0;
}

a.logo {
    top: -1px;
}

.bbcode_smiley {
    width: 20px;
    height: 20px;
    /* margin-bottom: -5px; */
    /* margin-top: -5px; */
    vertical-align: -6px;
    cursor: pointer;
}

div.authorized div.user-block div.avatar {
    height: 69px;
}

#profile-tooltip .moderator-tools button {
    border-radius: 100px !important;
    margin-right: 2.5px;
}

#profile-tooltip .user-tools button {
    border-radius: 100px !important;
}

li.mark-closed-container .mark-closed {
    color: white !important;
    border: none !important;
    /* margin-top: 8px; */
}

a.update-link {
    pointer-events: none;
}


/*Profile CSS*/
a.logo {
    height: 111.25px !important;
}

#fanned-indicator a img {
    width: 28px !important;
}

.extended-toolbar #stroke-color,
.extended-toolbar #fill-color {
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    border-radius: 100px;
    background: #9ACC9B;
}

.extended-toolbar #stroke-color::-webkit-color-swatch,
.extended-toolbar #fill-color::-webkit-color-swatch {
    border-radius: 100px;
}

.extended-toolbar #stroke-width-label,
.extended-toolbar #fill,
.extended-toolbar #font-family {
    margin-left: 15px;
    margin-right: 3px;
}

.extended-toolbar #fill-label {
    margin-right: 3px;
}

.extended-toolbar #font-family {
    height: 27px;
}

.extended-toolbar #stroke-width,
.extended-toolbar #font-family {
    margin-bottom: 6px;
}

.extended-toolbar #font-family optgroup {
    margin-bottom: 20px;
}

section.group-chat .toggle-chat {
    background-position: 10px 4px !important;
}

#online-users ul li.subscribed .level span {
    left: -3px !important;
    top: -8px !important;
}


/*.group-title {
     white-space: nowrap;
}
*/

a.user-link.detailed-link {
    display: inline-block;
}

a.user-link.detailed-link:before {
    content: "| ";
    color: black;
}

#fanned-indicator.open .panel ol>li.moderator img.avatar {
    border: 2px solid teal;
}


/*CSS hacks to increase page performance*/

.indicators .panel>ol {
    transform: translateZ(0);
}

ul.update-list {
    transform: translateZ(0);
}

#notebook-list {
    transform: translateZ(0);
}


/* .chat-list {
     transform:translateZ(0);
}
 */

#group-breadcrumb li ul li {
    transform: translateZ(0);
}

ul.update-list:not(.loaded) {
    background: #869AA5 url('/images/small-ajax-loader-blue.gif') no-repeat 50% 10px !important;
    background-size: 32px 32px !important;
}

ul.update-list {
    background-image: none !important;
}

section.pane.loading {
    background: #869AA5 url('/images/small-ajax-loader-blue.gif') no-repeat 50% 50% !important;
    border-radius: 20px !important;
    background-size: 32px 32px !important;
}

a.smartscores>img {
    top: -41px !important;
}


/*Once Again, Because I Need This Orginized And Dont Want A Thousand Files, I'll Be Writting Like This ~Jaynator495~*/


/*Delete Codes Button Style*/

#main-header>div.authorized.logged-in>li.deletecodes {
    list-style: none;
}

#main-header>div.authorized.logged-in>li.deletecodes>button {
    background-color: #00b1f2;
    color: #fff;
    position: absolute;
    left: 1190px;
    top: 20px;
    width: 250px;
    vertical-align: baseline;
    text-align: center;
    height: 75px;
    border: none;
    border-radius: 4px;
    font-size: 40px;
    font-weight: bold;
}

header#main-header div.authorized.logged-in li#message-indicator.open div.panel ol.messages li.message.unread a.user-link.username.moderator {
    color: #872af0 !important;
}

.ultrilliamchat.unread>.togglers>.toggle-chat {
    background-color: #fdb10e !important;
}

#osusersearchresults {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
}

#group-chats>div>section.group-chat.info-closed.ultrilliamchat.chat-open>div.chat-content {
    border-radius: 15px 15px 0px 0px;
}

#themeCreatorFooterButtons:hover {
    text-decoration: underline;
    font-weight: bold;
}

.bump-update {
    border: none;
    border-radius: 10px;
    /* background-image: linear-gradient(#869AA5, #5b717d) !important; */
    background: #869aa5!important;
    box-shadow: none!important;
    color: white;
    /* margin-top: 8px; */
    /* border-radius: 20px!important; */
}


.bump-question-container .bump-update.disabled {
    background: #bfbfbe !important;
    background-image: -webkit-gradient(linear, 50% 0, 50% 100%, color-stop(0%, #bfbfbe), color-stop(100%, #949492)) !important;
    background-image: -webkit-linear-gradient(#bfbfbe, #949492) !important;
    background-image: -moz-linear-gradient(#bfbfbe, #949492) !important;
    background-image: -o-linear-gradient(#bfbfbe, #949492) !important;
    background-image: -ms-linear-gradient(#bfbfbe, #949492) !important;
    background-image: linear-gradient(#bfbfbe, #949492) !important;
}


/*OS Extension Features CSS*/

.quote-post:hover,
.copy-post:hover {
    text-decoration: underline;
}

.quote-post,
.copy-post {
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
    color: #00b1f2;
    cursor: pointer;
}

.custom-dialog.dialog {
    position: fixed;
    width: auto;
    height: auto;
    left: 15%;
    z-index: 3;
    padding: 0;
    border: 0;
    -moz-box-shadow: rgba(0, 0, 0, 0.5) 0 0 40px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.5) 0 0 40px;
    -o-box-shadow: rgba(0, 0, 0, 0.5) 0 0 40px;
    box-shadow: rgba(0, 0, 0, 0.5) 0 0 40px;
}

.custom-dialog.dialog .dialog-body {
    -moz-border-radius-bottomleft: 3px;
    -webkit-border-bottom-left-radius: 3px;
    -o-border-bottom-left-radius: 3px;
    -ms-border-bottom-left-radius: 3px;
    -khtml-border-bottom-left-radius: 3px;
    border-bottom-left-radius: 3px;
    -moz-border-radius-bottomright: 3px;
    -webkit-border-bottom-right-radius: 3px;
    -o-border-bottom-right-radius: 3px;
    -ms-border-bottom-right-radius: 3px;
    -khtml-border-bottom-right-radius: 3px;
    border-bottom-right-radius: 3px;
    padding: 20px 20px 15px;
    background: #e6e6e6;
}

li.post-reply #notebook-button {
    border: 0;
    background: #2db6fa;
    color: #fff;
    border-radius: 2px;
    font-size: 12px;
    height: 22px;
    line-height: 12px;
    font-family: "Lucida Sans", "Helvetica Neue", Helvetica, sans-serif;
    font-weight: normal;
}

li.post-reply #notebook-button:hover {
    cursor: pointer;
    opacity: 0.8;
}

.custom-dialog.dialog button.custom-button {
    float: left;
    color: #fff;
    font-size: 12px;
    background: #51c9ff;
    background-image: -webkit-gradient(linear, 50% 0, 50% 100%, color-stop(0%, #51c9ff), color-stop(100%, #24b1f8));
    background-image: -webkit-linear-gradient(#51c9ff, #24b1f8);
    background-image: -moz-linear-gradient(#51c9ff, #24b1f8);
    background-image: -o-linear-gradient(#51c9ff, #24b1f8);
    background-image: -ms-linear-gradient(#51c9ff, #24b1f8);
    background-image: linear-gradient(#51c9ff, #24b1f8);
    border: 0;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -o-border-radius: 3px;
    -ms-border-radius: 3px;
    -khtml-border-radius: 3px;
    border-radius: 3px;
    -moz-box-shadow: rgba(255, 255, 255, 0.3) 1px 1px 1px inset, rgba(0, 0, 0, 0.1) -1px -1px 1px inset;
    -webkit-box-shadow: rgba(255, 255, 255, 0.3) 1px 1px 1px inset, rgba(0, 0, 0, 0.1) -1px -1px 1px inset;
    -o-box-shadow: rgba(255, 255, 255, 0.3) 1px 1px 1px inset, rgba(0, 0, 0, 0.1) -1px -1px 1px inset;
    box-shadow: rgba(255, 255, 255, 0.3) 1px 1px 1px inset, rgba(0, 0, 0, 0.1) -1px -1px 1px inset;
    cursor: pointer;
    padding: 3px 10px;
    position: relative;
}

.custom-dialog.dialog button.custom-button:hover {
    text-decoration: none;
    background: #1eb9ff;
    background-image: -webkit-gradient(linear, 50% 0, 50% 100%, color-stop(0%, #1eb9ff), color-stop(100%, #0799e2));
    background-image: -webkit-linear-gradient(#1eb9ff, #0799e2);
    background-image: -moz-linear-gradient(#1eb9ff, #0799e2);
    background-image: -o-linear-gradient(#1eb9ff, #0799e2);
    background-image: -ms-linear-gradient(#1eb9ff, #0799e2);
    background-image: linear-gradient(#1eb9ff, #0799e2);
}

#notebook-dialog.dialog {
    top: 100px;
    left: 100px;
}

#notebook-dialog.dialog .dialog-body {
    min-height: 280px;
    min-width: 500px;
    height: 280px;
    width: 500px;
    max-width: 1920px;
    max-height: 1080px;
    overflow: auto;
    resize: both;
}

.custom-dialog.dialog button.custom-button {
    margin: 5px;
}

.custom-dialog.dialog button.custom-button.rbutton {
    float: right;
}

#notebook-button {
    float: left;
    margin-left: 5px;
}

#notebook-chooser {
    float: left;
    height: 100%;
    width: 205px;
}

#notebook-search {
    width: 100%;
}

ul#notebook-list {
    background-color: white;
    overflow-y: scroll;
    height: calc(100% - 60px);
    width: 100%;
}

ul#notebook-list li {
    font-size: 12px;
    padding: 3px;
    white-space: nowrap;
    cursor: hand;
    cursor: pointer;
}

ul#notebook-list li:hover {
    background-color: lightblue;
}

ul#notebook-list li.note-selected {
    font-weight: bold;
}

#notebook-editor {
    float: right;
    height: 100%;
    width: calc(100% - 223px);
}

#notebook-title {
    width: 100%;
}

#notebook-body {
    height: calc(100% - 63px);
    width: calc(100% - 4px);
    box-sizing: content-box;
    resize: none;
}

#library-dialog.dialog {
    top: 100px;
    left: 100px;
}

#library-dialog.dialog .dialog-body {
    height: 280px;
    width: 500px;
}

#library-data {
    height: 90%;
    width: 100%;
}

#notebook-dialog,
#library-dialog {
    z-index: 1000;
}

#notebook-dialog .resizer.bottom-right {
    display: none;
}

#online-users li.user .rank-text span:last-child {
    display: initial;
}

#create-group {
    display: none !important;
}

#group-search li.group dd .group-stats {
    color: black;
}

.signup,
.login {
    border-radius: 200px !important;
    padding: 0 15px;
}

li.update .delete {
    bottom: 17px !important;
}

.target-group {
    right: 0px !important;
}

body.logged-out form.post-update>select {
    display: none !important;
}

.tier-4.avatar-link.subscribed .level:before,
.tier-4.avatar-link.subscribed .level:after {
    background: #23b7f3 !important;
}

.tier-3.avatar-link.subscribed .level:before,
.tier-3.avatar-link.subscribed .level:after {
    background: #872af0 !important;
}

.tier-2.avatar-link.subscribed .level:before,
.tier-2.avatar-link.subscribed .level:after {
    background: #f36100 !important;
}

.tier-1.avatar-link.subscribed .level:before,
.tier-1.avatar-link.subscribed .level:after {
    background: orange !important;
}

.moderator.avatar-link.subscribed .level:before,
.moderator.avatar-link.subscribed .level:after {
    background: teal !important;
    border-color: turquoise;
}

.chat-content ol.chat-list {
    top: 33px;
}

header#main-header div.authorized.logged-in li#message-indicator.open div.panel ol.messages li.message.unread a.user-link.username.moderator {
    color: teal !important;
}


/* body.mobile #group-chats {
     display: block!important;
}
 body.mobile #group-breadcrumb li:first-child ul li {
     max-height: 40vh;
}
 body.mobile #online-users {
     display:none;
}
 body.mobile .dialog.report {
     width: 100%;
     left: 0;
     top: 0;
}
 body.mobile #replyForQuestion {
     padding-bottom: 50px;
}
 body.mobile div.authorized a.logo {
     height:55px!important;
     top:15px!important;
}
 body.mobile #group-breadcrumb li ul {
     width: calc(100vw - 42px)!important;
     border: none;
}
 body.mobile section#groups {
     width: calc(100vw - 40px)!important;
}
 body.mobile ul.os-menu-container {
     display: none;
}
 body.mobile {
     max-width: 100%;
     overflow: hidden;
}
 */

.mobile #shim+#create-message {
    width: 100% !important;
    left: 0;
    position: fixed;
    margin-left: 0;
    top: 0;
    height: 100%;
    z-index: 5;
}

body.mobile #group-chats {
    display: block !important;
}

body.mobile #group-breadcrumb li:first-child ul li {
    max-height: 40vh;
}

body.mobile #online-users {
    display: none;
}

body.mobile .dialog.report {
    width: 100%;
    left: 0;
    top: 0;
}

body.mobile #replyForQuestion {
    padding-bottom: 50px;
}

body.mobile div.authorized a.logo {
    /* height: 55px!important; */
    /* top: 15px!important; */
    /* display: none; */
    top: -18px !important;
    right: 50%;
    transform: translate(50%, 50%);
    position: fixed;
    left: unset;
    width: 132px;
    height: 42px !important;
}

body.mobile #group-breadcrumb li ul {
    width: calc(100vw - 21px) !important;
    border: none;
}

body.mobile section#groups {
    width: calc(100vw - 20px) !important
}

body.mobile ul.os-menu-container {
    display: none;
}

body.mobile {
    max-width: 100%;
    overflow: hidden;
}

body.mobile .panel {
    width: 65vw;
}

body.mobile .panel header button,
body.mobile .panel .new-notification {
    font-size: 12px;
    top: 15px;
}

body.mobile .panel>img {
    display: none;
}

.update-content p.replying {
    margin: 0 !important;
    border-top: turquoise 1px solid !important;
    border-image: url('/images/rainbow_gradient_vertical.jpg') 1 round;
}

.reply-preview {
    margin: 0 !important;
}

.find_more.join-groups,
#replyFormLi {
    border-radius: 0 0 20px 20px !important;
    margin-top: 0px;
}

.reply.post,
#replyForQuestion {
    margin-top: 0px !important;
    border-top: turquoise 1px solid !important;
    /* border-image: url('/images/rainbow_gradient_vertical.jpg') 1 round; */
}

#replyFormLi {
    border: none !important;
}

#announcement-holder+#course-association+#subtopics+#online-users {
    border-radius: 0 0 20px 20px;
    border-top: teal 1px solid;
    margin-top: -10px;
}

#announcement-holder+#course-association+#subtopics[class=""] {
    border-radius: 0;
    border-top: teal 1px solid;
}

#announcement-holder {
    border-radius: 20px 20px 0 0;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 130px;
    height: 37px;
    margin-top: 15px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-check-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #00b1f2;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 4px;
}

.theme-check-slider:before {
    position: absolute;
    content: "";
    height: 29px;
    width: 38px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 4px;
}

input:checked+.theme-check-slider {
    background-color: #36393f;
}

input:focus+.theme-check-slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.theme-check-slider:before {
    -webkit-transform: translateX(84px);
    -ms-transform: translateX(84px);
    transform: translateX(84px);
}

.theme-check-text {
    color: white;
    position: absolute;
    top: 10px;
    user-select: none;
    cursor: pointer;
    transition: all .2s;
}

.theme-check-text.dark {
    right: 15px;
}

input:checked+.theme-check-slider .theme-check-text.dark {
    opacity: 0;
}

input+.theme-check-slider .theme-check-text.light {
    opacity: 0;
}

input:checked+.theme-check-slider .theme-check-text.light {
    opacity: 1;
}

input+.theme-check-slider .theme-check-text.dark {
    opacity: 1;
}

.theme-check-text.light {
    left: 15px;
}


/*Subscription fixes*/

#online-users li.subscribed.tier-5 a.user-link .level:before,
#online-users li.subscribed.tier-5 a.user-link .level:after {
    background-color: #85c540;
}

#online-users li.subscribed.tier-4 a.user-link .level:before,
#online-users li.subscribed.tier-4 a.user-link .level:after {
    background-color: #23b7f3;
}

#online-users li.subscribed.tier-3 a.user-link .level:before,
#online-users li.subscribed.tier-3 a.user-link .level:after {
    background-color: #872af0;
}

#online-users li.subscribed.tier-2 a.user-link .level:before,
#online-users li.subscribed.tier-2 a.user-link .level:after {
    background-color: #f36100;
}

#online-users li.subscribed.tier-1 a.user-link .level:before,
#online-users li.subscribed.tier-1 a.user-link .level:after {
    background-color: orange;
}

#online-users li.subscribed.moderator a.user-link .level:before,
#online-users li.subscribed.moderator a.user-link .level:after {
    background-color: teal;
    border-color: turquoise;
}

#online-users li.subscribed a.user-link .level:before,
#online-users li.subscribed a.user-link .level:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    margin: 3px 0 0 29px;
    -moz-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -moz-transform-origin: 0 100%;
    -webkit-transform-origin: 0 100%;
    -o-transform-origin: 0 100%;
    -ms-transform-origin: 0 100%;
    transform-origin: 0 100%;
    z-index: -1;
    left: -20px;
    border: 2px solid #fff;
    top: 0;
}

#online-users li.subscribed a.user-link .level,
#online-users li.subscribed a.user-link .level span {
    transform: none !important;
    background: none !important;
    border: none !important;
}

#online-users li.subscribed a.user-link .level span {
    position: initial;
}

#online-users li.subscribed a.user-link .level {
    position: absolute;
    bottom: 3px !important;
    right: 1px !important;
    z-index: 0;
    left: initial;
    top: initial;
}

img.avhatar {
    cursor: pointer;
}

body.profile-page #content #profile {
    background: #f6f6f6;
}

.page-content.user-profile ul.update-list:not(.loaded) {
    background: #e6e6e6 url(https://questioncove.com/images/ajax-loader-blue.gif?1406796772) no-repeat 50% 10px !important;
}

#content.showing-update>#profile {
    background: #ababab;
}


/*New Top Bar Changes*/

div#header-container {
    background: white !important;
    height: 75px !important;
}

body:not(.mobile) section#updates {
    top: 85px;
}

body:not(.mobile) div.page-content {
    top: 85px;
}

body:not(.mobile) div.authorized div.user-block div.avatar {
    height: 50px;
    width: 50px;
    top: 9px;
    right: 68px;
}

body:not(.mobile) div.authorized div.user-block div.avatar img {
    width: 50px;
    height: 50px;
}

a.logo {
    background-image: url(/images/logo_trans.svg) !important;
    height: 61px !important;
    width: 200px;
    top: 8px !important;
    left: 420px;
    margin: auto;
    /* right: 50%; */
    /* bottom: 50%; */
    /* transform: translate(50%,50%); */
    /* position: fixed; */
}

body:not(.mobile) div.authorized>ul {
    left: 0px !important;
    top: 17px;
    position: relative;
    width: 150px;
}

body:not(.mobile) #groups.subjects.inline {
    left: -5px;
    top: -18px;
}

body:not(.mobile) button.menu-button {
    display: none;
}

body:not(.mobile) img.menu-button {
    width: 25px;
}

body:not(.mobile) div.authorized div.logo {
    /* position: absolute;
     */
    height: 100%;
    width: 100%;
    float: none;
}

body:not(.mobile) header#main-header {
    max-height: 75px;
}

body:not(.mobile) ul#popup-notifications {
    top: 75px;
}

div#header-container {
    box-shadow: 0px 1px 4px #c7c7c7;
}

body:not(.mobile) body {
    background-image: none;
}

body:not(.mobile) #next-steps,
#online-users {
    background: white !important;
}

body:not(.mobile) .target-group,
.update-level {
    background: #5dd4bc !important;
}

body:not(.mobile) svg#menu-svg {
    display: block;
}


/*Here starts the subject menu CSS*/
body:not(.mobile) #group-breadcrumb li:first-child ul li button span {
    margin-left: 10px !important;
    width: 162px !important;
}

body:not(.mobile) #group-breadcrumb li:first-child ul li {
    padding-left: 0px;
    overflow-x: hidden;
    height: 176px;
    background: #9fddff;
    border: none !important;
}

body:not(.mobile) #group-breadcrumb li ul li button.leave-group {
    right: -13px;
    top: 9px;
}

body:not(.mobile) #group-breadcrumb li .list-of-buttons {
    width: 112%;
    border-radius: 0;
    padding-bottom: 2px;
    margin-left: 0 !important;
}

body:not(.mobile) #group-breadcrumb li ul .find_more {
    /* background-color: #9fddff;
     */
    border-top: 1px solid white;
    background-position: 220px;
}


/*Name and SmartScore CSS starts here*/

a.smartscores>section>div>div div.name {
    border-radius: 0px 30px 30px 0px;
    width: 162px !important;
    left: 48px !important;
    border-left: 1px white solid;
    box-sizing: border-box;
    padding-top: 10px !important;
    text-align: center;
    padding-right: 8px;
}

a.smartscores>section>div>div div.points {
    background-image: none;
    border-radius: 30px 0px 0px 30px;
    height: 35px !important;
    box-sizing: border-box;
    padding-top: 10px !important;
    padding-left: 3px;
}

body:not(.mobile) div#user-block div.name.user-info {
    background-image: none !important;
    top: 26px;
    right: 101px;
    height: 28px;
    border-radius: 20px;
    width: auto;
    padding-left: 53px;
}

body:not(.mobile) div#user-block div.points#groups {
    background-image: none !important;
    border-radius: 50px;
    width: 52px;
    top: 26px;
    right: 30px;
    height: 28px;
}

div#user-block div.name.user-info.tier-5,
div#user-block div.points.tier-5#groups,
a.smartscores>section>div>div.tier-5 div.name,
a.smartscores>section>div>div.tier-5 div.points {
    background: #85c540 !important;
}

div#user-block div.name.user-info.tier-4,
div#user-block div.points.tier-4#groups,
a.smartscores>section>div>div.tier-4 div.name,
a.smartscores>section>div>div.tier-4 div.points {
    background: #23b7f3 !important;
}

div#user-block div.name.user-info.tier-3,
div#user-block div.points.tier-3#groups,
a.smartscores>section>div>div.tier-3 div.name,
a.smartscores>section>div>div.tier-3 div.points {
    background: #872af0 !important;
}

div#user-block div.name.user-info.tier-2,
div#user-block div.points.tier-2#groups,
a.smartscores>section>div>div.tier-2 div.name,
a.smartscores>section>div>div.tier-2 div.points {
    background: #f36100 !important;
}

div#user-block div.name.user-info.tier-1,
div#user-block div.points.tier-1#groups,
a.smartscores>section>div>div.tier-1 div.name,
a.smartscores>section>div>div.tier-1 div.points {
    background: orange !important;
}

div#user-block div.name.user-info.moderator,
div#user-block div.points.moderator#groups {
    background: teal;
}

body:not(.mobile) span#userName {
    right: 36px;
    position: relative;
    top: -3px;
}

body:not(.mobile) div.authorized div.user-block div.points span {
    position: absolute;
    right: 10px;
    top: 8px;
}

a.smartscores {
    top: -151px !important;
    width: 225px !important;
}

body.mobile div#user-block div.points {
    display: none;
}

body:not(.mobile) .signup,
body:not(.mobile) .login {
    top: 20px !important;
}

body:not(.mobile).verification-message #header-container {
    height: 140px !important;
}

body:not(.mobile).verification-message #updates {
    top: 150px !important;
}

body:not(.mobile).verification-message div#content-container div#content div.page-content {
    top: 2px !important;
}

body:not(.mobile) #popup-notifications .close {
    top: 3px;
}

body:not(.mobile) #popup-notifications #notification-indicator .opener {
    display: none;
}

body:not(.mobile) ul#popup-notifications {
    top: 85px;
}

body:not(.mobile) div.authorized div.user-block div.points span {
    text-align: center;
    width: 100%;
    right: 0px;
    left: 7px;
}

body:not(.mobile) #settings-container div.page-content {
    top: 48px !important;
}

section.group-chat.chat-closed .toggle-chat,
section.group-chat.chat-open .toggle-chat {
    background: #9ACC9B url(/images/chat-icon.svg?3) no-repeat 7px 7px;
    background-size: 24px;
}

.dialog.with-header h3 .close {
    background: url('/images/close-filled.png') no-repeat 0;
    background: url('/images/close-filled.svg');
}

body:not(.mobile) .logged-out #groups.subjects.inline {
    top: 18px;
}

body {
    overflow: initial !important;
}

.menu-button2 {
    display: inline-block;
    cursor: pointer;
    position: absolute;
    left: 30px;
    top: 21px;
    margin-top: 0px;
    z-index: 2;
}

.bar1,
.bar2,
.bar3 {
    width: 30px;
    height: 5px;
    background-color: #859aa4;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 30px;
}

.menu-button2.active .bar1 {
    -webkit-transform: rotate(-45deg) translate(-8px, 6px);
    -moz-transform: rotate(-45deg) translate(-8px, 6px);
    -ms-transform: rotate(-45deg) translate(-8px, 6px);
    -o-transform: rotate(-45deg) translate(-8px, 6px);
    transform: rotate(-45deg) translate(-8px, 5px);
}

.menu-button2.active .bar2 {
    opacity: 0;
}

.menu-button2.active .bar3 {
    -webkit-transform: rotate(45deg) translate(-7px, -5px);
    -moz-transform: rotate(45deg) translate(-7px, -5px);
    -ms-transform: rotate(45deg) translate(-7px, -5px);
    -o-transform: rotate(45deg) translate(-7px, -5px);
    transform: rotate(45deg) translate(-7px, -5px);
}

body:not(.menu-active) #sidebar {
    -webkit-transform: translate(-225px);
    -moz-transform: translate(-225px);
    -ms-transform: translate(-225px);
    -o-transform: translate(-225px);
    transform: translate(-225px);
}

body.menu-active #sidebar {
    -webkit-transform: translate(0);
    -moz-transform: translate(0);
    -ms-transform: translate(0);
    -o-transform: translate(0);
    transform: translate(0);
}

#sidebar {
    position: fixed;
    height: calc(100% - 75px);
    background: whitesmoke;
    z-index: 4;
    top: 75px;
    transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1);
    width: 225px;
    left: 0;
    will-change: transform;
}

#blackback {
    transition: transform 350ms cubic-bezier(0.32, 0.72, 0, 1), opacity 350ms cubic-bezier(0.32, 0.72, 0, 1);
    width: 100%;
    height: 100%;
    opacity: 0;
    position: fixed;
    top: 0;
    left: -100%;
    background: rgba(0, 0, 0, 0.2);
    height: 100%;
    z-index: 4;
    left: 0;
    will-change: transform, opacity;
    -webkit-transform: translate(-100%);
    -moz-transform: translate(-100%);
    -ms-transform: translate(-100%);
    -o-transform: translate(-100%);
    transform: translate(-100%);
}

body.menu-active #blackback {
    opacity: 1;
    -webkit-transform: translate(0);
    -moz-transform: translate(0);
    -ms-transform: translate(0);
    -o-transform: translate(0);
    transform: translate(0);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1px 8px;
    padding: 10px 14px;
    line-height: 1;
    color: #4a5568;
    text-decoration: none !important;
    cursor: pointer;
    text-align: left;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    border: none;
    background: none;
    width: calc(100% - 16px);
    box-sizing: border-box;
    font-family: inherit;
    position: relative;
}

.sidebar-item:hover {
    background: rgba(42, 179, 255, 0.1);
    color: #2ab3ff;
}

.sidebar-item iconify-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sidebar-item:hover iconify-icon {
    opacity: 1;
}

.sidebar-item .messages-count {
    margin-left: auto;
}

.sidebar-darkmode-item {
    justify-content: space-between;
    gap: 10px;
}

.sidebar-darkmode-item > span {
    flex: 1;
    font-weight: 600;
}

.sidebar-darkmode-item .sidebar-dark-toggle {
    flex-shrink: 0;
}

.sidebar-darkmode-item .sidebar-toggle-track {
    background: #dde5ef;
}

.sidebar-darkmode-item .sidebar-dark-toggle input:checked ~ .sidebar-toggle-track {
    background: #bcd8f6;
}

.sidebar-darkmode-item:hover .sidebar-toggle-track {
    background: #d1dbe8;
}

.sidebar-darkmode-item:hover .sidebar-dark-toggle input:checked ~ .sidebar-toggle-track {
    background: #9dc8f2;
}

.sidebar-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 20px;
}

body #uservoice-feedback-tab {
    z-index: 1 !important;
}

.sidebar-contents {
    max-height: calc(100% - 175px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 6px;
    padding-bottom: 6px;
}



#group-breadcrumb li button img.show-logo {
    top: 15px;
}

#group-breadcrumb li ul {
    border: none !important;
    width: 225px !important;
    overflow: hidden;
    top: 50px !important;
    left: -1px !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

body.mobile #header-container {
    position: fixed;
    height: 50px !important;
}

body.mobile #updates {
    /* width: 100%; */
    border-radius: 0px !important;
    top: 0px;
}

body.mobile #content-container {
    height: calc(100% - 50px);
    min-height: unset !important;
    margin-top: 50px;
}

body.mobile #group-chats {
    z-index: 3;
}

body.mobile section.group-chat.chat-open {
    height: calc(100% - 50px);
    z-index: 3 !important;
}

/* Chat open/close animation */
section.group-chat.chat-animating div.chat-content {
    display: block !important;
    will-change: transform;
}

body.mobile section.group-chat.chat-animating {
    height: calc(100% - 50px);
    z-index: 3 !important;
    margin-top: 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
}

body.mobile section.group-chat.chat-animating .togglers {
    position: static;
}

body.mobile section.group-chat.chat-animating .togglers .toggle-chat {
    display: none;
}

body.mobile section.group-chat.chat-dragging div.chat-content {
    display: block !important;
    transition: none !important;
}

body.mobile div.authorized>ul {
    /* display: none; */
    z-index: 1 !important;
}

body.mobile .user-block .avatar.user-link {
    width: 25px;
    height: 25px;
    top: 10px;
    border: none;
    /* box-shadow: none; */
    padding: 1px;
}

body.mobile .menu-button2 {
    left: 15px;
    top: 10px;
}

body.mobile #sidebar {
    top: 50px;
    height: calc(100% - 50px);
}

body.mobile #content {
    margin: 0;
    border-radius: 0 !important;
}

body.mobile #current-update .post-reply .toolbar .file-upload {
    display: block;
    float: left;
}

body.mobile .showing-current-update #current-update {
    width: 100%;
    padding: 0;
}

body.mobile ul.update-users {
    border-radius: 0px !important;
}

body.mobile #replyFormLi {
    margin: 0;
    width: 100%;
    border-radius: 0 !important;
    max-width: unset;
    box-sizing: border-box;
}

#side-bottom-information {
    position: absolute;
    width: 100%;
    background: #859aa4;
    bottom: 0;
    padding: 10px 12px;
    box-sizing: border-box;
}

#side-bottom-information-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

#side-bottom-username {
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#side-bottom-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-avatar-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 50%;
    transition: opacity 0.2s;
}

.sidebar-avatar-btn:hover {
    opacity: 0.85;
}

.sidebar-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#side-bottom-information.tier-1 {
    background: orange;
}

#side-bottom-information.tier-2 {
    background: #f36100;
}

#side-bottom-information.tier-3 {
    background: #872af0;
}

#side-bottom-information.tier-4 {
    background: #23b7f3;
}

#side-bottom-information.tier-5 {
    background: #6aaa25;
}

#side-bottom-information.moderator {
    background: teal;
}

body.mobile center.sidebar-contents {
    max-height: calc(100vh - 167px);
}

#side-bottom-information.moderator a.smartscores>section>div>div div.name {
    background: teal !important;
}

#side-bottom-information.moderator a.smartscores>section>div>div div.points {
    background: teal !important;
}

body.logged-out #side-bottom-information {
    display: none;
}

body.logged-out .sidebar-contents {
    max-height: calc(100vh - 126px);
}

body.mobile div.notauthorized div.signup,
body.mobile div.notauthorized div.login {
    height: 32px;
    top: 8px;
    font-size: 15px;
}

.menu-button2 .messages-count {
    background: #fb8181;
    color: white;
    font-size: 10px;
    width: 15px;
    height: 15px;
    border-radius: 50px;
    text-align: center;
    position: absolute;
    top: 18px;
    left: 20px;
    line-height: 17px;
}

.logout.sidebar-item button {
    background: none;
    border: none;
    font-size: 14px;
    color: #e53e3e;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    font-family: inherit;
    font-weight: 500;
}

.logout.sidebar-item button iconify-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 20px;
}

.logout.sidebar-item {
    padding: 10px 14px;
}

.logout.sidebar-item:hover {
    background: rgba(229, 62, 62, 0.08);
}

.logout.sidebar-item:hover button {
    color: #c53030;
}

#side-bottom-information .settings-gear-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#side-bottom-information .settings-gear-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* Sidebar dark mode toggle */
.sidebar-dark-toggle {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: auto;
    height: auto;
    margin-top: 0;
}

.sidebar-dark-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.sidebar-toggle-track {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 13px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    box-sizing: border-box;
}

.sidebar-dark-toggle input:checked ~ .sidebar-toggle-track {
    background: rgba(0, 0, 0, 0.35);
}

.sidebar-toggle-knob {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sidebar-dark-toggle input:checked ~ .sidebar-toggle-track .sidebar-toggle-knob {
    transform: translateX(22px);
}

.toggle-sun,
.toggle-moon {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
    line-height: 1;
}

.toggle-sun {
    color: #fbbf24;
}

.toggle-moon {
    color: #c4b5fd;
}

input.secondary:checked+.theme-check-slider:before {
    transform: translateX(15px);
}

body.mobile #group-search.showing .groups {
    height: calc(100% - 79px) !important;
}

body.mobile .panel-container .panel {
    width: 102vw;
    height: calc(100vh - 52px);
    left: -49px !important;
    top: 102px !important;
    z-index: 1 !important;
    padding-left: 0px !important;
    padding-top: 0px !important;
    padding-right: 0px !important;
}

body.mobile .panel-container {
    z-index: 4 !important;
    position: absolute !important;
    left: -64px;
    top: -56px;
}

body.mobile .panel-container .panel>ol {
    max-height: calc(100vh - 147px) !important;
}

#group-search .search {
    background: #5dd5be !important;
    border-radius: 0 !important;
}

body.mobile #shim+#create-message form fieldset textarea {
    height: calc(100vh - 175px);
}

body.mobile div.page-content {
    top: 51px !important;
    left: 0;
    width: 100vw;
    margin: 0;
    height: calc(100vh - 50px);
    padding-top: 0;
    border-radius: 0 !important;
    position: fixed;
}

body.mobile section.dashboard {
    padding-left: 0;
    width: 100vw;
    border-radius: 0 !important;
}

body.mobile #online-users {
    background: #ffffff;
    height: calc(100vh - 50px);
    overflow-y: scroll;
    overflow-x: hidden;
    width: 100vw;
    box-sizing: border-box;
    border-radius: 0 !important;
    /* display: block; */
    z-index: 2;
}

body.mobile #online-users li.user {
    width: 165px !important;
    min-width: unset !important;
    margin-left: 0;
    margin-bottom: 13px;
    height: 50px;
}

body.mobile #online-users img.avatar {
    width: 30px;
    height: 30px;
}

body.mobile #online-users h4 {
    margin-left: 20px;
    max-width: 115px;
    overflow: hidden;
}

body.mobile #online-users ul {
    margin-left: -1%;
    margin-right: -8%;
}

body.mobile #online-users .medal-count-wrapper {
    top: 10px;
}

body.mobile a.user-link .level {
    display: none;
}

body.mobile #online-users p.activity {
    display: none;
}

body.mobile #online-users li.user .rank-text {
    font-size: 11px;
}

body.mobile #online-users img.avatar {
    border-width: 1px;
}

body.mobile.user-list div.page-content {
    z-index: 3;
}

body.mobile.user-list #online-users {
    display: block;
}

body.mobile #message-indicator {
    display: none;
}

body.mobile.messages #message-indicator {
    display: block;
}

body.mobile.messages #message-indicator .panel {
    display: block;
    width: 100vw;
}

body.mobile #notification-indicator {
    display: none;
}

body.mobile.notifications #notification-indicator {
    display: block;
}

body.mobile.notifications #notification-indicator .panel {
    display: block;
}

body.mobile .indicators .panel>footer {
    position: absolute;
    width: 102vw;
    box-sizing: border-box;
    bottom: 20px;
}

body.mobile .panel-container.message {
    top: -71px;
}

#message-indicator>div>footer {
    bottom: 0;
}

.sidebar-contents .mobile-only {
    display: none;
}

body.mobile .sidebar-contents .mobile-only {
    display: flex;
}

.sidebar-contents .messages-count {
    background: #fb8181;
    color: white;
    font-size: 10px;
    width: 15px;
    height: 15px;
    border-radius: 50px;
    text-align: center;
    position: relative;
    float: right;
    top: 2px;
    line-height: 17px;
    display: inline-block;
}

body.mobile.fans #fanned-indicator {
    display: block;
    top: -44px;
}

body.mobile.fans #fanned-indicator .panel {
    display: block;
}

body.mobile .panel-container.friends .panel {
    top: 89px !important;
    height: calc(100vh - 50px);
}

body.mobile .panel-container.friends .panel>ol {
    max-height: calc(100vh - 136px) !important;
}

#fanned-indicator .panel ol>li.moderator img.avatar {
    border: 2px solid teal;
}

#fanned-indicator .panel ol>li img.avatar {
    position: absolute;
    left: 31px;
    top: -14px;
    height: 43px;
    width: 43px;
    border-radius: 2px;
    border: 2px solid #d9d9d9;
}

#fanned-indicator .panel ol>li {
    display: list-item;
    position: relative;
    margin-top: 10px;
}

#fanned-indicator .panel ol>li>div.title {
    left: 88px;
    position: relative;
    top: -29px;
}

#fanned-indicator .panel ol li.fanned div.online-indicator {
    width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #e6e6e6;
}

#fanned-indicator .panel ol li.fanned.online div.online-indicator {
    background: #59b600;
}

#fanned-indicator .panel ol>li>div.title a.username {
    font-size: 16px;
}

#fanned-indicator .panel ol>li>div.title span {
    font-size: 12px;
}

#fanned-indicator .panel ol>li .mutual-fan-indicator {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 2px;
    vertical-align: middle;
}

#fanned-indicator .panel ol>li.mutual-fan img.avatar {
    border: 2px solid #10b981;
}

#fanned-indicator .panel ol>li.moderator .moderator-indicator {
    color: #cda0ff !important;
}

#fanned-indicator .panel ol>li>div.title ul.fanned-action-buttons {
    position: relative;
    top: 10px;
}

#fanned-indicator .panel ol>li>div.title ul.fanned-action-buttons li a {
    color: #a7a7a7;
    font-size: 13px;
    text-decoration: none;
}

#fanned-indicator .panel ol>li>div.title ul.fanned-action-buttons li {
    list-style-type: disc;
    margin-right: 6px;
}

.chat-list .chat .body .big.bbcode_smiley {
    width: 40px;
    height: 40px;
    display: inline;
    vertical-align: -12px;
}

body.mobile .sidebar-contents {
    max-height: calc(100% - 173px);
    overflow-y: scroll;
}

body.mobile .ultrilliam_dialog_box {
    top: 50px !important;
    left: 0px !important;
    width: 100% !important;
}

body.mobile .ultrilliam_dialog_body {
    height: calc(100vh - 134px) !important;
    min-width: unset !important;
    width: calc(100vw - 22px) !important;
}

body.mobile .ultrilliam_dialog_header {
    border-radius: 0;
}

body.mobile .ultrilliam_dialog_footer {
    border-radius: 0;
}

body.mobile .ultrilliam_dialog_header_button {
    display: none;
}

body.mobile .sidebar-item.desktop-only {
    display: none;
}

.os-menu-container {
    display: none;
}

*::-webkit-scrollbar {
    /* display:none; */
    width: 6px !important;
    height: 9px !important;
    margin-left: 1px !important;
    -moz-border-radius: 5px !important;
    -webkit-border-radius: 5px !important;
    -o-border-radius: 5px !important;
    -ms-border-radius: 5px !important;
    -khtml-border-radius: 5px !important;
    border-radius: 5px !important;
}

*::-webkit-scrollbar-button,
*::-webkit-scrollbar-corner {
    display: none !important;
}

*::-webkit-scrollbar-thumb {
    /* display:none; */
    background-color: #dedede !important;
    -moz-border-radius: 5px !important;
    -webkit-border-radius: 5px !important;
    -o-border-radius: 5px !important;
    -ms-border-radius: 5px !important;
    -khtml-border-radius: 5px !important;
    border-radius: 5px !important;
    -moz-box-shadow: #d3d3d3 0 0 5px 1px inset !important;
    -webkit-box-shadow: #d3d3d3 0 0 5px 1px inset !important;
    -o-box-shadow: #d3d3d3 0 0 5px 1px inset !important;
    box-shadow: #d3d3d3 0 0 5px 1px inset !important;
}

*:hover::-webkit-scrollbar,
*:hover::-webkit-scrollbar-thumb {
    display: block !important;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #cdcdcd !important;
    -moz-box-shadow: #bfbfbf 0 0 5px 1px inset !important;
    -webkit-box-shadow: #bfbfbf 0 0 5px 1px inset !important;
    -o-box-shadow: #bfbfbf 0 0 5px 1px inset !important;
    box-shadow: #bfbfbf 0 0 5px 1px inset !important;
}

*::-webkit-scrollbar-track-piece {
    background: transparent!important;
}

body.logged-out .sidebar-item.login-only {
    display: none;
}

html {
    overflow-y: auto;
}

@media screen and (max-width: 1300px) {
    body:not(.mobile) div.authorized>ul {
        left: 50px !important;
    }
}

@media screen and (max-width: 1100px) {
    body:not(.mobile) div.authorized>ul {
        left: 100px !important;
    }
}

body.mobile .update-header {
    background: #ffffff;
    border-bottom: 1px solid #9cecda;
    padding-left: 15px;
}

body.mobile #current-update .post-reply input.submit {
    float: right;
    font-size: 1em;
}

section.update h2 .update-info,
section.update li.reply .update-info {
    height: auto !important;
}

section.update h2 .update-info li.fuzzied,
section.update li.reply .update-info li.fuzzied {
    top: 0px !important;
}

li.update-info.move-question-dropdown {
    /*display:flex !important;*/
    margin-left: 0;
}

li.update-info.share-container {
    top: 0px !important;
}

section.update h2 .update-info li.social,
section.update li.reply .update-info li.social {
    top: 0px!important;
}

.calculator {
    font-size: 28px;
    margin: 0 auto;
    width: 9.5em;
}

.calculator::before,
.calculator::after {
    content: " ";
    display: table;
}

.calculator::after {
    clear: both;
}

.calculator .viewer {
    color: white;
    float: left;
    line-height: 55px;
    text-align: right;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 6.7em;
    height: 55px;
    padding-right: 15px;
    box-sizing: border-box;
    margin-bottom: 5px;
    margin-top: 6px;
    background: #2bb3ff;
    margin-left: 5px;
}

.calculator button {
    border: 0;
    background: #2bb3ff;
    color: white;
    cursor: pointer;
    float: left;
    font: inherit;
    margin: 5px;
    width: 2em;
    height: 2em;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}

.calculator button:hover {
    background: #005888;
}

.calculator button:focus {
    outline: 0;
}

li.post-reply #calculator-button {
    border: 0;
    background: #869aa5;
    color: #fff;
    border-radius: 2px;
    font-size: 12px;
    height: 22px;
    line-height: 12px;
    font-family: "Lucida Sans", "Helvetica Neue", Helvetica, sans-serif;
    font-weight: normal;
    float: left;
    margin-left: 5px;
    cursor: pointer;
}

button#calculator-button:hover {
    opacity: 0.8;
}

section.update ul.controller {
    background: #ffffff;
    height: 35px;
    margin: 0!important;
    padding-top: 5px;
    padding-left: 20px;
    border-bottom: 1px solid turquoise;
}

section.update ul.controller li.state .closed:before, section.update ul.controller li.state .open:before {
    display: none!important;
}

section.update ul.controller li.state .closed, section.update ul.controller li.state .open {
    margin-right: 10px;
}

.chat-list .chat:not(.system-message) .body {
    display: block!important;
}

.chat.moderator .role {
    color: #cda0ff;
}

#group-breadcrumb .subject-svg {
    width: 25px;
    height: 25px;
}

#group-breadcrumb li button div {
    position: absolute;
    top: 10px;
    left: 8px;
}

#group-search button.group .subject-svg {
    width: 22px;
    height: 22px;
    fill: black!important;
}

#group-search button.group .subject-svg * {
    fill: black!important;
}

#group-search button.group div {
    display: block;
    float: left;
    /* margin-bottom: .5em; */
    margin-right: 10px;
}

#group-search button.group:hover .subject-svg * {
    fill: white!important;
}

section.group-chat.svg-logo .toggle-chat {
    background-image: none;
}

.toggle-chat .svg-icon {
    float: left;
    display: block;
    margin: 2px 7px 0 7px;
    position: absolute;
    left: 6px;
}

.toggle-chat .subject-svg {
    width: 20px;
    height: 20px;
}

.emojiMenuButton:hover {
    transform: scale(1.1);
}

.emojiMenuButton:hover path {
    fill: #fddd58!important;
}

#settings-menu {
    position: fixed;
    width: 100%;
    height: calc(100% - 75px);
    left: 0;
    top: 75px;
    background: #f9fafb;
    z-index: 3;
    overflow: hidden;
    display: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: translateY(-8px);
}

#settings-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    animation: settingsSlideIn 0.25s ease forwards;
}

@keyframes settingsSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

#settings-menu-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 110;
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

#settings-menu-close:hover {
    background: #e5e7eb;
    color: #111827;
}

#settings-left {
    background: #ffffff;
    width: 260px;
    min-width: 260px;
    height: 100%;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    padding: 16px 0;
}

.settings-button {
    position: relative;
    width: calc(100% - 16px);
    margin: 2px 8px;
    height: auto;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px;
    background: transparent;
    box-sizing: border-box;
    color: #374151;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s, color 0.15s;
}

.settings-button svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.settings-button:hover {
    background: #f3f4f6;
    color: #111827;
}

.settings-button.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.settings-button.active svg {
    opacity: 1;
}

#settings-panels {
    flex: 1;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
    overflow: hidden;
}

.settings-panel {
    display: none;
    height: 100%;
    box-sizing: border-box;
}

.settings-panel.active {
    display: flex;
    flex-direction: column;
}

.settings-panel-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 32px 32px;
}

.settings-header {
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 32px 14px;
    margin-bottom: 0;
    font-size: 20px;
    color: #111827;
    flex-shrink: 0;
}

.setting-container {
    margin: 0;
    padding: 4px 0;
}

.setting-header {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-hint {
    font-weight: 400;
    font-size: 12px;
    color: #9ca3af;
}

.setting-text {
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    padding: 10px 14px;
    border-radius: 8px;
    outline: none;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 14px;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.setting-text:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.setting-text::placeholder {
    color: #9ca3af;
}

.setting-textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    padding: 10px 14px;
    border-radius: 8px;
    outline: none;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 14px;
    color: #111827;
    font-family: inherit;
    min-height: 100px;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.setting-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.setting-text.setting-field-error,
.setting-textarea.setting-field-error,
.setting-color.setting-field-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.setting-text.setting-field-error:focus,
.setting-textarea.setting-field-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.setting-error-message {
    color: #dc2626;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 4px;
}

.setting-password {
    display: block;
    margin-bottom: 8px;
}

.setting-inline-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.setting-color {
    width: 42px;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 2px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.setting-divider {
    border-bottom: 1px solid #e5e7eb;
    margin: 16px 0;
}

.settings-save-btn {
    display: inline-block;
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.settings-save-btn:hover {
    background: #1d4ed8;
}

.settings-save-btn:active {
    transform: scale(0.97);
}

.settings-save-btn:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.settings-danger-btn {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    background: #fff;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.settings-danger-btn:hover {
    background: #fef2f2;
    border-color: #f87171;
}

.settings-small-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.settings-small-btn:hover {
    background: #1d4ed8;
}

.settings-save-status {
    display: none;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.settings-save-status.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.settings-save-status.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.setting-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.setting-toggle-label {
    font-size: 14px;
    color: #374151;
}

.settings-toggle {
    width: 44px;
    height: 24px;
    min-width: 44px;
    flex-shrink: 0;
}

.settings-toggle .dynamic-check-slider {
    border-radius: 24px;
    width: 44px;
    height: 24px;
}

.setting-dropdown-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.setting-select {
    box-sizing: border-box;
    max-width: 280px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 13px;
    color: #111827;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.setting-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.settings-toggle .dynamic-check-slider:before {
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    border-radius: 50%;
}

.settings-toggle input:checked + .dynamic-check-slider:before {
    transform: translateX(20px);
}

.settings-notif-table {
    width: 100%;
    max-width: 500px;
    margin: 0;
}

.settings-notif-table th {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    background: #f9fafb;
}

.settings-notif-table td {
    font-size: 14px;
}

.notif-mute-row td {
    color: #dc2626;
    font-weight: 600;
    background: rgba(220, 38, 38, 0.05);
}

#settings-blocklist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 8px;
}

.settings-blocked-user {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.settings-unblock-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}

.settings-unblock-btn:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* Mobile nav bar - hidden on desktop */
#settings-mobile-nav {
    display: none;
}

/* Sidebar backdrop - hidden on desktop */
#settings-sidebar-backdrop {
    display: none;
}

/* Mobile responsive settings */
@media screen and (max-width: 768px) {
    #settings-menu {
        flex-direction: column;
        top: 50px;
        height: calc(100% - 50px);
    }

    /* Mobile top nav bar with hamburger */
    #settings-mobile-nav {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
        z-index: 4;
    }

    #settings-sidebar-toggle {
        background: none;
        border: none;
        color: #374151;
        cursor: pointer;
        padding: 4px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s;
    }

    #settings-sidebar-toggle:hover {
        background: #f3f4f6;
    }

    #settings-mobile-title {
        font-size: 16px;
        font-weight: 600;
        color: #111827;
    }

    #settings-menu-close {
        top: 8px;
        right: 12px;
        z-index: 5;
    }

    /* Slide-out sidebar */
    #settings-left {
        position: absolute;
        top: 0;
        left: 0;
        width: 260px;
        min-width: 260px;
        height: 100%;
        z-index: 12;
        transform: translateX(-260px);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        border-right: 1px solid #e5e7eb;
        flex-direction: column;
        padding: 16px 0;
    }

    #settings-menu.settings-sidebar-open #settings-left {
        transform: translateX(0);
    }

    /* Backdrop overlay */
    #settings-sidebar-backdrop {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 11;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }

    #settings-menu.settings-sidebar-open #settings-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .settings-button {
        width: calc(100% - 16px);
        margin: 2px 8px;
        white-space: nowrap;
    }

    #settings-panels {
        width: 100%;
    }
    .settings-panel-scroll {
        padding: 0 16px 16px;
    }
    .settings-header {
        padding: 14px 16px 10px;
        font-size: 18px;
    }
    .setting-text, .setting-textarea {
        max-width: 100%;
    }
    .settings-notif-table {
        max-width: 100%;
    }
}

/*
body:not(.mobile) .menu-button2 {
    display: none;
}

body:not(.mobile) #sidebar {
    display: block!important;
    transform: none;
}
*/














/*BEGIN MESSAGE STYLING*/
.user-img {
    border: white 3px solid;
    border-radius: 100px;
    width: 38px;
    height: 38px;
    float: left;
}

.username {
    /* color: white; */
    font-weight: bold;
}

.online-indicator {
    width: 12px;
    background: #859aa4;
    height: 12px;
    border-radius: 20px;
    border: 1px white solid;
}

.online-indicator.online {
    background: #5ece08;
}

.typing-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 20px;
    border: 1px solid #fff;
    background: #5ece08;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    animation: typingBadgePulse 1.6s ease-in-out infinite;
}

.typing-status-indicator iconify-icon {
    opacity: 0.9;
    animation: typingIconBob 1.2s ease-in-out infinite;
}

@keyframes typingBadgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(94, 206, 8, 0.22);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(94, 206, 8, 0.38);
    }
}

@keyframes typingIconBob {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.78;
    }
    50% {
        transform: translateY(-1px);
        opacity: 1;
    }
}

#message-panel #sidepanel {
    position: absolute;
    top: 0;
    left: 0;
    /* width: 20vw; */
    width: 250px;
    background: #f4f4f4;
    height: 100%;
    /* max-width: 250px; */
    z-index: 2;
}

#message-panel #side-bottom-information {
    position: absolute;
    width: 100%;
    height: 67px;
    background: #859aa4;
    bottom: 0;
}

#message-panel #side-bottom-username {
    color: white;
    font-weight: bold;
    left: 66px;
    top: 20px;
    position: absolute;
}

#message-panel #side-bottom-image {
    margin-top: 10px;
    margin-left: 8px;
}

#message-panel #side-bottom-indicator {
    left: 39px;
    position: absolute;
    top: 41px;
}

#message-panel #side-top-area {
    position: absolute;
    /* overflow: hidden; */
    width: 100%;
    height: 51px;
    /* box-shadow: #bbbbbb -5px -2px 5px 2px; */
    z-index: 1;
}

#side-top-search-bar {
    position: absolute;
    top: 48px;
    width: 100%;
}

#start-convo {
    width: 90%;
    border-radius: 4px;
    border: none;
    box-shadow: 0px 0px 1px 1px #cdcdcd;
    margin-left: 4.5%;
    padding-left: 9px;
    box-sizing: border-box;
    font-size: 12px;
    padding-top: 3px;
    padding-bottom: 3px;
    outline: none;
    height: 24px;
}

#start-convo:focus {
    box-shadow: 0px 0px 2px 1px #9e9e9e;
}

.side-chat-list {
    position: absolute;
    width: 100%;
    height: calc(100% - 100px);
    top: 100px;
    overflow-y: auto;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    overflow-x: hidden;
}

.chat-info .online-indicator {
    position: relative;
    left: 32px;
    top: 31px;
}

#side-user-chat-list .chat-info .typing-status-indicator {
    position: relative;
    left: -10px;
    top: 31px;
}

#side-group-chat-list .chat-info {
    position: relative;
}

#side-group-chat-list .chat-info .typing-status-indicator {
    position: absolute;
    left: 39px;
    top: 40px;
}

.chat-info .username {
    position: relative;
    left: 16px;
    font-size: 14px;
    overflow: hidden;
    max-width: 165px;
    text-overflow: ellipsis;
    top: -14px;
}

.chat-info {
    padding-left: 8px;
    display: block;
    height: 62px;
    /* box-sizing: border-box; */
    /* display: grid; */
    padding-top: 10px;
}

.chat-info.tier-1 .user-img {
    border-color: orange;
}

.chat-info.tier-1 .username {
    color:orange;
}

.chat-info.tier-2 .user-img {
    border-color: #f36100;
}

.chat-info.tier-2 .username {
    color: #f36100;
}

.chat-info.tier-3 .user-img {
    border-color: #872af0;
}

.chat-info.tier-3 .username {
    color: #872af0;
}

.chat-info.tier-4 .user-img {
    border-color: #23b7f3;
}

.chat-info.tier-4 .username {
    color: #23b7f3;
}

.chat-info.tier-5 .user-img {
    border-color: #6aaa25;
}

.chat-info.tier-5 .username {
    color:#6aaa25;
}

#top-username.tier-1 {
    color:orange;
}

#top-username.tier-2 {
    color: #f36100;
}

#top-username.tier-3 {
    color: #872af0;
}

#top-username.tier-4 {
    color: #23b7f3;
}

#top-username.tier-5 {
    color: #6aaa25;
}
#top-username.moderator {
    color: teal;
}

.chat-info.moderator .user-img {
    border-color: teal;
}

.chat-info.moderator .username {
    color: teal;
}

.chat-info:first-child {
    /* margin-top: 10px; */
    padding-top: 8px;
}

.chat-info:first-child .username {
    top: -15px;
}

.chat-info:first-child .unread-indicator {
    margin-top: 8px;
}

.side-chat-list::-webkit-scrollbar {
    display:none;
    width: 3px;
    height: 9px;
    margin-left: 1px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
    -ms-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
}

.side-chat-list::-webkit-scrollbar-button {
    display: none
}

.side-chat-list::-webkit-scrollbar-corner {
    display: none
}

/*.side-chat-list::-webkit-scrollbar-track-piece {
    background-color: #efefef;
    margin-top: 5px;
    margin-bottom: 5px
}*/

.side-chat-list::-webkit-scrollbar-thumb {
    display:none;
    background-color: #dedede;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
    -ms-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: #d3d3d3 0 0 5px 1px inset;
    -webkit-box-shadow: #d3d3d3 0 0 5px 1px inset;
    -o-box-shadow: #d3d3d3 0 0 5px 1px inset;
    box-shadow: #d3d3d3 0 0 5px 1px inset
}

.side-chat-list:hover::-webkit-scrollbar, .side-chat-list:hover::-webkit-scrollbar-thumb {
    display:block;
}

.side-chat-list::-webkit-scrollbar-thumb:hover {
    background-color: #cdcdcd;
    -moz-box-shadow: #bfbfbf 0 0 5px 1px inset;
    -webkit-box-shadow: #bfbfbf 0 0 5px 1px inset;
    -o-box-shadow: #bfbfbf 0 0 5px 1px inset;
    box-shadow: #bfbfbf 0 0 5px 1px inset
}

#top-bar.active {
    position: absolute;
    width: calc(100% - 250px);
    right: 0;
    height: 50px;
    background: white;
    top: 0;
    box-shadow: #bbbbbb 1px -2px 5px 2px;
    z-index:1;
}

#search-convo {
    width: 30%;
    border-radius: 4px;
    border: none;
    box-shadow: 0px 0px 1px 1px #cdcdcd;
    margin-left: 4.5%;
    padding-left: 9px;
    box-sizing: border-box;
    font-size: 12px;
    padding-top: 3px;
    padding-bottom: 3px;
    outline: none;
    right: 0;
    position: absolute;
    top: 13px;
    right: 18px;
    max-width: 200px;
}

#search-convo:focus {
    box-shadow: 0px 0px 2px 1px #9e9e9e;
}

.chat-info.active {
    background: white;
    border-radius: 14px;
    margin-right: 5px;
}

#top-username {
    position: absolute;
    left: 24px;
    font-weight: bolder;
    font-size: 20px;
    /* top: 8px; */
    line-height: 50px;
    color: grey;
}

#top-username .online-indicator {
    display: inline-block;
    margin-left: 5px;
}

.chat-info .last-message {
    font-size: 14px;
    color: grey;
    position: absolute;
    margin-left: 60px;
    margin-top: -13px;
    width: 156px;
    height: 20px;
    text-overflow: ellipsis;
    /* overflow: hidden; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-info:first-child .last-message {
    margin-top: -15px;
}

#messages {
    position: absolute;
    right: 200px;
    /*bottom: 66px;*/
    top: 50px;
    width: calc(100% - 250px - 200px);
    height: calc(100% - 116px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

.direct-message .username {
    position: relative;
    left: 9px;
    font-size: 14px;
    top: -3px;
    display: inline;
}

.direct-message .online-indicator {
    position: relative;
    left: 43px;
    top: -15px;
}

.direct-message {
    padding-left: 20px;
    /* margin-left: 10px; */
    /* display: flex; */
}

.direct-message {
    margin-top: 20px;
    margin-bottom: 0px;
    padding-top: 2px;
    padding-bottom: 8px;
    position: relative;
    /* height: 100%; */
    min-height: 10px;
}

.direct-message.tier-1 .user-img {
    border-color: orange;
}

.direct-message.tier-1 .username {
    color:orange;
}

.direct-message.tier-2 .user-img {
    border-color: #f36100;
}

.direct-message.tier-2 .username {
    color: #f36100;
}

.direct-message.tier-3 .user-img {
    border-color: #872af0;
}

.direct-message.tier-3 .username {
    color: #872af0;
}

.direct-message.tier-4 .user-img {
    border-color: #23b7f3;
}

.direct-message.tier-4 .username {
    color: #23b7f3;
}

.direct-message.tier-5 .user-img {
    border-color: #6aaa25;
}

.direct-message.tier-5 .username {
    color:#6aaa25;
}

.direct-message.moderator .user-img {
    border-color: teal;
}

.direct-message.moderator .username {
    color: teal;
}

.direct-message .message {
    font-size: 14px;
    color: black;
    margin-left: 56px;
    top: 0px;
    width: calc(100% - 75px);
    position: relative;
    /* margin-top: 6px; */
    /* line-height: 18px; */
    /* top: 2px; */
    white-space: pre-wrap;
    word-wrap: break-word;
    /* min-height: 10px; */
}

.direct-message  .time {
    position: relative;
    display: inline;
    margin-left: 11px;
    font-size: 11px;
    color: #9a9a9a;
    top: -3px;
}

#messages::-webkit-scrollbar {
    width: 8px;
    height: 9px;
    margin-left: 1px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
    -ms-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
}

#messages::-webkit-scrollbar-button {
    display: none
}

#messages::-webkit-scrollbar-corner {
    display: none
}

#messages::-webkit-scrollbar-track-piece {
    background-color: #efefef;
}

#messages::-webkit-scrollbar-thumb {
    background-color: #dedede;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
    -ms-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: #d3d3d3 0 0 5px 1px inset;
    -webkit-box-shadow: #d3d3d3 0 0 5px 1px inset;
    -o-box-shadow: #d3d3d3 0 0 5px 1px inset;
    box-shadow: #d3d3d3 0 0 5px 1px inset
}

#messages::-webkit-scrollbar-thumb:hover {
    background-color: #cdcdcd;
    -moz-box-shadow: #bfbfbf 0 0 5px 1px inset;
    -webkit-box-shadow: #bfbfbf 0 0 5px 1px inset;
    -o-box-shadow: #bfbfbf 0 0 5px 1px inset;
    box-shadow: #bfbfbf 0 0 5px 1px inset
}

/*For regular Input*/
/*#message-convo {
    width: 96%;
    border-radius: 4px;
    border: none;
    box-shadow: 0px 0px 1px 1px #91a3ae;
    margin-left: 2%;
    box-sizing: border-box;
    font-size: 13px;
    padding-top: 3px;
    padding-bottom: 3px;
    outline: none;
    top: 19px;
    position: relative;
    height: 32px;
    padding-left: 44px;
}*/

/*For TextArea Input*/
#message-convo {
    width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    box-sizing: border-box;
    font-size: 13px;
    padding: 6px 4px;
    outline: none;
    position: relative;
    height: 32px;
    min-height: 32px;
    max-height: 150px;
    resize: none;
    line-height: 20px;
    margin: 0;
    overflow-y: hidden;
}

#message-convo::placeholder {
    line-height: 20px;
}

#message-convo::-webkit-input-placeholder {
    line-height: 20px;
}

#message-convo::-moz-placeholder {
    line-height: 20px;
}

#message-convo:-ms-input-placeholder {
    line-height: 20px;
}

#message-convo:-moz-placeholder {
    line-height: 20px;
}

#message-convo:focus {
    box-shadow: none;
}

#bottom-input {
    position: absolute;
    bottom: 0px;
    right: 200px;
    width: calc(100% - 250px - 200px);
    border-top: #c3c3c3 1px solid;
    box-sizing: border-box;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#message-replying-indicator {
    min-height: 14px;
    font-size: 11px;
    line-height: 1.3;
    color: #6f7f89;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

#message-replying-indicator .typing-avatar-stack {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding-right: 1px;
}

#message-replying-indicator .typing-avatar {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff;
    background: #d5e0e6;
    box-sizing: content-box;
}

#message-replying-indicator .typing-avatar + .typing-avatar {
    margin-left: -6px;
}

#message-replying-indicator .typing-avatar-overflow {
    min-width: 16px;
    height: 16px;
    border-radius: 9px;
    border: 1px solid #fff;
    background: #d9e6ec;
    color: #5a6a74;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    padding: 0 3px;
    margin-left: -4px;
    box-sizing: border-box;
}

#message-replying-indicator > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
}

.typing-dots > span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.38;
    animation: typingDots 1.15s ease-in-out infinite;
}

.typing-dots > span:nth-child(2) {
    animation-delay: 0.18s;
}

.typing-dots > span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes typingDots {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.36;
    }
    40% {
        transform: translateY(-1px);
        opacity: 0.82;
    }
}

#message-files-attached {
    margin: 0;
    padding: 0;
    list-style: none;
    display: none;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

#bottom-input.has-message-files #message-files-attached {
    display: flex;
}

#message-files-attached .queued-file {
    position: relative;
    flex: 0 0 58px;
    height: 58px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d4e4ee;
    background: #eef5f9;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

#message-files-attached .preview-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #dbe8ef;
}

#message-files-attached .preview-kind {
    position: absolute;
    left: 4px;
    bottom: 4px;
    font-size: 9px;
    line-height: 1;
    color: white;
    background: rgba(0, 0, 0, 0.58);
    border-radius: 10px;
    padding: 2px 5px;
}

#message-files-attached .preview-audio,
#message-files-attached .preview-file {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px;
    color: #45606f;
    box-sizing: border-box;
}

#message-files-attached .preview-audio iconify-icon,
#message-files-attached .preview-file iconify-icon {
    color: #2a8fcb;
}

#message-files-attached .filename {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    text-align: center;
}

#message-files-attached .remove-file {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.62);
    color: white;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0;
}

#message-files-attached .remove-file:hover {
    background: rgba(0, 0, 0, 0.82);
}

#message-input-row {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    min-height: 32px;
    border: 1px solid #91a3ae;
    border-radius: 10px;
    background: #ffffff;
    padding: 2px 4px 2px 6px;
    box-sizing: border-box;
    transition: box-shadow 120ms ease, border-color 120ms ease;
}

#message-input-row:focus-within {
    border-color: #73818a;
    box-shadow: 0px 0px 2px 1px rgba(115,129,138,0.35);
}

#message-attach {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #7b8f9d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 150ms, color 150ms;
    margin-top: 2px;
    padding: 0;
}

#message-attach iconify-icon {
    display: block;
}

#message-attach:hover {
    background: #edf5fa;
    color: #2a8fcb;
}

#message-attach:disabled {
    background: transparent;
    color: #b8c4cd;
    cursor: not-allowed;
}

#bottom-input .emojiMenuButton {
    width: 28px;
    height: 28px;
    position: relative;
    right: auto;
    top: auto;
    margin: 2px 0 0;
    flex: 0 0 auto;
    border-radius: 6px;
    padding: 4px;
    box-sizing: border-box;
}

#bottom-input .emojiMenuButton:hover {
    background: #edf5fa;
    transform: none;
}

#bottom-input.uploading-message-files {
    opacity: 0.88;
}

#bottom-input.uploading-message-files #message-convo {
    cursor: progress;
}

#bottom-input.uploading-message-files #message-files-attached {
    pointer-events: none;
}

#bottom-input.uploading-message-files #message-attach,
#bottom-input.uploading-message-files .emojiMenuButton {
    cursor: wait;
}

#bottom-input .emojiMenuButton.disabled {
    opacity: 0.55;
}

body.mobile #bottom-input {
    padding: 6px 8px;
}

body.mobile #message-replying-indicator {
    font-size: 10px;
}

body.mobile #message-replying-indicator .typing-avatar {
    width: 14px;
    height: 14px;
}

body.mobile #message-replying-indicator .typing-avatar-overflow {
    min-width: 14px;
    height: 14px;
    line-height: 12px;
    font-size: 8px;
    padding: 0 2px;
}

body.mobile #message-input-row {
    gap: 6px;
}

.chat-info.subscribed .online-indicator, #top-username.subscribed .online-indicator {
    border-radius:0;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(45deg);
}

.chat-info:hover {
    background: #ffffff;
    cursor: pointer;
}

.ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 225px;
    position: absolute!important;
    top: 72px!important;
    z-index: 2;
    background: white;
    list-style: none;
    padding: 0;
    left: 11px!important;
    box-shadow: 0px 0px 1px 1px #9e9e9e;
    border-radius: 0px 0px 5px 5px;
}

.ui-state-active {
    background: #859aa4;
    font-weight: normal;
    color: #ffffff;
}

.ui-autocomplete li {
    width: 100%;
    display: block!important;
}

.auto-load img,  .ajax {
    height:15px;
    width:15px;
    margin-right: 5px;
}

.ajax.auto-load {
    width: 100%;
}

.chat-info .unread-indicator {
    background: #859aa4;
    position: absolute;
    font-size: 10px;
    color: white;
    padding: 2px;
    right: 0px;
    margin-top: 8px;
}

.group-alert {
    width: 420px;
    padding: 10px;
    color: red;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9;
    -moz-box-shadow: #ccc 0 0 1px 1px;
    -webkit-box-shadow: #ccc 0 0 1px 1px;
    -o-box-shadow: #ccc 0 0 1px 1px;
    box-shadow: #ccc 0 0 1px 1px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    -o-border-radius: 2px;
    -ms-border-radius: 2px;
    -khtml-border-radius: 2px;
    border-radius: 2px;
    background-image: -webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,rgba(255,253,197,0.95)),color-stop(100%,rgba(255,234,119,0.95)));
    background-image: -webkit-linear-gradient(rgba(255,253,197,0.95),rgba(255,234,119,0.95));
    background-image: -moz-linear-gradient(rgba(255,253,197,0.95),rgba(255,234,119,0.95));
    background-image: -o-linear-gradient(rgba(255,253,197,0.95),rgba(255,234,119,0.95));
    background-image: -ms-linear-gradient(rgba(255,253,197,0.95),rgba(255,234,119,0.95));
    background-image: linear-gradient(rgba(255,253,197,0.95),rgba(255,234,119,0.95));
}

.group-alert .close {
    text-indent: -119988px;
    overflow: hidden;
    text-align: left;
    background-image: url(/images/session-close-buttonf540.png?1406796772);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    position: absolute;
    top: 7px;
    right: 7px;
    width: 13px;
    height: 13px;
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

.group-alert .close, .group-alert .close:hover {
    text-decoration: none;
}

.group-alert {
    font-size:10px;
    padding-top:2px;
    padding-bottom:2px;
    max-width: 52vw;
}

#search-convo {
    display:none;
}

body.mobile .top-bar-button {
    margin-left: 2px;
}

body.mobile #top-bar-buttons {
    right: 0px;
}

body:not(.mobile) .menu-button {
    display:none;
}

.menu-button {
    display: inline-block;
    cursor: pointer;
    position: absolute;
    left: 10px;
    top: 8px;
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 5px;
    background-color: #859aa4;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 30px;
}

.menu-button.active .bar1 {
    -webkit-transform: rotate(-45deg) translate(-8px, 6px);
    -moz-transform: rotate(-45deg) translate(-8px, 6px);
    -ms-transform: rotate(-45deg) translate(-8px, 6px);
    -o-transform: rotate(-45deg) translate(-8px, 6px);
    transform: rotate(-45deg) translate(-8px, 5px);
}

.menu-button.active .bar2 {opacity: 0;}

.menu-button.active .bar3 {
    -webkit-transform: rotate(45deg) translate(-7px, -5px);
    -moz-transform: rotate(45deg) translate(-7px, -5px);
    -ms-transform: rotate(45deg) translate(-7px, -5px);
    -o-transform: rotate(45deg) translate(-7px, -5px);
    transform: rotate(45deg) translate(-7px, -5px);
}

#sidepanel {
    -webkit-transform: translate(-250px,0px);
    -moz-transform: translate(-250px,0px);
    -ms-transform: translate(-250px,0px);
    -o-transform: translate(-250px,0px);
    transform: translate(-250px, 0px);
    transition: all 500ms;
}

#top-bar, #messages, #bottom-input, #fans-menu, #groupchat-settings, #groupchat-create, #latest-jump {
    width: calc(100% - 250px);
    right: 0;
}

#groupchat-settings, #groupchat-create {
    padding: 20px 24px;
    box-sizing: border-box;
    background: white;
}

#latest-jump {
    position: absolute;
    bottom: 85px;
    cursor: pointer;
    user-select: none;
}

.latest-jump-text {
    color: black;
    background: #ffffff;
    padding: 5px 8px;
    font-size: 9px;
    border-radius: 20px;
    border: 1px solid #292b2f;
}

body.mobile #top-bar, body.mobile #messages, body.mobile #bottom-input, body.mobile #fans-menu, body.mobile #groupchat-settings, body.mobile #groupchat-create, body.mobile #latest-jump {
    width:100%;
}

.menu-active #sidepanel {
    -webkit-transform: translate(0px,0px);
    -moz-transform: translate(0px,0px);
    -ms-transform: translate(0px,0px);
    -o-transform: translate(0px,0px);
    transform: translate(0px, 0px);
}

.menu-active #sidepanel #side-bottom-information-user {
    display:block;
}

#top-username {
    left: 60px;
}

.menu-active #blackback {
    /* opacity:1; */
    -webkit-transform: translate(0px,0px);
    -moz-transform: translate(0px,0px);
    -ms-transform: translate(0px,0px);
    -o-transform: translate(0px,0px);
    transform: translate(0px,0px);
}

body.mobile .direct-message .message {
    width: calc(90vw - 60px)
}

body.mobile .youtube-preview {
    width: calc(85vw - 60px);
    height: auto;
}

#blackback-messages {
    transition: all 600ms;
    width: 100%;
    /* opacity:0; */
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.2);
    height: 100%;
    z-index: 1;
    -webkit-transform: translate(-100%,0px);
    -moz-transform: translate(-100%,0px);
    -ms-transform: translate(-100%,0px);
    -o-transform: translate(-100%,0px);
    transform: translate(-100%,0px);
}

.menu-button .messages-count {
    background: #fb8181;
    color: white;
    font-size: 10px;
    width: 15px;
    height: 15px;
    border-radius: 50px;
    text-align: center;
    position: absolute;
    top: 18px;
    left: 20px;
    line-height: 17px;
}

a {
    color: #00b1f2;
    text-decoration: none;
}

.new-messages-line {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid red;
    margin: 1em 0;
    padding: 0;
    margin-bottom: -15px;
    margin-top: 42px;
}

.new-messages-text {
    color: black;
    background: #ffffff;
    padding: 4px;
    position: relative;
    top: -15px;
    font-size: 9px;
    border-radius: 20px;
    border: 1px solid red;
}

a:hover {
    text-decoration: underline;
}

#blackback-messages.active {
    z-index: 2;
    -webkit-transform: translate(0px,0px);
    -moz-transform: translate(0px,0px);
    -ms-transform: translate(0px,0px);
    -o-transform: translate(0px,0px);
    transform: translate(0px,0px);
}

#messaes-panel .bbcode_smiley {
    width: 22px;
    margin-bottom: -5px;
    margin-top: -5px;
    height: auto;
    vertical-align: initial;
}

.file_upload_dialog {
    right: 50%;
    bottom: 50%;
    -webkit-transform: translate(50%, 50%);
    -moz-transform: translate(50%, 50%);
    -ms-transform: translate(50%, 50%);
    -o-transform: translate(50%, 50%);
    transform: translate(50%, 50%);
    position: absolute;
    width: 500px;
    z-index: 2;
    border: 1px solid black;
    border-radius: 15px;
    background: white;
}

.file_upload_header {
    font-size: 20px;
    height: 38px;
    border-bottom: solid 1px black;
    padding-left: 16px;
    padding-top: 10px;
    font-weight: bold;
}

.file_upload_input {
    resize: none;
    width: calc(100% - 40px);
    box-sizing: border-box;
    border: 1px solid black;
    margin-top: 10px;
    height: 60px;
    border-radius: 6px;
    margin-bottom: 50px;
    padding: 5px;
    padding-left: 8px;
    outline: none;
}

.file_upload_background {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #00000047;
    z-index: 2;
    left: 0;
    top: 0;
}

.file_upload_message {
    font-size: 18px;
    margin-left: 20px;
    margin-top: 20px;
}

.file_upload_footer {
    margin-top: 10px;
    margin-bottom: 10px;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
}

.file_upload_cancel {
    position: absolute;
    left: 0;
    bottom: 0;
    margin-left: 20px;
    background: none;
    border: none;
    padding: 5px;
    color: #4690ff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.file_upload_accept {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-right: 20px;
    background: #008952;
    border: none;
    padding: 5px;
    color: white;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.file_upload_accept:hover {
    background: #00c65b;
}

.file_upload_cancel:hover {
    text-decoration:underline;
}

.file_upload_file {
    max-height:200px;
    margin-top:20px;
}

.file_upload_file img {
    max-height:200px;
    max-width:90%;
    object-fit: contain;
}

.file_upload_file audio {
    width: 90%;
}

body.mobile .file_upload_dialog {
    width:100%;
    border-radius:0px;
    height: 100%;
}

body.mobile .file_upload_file {
    max-width: 90%;
    max-height: 200px;
}

body.mobile .file_upload_file img {
    max-width:90%;
    height: 100%;
    max-height: 200px;
}

.direct-message .message audio {
    display: block;
    width: 75%;
    max-width: 500px;
}

div.bbcode_code {
    border: 1px solid #e3e3e3;
    margin: 0.5em 0;
    line-height: 0px;
    text-shadow: none;
    margin-top: 5px;
    margin-bottom: 5px;
}

div.bbcode_code_head {
    line-height: 1.5em;
    background-color: #acefe2;
    color: initial;
    font-weight: 600;
    padding: 0.25em 0.5em;
    text-shadow: none;
}

div.bbcode_code_body {
    background-color: #ffffff;
    color: black;
    padding: 0.5em 1em;
    text-shadow: none;
    max-width: 100%;
    overflow: auto;
    font-family: inherit;
    font-size: inherit;
}

.chat-info .last-message span, .chat-info .last-message b, .chat-info .last-message i, .chat-info .last-message div, .chat-info .last-message strike, .chat-info .last-message u {
    color:grey!important;
    font-size:14px!important;
    background:none!important;
    border:none!important;
    margin:0!important;
    padding:0!important;
    font-weight:normal!important;
    font-style:normal!important;
    text-decoration:none!important;
}

div.bbcode_quote {
    border: 1px solid #d6e4ff;
    margin: 0;
    line-height: 0em;
    text-shadow: none;
    /* margin-top: -15px; */
    /* margin-bottom: 5px; */
}

div.bbcode_quote_head {
    background-color: #bfd5ff;
    color: initial;
    font-weight: 600;
    padding: 0.25em 0.5em;
    line-height: 1.5em;
    text-shadow: none;
}

div.bbcode_quote_body {
    background-color: #ffffff;
    color: #000;
    padding: 0.5em 1em;
    line-height: initial;
    text-shadow: none;
}

.big.bbcode_smiley {
    width: 50px;
    height: 50px;
    margin: 0;
}

.chat-info .last-message img {
    display: none;
}

#emojiPicker, #emojiSearch {
    display: none;
    width: 265px;
    height: 350px;
    background: white;
    position: fixed;
    z-index: 5;
    box-shadow: #bbbbbb 0px 0px 5px 2px;
    padding: 7px;
    box-sizing: border-box;
    overflow-y: scroll;
    overflow-x: hidden;
    right: 0;
}

#emojiPicker {
    overflow: hidden;
}

.emopick-emj {
    width: 32px;
    height: 32px;
    margin: 0;
    display: inline-block;
    padding: 7px;
    cursor: pointer;
    margin-top: -7px;
}

.emopick-emj:first-child {
    margin-top: 0;
}

.emopick-emj:hover {
    background: #dedede;
}

.emojiMenuButton {
    width: 20px;
    height: 20px;
    position: absolute;
    right: calc(2% + 6px);
    top: 25px;
    background: none;
    border: none;
    border-radius: 20px;
    outline: none;
    cursor: pointer;
    transition: 100ms all;
}

#emojiSearchInput {
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 8px;
    border-width: 1px;
    background: #f7f7f7;
    margin-bottom: 4px;
}

#emoji-servers {
    overflow-y: scroll;
    overflow-x: hidden;
    height: calc(100% - 24px);
}

.emopick-title {
    display: block;
    margin-left: 6px;
    font-size: 12px;
    color: dimgray;
    padding-bottom: 4px;
    margin-top: 6px;
}

#emojiPicker.searching .emopick-title {
    display: none;
}

#emojiPicker.searching .emopick-title {
    display: none;
}

#emojiPicker.searching .emopick-emj {
    display: inline-block;
    width: 40px;
    height: 40px;
}

#emojiPicker.searching .emoji-title {
    position: relative;
    top: -21px;
    display: inline-block;
    font-size: 14px;
    max-width: 90px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

#emojiPicker.searching .emoji-server {
    font-size: 10px;
    position: absolute;
    right: 8px;
    margin-top: 22px;
    max-height: 10px;
    max-width: 80px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.search-header {
    margin-bottom: 8px;
    font-size: 14px;
}

#emojiSearch .emoji-title {
    position: relative;
    top: -14px;
    display: inline-block;
    font-size: 14px;
    max-width: 90px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

#emojiSearch .emoji-server {
    font-size: 10px;
    position: absolute;
    right: 8px;
    margin-top: 19px;
    max-height: 10px;
    max-width: 80px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.emoji-container {
    width: 102.6%;
    border-radius: 5px;
}

.emoji-container.selected {
    background: #ebebeb;
}

.emoji-container:hover {
    background: #cccccc;
}

#emojiPicker:not(.searching) .emoji-title, #emojiPicker:not(.searching) .emoji-server {
    display: none;
}

#emojiPicker:not(.searching) .emoji-container {
    display: inline;
    width: initial;
}

#emojiSearch .emopick-emj:hover {
    background: none;
}

.direct-message.combine {
    margin-top: 0px;
    padding-bottom: 5px;
    padding-top: 5px;
}

.direct-message.combine .username, .direct-message.combine .user-img, .direct-message.combine .time {
    display: none;
}

.new-messages {
    top: -28px;
    position: relative;
    margin-top: 30px;
}

.ui-menu-item-wrapper {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 95%;
    padding-left: 10px;
}

.file_upload_file .file {
    padding: 15px 10px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #f4f4f4;
    max-width: 550px;
    position: relative;
    width: 80%;
    height: 40px;
}

body.mobile .file_upload_file .file .file-thumb {
    top: 0;
}

body.mobile .direct-message .files {
    width: calc(90% - 60px);
}

.file_upload_file .file .file-thumb {
    position: absolute;
    left: 10px;
}

.file_upload_file .file .file-thumb {
    position: absolute;
    left: 10px;
}

.file_upload_file .file .file-name {
    margin-top: 5px;
    text-align: left;
    position: initial;
    margin-left: 45px;
    width: calc(100% - 45px);
}

.direct-message .files {
    position:relative;
    margin-left: 60px;
    top: -12px;
    width: 85%;
}

.files .file {
    padding: 15px 10px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #f4f4f4;
    max-width: 550px;
    position: relative;
    margin-top: 15px;
    height: 50px;
}

#message-panel .file .file-thumb {
    width: 42px!important;
}

.file .file-name {
    display: inline-block;
    margin-bottom: 15px;
    margin-left: 10px;
    cursor: pointer;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: calc(100% - 85px);
    font-size: initial;
    transform: initial;
    bottom: initial;
    position: initial;
}

#message-panel .file .file-download {
    width: 30px!important;
    position: absolute;
    right: 12px;
    top: 22px;
    cursor: pointer;
}

.user.tier-1 .user-img {
    border-color: orange;
}

.user.tier-1 .username {
    color:orange;
}

.user.tier-2 .user-img {
    border-color: #f36100;
}

.user.tier-2 .username {
    color: #f36100;
}

.user.tier-3 .user-img {
    border-color: #872af0;
}

.user.tier-3 .username {
    color: #872af0;
}

.user.tier-4 .user-img {
    border-color: #23b7f3;
}

.user.tier-4 .username {
    color: #23b7f3;
}

.user.tier-5 .user-img {
    border-color: #6aaa25;
}

.user.tier-5 .username {
    color:#6aaa25;
}

.user.moderator .user-img {
    border-color: teal;
}

.user.moderator .username {
    color: teal;
}

#fans-menu, #groupchat-settings, #groupchat-create {
    position: absolute;
    right: 0;
    bottom: 0;
    /* width: calc(100% - 250px); */
    height: calc(100% - 51px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

#fans-menu .online-indicator {
    position: relative;
    left: 32px;
    top: 32px;
}

#fans-menu .user {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    height: 66px;
    padding: 5px;
    padding-right: 15px;
    padding-left: 15px;
    border-bottom: 1px solid #859aa4;
    padding-top: 10px;
    cursor:pointer;
    box-sizing: border-box;
}

#fans-menu .user:hover {
    background: #f4f4f4;
}

#fans-menu .user .username {
    margin-left: 58px;
    margin-top: -4px;
}

.message-actions {
    position: absolute;
    top: -4px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 140ms ease;
    z-index: 3;
}

.direct-message:hover .message-actions,
.direct-message:focus-within .message-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.message-action {
    width: 26px;
    height: 26px;
    border: 1px solid #d3d6da;
    border-radius: 6px;
    background: #ffffff;
    color: #51606d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.message-action iconify-icon {
    display: inline-flex;
}

.message-action:hover,
.message-action:focus-visible {
    background: #eef2f6;
    color: #2f3e4c;
    border-color: #bec8d1;
    outline: none;
}

.message-action--shift {
    display: none;
}

body.messages-shift-held .direct-message:hover .message-action--shift,
body.messages-shift-held .direct-message:focus-within .message-action--shift {
    display: inline-flex;
}

.message-action.report {
    color: #b94a43;
    border-color: #e3c2bf;
}

.message-action.report:hover,
.message-action.report:focus-visible {
    background: #fff0ef;
    color: #8c2e29;
    border-color: #d79f9b;
}

.message-action.delete {
    color: #bc2f2a;
    border-color: #e2bbb9;
}

.message-action.delete:hover,
.message-action.delete:focus-visible {
    background: #ffeceb;
    color: #91211d;
    border-color: #d79f9c;
}

/*.direct-message .files {
    position:relative;
    margin-left: 60px;
    top: -12px;
    width: 85%;
}

.files .file {
    padding: 15px 10px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #f4f4f4;
    max-width: 550px;
    position: relative;
    margin-top: 15px;
}

.file .file-thumb {
    width: 42px;
}

.file .file-name {
    position: absolute;
    display: inline-block;
    bottom: 50%;
    -webkit-transform: translate(0, 50%);
    -moz-transform: translate(0, 50%);
    -ms-transform: translate(0, 50%);
    -o-transform: translate(0, 50%);
    transform: translate(0, 50%);
    margin-left: 6px;
    cursor: pointer;
}

.file .file-download {
    width: 30px;
    position: absolute;
    right: 12px;
    top: 22px;
    cursor: pointer;
}*/

/*
.direct-message.combine:hover .time {
    display: block;
    float:right;
    margin-right:10px;
}
*/

.message code, .body > code {
    border: 1px solid #cfcfcf;
    background: rgba(238, 238, 238, 0.18);
    padding: 0px 4px;
}

.direct-message:last-child {
    margin-bottom: 30px!important;
}

.direct-message:not(.combine) {
    margin-bottom: 0px;
    /* padding-bottom: 0px; */
    /* min-height: 10px; */
    padding-bottom: 5px;
    padding-top: 2px;
}

.direct-message.combine:hover .time {
    display: block;
    position: absolute;
    top: 7px;
    left: 8px;
    width: 46px;
    margin-left: 0;
    font-size: 10px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
}

.direct-message:hover {
    background: #f4f4f4;
}

body.mobile .message-actions {
    display: none !important;
}

.direct-message.combine .message-actions {
    top: -22px;
}

.emojiMenuButton:hover {
    transform: scale(1.1);
}

.emojiMenuButton:hover circle {
    fill: #fddd58!important;
}

body:not(.mobile) #side-top-search-bar {
    top:0px;
    height:50px;
    box-shadow: 0px 0px 1px 1px #cdcdcd;
}

body:not(.mobile) #start-convo {
    position:absolute;
    margin-top: 14px;
}

body:not(.mobile) .side-chat-list {
    height: calc(100% - 100px);
    top: 100px;
}

body:not(.mobile) .ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 225px;
    position: absolute!important;
    top: 35px!important;
    z-index: 2;
    background: white;
    list-style: none;
    padding: 0;
    left: 11px!important;
    box-shadow: 0px 0px 1px 1px #cdcdcd;
    border-radius: 0px 0px 5px 5px;
}

#message-indicator .panel {
    height: 75vh;
    width: 60vw;
    cursor: initial;
    line-height: initial;
    max-width: 100vw;
    min-width: 300px;
}

#message-indicator .panel.expanded {
    position: fixed;
    top: 75px;
    left: 0;
    height: calc(100% - 75px);
    width: 100%;
}

body.mobile #message-indicator .panel {
    height: calc(100% - 50px);
    position: fixed;
    top: 50px!important;
    left: 0!important;
}

.direct-message.combine .avatar-link {
    display: none;
}

#message-panel .ambassador:before {
    display: inline-block;
}

#message-panel .chat-info.ambassador:before, #message-panel .direct-message.ambassador:before, #message-panel #top-username.ambassador:before, #message-panel #fans-menu .user.ambassador:before {
    display: none;
}

#message-panel .chat-info.ambassador .username:before, #message-panel .direct-message.ambassador .username:before, #message-panel #top-username.ambassador>span:before, #message-panel #fans-menu .user.ambassador .username:before  {
    content: "\24B6 ";
    color: #3FADD1;
    margin-right:3px;
}

.ultrilliamchatcontainer .ambassador:before {
    display:none;
}

.ultrilliamchatcontainer .ambassador .username:before {
    content: "\24B6  ";
    color: #3FADD1
}

#side-top-search-bar {
    top: 10px;
    width: calc(100% - 40px);
    right: 0;
}

#top-bar-expand svg path {
    fill: #5dd4bc;
}

#top-bar-buttons {
    position: absolute;
    right: 10px;
}

.top-bar-button {
    cursor: pointer;
    display: inline-block;
    width: 50px;
    height: 50px;
    box-sizing: border-box;
    padding: 10px 10px;
    margin-left: -6px;
}

body.mobile #top-bar-expand {
    display:none;
}

#top-bar-leave svg path {
    fill:#859aa4;
}

body.mobile #top-bar-leave {
    right: 10px;
}

body.mobile ul.update-list {
    overflow: clip;
}

.ui-helper-hidden-accessible { display:none; }

.indicators .panel>ol li.fan-notification>div > h3 {
    display: inline;
}

.indicators .panel>ol li.notification>div {
    position: relative;
    margin-left: 45px;
    font-size: 12px;
}

.indicators .panel>ol li.notification>img {
    float: left;
    margin-top: 3%;
    position: relative;
    margin-right:15px;
    width: 30px;
}

.indicators .panel>ol li.notification>iconify-icon {
    float: left;
    margin-top: 3%;
    position: relative;
    margin-right: 15px;
    font-size: 30px;
}

#reply-locked {
    background: #ffffff;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 0px 0px 20px 20px;
    border-top: 1px solid #40e0d0;
    font-size: 16px;
    margin-bottom:50px;
}

.stjr-review-showcase-widget__floating {
    z-index:3!important;
}

#create-group-member-search .autocomplete {
    z-index: 40;
    display: block;
    width: 100%;
    margin: 0 auto;
    position: absolute;
    top: 36px;
    max-height: 40vh;
}

#create-group-member-search .autocomplete .entry {
    display: block;
    width: auto;
}

#side-top-search-bar .autocomplete, #add-member-container .autocomplete {
    z-index:40;
    display: block;
    width: 225px;
    margin: 0 auto;
    position: absolute;
    margin-left: 4.5%;
    top: 36px;
    max-height: 250px;
}

#side-top-search-bar .autocomplete .entry, #add-member-container .autocomplete .entry {
    display: block;
    width: 100%;
}

#add-member-container .autocomplete {
    width: 86%;
}

#add-member-container .autocomplete .entry {
    margin-left:8px;
    font-size:12px;
}

#add-member-container .autocomplete .entry:before {
    display:none;
}

.autocomplete .entry.tier-1 .autocomplete-username {
    color:orange;
}

.autocomplete .entry.tier-2 .autocomplete-username {
    color: #f36100;
}

.autocomplete .entry.tier-3 .autocomplete-username {
    color: #872af0;
}

.autocomplete .entry.tier-4 .autocomplete-username {
    color: #23b7f3;
}

.autocomplete .entry.tier-5 .autocomplete-username {
    color:#6aaa25;
}

.autocomplete .entry.moderator .autocomplete-username {
    color:teal;
}

.autocomplete > li.entry.online:before {
    background: #5ece08;
    border: 1px solid white;
    width: 12px;
    height: 12px;
}

.autocomplete > li.entry:before {
    background: #859aa4;
    border-radius: 100px;
    border: 1px solid white;
    width: 12px;
    height: 12px;
}

.autocomplete > li.entry.subscribed:before {
    border-radius: 0;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.bbcode_quote, .bbcode_code {
    margin-bottom: -10px!important;
    /* display: inline-block; */
    /* position: relative; */
    /* margin-top: 0px!important; */
}

#side-mid-category {
    position: absolute;
    top: 50px;
    width: 100%;
    height: 50px;
    overflow: hidden;
    text-align: center;
    padding-top: 13px;
    box-shadow: 0px 1px 3px 0px #cdcdcd;
    box-sizing: border-box;
}

#side-mid-category .category-chooser {
    background: #98CC9C;
    color:white;
    display: inline-block;
    border-radius: 15px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

#side-mid-category .category-chooser.active {
    color:black;
}

#side-group-chat-list .chat-info .username {
    top: 10px;
    left: 12px;
}

#side-user-list {
    position: absolute;
    top: 50px;
    right: 0;
    height: calc(100% - 50px);
    width: 200px;
    background: #f4f4f4;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
}

#side-user-list .avatar-link {
    height: 40px;
    width: 40px;
    /* float: left; */
    padding: 3px;
}

#side-user-list .user-img {
    width: 40px;
    height: 40px;
    position: initial;
    float: none;
    box-sizing: border-box;
}

#side-user-list > div > .user {
    width: 100%;
    height: 44px;
    display: flex;
    gap: 4px;
    flex-direction: row;
    align-items: center;
    padding: 4px 11px;
}

#side-user-list iconify-icon {
    color: #e0bd00;
}

#side-user-list .username {
    font-size: 12px;
}

body:not(.mobile) .messages.open #message-panel #sidepanel {
    transform: none!important;
}

#message-indicator .show-user-list {
    /* width: calc(35vw + 200px); */
}

body.mobile #side-user-list {
    z-index:50;
    width:100%;
}

body.mobile #message-panel.show-user-list #messages, body.mobile #message-panel.show-user-list #bottom-input, body.mobile #message-panel.show-user-list #fans-menu {
    width:100%;
    right:0;
}

#message-panel.show-user-list #messages, #message-panel.show-user-list #bottom-input, #message-panel.show-user-list #fans-menu, #message-panel.show-user-list #groupchat-settings, #message-panel.show-user-list #groupchat-create {
    width: calc(100% - 200px - 250px);
    right: 200px;
}

#message-panel.show-user-list #side-user-list {
    display: block;
}

#side-user-list .user.offline {
    opacity: 0.3;
}

#side-user-list > div > .user:hover {
    background: #e0e0e0;
}

body:not(.mobile) #blackback-messages {
    display:none;
}

body:not(.mobile) #message-panel #sidepanel, body:not(.mobile) #message-panel #blackback-messages {
    transition: none!important;
}

#message-panel.expanded #sidepanel {
    transform: none!important;
    visibility: visible!important;
}

#message-panel.expanded .menu-button {
    display: none;
}

body:not(.mobile) #message-panel #side-top-search-bar {
    width: 100%;
}

#message-panel.expanded #top-bar, #message-panel.expanded #messages, #message-panel.expanded #bottom-input, #message-panel.expanded #fans-menu {
    width: calc(100% - 250px);
}

#message-panel.show-user-list.expanded #messages, #message-panel.show-user-list.expanded #bottom-input, #message-panel.show-user-list.expanded #fans-menu {
    width: calc(100% - 250px - 200px);
}

body:not(.mobile) #message-panel #top-username {
    left: 24px;
}

#top-bar-show-members path:nth-child(odd) {
    fill: #36393f!important;
}

#top-bar-show-members path:nth-child(even) {
    fill: white!important;
}

#top-bar-show-members {
    padding: 2px 2px;
    position: relative;
    top: -1px;
}

#top-bar-leave {
    padding: 11px 7px;
    position: relative;
    top: -4px;
}

#top-bar-expand {
    padding: 15px 12px;
    position: relative;
    top: -9px;
}

#top-bar-show-members {
    padding: 2px 2px;
    position: relative;
    top: -1px;
}

#top-bar-leave {
    padding: 11px 7px;
    position: relative;
    top: -4px;
}

#top-bar-expand {
    padding: 15px 12px;
    position: relative;
    top: -3px;
}

#add-member-container {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 6px;
}

#add-member {
    width: 90%;
    border-radius: 4px;
    border: none;
    box-shadow: 0px 0px 1px 1px #cdcdcd;
    margin-left: 4.5%;
    padding-left: 9px;
    box-sizing: border-box;
    font-size: 12px;
    padding-top: 3px;
    padding-bottom: 3px;
    outline: none;
    height: 24px;
}

#profile-tooltip .userid {
    font-size: 11px;
    font-weight: normal;
    margin-bottom: -4px;
    margin-top: -2px;
    opacity: 0.75;
}

section.update li.reply.deleted {
    background: #f2a8a8;
}

.update-body.update.post.deleted {
    background: #f2a8a8;
}

/*section.update .reply.original-poster .username:before {
    content: 'OP';
    font-weight: normal;
    margin-right: 4px;
    background: rgba(0,116,255,0.5);
    color: white;
    font-size: 10px;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 4px;
    padding-top: 1px;
    padding-bottom: 1px;
    text-shadow: none;
}*/

section.update .update .original-poster-flair {
    display: none;
}

section.update .original-poster-flair {
    font-weight: normal;
    margin-right: 2px;
    background: rgba(0,116,255,0.5);
    color: white;
    font-size: 10px;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 4px;
    padding-top: 1px;
    padding-bottom: 1px;
    text-shadow: none;
}

#shim+.dialog {
    top: 50%!important;
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    position: fixed;
}

ul.moderator-info:before {
    content: 'Moderator Info ';
    font-size: 9px;
    margin-bottom: 8px;
    display: inline-block;
    width: 100%;
    border-bottom: 1px solid rgba(31, 31, 31, 0.6);
    padding-bottom: 5px;
    box-sizing: border-box;
}

ul.moderator-info {
    padding: 2px;
    background: rgba(164, 164, 164, 0.3);
    margin-top: 12px;
    border-radius: 8px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.moderator-info li {
    font-size: 10px;
    margin-bottom: 3px;
}

body:not(.mobile) div.short-profile {
    max-height: 60%;
    overflow-y: auto;
    overflow-x: hidden;
}

body.mobile div.short-profile {
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

pre .code-name {
    background: #e4e4e4;
    padding: 4px 8px;
}

.cropper-bg {
    background-image: none!important;
}

/* Context Menu Styles */
.context-menu {
    position: fixed;
    padding: 6px;
    margin: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    min-width: 180px;
    animation: contextMenuFadeIn 0.15s ease-out;
}

@keyframes contextMenuFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.context-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.context-menu ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    margin: 1px 0;
    z-index: 1031;
    list-style-type: none;
    cursor: pointer;
    white-space: nowrap;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 400;
    border-radius: 6px;
    transition: background-color 0.1s ease;
}

.context-menu ul li .context-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    font-size: 16px;
    color: #555;
}

.context-menu ul li:hover {
    background-color: #4a90d9;
    color: white;
}

.context-menu ul li:hover .context-icon {
    color: white;
}

.context-menu ul li:active {
    background-color: #3a7bc8;
}

.context-menu ul li.disabled, .context-menu ul li.disabled a {
    color: #aaa;
    cursor: default;
}

.context-menu ul li.disabled .context-icon {
    color: #ccc;
}

.context-menu ul li.disabled:hover {
    background-color: transparent;
    color: #aaa;
}

.context-menu ul li.disabled:hover .context-icon {
    color: #ccc;
}

.context-menu ul li.checked:before {
    position: absolute;
    content: "\2713";
    left: 7px;
}

.context-menu ul li.with-url {
    padding: 0;
}

.context-menu ul li.with-url a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    text-decoration: none;
    color: #1d1d1f;
}

.context-menu ul li.separator {
    margin: 4px 8px;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: default;
    height: 0;
}

.context-menu ul li.separator:hover {
    background-color: transparent;
}

.context-menu .important {
    color: #e53e3e;
}

.context-menu .important .context-icon {
    color: #e53e3e;
}

.context-menu ul li.important:hover {
    background-color: #e53e3e;
    color: white;
}

.context-menu ul li.important:hover .context-icon {
    color: white;
}

.context-title {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px 8px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 2px;
}

/* Set initial position and width for smooth slide-in effect */
body.mobile .context-menu {
    position: fixed;
    bottom: 0px!important;
    left: 0px!important;
    top: initial!important;
    width: 100%;
    max-width: 100vw;
    max-height: 80vh;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    transform: translateY(100%);
    z-index: 1050;
    padding: 0;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    animation: none;
}

body.mobile .context-menu * {
    font-size: 16px;
}

body.mobile .context-menu .context-title {
    padding: 14px 0px 10px;
    font-size: 13px;
}

body.mobile .context-menu {
    padding-bottom: 5px;
    padding-top: 5px;
}

@keyframes context-menu-snap-jiggle {
    0% { transform: translateY(0) scaleY(1); }
    30% { transform: translateY(0) scaleY(1.045); }
    55% { transform: translateY(0) scaleY(0.988); }
    75% { transform: translateY(0) scaleY(1.015); }
    100% { transform: translateY(0) scaleY(1); }
}

body.mobile .context-menu.snap-jiggle {
    animation: context-menu-snap-jiggle 0.42s cubic-bezier(0.22, 1.12, 0.36, 1);
    transform-origin: bottom center;
}

/* Touch devices can get sticky :hover; disable hover visuals for mobile sheet rows */
body.mobile .context-menu ul li:hover,
body.mobile .context-menu ul li.important:hover,
body.mobile .context-menu ul li.disabled:hover {
    background-color: transparent;
    color: inherit;
}

body.mobile .context-menu ul li:hover .context-icon,
body.mobile .context-menu ul li.important:hover .context-icon,
body.mobile .context-menu ul li.disabled:hover .context-icon {
    color: inherit;
}

body.mobile .context-menu::before {
    content: '';
    display: block;
    width: 36px;
    height: 5px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    margin: 8px auto 4px;
}

body.mobile .context-menu ul .bubble {
    padding: 0;
    margin: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

body.mobile .context-menu ul .bubble li {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-radius: 0;
    margin: 0;
}

body.mobile .context-menu ul .bubble li:last-child {
    border: none;
}

body.mobile .context-menu ul li.separator {
    border-color: transparent;
    margin: -4px 0px;
}

/* Prevent submenu clipping on desktop */
body:not(.mobile) .context-menu {
    overflow: visible;
}

/* ===== Desktop submenu flyout ===== */
.context-menu li.has-submenu {
    position: relative;
}

.context-menu li.has-submenu .context-chevron {
    display: flex;
    align-items: center;
    margin-left: auto;
    font-size: 14px;
    color: #999;
    pointer-events: none;
}

.context-menu li.has-submenu:hover > .context-chevron {
    color: white;
}

.context-menu .context-submenu {
    position: absolute;
    left: 100%;
    top: -6px;
    margin-left: 9px;
    padding: 6px;
    min-width: 170px;
    background: rgb(243, 243, 245);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    /*box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);*/
    list-style: none;
    z-index: 1032;
    /* Grace period: hide with delay so mouse can travel to submenu */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease 0.15s, visibility 0s linear 0.25s;
}

/* Invisible bridge over the gap so the mouse doesn't "leave" the parent */
.context-menu .context-submenu::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    z-index: -1;
}

/* Flip to left when there's not enough space on the right */
.context-menu li.has-submenu.flip-submenu > .context-submenu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 9px;
}

.context-menu li.has-submenu:hover > .context-submenu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.12s ease 0s, visibility 0s linear 0s;
}

/* Reset submenu item colours so they don't inherit from parent :hover */
.context-menu .context-submenu li {
    color: #1d1d1f;
}

.context-menu .context-submenu li .context-icon {
    color: #555;
}

.context-menu .context-submenu li:hover {
    color: white;
}

.context-menu .context-submenu li:hover .context-icon {
    color: white;
}

.context-menu .context-submenu .important {
    color: #e53e3e;
}

.context-menu .context-submenu .important .context-icon {
    color: #e53e3e;
}

.context-menu .context-submenu li.important:hover {
    color: white;
}

.context-menu .context-submenu li.important:hover .context-icon {
    color: white;
}

.context-shim {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1049;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.context-shim.visible {
    opacity: 1;
}

#updates #groups {
    height: 34px;
    border-radius: 6px!important;
    background-color: #98cc9c;
    display: flex;
    justify-self: right;
    margin-left: auto;
    background-image: none;
}

#updates #groups.subjects.inline {
    width: 175px!important;
}

#updates #groups #filter-group,
#updates #groups #group-breadcrumb,
#updates #groups #group-breadcrumb li.topic {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

#updates #groups #filter-group .topic .switcher .switcher-arrow {
    color: white;
    flex-shrink: 0;
}

#updates #groups:hover {
    background-color: #abc96b;
}

#updates #groups .subject-svg {
    width: 18px;
    height: 18px;
}

#updates #groups .switcher .icon {
    position: static;
    top: auto;
    left: auto;
}

#updates #groups .switcher span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: auto;
    display: flex;
    align-items: center;
}

#updates #groups button div {
    top: 0;
    display: flex;
    align-items: center;
}

#updates #groups .switcher {
    font-size: 14px;
    padding: 0 10px 0 8px;
    line-height: 34px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 388px) {
    #updates #groups {
        display: none;
    }
}

@media screen and (max-width: 340px) {
    #dropdownForSubjectsPost {
        width: 180px;
    }
}

.has-no-testimonial div.edit-testimonial {
    display: none;
}

section.update .notice.deleted {
    background-color: #869aa5;
    padding-top: 5%;
    border-radius: 10px;
    color: white;
}

.dynamic-switch {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 25px;
}

.dynamic-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dynamic-check-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #6a6a6a;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 32px;
}

.dynamic-check-slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 35px;
}

input:checked+.dynamic-check-slider {
    background-color: #00b1f2;
}

input:focus+.dynamic-check-slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.dynamic-check-slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

.dynamic-check-text {
    color: white;
    position: absolute;
    top: 10px;
    user-select: none;
    cursor: pointer;
    transition: all .2s;
}

.dynamic-check-text.dark {
    right: 15px;
}

input:checked+.dynamic-check-slider .dynamic-check-text.dark {
    opacity: 0;
}

input+.dynamic-check-slider .dynamic-check-text.light {
    opacity: 0;
}

input:checked+.dynamic-check-slider .dynamic-check-text.light {
    opacity: 1;
}

input+.dynamic-check-slider .dynamic-check-text.dark {
    opacity: 1;
}

.dynamic-check-text.light {
    left: 15px;
}

#settings-container #pane-holder .settings-pane fieldset ul li label.info {
    display: inline!important;
}

.option-item label.info {
    padding-left: 5px!important;
    position: relative;
    top: -6px;
}

.option-item {
    margin-bottom: 8px;
}

.emoji-input-container {
    font-size:24px;
    font-weight:900;
    font-family: initial;
    display: block;
    margin-bottom: 10px;
}

.emoji-input-container input {
    /*width:50%;*/
    margin-right:3px;
    margin-left:3px;
    text-align:center;
    height:20px;
    border-radius: 20px;
    border: 1px solid #00b1f2;
    outline: none;
}

.emoji-input-container input:focus {
    border: 1px solid #5dd5bd;
}

.delete-emoji {
    cursor: pointer;
    border: 0;
    background: #ff0000;
    text-indent: -119988px;
    overflow: hidden;
    text-align: left;
    background-image: url(/images/common-sprite.png?1406796772);
    background-repeat: no-repeat;
    background-position: -114px -19px;
    height: 13px;
    width: 13px;
    padding: 0;
    border-radius: 10px;
    margin-left: 10px;
}

.emoji-image {
    width: 32px;
    margin-bottom: -10px;
    margin-right: 10px;
}

.emoji-new {
    background: #00b1f2;
    color: white;
    border-radius: 6px;
    border: none;
    padding: 8px 16px;
    margin-bottom: 15px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 200ms;
}

.emoji-new:hover {
    background: #009dd6;
}

#groupchat-settings .avatar img, #groupchat-create .avatar img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
}

#groupchat-settings .avatar button, #groupchat-create .avatar button {
    border: 3px solid #e0e0e0;
    background: #f0f0f0;
    border-radius: 50%;
    width: 68px;
    height: 68px;
    box-sizing: content-box;
    cursor: pointer;
    transition: border-color 200ms, box-shadow 200ms;
    padding: 0;
}

#groupchat-settings .avatar button:hover, #groupchat-create .avatar button:hover {
    border-color: #00b1f2;
    box-shadow: 0 0 0 3px rgba(0, 177, 242, 0.15);
}

#group-chat-name {
    display: inline-block;
    margin-left: 16px;
    position: relative;
    top: -12px;
}

#group-chat-name > div {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 4px;
}

#group-chat-name input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 200ms, box-shadow 200ms;
    outline: none;
    background: #fafafa;
}

#group-chat-name input:focus {
    border-color: #00b1f2;
    box-shadow: 0 0 0 3px rgba(0, 177, 242, 0.1);
    background: white;
}

#groupchat-settings .avatar, #groupchat-create .avatar {
    margin-top: 12px;
    margin-bottom: 20px;
}

#group-chat-emoji-container {
    margin-top: 12px;
}

#top-bar-buttons {
    display: inline-flex;
}

#top-username > a {
    color: inherit;
}

#top-username > a:hover {
    text-decoration: none;
}

.groupchat-category-container {
    padding: 4px 0;
    padding-top: 8px;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.groupchat-category-text {
    display: block;
}

#group-chat-settings-container {
    margin-bottom: 20px;
}

.GroupChatFieldContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px !important;
    border-radius: 6px;
    transition: background 150ms;
}

.GroupChatFieldContainer:hover {
    background: #f5f5f5;
}

.GroupChatFieldContainer input[type="color"] {
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    transition: border-color 200ms;
}

.GroupChatFieldContainer input[type="color"]:hover {
    border-color: #00b1f2;
}

.GroupChatFieldContainer span {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

#groupchat-stop-editing, #groupchat-create-close {
    width: 28px;
    height: auto;
    position: fixed;
    right: 16px;
    top: 16px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 200ms, transform 200ms;
}

#groupchat-stop-editing:hover, #groupchat-create-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

#groupchat-stop-editing > path, #groupchat-create-close > path {
    fill: #859aa4 !important;
}

.chat-info.muted {
    opacity: 0.6;
}

/* Create Group Chat Button */
.create-group-chat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 20px);
    padding: 12px 15px;
    border: 2px dashed #c0c0c0;
    border-radius: 8px;
    background: transparent;
    color: #859aa4;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 10px;
    margin-top: 8px;
    transition: all 200ms;
    box-sizing: border-box;
}

.create-group-chat-btn:hover {
    border-color: #00b1f2;
    color: #00b1f2;
    background: rgba(0, 177, 242, 0.05);
}

.create-group-chat-btn iconify-icon {
    font-size: 20px;
}

/* Create Group Chat Panel */
#create-group-chat-container {
    margin-bottom: 20px;
}

#create-group-members-container {
    margin-top: 12px;
    position: relative;
}

#create-group-member-search {
    position: relative;
}

#create-group-member-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
    background: #fafafa;
    transition: border-color 200ms, box-shadow 200ms;
}

#create-group-member-input:focus {
    border-color: #00b1f2;
    box-shadow: 0 0 0 3px rgba(0, 177, 242, 0.1);
    background: white;
}

#create-group-members-container .autocomplete {
    position: absolute;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#create-group-members-container .autocomplete li.entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background 100ms;
}

#create-group-members-container .autocomplete li.entry:hover,
#create-group-members-container .autocomplete li.entry.selected {
    background: #f0f7ff;
}

#create-group-members-container .autocomplete li.entry .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin: 0;
}

#create-group-member-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.pending-member-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f4fd;
    color: #0090c5;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #c8e6f5;
    transition: background 150ms;
}

.pending-member-tag:hover {
    background: #d4ecf9;
}

.remove-pending-member {
    background: none;
    border: none;
    color: #0090c5;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
    transition: color 150ms;
}

.remove-pending-member:hover {
    color: #e74c3c;
}

#create-group-chat-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

#create-group-chat-submit {
    width: 100%;
    padding: 10px 20px;
    background: #00b1f2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 200ms, transform 100ms, box-shadow 200ms;
    letter-spacing: 0.3px;
}

#create-group-chat-submit:hover {
    background: #009dd6;
    box-shadow: 0 2px 8px rgba(0, 177, 242, 0.3);
}

#create-group-chat-submit:active {
    transform: scale(0.98);
}

#create-group-chat-submit:disabled {
    background: #b1b1b1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.context-menu > ul > li.checkbox > input[type="checkbox"] {
    padding: 0;
    margin: 0;
    width: 15px;
    height: 15px;
    float: left;
    margin-right: 3px;
    position: relative;
    top: 1px;
}

table.notification-table {
    width: calc(100% + 20px);
    border-collapse: collapse;
}

table.notification-table th,
table.notification-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

table.notification-table th {
    background-color: #f4f4f4;
    color: #333;
}

td input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

td input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

table.notification-table tr:first-child {
    color: #f34040;
    background: rgba(164, 60, 60, 0.1);
}

.category-notification {
    position: absolute;
    font-size: 8px;
    background: #fb8181;
    width: 10px;
    height: 10px;
    display: inline-block;
    line-height: 18px;
    border-radius: 20px;
    margin-top: -4px;
    margin-left: 0px;
}

.emoji-popup {
    position: absolute;
    z-index: 100;
    background: white;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid black;
    display: none;
}

.emoji-popup .emoji-large {
    width: 64px;
    float: left;
}

.emoji-popup .emoji-name {
    display: inline-block;
    vertical-align: middle;
    margin-left: 12px;
    font-weight: 500;
    line-height: 64px;
}

body.mobile {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* ==========================================
   Old Fixes from study page
   ==========================================*/

.show-more {
    vertical-align: 5px;
}

#announcement-holder .headline .close {
    background-position: -13px -200px !important;
}

body.verification-message div#content-container div#content div.page-content,
body.verification-message div#content-container div#content div.page-content.user-profile section#update-feed.update-list-container,
body.verification-message div#content-container div#content div.page-content.user-profile section#fans.fans.pane.profile-pane.testimonials.current-pane {
    top: 26px !important;
}

.group-alert#connection-error {
    display: block !important;
}


body.verification-message {
    margin-top: 148px;
}

body.verification-message div.page-content section.current-pane>:first-child {
    margin-top: 0px;
}

body.mobile #logout {
    display: none;
}

#information.pane {
    top: 0px;
    /*Originally For .error*/
    border-radius: 15px;
    height: calc(100vh - 150px);
}

.fan-notification span.action {
    margin: 0px !important;
}

div.authorized>ul li#fanned-indicator.open a div.circle {
    top: -7px;
}

div.authorized>ul li#fanned-indicator a div.circle {
    top: -7px;
    left: 21px;
}

ul.update-status li.moderator img.avatar {
    margin-left: 0px;
    margin-top: 0px;
    height: 22px;
    width: 22px;
    image-rendering: -webkit-optimize-contrast;
}

ul.update-status>li.moderator .avatar-link {
    overflow: visible;
    height: 22px;
    width: 22px;
}

a.action-link {
    word-break: break-word;
}

.canvas.read-only>svg {
    cursor: zoom-in;
}

section.update li.reply {
    overflow: hidden;
}

li.chat p.body>audio {
    max-width: 226px;
}

.update-list-container .update-list-ul-wrapper {
    bottom: 0;
    display: flex;
    flex: 1;
    min-height: 0;
    /* padding: 0 20px; */
}

.indicators .panel>ol li.fan-notification>div span.action {
    display: inline-block;
}

ul.bbcode_list {
    list-style: initial;
}

#filter-group:hover ul.subjects-menu {
    display: block !important;
}

/* ==========================================
   Modern Profile Tooltip Styles
   ========================================== */

#profile-tooltip.modern {
    width: 360px;
    padding: 0;
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: none;
    background: #fff;
}

#profile-tooltip.modern > .close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

#profile-tooltip.modern > .close button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    text-indent: -9999px;
    overflow: hidden;
}

#profile-tooltip.modern > .close button:after {
    content: "\00D7";
    font-size: 20px;
    text-indent: 0;
    display: block;
}

#profile-tooltip.modern > .close button:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Banner Section */
#profile-tooltip.modern .tooltip-banner {
    position: relative;
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

#profile-tooltip.modern .tooltip-banner .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profile-tooltip.modern .tooltip-banner .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
    pointer-events: none;
}

/* Banner Upload for Tooltip */
#profile-tooltip.modern .tooltip-banner-upload {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

#profile-tooltip.modern .tooltip-banner-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s ease;
}

#profile-tooltip.modern .tooltip-banner-edit-overlay:hover {
    background: rgba(0, 0, 0, 0.3);
}

#profile-tooltip.modern .tooltip-banner-edit-icon {
    position: absolute;
    top: 8px;
    right: 40px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s ease, transform 0.2s ease;
}

#profile-tooltip.modern .tooltip-banner-edit-overlay:hover .tooltip-banner-edit-icon {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Profile Header */
#profile-tooltip.modern .the-profile {
    display: flex;
    padding: 0 16px 12px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    align-items: flex-end;
}

#profile-tooltip.modern .the-profile .avatar {
    flex-shrink: 0;
    position: relative;
}

#profile-tooltip.modern .the-profile .avatar .online-indicator {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #9ca3af;
    border: 3px solid #fff;
    box-sizing: border-box;
}

#profile-tooltip.modern .the-profile .avatar .online-indicator.online {
    background: #22c55e;
}

#profile-tooltip.modern .the-profile .avatar a.avatar-link {
    display: block;
}

#profile-tooltip.modern .the-profile .avatar img.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    background-color: white;
}

#profile-tooltip.modern .the-profile .user-info {
    flex: 1;
    margin-left: 12px;
    padding-bottom: 4px;
    min-width: 0;
}

#profile-tooltip.modern .the-profile .user-info h5 {
    margin: 0;
    padding: 0;
}

#profile-tooltip.modern .the-profile .user-info h5 > div:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

#profile-tooltip.modern .the-profile .user-info .username {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    text-overflow: ellipsis;
    /* Text outline for visibility on any banner */
    text-shadow:
        -1px -1px 0 rgba(255,255,255,0.8),
        1px -1px 0 rgba(255,255,255,0.8),
        -1px 1px 0 rgba(255,255,255,0.8),
        1px 1px 0 rgba(255,255,255,0.8),
        0 0 8px rgba(255,255,255,0.5);
}

/* Non-subscriber username colors based on SmartScore tier */
#profile-tooltip.modern .the-profile .user-info .username.tier-1 { color: orange; }
#profile-tooltip.modern .the-profile .user-info .username.tier-2 { color: #f36100; }
#profile-tooltip.modern .the-profile .user-info .username.tier-3 { color: #872af0; }
#profile-tooltip.modern .the-profile .user-info .username.tier-4 { color: #23b7f3; }
#profile-tooltip.modern .the-profile .user-info .username.tier-5 { color: #6aaa25; }

/* Subscribed username gradients based on SmartScore tier */
#profile-tooltip.modern .the-profile .user-info .username.subscribed {
    background: linear-gradient(90deg, orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter:
        drop-shadow(0 0 1px rgba(255,255,255,0.9))
        drop-shadow(0 0 2px rgba(255,255,255,0.7));
}

#profile-tooltip.modern .the-profile .user-info .username.subscribed.tier-1 {
    background-image: linear-gradient(90deg, orange);
}

#profile-tooltip.modern .the-profile .user-info .username.subscribed.tier-2 {
    background-image: linear-gradient(90deg, orange, #f36100);
}

#profile-tooltip.modern .the-profile .user-info .username.subscribed.tier-3 {
    background-image: linear-gradient(90deg, orange, #f36100, #872af0);
}

#profile-tooltip.modern .the-profile .user-info .username.subscribed.tier-4 {
    background-image: linear-gradient(90deg, orange, #f36100, #872af0, #23b7f3);
}

#profile-tooltip.modern .the-profile .user-info .username.subscribed.tier-5 {
    background-image: linear-gradient(90deg, orange, #f36100, #872af0, #23b7f3, #6aaa25);
}

/* Moderator username gradient */
#profile-tooltip.modern .the-profile .user-info h5 .moderator .username {
    background-image: linear-gradient(0deg, teal, turquoise)!important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter:
        drop-shadow(0 0 1px rgba(255,255,255,0.9))
        drop-shadow(0 0 2px rgba(255,255,255,0.7));
}

#profile-tooltip.modern .the-profile .user-info .role {
    font-size: 11px;
    color: #8b5cf6;
    font-weight: 500;
}

#profile-tooltip.modern .the-profile .user-info .mutual-fan-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

#profile-tooltip.modern .the-profile .user-info .userid {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

#profile-tooltip.modern .the-profile .user-info .quick-stats {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

#profile-tooltip.modern .the-profile .user-info .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4b5563;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    transition: background 0.2s;
}

#profile-tooltip.modern .the-profile .user-info .stat-item:hover {
    background: #e5e7eb;
    text-decoration: none;
}

#profile-tooltip.modern .the-profile .user-info .stat-item .stat-icon {
    font-size: 12px;
}

#profile-tooltip.modern .the-profile .user-info .stat-item .stat-value {
    font-weight: 600;
    color: #1f2937;
}

/* Activity Status */
#profile-tooltip.modern p.activity {
    margin: 0;
    padding: 8px 16px;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Online status - green theme */
#profile-tooltip.modern p.activity.online {
    background: #f0fdf4;
    border-top-color: #dcfce7;
    border-bottom-color: #dcfce7;
    color: #166534;
}

#profile-tooltip.modern p.activity .activity-indicator {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
}

#profile-tooltip.modern p.activity.online .activity-indicator {
    background: #22c55e;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#profile-tooltip.modern p.activity .current-action {
    color: inherit;
}

#profile-tooltip.modern p.activity .action-link {
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

#profile-tooltip.modern p.activity.online .action-link {
    color: #15803d;
}

#profile-tooltip.modern p.activity .action-link:hover {
    text-decoration: underline;
}

/* SmartScore Section */
#profile-tooltip.modern .smarts {
    padding: 16px;
    background: #fafafa;
    font-weight: normal;
}

/* Reset old smarts ul styles */
#profile-tooltip.modern .smarts > ul {
    min-height: auto;
}

#profile-tooltip.modern .smarts .smarts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

#profile-tooltip.modern .smarts .smarts-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#profile-tooltip.modern .smarts .smarts-header .level {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f60;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
    margin: 0;
    padding: 0;
    line-height: 1;
    position: static;
    float: none;
}

#profile-tooltip.modern .smarts .smarts-header .level.tier-2 { background: #f09d2a; box-shadow: 0 2px 8px rgba(240, 157, 42, 0.3); }
#profile-tooltip.modern .smarts .smarts-header .level.tier-3 { background: #eeca01; box-shadow: 0 2px 8px rgba(238, 202, 1, 0.3); }
#profile-tooltip.modern .smarts .smarts-header .level.tier-4 { background: #cbc14f; box-shadow: 0 2px 8px rgba(203, 193, 79, 0.3); }
#profile-tooltip.modern .smarts .smarts-header .level.tier-5 { background: #85c540; box-shadow: 0 2px 8px rgba(133, 197, 64, 0.3); }

#profile-tooltip.modern .smarts ul.smarts-components {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#profile-tooltip.modern .smarts ul.smarts-components li.component {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f0f0f0 !important;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin: 0;
    width: auto;
    height: auto;
    line-height: normal;
    text-align: left;
    position: static;
}

#profile-tooltip.modern .smarts ul.smarts-components li.component .component-icon {
    font-size: 18px;
    margin-right: 10px;
}

#profile-tooltip.modern .smarts ul.smarts-components li.component .component-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#profile-tooltip.modern .smarts ul.smarts-components li.component .component-name {
    font-size: 12px;
    color: #6b7280;
}

#profile-tooltip.modern .smarts ul.smarts-components li.component .component-info .title {
    font-size: 13px;
    font-weight: 600;
    color: #c45500 !important;
    position: static;
    width: auto;
    text-align: left;
}

#profile-tooltip.modern .smarts ul.smarts-components li.component.tier-2 .component-info .title { color: #d04800 !important; }
#profile-tooltip.modern .smarts ul.smarts-components li.component.tier-3 .component-info .title { color: #7c3aed !important; }
#profile-tooltip.modern .smarts ul.smarts-components li.component.tier-4 .component-info .title { color: #0891b2 !important; }
#profile-tooltip.modern .smarts ul.smarts-components li.component.tier-5 .component-info .title { color: #16a34a !important; }

#profile-tooltip.modern .smarts ul.smarts-components li.component .score {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f60;
    position: static;
    line-height: 1;
}

#profile-tooltip.modern .smarts ul.smarts-components li.component.tier-2 .score { background: #f09d2a; }
#profile-tooltip.modern .smarts ul.smarts-components li.component.tier-3 .score { background: #eeca01; }
#profile-tooltip.modern .smarts ul.smarts-components li.component.tier-4 .score { background: #cbc14f; }
#profile-tooltip.modern .smarts ul.smarts-components li.component.tier-5 .score { background: #85c540; }

/* SmartScore Compact Version */
#profile-tooltip.modern .smarts.compact {
    padding: 12px 16px;
}

#profile-tooltip.modern .smarts.compact .smarts-header {
    margin-bottom: 10px;
}

#profile-tooltip.modern .smarts.compact .smarts-header .level {
    font-size: 18px;
    width: 36px;
    height: 36px;
}

#profile-tooltip.modern .smarts.compact ul.smarts-components {
    flex-direction: row;
    gap: 6px;
}

#profile-tooltip.modern .smarts.compact ul.smarts-components li.component {
    flex: 1;
    flex-direction: column;
    padding: 8px 6px;
    text-align: center;
    gap: 4px;
}

#profile-tooltip.modern .smarts.compact ul.smarts-components li.component .component-icon {
    margin-right: 0;
    margin-bottom: 2px;
    font-size: 16px;
}

#profile-tooltip.modern .smarts.compact ul.smarts-components li.component .component-icon svg {
    width: 16px;
    height: 16px;
}

#profile-tooltip.modern .smarts.compact ul.smarts-components li.component .component-info {
    align-items: center;
    gap: 0;
}

#profile-tooltip.modern .smarts.compact ul.smarts-components li.component .component-name {
    font-size: 10px;
    line-height: 1.2;
}

#profile-tooltip.modern .smarts.compact ul.smarts-components li.component .component-info .title {
    font-size: 11px;
}

#profile-tooltip.modern .smarts.compact ul.smarts-components li.component .score {
    font-size: 11px;
    width: 24px;
    height: 24px;
    margin-top: 4px;
}

/* User Actions */
#profile-tooltip.modern ul.user-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    margin: 0;
    list-style: none;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    justify-content: center;
}

#profile-tooltip.modern ul.user-tools li {
    margin: 0;
    display: flex;
    flex: 1 1 40%;
}

#profile-tooltip.modern ul.user-tools button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s;
    background: #f3f4f6;
    color: #374151;
    position: static;
    box-shadow: none;
    background-image: none;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

#profile-tooltip.modern ul.user-tools button svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

#profile-tooltip.modern ul.user-tools button:before {
    content: none;
}

#profile-tooltip.modern ul.user-tools button:active {
    top: auto;
    left: auto;
}

#profile-tooltip.modern ul.user-tools button:hover {
    background: #e5e7eb;
}

#profile-tooltip.modern ul.user-tools button.message-user {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

#profile-tooltip.modern ul.user-tools button.message-user:hover {
    background: #2563eb;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

#profile-tooltip.modern ul.user-tools button.become-a-fan {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

#profile-tooltip.modern ul.user-tools button.become-a-fan:hover {
    background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
    box-shadow: 0 4px 8px rgba(217, 119, 6, 0.4);
    transform: translateY(-1px);
}

#profile-tooltip.modern ul.user-tools button.block-user {
    background: #fee2e2;
    color: #dc2626;
}

#profile-tooltip.modern ul.user-tools button.block-user:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

/* Unfan button - neutral gray with red hover */
#profile-tooltip.modern ul.user-tools li.fanning .already-a-fan {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    text-align: left;
    line-height: normal;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

#profile-tooltip.modern ul.user-tools li.fanning .already-a-fan:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: translateY(-1px);
}

#profile-tooltip.modern ul.user-tools li.fanning .already-a-fan svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

#profile-tooltip.modern ul.user-tools li.unblock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

#profile-tooltip.modern ul.user-tools li.unblock button {
    background: #3b82f6;
    color: #fff;
}

/* Moderator Tools */
#profile-tooltip.modern ul.moderator-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    margin: 0;
    list-style: none;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

#profile-tooltip.modern ul.moderator-tools li {
    margin: 0;
}

#profile-tooltip.modern ul.moderator-tools button {
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: #e5e7eb;
    color: #374151;
    position: static;
    box-shadow: none;
    background-image: none;
    display: flex;
    align-items: center;
}

#profile-tooltip.modern ul.moderator-tools button:before {
    content: none;
}

#profile-tooltip.modern ul.moderator-tools button:active {
    top: auto;
    left: auto;
}

#profile-tooltip.modern ul.moderator-tools button:hover {
    filter: brightness(0.95);
}

/* High severity - Bans (red) */
#profile-tooltip.modern ul.moderator-tools li.action-ban button {
    background: #dc2626;
    color: #fff;
}

/* Medium severity - Suspend (orange) */
#profile-tooltip.modern ul.moderator-tools li.action-suspend button {
    background: #f59e0b;
    color: #fff;
}

/* Medium severity - Warn (yellow) */
#profile-tooltip.modern ul.moderator-tools li.action-warn button {
    background: #fbbf24;
    color: #78350f;
}

/* Low severity - Checks (blue) */
#profile-tooltip.modern ul.moderator-tools li.action-check button {
    background: #3b82f6;
    color: #fff;
}

/* Content actions (purple) */
#profile-tooltip.modern ul.moderator-tools li.action-content button {
    background: #8b5cf6;
    color: #fff;
}

#profile-tooltip.modern ul.moderator-info {
    padding: 8px 16px;
    margin: 0;
    list-style: none;
    background: #fef3c7;
    font-size: 11px;
    color: #92400e;
}

/* Testimonial Section */
#profile-tooltip.modern .testimonial {
    padding: 12px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

#profile-tooltip.modern .testimonial .current-testimonial p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 8px;
    font-style: italic;
}

#profile-tooltip.modern .testimonial .current-testimonial h6 {
    font-size: 11px;
    color: #9ca3af;
    margin: 0 0 6px;
}

#profile-tooltip.modern .testimonial button.edit-testimonial {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

#profile-tooltip.modern .testimonial button.edit-testimonial:hover {
    text-decoration: underline;
}

#profile-tooltip.modern .testimonial .no-testimonial h6 {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 8px;
}

#profile-tooltip.modern .testimonial div.edit-testimonial {
    text-align: left;
}

#profile-tooltip.modern .testimonial div.edit-testimonial label {
    display: block;
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 8px;
    position: initial;
}

#profile-tooltip.modern .testimonial div.edit-testimonial textarea {
    width: 100%;
    height: 60px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    resize: vertical;
    margin-bottom: 8px;
}

#profile-tooltip.modern .testimonial div.edit-testimonial button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 6px;
}

#profile-tooltip.modern .testimonial div.edit-testimonial button.cancel {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
}

#profile-tooltip.modern .testimonial div.edit-testimonial button.submit {
    background: #3b82f6;
    border: none;
    color: #fff;
}

/* Arrow */
#profile-tooltip.modern > .arrow {
    display: none;
}

/* Ajax loader - hidden by default, shown when loading */
#profile-tooltip.modern img.ajax-loader {
    display: none;
    margin: 20px auto;
}

#profile-tooltip.modern.ajax-loading img.ajax-loader {
    display: block;
}

#profile-tooltip.modern.ajax-loading .tooltip-banner,
#profile-tooltip.modern.ajax-loading .the-profile,
#profile-tooltip.modern.ajax-loading .activity,
#profile-tooltip.modern.ajax-loading .smarts,
#profile-tooltip.modern.ajax-loading .user-tools,
#profile-tooltip.modern.ajax-loading .moderator-tools,
#profile-tooltip.modern.ajax-loading .moderator-info,
#profile-tooltip.modern.ajax-loading .testimonial {
    display: none;
}

/* Override old short-profile styles for modern tooltip */
#profile-tooltip.modern.short-profile {
    padding: 0;
    width: 360px;
}

#profile-tooltip.modern .the-profile > .avatar {
    margin: 0;
    float: none;
}

#profile-tooltip.modern .the-profile h5 {
    overflow: visible;
    display: block;
    font-size: inherit;
    margin-left: 0 !important;
}

#profile-tooltip.modern .avatar-link {
    float: none;
}

/* Reset old user-link styles */
#profile-tooltip.modern .user-link {
    text-shadow: none;
}

#profile-tooltip.modern .detailed-link:before {
    content: none;
}

/* Hide old-style fans display */
#profile-tooltip.modern .the-profile .parenless-fans {
    display: none;
}

/* Fan button default states */
#profile-tooltip.modern ul.user-tools li.fanning .become-a-fan {
    display: inline-flex;
}

#profile-tooltip.modern ul.user-tools li.fanning .already-a-fan {
    display: none;
}

/* Fan status visibility - override global !important rules */
#profile-tooltip.modern ul.user-tools.fan li.fanning .become-a-fan {
    display: none !important;
}

#profile-tooltip.modern ul.user-tools.fan li.fanning .already-a-fan {
    display: flex !important;
}

#profile-tooltip.modern ul.user-tools.not-fan li.fanning .become-a-fan {
    display: inline-flex !important;
}

#profile-tooltip.modern ul.user-tools.not-fan li.fanning .already-a-fan {
    display: none !important;
}

/* Checking fan status - always hidden unless ajax loading */
#profile-tooltip.modern ul.user-tools li.fanning .checking-fan-status {
    display: none;
}

#profile-tooltip.modern.ajax-loading ul.user-tools li.fanning .checking-fan-status {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

#profile-tooltip.modern.ajax-loading ul.user-tools li.fanning .become-a-fan,
#profile-tooltip.modern.ajax-loading ul.user-tools li.fanning .already-a-fan {
    display: none !important;
}

/* Unblock item - hidden by default */
#profile-tooltip.modern ul.user-tools li.unblock {
    display: none;
}

/* Blocked state - hide other actions, show unblock */
#profile-tooltip.modern ul.user-tools.blocked li {
    display: none !important;
}

#profile-tooltip.modern ul.user-tools.blocked li.unblock {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: #fef2f2;
    border-radius: 8px;
    padding: 10px 14px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
}

#profile-tooltip.modern ul.user-tools.blocked li.unblock span {
    flex: 1;
}

#profile-tooltip.modern ul.user-tools.blocked li.unblock button {
    background: #dc2626;
    color: #fff;
    padding: 6px 14px;
}

/* Hide stat-label text, keep just icons and values */
#profile-tooltip.modern .the-profile .user-info .stat-item .stat-label {
    display: none;
}

#profile-tooltip.modern .the-profile .user-info .stat-item.detailed-link .stat-label {
    display: inline;
}

/* Reset old moderator-info styles */
#profile-tooltip.modern ul.moderator-info {
    background: #f3f4f6;
    border-radius: 0;
    margin-top: 0;
    padding: 8px 16px;
    border-top: 1px solid #e5e7eb;
}

#profile-tooltip.modern ul.moderator-info:before {
    display: none;
}

/* Reset old testimonial positioning */
#profile-tooltip.modern .testimonial {
    clear: none;
    position: static;
    margin-top: 0;
}

/* Reset testimonial visibility states */
#profile-tooltip.modern .testimonial div.no-testimonial,
#profile-tooltip.modern .testimonial div.edit-testimonial,
#profile-tooltip.modern .testimonial div.current-testimonial {
    position: static;
    z-index: auto;
    filter: none;
    opacity: 1;
}

#profile-tooltip.modern .testimonial.has-testimonial div.no-testimonial,
#profile-tooltip.modern .testimonial.has-testimonial div.edit-testimonial {
    position: absolute;
    opacity: 0;
    display: none;
}

#profile-tooltip.modern .testimonial.has-no-testimonial div.edit-testimonial,
#profile-tooltip.modern .testimonial.has-no-testimonial div.current-testimonial {
    position: absolute;
    opacity: 0;
    display: none;
}

#profile-tooltip.modern .testimonial.editing-testimonial div.no-testimonial,
#profile-tooltip.modern .testimonial.editing-testimonial div.current-testimonial {
    position: absolute;
    opacity: 0;
    display: none;
}

#profile-tooltip.modern .testimonial.editing-testimonial div.edit-testimonial {
    position: static;
    opacity: 1;
    display: block;
}

/* Icons */
#profile-tooltip.modern .modaction-button iconify-icon {
    margin-right: 2px;
}

/* ==========================================
   Modern Profile Tooltip Mobile Styles
   ========================================== */

body.mobile #profile-tooltip.modern {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    bottom: 0 !important;
    right: 0 !important;
    top: 0 !important;
    left: 0 !important;
    position: fixed;
    box-sizing: border-box;
    border-radius: 0;
    z-index: 1000;
}

body.mobile #profile-tooltip.modern > .close {
    top: 12px;
    right: 12px;
}

body.mobile #profile-tooltip.modern > .close button {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
}

body.mobile #profile-tooltip.modern > .close button:after {
    font-size: 24px;
}

/* Banner Section - Mobile */
body.mobile #profile-tooltip.modern .tooltip-banner {
    height: 120px;
}

/* Banner edit icon on mobile - adjust position for larger close button */
body.mobile #profile-tooltip.modern .tooltip-banner-edit-icon {
    top: 12px;
    right: 56px;
    width: 32px;
    height: 32px;
}

/* Profile Header - Mobile */
body.mobile #profile-tooltip.modern .the-profile {
    padding: 0 20px 16px;
    margin-top: -50px;
}

body.mobile #profile-tooltip.modern .the-profile .avatar img.avatar {
    width: 90px;
    height: 90px;
    border-width: 5px;
}

body.mobile #profile-tooltip.modern .the-profile .avatar .online-indicator {
    width: 24px;
    height: 24px;
    bottom: 8px;
    right: 8px;
    border-width: 4px;
}

body.mobile #profile-tooltip.modern .the-profile .user-info {
    margin-left: 16px;
    padding-bottom: 8px;
}

body.mobile #profile-tooltip.modern .the-profile .user-info .username {
    font-size: 20px;
}

body.mobile #profile-tooltip.modern .the-profile .user-info .badge {
    font-size: 11px;
    padding: 3px 8px;
}

body.mobile #profile-tooltip.modern .the-profile .user-info .user-stats {
    margin-top: 8px;
    gap: 12px;
}

body.mobile #profile-tooltip.modern .the-profile .user-info .stat-item {
    font-size: 14px;
}

/* Activity Bar - Mobile */
body.mobile #profile-tooltip.modern .activity {
    padding: 12px 20px;
    font-size: 14px;
}

/* SmartScore Section - Mobile (non-compact layout) */
body.mobile #profile-tooltip.modern .smarts {
    padding: 16px 20px;
}

/* Override compact layout on mobile - use full layout */
body.mobile #profile-tooltip.modern .smarts.compact {
    padding: 16px 20px;
}

body.mobile #profile-tooltip.modern .smarts.compact .smarts-header {
    margin-bottom: 16px;
}

body.mobile #profile-tooltip.modern .smarts.compact .smarts-header .level {
    font-size: 24px;
    width: 48px;
    height: 48px;
}

body.mobile #profile-tooltip.modern .smarts.compact ul.smarts-components {
    flex-direction: column;
    gap: 10px;
}

body.mobile #profile-tooltip.modern .smarts.compact ul.smarts-components li.component {
    flex-direction: row;
    padding: 12px 14px;
    text-align: left;
    gap: 12px;
}

body.mobile #profile-tooltip.modern .smarts.compact ul.smarts-components li.component .component-icon {
    margin-right: 10px;
    margin-bottom: 0;
    font-size: 18px;
}

body.mobile #profile-tooltip.modern .smarts.compact ul.smarts-components li.component .component-icon svg {
    width: 18px;
    height: 18px;
}

body.mobile #profile-tooltip.modern .smarts.compact ul.smarts-components li.component .component-info {
    align-items: flex-start;
    flex: 1;
    gap: 2px;
}

body.mobile #profile-tooltip.modern .smarts.compact ul.smarts-components li.component .component-name {
    font-size: 12px;
    line-height: 1.3;
}

body.mobile #profile-tooltip.modern .smarts.compact ul.smarts-components li.component .component-info .title {
    font-size: 13px;
}

body.mobile #profile-tooltip.modern .smarts.compact ul.smarts-components li.component .score {
    font-size: 14px;
    width: 32px;
    height: 32px;
    margin-top: 0;
}

/* User Tools - Mobile */
body.mobile #profile-tooltip.modern ul.user-tools li {
    flex: 1 1 calc(50% - 4px);
}

body.mobile #profile-tooltip.modern ul.user-tools button {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border-radius: 10px !important;
    justify-content: center;
}

body.mobile #profile-tooltip.modern ul.user-tools button svg {
    width: 18px;
    height: 18px;
}

body.mobile #profile-tooltip.modern ul.user-tools li.fanning .already-a-fan {
    padding: 14px 18px;
    font-size: 15px;
    border-radius: 10px;
    justify-content: center;
    box-sizing: border-box;
}

body.mobile #profile-tooltip.modern ul.user-tools li.fanning .already-a-fan svg {
    width: 18px;
    height: 18px;
}

/* Moderator Tools - Mobile */
body.mobile #profile-tooltip.modern ul.moderator-tools {
    padding: 16px 20px;
    gap: 8px;
}

body.mobile #profile-tooltip.modern ul.moderator-tools li {
    flex: 1 1 calc(50% - 4px);
}

body.mobile #profile-tooltip.modern ul.moderator-tools button {
    width: 100%;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 8px;
}

/* Moderator Info - Mobile */
body.mobile #profile-tooltip.modern ul.moderator-info {
    padding: 12px 20px;
    font-size: 13px;
}

/* Testimonial Section - Mobile */
body.mobile #profile-tooltip.modern .testimonial {
    padding: 16px 20px;
}

body.mobile #profile-tooltip.modern .testimonial .current-testimonial p {
    font-size: 15px;
}

body.mobile #profile-tooltip.modern .testimonial .current-testimonial h6 {
    font-size: 12px;
}

body.mobile #profile-tooltip.modern .testimonial button.edit-testimonial {
    font-size: 14px;
    padding: 8px 0;
}

body.mobile #profile-tooltip.modern .testimonial div.edit-testimonial textarea {
    height: 80px;
    font-size: 15px;
}

body.mobile #profile-tooltip.modern .testimonial div.edit-testimonial button {
    padding: 10px 16px;
    font-size: 14px;
}

/* Blocked state - Mobile */
body.mobile #profile-tooltip.modern ul.user-tools.blocked li.unblock {
    padding: 14px 18px;
    font-size: 15px;
    border-radius: 10px;
}

body.mobile #profile-tooltip.modern ul.user-tools.blocked li.unblock button {
    padding: 10px 18px;
    font-size: 14px;
}

.context-menu, #sidebar, #blackback, .chat-list, #online-users, #fans-menu, #messages {
    overscroll-behavior: contain;
}


/* ==========================================
   End of Modern Profile Tooltip Styles
   ========================================== */

/* New Filters */
.filters {
    display: flex;
    align-items: center;
    gap: 4px;
}

.filters>li {
    flex-shrink: 0;
    background: transparent;
}

.filters>li button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    position: relative;
    height: auto;
    padding: 6px 14px;
    width: 100%;
    color: #717171;
    text-decoration: none;
    text-shadow: none;
    font-size: 13px;
    font-weight: 600;
    outline: 0;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s
}

.filters>li button.current {
    background: rgba(0,0,0,0.08);
    color: #333
}

.filters>li button:hover {
    background: rgba(0,0,0,0.05);
    color: #333
}

.filters>li button.current {
    background: rgba(255,255,255,0.25) !important;
    color: white !important;
    text-shadow: none !important;
}

.filters>li button {
    background: transparent !important;
    color: rgba(255,255,255,0.7) !important;
    text-shadow: none !important;
}

.filters>li button:hover {
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
}

/* === Unified Mod/Report Dialog === */
#mod-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

#mod-dialog-overlay.visible {
    opacity: 1;
}

#mod-dialog {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    transition: transform 0.15s ease;
    display: flex;
    flex-direction: column;
}

#mod-dialog-overlay.visible #mod-dialog {
    transform: translateY(0);
}

#mod-dialog .mod-dialog-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#mod-dialog .mod-dialog-header h2 {
    flex: 1;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

#mod-dialog .mod-dialog-header .mod-dialog-icon {
    color: #666;
}

#mod-dialog .mod-dialog-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s, color 0.1s;
}

#mod-dialog .mod-dialog-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}

#mod-dialog .mod-dialog-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#mod-dialog .mod-dialog-who {
    margin: 0;
    font-size: 13px;
    color: #555;
}

#mod-dialog .mod-dialog-who a {
    color: #2db6fa;
    font-weight: 600;
    text-decoration: none;
}

#mod-dialog .mod-dialog-duration {
    display: flex;
    align-items: center;
    gap: 8px;
}

#mod-dialog .mod-dialog-duration label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin: 0;
    white-space: nowrap;
}

#mod-dialog .mod-dialog-duration input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

#mod-dialog .mod-dialog-duration input:focus {
    border-color: #2db6fa;
}

#mod-dialog .mod-dialog-canned {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#mod-dialog .mod-dialog-canned .canned-chip {
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.1s;
    white-space: nowrap;
}

#mod-dialog .mod-dialog-canned .canned-chip:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

#mod-dialog .mod-dialog-canned .canned-chip.active {
    background: #2db6fa;
    border-color: #2db6fa;
    color: #fff;
}

#mod-dialog .mod-dialog-body > label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin: 0;
}

#mod-dialog .mod-dialog-body textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

#mod-dialog .mod-dialog-body textarea:focus {
    border-color: #2db6fa;
}

#mod-dialog .mod-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#mod-dialog .mod-dialog-cancel {
    padding: 7px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: background 0.1s;
}

#mod-dialog .mod-dialog-cancel:hover {
    background: #f5f5f5;
}

#mod-dialog .mod-dialog-submit {
    padding: 7px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.1s;
}

#mod-dialog .mod-dialog-submit:hover {
    opacity: 0.85;
}

#mod-dialog .mod-dialog-submit.submit-warn,
#mod-dialog .mod-dialog-submit.submit-suspend,
#mod-dialog .mod-dialog-submit.submit-chatsuspend,
#mod-dialog .mod-dialog-submit.submit-ban {
    background: #e53935;
}

#mod-dialog .mod-dialog-submit.submit-report {
    background: #2db6fa;
}

#mod-dialog .mod-dialog-info {
    padding: 16px;
    overflow-x: auto;
}

#mod-dialog .mod-dialog-info table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

#mod-dialog .mod-dialog-info table th,
#mod-dialog .mod-dialog-info table td {
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#mod-dialog .mod-dialog-info table th {
    font-weight: 600;
    color: #555;
    font-size: 11px;
    text-transform: uppercase;
}

#mod-dialog .mod-dialog-success {
    padding: 40px 16px;
    text-align: center;
    color: #2e7d32;
}

#mod-dialog .mod-dialog-success iconify-icon {
    display: block;
    margin: 0 auto 8px;
}

#mod-dialog .mod-dialog-success p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Info-only dialog: wider for tables */
#mod-dialog-overlay.dialog-info #mod-dialog {
    max-width: 700px;
}

/* Submit button loading state */
#mod-dialog .mod-dialog-submit.loading {
    opacity: 0.6;
    cursor: wait;
}

/* Info dialog tables: sticky headers + scrollable body */
#mod-dialog .mod-dialog-info .ipcheck {
    max-height: 50vh;
    overflow-y: auto;
    display: block;
}

#mod-dialog .mod-dialog-info .ipcheck thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
}

#mod-dialog .mod-dialog-info .ipcheck th[data-sorted-direction="ascending"]:after,
#mod-dialog .mod-dialog-info .ipcheck th[data-sorted-direction="descending"]:after {
    margin-left: 4px;
}

/* Mobile */
@media (max-width: 600px) {
    #mod-dialog {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    #mod-dialog .mod-dialog-info .ipcheck {
        max-height: calc(100vh - 120px);
    }

    #mod-dialog .mod-dialog-info p {
        margin: 0 0 4px;
    }
}

/* Warn/ban chip active color override */
#mod-dialog-overlay.dialog-warn .mod-dialog-canned .canned-chip.active,
#mod-dialog-overlay.dialog-suspend .mod-dialog-canned .canned-chip.active,
#mod-dialog-overlay.dialog-chatsuspend .mod-dialog-canned .canned-chip.active,
#mod-dialog-overlay.dialog-ban .mod-dialog-canned .canned-chip.active {
    background: #e53935;
    border-color: #e53935;
}

/* Modern subscription dialog */
#subscribetoqc.subscription-dialog {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: min(700px, calc(100vw - 28px)) !important;
    max-height: calc(100vh - 28px);
    z-index: 2500;
}

#subscribetoqc.subscription-dialog .subscription-dialog-card {
    position: relative;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid #cadcf0;
    background: linear-gradient(180deg, #f6fbff 0%, #ffffff 58%);
    box-shadow: 0 28px 60px rgba(14, 66, 112, 0.28), 0 8px 18px rgba(14, 66, 112, 0.14);
    padding: 26px;
}

#subscribetoqc.subscription-dialog .subscription-dialog-card::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -120px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(45, 182, 250, 0.34) 0%, rgba(45, 182, 250, 0) 72%);
    pointer-events: none;
}

#subscribetoqc.subscription-dialog .subscription-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 1px solid #bfd8ee;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #3c556c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

#subscribetoqc.subscription-dialog .subscription-close:hover {
    transform: translateY(-1px);
    border-color: #8fbbdf;
    color: #1d3c58;
}

#subscribetoqc.subscription-dialog .subscription-hero {
    position: relative;
    border-radius: 16px;
    padding: 22px;
    overflow: hidden;
    background: linear-gradient(130deg, #35bef7 0%, #2d9bf4 45%, #1f75de 100%);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

#subscribetoqc.subscription-dialog .subscription-hero::after {
    content: "";
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}

#subscribetoqc.subscription-dialog .subscription-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.92;
}

#subscribetoqc.subscription-dialog #subscribetoqc-title {
    margin: 0;
    font-size: 31px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: inherit;
    text-shadow: none;
}

#subscribetoqc.subscription-dialog .subscription-subtitle {
    margin: 11px 0 0;
    font-size: 14px;
    line-height: 1.52;
    max-width: 540px;
    opacity: 0.96;
}

#subscribetoqc.subscription-dialog .subscription-support-note {
    margin: 10px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
}

#subscribetoqc.subscription-dialog .subscription-support-note iconify-icon {
    flex: 0 0 auto;
}

#subscribetoqc.subscription-dialog .subscription-price-wrap {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
}

#subscribetoqc.subscription-dialog .subscription-price {
    font-size: 38px;
    line-height: 1;
    font-weight: 800;
}

#subscribetoqc.subscription-dialog .subscription-period {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.9;
}

#subscribetoqc.subscription-dialog .subscription-alt-price {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

#subscribetoqc.subscription-dialog .subscription-status-badge {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#subscribetoqc.subscription-dialog .subscription-status-badge.trial {
    background: rgba(255, 255, 255, 0.9);
    color: #0c679f;
}

#subscribetoqc.subscription-dialog .subscription-status-badge.active {
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
}

#subscribetoqc.subscription-dialog .subscription-status-badge.canceled {
    background: rgba(248, 113, 113, 0.9);
    color: #ffffff;
}

#subscribetoqc.subscription-dialog .subscription-status-badge.ineligible {
    background: rgba(15, 23, 42, 0.34);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

#subscribetoqc.subscription-dialog .subscription-content {
    margin-top: 18px;
}

#subscribetoqc.subscription-dialog .subscription-content h4 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #41607c;
}

#subscribetoqc.subscription-dialog .subscription-benefits {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 11px;
}

#subscribetoqc.subscription-dialog .subscription-benefits li {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #314457;
    background: #f4f9fe;
    border: 1px solid #d5e6f6;
    border-radius: 10px;
    padding: 8px 10px;
}

#subscribetoqc.subscription-dialog .subscription-benefits li iconify-icon {
    flex: 0 0 auto;
    color: #1f8ae8;
}

#subscribetoqc.subscription-dialog .subscription-actions {
    margin-top: 18px;
    border-top: 1px solid #dbe8f4;
    padding-top: 17px;
}

#subscribetoqc.subscription-dialog .subscription-form {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#subscribetoqc.subscription-dialog .subscription-frequency-label {
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    color: #5a7289;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#subscribetoqc.subscription-dialog .subscription-form select {
    flex: 1 1 220px;
    min-height: 38px;
    border: 1px solid #c2d9ed;
    border-radius: 10px;
    background: #ffffff;
    color: #2f4358;
    font-size: 13px;
    font-weight: 600;
    padding: 0 10px;
}

#subscribetoqc.subscription-dialog .subscription-form select:focus {
    outline: none;
    border-color: #2daaf6;
    box-shadow: 0 0 0 3px rgba(45, 182, 250, 0.22);
}

#subscribetoqc.subscription-dialog .subscription-cta-button,
#subscribetoqc.subscription-dialog .subscription-manage-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

#subscribetoqc.subscription-dialog .subscription-cta-button {
    flex: 0 0 auto;
    padding: 0 14px;
    color: #ffffff;
    background: linear-gradient(120deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 10px 18px rgba(234, 88, 12, 0.24);
}

#subscribetoqc.subscription-dialog .subscription-manage-link {
    width: 100%;
    color: #ffffff;
    background: linear-gradient(120deg, #1f8ae8 0%, #1f75de 100%);
    box-shadow: 0 10px 18px rgba(31, 117, 222, 0.23);
}

#subscribetoqc.subscription-dialog .subscription-cta-button:hover,
#subscribetoqc.subscription-dialog .subscription-manage-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

#subscribetoqc.subscription-dialog .subscription-renewal-date {
    margin: 12px 0 0;
    font-size: 11px;
    color: #6f8498;
}

@media (max-width: 760px) {
    #subscribetoqc.subscription-dialog {
        width: calc(100vw - 16px) !important;
        max-height: calc(100vh - 12px);
    }

    #subscribetoqc.subscription-dialog .subscription-dialog-card {
        max-height: calc(100vh - 12px);
        padding: 18px;
        border-radius: 15px;
    }

    #subscribetoqc.subscription-dialog #subscribetoqc-title {
        font-size: 25px;
    }

    #subscribetoqc.subscription-dialog .subscription-price {
        font-size: 31px;
    }

    #subscribetoqc.subscription-dialog .subscription-benefits {
        grid-template-columns: minmax(0, 1fr);
    }

    #subscribetoqc.subscription-dialog .subscription-form select,
    #subscribetoqc.subscription-dialog .subscription-cta-button {
        width: 100%;
    }
}

/* Subscription modal v2: backdrop + motion + plan cards */
body.subscription-dialog-open {
    overflow: hidden !important;
}

#subscribetoqc.subscription-dialog {
    position: fixed;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh;
    height: 100dvh;
    max-height: none !important;
    transform: none !important;
    z-index: 3200;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: clamp(8px, 2.2vh, 18px);
    background: rgba(8, 18, 29, 0.56);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 180ms ease;
}

#subscribetoqc.subscription-dialog.open {
    display: flex !important;
}

#subscribetoqc.subscription-dialog.open.visible {
    opacity: 1;
}

#subscribetoqc.subscription-dialog .subscription-modal-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

#subscribetoqc.subscription-dialog .subscription-dialog-shell {
    position: relative;
    width: min(760px, 100%);
    /* height: min(860px, 100%); */
    max-height: 100%;
    min-height: 0;
    display: flex;
    align-items: stretch;
    margin: 0;
    z-index: 1;
    pointer-events: none;
}

#subscribetoqc.subscription-dialog .subscription-dialog-card {
    pointer-events: auto;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    max-height: fit-content;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(18px) scale(0.985);
    opacity: 0;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

#subscribetoqc.subscription-dialog.open.visible .subscription-dialog-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#subscribetoqc.subscription-dialog .subscription-form {
    display: block;
}

#subscribetoqc.subscription-dialog .subscription-plan-picker {
    margin-top: 2px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#subscribetoqc.subscription-dialog .subscription-plan-card {
    position: relative;
    display: block;
    cursor: pointer;
    border: 1px solid #c8d9ec;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px 12px 11px;
    box-shadow: 0 4px 11px rgba(13, 56, 94, 0.08);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

#subscribetoqc.subscription-dialog .subscription-plan-card:hover {
    border-color: #8cbfe8;
}

#subscribetoqc.subscription-dialog .subscription-plan-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#subscribetoqc.subscription-dialog .subscription-plan-card.is-selected {
    border-color: #1f8ae8;
    background: linear-gradient(180deg, #f4faff 0%, #ffffff 100%);
    box-shadow: 0 10px 22px rgba(31, 138, 232, 0.19);
    transform: translateY(-1px);
}

#subscribetoqc.subscription-dialog .subscription-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#subscribetoqc.subscription-dialog .subscription-plan-name {
    color: #2a4158;
    font-size: 14px;
    font-weight: 800;
}

#subscribetoqc.subscription-dialog .subscription-plan-tag {
    border: 1px solid #c0d4e8;
    background: #edf5fd;
    color: #1f76c0;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#subscribetoqc.subscription-dialog .subscription-plan-tag.savings {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

#subscribetoqc.subscription-dialog .subscription-plan-price {
    display: block;
    margin-top: 8px;
    color: #193651;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

#subscribetoqc.subscription-dialog .subscription-plan-price small {
    font-size: 12px;
    color: #4d6a87;
    font-weight: 700;
}

#subscribetoqc.subscription-dialog .subscription-plan-copy {
    display: block;
    margin-top: 6px;
    color: #5f7991;
    font-size: 11px;
    font-weight: 600;
}

#subscribetoqc.subscription-dialog .subscription-plan-summary {
    margin: 10px 2px 12px;
    color: #57708a;
    font-size: 12px;
    font-weight: 700;
}

#subscribetoqc.subscription-dialog .subscription-cta-button,
#subscribetoqc.subscription-dialog .subscription-manage-link {
    min-height: 42px;
    border-radius: 11px;
}

#subscribetoqc.subscription-dialog .subscription-cta-button {
    width: 100%;
    font-size: 14px;
}

@media (max-width: 760px) {
    #subscribetoqc.subscription-dialog {
        padding: 8px;
    }

    #subscribetoqc.subscription-dialog .subscription-dialog-shell {
        width: 100%;
        height: 100%;
    }

    #subscribetoqc.subscription-dialog .subscription-dialog-card {
        max-height: fit-content;
        border-radius: 14px;
    }

    #subscribetoqc.subscription-dialog .subscription-plan-picker {
        grid-template-columns: minmax(0, 1fr);
    }
}

.blocked-content-placeholder {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
    padding: 8px 10px;
    border: 1px solid #d7dde4;
    border-radius: 8px;
    background: #f1f4f7;
    color: #5a6876;
    font-size: 12px;
    line-height: 1.35;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}

.blocked-content-placeholder.compact {
    margin: 0;
}

button.blocked-content-toggle {
    appearance: none;
    border: 1px solid #c8d1da;
    background: #edf1f5;
    color: #4e5c69;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

button.blocked-content-toggle:hover {
    background: #e2e8ee;
    border-color: #b8c3cf;
}

button.blocked-content-toggle.compact {
    padding: 5px 10px;
    font-size: 10px;
    min-height: 28px;
}

.blocked-content-chat {
    margin-top: 4px;
    width: 100%;
    justify-content: space-between;
}

.blocked-content-chat > span {
    flex: 1 1 auto;
}

.chat-list .chat.blocked-run-message {
    margin: 0 10px;
    padding: 10px 12px;
    border-left: 1px solid #d7dde4;
    border-right: 1px solid #d7dde4;
    background: #f5f6f8;
}

ol.chat-list li.chat.blocked-run-message.blocked-run-lead {
    border-top: 1px solid #d7dde4;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chat-list .chat.blocked-run-message.blocked-run-tail {
    border-bottom: 1px solid #d7dde4;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-bottom: 6px;
}

ol.chat-list li.chat.blocked-run-message:not(.blocked-run-lead) {
    border-top: 0;
}

.chat-list .chat.blocked-run-collapsed {
    margin: 0 10px;
    padding: 10px 12px;
    border: 1px solid #d7dde4;
    border-radius: 10px;
    background: #f5f6f8;
}

.chat-list .chat.blocked-run-collapsed .messages {
    margin: 0;
}

.chat-list .chat.blocked-run-collapsed .blocked-content-placeholder {
    margin: 0;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
}

li.update.blocked-run-collapsed {
    padding-right: 12px;
    overflow: hidden;
    border: 1px solid #d7dde4;
    border-radius: 8px;
    background: #f5f6f8;
}

li.update.blocked-run-collapsed span.info,
li.update.blocked-run-collapsed span.update-status-template {
    margin-left: 0;
    padding-left: 0;
}

li.update.blocked-run-collapsed .blocked-content-placeholder.compact {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
}

li.update.blocked-run-collapsed .blocked-content-placeholder.compact > span {
    min-width: 0;
    flex: 1 1 220px;
}

section.update li.reply.blocked-run-collapsed {
    border: 1px solid #d7dde4;
    border-radius: 8px;
    background: #f5f6f8;
}

section.update li.reply.blocked-run-collapsed > .info {
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
}

section.update li.reply.blocked-run-collapsed .blocked-content-placeholder {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
}

section.update li.reply.blocked-run-collapsed .blocked-content-placeholder > span {
    min-width: 0;
    flex: 1 1 220px;
}

#messages .direct-message.blocked-run-message {
    margin-top: 0;
    padding: 8px 12px;
    border-left: 1px solid #d7dde4;
    border-right: 1px solid #d7dde4;
    background: #f5f6f8;
    box-sizing: border-box;
    margin: 0 6px;
}

#messages .direct-message.blocked-run-message.blocked-run-lead {
    border-top: 1px solid #d7dde4;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-top: 12px;
}

#messages .direct-message.blocked-run-message.blocked-run-tail {
    border-bottom: 1px solid #d7dde4;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-bottom: 8px;
}

#messages .direct-message.blocked-run-message:not(.blocked-run-lead) {
    border-top: 0;
}

#messages .direct-message.blocked-run-collapsed {
    padding: 10px 12px;
}

#messages .blocked-content-direct-message {
    margin-left: 56px;
    width: calc(100% - 75px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

#messages .blocked-content-direct-message > span {
    min-width: 0;
    flex: 1 1 auto;
}

#messages .direct-message.blocked-run-collapsed .blocked-content-direct-message {
    margin-left: 0;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
}

#messages .direct-message.blocked-run-collapsed .message-actions {
    display: none !important;
}
