/* =====================================================================
 *  MOBILE / RESPONSIVE LAYER
 *  Shared by every page. Loaded after each page's inline <style>,
 *  so these rules win on small screens.
 * ===================================================================== */

html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
/* dark site: make native date pickers, dropdowns and scrollbars dark too */
:root{ color-scheme:dark; }
body{ overflow-x:clip; }
/* the page grows with its content, so the sticky menu bar at the top stays pinned all the way
   down (each page's own "html,body{height:100%}" stopped it after one screen-height) */
body{ height:auto; min-height:100%; }

/* hamburger button — hidden on desktop */
.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  width:40px;
  height:40px;
  flex:none;
  padding:0;
  background:none;
  border:1px solid rgba(241,236,255,0.35);
  border-radius:4px;
  color:var(--text);
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:currentColor;
  border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle:hover, .nav-toggle:focus-visible{ border-color:var(--pink); color:var(--pink); }
header.site-nav.nav-open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
header.site-nav.nav-open .nav-toggle span:nth-child(2){ opacity:0; }
header.site-nav.nav-open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- NAV: header never wraps onto two lines ---------- */
.brand{ flex:none; }
.nav-right{ min-width:0; }
.auth-btn, .account-chip .who, .account-chip .role-badge{ white-space:nowrap; }
nav.links a.nav-signout,
header.site-nav.nav-open nav.links a.nav-signout{ display:none; }

/* a menu tab hidden in the control panel (Site settings -> Menu) */
nav.links a.nav-off{ display:none !important; }

/* ---------- NAV: current page + dropdown animation ---------- */
nav.links a[aria-current="page"]{ opacity:1; color:var(--gold); }
@keyframes nav-drop{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ header.site-nav.nav-open nav.links{ animation:none !important; } }

/* =====================================================================
 *  SHARED TABS — every tab group on the site behaves the same:
 *  fixed height, same size active or not, gold when selected.
 * ===================================================================== */
.side-tab, .view-btn, .modal-switch-tabs button, .category-pill{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color:transparent;
}

/* sign in / register switch */
.modal-switch-tabs button{
  height:40px;
  padding:0 12px;
  border-radius:99px;
  font-size:0.85rem;
}
.modal-switch-tabs button.active{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--ink);
}

/* gallery page: All / Pictures / Videos */
.category-pill{
  min-width:104px;
  height:40px;
  padding:0 18px;
  font-size:0.85rem;
}
.category-pill.active{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--ink);
}

/* control panel gallery: List / Grid */
.view-toggle{
  display:inline-flex;
  gap:4px;
  padding:4px;
  margin-bottom:14px;
  border:1px solid var(--panel-line);
  border-radius:99px;
  background:rgba(255,255,255,0.03);
}
.view-btn{
  width:88px;
  height:36px;
  padding:0;
  border:none;
  border-radius:99px;
  background:none;
  color:var(--text-dim);
  font-size:0.85rem;
  cursor:pointer;
}
.view-btn:hover{ color:var(--text); }
.view-btn.active{ background:var(--gold); color:var(--ink); }

/* on touch screens, don't leave a "hover" look stuck on the last tapped tab */
@media (hover: none){
  .side-tab:hover:not(.active){ color:var(--text-dim); }
  .category-pill:hover:not(.active){ color:var(--text-dim); border-color:var(--panel-line); }
  .view-btn:hover:not(.active){ color:var(--text-dim); }
}

