.fjm-news-grid { display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:24px;align-items:start; }
.fjm-news-grid:has(>section:only-child){grid-template-columns:1fr}
.fjm-news-grid {margin-bottom:100px;}
.fjm-community-card { background:#141414ec;border:1px solid #424242;border-radius:12px;padding:26px;color:#eee;min-width:0; }
.fjm-community-card>header,.fjm-chat-messages header,.fjm-chat-send { display:flex;align-items:center;justify-content:space-between;gap:16px; }
.fjm-community-card h2 { font-size:25px;margin:0 0 18px;color:#fff; }
.fjm-community-card h3 {font-size:20px;color:#fff;}
.fjm-community-card a {color:#8ed1ff;}
.fjm-news-post {padding:20px 0;border-bottom:1px solid #444;overflow-wrap:anywhere;}
.fjm-news-post time,.fjm-news-rooms time {color:#aaa;font-size:13px;}
.fjm-news-content {margin-top:16px;}
.fjm-news-content img {max-width:100%;height:auto;}
.fjm-news-rooms {list-style:none;margin:0 0 20px;padding:0;}
.fjm-news-rooms li {padding:18px 0;border-bottom:1px solid #444;}
.fjm-news-rooms li>a {font-size:19px;}
.fjm-news-rooms p {margin:8px 0;}
.fjm-chat-rules {color:#ddd;font-size:15px;}
.fjm-chat-policy {margin:12px 0 20px;color:#bbb;font-size:13px;}
.fjm-chat-policy summary {cursor:pointer;color:#8ed1ff;}
#fjm-chat-connection {font-size:13px;color:#a6d7b8;white-space:nowrap;}
#fjm-chat-messages {height:clamp(220px,36vh,420px);overflow-y:auto;overscroll-behavior:contain;list-style:none;margin:0 0 20px;padding:10px;background:#090909;border:1px solid #444;border-radius:8px;}
#fjm-chat-messages li {padding:12px 10px;border-bottom:1px solid #292929;}
#fjm-chat-messages .fjm-chat-empty {color:#999;text-align:center;border:0;padding:35px 10px;}
#fjm-chat-messages li>header {display:flex;gap:12px;align-items:center;justify-content:space-between;}
#fjm-chat-messages li>header a {font-weight:600;}
#fjm-chat-messages time {color:#999;font-size:12px;}
#fjm-chat-messages p {margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;}
#fjm-chat-form label {display:block;margin-bottom:8px;}
#fjm-chat-message,#fjm-chat-message:focus {display:block;width:100%;padding:12px;background:#202020;color:#fff;-webkit-text-fill-color:#fff;caret-color:#fff;border:1px solid #777;border-radius:6px;}
.fjm-chat-send {margin-top:12px;}
.fjm-chat-send button {background:#24699c;color:#fff;border:1px solid #69afe4;border-radius:6px;padding:10px 28px;}
#fjm-chat-feedback {color:#ddd;}
#fjm-chat-warning {background:#202020;color:#fff;border:0;border-left:7px solid #f4cf45;border-radius:10px;padding:28px;max-width:min(90vw,520px);box-shadow:0 12px 60px #000b;}
#fjm-chat-warning::backdrop {background:#000a;}
#fjm-chat-warning[data-level=orange] {border-left-color:#ff9a36;}
#fjm-chat-warning[data-level=red] {border-left-color:#f04f55;}
#fjm-chat-warning h2 {color:#f4cf45;margin:0 0 16px;font-size:24px;}
#fjm-chat-warning[data-level=orange] h2 {color:#ffaf55;}
#fjm-chat-warning[data-level=red] h2 {color:#ff777d;}
#fjm-chat-warning p {color:#eee;}
#fjm-chat-warning button {color:#fff;background:#444;border:1px solid #aaa;border-radius:5px;padding:8px 25px;}
.main-navigation .fjm-header-welcome {width:auto;flex:none;white-space:nowrap;margin:0 5px 0 12px;color:#999;font-size:14px;}
.main-navigation .user-link .bp-user {white-space:nowrap;}
.main-navigation .buddyx-mobile-user .fjm-mobile-welcome {display:inline;width:auto;margin-right:6px;}
.main-navigation .buddyx-mobile-user .fjm-mobile-welcome+a {display:inline;width:auto;}
/* A fixed-size presence light, not an unread counter. */
#site-navigation .fjm-menu-livechat>a {display:inline-flex;align-items:center;gap:8px;white-space:nowrap;}
.fjm-livechat-indicator {display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;box-sizing:border-box;border:1px solid #c5cad079;border-radius:50%;background:radial-gradient(circle at 35% 28%,#858b90,#383d42 72%);box-shadow:inset 0 1px 2px #ffffff55,0 0 0 1px #0009;vertical-align:middle;}
.fjm-livechat-indicator[data-active=true] {background:radial-gradient(circle at 35% 28%,#76d685,#287e3d 70%);}
.fjm-livechat-indicator[data-active=false] {background:radial-gradient(circle at 35% 28%,#ee6971,#9b2933 70%);}
.fjm-livechat-indicator svg {display:none;width:13px;height:11px;fill:none;stroke:#fff;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
.fjm-livechat-indicator[data-active=true] svg {display:block;}
@media(min-width:1025px){body.fjm-ui #site-navigation .buddyx-desktop-menu>.menu>li:is(.fjm-menu-news,.fjm-menu-livechat)>a {padding-inline:10px;}}
@media(min-width:1025px) and (max-width:1280px){#site-navigation .buddyx-desktop-menu .menu>li>a,#site-navigation .user-link .bp-user{font-size:14px}}
@media(max-width:800px){.fjm-news-grid{grid-template-columns:1fr}.fjm-community-card{padding:18px}#fjm-chat-messages{height:360px}.fjm-header-welcome{display:none}}

/* Use the space between the site's header and footer for the conversation. */
body.fjm-ui #page > .container:has(.fjm-livechat),
body.fjm-ui #page :is(.site-wrapper, #primary, .entry-content):has(.fjm-livechat) {
    display:flex;
    flex-direction:column;
    min-block-size:0;
}
body.fjm-ui #page :is(.site-wrapper, #primary, .entry-content):has(.fjm-livechat) {
    flex:1 1 0;
    margin-block:0;
    padding-block:0;
}
body.fjm-ui #page > .container:has(.fjm-livechat) > .site-sub-header {
    flex:none;
    min-block-size:0;
    margin-block:0;
    padding-block:clamp(6px,1dvh,14px);
}
body.fjm-ui #page > .container:has(.fjm-livechat) > .site-sub-header .entry-title {margin:0;}

body.fjm-ui #page .fjm-livechat {
    display:grid;
    flex:1 1 0;
    grid-template:
        'rules connection' auto
        'policy policy' auto
        'messages messages' minmax(7rem, 1fr)
        'composer composer' auto / minmax(0, 1fr) auto;
    gap:clamp(7px,1.2dvh,13px);
    min-block-size:min-content;
    box-sizing:border-box;
    margin:0 0 8px;
    padding:clamp(10px,1.7dvh,22px);
}
body.fjm-ui #page .fjm-livechat > header {grid-area:connection;align-self:start;}
body.fjm-ui #page > .container:has(> .site-sub-header) .fjm-livechat #fjm-chat-title {display:none;}
body.fjm-ui #page .fjm-livechat .fjm-chat-rules {grid-area:rules;margin:0;}
body.fjm-ui #page .fjm-livechat .fjm-chat-policy {grid-area:policy;margin:0;}
body.fjm-ui #page .fjm-livechat .fjm-chat-policy p {margin:8px 0 0;}
body.fjm-ui #page .fjm-livechat #fjm-chat-messages {
    grid-area:messages;
    contain:size;
    height:auto;
    min-block-size:0;
    margin:0;
}
body.fjm-ui #page .fjm-livechat #fjm-chat-messages:focus-visible {
    outline:2px solid #8ed1ff;
    outline-offset:-2px;
}
body.fjm-ui #page .fjm-livechat #fjm-chat-form {grid-area:composer;margin:0;}
body.fjm-ui #page .fjm-livechat #fjm-chat-form label {margin:0 0 4px;}
body.fjm-ui #page .fjm-livechat #fjm-chat-message {min-block-size:3.5rem;padding-block:8px;resize:vertical;}
body.fjm-ui #page .fjm-livechat .fjm-chat-send {margin-top:6px;}

@media(min-width:768px) {
    body.fjm-ui #page .fjm-livechat #fjm-chat-form {
        display:grid;
        grid-template:
            'label label' auto
            'message send' auto
            'feedback feedback' auto / minmax(0, 1fr) auto;
        align-items:end;
        column-gap:10px;
    }
    body.fjm-ui #page .fjm-livechat #fjm-chat-form label {grid-area:label;}
    body.fjm-ui #page .fjm-livechat #fjm-chat-message {grid-area:message;}
    body.fjm-ui #page .fjm-livechat .fjm-chat-send {display:contents;}
    body.fjm-ui #page .fjm-livechat #fjm-chat-feedback {grid-area:feedback;}
    body.fjm-ui #page .fjm-livechat #fjm-chat-feedback:not(:empty) {margin-top:4px;}
    body.fjm-ui #page .fjm-livechat .fjm-chat-send button {grid-area:send;}
}
