/* Community styles stay inside this page, away from the shared navigation. */
:where(#communityPage) .player-controls{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
:where(#communityPage) #creatorLink{
  display:block;
  min-width:150px;
  max-width:clamp(180px,32vw,360px);
  padding:8px 10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:850;
  border-radius:10px;
  background:#0f1623;
  border:1px solid #223040;
}
:where(#communityPage) .player-btn{
  min-height:38px;
  padding:8px 13px;
  border-radius:11px;
  border:1px solid #223040;
  background:#121a26;
  color:#e7edf3;
  cursor:pointer;
  font-weight:850;
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .15s ease;
}
:where(#communityPage) .player-btn:hover{
  background:rgba(239,68,68,.14);
  border-color:rgba(239,68,68,.32);
  transform:translateY(-1px);
}
:where(#communityPage) .profile-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
:where(#communityPage) .status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  min-height:38px;
  padding:0 13px;
  border-radius:999px;
  background:#111926;
  border:1px solid #223040;
  color:#cbd5e1;
  font-size:13px;
  font-weight:850;
}
:where(#communityPage) .status-pill.is-live{
  color:#fecaca;
  border-color:rgba(239,68,68,.30);
  background:rgba(239,68,68,.10);
}
:where(#communityPage) .player-spacer{
  flex:1 1 auto;
  min-width:10px;
}
:where(#communityPage) .video-shell{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:14px;
  background:#000;
  border:1px solid var(--frame);
}
:where(#communityPage) .video-shell video{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#000;
}
:where(#communityPage) .video-live-badge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:5;
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.58);
  backdrop-filter:blur(4px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
}
:where(#communityPage) .video-live-badge .live-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 7px var(--accent);
}
:where(#communityPage) .video-live-badge .live-text{
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
:where(#communityPage) .video-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:4;
  padding:36px 10px 9px;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.72),
      rgba(0,0,0,0)
    );
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
}
@media (hover:hover) and (pointer:fine){:where(#communityPage) .video-shell:hover .video-overlay,:where(#communityPage) .video-shell:focus-within .video-overlay,:where(#communityPage) .video-shell:hover .video-live-badge,:where(#communityPage) .video-shell:focus-within .video-live-badge{
    opacity:1;
    pointer-events:auto;
  }


}
:where(#communityPage) .video-shell.show-ui .video-overlay,:where(#communityPage) .video-shell.show-ui .video-live-badge{
  opacity:1;
  pointer-events:auto;
}
:where(#communityPage) .overlay-controls{
  display:flex;
  align-items:center;
  gap:10px;
  max-width:100%;
}
:where(#communityPage) .icon-btn{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  padding:0;
  border-radius:11px;
  background:#0f1623;
  border:1px solid #223040;
  color:#e5e7eb;
  cursor:pointer;
}
:where(#communityPage) .icon-btn svg{
  width:18px;
  height:18px;
}
:where(#communityPage) .overlay-slider{
  flex:1 1 auto;
  max-width:240px;
  appearance:none;
  height:6px;
  border-radius:999px;
  background:#233040;
  outline:none;
  cursor:pointer;
}
:where(#communityPage) .overlay-slider::-webkit-slider-thumb{
  appearance:none;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#e5e7eb;
  border:2px solid #020617;
}
:where(#communityPage) .overlay-slider::-moz-range-thumb{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#e5e7eb;
  border:2px solid #020617;
}
:where(#communityPage) #muteBtn .icon-on{
  display:none;
}
:where(#communityPage) #muteBtn[data-muted="0"] .icon-on{
  display:block;
}
:where(#communityPage) #muteBtn[data-muted="0"] .icon-off{
  display:none;
}
:where(#communityPage) #muteBtn[data-muted="1"] .icon-off{
  display:block;
}
:where(#communityPage) .player-description{
  padding-top:14px;
}
:where(#communityPage) .player-description h3{
  margin:0;
  font-size:18px;
}
:where(#communityPage) .player-description p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
:where(#communityPage){--accent:#ef4444;--frame:rgba(255,255,255,.08)}
:where(#communityPage) main{max-width:1760px}
:where(#communityPage) .layout{grid-template-columns:200px minmax(360px,1fr) 340px;align-items:start}
:where(#communityPage) .layout>aside:first-child{position:sticky;top:15px}
:where(#communityPage) .watch{background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01)),#0f141b;border-radius:16px;box-shadow:0 12px 36px rgba(0,0,0,.36)}
:where(#communityPage) .watch-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
:where(#communityPage) .eyebrow{font-size:10px;font-weight:bold;letter-spacing:2px;color:#ef4444;margin:0 0 7px}
:where(#communityPage) .watch h2{font-size:20px;margin:0}
:where(#communityPage) .watch .player-controls{gap:8px}
:where(#communityPage) .watch .player-btn,:where(#communityPage) .watch .icon-btn{margin:0}
:where(#communityPage) .watch .overlay-slider{width:auto!important;padding:0!important;margin:0!important;border:0!important;min-width:40px}
:where(#communityPage) .watch .player-btn{font-size:12px}
:where(#communityPage) .watch #creatorLink{min-width:100px;font-size:14px}
:where(#communityPage) .watch .icon-btn{width:36px;height:36px}
:where(#communityPage) .watch .overlay-controls{gap:8px}
:where(#communityPage) .video-shell{min-height:190px}
:where(#communityPage) .video-overlay{opacity:1;pointer-events:auto}
:where(#communityPage) .video-live-badge{display:none}
:where(#communityPage) .video-shell.is-playing .video-live-badge{display:flex}
:where(#communityPage) .player-message{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;text-align:center;padding:30px;background:rgba(0,0,0,.68);color:#dbe3eb;font-size:14px}
:where(#communityPage) .player-message[hidden]{display:none}
:where(#communityPage) #qualitySelect{max-width:120px}
:where(#communityPage) .conversation-column{display:grid;gap:14px}
:where(#communityPage) .chat{min-height:540px}
:where(#communityPage) :is(#messages,#modelsChatMessages){height:390px}
:where(#communityPage) .account-card{max-height:none}
:where(#communityPage) .profile-details{margin:0}
:where(#communityPage) .profile-details>summary{font-size:16px;font-weight:bold}
:where(#communityPage) .account-card details details{margin-top:12px}
:where(#communityPage) .model{width:100%;background:transparent;text-align:left;border-radius:0;display:flex;gap:10px;align-items:center;color:#efeff1;margin:0;padding:12px 2px}
:where(#communityPage) .model:hover,:where(#communityPage) .model.selected{background:#262631}
:where(#communityPage) .model img{width:52px;height:40px;object-fit:cover;border-radius:6px}
:where(#communityPage) .model strong{display:block;font-size:13px;overflow-wrap:anywhere}
:where(#communityPage) .model .live,:where(#communityPage) .model .muted{font-size:11px}
:where(#communityPage) .model.selected{border-left:2px solid #ef4444;padding-left:8px}
:where(#communityPage) .watch .video-shell:fullscreen{border-radius:0;width:100%;height:100%;aspect-ratio:auto}
:where(#communityPage) .video-shell:fullscreen video{object-fit:contain}
@media(max-width:1200px){:where(#communityPage) .layout{grid-template-columns:170px minmax(300px,1fr) 300px;gap:12px}
:where(#communityPage) main{padding:15px}
:where(#communityPage) .card{padding:13px}
:where(#communityPage) .watch #creatorLink{max-width:160px}
:where(#communityPage) .player-spacer{display:none}
}
@media(max-width:950px){:where(#communityPage) .layout{grid-template-columns:160px minmax(0,1fr)}
:where(#communityPage) .conversation-column{grid-column:2}
:where(#communityPage) .watch{grid-column:2}
:where(#communityPage) .layout>aside:first-child{grid-row:1/3}
:where(#communityPage) .layout>aside:last-child{grid-column:auto}
:where(#communityPage) .chat{min-height:420px}
:where(#communityPage) :is(#messages,#modelsChatMessages){height:290px}
}
@media(max-width:600px){:where(#communityPage) .layout{display:flex;flex-direction:column}
:where(#communityPage) .layout>*{width:100%}
:where(#communityPage) .layout>aside:first-child{position:static}
:where(#communityPage) #models{display:flex;overflow-x:auto;gap:8px}
:where(#communityPage) .model{flex:0 0 150px;border:1px solid #303038;border-radius:8px;padding:8px}
:where(#communityPage) .model img{width:40px;height:40px}
:where(#communityPage) .video-shell{min-height:0}
:where(#communityPage) .watch-heading{gap:12px}
:where(#communityPage) .watch h2{font-size:17px}
:where(#communityPage) .overlay-slider{max-width:120px}
:where(#communityPage) .watch #creatorLink{max-width:150px}
:where(#communityPage) .status-pill{min-width:70px;font-size:11px}
:where(#communityPage) .chat{min-height:400px}
:where(#communityPage) :is(#messages,#modelsChatMessages){height:270px}
}
:where(#communityPage){--bg:#0b1020;--panel:#0f141b;--text:#e7edf3;--muted:#9aa4b2;--border:rgba(255,255,255,.08);--accent:#ef4444}
:where(#communityPage){background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:where(#communityPage) .card{background:var(--panel);border-color:var(--border);border-radius:16px}
:where(#communityPage) .muted{color:var(--muted)}
:where(#communityPage) header{border-color:var(--border)}
:where(#communityPage) .brand span{color:var(--accent)}
:where(#communityPage) button{background:var(--accent)}
:where(#communityPage) input:not([type=checkbox]),:where(#communityPage) textarea{background:#111824;border-color:#223040;border-radius:10px}
:where(#communityPage) button.quiet{background:#121a26;border:1px solid #223040}
:where(#communityPage) #nextBtn[hidden]{display:none}
:where(#communityPage) .room-card .model{cursor:default}
:where(#communityPage) .watch .model.selected{border-color:var(--accent)}
:where(#communityPage) #memberDialog{width:min(520px,92vw);max-height:85vh;overflow:auto;border:1px solid #223040;border-radius:16px;padding:24px;background:var(--panel);color:var(--text);box-shadow:0 12px 36px rgba(0,0,0,.5)}
:where(#communityPage) #memberDialog::backdrop{background:rgba(0,0,0,.7)}
:where(#communityPage) #closeProfile{float:right;margin:0 0 12px 12px}
:where(#communityPage) .profile-about{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;clear:both}
:where(#communityPage) .profile-links{display:flex;gap:10px;flex-wrap:wrap}
:where(#communityPage) .profile-links a{font-size:13px}
:where(#communityPage) .profile-moderation{border-top:1px solid #223040;margin-top:24px;padding-top:12px;display:flex;gap:10px}
:where(#communityPage) :is(#messages,#modelsChatMessages) .name{margin-right:4px}
:where(#communityPage) .account-menu{position:relative;margin:0;z-index:20}
:where(#communityPage) .account-menu summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer}
:where(#communityPage) .account-menu summary::-webkit-details-marker{display:none}
:where(#communityPage) .avatar-initial,:where(#communityPage) .profile-avatar{display:grid;place-items:center;border:2px solid var(--accent);background:#1a2232;border-radius:50%;font-weight:700}
:where(#communityPage) .avatar-initial{width:38px;height:38px}
:where(#communityPage) .account-dropdown{position:absolute;right:0;top:52px;width:min(290px,85vw);padding:10px;background:#18202c;border:1px solid #2b3748;border-radius:12px;box-shadow:0 14px 40px #0008}
:where(#communityPage) .account-heading{padding:12px;border-bottom:1px solid #2b3748;margin-bottom:6px}
:where(#communityPage) .account-heading small{display:block;color:var(--muted);margin-top:5px}
:where(#communityPage) .account-dropdown .menu-item{display:block;width:100%;text-align:left;background:transparent;color:var(--text);padding:12px;margin:0;border-radius:8px;font-size:14px}
:where(#communityPage) .account-dropdown .menu-item:hover{background:#263244}
:where(#communityPage) .account-dropdown form{margin:6px 0 0;border-top:1px solid #2b3748;padding-top:6px}
:where(#communityPage) .profile-avatar{width:60px;height:60px;font-size:26px;margin-bottom:14px}
:where(#communityPage) .profile-role{color:var(--muted);font-size:13px;margin-top:-8px}
:where(#communityPage) .profile-moderation{flex-wrap:wrap}
:where(#communityPage) .profile-moderation button{font-size:13px}
:where(#communityPage) #memberContent>h2{margin-top:8px}
@media(max-width:600px){:where(#communityPage) .account-menu summary>span:nth-child(2){display:none}
}
:where(#communityPage) .layout{grid-template-columns:minmax(0,var(--video-width,1fr)) 12px minmax(280px,1fr);gap:0;align-items:start}
:where(#communityPage) .layout>#models{display:none}
:where(#communityPage) .layout>.watch{grid-column:1;grid-row:1;min-width:0}
:where(#communityPage) .layout>.conversation-column{grid-column:3;grid-row:1;min-width:0}
:where(#communityPage) .layout:not(.has-room-width){grid-template-columns:minmax(0,1fr) 12px 340px}
:where(#communityPage) #roomDivider{grid-column:2;grid-row:1;align-self:stretch;min-height:400px;cursor:col-resize;touch-action:none;position:relative;border-radius:8px}
:where(#communityPage) #roomDivider:after{content:"";position:absolute;left:5px;top:20px;bottom:20px;width:2px;border-radius:2px;background:transparent;transition:background .2s}
:where(#communityPage) #roomDivider:hover:after,:where(#communityPage) #roomDivider:focus-visible:after,:where(#communityPage) .resizing-room #roomDivider:after{background:var(--accent)}
:where(#communityPage) .resizing-room{user-select:none;cursor:col-resize}
:where(#communityPage) .video-shell .overlay-controls{opacity:0;pointer-events:none;transition:opacity .25s}
:where(#communityPage) .video-shell:hover .overlay-controls,:where(#communityPage) .video-shell:focus-within .overlay-controls,:where(#communityPage) .video-shell.touch-controls .overlay-controls{opacity:1;pointer-events:auto}
@media(hover:none){:where(#communityPage) .video-shell .overlay-controls{opacity:1;pointer-events:auto}
}
@media(max-width:800px){:where(#communityPage) .layout,:where(#communityPage) .layout:not(.has-room-width){display:flex;flex-direction:column;gap:14px}
:where(#communityPage) .layout>.watch,:where(#communityPage) .layout>.conversation-column{width:100%}
:where(#communityPage) #roomDivider{display:none}
}
:where(#communityPage) .layout:not(.has-room-width){grid-template-columns:minmax(0,1fr) 12px minmax(340px,1fr)}
:where(#communityPage) .chat-options{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
:where(#communityPage) .chat-options label{font-size:12px;color:var(--muted);margin:0}
:where(#communityPage) .chat-options select{background:#111824;color:var(--text);border:1px solid #223040;border-radius:8px;padding:6px;width:auto;font-size:12px}
:where(#communityPage) :is(#messages,#modelsChatMessages){font-size:var(--chat-text-size,14px)}
:where(#communityPage) :is(#messages,#modelsChatMessages) .message,:where(#communityPage) :is(#messages,#modelsChatMessages) .name,:where(#communityPage) :is(#messages,#modelsChatMessages) .body{font-size:inherit;line-height:1.6}
:where(#communityPage) :is(#messages,#modelsChatMessages) .time{font-size:.78em}
:where(#communityPage) .chat-head{gap:12px;flex-wrap:wrap}
@media(max-width:800px){:where(#communityPage) .layout:not(.has-room-width){display:flex}
}
:where(#communityPage) .discord-community{margin-top:28px;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,400px);gap:28px;align-items:center}
:where(#communityPage) .discord-community p{line-height:1.7}
:where(#communityPage) .discord-community img{width:100%;height:auto;border-radius:12px}
:where(#communityPage) .discord-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
:where(#communityPage) .discord-actions .discord-join{background:var(--accent);border-color:var(--accent);color:white}
@media(max-width:800px){:where(#communityPage) .discord-community{grid-template-columns:1fr}
:where(#communityPage) .discord-community img{max-width:400px}
}
:where(#communityPage) .discord-full{max-width:1200px;margin:40px auto 0;padding:0 12px 30px;line-height:1.65;font-size:16px}
:where(#communityPage) .discord-full h1{font-size:30px}
:where(#communityPage) .discord-full h2{font-size:28px;margin:20px 0 14px}
:where(#communityPage) .discord-full h3{font-size:20px;margin:24px 0 12px}
:where(#communityPage) .discord-full p,:where(#communityPage) .discord-full li{color:#aeb8c7}
:where(#communityPage) .discord-full .pagehead{margin-bottom:30px}
:where(#communityPage) .discord-full .hero{display:grid;grid-template-columns:1fr 400px;gap:32px;align-items:start;margin-bottom:38px}
:where(#communityPage) .discord-full .hero-actions,:where(#communityPage) .discord-full .video-cta{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
:where(#communityPage) .discord-full .btn{display:inline-flex;padding:14px 20px;border-radius:12px;background:#ef4444;color:white;font-weight:700;border:1px solid #ffffff10;text-decoration:none}
:where(#communityPage) .discord-full .btn-members{background:#2563eb}
:where(#communityPage) .discord-full .btn-rewards{background:#16a34a}
:where(#communityPage) .discord-full .btn-secondary{background:#161c2b}
:where(#communityPage) .discord-full .quick-points{padding-left:18px}
:where(#communityPage) .discord-full .quick-points li{margin:10px 0}
:where(#communityPage) .discord-full li::marker{color:#ef4444}
:where(#communityPage) .discord-full .hero-image{border:1px solid #ffffff10;border-radius:20px;overflow:hidden}
:where(#communityPage) .discord-full .hero-image img{display:block;width:100%;height:auto}
:where(#communityPage) .discord-full .hero-caption{text-align:center;font-size:13px;color:white}
:where(#communityPage) .discord-full .mobile-cta{display:none}
:where(#communityPage) .discord-full .section-card{background:#0f1523;border:1px solid #ffffff10;border-radius:16px;padding:30px}
:where(#communityPage) .discord-full .video-frame-wrap{max-width:820px;margin:20px auto}
:where(#communityPage) .discord-full .video-frame{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#000}
:where(#communityPage) .discord-full .video-frame iframe{width:100%;height:100%;border:0}
:where(#communityPage) .discord-full .video-cta{justify-content:center}
:where(#communityPage) .discord-full .mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:30px 0}
:where(#communityPage) .discord-full .mini-card{background:#0f141b;border:1px solid #ffffff10;border-radius:16px;padding:18px}
:where(#communityPage) .discord-full .mini-card h3{margin:0 0 10px;font-size:17px}
:where(#communityPage) .discord-full .mini-card p{margin:0;font-size:14px}
:where(#communityPage) .discord-full .cta-strip{border-top:1px solid #ffffff10;margin-top:30px;padding-top:12px}
@media(max-width:800px){:where(#communityPage) .discord-full .hero,:where(#communityPage) .discord-full .mini-grid{grid-template-columns:1fr}
:where(#communityPage) .discord-full .hero-media{max-width:400px}
:where(#communityPage) .discord-full .section-card{padding:20px}
:where(#communityPage) .discord-full h2{font-size:24px}
}
:where(#communityPage) #chat-form #body{flex:1;min-width:0}
:where(#communityPage) :is(#emoteToggle,#modelsEmoteToggle){flex:none;font-size:22px;padding:6px 12px;line-height:1}
:where(#communityPage) .emote-picker{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;padding:12px;margin-top:10px;background:#111824;border:1px solid #223040;border-radius:12px}
:where(#communityPage) .emote-picker[hidden]{display:none}
:where(#communityPage) .emote-picker .emote-choice{background:transparent;font-size:24px;padding:6px;margin:0;line-height:1.4}
:where(#communityPage) .emote-picker .emote-choice:hover,:where(#communityPage) .emote-picker .emote-choice:focus-visible{background:#263244}
@media(max-width:450px){:where(#communityPage) .emote-picker{grid-template-columns:repeat(6,minmax(0,1fr))}
}
:where(#communityPage) .chat{position:relative}
:where(#communityPage) :is(#emoteToggle,#modelsEmoteToggle){color:#aeb8c7;display:inline-flex;align-items:center;justify-content:center}
:where(#communityPage) :is(#emoteToggle,#modelsEmoteToggle):hover,:where(#communityPage) :is(#emoteToggle,#modelsEmoteToggle)[aria-expanded="true"]{color:#ffd35a}
:where(#communityPage) .emote-picker{position:absolute;left:18px;right:18px;bottom:105px;z-index:10;display:block;margin:0;padding:14px;background:#242b38;border:1px solid #3a4658;border-radius:14px;box-shadow:0 12px 36px #0008}
:where(#communityPage) .emote-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:14px}
:where(#communityPage) .emote-heading #closeEmotes{background:transparent;color:#aeb8c7;font-size:26px;line-height:1;padding:0 6px;margin:0}
:where(#communityPage) .emote-heading #closeEmotes:hover{color:white}
:where(#communityPage) .emote-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(38px,1fr));gap:6px;max-height:240px;overflow-y:auto}
:where(#communityPage) .emote-grid .emote-choice{border-radius:8px}
:where(#communityPage) .emote-picker[hidden]{display:none}
:where(#communityPage) :is(#messages,#modelsChatMessages) .message{position:relative;padding-right:30px;min-height:26px}
:where(#communityPage) :is(#messages,#modelsChatMessages) .message-delete{position:absolute;right:0;top:0;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:4px;margin:0;background:transparent;color:#8996ab;border-radius:6px}
:where(#communityPage) :is(#messages,#modelsChatMessages) .message-delete:hover,:where(#communityPage) :is(#messages,#modelsChatMessages) .message-delete:focus-visible{color:#ef4444;background:#ef444418}
:where(#communityPage) :is(#messages,#modelsChatMessages) .message-delete:disabled{opacity:.4}
:where(#communityPage) .chat-tabs{display:flex;gap:8px;border-bottom:1px solid #223040;margin:0 0 12px}
:where(#communityPage) .chat-tabs button{background:transparent;color:#9aa4b2;border-radius:0;border-bottom:2px solid transparent;margin:0;padding:10px 16px}
:where(#communityPage) .chat-tabs button[aria-selected=true]{color:#fff;border-bottom-color:#ef4444}
:where(#communityPage) :is(#messages,#modelsChatMessages)[hidden],:where(#communityPage) #chat-form[hidden],:where(#communityPage) #privatePanel[hidden],:where(#communityPage) #dmForm[hidden]{display:none}
:where(#communityPage) #dmMessages{height:300px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;font-size:14px}
:where(#communityPage) .dm-bubble{max-width:85%;padding:10px 14px;border-radius:14px;background:#242b38;overflow-wrap:anywhere}
:where(#communityPage) .dm-bubble.sent{align-self:flex-end;background:#703f46}
:where(#communityPage) .dm-bubble.received{align-self:flex-start}
:where(#communityPage) .dm-bubble p{white-space:pre-wrap;margin:0 0 5px}
:where(#communityPage) .dm-bubble small{color:#b8bfcc;font-size:10px}
:where(#communityPage) #dmForm{display:flex;gap:8px;margin-top:12px}
:where(#communityPage) #dmBody{flex:1;min-width:0}
:where(#communityPage) #dmContacts{display:flex;flex-direction:column;gap:8px;margin-bottom:12px;max-height:300px;overflow:auto}
:where(#communityPage) .dm-contact{text-align:left;background:#242b38;margin:0}
:where(#communityPage) #dmNotice{color:#fca5a5}
:where(#communityPage) #privatePanel{position:fixed;right:24px;bottom:64px;width:min(380px,calc(100vw - 32px));max-height:75vh;z-index:1000;background:#242b38;border:1px solid #445063;border-radius:14px;box-shadow:0 15px 50px #0009;overflow:hidden}
:where(#communityPage) .dm-window-bar{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #445063}
:where(#communityPage) .dm-window-bar button{margin:0;padding:0 7px;background:transparent;color:#aeb8c7;font-size:24px}
:where(#communityPage) .dm-window-bar button:hover{color:white}
:where(#communityPage) #dmWindowContent{padding:12px;overflow-y:auto;max-height:calc(75vh - 52px)}
:where(#communityPage) #privatePanel.dm-minimized #dmWindowContent{display:none}
:where(#communityPage) #privatePanel #dmMessages{height:280px}
:where(#communityPage) #privatePanel #dmContacts{max-height:350px}
:where(#communityPage) #privatePanel .dm-contact{display:flex;gap:10px;align-items:center;padding:10px;background:transparent;border-radius:10px}
:where(#communityPage) #privatePanel .dm-contact:hover{background:#364153}
:where(#communityPage) .dm-avatar{display:grid;place-items:center;border-radius:50%;background:#49546a;width:38px;height:38px;flex:none;font-weight:bold}
:where(#communityPage) .dm-preview{min-width:0;flex:1}
:where(#communityPage) .dm-preview strong,:where(#communityPage) .dm-preview small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(#communityPage) .dm-preview strong{font-size:14px}
:where(#communityPage) .dm-preview small{font-size:12px;color:#aeb8c7;margin-top:4px}
:where(#communityPage) .dm-contact time{font-size:10px;color:#9aa4b2}
:where(#communityPage) #dmHeading{font-size:14px;margin:0 0 12px}
:where(#communityPage) #dmForm button{margin:0}
:where(#communityPage) .dm-bubble.sent{background:#703f46}
@media(max-width:500px){:where(#communityPage) #privatePanel{right:12px;bottom:56px}
}
:where(#communityPage) #privatePanel:not(.dm-floating){position:static;width:100%;max-height:none;box-shadow:none;background:transparent;border:0;border-radius:0;overflow:visible}
:where(#communityPage) #privatePanel:not(.dm-floating) #dmWindowContent{max-height:none;padding:12px 0}
:where(#communityPage) #privatePanel:not(.dm-floating) #dmMessages{height:300px}
:where(#communityPage) #privatePanel:not(.dm-floating) .dm-window-bar{padding:4px 0 10px}
:where(#communityPage) #privatePanel:not(.dm-floating) #dmMinimize{display:none}
:where(#communityPage) #dmEmoteToggle{flex:none;color:#ffd35a;font-size:24px;padding:6px 10px}
:where(#communityPage) #dmEmotePicker{background:#303a49;border:1px solid #445063;border-radius:12px;padding:12px;margin-top:10px}
:where(#communityPage) #dmEmotePicker[hidden]{display:none}
:where(#communityPage) #dmEmoteClose{background:transparent;color:#aeb8c7;font-size:24px;padding:0 5px;margin:0}
:where(#communityPage) #dmEmotePicker .emote-choice{background:transparent;font-size:24px;padding:4px;margin:0}
:where(#communityPage) #dmEmotePicker .emote-choice:hover{background:#49546a}
:where(#communityPage) #dmForm{align-items:center}
:where(#communityPage) #dmEmoteToggle{flex:none;color:#aeb8c7;display:inline-flex;align-items:center;justify-content:center;font-size:22px;padding:6px 12px;line-height:1;background:#121a26;border:1px solid #223040;border-radius:10px}
:where(#communityPage) #dmEmoteToggle:hover,:where(#communityPage) #dmEmoteToggle[aria-expanded="true"]{color:#ffd35a}
:where(#communityPage) :is(#messages,#modelsChatMessages) .message{padding-right:60px}
:where(#communityPage) :is(#messages,#modelsChatMessages) .message-ban{position:absolute;right:30px;top:0;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:4px;margin:0;background:transparent;color:#8996ab;border-radius:6px}
:where(#communityPage) :is(#messages,#modelsChatMessages) .message-ban:hover,:where(#communityPage) :is(#messages,#modelsChatMessages) .message-ban:focus-visible{color:#ef4444;background:#ef444418}
:where(#communityPage) :is(#messages,#modelsChatMessages) .message-ban:disabled{opacity:.4}
:where(#communityPage) #qualitySelect{color-scheme:dark;background-color:#111824!important;color:#efeff1!important;border-color:#223040}
:where(#communityPage) #qualitySelect option,:where(#communityPage) #qualitySelect optgroup{background-color:#111824!important;color:#efeff1!important}
:where(#communityPage) #qualitySelect:focus-visible{outline:2px solid #ef4444;outline-offset:2px}
:where(#communityPage) .community-join{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;background:#ef4444;color:#fff!important;border:1px solid #ef4444;border-radius:10px;font-weight:700;text-decoration:none;pointer-events:auto}
:where(#communityPage) .community-join:hover{background:#dc2626}
:where(#communityPage) .community-join:focus-visible{outline:2px solid #fff;outline-offset:3px}
:where(#communityPage) #discord-community{scroll-margin-top:110px}
:where(#communityPage){scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){:where(#communityPage){scroll-behavior:auto}
}
:where(#communityPage) #viewersPanel[hidden]{display:none}
:where(#communityPage) #viewersPanel{min-height:390px}
:where(#communityPage) #viewerList{display:flex;flex-direction:column;gap:5px;max-height:330px;overflow:auto}
:where(#communityPage) .viewer-member{background:transparent;text-align:left;margin:0;padding:7px 10px;font-weight:700}
:where(#communityPage) .viewer-member:hover{background:#242b38}
:where(#communityPage) #viewersTab svg{vertical-align:middle}
:where(#communityPage) #viewersPanel h3{margin:8px 0}
:where(#communityPage) .community-account-actions{display:flex;align-items:center;gap:18px}
:where(#communityPage) .dm-notification,:where(#communityPage) #privateTab{position:relative}
:where(#communityPage) .unread-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 2px #0b1020;margin-left:7px}
:where(#communityPage) .unread-dot[hidden]{display:none}
:where(#communityPage) .dm-notification .unread-dot{position:absolute;right:4px;top:4px;margin:0}
:where(#communityPage) .dm-contact.has-unread{border-left:3px solid #ef4444}
:where(#communityPage) .dm-contact .unread-dot{flex:0 0 8px}
:where(#communityPage) .dm-notification{margin:0;color:#efeff1;padding:9px}
:where(#communityPage) .dm-bubble{position:relative;padding-right:38px}
:where(#communityPage) .dm-delete{position:absolute;right:7px;top:7px;background:transparent;color:#aeb8c7;border:0;padding:4px;margin:0}
:where(#communityPage) .dm-delete:hover{color:#ef4444;background:#111824}
:where(#communityPage) .dm-contact-row{display:flex;align-items:center;gap:5px}
:where(#communityPage) .dm-contact-row .dm-contact{flex:1;min-width:0}
:where(#communityPage) .dm-conversation-close{flex:0 0 28px;background:transparent;color:#aeb8c7;padding:6px;margin:0}
:where(#communityPage) .dm-conversation-close:hover{color:#ef4444;background:#111824}
:where(#communityPage) #dmClearAll{font-size:12px;margin:0 0 12px;padding:6px 10px}
:where(#communityPage) #dmClearAll[hidden]{display:none}
:where(#communityPage) .level-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:24px;margin-right:5px;padding:0 4px;clip-path:polygon(25% 0,75% 0,100% 25%,100% 75%,75% 100%,25% 100%,0 75%,0 25%);color:#fff;font-size:12px;font-weight:700;background:#69717c;vertical-align:middle}
:where(#communityPage) .league-bronze{background:#a96032}
:where(#communityPage) .league-silver{background:#7c91a8}
:where(#communityPage) .league-gold{background:#b77908}
:where(#communityPage) .league-diamond{background:#9833cc}
:where(#communityPage) .league-royal{background:#cf253a}
:where(#communityPage) .xp-card{padding:12px;margin:10px 0;background:#111824;border-radius:10px}
:where(#communityPage) .xp-heading{display:flex;align-items:center;gap:6px}
:where(#communityPage) .xp-heading>span:last-child{margin-left:auto;font-size:11px;color:#aeb8c7}
:where(#communityPage) .xp-card progress{display:block;width:100%;height:10px;margin:10px 0 6px;accent-color:#ef4444}
:where(#communityPage) .xp-card small{display:block;color:#aeb8c7;font-size:11px}
:where(#communityPage) .xp-rules{margin-top:8px;line-height:1.5}
:where(#communityPage) .viewer-member .level-badge{margin-right:8px}
:where(#communityPage) .saved-model-list{display:grid;gap:6px;max-height:260px;overflow:auto;margin:12px 0}
:where(#communityPage) .saved-model-row{display:flex;align-items:center;gap:8px;background:#111824;border:1px solid #223040;border-radius:9px;padding:3px 8px}
:where(#communityPage) .saved-model-row form{margin:0}
:where(#communityPage) .saved-model-row form:first-child{flex:1;min-width:0}
:where(#communityPage) .saved-model-select{display:block;text-align:left;width:100%;background:transparent;margin:0;padding:9px;color:#efeff1;overflow-wrap:anywhere}
:where(#communityPage) .saved-model-select:hover{background:#242b38}
:where(#communityPage) .saved-model-remove{margin:0;padding:7px}
:where(#communityPage) .saved-model-add{margin-top:10px}


:where(#communityPage) #creatorLink[hidden],:where(#communityPage) #profileBtn[hidden]{display:none}

:where(#communityPage) .community-leaderboard{margin:28px 0}:where(#communityPage) .leaderboard-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}:where(#communityPage) .leaderboard-scroll{overflow-x:auto}:where(#communityPage) .leaderboard-table{width:100%;border-collapse:collapse;text-align:left}:where(#communityPage) .leaderboard-table th,:where(#communityPage) .leaderboard-table td{padding:12px 8px;border-bottom:1px solid #223040}:where(#communityPage) .leaderboard-table th{color:#9aa4b2;font-size:12px}:where(#communityPage) .leaderboard-name{background:transparent;padding:0;margin:0;font-weight:700;text-align:left}:where(#communityPage) .leaderboard-pagination{display:flex;align-items:center;justify-content:center;gap:12px;font-size:12px}:where(#communityPage) .leaderboard-remove{display:inline-flex;align-items:center}:where(#communityPage) .leaderboard-remove:hover{color:#ef4444}:where(#communityPage) .leaderboard-pagination button:disabled{opacity:.4;cursor:default}
:where(#communityPage) .community-team{border-top:1px solid #223040;margin-top:22px;padding-top:18px}:where(#communityPage) .team-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}:where(#communityPage) .team-heading h3{font-size:16px;margin:0}:where(#communityPage) .team-heading a{font-size:12px;color:#9aa4b2}:where(#communityPage) .team-members{display:flex;flex-wrap:wrap;gap:18px}:where(#communityPage) .team-member{width:130px;text-align:center}:where(#communityPage) .team-profile{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;padding:0;margin:0;background:transparent;color:#e7edf3}:where(#communityPage) .team-avatar{position:relative;display:grid;place-items:center;width:88px;height:88px;border:3px solid #ef4444;border-radius:50%;background:#242b38;font-size:32px}:where(#communityPage) .team-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}:where(#communityPage) .team-online{position:absolute;right:0;bottom:1px;width:12px;height:12px;border-radius:50%;background:#84cc16;border:2px solid #0b1020}:where(#communityPage) .team-profile strong{font-size:14px;overflow-wrap:anywhere}:where(#communityPage) .team-title{font-size:12px;color:#9aa4b2}:where(#communityPage) .team-socials{display:inline-flex;align-items:center;justify-content:center;border:1px solid #334155;border-radius:50%;width:30px;height:30px;margin-top:10px}:where(#communityPage) .team-profile:hover strong,:where(#communityPage) .team-socials:hover{color:#ef4444}

:where(#communityPage) :is(#messages,#modelsChatMessages) .message{padding-right:90px}:where(#communityPage) :is(#messages,#modelsChatMessages) .message-moderator{position:absolute;right:60px;top:0;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:4px;margin:0;background:transparent;color:#8996ab;border-radius:6px}:where(#communityPage) :is(#messages,#modelsChatMessages) .message-moderator:hover,:where(#communityPage) :is(#messages,#modelsChatMessages) .message-moderator:focus-visible{color:#e7edf3;background:#263244}:where(#communityPage) :is(#messages,#modelsChatMessages) .message-moderator[aria-pressed=true]{color:#c3cfdf}:where(#communityPage) :is(#messages,#modelsChatMessages) .message-moderator:disabled{opacity:.4}

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

:where(#communityPage) #statusPill[hidden]{display:none}

:where(#communityPage) .chat-popout-control{display:inline-flex;align-items:center;justify-content:center;padding:6px;color:#9aa4b2;border-radius:6px}:where(#communityPage) .chat-popout-control:hover{color:#fff;background:#263244}:where(#communityPage) .chat-popout-control[hidden]{display:none}:where(#communityPage.chat-popout){min-height:100dvh}:where(#communityPage.chat-popout) main{max-width:none;margin:0;padding:12px}:where(#communityPage.chat-popout) .layout{display:block}:where(#communityPage.chat-popout) .layout>.watch,:where(#communityPage.chat-popout) #roomDivider,:where(#communityPage.chat-popout) .account-card,:where(#communityPage.chat-popout) #communityLeaderboard,:where(#communityPage.chat-popout) #discord-community{display:none}:where(#communityPage.chat-popout) .conversation-column{display:block}:where(#communityPage.chat-popout) .chat{height:calc(100dvh - 120px);min-height:400px}:where(#communityPage.chat-popout) :is(#messages,#modelsChatMessages){flex:1;min-height:0;height:auto}:where(#communityPage.chat-popout) #viewersPanel{flex:1;min-height:0;overflow:auto}:where(#communityPage.chat-popout) #viewerList{max-height:none}:where(#communityPage.chat-popout) #privatePanel:not(.dm-floating){flex:1;min-height:0;overflow:auto}:where(#communityPage.chat-popout) #privatePanel:not(.dm-floating) #dmMessages{height:calc(100dvh - 380px);min-height:160px}

:where(#communityPage) .watch .community-join{min-height:38px;padding:8px 13px;border-radius:11px;border:1px solid #223040;background:#121a26;color:#e7edf3!important;font-size:12px;font-weight:850;transition:background .18s ease,border-color .18s ease,transform .15s ease}:where(#communityPage) .watch .community-join:hover{background:rgba(239,68,68,.14);border-color:rgba(239,68,68,.32);transform:translateY(-1px)}

:where(#communityPage) .chat-discord-control{display:inline-flex;align-items:center;justify-content:center;padding:6px;color:#9aa4b2;border-radius:6px}:where(#communityPage) .chat-discord-control:hover,:where(#communityPage) .chat-discord-control:focus-visible{color:#fff;background:#263244}

:where(#communityPage) .community-models .team-avatar{border-color:#f472b6}:where(#communityPage) .community-models .team-profile strong{color:#f472b6}

:where(#communityPage) .profile-links{gap:9px;margin:12px 0 16px}:where(#communityPage) .profile-social-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #223040;background:#121a26;border-radius:50%;color:#aeb8c7}:where(#communityPage) .profile-social-icon:hover,:where(#communityPage) .profile-social-icon:focus-visible{color:#fff;background:#263244}:where(#communityPage) .profile-conversation-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 0}:where(#communityPage) .profile-conversation-actions button,:where(#communityPage) .profile-moderation button{margin:0;padding:8px 11px;font-size:12px;line-height:1.4;border-radius:7px}:where(#communityPage) .profile-moderation{gap:10px;margin-top:22px;padding-top:18px}

:where(#communityPage) .profile-role-actions{display:flex;flex-wrap:wrap;gap:10px;width:100%;padding-top:12px;border-top:1px solid #223040}:where(#communityPage) .profile-role-actions button{background:#121a26;border:1px solid #223040;color:#aeb8c7}:where(#communityPage) .profile-role-actions button:hover{background:#263244;color:#fff}

:where(#communityPage) #memberDialog button{background:#121a26;border:1px solid #223040;color:#e7edf3;border-radius:7px;padding:8px 11px;font-size:12px;line-height:1.4}:where(#communityPage) #memberDialog button:hover,:where(#communityPage) #memberDialog button:focus-visible{background:#263244;border-color:#334155}:where(#communityPage) #memberDialog button:disabled{opacity:.5;cursor:default}

:where(#communityPage) .dm-window-bar #dmTitleToggle{flex:1;text-align:left;padding:8px 0;font-size:14px;font-weight:700;color:#e7edf3}:where(#communityPage) #privatePanel.dm-floating.dm-minimized{width:280px}:where(#communityPage) #dmTitleToggle:focus-visible{outline:2px solid #9aa4b2;outline-offset:2px}

:where(#communityPage) .chat-options #status{display:none}

:where(#communityPage) .chat-head{justify-content:flex-end}

:where(#communityPage) #watchCaption{display:none}

:where(#communityPage) #communityLeaderboard[hidden]{display:none}:where(#communityPage) .chat #communityLeaderboard{margin:0;min-height:390px;max-height:510px;overflow:auto;padding:14px 0}:where(#communityPage) .chat #communityLeaderboard h2{font-size:16px}:where(#communityPage.chat-popout) .chat #communityLeaderboard:not([hidden]){display:block;flex:1;min-height:0;max-height:none}

:where(#communityPage) #adminTools[hidden]{display:none}:where(#communityPage) .admin-tab-panel{padding:14px 0;max-height:510px;overflow:auto;min-height:390px}:where(#communityPage.chat-popout) .admin-tab-panel{flex:1;min-height:0;max-height:none}

#communityPage #profileEditor[hidden]{display:none!important}
#communityPage .profile-tab-panel{padding:14px 0;max-height:510px;overflow:auto;min-height:390px}
#communityPage.community-popout .profile-tab-panel{flex:1;min-height:0;max-height:none}

:where(#communityPage) .layout>.community-roles{grid-column:1 / -1;width:100%;min-width:0;box-sizing:border-box}
:where(#communityPage) .community-roles>.community-team:first-child{border-top:0;margin-top:0;padding-top:0}
:where(#communityPage.chat-popout) .community-roles{display:none}

:where(#communityPage) .layout>.community-roles{margin-top:24px}
:where(#communityPage) .role-directory{padding:0;border-radius:0;background:transparent}
:where(#communityPage) .role-directory>summary{cursor:pointer;font-size:16px;font-weight:700;padding:0;margin:0;display:list-item;list-style:disclosure-closed}
:where(#communityPage) .role-directory[open]>summary{list-style:disclosure-open;margin-bottom:18px}
:where(#communityPage) .role-directory .team-members{margin-top:0}
:where(#communityPage) .role-directory:not([open])>summary{margin-bottom:0}

:where(#communityPage) .viewer-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0}
:where(#communityPage) .viewer-row .viewer-member{min-width:0;margin:0;overflow-wrap:anywhere}
:where(#communityPage) .viewer-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}
:where(#communityPage) .viewer-actions button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:5px;margin:0;background:transparent;border:0;color:#8996ab;border-radius:6px}
:where(#communityPage) .viewer-actions button:hover,:where(#communityPage) .viewer-actions button:focus-visible{background:#263244;color:#e7edf3}
:where(#communityPage) .viewer-actions button:disabled{opacity:.4}

:where(#communityPage) .admin-navigation{display:flex;gap:6px;flex-wrap:wrap;padding:0 0 14px;margin-bottom:18px;border-bottom:1px solid #223040}
:where(#communityPage) .admin-navigation button{margin:0;padding:9px 13px;background:#121a26;border:1px solid #223040;border-radius:8px;color:#9aa4b2}
:where(#communityPage) .admin-navigation button[aria-selected=true]{background:#263244;color:#fff;border-color:#536278}
:where(#communityPage) .admin-option-panel[hidden]{display:none!important}
:where(#communityPage) .admin-option-panel h3:first-child{margin-top:0}
:where(#communityPage) .admin-option-panel form>button{margin-top:10px}
:where(#communityPage) .admin-option-panel button:not(#clearChat):not(.saved-model-remove){background:#121a26;border:1px solid #223040;color:#e7edf3}
:where(#communityPage) .admin-option-panel button:not(#clearChat):hover{background:#263244}

:where(#communityPage) #chatHeightDivider{height:16px;width:100%;position:relative;cursor:row-resize;touch-action:none;border-radius:6px}
:where(#communityPage) #chatHeightDivider:after{content:"";position:absolute;left:20px;right:20px;top:7px;height:2px;background:var(--accent,#ef4444);border-radius:2px;opacity:.6}
:where(#communityPage) #chatHeightDivider:hover:after,:where(#communityPage) #chatHeightDivider:focus-visible:after,:where(#communityPage.resizing-chat) #chatHeightDivider:after{opacity:1}
:where(#communityPage) .chat.has-chat-height{height:var(--chat-height);min-height:400px;box-sizing:border-box}
:where(#communityPage) .chat.has-chat-height :is(#messages,#modelsChatMessages){flex:1;min-height:0;height:auto}
:where(#communityPage) .chat.has-chat-height>.chat-head,:where(#communityPage) .chat.has-chat-height>.chat-tabs,:where(#communityPage) .chat.has-chat-height>form{flex-shrink:0}
:where(#communityPage) .chat.has-chat-height>#viewersPanel,:where(#communityPage) .chat.has-chat-height>#communityLeaderboard,:where(#communityPage) .chat.has-chat-height>#adminTools,:where(#communityPage) .chat.has-chat-height>#profileEditor,:where(#communityPage) .chat.has-chat-height>#privatePanel:not(.dm-floating){flex:1;min-height:0;max-height:none;overflow:auto}
:where(#communityPage.chat-popout) #chatHeightDivider{display:none}
:where(#communityPage.resizing-chat){user-select:none;cursor:row-resize}

:where(#communityPage) .auth-tab-panel[hidden]{display:none!important}
:where(#communityPage) .auth-tab-panel{padding:14px 0;min-height:390px;overflow:auto}
:where(#communityPage) .auth-tab-panel h3{margin-top:0}
:where(#communityPage) .auth-tab-panel form{max-width:540px}
:where(#communityPage) .auth-tab-panel form>button{margin-top:12px;background:#121a26;border:1px solid #223040;color:#e7edf3}
:where(#communityPage) .chat.has-chat-height>.auth-tab-panel{flex:1;min-height:0}
:where(#communityPage.chat-popout) .auth-tab-panel{flex:1;min-height:0}

:where(#communityPage) .auth-register{margin-top:24px;max-width:540px}
:where(#communityPage) .auth-register>summary{cursor:pointer;margin-bottom:14px}

:where(#communityPage) .community-brands .team-avatar{border-color:#69b8ff}
:where(#communityPage) .community-brands .team-profile strong{color:#69b8ff}

:where(#communityPage) .profile-avatar{position:relative;overflow:hidden}
:where(#communityPage) .profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
:where(#communityPage) .avatar-editor{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #223040}
:where(#communityPage) .avatar-editor input[type=checkbox]{width:auto}

:where(#communityPage) .community-total{margin:0 0 16px;color:#9baaba;font-size:14px}
:where(#communityPage) .community-total strong{color:#e7edf3}
:where(#communityPage) .directory-count{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:12px;background:#1b2532;color:#afbdcc;font-size:12px;vertical-align:middle}

:where(#communityPage) .pinned-message{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:8px;background:#18212d;border:1px solid #344354;border-left:3px solid #ef4444;border-radius:6px;padding:6px 10px;margin-bottom:8px;font-size:13px;min-width:0}
:where(#communityPage) .pin-marker{flex:none;font-size:12px}
:where(#communityPage) .pinned-body{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:20px}
:where(#communityPage) .pin-expanded{align-items:flex-start}
:where(#communityPage) .pin-expanded .pinned-body{white-space:pre-wrap;overflow-wrap:anywhere}
:where(#communityPage) .pin-control{flex:none;background:transparent;color:#afbdcc;border:0;padding:0 4px;min-width:24px;height:24px;font-size:18px;line-height:24px}
:where(#communityPage) .pin-control:hover{color:#fff;background:#253344}

:where(#communityPage) .message-announcement{background:#30291b;border:1px solid #695329;border-left:3px solid #ffd35a;border-radius:6px;padding:8px 10px;margin:8px 0}
:where(#communityPage) .announcement-label{font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#ffd35a;display:block;margin-bottom:4px}
:where(#communityPage) #announcementBody{width:100%;min-height:90px}
:where(#communityPage) .polls-panel{overflow:auto;min-height:0;flex:1;padding:0 2px 14px}
:where(#communityPage) .poll-option{border:1px solid #283647;border-radius:8px;padding:10px 12px;margin:10px 0}
:where(#communityPage) .poll-option-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px}
:where(#communityPage) .poll-option-heading span{color:#afbdcc;font-size:12px}
:where(#communityPage) .poll-option progress{display:block;width:100%;height:10px;accent-color:#ef4444;margin-bottom:8px}
:where(#communityPage) .poll-leading{border-color:#b14b52;background:#211b26}
:where(#communityPage) .poll-winner{border-color:#28a66c;background:#14271f}
:where(#communityPage) .poll-winner progress{accent-color:#28df93}
:where(#communityPage) .poll-status{font-weight:700;color:#e7edf3}
:where(#communityPage) .poll-candidate{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0}
:where(#communityPage) .poll-candidate label{display:flex;align-items:center;gap:10px;margin:0}
:where(#communityPage) .poll-candidate input{width:auto;margin:0}
:where(#communityPage) #pollLiveBadge{color:#ffd35a;font-size:11px}
:where(#communityPage) #pollMinutes{max-width:140px}

:where(#communityPage) .chat-tabs{overflow-x:auto;min-width:0}
:where(#communityPage) .chat-tabs button{flex-shrink:0;white-space:nowrap}

:where(#communityPage) .chat-platform-control{display:inline-flex;align-items:center;justify-content:center;padding:6px;color:#9aa4b2;border-radius:6px;flex-shrink:0}
:where(#communityPage) .chat-platform-control:hover,:where(#communityPage) .chat-platform-control:focus-visible{color:#fff;background:#263244}
:where(#communityPage) .chat-options{flex-wrap:wrap}

:where(#communityPage) .chat-all-socials{color:#9aa4b2;font-size:12px;text-decoration:none;padding:6px;border-radius:6px;white-space:nowrap}
:where(#communityPage) .chat-all-socials:hover,:where(#communityPage) .chat-all-socials:focus-visible{color:#fff;background:#263244}

@media(min-width:801px){
:where(#communityPage:not(.chat-popout)) .layout:not(.has-room-width){grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr)}
:where(#communityPage:not(.chat-popout)) .chat:not(.has-chat-height){height:var(--resting-chat-height,540px);min-height:400px;box-sizing:border-box}
:where(#communityPage:not(.chat-popout)) .chat:not(.has-chat-height)>:is(#messages,#modelsChatMessages){flex:1;min-height:0;height:auto}
:where(#communityPage:not(.chat-popout)) .chat:not(.has-chat-height)>.chat-head,:where(#communityPage:not(.chat-popout)) .chat:not(.has-chat-height)>.chat-tabs,:where(#communityPage:not(.chat-popout)) .chat:not(.has-chat-height)>form{flex-shrink:0}
:where(#communityPage:not(.chat-popout)) .chat:not(.has-chat-height)>#viewersPanel,:where(#communityPage:not(.chat-popout)) .chat:not(.has-chat-height)>#communityLeaderboard,:where(#communityPage:not(.chat-popout)) .chat:not(.has-chat-height)>#adminTools,:where(#communityPage:not(.chat-popout)) .chat:not(.has-chat-height)>#profileEditor,:where(#communityPage:not(.chat-popout)) .chat:not(.has-chat-height)>#pollsPanel,:where(#communityPage:not(.chat-popout)) .chat:not(.has-chat-height)>.auth-tab-panel{flex:1;min-height:0;max-height:none;overflow:auto}
}

/* Compact controls in the upper-right corner, with a vertical volume flyout. */
:where(#communityPage) .video-overlay{left:auto;right:10px;top:10px;bottom:auto;width:auto;padding:0;background:none}
:where(#communityPage) .overlay-controls{gap:7px;align-items:flex-start}
:where(#communityPage) .volume-control{position:relative}
:where(#communityPage) .volume-popover{position:absolute;top:42px;left:0;width:36px;height:112px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:10px 0;background:rgba(15,22,35,.94);border:1px solid #223040;border-radius:11px;opacity:0;visibility:hidden;transition:opacity .15s ease}
:where(#communityPage) .volume-control::after{content:"";position:absolute;top:100%;left:0;width:36px;height:8px}
:where(#communityPage) .volume-control:hover .volume-popover,:where(#communityPage) .volume-control:focus-within .volume-popover{opacity:1;visibility:visible}
:where(#communityPage) #vol{appearance:auto;writing-mode:vertical-lr;direction:rtl;width:20px;height:90px;max-width:none;flex:none;margin:0;padding:0;accent-color:#e5e7eb;background:transparent}
:where(#communityPage) .icon-btn:focus-visible,:where(#communityPage) #vol:focus-visible{outline:2px solid #e5e7eb;outline-offset:3px}

/* Player shortcut hints share the compact dark control styling. */
:where(#communityPage) .fullscreen-control{position:relative}
:where(#communityPage) .player-tooltip{position:absolute;top:calc(100% + 8px);right:0;display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:5px;background:rgba(0,0,0,.92);color:#fff;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;z-index:8;transition:opacity .12s ease}
:where(#communityPage) .player-tooltip kbd{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 3px;box-sizing:border-box;font:600 11px Arial,sans-serif;color:#e7edf3;background:#343434;border:1px solid #555;border-radius:3px;box-shadow:0 1px 0 #777}
:where(#communityPage) .fullscreen-control:hover .player-tooltip,:where(#communityPage) .fullscreen-control:focus-within .player-tooltip,:where(#communityPage) .volume-control:hover .player-tooltip,:where(#communityPage) .volume-control:focus-within .player-tooltip{opacity:1;visibility:visible}
:where(#communityPage) .volume-control .player-tooltip{right:calc(100% + 8px);top:7px}

/* YouTube supplies its own playback controls while music is selected. */
#communityPage .youtube-player{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:inherit;background:#000;z-index:2}
#communityPage .video-shell.is-youtube .video-overlay,#communityPage .video-shell.is-youtube .video-live-badge{display:none}
#communityPage .video-shell.is-youtube video{display:none}

#communityPage .transport-control{position:relative}
#communityPage .transport-control:hover .player-tooltip,#communityPage .transport-control:focus-within .player-tooltip{opacity:1;visibility:visible}
#communityPage #pauseBtn .play-triangle{display:none}
#communityPage #pauseBtn[data-paused="1"] .play-triangle{display:block}
#communityPage #pauseBtn[data-paused="1"] .pause-bars{display:none}
#communityPage .video-shell.is-youtube .video-overlay{display:none}
#communityPage .video-shell.is-youtube .volume-control{display:none}

/* Gift button overrides the member dialog button defaults. */
:where(#communityPage) #memberDialog 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}
:where(#communityPage) #memberDialog button.profile-gift-usdt:hover,:where(#communityPage) #memberDialog button.profile-gift-usdt:focus-visible{background:#ffb43b;border-color:#ffb43b;color:#17120b}

/* Uploaded GIFs stay compact in messages; suggestions show animated previews. */
:where(#communityPage) .chat-gif-emote{display:inline-block;max-width:96px;max-height:80px;width:auto;height:auto;vertical-align:middle;object-fit:contain;margin:2px 4px}
.gif-emote-picker{position:fixed;z-index:10000;overflow:auto;padding:6px;background:#1c2834;border:1px solid #415266;border-radius:9px;box-shadow:0 8px 28px #0008;color:#e7edf3;box-sizing:border-box}
.gif-emote-picker[hidden]{display:none}
.gif-emote-picker .gif-emote-suggestion{display:flex;align-items:center;gap:12px;width:100%;padding:7px 9px;margin:0;border:0;border-radius:6px;text-align:left;background:transparent;color:#e7edf3;cursor:pointer;font:13px Arial,sans-serif}
.gif-emote-picker .gif-emote-suggestion.selected,.gif-emote-picker .gif-emote-suggestion:hover{background:#34465a}
.gif-emote-picker .chat-gif-emote{width:64px;height:56px;object-fit:contain;flex-shrink:0}

:where(#communityPage) .emote-heading{gap:12px;flex-wrap:wrap}
:where(#communityPage) .emote-mode-switch{display:flex;gap:4px;margin-right:auto}
:where(#communityPage) .emote-heading .emote-mode-switch button{font-size:12px;line-height:1.4;padding:5px 10px;margin:0;border:1px solid #415266;border-radius:6px;background:#121a26;color:#aeb8c7;width:auto;height:auto}
:where(#communityPage) .emote-heading .emote-mode-switch button[aria-pressed=true]{background:#34465a;color:#fff;border-color:#6b8098}
:where(#communityPage) .animated-emote-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px;max-height:250px;overflow-y:auto;padding:8px 3px;overscroll-behavior:contain}
:where(#communityPage) .animated-emote-grid[hidden],:where(#communityPage) .emote-grid[hidden]{display:none}
:where(#communityPage) .animated-emote-grid .animated-emote-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;margin:0;padding:7px;background:#1c2834;border:1px solid #344153;border-radius:8px;color:#c5cfdb;cursor:pointer;font-size:11px}
:where(#communityPage) .animated-emote-choice:hover,:where(#communityPage) .animated-emote-choice:focus-visible{background:#34465a;border-color:#6b8098}
:where(#communityPage) .animated-emote-choice img{width:72px;height:64px;object-fit:contain}
:where(#communityPage) .animated-emote-choice span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

:where(#communityPage) .body .chat-mention,:where(#communityPage) .dm-bubble .chat-mention,:where(#communityPage) .pinned-body .chat-mention{display:inline;padding:1px 3px;margin:0;border:0;border-radius:4px;background:#263a50;color:#8dc8ff;font:inherit;line-height:inherit;vertical-align:baseline}
:where(#communityPage) .body .chat-mention-self,:where(#communityPage) .dm-bubble .chat-mention-self{background:#574721;color:#ffd477}
.gif-emote-picker .mention-avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:#34465a;color:#c5d9ef;font-weight:bold}

:where(#communityPage) .message.level-up-message{border-left-color:#ffd35a;background:linear-gradient(100deg,#463819,#29251b)}
:where(#communityPage) .level-up-message .announcement-label{color:#ffd35a}

:where(#communityPage) .message-reactions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:5px 0 3px}
:where(#communityPage) .message-reactions .reaction-badge,:where(#communityPage) .message-reactions .reaction-add{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;margin:0;background:#242f3e;color:#c5cfdb;border:1px solid #415064;border-radius:7px;font-size:12px;line-height:1.3;cursor:pointer}
:where(#communityPage) .message-reactions .reaction-badge.reacted{background:#304169;border-color:#8295ef;color:#fff}
:where(#communityPage) .message-reactions .reaction-badge:hover,:where(#communityPage) .message-reactions .reaction-add:hover{background:#34465a;color:#fff}
:where(#communityPage) .message-reactions .chat-gif-emote{max-width:28px;max-height:24px;margin:0}
:where(#communityPage) .message-reactions .reaction-add{font-size:19px;padding:0 6px}
:where(#communityPage) .reaction-status{font-size:12px;color:#fca5a5}
.reaction-picker{position:fixed;z-index:10001;box-sizing:border-box;overflow:auto;background:#242b38;color:#e7edf3;border:1px solid #415064;border-radius:10px;padding:12px;box-shadow:0 8px 28px #0008;font:13px Arial,sans-serif}
.reaction-picker-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.reaction-picker button{cursor:pointer;color:#c5cfdb;background:#1c2834;border:1px solid #415064;border-radius:6px;padding:5px 9px}
.reaction-picker input{box-sizing:border-box;width:100%;background:#111824;color:#e7edf3;border:1px solid #536278;border-radius:6px;padding:9px;font:inherit}
.reaction-picker-modes{display:flex;gap:6px;margin:9px 0}
.reaction-picker-modes button[aria-pressed=true]{background:#34465a;color:#fff;border-color:#8295ef}
.reaction-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:5px;max-height:230px;overflow:auto;overscroll-behavior:contain}
.reaction-picker-grid .reaction-choice{padding:5px;min-height:40px;font-size:23px;background:transparent;border:1px solid transparent}
.reaction-picker-grid .reaction-choice:hover,.reaction-picker-grid .reaction-choice:focus-visible{background:#34465a;border-color:#8295ef}
.reaction-picker .chat-gif-emote{max-width:38px;max-height:38px;width:auto;height:auto;object-fit:contain}

:where(#communityPage) .message-reactions[hidden]{display:none}
:where(#communityPage) :is(#messages,#modelsChatMessages) .message.has-reaction-control{padding-right:150px}
:where(#communityPage) :is(#messages,#modelsChatMessages) .message .reaction-add{position:absolute;right:120px;top:0;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:3px;margin:0;border:0;background:transparent;color:#8996ab;border-radius:6px;font-size:19px;line-height:1}
:where(#communityPage) :is(#messages,#modelsChatMessages) .message .reaction-add:hover,:where(#communityPage) :is(#messages,#modelsChatMessages) .message .reaction-add:focus-visible{background:#263244;color:#e7edf3}
:where(#communityPage) .dm-bubble.has-reaction-control{padding-right:68px}
:where(#communityPage) .dm-bubble>.reaction-add{position:absolute;right:34px;top:6px;background:transparent;color:#aeb8c7;border:0;border-radius:6px;margin:0;padding:3px;font-size:19px;line-height:1}

:where(#communityPage) .message-action-bar{display:contents}
:where(#communityPage) .chat,:where(#communityPage) .conversation-column,:where(#communityPage) .chat-head,:where(#communityPage) .chat-options{min-width:0;box-sizing:border-box;max-width:100%}
:where(#communityPage) .body{overflow-wrap:anywhere;word-break:normal}
@media(max-width:600px){
 :where(#communityPage) main{padding:10px;max-width:100%;box-sizing:border-box}
 :where(#communityPage) .chat{padding:12px;width:100%;box-sizing:border-box}
 :where(#communityPage) .chat-head{overflow-x:auto;gap:8px}
 :where(#communityPage) .chat-tabs{width:100%;overflow-x:auto;overscroll-behavior-x:contain;gap:0}
 :where(#communityPage) .chat-tabs button{padding:10px 12px;min-height:44px}
 :where(#communityPage) :is(#messages,#modelsChatMessages){min-width:0;max-width:100%;overflow-x:hidden}
 :where(#communityPage) :is(#messages,#modelsChatMessages) .message.has-reaction-control{padding-right:0!important;overflow-wrap:anywhere}
 :where(#communityPage) .message-action-bar{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:3px;min-height:40px}
 :where(#communityPage) :is(#messages,#modelsChatMessages) .message .message-action-bar>button{position:static;float:none;width:40px;height:40px;padding:9px;margin:0;flex:none}
 :where(#communityPage) .message-reactions{max-width:100%;box-sizing:border-box;gap:6px}
 :where(#communityPage) .message-reactions .reaction-badge{min-height:36px;padding:5px 8px}
 :where(#communityPage) :is(#chat-form,#modelsChatForm,#dmForm){display:flex;gap:6px;max-width:100%;min-width:0;box-sizing:border-box}
 :where(#communityPage) :is(#body,#modelsChatBody,#dmBody){width:0!important;min-width:0;flex:1;font-size:16px;box-sizing:border-box}
 :where(#communityPage) :is(#chat-form,#modelsChatForm,#dmForm)>button{flex:none;min-height:44px;padding:8px 10px}
 :where(#communityPage) .emote-picker{left:8px;right:8px;max-height:55dvh;overflow-y:auto;box-sizing:border-box;padding:10px}
 :where(#communityPage) .emote-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
 :where(#communityPage) .emote-choice{min-height:40px}
 :where(#communityPage) .animated-emote-grid{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));max-height:35dvh}
 :where(#communityPage) #privatePanel.dm-floating{left:8px;right:8px;bottom:8px;width:auto;max-width:calc(100vw - 16px);box-sizing:border-box}
 :where(#communityPage) #memberDialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:85dvh;box-sizing:border-box;overflow-y:auto;padding:16px}
 :where(#communityPage) .admin-navigation{flex-wrap:wrap}
 :where(#communityPage) input:not([type=checkbox]),:where(#communityPage) textarea{box-sizing:border-box;max-width:100%}
 .gif-emote-picker .gif-emote-suggestion{min-height:44px}
 .reaction-picker-grid .reaction-choice{min-height:44px}
 .reaction-picker input{font-size:16px}
}
:where(#communityPage) .dm-bubble .message-action-bar>.reaction-add{position:absolute;right:34px;top:6px;background:transparent;color:#aeb8c7;border:0;border-radius:6px;margin:0;padding:3px;font-size:19px;line-height:1}
@media(max-width:600px){
 :where(#communityPage) .dm-bubble .message-action-bar>.reaction-add{position:static;min-width:40px;min-height:40px}
 :where(#communityPage) .chat-options{flex-wrap:wrap}
}

/* Complete community-page small-screen layout, including account/admin panels. */
@media(max-width:800px){
 :where(#communityPage) .layout,:where(#communityPage) .layout.has-room-width{display:flex;flex-direction:column;min-width:0;width:100%;max-width:100%;gap:14px}
 :where(#communityPage) .layout>*{min-width:0;max-width:100%;box-sizing:border-box}
 :where(#communityPage) .watch,:where(#communityPage) .conversation-column{width:100%}
 :where(#communityPage) .watch{padding:12px}
 :where(#communityPage) .video-shell{width:100%;max-width:100%}
 :where(#communityPage) .discord-full .hero,:where(#communityPage) .discord-full .mini-grid,:where(#communityPage) .discord-community{grid-template-columns:minmax(0,1fr)}
 :where(#communityPage) .discord-full{width:100%;margin-top:24px;padding:0 0 24px}
 :where(#communityPage) .discord-full .hero>*,:where(#communityPage) .mini-card,:where(#communityPage) .section-card{min-width:0;overflow-wrap:anywhere}
 :where(#communityPage) .hero-actions,:where(#communityPage) .pill-bar,:where(#communityPage) .cta-strip{flex-wrap:wrap;gap:8px}
 :where(#communityPage) .discord-full img,:where(#communityPage) iframe{max-width:100%}
}
@media(max-width:600px){
 :where(#communityPage) header{padding:12px;gap:10px;max-width:100%;box-sizing:border-box}
 :where(#communityPage) .community-account-actions{max-width:100%;flex-wrap:wrap}
 :where(#communityPage) .account-dropdown{max-width:calc(100vw - 24px)}
 :where(#communityPage) .chat,:where(#communityPage) .chat.has-chat-height{height:clamp(420px,78dvh,680px)!important;min-height:420px;max-height:none}
 :where(#communityPage) .chat>:is(#adminTools,#profileEditor,#signInPanel,#pollsPanel,#communityLeaderboard,#viewersPanel,#privatePanel:not(.dm-floating)){flex:1;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden}
 :where(#communityPage) :is(#messages,#modelsChatMessages){flex:1;min-height:0;height:auto}
 :where(#communityPage) .auth-tab-panel,:where(#communityPage) .admin-tab-panel,:where(#communityPage) .profile-tab-panel{min-height:0;max-height:none;padding:10px 0}
 :where(#communityPage) #chatHeightDivider{display:none}
 :where(#communityPage) .admin-navigation{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;gap:6px}
 :where(#communityPage) .admin-navigation button{flex:none;white-space:nowrap;min-height:44px;padding:8px 12px}
 :where(#communityPage) :is(#adminTools,#profileEditor,#signInPanel,#pollsPanel) :is(input:not([type=checkbox]),textarea,select){font-size:16px;max-width:100%;min-width:0;box-sizing:border-box}
 :where(#communityPage) select{background:#121a26;color:#e7edf3;border:1px solid #415064;border-radius:6px;min-height:44px}
 :where(#communityPage) input[type=checkbox]{width:20px;height:20px;vertical-align:middle;flex:none}
 :where(#communityPage) :is(#adminTools,#profileEditor,#signInPanel,#pollsPanel) button{min-height:44px;white-space:normal;overflow-wrap:anywhere}
 :where(#communityPage) .saved-model-row,:where(#communityPage) .poll-candidate,:where(#communityPage) .viewer-row{flex-wrap:wrap;min-width:0;gap:6px}
 :where(#communityPage) .viewer-actions button{width:40px;height:40px}
 :where(#communityPage) .poll-option-heading{flex-wrap:wrap;gap:5px;overflow-wrap:anywhere}
 :where(#communityPage) .poll-candidate label{min-width:0;overflow-wrap:anywhere;flex:1}
 :where(#communityPage) .leaderboard-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 :where(#communityPage) .leaderboard-table{min-width:280px;font-size:12px}
 :where(#communityPage) .leaderboard-table :is(th,td){padding:9px 5px;overflow-wrap:anywhere}
 :where(#communityPage) .leaderboard-pagination{flex-wrap:wrap;gap:6px}
 :where(#communityPage) .leaderboard-pagination button{min-height:44px}
 :where(#communityPage) .team-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 8px}
 :where(#communityPage) .team-member{width:auto;min-width:0}
 :where(#communityPage) .team-avatar{width:72px;height:72px}
 :where(#communityPage) .team-heading{flex-wrap:wrap}
 :where(#communityPage) .profile-links,:where(#communityPage) .profile-moderation,:where(#communityPage) .profile-conversation-actions{flex-wrap:wrap;min-width:0}
 :where(#communityPage) #memberDialog button{min-height:44px}
 :where(#communityPage) .profile-social-icon{width:44px;height:44px}
 :where(#communityPage) .profile-gift-panel input{font-size:16px;min-width:0}
 :where(#communityPage) .models-chat-tools[open]{max-height:40dvh}
 :where(#communityPage) #dmWindowContent{max-height:65dvh;overflow:auto}
 :where(#communityPage) #dmMessages{min-height:120px;max-height:45dvh}
 :where(#communityPage) .dm-bubble{max-width:95%;min-width:0}
 :where(#communityPage) .dm-window-bar{gap:4px}
 :where(#communityPage) .dm-window-bar button{min-width:40px;min-height:40px}
 :where(#communityPage) .watch .overlay-controls{gap:5px;padding:6px;flex-wrap:wrap;max-width:100%}
 :where(#communityPage) .watch .icon-btn{width:40px;height:40px}
 :where(#communityPage) .watch #creatorLink{min-width:0;max-width:120px;font-size:12px;padding:5px}
 :where(#communityPage) #qualitySelect{max-width:90px;min-width:0}
 :where(#communityPage) .video-overlay{max-width:100%}
 :where(#communityPage) .pagehead{flex-wrap:wrap;gap:8px}
 :where(#communityPage) .discord-full h1{font-size:clamp(24px,7vw,36px);overflow-wrap:anywhere}
 :where(#communityPage) .discord-full .cta-strip{display:flex;flex-direction:column;align-items:stretch}
 :where(#communityPage) .discord-full .btn{min-height:44px;max-width:100%;text-align:center;white-space:normal}
}

:where(#communityPage) .reaction-add svg{display:block;width:18px;height:18px;color:#8996ab;flex:none}
:where(#communityPage) .reaction-add:hover svg,:where(#communityPage) .reaction-add:focus-visible svg{color:#c5cfdb}
.reaction-picker{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

/* Compact channel navigation; wrap on narrow screens. */
:where(#communityPage) .chat-tabs{gap:2px;flex-wrap:wrap;overflow-x:visible}
:where(#communityPage) .chat-tabs button{padding:10px 8px}
@media(max-width:600px){
 :where(#communityPage) .chat-tabs{gap:0;flex-wrap:wrap;overflow-x:visible}
 :where(#communityPage) .chat-tabs button{padding:10px 6px;min-height:44px;font-size:13px}
}

:where(#communityPage) .invisible-mode{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:600}:where(#communityPage) .invisible-mode input{width:20px;height:20px;accent-color:#ef4444}

:where(#communityPage) .account-dropdown .invisible-mode{position:relative;justify-content:space-between;cursor:pointer;margin:0;width:100%;box-sizing:border-box}
:where(#communityPage) .account-dropdown .invisible-mode input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}
:where(#communityPage) .invisible-switch{width:38px;height:22px;border-radius:20px;background:#485261;flex-shrink:0;pointer-events:none}
:where(#communityPage) .invisible-switch:before{content:"";display:block;width:16px;height:16px;border-radius:50%;background:#c5ced8;margin:3px;transition:transform .15s}
:where(#communityPage) .invisible-mode input:checked+.invisible-switch{background:#ef4444}
:where(#communityPage) .invisible-mode input:checked+.invisible-switch:before{transform:translateX(16px);background:#fff}
:where(#communityPage) .invisible-mode input:focus-visible+.invisible-switch{outline:2px solid #69b8ff;outline-offset:3px}
:where(#communityPage) #invisibleNotice{padding:0 12px;font-size:12px}:where(#communityPage) #invisibleNotice:empty{display:none}

:where(#communityPage) img.staff-shield-badge{display:inline-block;width:14px;height:16px;max-width:none;object-fit:contain;vertical-align:middle;margin-left:4px;margin-right:2px;pointer-events:auto;cursor:help}

/* Original vertical flyout with an explicit vertical track. */
:where(#communityPage) #vol{appearance:none;-webkit-appearance:none;writing-mode:vertical-lr;direction:rtl;width:20px;height:90px;min-width:20px;min-height:90px;max-width:none;flex:none;margin:0;padding:0;border:0;background:transparent;transform:none;position:static;touch-action:none}
:where(#communityPage) #vol::-webkit-slider-runnable-track{width:6px;height:100%;border:0;border-radius:999px;background:#485363}
:where(#communityPage) #vol::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin:0 0 0 -5px;border:2px solid #0f1623;border-radius:50%;background:#e5e7eb}
:where(#communityPage) #vol::-moz-range-track{width:6px;height:100%;border:0;border-radius:999px;background:#485363}
:where(#communityPage) #vol::-moz-range-thumb{width:12px;height:12px;border:2px solid #0f1623;border-radius:50%;background:#e5e7eb}

/* Touch browsers can render writing-mode ranges horizontally. Rotate an
   explicitly horizontal range to guarantee an upward volume gesture. */
@media(max-width:800px), (pointer:coarse){
 :where(#communityPage) .watch .volume-popover{overflow:visible}
 :where(#communityPage) .watch #vol{writing-mode:horizontal-tb;direction:ltr;width:90px!important;min-width:90px;max-width:90px;height:20px;min-height:20px;max-height:20px;box-sizing:border-box;flex:none;position:absolute;left:50%;top:50%;margin:0!important;transform:translate(-50%,-50%) rotate(-90deg);transform-origin:center;touch-action:none}
 :where(#communityPage) .watch #vol::-webkit-slider-runnable-track{width:100%;height:6px;border:0;border-radius:999px;background:#485363}
 :where(#communityPage) .watch #vol::-webkit-slider-thumb{width:16px;height:16px;margin:-5px 0 0;border:2px solid #0f1623;border-radius:50%;background:#e5e7eb}
 :where(#communityPage) .watch #vol::-moz-range-track{width:100%;height:6px;border:0;border-radius:999px;background:#485363}
 :where(#communityPage) .watch #vol::-moz-range-thumb{width:12px;height:12px;border:2px solid #0f1623;border-radius:50%;background:#e5e7eb}
}

/* Compact knight badge tooltip, independent of native browser titles. */
.staff-badge-tooltip{position:fixed;z-index:10000;box-sizing:border-box;width:190px;max-width:calc(100vw - 16px);padding:9px 10px;background:#111;color:#fff;border:0;border-radius:3px;font:12px/1.6 Arial,Helvetica,sans-serif;font-weight:400;white-space:normal;text-align:left;pointer-events:none;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.staff-badge-tooltip[hidden]{display:none}
.staff-badge-tooltip::after{content:"";position:absolute;left:var(--tip-arrow,50%);top:100%;transform:translateX(-50%);border:6px solid transparent;border-top-color:#111;border-bottom:0}
.staff-badge-tooltip.below::after{top:auto;bottom:100%;border-top:0;border-bottom:6px solid #111}

:where(#communityPage) .team-profile strong .staff-shield-badge{display:inline-block;width:14px;height:16px;max-width:none;border-radius:0;margin-left:4px;vertical-align:middle}

/* Shared role colors for directory names and profile headings. */
/* Explicit dismissal wins over sticky touch hover and retained control focus. */
#communityPage .video-shell.show-ui .overlay-controls{opacity:1;pointer-events:auto}
#communityPage .video-shell.controls-dismissed :is(.video-overlay,.video-live-badge,.overlay-controls){opacity:0;pointer-events:none}
#communityPage .video-shell.controls-dismissed :is(.volume-popover,.player-tooltip){opacity:0;visibility:hidden;pointer-events:none}

:where(#communityPage) [data-member-role="admin"]{color:#ef4444!important}
:where(#communityPage) [data-member-role="moderator"]{color:#28df93!important}
:where(#communityPage) [data-member-role="brand"]{color:#69b8ff!important}
:where(#communityPage) [data-member-role="model"]{color:#f472b6!important}
:where(#communityPage) [data-member-role="member"]{color:#de884a!important}
:where(#communityPage) .community-admins .team-profile strong{color:#ef4444}
:where(#communityPage) #communityTeamMembers .team-profile strong{color:#28df93}
:where(#communityPage) .community-members .team-profile strong{color:#de884a}

/* One visibility state on desktop and touch: hover/focus cannot pin controls. */
#communityPage .video-shell:not(.show-ui) :is(.video-overlay,.video-live-badge,.overlay-controls){opacity:0;pointer-events:none}
#communityPage .video-shell:not(.show-ui) :is(.volume-popover,.player-tooltip){opacity:0;visibility:hidden;pointer-events:none}
#communityPage .video-shell :is(.video-overlay,.video-live-badge,.overlay-controls){transition:opacity .15s ease}

#communityPage .chat-join-cta{margin:14px 0 0;padding:14px;border:1px solid #293647;border-radius:10px;background:#141c28}
#communityPage .chat-join-cta>a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}
#communityPage .chat-join-cta>span{display:block;margin-top:6px;color:#9aa4b2;font-size:13px}
#communityPage .chat-join-cta span a{color:#69b8ff;text-decoration:underline}
#communityPage .google-signin{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;width:100%;background:#111824;color:#e7edf3;border:1px solid #293142;border-radius:8px;font-weight:600}
#communityPage .google-signin span{font-size:20px;color:#4285f4;font-weight:800}
#communityPage .google-auth-form label{display:block;margin:10px 0;font-size:13px}
#communityPage .auth-divider{color:#9aa4b2;font-size:13px;margin:18px 0}

#communityPage .google-signin:hover{background:#1b2533;border-color:#526179}
#communityPage .google-signin:focus-visible{outline:2px solid #69b8ff;outline-offset:3px}
#communityPage .google-signin svg{flex:none}

/* Sign-in tab matches the sign-in link below the chat. */
#communityPage .chat-tabs #signInTab{color:#69b8ff}
#communityPage .chat-tabs #signInTab[aria-selected=true]{border-bottom-color:#69b8ff}

/* Compact authentication rows; keep availability feedback below its field. */
#communityPage #signInPanel{container-type:inline-size;padding-top:6px;padding-bottom:6px}
#communityPage #signInPanel h3{margin:0 0 10px}
#communityPage #signInPanel .google-auth-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:start;margin:0}
#communityPage #signInPanel .auth-username{min-width:0}
#communityPage #signInPanel :is(.google-auth-form,.password-login-form) input{width:100%;min-width:0;margin:0;min-height:44px}
#communityPage #signInPanel .google-auth-form>.google-signin{width:auto;margin:0;white-space:nowrap;gap:8px;padding:10px 14px;min-height:44px;overflow-wrap:normal}
#communityPage #signInPanel .google-auth-form>.muted{grid-column:1/-1;margin:0}
#communityPage #signInPanel .auth-username>small{margin:4px 0 0!important;min-height:0!important}
#communityPage #signInPanel .auth-username>small:empty{display:none!important}
#communityPage #signInPanel .auth-divider{margin:10px 0}
#communityPage #signInPanel .password-login-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:start;margin:0}
#communityPage #signInPanel .password-login-form>button{margin:0;min-height:44px;white-space:nowrap;padding:10px 14px}
#communityPage #signInPanel .auth-register{margin-top:14px}
#communityPage #signInPanel .auth-register>summary{margin-bottom:10px}
@container (max-width:380px){
 #communityPage #signInPanel .password-login-form{grid-template-columns:minmax(0,1fr) auto}
 #communityPage #signInPanel .password-login-form>input[name=username]{grid-column:1}
 #communityPage #signInPanel .password-login-form>button{grid-column:2;grid-row:1}
 #communityPage #signInPanel .password-login-form>input[name=password]{grid-column:1/-1;grid-row:2}
}
@container (max-width:300px){
 #communityPage #signInPanel .google-auth-form{grid-template-columns:minmax(0,1fr)}
 #communityPage #signInPanel .google-auth-form>.google-signin{width:100%}
}

/* Desktop member directory beside chat; smaller screens keep the stacked directory. */
@media(min-width:1250px){
 :where(#communityPage:not(.chat-popout)) .layout{grid-template-columns:minmax(0,var(--video-width,1fr)) 12px minmax(340px,1fr) 232px}
 :where(#communityPage:not(.chat-popout)) .layout:not(.has-room-width){grid-template-columns:minmax(0,1fr) 12px minmax(340px,1fr) 232px}
 :where(#communityPage) .layout>.community-roles{grid-column:4;grid-row:1;width:220px;margin:0 0 0 12px;padding:12px;height:var(--member-sidebar-height,620px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#445063 transparent}
 :where(#communityPage) .community-roles .community-total{font-size:12px;margin:0 0 14px}
 :where(#communityPage) .community-roles .community-team{margin-top:12px;padding-top:12px}
 :where(#communityPage) .community-roles .role-directory>summary{font-size:13px}
 :where(#communityPage) .community-roles .role-directory[open]>summary{margin-bottom:10px}
 :where(#communityPage) .community-roles .team-members{display:flex;flex-direction:column;gap:10px}
 :where(#communityPage) .community-roles .team-member{width:100%;text-align:left;position:relative}
 :where(#communityPage) .community-roles .team-profile{display:grid;grid-template-columns:34px minmax(0,1fr);gap:3px 8px;align-items:center;text-align:left}
 :where(#communityPage) .community-roles .team-avatar{grid-column:1;grid-row:1 / span 3;width:34px;height:34px;border-width:2px;font-size:16px;box-sizing:border-box}
 :where(#communityPage) .community-roles .team-online{width:9px;height:9px;right:-2px;bottom:-1px}
 :where(#communityPage) .community-roles .team-profile strong{grid-column:2;font-size:12px;line-height:1.4}
 :where(#communityPage) .community-roles .team-title{grid-column:2;font-size:10px}
 :where(#communityPage) .community-roles .team-profile>:last-child:not(.team-title):not(strong):not(.team-avatar){grid-column:2;justify-self:start}
 :where(#communityPage) .community-roles .team-socials{width:22px;height:22px;margin:4px 0 0 42px}
 :where(#communityPage) .community-roles p[role=status]{font-size:11px;margin:8px 0}
}

:where(.chat-return-live){position:fixed;z-index:80;border:1px solid rgba(154,164,178,.15);border-radius:5px;background:rgba(17,17,17,.15);color:#e7edf3;padding:8px 12px;font:12px/1.4 Arial,sans-serif;cursor:pointer;box-shadow:0 2px 8px #0003} .chat-return-live:hover{background:#111} .chat-return-live[hidden]{display:none}

:where(#communityPage) #memberDivider{display:none}
@media(min-width:1250px){
 :where(#communityPage:not(.chat-popout)) .layout,:where(#communityPage:not(.chat-popout)) .layout:not(.has-room-width){grid-template-columns:minmax(0,var(--video-width,1fr)) 12px minmax(340px,1fr) 12px var(--member-width,220px)}
 :where(#communityPage) .layout>.community-roles{grid-column:5;width:100%;margin-left:0}
 :where(#communityPage:not(.chat-popout)) #memberDivider{display:block;grid-column:4;grid-row:1;height:var(--member-sidebar-height,620px);position:relative;cursor:col-resize;touch-action:none}
 :where(#communityPage) #memberDivider::after{content:"";position:absolute;left:5px;top:16px;bottom:16px;width:2px;background:#ef4444;opacity:.5;border-radius:2px}
 :where(#communityPage) #memberDivider:hover::after,:where(#communityPage) #memberDivider:focus-visible::after{opacity:1}
}

/* Keep the live-chat overlay translucent in every interaction state. */
#communityPage button.chat-return-live,#communityPage button.chat-return-live:hover,#communityPage button.chat-return-live:focus,#communityPage button.chat-return-live:active{background:rgba(0,0,0,.25)!important;color:#e7edf3;border:0;box-shadow:none;opacity:1;backdrop-filter:none}
@media(min-width:1250px){
 #communityPage:not(.chat-popout) #memberDivider{align-self:stretch;min-height:400px;border-radius:8px}
 #communityPage #memberDivider::after{top:20px;bottom:20px;background:transparent;opacity:1;transition:background .2s}
 #communityPage #memberDivider:hover::after,#communityPage #memberDivider:focus-visible::after,#communityPage .resizing-members #memberDivider::after{background:var(--accent,#ef4444)}
}

#communityPage .community-total{display:flex;align-items:center;justify-content:space-between;gap:4px}#communityPage #membersPopout{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:#9aa4b2;padding:3px;border-radius:4px}#communityPage #membersPopout:hover{color:#fff;background:#263244}
#communityPage.members-popout main{max-width:none;margin:0;padding:12px}#communityPage.members-popout .layout{display:block}#communityPage.members-popout .layout>.watch,#communityPage.members-popout .conversation-column,#communityPage.members-popout #roomDivider,#communityPage.members-popout #memberDivider,#communityPage.members-popout .account-card,#communityPage.members-popout #discord-community{display:none}#communityPage.members-popout .layout>.community-roles{width:100%;margin:0;height:calc(100dvh - 100px);overflow-y:auto;padding:12px;box-sizing:border-box}#communityPage.members-popout .team-avatar{width:48px;height:48px}#communityPage.members-popout .team-members{gap:12px}#communityPage.members-popout .team-member{width:130px}

#communityPage #memberHeightDivider{display:none}
@media(min-width:1250px){
 #communityPage:not(.chat-popout):not(.members-popout) .layout>.community-roles{height:var(--member-height,var(--member-sidebar-height,620px))}
 #communityPage:not(.chat-popout):not(.members-popout) #memberDivider{height:var(--member-height,var(--member-sidebar-height,620px))}
 #communityPage:not(.chat-popout):not(.members-popout) #memberHeightDivider{display:block;grid-column:5;grid-row:2;height:12px;position:relative;cursor:row-resize;touch-action:none;margin-top:0}
 #communityPage #memberHeightDivider::after{content:"";position:absolute;left:16px;right:16px;top:5px;height:2px;border-radius:2px;background:#ef4444;opacity:.5}
 #communityPage #memberHeightDivider:hover::after,#communityPage #memberHeightDivider:focus-visible::after{opacity:1}
}

/* Explicit desktop tracks prevent older layout rules from masking the member splitter. */
@media(min-width:1250px){
 #communityPage:not(.chat-popout):not(.members-popout) .layout,
 #communityPage:not(.chat-popout):not(.members-popout) .layout:not(.has-room-width){position:relative;grid-template-columns:minmax(0,var(--video-width,1fr)) 12px minmax(340px,1fr) 12px var(--member-width,220px);padding-bottom:12px}
 #communityPage:not(.chat-popout):not(.members-popout) .layout>.community-roles{grid-column:5;grid-row:1;width:100%;margin:0;min-width:0;box-sizing:border-box}
 #communityPage:not(.chat-popout):not(.members-popout) #memberDivider{display:block;grid-column:4;grid-row:1;z-index:5;width:12px;min-height:0;height:max(var(--member-height,var(--member-sidebar-height,620px)),var(--member-sidebar-height,620px));pointer-events:auto;cursor:col-resize;touch-action:none}
 #communityPage:not(.chat-popout):not(.members-popout) #memberHeightDivider{position:absolute;right:0;top:var(--member-height,var(--member-sidebar-height,620px));width:var(--member-width,220px);height:12px;z-index:5;grid-column:auto;grid-row:auto}
}
#communityPage .community-roles .community-total{position:sticky;top:-12px;z-index:6;background:#0f141b;padding:10px 0;flex-wrap:wrap}
#communityPage #membersPopout{display:inline-flex!important;min-width:24px;min-height:24px;margin-left:auto}

#communityPage #memberDialog::backdrop{background:transparent;backdrop-filter:none}
#communityPage #profileDragHandle{margin:-12px 65px 12px 0;padding:8px 0;color:#9aa4b2;font-size:11px;cursor:grab;touch-action:none;user-select:none}
#communityPage #profileDragHandle:active{cursor:grabbing}
#communityPage #memberDialog{position:fixed;box-sizing:border-box}

#memberDialog::backdrop{background:transparent!important;backdrop-filter:none!important}
#memberDialog{position:fixed;box-sizing:border-box}
#memberDialog.profile-edge-drag,#memberDialog.profile-edge-drag *{cursor:move!important}
#profileDragHandle{cursor:move;touch-action:none;user-select:none;color:#9aa4b2;font-size:11px;padding:8px 0;margin-right:65px}
#memberDivider.member-width-handle{position:fixed!important;display:block!important;z-index:10!important;width:16px!important;min-height:0!important;grid-column:auto!important;grid-row:auto!important;cursor:col-resize!important;touch-action:none;}
#memberDivider.member-width-handle::after{left:7px!important;background:#ef4444!important;opacity:.35!important}
#memberDivider.member-width-handle:hover::after{opacity:1!important}

#memberDivider::after{content:"";position:absolute;left:9px!important;top:20px;bottom:20px;width:2px;background:#ef4444!important;opacity:.3}#memberDivider:hover::after{opacity:1}

/* Keep resize targets available while fading their lines away. */
#communityPage :is(#roomDivider,#memberDivider,#chatHeightDivider,#memberHeightDivider)::after{background:#ef4444!important;opacity:0!important;transition:opacity .18s ease}
#communityPage :is(#roomDivider,#memberDivider,#chatHeightDivider,#memberHeightDivider):hover::after,
#communityPage :is(#roomDivider,#memberDivider,#chatHeightDivider,#memberHeightDivider):focus-visible::after,
#communityPage .resizing-room #roomDivider::after,
#communityPage.resizing-chat #chatHeightDivider::after,
#communityPage #memberDivider.is-dragging::after{opacity:.75!important}

#communityPage #chatHeightDivider{margin-top:-14px;height:12px}#communityPage #chatHeightDivider::after{top:5px;left:16px;right:16px}

@media(min-width:801px){#communityPage:not(.chat-popout):not(.members-popout) main{max-width:none;width:100%;box-sizing:border-box;margin-left:0;margin-right:0;padding-left:8px;padding-right:8px}}

#communityPage.video-popout>header,#communityPage.video-popout .account-card,#communityPage.video-popout .discord-full,#communityPage.video-popout #discord-community{display:none!important}
#communityPage.video-popout main{width:100%;max-width:none;margin:0;padding:8px;box-sizing:border-box}
#communityPage.video-popout .layout{display:block!important;padding:0!important}
#communityPage.video-popout .layout>:not(.watch){display:none!important}
#communityPage.video-popout .watch{width:100%;margin:0;box-sizing:border-box}
#communityPage.video-popout #videoShell{width:100%;max-height:calc(100dvh - 110px)}
#videoPopout{flex-shrink:0;margin-left:4px}

/* Compact GIPHY messages in every chat; preserve image proportions. */
#communityPage .giphy-chat-media .chat-uploaded-image{max-width:min(140px,100%);max-height:140px;width:auto;height:auto}

#communityPage .presence-badge{display:inline-flex;align-items:center;gap:4px;margin-left:5px;font-size:10px;font-weight:normal;color:#aeb8c7;vertical-align:middle;white-space:nowrap}
#communityPage .presence-dot{display:inline-block;width:8px;height:8px;min-width:8px;border-radius:50%;background:#80848e}
#communityPage .presence-badge[data-status="online"] .presence-dot{background:#3ba55d}
#communityPage .presence-badge[data-status="idle"] .presence-dot{background:#faa61a}
#communityPage .presence-badge[data-status="dnd"] .presence-dot{background:#ed4245}
#communityPage .presence-control{display:flex;align-items:center;justify-content:space-between;gap:12px}
#communityPage .presence-control select{width:auto;max-width:170px}
#communityPage .team-online{display:none}

#communityPage .presence-menu{position:relative;min-width:166px;color:#e7edf3;font-size:13px}
#communityPage .presence-menu>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #344153;border-radius:8px;background:#111923;cursor:pointer;list-style:none}
#communityPage .presence-menu>summary::-webkit-details-marker{display:none}
#communityPage .presence-current,#communityPage .presence-option{display:flex;align-items:center;gap:8px}
#communityPage .presence-options{position:absolute;top:calc(100% + 5px);right:0;width:190px;z-index:120;background:#17212d;border:1px solid #344153;border-radius:9px;padding:5px;box-shadow:0 8px 24px #0006}
#communityPage .presence-option{width:100%;padding:10px;border:0;border-radius:6px;background:transparent;color:#e7edf3;font:inherit;text-align:left;cursor:pointer}
#communityPage .presence-option:hover,#communityPage .presence-option:focus-visible,#communityPage .presence-option[aria-pressed="true"]{background:#293746}
#communityPage .presence-current[data-status="online"] .presence-dot,#communityPage .presence-option[data-status="online"] .presence-dot{background:#3ba55d}
#communityPage .presence-current[data-status="idle"] .presence-dot,#communityPage .presence-option[data-status="idle"] .presence-dot{background:#faa61a}
#communityPage .presence-current[data-status="dnd"] .presence-dot,#communityPage .presence-option[data-status="dnd"] .presence-dot{background:#ed4245}
#communityPage .presence-notice:empty{display:none}

#memberDialog .presence-badge{display:inline-flex;align-items:center;gap:4px;margin-left:5px;font-size:10px;font-weight:normal;color:#aeb8c7;vertical-align:middle;white-space:nowrap}
#memberDialog .presence-dot{display:inline-block;width:8px;height:8px;min-width:8px;border-radius:50%;background:#80848e}
#memberDialog .presence-badge[data-status="online"] .presence-dot{background:#3ba55d}
#memberDialog .presence-badge[data-status="idle"] .presence-dot{background:#faa61a}
#memberDialog .presence-badge[data-status="dnd"] .presence-dot{background:#ed4245}

#communityPage .team-avatar,#memberDialog .profile-avatar{position:relative;overflow:visible}
:is(#communityPage,#memberDialog) .presence-avatar-dot{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;box-sizing:content-box;border:2px solid #0f141b;border-radius:50%;background:#80848e;z-index:2}
#memberDialog .presence-avatar-dot{width:12px;height:12px;border-width:3px;right:0;bottom:0}
:is(#communityPage,#memberDialog) .presence-avatar-dot[data-status="online"]{background:#3ba55d}
:is(#communityPage,#memberDialog) .presence-avatar-dot[data-status="idle"]{background:#faa61a}
:is(#communityPage,#memberDialog) .presence-avatar-dot[data-status="dnd"]{background:#ed4245}
:is(#communityPage,#memberDialog) .presence-badge[data-avatar="true"][data-status="online"]{display:none}

#communityPage .role-directory[hidden]{display:none!important}

#communityPage .viewer-category[hidden]{display:none!important}

/* Resize handles remain below account menus and profile windows. */
#communityPage .account-menu{z-index:200}
#communityPage :is(#roomDivider,#chatHeightDivider,#memberDivider,#memberHeightDivider){z-index:10!important}

/* Personal GIF bookmarks in every chat picker. */
.gif-bookmarks-panel[hidden]{display:none!important}
.gif-bookmark-tile{position:relative;min-width:0}
.gif-bookmark-tile .gif-bookmark-action{position:absolute;right:4px;top:4px;z-index:2;width:25px;height:25px;padding:0;border:1px solid #415266;border-radius:6px;background:#111c;color:#b9c5d3;font-size:19px;line-height:23px;cursor:pointer}
.gif-bookmark-tile .gif-bookmark-action[aria-pressed="true"]{color:#ffd15c}
.gif-bookmark-tile .gif-bookmark-action:hover,.gif-bookmark-tile .gif-bookmark-action:focus-visible{background:#263344;border-color:#ffd15c}
.giphy-grid>.gif-bookmark-tile>.giphy-choice{width:100%;height:100%}
.gif-bookmarks-panel>small{display:block;padding:8px;color:#aeb8c7}
.emote-mode-switch{flex-wrap:wrap}

.emoji-bookmark-tile{padding-top:18px}
.emoji-bookmark-tile>.emote-choice{width:100%}
.emoji-bookmark-tile .gif-bookmark-action{width:20px;height:20px;line-height:18px;font-size:16px;top:0;right:0}
.bookmarked-emoji{display:flex;align-items:center;justify-content:center;font-size:34px;min-height:70px}
.gif-bookmarks-panel .bookmarks-clear{display:block;margin:0 0 12px auto;padding:7px 10px;border:1px solid #415266;border-radius:6px;background:#18222d;color:#e7edf3;cursor:pointer}
.gif-bookmarks-panel .bookmarks-clear:disabled{opacity:.45;cursor:default}

:is(#messages,#modelsChatMessages,#dmMessages) .chat-bookmark-media{display:inline-block;position:relative;vertical-align:middle;max-width:100%}
:is(#messages,#modelsChatMessages,#dmMessages) .chat-bookmark-media>.gif-bookmark-action{opacity:0;pointer-events:none;transition:opacity .12s ease}
:is(#messages,#modelsChatMessages,#dmMessages) .chat-bookmark-media:hover>.gif-bookmark-action,:is(#messages,#modelsChatMessages,#dmMessages) .chat-bookmark-media:focus-within>.gif-bookmark-action{opacity:1;pointer-events:auto}
:is(#messages,#modelsChatMessages,#dmMessages) .chat-bookmark-media>.giphy-chat-media{margin:0}

/* Reveal picker bookmark controls only while interacting with an item. */
.emote-picker .gif-bookmark-tile>.gif-bookmark-action{opacity:0;pointer-events:none;transition:opacity .12s ease}
.emote-picker .gif-bookmark-tile:hover>.gif-bookmark-action,.emote-picker .gif-bookmark-tile:focus-within>.gif-bookmark-action{opacity:1;pointer-events:auto}

:is(#messages,#modelsChatMessages,#dmMessages) .chat-bookmark-emoji>.gif-bookmark-action{top:-18px;right:-10px;width:20px;height:20px;line-height:18px;font-size:16px}

#memberDialog .profile-card-banner{position:relative;height:150px;margin:0 0 0;border-radius:10px;background:linear-gradient(120deg,#283545,#17212d)}
#memberDialog .profile-banner-image,#memberDialog .profile-banner-image>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
#memberDialog .profile-banner-avatar{margin-top:-30px;margin-left:12px;border:3px solid #0f141b;z-index:2}
#memberDialog button.profile-media-pencil{position:absolute;right:8px;bottom:8px;padding:5px;width:25px;height:25px;display:flex;align-items:center;justify-content:center;background:#111c;border:1px solid #566170;border-radius:6px;z-index:3;cursor:pointer}
#memberDialog .profile-avatar button.profile-media-pencil{right:auto;left:-5px;bottom:-4px;width:22px;height:22px;padding:3px}
.profile-media-notice:empty{display:none}
.profile-media-notice{display:block;color:#aeb8c7;margin:6px 0}
.profile-background-settings{margin-top:24px;padding-top:16px;border-top:1px solid #293544}
.profile-settings-banner{height:130px;width:100%;max-width:520px;background:#17212d;border:1px solid #293544;border-radius:9px;margin:10px 0}
.profile-settings-banner>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
#communityPage .profile-background-settings .profile-settings-edit{position:static;width:auto;height:auto;display:inline-flex;align-items:center;gap:4px;margin-right:8px}
.profile-background-settings>small{display:block;margin-top:8px;color:#aeb8c7}
@media(max-width:600px){#memberDialog .profile-card-banner{height:120px}}

#memberDialog .profile-image-removals{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
#memberDialog .profile-image-removals>button[hidden]{display:none!important}
#memberDialog .profile-image-sizes{display:block;font-size:11px;color:#aeb8c7;margin-top:10px}

#memberDialog #closeProfile{position:absolute;top:10px;right:10px;z-index:10;display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;font-size:24px;line-height:1;border-radius:8px;background:#111c;color:#e7edf3}
#memberDialog #profileDragHandle{padding-right:40px}

.profile-about-section{position:relative;margin:14px 0}.profile-about-section>p{padding-right:32px}.profile-about-pencil{position:absolute;right:0;top:0;width:25px;height:25px;padding:4px;border:1px solid #344151;border-radius:6px;background:#18222e;color:#dce4ee;cursor:pointer}.profile-about-editor textarea{display:block;width:100%;box-sizing:border-box;min-height:110px;resize:vertical;padding:10px;border:1px solid #344151;border-radius:8px;background:#101822;color:#edf1f6;font:inherit}.profile-about-editor small{display:block;color:#b3bfce;margin:7px 0}.profile-about-editor button:not(.profile-about-pencil){margin:5px 7px 5px 0}.profile-about-editor [hidden]{display:none!important}

.members-collapse-button{width:26px;height:26px;padding:0;font-size:24px;line-height:1;margin-left:6px;background:#17212d;color:#bac7d7;border:1px solid #2d3b4d;border-radius:6px;cursor:pointer}.members-restore-button{position:fixed;right:0;top:50%;z-index:30;width:28px;height:52px;padding:0;border:1px solid #344151;border-radius:8px 0 0 8px;background:#17212d;color:#dce5ee;font-size:27px;cursor:pointer}.members-restore-button[hidden]{display:none!important}#communityPage .layout.members-collapsed>.community-roles,#communityPage .layout.members-collapsed>#memberDivider,#communityPage .layout.members-collapsed>#memberHeightDivider{display:none!important}@media(min-width:1250px){#communityPage .layout.members-collapsed{grid-template-columns:minmax(0,var(--video-width,1fr)) 12px minmax(340px,1fr)!important;padding-right:28px}}

.nav-hide-button{width:26px;height:26px;flex:0 0 26px;padding:0;font-size:24px;line-height:1;background:#17212d;color:#bac7d7;border:1px solid #2d3b4d;border-radius:6px;cursor:pointer}.nav-restore-button{position:fixed;left:0;top:50%;z-index:10003;width:28px;height:52px;padding:0;border:1px solid #344151;border-radius:0 8px 8px 0;background:#17212d;color:#dce5ee;font-size:27px;cursor:pointer}.nav-restore-button[hidden]{display:none!important}@media(min-width:901px){body.cgp-nav-fully-hidden{padding-left:0!important}body.cgp-nav-fully-hidden .cgp-sidebar,body.cgp-nav-fully-hidden .cgp-topbar{display:none!important}body.cgp-nav-fully-hidden .nav-stack{left:0!important}.cgp-nav-fully-hidden #communityPage main{padding-left:28px}}@media(max-width:900px){.nav-hide-button,.nav-restore-button{display:none!important}}

.nav-hide-button[hidden]{display:none!important}

#communityPage .forgot-password-link{display:inline-block;color:#69b8ff;margin:8px 0;text-decoration:none}#communityPage .forgot-password-link:hover{text-decoration:underline}

#communityPage .watch{position:relative}#communityPage .video-shell.has-video-height:not(:fullscreen){height:var(--custom-video-height);aspect-ratio:auto}#communityPage #videoHeightDivider{position:absolute;left:8px;right:8px;bottom:-6px;height:12px;z-index:10;cursor:row-resize;touch-action:none;background:transparent}#videoHeightDivider::after{content:"";position:absolute;left:0;right:0;top:5px;height:1px;background:#ef4444;opacity:0;transition:opacity .15s}#videoHeightDivider:hover::after,#videoHeightDivider:focus-visible::after,#videoHeightDivider.is-dragging::after{opacity:.7}#videoHeightDivider:focus-visible{outline:none}

/* Video height handle lives outside the player card and follows its bottom edge. */
#communityPage #videoHeightDivider{position:fixed;right:auto;bottom:auto;height:12px;z-index:10;cursor:row-resize;touch-action:none}
#communityPage #videoHeightDivider[hidden]{display:none}
#communityPage #videoHeightDivider::after{top:5px;height:1px;opacity:.45}
#communityPage #videoHeightDivider:hover::after,#communityPage #videoHeightDivider:focus-visible::after,#communityPage #videoHeightDivider.is-dragging::after{opacity:1}

/* Match the chat resize line; retain the same bottom-edge position. */
#communityPage #videoHeightDivider::after{left:8px;right:8px;top:5px;height:2px;border-radius:2px;background:#ef4444;opacity:0;transition:opacity .18s ease}
#communityPage #videoHeightDivider:hover::after,#communityPage #videoHeightDivider:focus-visible::after,#communityPage #videoHeightDivider.is-dragging::after{opacity:.75}

/* Flat main containers without outer glow/shadow. */
#communityPage .layout :is(.watch,.chat,.community-roles){box-shadow:none!important}

#communityPage .account-menu>summary .avatar-initial>img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}

/* Never expose bookmark actions to guests or inside reaction badges. */
#communityPage[data-signed-in="false"] .gif-bookmark-action,
#communityPage :is(.message-reactions,.reaction-badge,.reaction-picker) .gif-bookmark-action{display:none!important;pointer-events:none!important}

#communityPage .community-help-button{margin-left:auto;flex-shrink:0;background:transparent;border:0;color:#9aa4b2;width:28px;min-height:28px;padding:3px;font-weight:700;font-size:18px;cursor:pointer}
#communityPage .community-help-button:hover{color:#fff;background:#223040;border-radius:6px}
#communityPage .community-help-dialog{width:min(600px,calc(100vw - 32px));max-height:80dvh;box-sizing:border-box;overflow:auto;background:#0f141b;color:#e7edf3;border:1px solid #293849;border-radius:14px;padding:22px}
.community-help-dialog::backdrop{background:#0009}
.community-help-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.community-help-heading h2{margin:0;font-size:22px}
.community-help-dialog details{border-top:1px solid #293849;padding:14px 0}.community-help-dialog summary{cursor:pointer;font-weight:700;color:#e7edf3}.community-help-dialog p,.community-help-dialog dd{font-size:14px;line-height:1.65}.community-help-dialog dt{font-weight:700;margin-top:12px}.community-help-dialog dd{margin:3px 0;color:#b7c2cf}.community-help-dialog code{color:#69b8ff}

#communityPage .chat.show-community-help>:not(.chat-head):not(.chat-tabs):not(#communityHelpPanel){display:none!important}
#communityPage .community-help-panel{flex:1;min-height:0;overflow-y:auto;padding:18px 0;overscroll-behavior:contain}
#communityPage .community-help-panel[hidden]{display:none}
#communityPage .community-help-button[aria-selected="true"]{color:#fff;border-bottom:2px solid #ef4444;border-radius:0}
.community-help-panel .community-help-heading h2{font-size:20px}.community-help-panel details{border-top:1px solid #293849;padding:14px 0}.community-help-panel summary{cursor:pointer;font-weight:700}.community-help-panel p,.community-help-panel dd{font-size:14px;line-height:1.65}.community-help-panel dt{font-weight:700;margin-top:12px}.community-help-panel dd{margin:3px 0;color:#b7c2cf}.community-help-panel code{color:#69b8ff}

.message-edited{font-size:10px;color:#9aa4b2;margin-left:4px;white-space:nowrap}.own-message-controls{display:inline-flex;gap:3px;margin-left:5px;vertical-align:middle}#communityPage .own-message-controls button{background:transparent;border:0;padding:2px 4px;color:#9aa4b2;font-size:15px;cursor:pointer}#communityPage .own-message-controls button:hover{color:#fff}#communityPage .dm-bubble .own-message-controls{position:static}

/* Personal message actions appear on hover or keyboard focus. */
#communityPage .own-message-controls{opacity:0;pointer-events:none;transition:opacity .15s ease}
#communityPage :is(.message,.dm-bubble):hover .own-message-controls,
#communityPage :is(.message,.dm-bubble):focus-within .own-message-controls{opacity:1;pointer-events:auto}

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

/* Fully hidden sidebar takes precedence over the shared nav's compact offset. */
@media(min-width:901px){body.cgp-nav-fully-hidden.cgp-sidebar-collapsed .nav-stack,body.cgp-nav-fully-hidden.cgp-sidebar-active .nav-stack,body.cgp-nav-fully-hidden .nav-stack{left:0!important;right:0!important;width:auto!important;margin-left:0!important}}

/* Pack only available message actions against the right edge. */
@media(min-width:601px){
#communityPage :is(#messages,#modelsChatMessages) .message{padding-right:var(--message-actions-width,0px)!important}
#communityPage :is(#messages,#modelsChatMessages) .message .message-action-bar{position:absolute;right:0;top:0;display:flex;justify-content:flex-end;gap:0}
#communityPage :is(#messages,#modelsChatMessages) .message .message-action-bar>button{position:static!important;right:auto!important;top:auto!important;float:none!important;flex:0 0 24px;width:24px;height:26px;margin:0;padding:3px}
#communityPage :is(#messages,#modelsChatMessages) .message .message-action-bar[hidden],
#communityPage :is(#messages,#modelsChatMessages) .message .message-action-bar>button[hidden]{display:none!important}
}

#communityPage .community-settings-button{margin-left:auto;flex-shrink:0;background:transparent;border:0;color:#9aa4b2;width:28px;min-height:28px;padding:3px;font-size:20px;cursor:pointer}
#communityPage .community-settings-button:hover{color:#fff;background:#223040;border-radius:6px}
#communityPage .community-settings-button[aria-selected=true]{color:#fff;border-bottom:2px solid #ef4444;border-radius:0}
#communityPage .community-settings-button+.community-help-button{margin-left:0}
#communityPage .chat.show-community-settings>:not(.chat-head):not(.chat-tabs):not(#communitySettingsPanel){display:none!important}
#communitySettingsPanel h2{font-size:20px}
#communitySettingsPanel .chat-sound-setting{display:flex;align-items:center;gap:10px;padding:12px 0}
#communitySettingsPanel input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:#ef4444}

/* Keep one divider between the avatar and background settings. */
#communityPage #profileEditor .profile-background-settings{border-top:0}