/* event cards: "About event" can be long — show a 3-line preview */
.card-body p{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* date/time and password fields: match the other inputs */
.field input[type="datetime-local"], .field input[type="date"], .field input[type="time"], .field input[type="password"]{
  font-family:'Space Grotesk', sans-serif;
  font-size:0.9rem;
  padding:9px 10px;
  border:1px solid var(--panel-line);
  background:rgba(255,255,255,0.03);
  color:var(--text);
  border-radius:3px;
}

/* =====================================================================
 *  COOKIE POP-UP (cookies.js)
 * ===================================================================== */
.consent-banner{
  position:fixed;
  left:50%;
  bottom:calc(16px + env(safe-area-inset-bottom, 0px));
  z-index:400;
  width:min(560px, calc(100% - 24px));
  transform:translate(-50%, 16px);
  opacity:0;
  transition:opacity .25s ease, transform .25s ease;
  background:var(--void-2, #0d0a1c);
  color:var(--text, #f1ecff);
  border:1px solid var(--panel-line, rgba(180,150,255,0.18));
  border-radius:12px;
  padding:18px 20px;
  box-shadow:0 18px 50px rgba(0,0,0,0.6), 0 0 30px rgba(139,60,224,0.25);
  font-family:'Space Grotesk', sans-serif;
}
.consent-banner.show{ opacity:1; transform:translate(-50%, 0); }
.consent-title{
  font-family:'Luckiest Guy', cursive;
  font-size:1.25rem;
  color:var(--gold, #ffbe42);
  margin-bottom:6px;
}
.consent-banner p{
  margin:0 0 14px;
  font-size:0.86rem;
  line-height:1.55;
  color:var(--text-dim, rgba(241,236,255,0.72));
}
.consent-banner p strong{ color:var(--text, #f1ecff); font-weight:600; }
.consent-banner .consent-current{ color:var(--gold, #ffbe42); font-weight:600; }
.consent-actions{ display:flex; gap:10px; }
.consent-actions .consent-btn{ flex:1; }
.consent-btn{
  height:44px;
  padding:0 18px;
  border-radius:99px;
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size:0.9rem;
  cursor:pointer;
  border:1px solid var(--panel-line, rgba(180,150,255,0.18));
  background:rgba(255,255,255,0.04);
  color:var(--text, #f1ecff);
  transition:background .15s ease, border-color .15s ease, filter .15s ease;
}
.consent-btn:hover{ border-color:var(--pink, #ff3ec8); }
.consent-btn.consent-accept{
  background:var(--gold, #ffbe42);
  border-color:var(--gold, #ffbe42);
  color:var(--ink, #07050f);
}
.consent-btn.consent-accept:hover{ filter:brightness(1.08); }
.consent-btn:focus-visible, .consent-link:focus-visible{ outline:2px solid var(--pink, #ff3ec8); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ .consent-banner{ transition:none; } }

/* =====================================================================
 *  LIVE CHAT (chat.js) — community page
 * ===================================================================== */
.rg-chat{
  position:fixed;
  right:max(20px, env(safe-area-inset-right, 0px));
  bottom:calc(20px + env(safe-area-inset-bottom, 0px));
  z-index:200;
  font-family:'Space Grotesk', sans-serif;
  transition:bottom .25s ease;
}
/* while the cookie pop-up is showing, sit just above it instead of under it */
body.consent-open .rg-chat:not(.open){ bottom:calc(var(--consent-h, 0px) + 28px + env(safe-area-inset-bottom, 0px)); }
/* hide the bubble while the sign-in pop-up or the picture viewer is open */
body:has(.admin-overlay.open) .rg-chat:not(.open),
body.viewer-open .rg-chat:not(.open){ display:none; }

/* the chat circle — always bottom right when the chat is closed */
.rg-chat-launch{
  display:flex;
  align-items:center;
  justify-content:center;
  width:60px;
  height:60px;
  padding:0;
  border:none;
  border-radius:50%;
  background:linear-gradient(135deg, var(--pink), var(--purple));
  color:#fff;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(255,62,200,0.4), 0 0 0 1px rgba(255,255,255,0.12) inset;
  position:relative;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  transition:transform .15s ease, filter .15s ease;
}
.rg-chat-launch:hover{ filter:brightness(1.1); transform:scale(1.06); }
.rg-chat-launch:active{ transform:scale(0.93); }
.rg-chat-launch:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; }
.rg-chat-launch-icon{ font-size:1.6rem; line-height:1; }
.rg-chat-launch-text{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* new messages: a ring pulses out of the circle */
.rg-chat.has-unread .rg-chat-launch::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  border:2px solid var(--pink);
  animation:rg-chat-ping 1.8s ease-out infinite;
  pointer-events:none;
}
@keyframes rg-chat-ping{ 0%{ transform:scale(1); opacity:0.9; } 100%{ transform:scale(1.6); opacity:0; } }
@media (prefers-reduced-motion: reduce){
  .rg-chat.has-unread .rg-chat-launch::before{ animation:none; opacity:0; }
  .rg-chat, .rg-chat-launch{ transition:none; }
}
.rg-chat-badge{
  position:absolute;
  top:-6px; right:-4px;
  min-width:22px; height:22px;
  padding:0 6px;
  border-radius:99px;
  background:var(--gold);
  color:var(--ink);
  font-size:0.72rem;
  font-weight:800;
  display:flex; align-items:center; justify-content:center;
  border:2px solid var(--void);
}
.rg-chat.open .rg-chat-launch{ display:none; }

.rg-chat-panel{
  display:none;
  flex-direction:column;
  width:350px;
  height:min(560px, calc(100vh - var(--nav-h, 61px) - 40px));
  height:min(560px, calc(100dvh - var(--nav-h, 61px) - 40px));
  background:var(--void-2);
  border:1px solid var(--panel-line);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(139,60,224,0.25);
  animation:rg-chat-in .2s ease;
}
.rg-chat.open .rg-chat-panel{ display:flex; }
@keyframes rg-chat-in{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ .rg-chat-panel{ animation:none; } }

.rg-chat-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px 12px 16px;
  background:linear-gradient(120deg, rgba(255,62,200,0.18), rgba(63,160,255,0.14));
  border-bottom:1px solid var(--panel-line);
  flex:none;
}
.rg-chat-title{
  font-family:'Luckiest Guy', cursive;
  font-size:1.15rem;
  color:var(--gold);
  line-height:1.1;
}
.rg-chat-online{ display:flex; align-items:center; gap:6px; font-size:0.74rem; color:var(--text-dim); margin-top:2px; }
.rg-chat-online i{ width:8px; height:8px; border-radius:50%; background:#6b6485; }
.rg-chat.live .rg-chat-online i{ background:#7dffb0; box-shadow:0 0 8px #7dffb0; }
.rg-chat-min{
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid rgba(241,236,255,0.3);
  background:none;
  color:var(--text);
  font-size:1.2rem;
  line-height:1;
  cursor:pointer;
  flex:none;
}
.rg-chat-min:hover{ border-color:var(--pink); color:var(--pink); }

.rg-chat-list{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:12px 12px 6px;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.rg-chat-empty{ margin:auto; text-align:center; color:var(--text-dim); font-size:0.85rem; padding:20px; }
.rg-chat-msg{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:6px 6px;
  border-radius:8px;
  position:relative;
}
.rg-chat-msg:not(.grouped){ margin-top:6px; }
.rg-chat-msg:hover{ background:rgba(255,255,255,0.03); }
.rg-chat-msg.mine .rg-chat-bubble{ border-left:2px solid var(--pink); padding-left:8px; }
.rg-chat-avatar, .rg-chat-avatar-space{
  width:30px; height:30px;
  flex:none;
  border-radius:50%;
}
.rg-chat-avatar{
  object-fit:cover;
  background:linear-gradient(135deg, var(--pink), var(--purple));
  border:1px solid var(--panel-line);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:0.8rem;
}
.rg-chat-avatar-link{ text-decoration:none; line-height:0; }
.rg-chat-bubble{ min-width:0; flex:1; }
.rg-chat-meta{ display:flex; align-items:baseline; gap:8px; }
.rg-chat-name{ font-weight:700; font-size:0.84rem; color:var(--gold); text-decoration:none; }
.rg-chat-name:hover{ text-decoration:underline; }
.rg-chat-time{ font-size:0.68rem; color:var(--text-dim); }
.rg-chat-text{ font-size:0.88rem; line-height:1.4; color:var(--text); word-break:break-word; white-space:pre-wrap; }
.rg-chat-del{
  position:absolute;
  top:4px; right:4px;
  width:24px; height:24px;
  border-radius:50%;
  border:1px solid var(--panel-line);
  background:var(--void-2);
  color:var(--text-dim);
  font-size:0.9rem;
  line-height:1;
  cursor:pointer;
  opacity:0;
  transition:opacity .15s ease;
}
.rg-chat-msg:hover .rg-chat-del, .rg-chat-del:focus-visible{ opacity:1; }
.rg-chat-del:hover{ border-color:var(--pink); color:var(--pink); }
@media (hover:none){ .rg-chat-del{ opacity:0.7; } }

.rg-chat-form{
  display:flex;
  gap:8px;
  padding:10px 12px 6px;
  border-top:1px solid var(--panel-line);
  flex:none;
}
.rg-chat-form input{
  flex:1;
  min-width:0;
  height:42px;
  padding:0 14px;
  border:1px solid var(--panel-line);
  border-radius:99px;
  background:rgba(255,255,255,0.04);
  color:var(--text);
  font-family:inherit;
  font-size:0.9rem;
}
.rg-chat-form input:focus-visible{ outline:2px solid var(--pink); outline-offset:1px; }
.rg-chat-form button{
  height:42px;
  padding:0 18px;
  border:none;
  border-radius:99px;
  background:var(--gold);
  color:var(--ink);
  font-family:inherit;
  font-weight:700;
  font-size:0.88rem;
  cursor:pointer;
  flex:none;
}
.rg-chat-form button:disabled{ opacity:0.6; cursor:default; }
.rg-chat-signin{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px 6px;
  border-top:1px solid var(--panel-line);
  font-size:0.85rem;
  color:var(--text-dim);
  flex:none;
}
.rg-chat-signin button{
  height:38px;
  padding:0 16px;
  border:none;
  border-radius:99px;
  background:linear-gradient(120deg, var(--pink), var(--purple));
  color:#fff;
  font-family:inherit;
  font-weight:700;
  cursor:pointer;
}
.rg-chat-note{ margin:0; padding:2px 14px 10px; font-size:0.68rem; color:var(--text-dim); flex:none; }
.rg-chat-note.error{ color:#ff8a8a; }

/* wide screens: the community feed moves left so the open chat never covers it */
@media (min-width:1101px){
  body.rg-chat-docked .community-wrap{ margin-right:max(390px, calc((100% - 700px) / 2)); margin-left:auto; }
}

/* phones: round chat bubble; the chat opens full screen */
@media (max-width:760px){
  .rg-chat{ right:max(16px, env(safe-area-inset-right, 0px)); bottom:calc(16px + env(safe-area-inset-bottom, 0px)); }
  body.consent-open .rg-chat:not(.open){ bottom:calc(var(--consent-h, 0px) + 24px + env(safe-area-inset-bottom, 0px)); }
  .rg-chat-launch{ width:58px; height:58px; }
  .rg-chat.open{ inset:0; right:0; bottom:0; z-index:300; transition:none; }
  .rg-chat-panel{
    width:100%;
    height:100%;
    border-radius:0;
    border:none;
    padding-top:env(safe-area-inset-top, 0px);
    padding-bottom:env(safe-area-inset-bottom, 0px);
  }
  .rg-chat-min{ font-size:1.5rem; }
  body.rg-chat-fullscreen{ overflow:hidden; }
  /* cookie pop-up still showing: keep the message box above it */
  body.consent-open .rg-chat.open .rg-chat-panel{ padding-bottom:calc(var(--consent-h, 0px) + 20px + env(safe-area-inset-bottom, 0px)); }
}

/* =====================================================================
 *  COMMUNITY POSTS & POST VIEWER (posts.js) — community + profile pages
 * ===================================================================== */
.post-head{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.post-who{ display:flex; flex-direction:column; min-width:0; flex:1; line-height:1.25; }
/* profile pictures always stay inside their circle, whatever the picture's size or shape */
.post-avatar, .post-comment-avatar{
  display:block;
  flex:none;
  aspect-ratio:1;
  max-width:none;
  border-radius:50%;
  object-fit:cover;
  object-position:center;
  overflow:hidden;
}
.post-avatar{
  width:40px; height:40px;
  background:var(--void);
  border:1px solid var(--panel-line);
}
/* no picture: their first letter */
.post-avatar-letter{
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--pink), var(--purple) 55%, var(--blue));
  color:#fff; font-family:'Luckiest Guy', cursive; font-size:1.05rem; border:none;
}
.post-comment-avatar.post-avatar-letter{ font-size:0.8rem; }
/* (the plain .post-comment-avatar rule further down would paint it black) */
.post-avatar.post-avatar-letter, .post-comment-avatar.post-avatar-letter{
  display:flex; align-items:center; justify-content:center; line-height:1;
  background:linear-gradient(135deg, var(--pink), var(--purple) 55%, var(--blue)); border:none;
}
.post-author-link, .post-comment-author-link{ text-decoration:none; color:inherit; cursor:pointer; }
.post-author-link:hover, .post-comment-author-link:hover{ text-decoration:underline; text-underline-offset:3px; }
.post-author{ font-weight:700; color:var(--gold); font-size:0.95rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* the name link is only as wide as the name (not the whole header line),
   so hovering / clicking only reacts on the name itself */
.post-who > .post-author-link{ align-self:flex-start; max-width:100%; }
.post-comment-bubble .post-comment-author-link{ display:inline-block; }
.post-time{ font-size:0.74rem; color:var(--text-dim); }
/* @mentions (link to the profile) and #hashtags in posts + comments (posts.js renderText) */
.post-mention{ color:var(--pink); font-weight:700; text-decoration:none; }
.post-mention:hover{ text-decoration:underline; }
.post-hashtag{ color:#c9a8ff; font-weight:600; }
/* "Shared from the Gallery ›" — opens the original picture */
.post-source{
  display:inline-flex; align-items:center; gap:6px; align-self:flex-start; width:max-content; max-width:100%;
  margin:2px 0 10px; padding:5px 12px 5px 9px; border-radius:99px; text-decoration:none;
  border:1px solid rgba(180,107,255,0.35); background:rgba(139,60,224,0.12); color:#d9c6ff; font:600 0.76rem 'Space Grotesk', sans-serif;
  transition:border-color .15s ease, color .15s ease;
}
.post-source svg{ width:14px; height:14px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.post-source:hover{ border-color:var(--pink); color:#fff; }
.post-body{
  font-size:0.97rem;
  line-height:1.6;
  color:var(--text);
  white-space:pre-wrap;
  word-break:break-word;
  margin-bottom:12px;
}
.post-avatar-link{ display:block; flex:none; line-height:0; border-radius:50%; overflow:hidden; }

/* "⋯" menu at the top right of a post */
.post-menu{ position:relative; flex:none; }
.post-menu-btn{
  width:36px; height:36px; border-radius:50%; border:1px solid transparent; background:none;
  color:var(--text-dim); font-size:1.3rem; line-height:1; cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.post-menu-btn:hover, .post-menu-btn[aria-expanded="true"]{ background:rgba(255,255,255,0.06); color:var(--text); border-color:var(--panel-line); }
.post-menu-list{
  position:absolute; right:0; top:calc(100% + 6px); z-index:20; min-width:170px;
  padding:6px; border-radius:10px; border:1px solid var(--panel-line); background:#120e24;
  box-shadow:0 14px 34px rgba(0,0,0,0.55);
}
.post-menu-list button{
  display:block; width:100%; text-align:left; padding:9px 12px; border:none; border-radius:6px;
  background:none; color:var(--text); font:600 0.85rem 'Space Grotesk', sans-serif; cursor:pointer;
}
.post-menu-list button:hover, .post-menu-list button:focus-visible{ background:rgba(255,62,200,0.12); color:var(--pink); }
.post-menu-list button.danger{ color:#ff8a8a; }
.post-menu-list button.danger:hover{ background:rgba(255,80,80,0.14); color:#ff6b6b; }

/* ♥ Like · 💬 Comment · ↗ Share */
.post-actions{
  display:flex; gap:4px; flex-wrap:wrap;
  margin-top:4px; padding-top:8px; border-top:1px solid var(--panel-line);
}
.post-action{
  display:inline-flex; align-items:center; gap:7px;
  min-height:40px; padding:0 14px; border-radius:99px; border:none; background:none;
  color:var(--text-dim); font:600 0.86rem 'Space Grotesk', sans-serif; cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.post-action svg{ width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s ease; }
.post-action:hover{ background:rgba(255,255,255,0.05); color:var(--text); }
.post-action .n:empty{ display:none; }
.post-action .n{ font-variant-numeric:tabular-nums; }
.post-like:hover, .post-like.on{ color:var(--pink); }
.post-like.on svg{ fill:var(--pink); stroke:var(--pink); }
.post-like.pop svg{ animation:likePop .35s ease; }
@keyframes likePop{ 40%{ transform:scale(1.35); } }
.post-comment-btn:hover{ color:var(--blue); }
.post-share:hover, .post-share.on{ color:var(--gold); }
/* ↻ Repost — green when you've reposted it; on your own post it only shows the count */
.post-repost:hover, .post-repost.on{ color:#3ddc84; }
.post-repost.on svg{ stroke-width:2.4; }
.post-repost.pop svg{ animation:repostSpin .45s ease; }
@keyframes repostSpin{ from{ transform:rotate(-180deg) scale(.8); } to{ transform:none; } }
.post-repost.own{ cursor:default; opacity:0.5; }
.post-repost.own:hover{ background:none; color:var(--text-dim); }
/* the post viewer's side column is narrow: Repost + Share as icons, so the bar stays on one line */
.pv-side .post-repost .t, .pv-side .post-share .t{ display:none; }
.pv-side .post-action{ padding:0 11px; }
@media (max-width:420px){ .post-action{ padding:0 10px; } .post-share .t, .post-repost .t{ display:none; } }

/* comments: picture, a soft bubble with name + text, then time · Like · Reply · Remove */
.post-comments{ margin-top:6px; padding-top:12px; }
.post-comments-list{ display:flex; flex-direction:column; gap:12px; margin-bottom:12px; }
.post-comments-list:empty{ display:none; }
.post-comments-more{
  align-self:flex-start; border:none; background:none; padding:2px 0; cursor:pointer;
  color:var(--text-dim); font:600 0.82rem 'Space Grotesk', sans-serif;
}
.post-comments-more:hover{ color:var(--pink); }
.post-comments-empty, .post-comments-note{ margin:0; font-size:0.84rem; color:var(--text-dim); }
.post-comment-skeleton{ height:44px; border-radius:12px; }
.post-thread{ display:flex; flex-direction:column; gap:10px; }
.post-replies{ display:flex; flex-direction:column; gap:10px; margin-left:38px; padding-left:12px; border-left:2px solid rgba(180,150,255,0.18); }
.post-comment-item{ display:flex; gap:10px; align-items:flex-start; font-size:0.86rem; }
.post-comment-main{ min-width:0; flex:1; }
.post-comment-bubble{
  display:inline-block; max-width:100%;
  padding:8px 12px; border-radius:4px 14px 14px 14px;
  background:rgba(255,255,255,0.05);
}
.post-comment-author{ font-weight:700; color:var(--gold); font-size:0.82rem; }
.post-comment-body{ color:var(--text); margin-top:2px; word-break:break-word; line-height:1.45; white-space:pre-wrap; }
.post-comment-avatar{
  width:28px; height:28px;
  border-radius:50%;
  object-fit:cover;
  background:var(--void);
  border:1px solid var(--panel-line);
  display:block;
}
.post-comment-tools{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin:4px 0 0 4px; font-size:0.74rem; }
.post-comment-time{ color:var(--text-dim); }
.post-comment-like, .post-comment-reply, .post-comment-remove{
  display:inline-flex; align-items:center; gap:4px;
  background:none; border:none; padding:2px 0; cursor:pointer;
  color:var(--text-dim); font:700 0.74rem 'Space Grotesk', sans-serif;
}
.post-comment-like svg{ width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2.2; }
/* phones / tablets: same look, but a finger-sized tap area around Like · Reply · Remove · View all */
@media (hover:none){
  .post-comment-tools{ gap:6px 8px; margin-top:0; }
  .post-comment-like, .post-comment-reply, .post-comment-remove{ min-height:34px; padding:0 6px; }
  .post-comments-more{ min-height:34px; }
}
.post-comment-like:hover, .post-comment-like.on{ color:var(--pink); }
.post-comment-like.on svg{ fill:var(--pink); }
.post-comment-reply:hover{ color:var(--blue); }
.post-comment-remove:hover{ color:#ff8a8a; }
/* the comment box sits neatly under the discussion */
.post-comment-form{ display:flex; flex-direction:column; gap:6px; }
.post-replying{ display:flex; align-items:center; gap:8px; font-size:0.78rem; color:var(--blue); font-weight:600; }
.post-replying button{ border:none; background:none; color:var(--text-dim); font-size:1.1rem; cursor:pointer; line-height:1; padding:0 4px; }
.post-replying button:hover{ color:var(--pink); }
.post-comment-line{ display:flex; gap:8px; align-items:center; }
.post-comment-form input{
  flex:1;
  min-width:0;
  height:40px;
  padding:0 14px;
  border:1px solid var(--panel-line);
  background:rgba(255,255,255,0.04);
  color:var(--text);
  border-radius:99px;
  font-family:'Space Grotesk', sans-serif;
  font-size:0.86rem;
  transition:border-color .15s ease;
}
.post-comment-form input:focus{ outline:none; border-color:var(--pink); }
.post-comment-form button[type="submit"]{
  background:linear-gradient(120deg, var(--pink), var(--purple));
  color:#fff; border:none; height:40px; padding:0 18px; border-radius:99px;
  font-weight:700; font-size:0.84rem; cursor:pointer; flex:none;
}
.post-comment-form button[type="submit"]:disabled{ opacity:0.6; }
.post-comment-line .rg-emoji-btn{ width:40px; height:40px; min-height:40px; }

/* round buttons + fields in the same style as the comment box (reuse anywhere):
   <button class="rg-pill primary|danger">, <input class="rg-field"> */
.rg-pill{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:40px; padding:0 18px; border-radius:99px; cursor:pointer; flex:none;
  border:1px solid var(--panel-line); background:rgba(255,255,255,0.04); color:var(--text);
  font:700 0.84rem 'Space Grotesk', sans-serif; white-space:nowrap;
  transition:background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.rg-pill:hover{ border-color:var(--pink); color:var(--pink); }
.rg-pill.primary{ border:none; background:linear-gradient(120deg, var(--pink), var(--purple)); color:#fff; }
.rg-pill.primary:hover{ color:#fff; transform:translateY(-1px); box-shadow:0 6px 18px rgba(255,62,200,0.3); }
.rg-pill.danger{ border-color:rgba(255,138,138,0.5); color:#ff8a8a; background:none; }
.rg-pill.danger:hover{ background:rgba(255,80,80,0.14); border-color:#ff6b6b; color:#ff6b6b; }
.rg-pill:disabled{ opacity:0.55; cursor:default; transform:none; box-shadow:none; }
.rg-field, .field input.rg-field{   /* (.field input… on the pages would otherwise win) */
  width:100%; min-width:0; height:40px; padding:0 14px;
  border:1px solid var(--panel-line); border-radius:99px;
  background:rgba(255,255,255,0.04); color:var(--text);
  font-family:'Space Grotesk', sans-serif; font-size:0.86rem;
  transition:border-color .15s ease;
}
.rg-field:focus, .field input.rg-field:focus, .field input.rg-field:focus-visible{ outline:none; border-color:var(--pink); }

/* loading placeholders (skeleton cards) */
.skeleton, .post-comment-skeleton{
  background:linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
  background-size:200% 100%;
  animation:skeletonShine 1.4s ease-in-out infinite;
}
@keyframes skeletonShine{ from{ background-position:200% 0; } to{ background-position:-200% 0; } }
@media (prefers-reduced-motion: reduce){ .skeleton, .post-comment-skeleton{ animation:none; } }

/* clear keyboard focus everywhere (mouse clicks don't show it) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible{ outline:2px solid var(--pink); outline-offset:2px; }

/* the viewer: picture on the left, post + comments on the right */
body.viewer-open{ overflow:hidden; }
.post-viewer{
  position:fixed;
  inset:0;
  z-index:250;
  background:rgba(4,3,10,0.92);
  backdrop-filter:blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:calc(24px + env(safe-area-inset-top, 0px)) 72px calc(24px + env(safe-area-inset-bottom, 0px));
  animation:pv-in .18s ease;
  font-family:'Space Grotesk', sans-serif;
}
@keyframes pv-in{ from{ opacity:0; } to{ opacity:1; } }
@media (prefers-reduced-motion: reduce){ .post-viewer{ animation:none; } }
.pv-inner{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 360px;
  width:min(1240px, 100%);
  height:min(88vh, 900px);
  background:var(--void-2);
  border:1px solid var(--panel-line);
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(139,60,224,0.2);
}
/* a post without a picture: just the post + comments, narrower */
.pv-inner.no-media{ grid-template-columns:minmax(0, 1fr); width:min(560px, 100%); height:min(80vh, 760px); }
.pv-inner.no-media .pv-media{ display:none; }
.pv-inner.no-media .pv-side{ border-left:none; }
.pv-inner.no-media .pv-post-body{ font-size:1.05rem; max-height:40%; }
.pv-media{
  position:relative;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:0;
  min-width:0;
}
.pv-media img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
  opacity:0;
  transition:opacity .2s ease;
}
.pv-media img.loaded{ opacity:1; }
.pv-count{   /* "1 / 5" — on the right (the × is top left) */
  position:absolute; right:14px; bottom:12px;
  font-size:0.75rem; font-weight:700;
  padding:4px 10px; border-radius:99px;
  background:rgba(7,5,15,0.7); color:var(--text);
}
.pv-count:empty{ display:none; }
.pv-side{
  display:flex;
  flex-direction:column;
  min-height:0;
  border-left:1px solid var(--panel-line);
  padding:18px 18px 14px;
  overflow:hidden;
}
.pv-side .post-head{ padding-bottom:12px; border-bottom:1px solid var(--panel-line); margin-bottom:12px; padding-right:36px; }
.pv-side .post-avatar{ width:44px; height:44px; }
.pv-side .post-author{ font-size:1rem; }
.pv-post-body{ max-height:30%; overflow-y:auto; flex:none; }
.pv-side .post-comments{ flex:1; min-height:0; display:flex; flex-direction:column; margin-top:10px; }
.pv-side .post-comments-list{ flex:1; min-height:0; overflow-y:auto; padding-right:4px; gap:12px; }
.pv-side .post-comment-form{ flex:none; padding-top:10px; border-top:1px solid var(--panel-line); }
.pv-side .post-actions{ flex:none; margin-top:0; }
.pv-close, .pv-nav{
  position:fixed;
  z-index:260;
  border-radius:50%;
  border:1px solid rgba(241,236,255,0.35);
  background:rgba(7,5,15,0.8);
  color:var(--text);
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.pv-close{ top:calc(14px + env(safe-area-inset-top, 0px)); left:16px; width:44px; height:44px; font-size:1.6rem; }   /* × top LEFT */
/* previous / next post */
.pv-nav{ top:50%; transform:translateY(-50%); width:48px; height:48px; font-size:2rem; padding-bottom:4px; }
.pv-prev{ left:12px; }
.pv-next{ right:12px; }
.pv-close:hover, .pv-close:focus-visible, .pv-nav:hover, .pv-nav:focus-visible{ border-color:var(--pink); color:var(--pink); }

/* phones / narrow screens: picture on top, post + comments underneath */
@media (max-width:860px){
  /* fill exactly the visible screen, so the keyboard never covers the comment box (mobile.js sets --vvh/--vvt) */
  .post-viewer{ padding:0; align-items:stretch; inset:auto; left:0; right:0; top:var(--vvt, 0px); height:var(--vvh, 100dvh); }
  .pv-inner, .pv-inner.no-media{
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr;
    width:100%;
    height:100%;
    border-radius:0;
    border:none;
  }
  .pv-inner.no-media{ grid-template-rows:1fr; }
  .pv-inner.no-media .pv-side{ padding-top:calc(64px + env(safe-area-inset-top, 0px)); }
  .pv-media{ max-height:55vh; max-height:55svh; padding-top:env(safe-area-inset-top, 0px); }
  .pv-media img{ max-height:55vh; max-height:55svh; }
  .pv-side{ border-left:none; border-top:1px solid var(--panel-line); padding-bottom:calc(14px + env(safe-area-inset-bottom, 0px)); }
  .pv-side .post-head{ padding-right:0; }
  .pv-count{ top:calc(14px + env(safe-area-inset-top, 0px)); bottom:auto; }
  /* the × follows the part of the page you can see, also while the keyboard is open */
  .pv-close{ top:calc(var(--vvt, 0px) + 14px + env(safe-area-inset-top, 0px)); }
  .pv-inner, .pv-side, .pv-media{ box-sizing:border-box; min-width:0; max-width:100%; }
  .post-viewer{ overflow-x:hidden; }
  /* arrows sit on the picture (or at the top for text posts) */
  .pv-nav{ position:absolute; top:var(--pv-mid, 27.5svh); width:42px; height:42px; font-size:1.7rem; }
  .post-viewer:has(.no-media) .pv-nav{ top:calc(36px + env(safe-area-inset-top, 0px)); }
  /* text posts: arrows at the top, clear of the × on the left */
  .post-viewer:has(.no-media) .pv-prev{ left:70px; }
  .post-viewer:has(.no-media) .pv-next{ right:16px; }
}

/* =====================================================================
 *  LIVE STREAM PLAYER (stream.js) — Twitch & VRCDN, inside any 16:9 box
 * ===================================================================== */
.stream-video{ position:absolute; inset:0; width:100%; height:100%; background:#000; object-fit:contain; }
.stream-msg{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  padding:20px; text-align:center;
  color:var(--text-dim); font-size:0.92rem; line-height:1.5;
  background:radial-gradient(ellipse at center, rgba(139,60,224,0.18), transparent 70%), #07050f;
}
.stream-msg strong{ color:var(--text); }
.stream-msg small{ font-size:0.78rem; }
.stream-msg .stream-msg-icon{ font-size:1.8rem; }
/* muted (the browser wouldn't start with sound): a big, clear button in the middle */
.stream-unmute{
  position:absolute; left:50%; top:50%; z-index:3; transform:translate(-50%, -50%);
  height:52px; padding:0 26px;
  border:none; border-radius:99px;
  background:linear-gradient(120deg, var(--pink), var(--purple)); color:#fff;
  font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:1rem;
  cursor:pointer;
  box-shadow:0 6px 24px rgba(0,0,0,0.5);
  animation:streamUnmutePulse 1.8s ease-in-out infinite;
}
.stream-unmute[hidden]{ display:none; }
.stream-unmute:hover{ filter:brightness(1.1); }
@keyframes streamUnmutePulse{ 50%{ transform:translate(-50%, -50%) scale(1.06); } }
@media (prefers-reduced-motion: reduce){ .stream-unmute{ animation:none; } }
/* while the first picture is on its way (VRCDN can take 5–20 seconds) */
.stream-loading{
  position:absolute; inset:0; z-index:1;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  padding:20px; text-align:center; pointer-events:none;
  color:var(--text-dim); font-size:0.92rem; line-height:1.5;
  background:radial-gradient(ellipse at center, rgba(139,60,224,0.18), transparent 70%), #07050f;
}
.stream-loading small{ font-size:0.78rem; }

/* placeholder shown instead of an embed until cookies are accepted */
.consent-embed{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:220px;
  padding:24px;
  text-align:center;
  background:var(--panel, #120e24);
  color:var(--text-dim, rgba(241,236,255,0.72));
  font-family:'Space Grotesk', sans-serif;
}
.consent-embed.consent-fill{ position:absolute; inset:0; min-height:0; }
.consent-embed p{ margin:0; max-width:40ch; font-size:0.9rem; line-height:1.5; }
.consent-embed p strong{ color:var(--text, #f1ecff); }
.consent-embed-icon{ font-size:1.8rem; }
.consent-link{
  background:none;
  border:none;
  color:var(--text-dim, rgba(241,236,255,0.72));
  font-family:inherit;
  font-size:0.8rem;
  text-decoration:underline;
  cursor:pointer;
  padding:4px;
}
.consent-link:hover{ color:var(--pink, #ff3ec8); }
.consent-footer-link{ display:block; margin-top:10px; }

/* tables scroll sideways instead of breaking the page */
.table-scroll{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

/* ---------- wide screens: keep the link row on one line ---------- */
@media (min-width: 1101px){
  nav.links{ gap:22px; flex-wrap:nowrap; }
  nav.links a{ white-space:nowrap; }
  /* sliding pill behind the menu links (mobile.js moves it): rests on the page
     you're on (gold), slides to whatever link you hover (pink) */
  nav.links.has-glider{ position:relative; gap:2px; }
  nav.links.has-glider a{ position:relative; z-index:1; padding:7px 13px; border-radius:99px; }
  .nav-glider{
    position:absolute; top:0; left:0; height:0; width:0; z-index:0; border-radius:99px; pointer-events:none; opacity:0;
    background:rgba(255,190,66,0.1); border:1px solid rgba(255,190,66,0.4);
    transition:transform .3s cubic-bezier(.3,.7,.2,1), width .3s cubic-bezier(.3,.7,.2,1), height .3s ease, opacity .2s ease, background .2s ease, border-color .2s ease;
  }
  .nav-glider.on{ opacity:1; }
  .nav-glider.hover{ background:rgba(255,62,200,0.14); border-color:rgba(255,62,200,0.5); }
}
@media (max-width: 1100px){ .nav-glider{ display:none; } }
@media (prefers-reduced-motion: reduce){ .nav-glider{ transition:opacity .2s ease; } }

/* ---------- ☰ menu: tablets & phones (below 1100px the links + account
   buttons no longer fit on one line) ---------- */
@media (max-width: 1100px){
  nav.links{ display:none; }
  .nav-toggle{ display:inline-flex; flex:none; }
  /* ☰ on the left, the logo right next to it, your account on the right */
  .nav-inner > .brand{ margin-right:auto; }

  /* dropdown menu */
  header.site-nav.nav-open nav.links{
    display:flex;
    flex-direction:column;
    flex-wrap:nowrap;
    gap:0;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    padding:6px 16px 14px;
    background:rgba(7,5,15,0.97);
    border-bottom:1px solid var(--panel-line);
    box-shadow:0 14px 30px rgba(0,0,0,0.5);
    max-height:calc(100vh - 70px);
    max-height:calc(100dvh - 70px);
    overflow-y:auto;
    overscroll-behavior:contain;
    animation:nav-drop .18s ease;
  }
  header.site-nav.nav-open nav.links a{
    display:flex;
    align-items:center;
    min-height:48px;
    padding:0 12px;
    font-size:1.02rem;
    opacity:0.9;
    border-bottom:1px solid var(--panel-line);
    border-left:3px solid transparent;
  }
  header.site-nav.nav-open nav.links a[aria-current="page"]{
    opacity:1;
    color:var(--gold);
    border-left-color:var(--gold);
    background:rgba(255,190,66,0.06);
  }
  header.site-nav.nav-open nav.links a:last-child{ border-bottom:none; }
}

/* ---------- tablets & phones ---------- */
@media (max-width: 760px){
  .nav-inner{ padding:10px 16px; gap:10px; }
  .brand{ font-size:1.35rem; }
  .nav-right{ gap:8px; }
  .gear-btn{ width:36px; height:36px; font-size:1rem; }

  .auth-btn{ padding:8px 12px; font-size:0.8rem; }
  .account-chip{ gap:6px; font-size:0.8rem; }
  .account-chip .who{
    max-width:90px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  /* section spacing */
  .hero{ padding:64px 16px 36px; min-height:70vh; min-height:70svh; }
  .hero-sub{ font-size:0.98rem; margin-top:26px; }
  .events{ padding:52px 16px 64px; }
  .live-section{ padding:44px 16px 56px; }
  footer{ padding:40px 16px 28px; }
  .footer-inner{ flex-direction:column; align-items:flex-start; gap:16px; }
  .stream-wrap, .timeline-section, .community-wrap{ padding-left:16px; padding-right:16px; }

  /* modals / admin panels */
  .admin-overlay{ padding:12px; }
  .admin-head{ padding:14px 16px; gap:12px; }
  .admin-head h2{ font-size:1.35rem; }
  .admin-body{ padding:20px 16px 24px; }
  .admin-tabs{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .admin-tab{ padding:12px 16px; white-space:nowrap; flex:none; }
  .modal-form{ max-width:none; }


  /* buttons & cards */
  .btn-primary, .btn-ghost{ display:inline-block; text-align:center; }
  .card:hover{ transform:none; }
  .profile-hover-card{ max-width:calc(100vw - 24px); }

  /* stops iOS from zooming in when an input is focused */
  input, select, textarea{ font-size:16px !important; }
}

/* =====================================================================
 *  CONTROL PANEL (control.html)
 * ===================================================================== */
@media (max-width: 800px){
  /* tab bar takes only the height it needs; the content gets the rest
     (stops the big empty gap between the tabs and the section) */
  .control-wrap{ grid-template-rows:auto 1fr; align-content:start; }

  /* section tabs: sticky bar under the header, swipe sideways */
  .control-side{
    position:sticky;
    top:calc(env(safe-area-inset-top,0px) + var(--nav-h, 61px));
    z-index:40;
    background:rgba(13,10,28,0.97);
    backdrop-filter:blur(6px);
    padding:10px 16px;
    gap:8px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image:linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .control-side::-webkit-scrollbar{ display:none; }
  /* every tab is exactly the same size, active or not */
  .control-side .side-tab{
    flex:0 0 146px;
    width:146px;   /* "People dashboard" fits on one line */
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 10px;
    text-align:center;
    white-space:normal;
    line-height:1.15;
    font-size:0.8rem;
    font-weight:600;
    border:1px solid var(--panel-line);
    border-radius:99px;
    background:rgba(255,255,255,0.03);
    color:var(--text-dim);
  }
  .control-side .side-tab.active{
    color:var(--ink);
    background:var(--gold);
    border-color:var(--gold);
  }
  /* a little room after the very last tab (not after the last tab of each category,
     which made the gap after "Dashboard" bigger than the others) */
  .control-side .side-tab{ margin:0; }
  .control-side::after{ content:""; flex:0 0 16px; }

  .control-main{ padding:24px 16px 60px; max-width:none; }
  .control-section{ scroll-margin-top:calc(var(--nav-h, 61px) + 64px); }
}

@media (max-width: 760px){
  .control-main h2{ font-size:1.45rem; margin-bottom:16px; }
  .control-main .field{ max-width:none !important; }
  .control-main .admin-note{ font-size:0.82rem; line-height:1.5; }
  .gate-screen{ margin:48px auto; }

  /* DJ lineup add row: one field per line */
  .dj-add-row{ flex-direction:column; align-items:stretch !important; }
  .dj-add-row .field{ min-width:0 !important; width:100%; }
  .dj-add-row #ev-dj-add{ align-self:flex-start; }
  .dj-lineup-row{ flex-wrap:wrap; }

  /* bigger tap targets */
  .control-main .admin-save{ min-height:44px; padding:12px 22px; }
  .control-main .row-remove{ min-height:36px; padding:7px 12px; font-size:0.8rem; }
  .control-main .save-msg{ display:inline-block; margin:8px 0 0 10px; }
  .control-main .field input,
  .control-main .field select,
  .control-main .field textarea{ width:100%; min-height:42px; }
  .switch-row{ gap:14px; padding:14px 0; }
  .perm-toggle{ padding:6px 8px; font-size:0.82rem; }
  .perm-toggle input{ width:20px; height:20px; }
  .role-card{ padding:0; }
  .role-card-actions{ flex-wrap:wrap; }

  /* backgrounds: preview above the controls */
  .bg-slot{ flex-direction:column; gap:10px; }
  .bg-slot-preview{ width:100%; height:120px; }
  .bg-slot-body select{ max-width:none; width:100%; }

  .gallery-card-grid{ grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:10px; }

  /* tables become a stack of cards (labels come from mobile.js) */
  .control-main .table-scroll{ overflow:visible; }
  .control-main table.user-table,
  .control-main table.user-table tbody,
  .control-main table.user-table tr,
  .control-main table.user-table td{ display:block; width:100%; }
  .control-main table.user-table thead{ display:none; }
  .control-main table.user-table tr{
    background:linear-gradient(160deg, var(--panel), #0b0818);
    border:1px solid var(--panel-line);
    border-radius:8px;
    padding:6px 14px 10px;
    margin-bottom:12px;
  }
  .control-main table.user-table td{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:6px 12px;
    padding:9px 0;
    border-bottom:1px solid var(--panel-line);
    text-align:right;
    word-break:break-word;
  }
  .control-main table.user-table td:last-child{ border-bottom:none; }
  .control-main table.user-table td[data-label]::before{
    content:attr(data-label);
    flex:none;
    font-size:0.7rem;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:0.04em;
    color:var(--text-dim);
    text-align:left;
  }
  /* cell with an input: label on top, input full width */
  .control-main table.user-table td.has-input{ flex-direction:column; align-items:stretch; text-align:left; }
  .control-main table.user-table td input:not([type="checkbox"]):not([type="radio"]),
  .control-main table.user-table td select{ width:100% !important; min-height:40px; }
  /* action buttons cell */
  .control-main table.user-table td:not([data-label]){ justify-content:flex-start; gap:8px; padding-top:12px; }
  .control-main table.user-table td:not([data-label]) button{ margin:0 !important; }
  .control-main table.user-table tr.empty-row{ text-align:center; padding:18px 14px; }
  .control-main table.user-table tr.empty-row td{ justify-content:center; border:none; text-align:center; }
  .control-main .gallery-thumb{ width:96px; height:64px; }
}

/* ---------- phones: sign out moves into the menu ---------- */
@media (max-width: 480px){
  .account-chip .auth-btn{ display:none; }
  header.site-nav.nav-open nav.links a.nav-signout:not([hidden]){ display:flex; color:var(--pink); }
  .account-chip .who{ max-width:110px; }
}

/* ---------- small phones ---------- */
@media (max-width: 420px){
  .brand{ font-size:1.15rem; }
  .account-chip .role-badge{ display:none; }
  .account-chip .who{ max-width:70px; }
  .hero-cta-row{ flex-direction:column; align-items:stretch; width:100%; max-width:320px; }
  .slot-card, .slot-add-card{ width:170px; }
  .switch-row{ gap:12px; }
}

/* ---------- EMOJI PICKER (emoji.js) ---------- */
.rg-emoji-btn{
  flex:none;
  width:40px; height:40px; min-height:40px;
  display:inline-flex; align-items:center; justify-content:center;
  padding:0; border-radius:50%;
  border:1px solid var(--panel-line, rgba(180,150,255,0.25));
  background:rgba(255,255,255,0.04);
  font-size:1.2rem; line-height:1; cursor:pointer;
  transition:border-color .15s ease, background .15s ease, transform .15s ease;
}
.rg-emoji-btn:hover, .rg-emoji-btn:focus-visible, .rg-emoji-btn[aria-expanded="true"]{
  border-color:var(--pink, #ff3ec8); background:rgba(255,62,200,0.12); transform:scale(1.06);
}
.rg-chat-form .rg-emoji-btn{ width:38px; height:38px; min-height:38px; }
.rg-emoji-panel{
  position:fixed; z-index:500;
  width:328px; max-width:calc(100vw - 16px);
  display:flex; flex-direction:column;
  border-radius:14px;
  border:1px solid rgba(180,150,255,0.3);
  background:#110d22;
  box-shadow:0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(139,60,224,0.25);
  overflow:hidden;
}
.rg-emoji-panel[hidden]{ display:none !important; }
.rg-emoji-tabs{ display:flex; border-bottom:1px solid rgba(180,150,255,0.18); }
.rg-emoji-tabs button{
  flex:1; height:40px; padding:0; border:0; background:none; cursor:pointer;
  font-size:1.1rem; opacity:0.55; border-bottom:2px solid transparent;
}
.rg-emoji-tabs button:hover{ opacity:0.9; }
.rg-emoji-tabs button[aria-selected="true"]{ opacity:1; border-bottom-color:var(--pink, #ff3ec8); }
.rg-emoji-title{ padding:8px 12px 2px; font-size:0.72rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color:var(--text-dim, #a49cc0); }
.rg-emoji-grid{
  display:grid; grid-template-columns:repeat(8, 1fr); gap:2px;
  padding:4px 8px 10px; height:236px; overflow-y:auto; align-content:start;
  overscroll-behavior:contain;
}
.rg-emoji-grid button{
  aspect-ratio:1; border:0; border-radius:8px; background:none; cursor:pointer; padding:0;
  font-size:1.45rem; line-height:1;
  font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;
}
.rg-emoji-grid button:hover, .rg-emoji-grid button:focus-visible{ background:rgba(255,62,200,0.16); }
.rg-emoji-empty{ grid-column:1 / -1; margin:30px 0; text-align:center; font-size:0.85rem; color:var(--text-dim, #a49cc0); }
/* phones: a sheet along the bottom of the screen, big enough for thumbs */
@media (max-width:640px){
  .rg-emoji-panel{ left:0 !important; right:0; bottom:0; top:auto !important; width:auto; max-width:none; border-radius:18px 18px 0 0;
    padding-bottom:env(safe-area-inset-bottom); }
  .rg-emoji-grid{ height:min(260px, 40vh); grid-template-columns:repeat(8, 1fr); }
  .rg-emoji-grid button{ font-size:1.6rem; }
}
/* the post composer: emoji button next to the picture button, left side */
.composer-actions{ display:flex; align-items:center; gap:8px; }
/* ---------- BACK ARROW on page banners (profile, event) — mobile.js makes it go back ---------- */
.page-back{
  position:absolute;
  top:18px;
  left:max(24px, calc((100% - 1200px) / 2 + 24px));
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:44px;
  padding:0 18px 0 14px;
  border-radius:99px;
  border:1px solid rgba(241,236,255,0.3);
  background:rgba(7,5,15,0.55);
  backdrop-filter:blur(6px);
  color:var(--text);
  text-decoration:none;
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size:0.9rem;
  transition:border-color .15s ease, color .15s ease, transform .15s ease;
}
.page-back span:first-child{ font-size:1.25rem; line-height:1; }
.page-back:hover, .page-back:focus-visible{ border-color:var(--pink); color:var(--pink); transform:translateX(-2px); }
@media (max-width:640px){
  .page-back{ top:12px; left:16px; width:44px; padding:0; justify-content:center; }
  .page-back-text{ display:none; }
}/* event page: right in the top-left corner of the banner */
.page-back.page-back-corner{ left:20px; }
@media (max-width:640px){ .page-back.page-back-corner{ left:16px; } }

/* ---------- ACCOUNT PICTURE + BELL (notify.js) — next to your name in the header ---------- */
.account-chip .acct-pic{ display:block; flex:none; width:34px; height:34px; border-radius:50%; line-height:0; }
.acct-pic-img, .notif-pic-img{
  width:100%; height:100%; border-radius:50%; object-fit:cover; display:block;
  border:2px solid rgba(255,62,200,0.55); box-sizing:border-box; background:var(--void);
}
.acct-pic-img.letter, .notif-pic-img.letter{
  display:flex; align-items:center; justify-content:center; line-height:1; border:none;
  background:linear-gradient(135deg, var(--pink), var(--purple) 55%, var(--blue));
  color:#fff; font-family:'Luckiest Guy', cursive; font-size:0.95rem;
}
.account-chip .acct-pic:hover .acct-pic-img{ border-color:var(--pink); box-shadow:0 0 0 3px rgba(255,62,200,0.2); }
.notif-wrap{ position:relative; flex:none; }
.notif-bell{
  position:relative; width:36px; height:36px; border-radius:50%; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--panel-line); background:rgba(255,255,255,0.04); color:var(--text-dim);
  transition:border-color .15s ease, color .15s ease, background .15s ease;
}
.notif-bell svg{ width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linejoin:round; stroke-linecap:round; }
.notif-bell:hover, .notif-bell[aria-expanded="true"]{ border-color:var(--pink); color:var(--pink); background:rgba(255,62,200,0.1); }
.notif-bell.has-new{ color:var(--text); }
.notif-bell.has-new svg{ animation:bellRing 2.4s ease-in-out 1; transform-origin:50% 10%; }
@keyframes bellRing{ 0%,60%,100%{ transform:rotate(0); } 10%,30%{ transform:rotate(14deg); } 20%,40%{ transform:rotate(-12deg); } }
.notif-badge{
  position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px; border-radius:99px;
  background:#ff3e6c; color:#fff; font:800 0.66rem/18px 'Space Grotesk', sans-serif; text-align:center;
  box-shadow:0 0 0 2px var(--void);
}
.notif-badge[hidden]{ display:none; }
.notif-panel{
  position:fixed; top:calc(var(--nav-h, 64px) + 6px); right:16px; z-index:350;
  width:360px; max-width:calc(100vw - 16px); max-height:min(480px, calc(100vh - var(--nav-h, 64px) - 24px));
  display:flex; flex-direction:column; overflow:hidden;
  border-radius:14px; border:1px solid var(--panel-line); background:#120e24;
  box-shadow:0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(139,60,224,0.2);
  text-align:left; white-space:normal;
}
.notif-panel[hidden]{ display:none; }
/* little pointer up to the bell (notify.js sets --notif-arrow; phones: full width, no pointer) */
.notif-panel{ overflow:visible; }
.notif-panel::before{
  content:''; position:absolute; top:-7px; left:calc(var(--notif-arrow, 50%) - 7px); width:12px; height:12px;
  background:#120e24; border-left:1px solid var(--panel-line); border-top:1px solid var(--panel-line); transform:rotate(45deg);
}
.notif-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 10px 8px 16px; font-family:'Luckiest Guy', cursive; font-size:1.05rem; color:var(--text); border-bottom:1px solid var(--panel-line);
}
.notif-gear{
  flex:none; width:34px; height:34px; border-radius:50%; cursor:pointer; padding:0;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid transparent; background:none; color:var(--text-dim); transition:color .15s ease, background .15s ease, border-color .15s ease;
}
.notif-gear svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; stroke-linecap:round; transition:transform .3s ease; }
.notif-gear:hover, .notif-gear.on{ color:var(--pink); background:rgba(255,62,200,0.1); border-color:rgba(255,62,200,0.35); }
.notif-gear.on svg{ transform:rotate(60deg); }
.notif-list, .notif-set{ overflow-y:auto; padding:6px; overscroll-behavior:contain; border-radius:0 0 14px 14px; }
.notif-list[hidden], .notif-set[hidden]{ display:none; }
.notif-set{ padding:10px; }
.notif-set-hint{ margin:2px 4px 0; font-size:0.74rem; color:var(--text-dim); line-height:1.45; }
.notif-item{
  display:flex; gap:12px; align-items:flex-start; padding:10px; border-radius:10px;
  color:var(--text); text-decoration:none; font-size:0.86rem; line-height:1.4;
}
.notif-item:hover, .notif-item:focus-visible{ background:rgba(255,255,255,0.05); }
.notif-item.is-new{ background:rgba(255,62,200,0.08); }
.notif-item.is-new:hover{ background:rgba(255,62,200,0.14); }
.notif-pic{ position:relative; flex:none; width:38px; height:38px; }
.notif-kind{ position:absolute; right:-4px; bottom:-4px; font-size:0.8rem; line-height:1; filter:drop-shadow(0 1px 2px rgba(0,0,0,0.6)); }
.notif-text{ min-width:0; }
.notif-text b{ color:var(--gold); }
.notif-snippet{ display:block; color:var(--text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notif-time{ display:block; font-size:0.74rem; color:var(--text-dim); margin-top:2px; }
.notif-item.is-new .notif-time{ color:var(--pink); font-weight:700; }
.notif-empty{ margin:0; padding:28px 16px; text-align:center; color:var(--text-dim); font-size:0.88rem; line-height:1.5; }
.notif-empty span{ display:block; font-size:1.8rem; margin-bottom:6px; }
/* small phones: picture + bell replace the written name in the header */
@media (max-width:480px){
  .account-chip.has-acct-pic .who{ display:none; }
  .notif-panel{ left:8px; right:8px; width:auto; max-width:none; }
  .notif-panel::before{ display:none; }
}
@media (prefers-reduced-motion: reduce){ .notif-bell.has-new svg{ animation:none; } }
/* ---------- STAFF CHAT (staffchat.js) — 💬 in the header + pop-up window ---------- */
.schat-wrap{ position:relative; flex:none; }
.schat-wrap[hidden]{ display:none; }
.schat-btn{
  position:relative; width:36px; height:36px; border-radius:50%; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--panel-line); background:rgba(255,255,255,0.04); color:var(--text-dim);
  transition:border-color .15s ease, color .15s ease, background .15s ease;
}
.schat-btn svg{ width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linejoin:round; stroke-linecap:round; }
.schat-btn:hover, .schat-btn[aria-expanded="true"]{ border-color:var(--blue); color:var(--blue); background:rgba(63,160,255,0.1); }
/* new messages: the button blinks */
.schat-btn.blink{ color:#fff; border-color:var(--blue); animation:schatBlink 1.6s ease-in-out infinite; }
@keyframes schatBlink{
  0%,100%{ background:rgba(63,160,255,0.12); box-shadow:0 0 0 0 rgba(63,160,255,0.55); }
  50%{ background:rgba(63,160,255,0.45); box-shadow:0 0 0 6px rgba(63,160,255,0); }
}
@media (prefers-reduced-motion: reduce){ .schat-btn.blink{ animation:none; background:rgba(63,160,255,0.35); } }
.schat-badge{
  position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px; border-radius:99px;
  background:var(--blue); color:#06101f; font:800 0.66rem/18px 'Space Grotesk', sans-serif; text-align:center;
  box-shadow:0 0 0 2px var(--void);
}
.schat-badge[hidden]{ display:none; }

.schat-panel{
  position:fixed; z-index:360; right:16px; top:calc(var(--nav-h, 64px) + 8px);
  width:390px; max-width:calc(100vw - 16px); height:min(580px, calc(100vh - var(--nav-h, 64px) - 24px));
  display:flex; flex-direction:column; overflow:hidden;
  border-radius:16px; border:1px solid rgba(63,160,255,0.35); background:#100c20;
  box-shadow:0 24px 60px rgba(0,0,0,0.65), 0 0 40px rgba(63,160,255,0.15);
  font-family:'Space Grotesk', sans-serif; text-align:left;
}
.schat-panel[hidden]{ display:none; }
.schat-head{
  display:flex; align-items:center; gap:8px; padding:12px 12px 12px 16px; flex:none;
  border-bottom:1px solid var(--panel-line);
  background:linear-gradient(120deg, rgba(63,160,255,0.16), rgba(139,60,224,0.14));
}
.schat-title{ flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
.schat-title b{ font-family:'Luckiest Guy', cursive; font-weight:400; font-size:1.1rem; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.schat-title small{ font-size:0.72rem; color:var(--text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.schat-back, .schat-gear, .schat-close{
  flex:none; width:34px; height:34px; border-radius:50%; cursor:pointer; line-height:1;
  border:1px solid transparent; background:none; color:var(--text-dim); font-size:1.2rem;
}
.schat-close{ font-size:1.5rem; }
.schat-back:hover, .schat-gear:hover, .schat-close:hover{ background:rgba(255,255,255,0.07); color:var(--text); border-color:var(--panel-line); }
.schat-back[hidden], .schat-gear[hidden]{ display:none; }
.schat-body{ flex:1; min-height:0; overflow-y:auto; padding:10px; overscroll-behavior:contain; }
.schat-empty{ margin:0; padding:36px 16px; text-align:center; color:var(--text-dim); font-size:0.9rem; }
.schat-new{ display:flex; margin:10px auto 4px; }

.schat-rooms{ display:flex; flex-direction:column; gap:4px; }
.schat-room{
  display:flex; align-items:center; gap:12px; width:100%; padding:10px 12px; border-radius:12px;
  border:1px solid transparent; background:none; color:var(--text); cursor:pointer; text-align:left; font:inherit;
}
.schat-room:hover{ background:rgba(255,255,255,0.05); border-color:var(--panel-line); }
.schat-room.has-new{ background:rgba(63,160,255,0.08); }
.schat-room-icon{
  flex:none; width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-size:1.3rem; background:rgba(255,255,255,0.06);
}
.schat-room-text{ flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.3; }
.schat-room-text b{ font-size:0.95rem; }
.schat-room-text small{ font-size:0.78rem; color:var(--text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.schat-room.has-new .schat-room-text small{ color:var(--text); }
.schat-room-badge{
  flex:none; min-width:22px; height:22px; padding:0 7px; border-radius:99px;
  background:var(--blue); color:#06101f; font-weight:800; font-size:0.74rem; line-height:22px; text-align:center;
}

.schat-msgs{ display:flex; flex-direction:column; gap:10px; }
.schat-msg{ display:flex; gap:8px; align-items:flex-end; max-width:88%; }
.schat-msg.grouped{ margin-top:-6px; }
.schat-msg.mine{ align-self:flex-end; flex-direction:row-reverse; }
.schat-pic, .schat-pic-space{ flex:none; width:28px; height:28px; border-radius:50%; object-fit:cover; }
.schat-pic.letter{
  display:flex; align-items:center; justify-content:center; color:#fff; font-family:'Luckiest Guy', cursive; font-size:0.8rem;
  background:linear-gradient(135deg, var(--pink), var(--purple) 55%, var(--blue));
}
.schat-msg.mine .schat-pic-space{ display:none; }
.schat-msg-main{ min-width:0; display:flex; flex-direction:column; }
.schat-msg.mine .schat-msg-main{ align-items:flex-end; }
.schat-msg-meta{ display:flex; gap:8px; align-items:baseline; margin:0 4px 3px; font-size:0.72rem; color:var(--text-dim); }
.schat-msg-meta b{ color:var(--gold); font-size:0.78rem; }
.schat-bubble{
  position:relative; padding:8px 12px; border-radius:4px 14px 14px 14px; background:rgba(255,255,255,0.06);
  color:var(--text); font-size:0.88rem; line-height:1.45; white-space:pre-wrap; word-break:break-word;
}
.schat-msg.mine .schat-bubble{ border-radius:14px 4px 14px 14px; background:linear-gradient(120deg, rgba(63,160,255,0.35), rgba(139,60,224,0.35)); }
.schat-del{
  position:absolute; top:-8px; right:-8px; width:20px; height:20px; border-radius:50%; cursor:pointer;
  border:1px solid var(--panel-line); background:#100c20; color:var(--text-dim); font-size:0.85rem; line-height:1; padding:0;
  opacity:0; transition:opacity .15s ease;
}
.schat-bubble:hover .schat-del, .schat-del:focus-visible{ opacity:1; }
.schat-del:hover{ color:#ff8a8a; border-color:#ff8a8a; }
@media (hover:none){ .schat-del{ opacity:0.7; } }

.schat-form{ display:flex; gap:8px; align-items:center; padding:10px; border-top:1px solid var(--panel-line); flex:none; }
.schat-form[hidden]{ display:none; }
.schat-form input{
  flex:1; min-width:0; height:40px; padding:0 14px; border-radius:99px;
  border:1px solid var(--panel-line); background:rgba(255,255,255,0.04); color:var(--text);
  font-family:'Space Grotesk', sans-serif; font-size:0.88rem;
}
.schat-form input:focus{ outline:none; border-color:var(--blue); }
.schat-form .rg-emoji-btn{ width:40px; height:40px; min-height:40px; }

.schat-editor{ display:flex; flex-direction:column; gap:14px; padding:6px; }
.schat-editor > label{ display:flex; flex-direction:column; gap:8px; font-weight:700; font-size:0.82rem; color:#c9b8ff; }
.schat-editor fieldset{ border:none; margin:0; padding:0; }
.schat-editor legend{ font-weight:700; font-size:0.82rem; color:#c9b8ff; margin-bottom:8px; padding:0; }
.schat-editor fieldset small{ display:block; margin-top:8px; font-size:0.74rem; color:var(--text-dim); }
.schat-icons, .schat-roles{ display:flex; flex-wrap:wrap; gap:6px; }
.schat-icons input, .schat-roles input{ position:absolute; opacity:0; pointer-events:none; }
.schat-icons span{
  display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:12px; cursor:pointer;
  font-size:1.2rem; border:1px solid var(--panel-line); background:rgba(255,255,255,0.04);
}
.schat-roles span{
  display:inline-flex; align-items:center; height:34px; padding:0 14px; border-radius:99px; cursor:pointer;
  border:1px solid var(--panel-line); background:rgba(255,255,255,0.04); color:var(--text-dim); font-weight:600; font-size:0.84rem;
}
.schat-icons input:checked + span, .schat-roles input:checked + span{ border-color:var(--blue); background:rgba(63,160,255,0.18); color:var(--text); }
.schat-roles input:checked + span::before{ content:"✓"; margin-right:6px; color:var(--blue); }
.schat-icons input:focus-visible + span, .schat-roles input:focus-visible + span{ outline:2px solid var(--pink); outline-offset:2px; }
.schat-editor-actions{ display:flex; flex-wrap:wrap; gap:8px; }
.schat-editor-actions [data-delete]{ margin-left:auto; }

/* phones: the chat fills the screen */
@media (max-width:640px){
  .schat-panel{ inset:0; width:auto; height:auto; max-width:none; border-radius:0; border:none;
    padding-top:env(safe-area-inset-top, 0px); padding-bottom:env(safe-area-inset-bottom, 0px); z-index:390; }
  body.schat-open{ overflow:hidden; }
}/* + button under the list, its menu, private chats, people picker */
.schat-section{ margin:12px 6px 6px; font-size:0.7rem; font-weight:800; letter-spacing:0.06em; text-transform:uppercase; color:var(--text-dim); }
.schat-section:first-child{ margin-top:4px; }
.schat-room-icon.is-person{ background:none; }
.schat-room-icon.is-person .schat-pic{ width:42px; height:42px; font-size:1.05rem; }
.schat-plus-wrap{ position:relative; display:flex; flex-direction:column; align-items:center; gap:8px; margin:14px 0 6px; }
.schat-plus{
  width:46px; height:46px; border-radius:50%; border:none; cursor:pointer;
  background:linear-gradient(120deg, var(--blue), var(--purple)); color:#fff; font-size:1.7rem; line-height:1;
  box-shadow:0 8px 22px rgba(63,160,255,0.3); transition:transform .2s ease;
}
.schat-plus:hover{ transform:scale(1.06); }
.schat-plus.open{ transform:rotate(45deg); }
.schat-plus-menu{
  display:flex; flex-direction:column; gap:2px; width:100%; max-width:280px; padding:6px;
  border-radius:12px; border:1px solid var(--panel-line); background:#151030;
}
.schat-plus-menu[hidden]{ display:none; }
.schat-plus-menu button{
  display:flex; align-items:center; gap:10px; padding:10px 12px; border:none; border-radius:8px; cursor:pointer;
  background:none; color:var(--text); font:600 0.88rem 'Space Grotesk', sans-serif; text-align:left;
}
.schat-plus-menu button:hover, .schat-plus-menu button:focus-visible{ background:rgba(63,160,255,0.14); color:var(--blue); }
.schat-search{ margin:2px 0 10px; }
.schat-add{ flex:none; font-size:0.78rem; font-weight:700; color:var(--blue); }
.schat-member-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.schat-member-chips:empty{ display:none; }
.schat-chip{
  display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 6px 0 4px; border-radius:99px;
  background:rgba(63,160,255,0.14); border:1px solid rgba(63,160,255,0.4); color:var(--text); font-size:0.82rem; font-weight:600;
}
.schat-chip .schat-pic{ width:24px; height:24px; font-size:0.7rem; }
.schat-chip button{ width:22px; height:22px; border-radius:50%; border:none; background:none; color:var(--text-dim); cursor:pointer; font-size:1rem; line-height:1; padding:0; }
.schat-chip button:hover{ color:#ff8a8a; background:rgba(255,80,80,0.14); }
.schat-member-results{ display:flex; flex-direction:column; gap:2px; margin-top:6px; }/* staff chat settings (⚙ next to the title): notification switches */
.schat-settings{
  flex:none; width:34px; height:34px; border-radius:50%; cursor:pointer; line-height:1;
  border:1px solid transparent; background:none; color:var(--text-dim); font-size:1.15rem;
}
.schat-settings:hover{ background:rgba(255,255,255,0.07); color:var(--text); border-color:var(--panel-line); }
.schat-settings[hidden]{ display:none; }
.schat-settings-box{ display:flex; flex-direction:column; gap:8px; padding:4px; }
.schat-settings-box > .rg-pill{ align-self:flex-start; }
.schat-setting{
  display:flex; align-items:center; gap:12px; justify-content:space-between;
  padding:12px 14px; border-radius:12px; background:rgba(255,255,255,0.04); border:1px solid var(--panel-line);
}
.schat-setting.small{ padding:8px 12px; }
.schat-setting > div{ min-width:0; display:flex; flex-direction:column; gap:3px; }
.schat-setting b{ font-size:0.9rem; color:var(--text); }
.schat-setting small{ font-size:0.76rem; color:var(--text-dim); line-height:1.4; }
.schat-switch{
  flex:none; position:relative; width:46px; height:26px; border-radius:99px; cursor:pointer;
  border:1px solid var(--panel-line); background:rgba(255,255,255,0.1); padding:0; transition:background .2s ease, border-color .2s ease;
}
.schat-switch span{
  position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,0.4); transition:transform .2s ease;
}
.schat-switch.on{ background:linear-gradient(120deg, var(--blue), var(--purple)); border-color:transparent; }
.schat-switch.on span{ transform:translateX(20px); }
.schat-switch:disabled{ opacity:0.6; cursor:default; }
.schat-note{ margin:0; padding:10px 12px; border-radius:10px; font-size:0.8rem; line-height:1.5; color:var(--text);
  background:rgba(255,190,66,0.1); border:1px solid rgba(255,190,66,0.35); }
/* ---------- EVENT CARD FRAMES (frames.js) — neon frame on top of an event card ---------- */
/* the frame wraps AROUND the card (sticks out a little), so its crowns / stars sit on the
   edge instead of over the text */
.card.has-frame{ position:relative; overflow:visible; border-color:transparent; margin:7% 7.5%; }
.card.has-frame .card-art{ border-radius:6px 6px 0 0; }
/* the pictures' main frame line sits ~8% in from their edge: line it up with the card's edge */
.rg-frame{
  position:absolute; top:-8%; left:-9%; width:118%; height:116%; max-width:none; max-height:none;
  object-fit:fill; pointer-events:none; z-index:3;
}
.card.has-frame .card-date{ z-index:4; }
.card.has-frame .card-body{ position:relative; z-index:4; padding:16px 20px 22px; }
.card.has-frame:hover{ transform:translateY(-3px); }

/* chooser in Control panel -> Event management */
.rg-frame-picker{ display:grid; grid-template-columns:200px minmax(0,1fr); gap:20px; align-items:start; }
.rgfp-card{
  position:relative; width:200px; border-radius:6px; overflow:hidden;
  background:linear-gradient(160deg, var(--panel), #0b0818); border:1px solid var(--panel-line);
}
.rgfp-card.has-frame{ border-color:transparent; overflow:visible; margin:16px 18px; }
.rgfp-card .rg-frame{ top:-8%; left:-9%; width:118%; height:116%; }
.rgfp-art{
  aspect-ratio:4/3; background-size:cover; background-position:center;
  background-color:#100c22;
  background-image:radial-gradient(circle at 30% 30%, var(--pink) 0%, transparent 55%), radial-gradient(circle at 75% 70%, var(--purple) 0%, transparent 55%);
}
.rgfp-card.has-frame .rgfp-art{ border-radius:6px 6px 0 0; }
.rgfp-body{ display:flex; flex-direction:column; gap:6px; padding:10px 12px 14px; font-size:0.8rem; }

.rgfp-body b{ color:var(--text); }
.rgfp-body span{ align-self:flex-start; color:var(--gold); border:1px solid rgba(255,190,66,0.4); background:rgba(255,190,66,0.12); padding:3px 7px; border-radius:3px; font-size:0.7rem; font-weight:700; }
.rgfp-label{ font-size:0.78rem; font-weight:700; color:var(--text-dim); margin:0 0 8px; }
.rgfp-label + .rgfp-frames{ margin-bottom:16px; }
.rgfp-frames{ display:grid; grid-template-columns:repeat(auto-fill, minmax(62px, 1fr)); gap:8px; }
.rgfp-frame{
  aspect-ratio:1; border-radius:10px; cursor:pointer; padding:5px;
  border:1px solid var(--panel-line); background:#0b0818; color:var(--text-dim);
  font:700 0.74rem 'Space Grotesk', sans-serif;
  transition:border-color .15s ease, transform .15s ease, background .15s ease;
}
.rgfp-frame img{ width:100%; height:100%; object-fit:contain; display:block; filter:brightness(1.35) saturate(1.1); }
.rgfp-frame:hover{ border-color:rgba(255,62,200,0.6); transform:translateY(-1px); }
.rgfp-frame.on{ border-color:var(--gold); background:rgba(255,190,66,0.1); box-shadow:0 0 0 2px rgba(255,190,66,0.35); color:var(--gold); }
.rgfp-colors{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.rgfp-colors.disabled{ opacity:0.4; pointer-events:none; }
.rgfp-color{
  width:30px; height:30px; border-radius:50%; cursor:pointer; padding:0;
  border:2px solid rgba(255,255,255,0.18); box-shadow:inset 0 0 0 2px rgba(0,0,0,0.35);
}
.rgfp-color.original{ background:linear-gradient(135deg, #b46bff, #7a2cff); }
.rgfp-color.on{ border-color:#fff; transform:scale(1.12); }
.rgfp-custom{
  display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 10px 0 4px; border-radius:99px; cursor:pointer;
  border:1px solid var(--panel-line); font-size:0.78rem; font-weight:600; color:var(--text-dim);
}
.rgfp-custom input{ width:24px; height:24px; padding:0; border:none; border-radius:50%; background:none; cursor:pointer; }
.rgfp-custom input::-webkit-color-swatch-wrapper{ padding:0; }
.rgfp-custom input::-webkit-color-swatch{ border:none; border-radius:50%; }
.rgfp-custom.on{ border-color:#fff; color:var(--text); }
@media (max-width:640px){
  .rg-frame-picker{ grid-template-columns:1fr; }
  .rgfp-preview{ display:flex; flex-direction:column; align-items:center; }
  .rgfp-frames{ grid-template-columns:repeat(5, 1fr); }
}/* frame chooser: category chips (the chosen frame's category gets a dot) */
.rgfp-cats{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.rgfp-cat{
  display:inline-flex; align-items:center; gap:6px; height:34px; padding:0 12px; border-radius:99px; cursor:pointer;
  border:1px solid var(--panel-line); background:rgba(255,255,255,0.04); color:var(--text-dim);
  font:700 0.8rem 'Space Grotesk', sans-serif; transition:border-color .15s ease, color .15s ease, background .15s ease;
}
.rgfp-cat small{ font-size:0.68rem; opacity:0.7; }
.rgfp-cat:hover{ border-color:rgba(255,62,200,0.6); color:var(--text); }
.rgfp-cat.on{ background:linear-gradient(120deg, var(--pink), var(--purple)); border-color:transparent; color:#fff; }
.rgfp-cat.has-pick:not(.on)::after{ content:""; width:7px; height:7px; border-radius:50%; background:var(--gold); }
.rgfp-cat.none.on{ background:rgba(255,255,255,0.12); border-color:var(--text-dim); }
.rgfp-current{ margin-top:10px; text-align:center; font-size:0.78rem; color:var(--text-dim); font-weight:600; }
.rgfp-frames{ max-height:260px; overflow-y:auto; padding:2px; }

/* =====================================================================
   NOW PLAYING + LIVE STREAM — the DJ's round picture with label / name / time,
   and the 16:9 stream window (nowplaying.js; event.html + live.html)
   ===================================================================== */
/* the DJ's round picture, then label / name / time beside it */
.now-playing{ margin-bottom:22px; display:flex; align-items:center; gap:20px; }
.now-playing[hidden]{ display:none; }
.np-text{ min-width:0; }
.np-pic{ flex:none; }
.np-pic img, .np-pic .dj-card-initial{
  width:104px; height:104px;
  border-radius:50%;
  object-fit:cover;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--pink), var(--purple) 55%, var(--blue));
  border:3px solid var(--gold);
  box-shadow:0 0 0 4px rgba(255,190,66,0.15), 0 10px 30px rgba(0,0,0,0.5);
  font-family:'Luckiest Guy', cursive; font-size:2.8rem; color:#fff;
}
.now-playing.is-live .np-pic img, .now-playing.is-live .np-pic .dj-card-initial{
  border-color:var(--pink);
  box-shadow:0 0 0 4px rgba(255,62,200,0.2), 0 0 30px rgba(255,62,200,0.45);
}
@media (max-width:640px){
  .now-playing{ gap:14px; }
  .np-pic img, .np-pic .dj-card-initial{ width:76px; height:76px; font-size:2rem; }
}
.np-label{
  display:inline-flex; align-items:center; gap:8px;
  font-size:0.78rem; font-weight:800; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--gold);
}
.now-playing.is-live .np-label{ color:var(--pink); }
.np-dot{ width:10px; height:10px; border-radius:50%; background:currentColor; }
.now-playing.is-live .np-dot{ box-shadow:0 0 10px var(--pink); animation:np-pulse 1.4s ease-in-out infinite; }
@keyframes np-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:0.35; } }
@media (prefers-reduced-motion: reduce){ .now-playing.is-live .np-dot{ animation:none; } }
.np-name{
  font-family:'Luckiest Guy', cursive;
  font-size:clamp(2.2rem, 5vw, 3.6rem);
  line-height:1;
  margin:6px 0 8px;
  background:linear-gradient(180deg, #ffd9f6 0%, var(--pink) 45%, var(--purple) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 0 16px rgba(255,62,200,0.35));
  word-break:break-word;
}
.np-meta{ font-size:0.9rem; color:var(--text-dim); line-height:1.5; }
.np-meta strong{ color:var(--text); }

.event-stream-frame{
  position:relative;
  aspect-ratio:16/9;
  border-radius:12px;
  overflow:hidden;
  background:#000;
  border:1px solid var(--panel-line);
  box-shadow:0 18px 50px rgba(0,0,0,0.55), 0 0 40px rgba(139,60,224,0.3);
}
.event-stream-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.event-stream-caption{ margin-top:10px; font-size:0.82rem; color:var(--text-dim); }
.event-stream-caption strong{ color:var(--text); }

/* =====================================================================
   ROUND BUTTONS — the yellow save buttons and the small outline buttons next to them
   are pills on every page (each page's own CSS still gives them their colours)
   ===================================================================== */
.admin-save{ border-radius:99px; padding:12px 26px; }
.row-remove{ border-radius:99px; padding:6px 14px; }

/* =====================================================================
 *  PICTURE UPLOAD BUTTON — next to every picture-link box (uploads.js)
 * ===================================================================== */
.rg-up-row{ display:flex; align-items:stretch; gap:8px; min-width:0; }
.rg-up-row > input, .rg-up-row > .rg-up-field{ flex:1; min-width:0; }
/* an uploaded picture: the box keeps its link, but shows a chip instead of the storage address */
.rg-up-field{ position:relative; display:block; min-width:0; }
.rg-up-field > input{ width:100%; }
.rg-up-field.masked > input{ visibility:hidden; }
.rg-up-chip{
  position:absolute; inset:0; display:flex; align-items:center; gap:8px; padding:0 4px 0 6px; min-width:0;
  border:1px solid rgba(61,220,132,0.35); border-radius:10px; background:rgba(61,220,132,0.07);
  color:var(--text); font:600 0.84rem 'Space Grotesk', sans-serif; text-align:left;
}
.rg-up-chip[hidden]{ display:none; }
.rg-up-chip img{ width:28px; height:28px; flex:none; border-radius:6px; object-fit:cover; }
.rg-up-chip-t{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rg-up-chip-t::before{ content:"\2713  "; color:#3ddc84; }
.rg-up-chip-x{
  flex:none; width:30px; height:30px; border-radius:50%; cursor:pointer; line-height:1; font-size:1.1rem;
  border:none; background:none; color:var(--text-dim);
}
.rg-up-chip-x:hover{ color:#ff8a8a; background:rgba(255,80,80,0.1); }
.rg-up-btn{
  flex:none; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; padding:0 14px;
  border-radius:99px; cursor:pointer; white-space:nowrap;
  border:1px solid rgba(255,62,200,0.5); background:rgba(255,62,200,0.1); color:#fff;
  font:700 0.8rem 'Space Grotesk', sans-serif; transition:background .15s ease, border-color .15s ease;
}
.rg-up-btn svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.rg-up-btn:hover:not(:disabled){ background:rgba(255,62,200,0.2); border-color:var(--pink); }
.rg-up-btn:disabled{ opacity:0.45; cursor:default; }
.rg-up-btn.compact{ padding:0; width:40px; }
.rg-up-btn.compact span{ display:none; }
.rg-up-row.busy .rg-up-btn{ animation:rg-up-pulse 1s ease-in-out infinite; }
@keyframes rg-up-pulse{ 50%{ background:rgba(255,62,200,0.28); } }
.rg-up-status{ margin:5px 2px 0; font-size:0.76rem; font-weight:600; color:rgba(241,236,255,0.68); }
.rg-up-status:empty{ display:none; }
.rg-up-status.ok{ color:#7dffb0; }
.rg-up-status.bad{ color:#ff8a8a; }
@media (max-width:420px){ .rg-up-btn:not(.compact){ padding:0 11px; } }
