/* Community styles stay inside this page, away from the shared navigation. */
:where(#communityPage) *{box-sizing:border-box}
:where(#communityPage){margin:0;background:#101014;color:#efeff1;font:14px/1.5 Arial,sans-serif}
:where(#communityPage) header{padding:22px 4%;display:flex;justify-content:space-between;border-bottom:1px solid #303038}
:where(#communityPage) a{color:inherit;text-decoration:none}
:where(#communityPage) .brand{font-size:23px;font-weight:bold}
:where(#communityPage) .brand span{font-size:10px;color:#ef4444;letter-spacing:2px}
:where(#communityPage) main{max-width:1440px;margin:auto;padding:24px}
:where(#communityPage) .layout{display:grid;grid-template-columns:230px minmax(300px,1fr) 270px;gap:18px}
:where(#communityPage) .card{background:#18181b;border:1px solid #303038;border-radius:10px;padding:18px}
:where(#communityPage) h2{font-size:17px;margin:0 0 14px}
:where(#communityPage) .muted{color:#a9a9b5;font-size:12px}
:where(#communityPage) .chat{display:flex;flex-direction:column;min-height:650px}
:where(#communityPage) .chat-head{display:flex;justify-content:space-between;border-bottom:1px solid #303038}
:where(#communityPage) #messages{height:510px;overflow:auto;padding:15px 0;overflow-wrap:anywhere}
:where(#communityPage) .message{padding:5px 0}
:where(#communityPage) .time{color:#8c8c99;font-size:11px;margin-right:7px}
:where(#communityPage) .name{font-weight:700;background:none;border:0;padding:0;margin:0;cursor:pointer;font-size:14px}
:where(#communityPage) .body{white-space:pre-wrap}
:where(#communityPage) input,:where(#communityPage) textarea,:where(#communityPage) button{font:inherit}
:where(#communityPage) input:not([type=checkbox]),:where(#communityPage) textarea{width:100%;background:#25252c;color:#fff;border:1px solid #45454f;border-radius:5px;padding:10px;margin:6px 0}
:where(#communityPage) button{background:#ef4444;color:white;border:0;border-radius:5px;padding:9px 15px;cursor:pointer;margin:6px 0}
:where(#communityPage) button.quiet{background:#33333c}
:where(#communityPage) #chat-form{display:flex;gap:8px}
:where(#communityPage) details{margin-top:18px}
:where(#communityPage) summary{cursor:pointer;color:#ddd}
:where(#communityPage) label{display:block;font-size:12px;color:#ccc}
:where(#communityPage) textarea{min-height:65px}
:where(#communityPage) .ad{text-align:center;padding:25px;border:1px dashed #393940;color:#777;margin:20px 0;font-size:11px}
:where(#communityPage) .model{display:block;padding:12px 0;border-bottom:1px solid #303038}
:where(#communityPage) .live{color:#41dc91;font-size:11px}
:where(#communityPage) .error,:where(#communityPage) #notice{color:#fca5a5}
@media(max-width:1000px){:where(#communityPage) .layout{grid-template-columns:190px 1fr}
:where(#communityPage) .layout>aside:last-child{grid-column:1/-1}
}
@media(max-width:600px){:where(#communityPage) .layout{display:flex;flex-direction:column}
:where(#communityPage) main{padding:12px}
:where(#communityPage) header>span{display:none}
:where(#communityPage) .chat{min-height:500px}
:where(#communityPage) #messages{height:360px}
}


/* Center the community identity independently of account controls. */
:where(#communityPage) header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px}
:where(#communityPage) header>.brand{grid-column:2;justify-self:center;white-space:nowrap}
:where(#communityPage) header>.community-account-actions{grid-column:3;justify-self:end}
@media(max-width:700px){:where(#communityPage) header{grid-template-columns:1fr}:where(#communityPage) header>.brand{grid-column:1}:where(#communityPage) header>.community-account-actions{grid-column:1;justify-self:end}}

:where(#communityPage) #modelsChatMessages{height:510px;overflow:auto;padding:15px 0;overflow-wrap:anywhere;font-size:var(--chat-text-size,14px)}
:where(#communityPage) #modelsChatForm{display:flex;gap:8px}
:where(#communityPage) #modelsChatBody{min-width:0;flex:1}
@media(max-width:700px){:where(#communityPage) #modelsChatMessages{height:360px}}

:where(#communityPage) #modelsChatPanel{display:flex;flex-direction:column;flex:1;min-height:0}
:where(#communityPage) #modelsChatPanel[hidden],:where(#communityPage) #modelsChatTab[hidden]{display:none!important}
:where(#communityPage) #modelsChatMessages{height:auto;flex:1;min-height:0}
:where(#communityPage) #modelsChatForm,:where(#communityPage) #modelsChatNotice{flex-shrink:0}

:where(#communityPage) .models-chat-tools{flex-shrink:0;font-size:12px;margin-bottom:8px}
:where(#communityPage) .models-chat-tools[open]{max-height:45%;overflow:auto;padding:8px;border:1px solid #223040;border-radius:8px}
:where(#communityPage) .models-chat-tools summary{cursor:pointer;color:#9aa4b2}
:where(#communityPage) .models-chat-tools form{margin-top:12px}
:where(#communityPage) .models-chat-tools textarea{width:100%;box-sizing:border-box}
:where(#communityPage) #modelsChatNotice{color:#fca5a5}

:where(#communityPage) .profile-joined{color:#9aa4b2;font-size:13px;margin:4px 0 14px}
:where(#communityPage) .profile-role{margin-bottom:4px}

:where(#communityPage) .profile-conversation-actions .profile-gift-usdt{display:inline-flex;align-items:center;gap:8px;background:#f2a52b;border:1px solid #f2a52b;color:#17120b;font-weight:700;border-radius:999px;padding:10px 16px}
:where(#communityPage) .profile-gift-usdt:hover{background:#ffb43b;border-color:#ffb43b}
:where(#communityPage) .profile-gift-panel{margin-top:14px;padding:14px;border:1px solid #293142;border-radius:10px;background:#111824}
:where(#communityPage) .profile-gift-panel[hidden]{display:none}
:where(#communityPage) .profile-gift-panel p{font-size:13px;color:#aeb8c7;margin:8px 0}
:where(#communityPage) .profile-gift-panel input{width:100%;box-sizing:border-box;font-family:monospace;margin-bottom:10px}

:where(#communityPage) #communityLeaderboard button.profile-gift-usdt{display:inline-flex;align-items:center;gap:8px;background:#f2a52b;border:1px solid #f2a52b;color:#17120b;font-weight:700;border-radius:999px;padding:8px 16px;white-space:nowrap}
:where(#communityPage) #communityLeaderboard button.profile-gift-usdt:hover,:where(#communityPage) #communityLeaderboard button.profile-gift-usdt:focus-visible{background:#ffb43b;border-color:#ffb43b;color:#17120b}

:where(#communityPage) .google-login-form{margin:12px 0 16px;display:flex}
:where(#communityPage) .google-login-form .google-signin{display:inline-flex;align-items:center;justify-content:center;gap:10px}

:where(#communityPage) .viewer-filters{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
:where(#communityPage) .viewer-filters input{flex:1;min-width:180px}
:where(#communityPage) .viewer-filters select{width:auto;min-width:145px}
:where(#communityPage) .viewer-row[hidden]{display:none}

:where(#communityPage) .viewer-category{border-top:1px solid #293142;padding:12px 0}
:where(#communityPage) .viewer-category summary{font-weight:700;cursor:pointer}
:where(#communityPage) .viewer-category-count{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:12px;background:#1d2937;color:#aeb8c7;font-size:12px}
:where(#communityPage) .viewer-category-members{padding-top:8px}
:where(#communityPage) .viewer-category[hidden]{display:none}

:where(#communityPage) .viewer-row{flex-wrap:wrap}
:where(#communityPage) .viewer-gifts{margin-left:auto}
:where(#communityPage) .viewer-gifts button.profile-gift-usdt{display:inline-flex;align-items:center;gap:8px;background:#f2a52b;border:1px solid #f2a52b;color:#17120b;font-weight:700;border-radius:999px;padding:8px 16px;white-space:nowrap}
:where(#communityPage) .viewer-gifts .profile-gift-panel{max-width:320px}

/* Compact viewer controls; profile and leaderboard gift buttons retain their style. */
#viewerList .viewer-gifts button.profile-gift-usdt,#viewerList .viewer-actions button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:0;min-height:0;padding:6px;margin:0;background:transparent;border:0;border-radius:6px;color:#8996ab;box-shadow:none}
#viewerList .viewer-gifts button.profile-gift-usdt span{display:none}
#viewerList .viewer-gifts button.profile-gift-usdt svg,#viewerList .viewer-actions button svg{width:16px;height:16px;flex-shrink:0}
#viewerList .viewer-gifts button.profile-gift-usdt:hover,#viewerList .viewer-gifts button.profile-gift-usdt:focus-visible,#viewerList .viewer-actions button:hover,#viewerList .viewer-actions button:focus-visible{background:#263244;color:#e7edf3}

:where(#communityPage) #communityLeaderboard button.profile-gift-usdt{justify-content:center;width:28px;height:28px;min-width:0;min-height:0;padding:6px;margin:0;background:transparent;border:0;border-radius:6px;color:#8996ab;box-shadow:none}
:where(#communityPage) #communityLeaderboard button.profile-gift-usdt span{display:none}
:where(#communityPage) #communityLeaderboard button.profile-gift-usdt svg{width:16px;height:16px;flex-shrink:0}
:where(#communityPage) #communityLeaderboard button.profile-gift-usdt:hover,:where(#communityPage) #communityLeaderboard button.profile-gift-usdt:focus-visible{background:#263244;border:0;color:#e7edf3}

:where(#communityPage) .viewer-summary-toolbar{display:flex;align-items:center;gap:12px;margin:10px 0 16px;flex-wrap:wrap}
:where(#communityPage) .viewer-summary-toolbar #viewerSummary{margin:0;flex:0 0 auto}
:where(#communityPage) .viewer-summary-toolbar .viewer-filters{flex:1;min-width:180px;margin:0}
:where(#communityPage) .viewer-summary-toolbar .viewer-filters input{width:100%;height:36px;margin:0;padding:7px 10px}
:where(#communityPage) #viewerFilterStatus:empty{display:none}
:where(#communityPage) #leaderboardHidden{display:none!important}

/* Let the viewer list use all available chat-panel space. */
#communityPage .chat #viewersPanel:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#communityPage .chat #viewersPanel #viewerList{flex:1;min-height:0;max-height:none;width:100%;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}
#communityPage .chat #viewersPanel>h3,#communityPage .chat #viewersPanel>.viewer-summary-toolbar,#communityPage .chat #viewersPanel>#viewerFilterStatus{flex-shrink:0}

#communityPage .vip-badge{display:inline-block;width:16px;height:16px;object-fit:contain;vertical-align:middle;margin-right:4px;flex-shrink:0}

#communityPage :is(#messages,#modelsChatMessages) .message.has-vip-control{padding-right:180px}
#communityPage :is(#messages,#modelsChatMessages) .message .message-vip{position:absolute;right:120px;top:0;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:4px;margin:0;border:0;background:transparent;color:#8996ab;border-radius:6px}
#communityPage :is(#messages,#modelsChatMessages) .message.has-vip-control .reaction-add{right:150px}
#communityPage .message-vip:hover,#communityPage .message-vip:focus-visible{background:#263244;color:#e7edf3}

#communityPage :is(#messages,#modelsChatMessages) .message.has-vip-control .message-timeout{right:120px}
#communityPage :is(#messages,#modelsChatMessages) .message.has-vip-control .message-vip{right:90px}

/* Consistent compact grey action spacing. */
#communityPage :is(#messages,#modelsChatMessages) .message :is(.message-delete,.message-ban,.message-moderator,.message-timeout,.message-vip,.reaction-add){width:24px;height:26px;padding:3px;min-width:0}
#communityPage :is(#messages,#modelsChatMessages) .message .message-delete{right:0}
#communityPage :is(#messages,#modelsChatMessages) .message .message-ban{right:24px}
#communityPage :is(#messages,#modelsChatMessages) .message .message-moderator{right:48px}
#communityPage :is(#messages,#modelsChatMessages) .message .message-timeout{right:72px}
#communityPage :is(#messages,#modelsChatMessages) .message .reaction-add{right:96px}
#communityPage :is(#messages,#modelsChatMessages) .message.has-vip-control .message-vip{right:72px}
#communityPage :is(#messages,#modelsChatMessages) .message.has-vip-control .message-timeout{right:96px}
#communityPage :is(#messages,#modelsChatMessages) .message.has-vip-control .reaction-add{right:120px}
#communityPage :is(#messages,#modelsChatMessages) .message{padding-right:128px}
#communityPage :is(#messages,#modelsChatMessages) .message.has-vip-control{padding-right:152px}
#communityPage #viewerList .viewer-actions{gap:0}
#communityPage #viewerList :is(.viewer-actions button,.viewer-gifts button.profile-gift-usdt),#communityPage #communityLeaderboard button.profile-gift-usdt{width:24px;height:26px;padding:4px;min-width:0;min-height:0}

#communityPage .camgirlpal-staff-badge{display:inline-flex;vertical-align:middle;margin-right:4px;width:16px;height:16px;padding:0;background:transparent;border:0}#communityPage .camgirlpal-staff-badge img{display:block;width:16px;height:16px;object-fit:contain}

#communityPage .staff-shield-badge,.staff-badge-tooltip{cursor:pointer}

#communityPage .chat-auto-link{color:#69b7ff;cursor:pointer;overflow-wrap:anywhere;text-decoration:none}#communityPage .chat-auto-link:hover,#communityPage .chat-auto-link:focus-visible{text-decoration:underline}

#communityPage .emote-managed-tile{position:relative;min-width:0}#communityPage .emote-managed-tile .animated-emote-choice{width:100%;height:100%;padding-bottom:22px}#communityPage .emote-edit-actions{position:absolute;bottom:2px;right:3px;display:flex;gap:0;opacity:0}#communityPage .emote-managed-tile:hover .emote-edit-actions,#communityPage .emote-managed-tile:focus-within .emote-edit-actions{opacity:1}#communityPage .emote-small-action{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:2px;margin:0;background:transparent;border:0;color:#94a3b8;cursor:pointer}#communityPage .emote-small-action:hover{color:#fff}#communityPage .emote-small-action[hidden],#communityPage .emote-upload-form[hidden]{display:none}#communityPage .emote-upload-form{display:flex;gap:6px;padding:6px;flex-wrap:wrap}#communityPage .emote-upload-form input{min-width:0;max-width:220px;font-size:12px}#communityPage .emote-code-edit{width:100%;min-width:0;padding:2px;font-size:11px}#communityPage .emote-manager-status{display:block;color:#aeb8c7;padding:0 6px}#communityPage .animated-emote-choice:disabled{opacity:1}@media(hover:none){#communityPage .emote-edit-actions{opacity:1}}

#communityPage .chat-image-upload{display:inline-flex;align-items:center;justify-content:center;width:30px;min-width:30px;padding:0;color:#94a3b8}#communityPage .chat-image-upload[hidden]{display:none}#communityPage .chat-uploaded-image{display:inline-block;max-width:min(240px,100%);max-height:240px;object-fit:contain;vertical-align:middle;border-radius:4px}

#communityPage .giphy-panel[hidden]{display:none}#communityPage .giphy-search{display:flex;gap:6px;padding:6px}#communityPage .giphy-search input{min-width:0;flex:1}#communityPage .giphy-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:6px;max-height:250px;overflow:auto}#communityPage .giphy-choice{padding:3px;background:#1c2834;border:1px solid #344153;border-radius:6px}#communityPage .giphy-choice img{width:100%;height:90px;object-fit:contain}#communityPage .giphy-credit{display:block;color:#aeb8c7;font-size:11px;margin:6px}#communityPage .giphy-chat-media{display:inline-flex;flex-direction:column;vertical-align:middle;color:#aeb8c7;max-width:100%}#communityPage .giphy-chat-media small{font-size:9px}
