:root {
  --bg: #080a12;
  --panel: rgba(28, 36, 54, 0.65);
  --panel-solid: #151b2a;
  --panel2: rgba(36, 46, 68, 0.55);
  --panel2-solid: #1d2538;
  --line: rgba(255, 255, 255, 0.10);
  --line-bright: rgba(255, 255, 255, 0.20);
  --fg: #f8fafc;
  --dim: #94a3b8;
  --dim-dark: #64748b;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  /* the same accent as "r, g, b" for rgba(var(--accent-rgb), 0.5), and the tints made from it. SPKR HQ can send a
     colour theme; theme.js then sets all of these from its three colours. Without one, these are the look. */
  --accent-rgb: 139, 92, 246;
  --accent-cyan-rgb: 6, 182, 212;
  --accent-mid-rgb: 99, 102, 241;
  --accent-light-rgb: 167, 139, 250;
  --accent-vivid-rgb: 168, 85, 247;
  --accent-soft: #c4b5fd;
  --accent-cyan-soft: #38bdf8;
  --accent-ink: #ffffff;
  --danger: #ef4444;
  --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --hover: rgba(255, 255, 255, 0.07);
  --hover-card: rgba(255, 255, 255, 0.12);
}
* { box-sizing: border-box; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), 0.4); }

html, body { height: 100%; margin: 0; }
body { 
  background: radial-gradient(circle at 12% 28%, rgba(var(--accent-rgb), 0.20) 0%, transparent 45%),
              radial-gradient(circle at 88% 22%, rgba(var(--accent-cyan-rgb), 0.14) 0%, transparent 40%),
              radial-gradient(circle at 50% 90%, rgba(var(--accent-mid-rgb), 0.14) 0%, transparent 50%),
              #080a12; 
  color: var(--fg); 
  font: 14px/1.5 "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif; 
  overflow: hidden; 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale; 
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.logo { font-weight: 800; letter-spacing: .25em; font-size: 24px; color: var(--accent); margin-bottom: 18px; text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5); }
.state { font-size: 20px; font-weight: 600; }
.state.bad { color: var(--danger); }

/* before the rooms show: connecting, signed out, not inside the app */
.gate { height: 100%; display: grid; place-content: center; text-align: center; padding: 32px; max-width: 560px; margin: 0 auto; }

/* the backend does not answer (2026-10-12): the same maintenance screen as hq.sp3akr.com's (server/strm/web/maintenance.html) */
.maint-scene { width: 170px; height: 170px; margin: 0 auto 4px; }
.maint-scene svg { width: 100%; height: 100%; overflow: visible; }
.maint-scene .wave { fill: none; stroke: url(#mg); stroke-width: 4; stroke-linecap: round; opacity: 0; transform-origin: 122px 34px; animation: m-wave 2.4s ease-out infinite; }
.maint-scene .w2 { animation-delay: .4s; } .maint-scene .w3 { animation-delay: .8s; }
@keyframes m-wave { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: scale(1.25); } }
.maint-scene .bob { animation: m-bob 3.2s ease-in-out infinite; transform-origin: 105px 170px; }
@keyframes m-bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
.maint-scene .eye { transform-box: fill-box; transform-origin: center; animation: m-blink 4.6s infinite; }
@keyframes m-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.maint-scene .bar { transform-box: fill-box; transform-origin: bottom; animation: m-eq 1.1s ease-in-out infinite; }
.maint-scene .b2 { animation-delay: .15s; } .maint-scene .b3 { animation-delay: .3s; } .maint-scene .b4 { animation-delay: .45s; }
@keyframes m-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.maint-scene .wrench { transform-origin: 168px 132px; animation: m-turn 1.6s ease-in-out infinite; }
@keyframes m-turn { 0%, 100% { transform: rotate(-18deg); } 50% { transform: rotate(22deg); } }
.maint-lead { color: var(--muted); max-width: 420px; margin: 6px auto 0; }
.maint-doing { height: 22px; margin: 10px 0 12px; color: #67e8f9; font-weight: 600; transition: opacity .35s; }
.maint-doing.fade { opacity: 0; }
.maint-retry { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 14px; }
.maint-ring { position: relative; width: 56px; height: 56px; flex: none; }
.maint-ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.maint-ring circle { fill: none; stroke-width: 5; }
.maint-ring .track { stroke: rgba(255, 255, 255, .08); }
.maint-ring .run { stroke: url(#mrg); stroke-linecap: round; stroke-dasharray: 144.5; transition: stroke-dashoffset 1s linear; }
.maint-ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.maint-ring.busy .run { stroke-dasharray: 36 108.5; animation: m-spin .9s linear infinite; transition: none; transform-origin: 28px 28px; }
@keyframes m-spin { to { transform: rotate(360deg); } }
.maint-status { text-align: left; }
.maint-status .small { color: var(--muted); font-size: 13px; }
.maint-btn { font: inherit; font-weight: 700; color: #0b1020; cursor: pointer; border: 0; border-radius: 999px; padding: 10px 22px; background: linear-gradient(90deg, #67e8f9, #a78bfa); }
.maint-btn:disabled { filter: grayscale(.6) brightness(.8); cursor: default; }
.maint-safe { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .maint-scene *, .maint-ring .run, .maint-doing { animation: none !important; transition: none !important; } .maint-scene .wave { opacity: .6; } }

/* the invite landing page */
body.center { display: grid; place-items: center; overflow: auto; }
.card { 
  max-width: 520px; 
  padding: 36px; 
  text-align: center; 
  background: var(--panel); 
  border: 1px solid var(--line); 
  border-radius: 18px; 
  backdrop-filter: blur(24px); 
  -webkit-backdrop-filter: blur(24px); 
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); 
}
.card h1 { font-size: 22px; margin: 0 0 10px; font-weight: 700; color: #fff; }
.code { 
  font: 700 24px/1.2 Consolas, monospace; 
  letter-spacing: .12em; 
  color: var(--accent-cyan); 
  background: rgba(8, 11, 17, 0.8); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 12px; 
  padding: 14px; 
  margin: 8px 0 18px; 
  user-select: all; 
}

.btn { 
  background: rgba(255, 255, 255, 0.05); 
  border: 1px solid var(--line); 
  border-radius: 9px; 
  padding: 7px 15px; 
  text-decoration: none; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 6px; 
  color: var(--fg); 
  font-weight: 500; 
  transition: all .15s cubic-bezier(0.4, 0, 0.2, 1); 
  backdrop-filter: blur(8px); 
  -webkit-backdrop-filter: blur(8px); 
}
.btn:hover { 
  background: var(--hover-card); 
  border-color: var(--line-bright); 
  color: #fff; 
  transform: translateY(-1px); 
}
.btn:active { transform: translateY(0); }
.btn.primary { 
  background: var(--accent-gradient); 
  border: 1px solid rgba(255, 255, 255, 0.2); 
  color: #fff; 
  font-weight: 600; 
  box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.35); 
}
.btn.primary:hover { 
  filter: brightness(1.12); 
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.5); 
}
.btn.danger { 
  background: var(--danger-gradient); 
  border: 1px solid rgba(255, 255, 255, 0.15); 
  color: #fff; 
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3); 
}
.btn.danger:hover { 
  filter: brightness(1.12); 
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45); 
}
.btn.small { padding: 4px 11px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }

.shell { 
  height: 100%; 
  display: grid; 
  --rail-w: 58px; 
  grid-template-columns: var(--rail-w) var(--side-w, 242px) minmax(0, 1fr) var(--members-w, 220px); 
  position: relative; 
  gap: 12px; 
  padding: 12px; 
  box-sizing: border-box; 
  background: transparent; 
}

/* servers */
.rail { 
  background: rgba(22, 28, 44, 0.65); 
  backdrop-filter: blur(32px); 
  -webkit-backdrop-filter: blur(32px); 
  border: 1px solid var(--line); 
  border-radius: 20px; 
  padding: 12px 0; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 10px; 
  overflow-y: auto; 
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12); 
}
.rail .spacer { flex: 1; }
.srv { 
  position: relative; 
  width: 46px; 
  height: 46px; 
  border-radius: 14px; 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  background: rgba(255, 255, 255, 0.05); 
  font-size: 19px; 
  font-weight: 700; 
  display: grid; 
  place-items: center; 
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
  color: var(--fg); 
}
.srv:hover { 
  border-radius: 12px; 
  background: rgba(255, 255, 255, 0.10); 
  border-color: rgba(255, 255, 255, 0.20); 
  color: #fff; 
  transform: scale(1.04); 
}
.srv.on { 
  border-radius: 12px; 
  background: var(--accent-gradient); 
  border-color: rgba(255, 255, 255, 0.30); 
  color: #fff; 
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4); 
}
.srv.on::before { 
  content: ""; 
  position: absolute; 
  left: -11px; 
  top: 10px; 
  bottom: 10px; 
  width: 4px; 
  border-radius: 0 4px 4px 0; 
  background: var(--accent-cyan); 
  box-shadow: 0 0 8px var(--accent-cyan); 
}
.srv.unread::after { 
  content: ""; 
  position: absolute; 
  right: -2px; 
  bottom: -2px; 
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  background: var(--accent); 
  border: 3px solid #080b11; 
  box-shadow: 0 0 8px var(--accent); 
}
.srv.tool { 
  background: transparent; 
  border: 1px dashed rgba(255, 255, 255, 0.15); 
  color: var(--dim); 
  font-weight: 400; 
}
.srv.tool:hover { 
  color: var(--accent); 
  border-color: var(--accent); 
  background: rgba(var(--accent-rgb), 0.08); 
}
.srv.letters { font-size: 14px; letter-spacing: .02em; }
/* his Discord servers (from the app's DISCORD tab): Discord's blurple edge */
.srv.dsc-tab { background: rgba(88, 101, 242, 0.22); border-color: rgba(88, 101, 242, 0.55); }
.srv.dsc-tab:hover { background: rgba(88, 101, 242, 0.40); border-color: #5865f2; }
.srv.dsc { border-color: rgba(88, 101, 242, 0.55); }
.srv.dsc:hover { border-color: #5865f2; }

/* rooms */
.side { 
  background: rgba(26, 33, 50, 0.65); 
  backdrop-filter: blur(32px); 
  -webkit-backdrop-filter: blur(32px); 
  border: 1px solid var(--line); 
  border-radius: 18px; 
  display: flex; 
  flex-direction: column; 
  min-height: 0; 
  overflow: hidden; 
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12); 
}
.server-head { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 8px; 
  padding: 16px 14px; 
  border: 0; 
  border-bottom: 1px solid var(--line); 
  background: transparent; 
  font-weight: 700; 
  font-size: 15px; 
  letter-spacing: .02em; 
  text-align: left; 
  transition: background .12s ease; 
}
.server-head:hover { background: var(--hover); }
.server-head span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: var(--dim); }
.channels { flex: 1; overflow-y: auto; padding: 10px 8px; }
.group { 
  margin: 16px 8px 6px; 
  font-size: 11px; 
  font-weight: 700; 
  letter-spacing: .08em; 
  text-transform: uppercase; 
  color: var(--dim-dark); 
}
.ch { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  width: 100%; 
  padding: 8px 12px; 
  border: 1px solid transparent; 
  border-radius: 12px; 
  background: transparent; 
  color: var(--dim); 
  text-align: left; 
  font-weight: 500; 
  transition: all .15s ease; 
  position: relative; 
}
.ch:hover { background: var(--hover); color: var(--fg); border-color: rgba(255, 255, 255, 0.08); }
.ch.on { 
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.42) 0%, rgba(var(--accent-mid-rgb), 0.28) 50%, rgba(var(--accent-cyan-rgb), 0.20) 100%); 
  border: 1px solid rgba(var(--accent-light-rgb), 0.65); 
  border-radius: 12px; 
  color: #ffffff; 
  font-weight: 600; 
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22); 
}
.ch .ico { width: 20px; text-align: center; flex: none; opacity: 0.85; }
.ch .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch.unread { color: var(--accent-soft); font-weight: 700; }
.ch.unread::after { 
  content: ""; 
  width: 7px; 
  height: 7px; 
  border-radius: 50%; 
  background: var(--accent); 
  box-shadow: 0 0 6px var(--accent); 
  flex: none; 
}
.ch .more, .mem .more, .msg .more { visibility: hidden; border: 0; background: transparent; color: var(--dim); padding: 0 4px; border-radius: 5px; }
.ch:hover .more, .mem:hover .more, .msg:hover .more { visibility: visible; }
.more:hover { color: var(--fg); background: var(--line); }
.add-room { 
  margin: 0 8px 10px; 
  padding: 8px; 
  border: 1px dashed rgba(255, 255, 255, 0.12); 
  border-radius: 8px; 
  background: transparent; 
  color: var(--dim); 
  transition: all .15s ease; 
}
.add-room:hover { color: var(--accent); border-color: var(--accent); background: rgba(var(--accent-rgb), 0.06); }
.me { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  padding: 11px 12px; 
  border-top: 1px solid var(--line); 
  background: rgba(10, 13, 20, 0.65); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px); 
}
.me-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
/* your picture and name: a click (not only a right-click) opens your menu */
.me-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 6px; margin: -4px -6px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.me-card:hover, .me-card:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.accounts { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.accounts .acct { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.03); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.accounts .acct:hover { background: rgba(255, 255, 255, 0.07); }
.accounts .acct.current { cursor: default; opacity: 0.7; }
.accounts .acct .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { 
  width: 32px; 
  height: 32px; 
  border-radius: 50%; 
  background: var(--panel2); 
  border: 1px solid var(--line); 
  display: grid; 
  place-items: center; 
  font-size: 14px; 
  font-weight: 700; 
  flex: none; 
  position: relative; 
}
.avatar.online::after, .avatar.offline::after { 
  content: ""; 
  position: absolute; 
  right: -2px; 
  bottom: -2px; 
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  border: 2px solid #0a0d14; 
}
.avatar.online::after { background: #10b981; box-shadow: 0 0 6px #10b981; }
.avatar.busy::after { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }            /* Busy: amber instead of green */
.avatar.offline::after { background: var(--dim-dark); }

/* voice: people under a room, the bar while connected, the room view */
.vusers { 
  margin: 3px 0 6px 18px; 
  padding-left: 10px; 
  border-left: 1px solid rgba(255, 255, 255, 0.12); 
  display: flex; 
  flex-direction: column; 
  gap: 3px; 
}
.vuser { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  padding: 4px 8px; 
  border-radius: 8px; 
  font-size: 13px; 
  color: var(--dim); 
  transition: all .15s ease; 
}
.vuser:hover { background: var(--hover-card); color: #fff; }
.vuser .avatar { width: 22px; height: 22px; font-size: 11px; }
.vuser .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.vuser .flags { font-size: 11px; opacity: .8; }
.speaking { box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(var(--accent-rgb), 0.5); }
.voice-bar { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  padding: 9px 12px; 
  border-top: 1px solid var(--line); 
  background: rgba(16, 22, 34, 0.85); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px); 
}
.vb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.vb-text b { color: var(--accent); font-size: 12.5px; font-weight: 700; }
.vb-text b.warn { color: #f5a524; }
.vb-text span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-btn { 
  width: 32px; 
  height: 32px; 
  border-radius: 8px; 
  border: 1px solid rgba(255, 255, 255, 0.06); 
  background: rgba(255, 255, 255, 0.04); 
  font-size: 15px; 
  position: relative; 
  transition: all .12s ease; 
}
.vb-btn:hover { background: var(--hover-card); border-color: var(--line-bright); }
.vb-btn.off { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); }
.vb-btn.off::after { content: ""; position: absolute; left: 5px; right: 5px; top: 14px; height: 2px; background: var(--danger); transform: rotate(-45deg); }
.vb-btn.leave { color: var(--danger); font-weight: 700; }
.voice-room { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 22px; overflow: auto; min-height: 0; }
.voice-room.centered { align-items: center; justify-content: center; gap: 24px; }
.ch.live { margin-bottom: 2px; }
.ch.live.has { color: var(--fg); }
.count-badge { 
  background: var(--danger-gradient); 
  color: #fff; 
  font-size: 11px; 
  font-weight: 700; 
  border-radius: 9px; 
  padding: 1px 7px; 
  flex: none; 
  box-shadow: 0 1px 6px rgba(239, 68, 68, 0.35); 
}
.live-chip { 
  background: linear-gradient(135deg, rgb(var(--accent-vivid-rgb)) 0%, #ec4899 100%); 
  color: #fff; 
  font-size: 10px; 
  font-weight: 800; 
  letter-spacing: .06em; 
  padding: 2px 8px; 
  border-radius: 9999px; 
  cursor: pointer; 
  flex: none; 
  margin-left: auto; 
  box-shadow: 0 2px 10px rgba(var(--accent-vivid-rgb), 0.5); 
  transition: all .15s ease; 
}
.live-chip:hover { filter: brightness(1.2); transform: scale(1.05); }
.vr-title { font-size: 18px; font-weight: 700; color: #fff; }
.voice-room.with-stage { align-items: stretch; justify-content: flex-start; gap: 12px; position: relative; padding: 12px; }
.voice-room.with-stage .vr-title { display: none; }
.vr-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.voice-room.with-stage .tiles { max-width: none; justify-content: center; gap: 8px; }
.voice-room.with-stage .tile { width: auto; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 9999px; background: rgba(22, 28, 44, 0.75); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.voice-room.with-stage .tile .avatar { width: 26px; height: 26px; font-size: 12px; margin: 0; }
.voice-room.with-stage .tile .flags { min-height: 0; }
.voice-room.with-stage .voice-actions { display: flex; align-items: center; justify-content: center; gap: 12px; background: rgba(18, 24, 38, 0.85); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 9999px; padding: 8px 18px; width: fit-content; margin: 0 auto; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(var(--accent-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.voice-room.with-stage .voice-actions .btn { padding: 6px 14px; font-size: 12.5px; border-radius: 9999px; }
.voice-strip { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 11px 14px; 
  border: 1px solid var(--line); 
  border-radius: 12px; 
  background: var(--panel); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px); 
}
.voice-strip .dim { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.live-tile { 
  text-align: left; 
  padding: 0 0 12px; 
  border: 1px solid var(--line); 
  border-radius: 14px; 
  background: var(--panel); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px); 
  overflow: hidden; 
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); 
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); 
}
.live-tile:hover { 
  border-color: rgba(var(--accent-rgb), 0.5); 
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--accent-rgb), 0.2); 
}
.live-art { 
  position: relative; 
  aspect-ratio: 16/9; 
  background: linear-gradient(135deg, #182030, #0a0d14); 
  display: grid; 
  place-items: center; 
  margin-bottom: 10px; 
}
.live-play { font-size: 32px; color: var(--dim); transition: all .15s ease; }
.live-tile:hover .live-play { color: var(--accent-cyan); transform: scale(1.1); }
.live-badge { 
  position: absolute; 
  left: 10px; 
  top: 10px; 
  background: var(--danger-gradient); 
  color: #fff; 
  font-size: 11px; 
  font-weight: 800; 
  letter-spacing: .04em; 
  padding: 2px 8px; 
  border-radius: 6px; 
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4); 
}
.live-co { position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(8px); font-size: 11px; padding: 2px 8px; border-radius: 6px; color: #fff; }
.live-title { font-weight: 700; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.live-tile .small { padding: 0 12px; color: var(--dim); }
.live-lock { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); font-size: 11px; padding: 2px 8px; border-radius: 6px; }
.player.private { display: flex; flex-direction: column; border: 0; background: transparent; gap: 8px; }
.pw-stage { 
  flex: 1; 
  min-height: 320px; 
  background: radial-gradient(circle at center, #0e1320 0%, #05070c 100%); 
  border: 1px solid rgba(255, 255, 255, 0.12); 
  border-radius: 18px; 
  display: flex; 
  flex-direction: column; 
  overflow: hidden; 
  position: relative; 
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(var(--accent-rgb), 0.12); 
}
.pw-big { flex: 1; min-height: 0; display: grid; gap: 8px; grid-template-columns: 1fr; grid-auto-rows: 1fr; padding: 6px; }
.pw-stage[data-count="2"] .pw-big { grid-template-columns: 1fr 1fr; }
.pw-stage[data-count="3"] .pw-big, .pw-stage[data-count="4"] .pw-big { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pw-stage.focus .pw-big { grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; }
.pw-tile { position: relative; min-width: 0; min-height: 0; background: #000; overflow: hidden; cursor: pointer; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.06); }
.pw-tile.own { cursor: default; width: 100%; height: 100%; }
.pw-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; border-radius: 12px; }
.pw-strip { 
  display: flex; 
  gap: 10px; 
  height: 120px; 
  padding: 10px; 
  justify-content: center; 
  background: rgba(5, 7, 12, 0.85); 
  border-top: 1px solid rgba(255, 255, 255, 0.08); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px); 
}
.pw-strip .pw-tile { 
  height: 100%; 
  aspect-ratio: 16/9; 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 10px; 
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); 
}
.pw-strip .pw-tile:hover { 
  border-color: var(--accent); 
  transform: translateY(-2px); 
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.4); 
}
.pw-corner { 
  position: absolute; 
  z-index: 3; 
  top: 14px; 
  right: 14px; 
  width: 22%; 
  min-width: 180px; 
  max-width: 340px; 
  aspect-ratio: 16/9; 
  border: 2px solid var(--accent); 
  border-radius: 14px; 
  overflow: hidden; 
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(var(--accent-rgb), 0.35); 
  background: #000; 
}
/* free layout: every picture sits where you dragged it and may overlap the others */
.pw-stage.free .pw-big { display: block; position: relative; padding: 0; }
.pw-stage.free .pw-tile { position: absolute; cursor: grab; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.75); }
.pw-stage.free .pw-tile.own { width: auto; height: auto; border: 2px solid var(--accent); }
.pw-stage.free .pw-tile.grabbing { cursor: grabbing; border-color: var(--accent); }
.pw-grip { display: none; }
.pw-stage.free .pw-grip { display: block; position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; z-index: 4; cursor: nwse-resize; border-bottom-right-radius: 12px; background: linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.55) 45%); }
.pw-name { position: absolute; z-index: 2; left: 8px; bottom: 6px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(8px); font-size: 12px; padding: 2px 8px; border-radius: 6px; pointer-events: none; color: #fff; }
.pw-one { position: absolute; z-index: 2; right: 6px; top: 6px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(8px); color: #fff; font-size: 13px; padding: 2px 7px; visibility: hidden; }
.pw-tile:hover .pw-one { visibility: visible; }
.pw-note { color: var(--dim); position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
/* the way out of full screen, on the pictures: only in full screen (the bar with the Full screen button stays outside it) */
.pw-exit-full { display: none; }
.pw-stage:fullscreen .pw-exit-full {
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 18px; right: 18px; z-index: 9999;
  width: 44px; height: 44px; border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(8, 11, 17, 0.72); color: #fff;
  font-size: 18px; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.pw-stage:fullscreen .pw-exit-full:hover { background: rgba(239, 68, 68, 0.9); border-color: transparent; }
.pw-stage:fullscreen .pw-corner { top: 74px; }                 /* your own small picture: under the close button */
.pw-bar {
  display: flex; 
  align-items: center; 
  gap: 10px; 
  background: rgba(14, 18, 28, 0.82); 
  backdrop-filter: blur(24px); 
  -webkit-backdrop-filter: blur(24px); 
  border: 1px solid rgba(255, 255, 255, 0.12); 
  border-radius: 9999px; 
  padding: 6px 16px; 
  margin-top: 6px; 
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 16px rgba(var(--accent-rgb), 0.12); 
}
.pw-bar .btn { border-radius: 9999px; }
.pw-bar input[type=range] { width: 84px; flex: none; accent-color: var(--accent); }
.pw-mute { min-width: 38px; font-size: 15px; padding: 3px 8px; border-radius: 9999px; }
/* the Go live menu: what to stream, grouped like Discord's (game, screens, windows, studio) */
.cap-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 10px 0 4px; padding-right: 4px; }
.cap-list.disabled { opacity: .45; pointer-events: none; }
.cap-head { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 8px 2px 2px; }
.cap-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--fg); transition: all .12s ease; }
.cap-opt:hover { background: var(--hover); border-color: var(--line-bright); }
.cap-opt.on { background: rgba(var(--accent-rgb), 0.28); border-color: rgba(var(--accent-light-rgb), 0.75); color: #fff; box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.3); }
.cap-opt.off { opacity: .5; cursor: default; }
/* the Go live window's own settings for a voice-room stream (SPKR HQ 2.5.4-beta.3 and newer): rows of choices, then switches */
.gl-settings { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.gl-settings[hidden] { display: none; }
.gl-row { display: flex; align-items: center; gap: 12px; }
.gl-label { width: 84px; flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.gl-seg { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.gl-opt { padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--fg); font-weight: 600; transition: all .12s ease; }
.gl-opt:hover { background: var(--hover); border-color: var(--line-bright); }
.gl-opt.on { background: rgba(var(--accent-rgb), 0.28); border-color: rgba(var(--accent-light-rgb), 0.75); color: #fff; box-shadow: 0 2px 12px rgba(var(--accent-rgb), 0.3); }
.gl-settings .check { margin: 2px 0; }
.cap-list[hidden] { display: none; }
.cap-ico { width: 22px; text-align: center; flex: none; }
.cap-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the stream starts muted: a clear button on the picture turns the sound on */
.pw-sound { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; padding: 8px 16px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(8, 10, 18, 0.78); color: #fff; font-weight: 600; font-size: 13.5px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5); }
.pw-sound:hover { background: rgba(var(--accent-rgb), 0.55); border-color: rgba(var(--accent-light-rgb), 0.8); }
.pw-grow { flex: 1; }
.player-bar { display: flex; align-items: center; gap: 10px; }
.player-bar .grow { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player { flex: 1; min-height: 320px; width: 100%; border: 1px solid var(--line); border-radius: 18px; background: #000; overflow: hidden; }
.tiles { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; max-width: 760px; }
.tile { 
  width: 150px; 
  padding: 18px 10px 14px; 
  border-radius: 16px; 
  background: rgba(16, 21, 33, 0.72); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px); 
  text-align: center; 
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); 
}
.tile:hover { 
  transform: translateY(-2px); 
  border-color: rgba(var(--accent-rgb), 0.4); 
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(var(--accent-rgb), 0.2); 
}
.tile .avatar { width: 64px; height: 64px; font-size: 28px; margin: 0 auto 10px; }
.tile .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.tile .flags { font-size: 12px; color: var(--dim); min-height: 1.4em; }
.voice-actions { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  justify-content: center; 
  background: rgba(18, 24, 38, 0.85); 
  backdrop-filter: blur(32px); 
  -webkit-backdrop-filter: blur(32px); 
  border: 1px solid rgba(255, 255, 255, 0.14); 
  border-radius: 9999px; 
  padding: 8px 18px; 
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(var(--accent-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15); 
  width: fit-content; 
  margin: 6px auto 0; 
}
.dock-btn { 
  width: 44px; 
  height: 44px; 
  border-radius: 50%; 
  border: 1px solid rgba(255, 255, 255, 0.10); 
  background: rgba(255, 255, 255, 0.05); 
  color: #f1f5f9; 
  display: grid; 
  place-items: center; 
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); 
  padding: 0; 
  position: relative; 
  cursor: pointer; 
}
.dock-btn:hover { 
  background: rgba(255, 255, 255, 0.14); 
  border-color: rgba(255, 255, 255, 0.25); 
  transform: translateY(-2px); 
  color: #fff; 
}
.dock-btn.live-btn { 
  border-radius: 12px; 
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.4), rgba(var(--accent-cyan-rgb), 0.25)); 
  border-color: rgba(var(--accent-rgb), 0.5); 
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.3); 
}
.dock-btn.live-btn:hover { 
  filter: brightness(1.2); 
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5); 
}
.dock-btn.mic-btn.active { 
  background: radial-gradient(circle, rgba(var(--accent-cyan-rgb), 0.35) 0%, rgba(var(--accent-cyan-rgb), 0.15) 100%); 
  border-color: var(--accent-cyan); 
  color: var(--accent-cyan-soft); 
  box-shadow: 0 0 16px rgba(var(--accent-cyan-rgb), 0.45); 
}
.dock-btn.muted { 
  background: rgba(239, 68, 68, 0.2); 
  border-color: rgba(239, 68, 68, 0.45); 
  color: #f87171; 
}
.dock-btn.leave-btn { 
  background: rgba(239, 68, 68, 0.15); 
  border-color: rgba(239, 68, 68, 0.35); 
  color: #f87171; 
}
.dock-btn.leave-btn:hover { 
  background: var(--danger-gradient); 
  border-color: transparent; 
  color: #fff; 
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.5); 
}
.dock-ico { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  pointer-events: none; 
}
.dock-join { border-radius: 9999px; padding: 10px 24px; font-weight: 600; font-size: 14px; }
.voice-hint { color: var(--dim); text-align: center; max-width: 520px; }
.voice-hint.bad { color: #f5a524; }
/* connected to the voice room: the SPKR SOFTWARE name, as on the Android app's start screen (Brand.kt footer) */
.voice-hint.spkr-software { color: #5e6781; font-size: 11px; font-weight: 700; letter-spacing: 0.35em; }
.field { margin: 12px 0; }
.field label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 4px; font-weight: 500; }
.field select { width: 100%; background: rgba(8, 11, 17, 0.8); color: var(--fg); border: 1px solid var(--line); border-radius: 9px; padding: 9px; font: inherit; outline: none; }
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2); }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.meter { height: 10px; border-radius: 6px; background: rgba(8, 11, 17, 0.8); border: 1px solid var(--line); overflow: hidden; position: relative; overflow: visible; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent-gradient); border-radius: 6px; transition: width .05s linear; }
.meter i.shut { background: var(--dim-dark); }
.gate-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; border-radius: 2px; box-shadow: 0 0 4px #fff; }
.field input[type=range] { margin-top: 4px; }
.check .btn { margin-left: auto; }
input[type=range] { width: 100%; accent-color: var(--accent); }

/* chat */
.main { 
  display: flex; 
  flex-direction: column; 
  min-width: 0; 
  min-height: 0; 
  background: rgba(22, 28, 44, 0.58); 
  backdrop-filter: blur(32px); 
  -webkit-backdrop-filter: blur(32px); 
  border: 1px solid var(--line); 
  border-radius: 18px; 
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12); 
  overflow: hidden; 
  position: relative; 
}
.room-head { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  padding: 14px 20px; 
  border-bottom: 1px solid var(--line); 
  background: rgba(10, 13, 20, 0.50); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px); 
  font-weight: 700; 
  font-size: 15px; 
  letter-spacing: .02em; 
}
.golive { 
  background: var(--danger-gradient); 
  border: 1px solid rgba(255, 255, 255, 0.15); 
  color: #fff; 
  font-weight: 700; 
  margin-left: 14px; 
  border-radius: 8px; 
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35); 
  transition: all .15s ease; 
}
.golive:hover { 
  filter: brightness(1.12); 
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5); 
  transform: translateY(-1px); 
}
.link-state { margin-left: auto; font-weight: 400; font-size: 12.5px; color: var(--dim); }
.link-state.bad { color: var(--danger); }
.messages { flex: 1; overflow-y: auto; padding: 14px 20px 8px; outline: none; }
.empty { color: var(--dim); text-align: center; margin-top: 18vh; }
.day { display: flex; align-items: center; gap: 12px; color: var(--dim-dark); font-size: 12px; margin: 16px 0 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { 
  display: grid; 
  grid-template-columns: 38px minmax(0, 1fr) auto; 
  gap: 0 12px; 
  padding: 4px 8px; 
  border-radius: 8px; 
  margin: 2px 0; 
  transition: background .1s ease; 
}
.msg:hover { background: rgba(255, 255, 255, 0.03); }
.msg.first { margin-top: 12px; }
.msg .who { font-weight: 600; color: #fff; }
.msg .at { color: var(--dim-dark); font-size: 12px; margin-left: 8px; font-weight: 400; }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; grid-column: 2; color: #cbd5e1; line-height: 1.5; }
/* a link in a message: a light tint of the theme's second colour and always underlined, so it reads as a link on any theme */
.msg .body a { color: var(--accent-cyan-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.msg .body a:hover { text-decoration-thickness: 2px; }
.msg .avatar { grid-row: span 2; margin-top: 3px; width: 36px; height: 36px; }
.msg .more { grid-column: 3; grid-row: 1; align-self: start; }
.older { display: block; margin: 0 auto 8px; }
.voice-note { flex: 1; display: grid; place-content: center; text-align: center; color: var(--dim); padding: 32px; max-width: 520px; margin: 0 auto; }
.voice-note b { color: var(--fg); font-size: 18px; display: block; margin-bottom: 6px; }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 12px 20px 18px; position: relative; }      /* the emoji panel hangs above it */
.composer textarea { 
  flex: 1; 
  resize: none; 
  max-height: 180px; 
  background: rgba(16, 21, 32, 0.65); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px); 
  color: var(--fg); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 12px; 
  padding: 11px 14px; 
  font: inherit; 
  outline: none; 
  transition: border-color .15s ease, box-shadow .15s ease; 
}
.composer textarea:focus { 
  border-color: var(--accent); 
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2); 
}
.count { color: var(--dim-dark); font-size: 12px; align-self: center; }
.count.bad { color: var(--danger); }

/* people: friends, direct messages, pop-up cards */
.srv.home { background: rgba(255, 255, 255, 0.05); font-size: 19px; }
.srv .badge { 
  position: absolute; 
  right: -4px; 
  top: -4px; 
  min-width: 18px; 
  height: 18px; 
  border-radius: 9px; 
  background: var(--danger-gradient); 
  color: #fff; 
  font-size: 10.5px; 
  font-weight: 700; 
  display: grid; 
  place-items: center; 
  padding: 0 5px; 
  border: 2px solid #080b11; 
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4); 
}
.rail hr { width: 32px; border: 0; border-top: 1px solid var(--line); margin: 0; }
.search { 
  margin: 8px 10px; 
  padding: 8px 12px; 
  width: calc(100% - 20px); 
  background: rgba(8, 11, 17, 0.7); 
  color: var(--fg); 
  border: 1px solid var(--line); 
  border-radius: 9px; 
  font: inherit; 
  outline: none; 
  transition: border-color .15s ease; 
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2); }
.person { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  width: 100%; 
  padding: 6px 10px; 
  border: 0; 
  border-radius: 8px; 
  background: transparent; 
  color: var(--dim); 
  text-align: left; 
  transition: all .12s ease; 
}
.person:hover { background: var(--hover); color: var(--fg); }
.person.on { background: rgba(var(--accent-rgb), 0.14); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.person .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person.unread { color: var(--accent-soft); font-weight: 700; }
.person.unread::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); flex: none; }
.person .act { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--fg); border-radius: 6px; font-size: 11.5px; padding: 2px 8px; transition: all .12s ease; }
.person .act:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }
.person .act.yes { background: var(--accent-gradient); border-color: rgba(255, 255, 255, 0.2); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.35); }
.popups { position: fixed; z-index: 35; right: 16px; top: 16px; display: flex; flex-direction: column; gap: 10px; width: 310px; }
.popup { 
  background: rgba(14, 18, 27, 0.94); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px); 
  border: 1px solid var(--accent); 
  border-radius: 14px; 
  padding: 14px 16px; 
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--accent-rgb), 0.25); 
}
.popup b { display: block; margin-bottom: 2px; color: #fff; }
.popup .row { display: flex; gap: 8px; margin-top: 10px; }
.popup .btn { flex: 1; text-align: center; }

/* pictures */
.attach { padding: 9px 12px; font-size: 16px; line-height: 1; border-radius: 10px; }
.msg .pic { grid-column: 2; margin: 6px 0 2px; border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: block; padding: 0; cursor: zoom-in; max-width: 100%; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); }
.msg .pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.msg .pic.gone { cursor: default; display: grid; place-items: center; color: var(--dim); font-size: 12.5px; }
.drop-hint { position: absolute; inset: 8px; z-index: 5; display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: 16px; background: rgba(10, 13, 20, 0.9); backdrop-filter: blur(12px); color: var(--accent); font-size: 18px; font-weight: 700; pointer-events: none; }
.preview { max-width: 100%; max-height: 300px; display: block; margin: 0 auto 12px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(16px); display: grid; place-items: center; cursor: zoom-out; padding: 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 48px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8); }
.srv img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.srv.pic { padding: 0; overflow: hidden; background: var(--panel2); }
.srv.pic.on { box-shadow: 0 0 0 2px var(--accent), 0 0 16px rgba(var(--accent-rgb), 0.4); }
.icon-now { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; display: block; margin: 0 auto 10px; border: 1px solid var(--line); }

/* people */
.members { 
  background: rgba(26, 33, 49, 0.65); 
  backdrop-filter: blur(32px); 
  -webkit-backdrop-filter: blur(32px); 
  border: 1px solid var(--line); 
  border-radius: 18px; 
  overflow-y: auto; 
  padding: 14px 10px; 
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12); 
}
.mem { 
  display: flex; 
  align-items: center; 
  gap: 9px; 
  padding: 7px 10px; 
  border: 1px solid transparent; 
  border-radius: 12px; 
  transition: all .15s ease; 
}
.mem:hover { background: var(--hover-card); border-color: rgba(255, 255, 255, 0.08); }
.mem.on, .mem.speaking { 
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.42) 0%, rgba(var(--accent-mid-rgb), 0.26) 50%, rgba(var(--accent-cyan-rgb), 0.20) 100%); 
  border-color: rgba(var(--accent-light-rgb), 0.60); 
  border-radius: 12px; 
  box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.20); 
  color: #fff; 
}
.mem.off { opacity: .5; }
/* the name column of a member row: the name, and under it the game their app says they are playing */
.mem-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mem-text .nm { flex: none; }
.mem-game { font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem .live-chip { flex: none; }
.ch-lock { font-size: 11px; opacity: .75; flex: none; }
.ch.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
.access-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.access-list.off { opacity: .45; }
.avatar.has-picture { padding: 0; }                              /* no clipping: the online dot sits half outside the circle */
.avatar.has-picture img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
/* Discord-style compact media picker (GIFs & Emoji) anchored over composer */
.media-picker, .emoji-panel {
  position: absolute;
  right: 14px;
  bottom: 100%;
  margin-bottom: 10px;
  width: 440px;
  max-width: calc(100vw - 28px);
  height: 500px;
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  background: rgba(18, 22, 34, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  z-index: 25;
  user-select: none;
  overflow: hidden;
  padding: 0;
}

/* Header with Discord pill tabs */
.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.picker-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}
.picker-tab {
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s ease;
}
.picker-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.picker-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Search bar with icon and clear button */
.picker-search-bar {
  padding: 8px 12px;
  position: relative;
  display: flex;
  align-items: center;
}
.picker-search-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(8, 11, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 30px 8px 32px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.picker-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.25);
}
.picker-search-ico {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  pointer-events: none;
  font-size: 13px;
}
.picker-search-clear {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--dim);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
}
.picker-search-clear:hover {
  color: #fff;
}

/* Content scroll area */
.picker-content {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 12px;
  min-height: 0;
}

/* GIF categories 2-column cards (like Discord) */
.gif-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gif-cat-card {
  position: relative;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, border-color .15s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.gif-cat-card:hover {
  transform: scale(1.02);
  filter: brightness(1.15);
  border-color: rgba(255, 255, 255, 0.2);
}
.gif-cat-card.fav { background: linear-gradient(135deg, rgba(88, 101, 242, 0.5), rgba(120, 50, 200, 0.5)); }
.gif-cat-card.trending { background: linear-gradient(135deg, rgba(235, 69, 158, 0.45), rgba(160, 30, 140, 0.45)); }
.gif-cat-card.cat-hello { background: linear-gradient(135deg, rgba(46, 117, 89, 0.45), rgba(20, 70, 50, 0.45)); }
.gif-cat-card.cat-lol { background: linear-gradient(135deg, rgba(200, 130, 20, 0.45), rgba(140, 80, 10, 0.45)); }
.gif-cat-card.cat-love { background: linear-gradient(135deg, rgba(220, 40, 70, 0.45), rgba(150, 20, 50, 0.45)); }
.gif-cat-card.cat-bday { background: linear-gradient(135deg, rgba(80, 60, 170, 0.45), rgba(50, 30, 120, 0.45)); }
.gif-cat-card.cat-game { background: linear-gradient(135deg, rgba(30, 140, 190, 0.45), rgba(15, 80, 120, 0.45)); }
.gif-cat-card.cat-dance { background: linear-gradient(135deg, rgba(160, 40, 160, 0.45), rgba(100, 20, 100, 0.45)); }

/* GIF Results Grid */
.gif-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--dim);
}
.gif-back-btn {
  background: transparent;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 4px;
}
.gif-back-btn:hover { text-decoration: underline; }
.gif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gif-item {
  position: relative;
  aspect-ratio: 16/11;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.gif-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
.gif-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gif-item .gif-fav-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 11px;
  opacity: 0;
  cursor: pointer;
  transition: opacity .15s ease;
}
.gif-item:hover .gif-fav-btn, .gif-item .gif-fav-btn.is-fav {
  opacity: 1;
}
.gif-item .gif-fav-btn.is-fav {
  color: #facc15;
}

/* Loading & Empty states */
.picker-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--dim);
  font-size: 13px;
}
.picker-loading {
  text-align: center;
  padding: 30px 16px;
  color: var(--dim);
  font-size: 12.5px;
}

/* Picker footer / caption bar */
.picker-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 13, 20, 0.7);
  flex-shrink: 0;
}
.picker-caption-input {
  flex: 1;
  min-width: 0;
  background: rgba(8, 11, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 11px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
  transition: border-color .15s ease;
}
.picker-caption-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.25);
}
.picker-pos-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all .15s ease;
}
.picker-pos-btn:hover {
  background: rgba(var(--accent-rgb), 0.2);
  border-color: var(--accent);
  color: #fff;
}

/* Compact Emoji Tab */
.emoji-group b, .emoji-section-title {
  display: block;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 8px 0 4px;
  font-weight: 700;
}
.emoji-grid, .emoji-compact-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}
.emo, .emo-btn {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  padding: 6px 2px;
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
  transition: background .1s ease, transform .1s ease;
}
.emo:hover, .emo-btn:hover {
  background: rgba(var(--accent-rgb), 0.28);
  transform: scale(1.15);
}

/* Inline GIF in Chat messages */
.msg .msg-gif-wrap {
  grid-column: 2;
  margin-top: 6px;
  max-width: 400px;
  max-height: 320px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  width: fit-content;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.msg-gif-img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: inherit;
  cursor: zoom-in;
}

/* Composer GIF button */
.btn-gif {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 7px 11px;
}
.mem .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #fff; }
.mem .role { font-size: 12px; color: var(--dim); }

/* menus, dialogs, notes */
.menu { 
  position: fixed; 
  z-index: 30; 
  min-width: 190px; 
  background: rgba(14, 18, 27, 0.94); 
  backdrop-filter: blur(24px); 
  -webkit-backdrop-filter: blur(24px); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 12px; 
  padding: 6px; 
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); 
}
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 12px; border-radius: 7px; font-weight: 500; transition: background .1s ease; }
.menu button:hover { background: var(--hover); }
.menu button.danger { color: var(--danger); }
.veil { 
  position: fixed; 
  inset: 0; 
  z-index: 20; 
  background: rgba(0, 0, 0, 0.65); 
  backdrop-filter: blur(8px); 
  -webkit-backdrop-filter: blur(8px); 
  display: grid; 
  place-items: center; 
  padding: 20px; 
}
.dialog { 
  width: min(460px, 100%); 
  background: rgba(14, 18, 27, 0.94); 
  backdrop-filter: blur(24px); 
  -webkit-backdrop-filter: blur(24px); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 16px; 
  padding: 24px; 
  max-height: 90vh; 
  overflow: auto; 
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7); 
}
.dialog h2 { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: #fff; }
.dialog p { margin: 6px 0 14px; color: var(--dim); }
.dialog input[type=text], .dialog select { 
  width: 100%; 
  background: rgba(8, 11, 17, 0.75); 
  color: var(--fg); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 9px; 
  padding: 10px 12px; 
  font: inherit; 
  outline: none; 
  transition: border-color .15s ease, box-shadow .15s ease; 
}
.dialog input[type=text]:focus, .dialog select:focus { 
  border-color: var(--accent); 
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2); 
}
.dialog select option { background: #101520; color: var(--fg); }
.dialog select:disabled { opacity: .45; cursor: not-allowed; }
.dialog .row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.dialog .err { color: var(--danger); min-height: 1.4em; margin-top: 8px; font-size: 13px; }
/* a text file shown from a chat room (View): plain text, wide, scrolls both ways */
.dialog.wide { width: min(880px, 100%); }
.code-view { margin: 4px 0 0; max-height: 60vh; overflow: auto; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .08); font: 12.5px/1.5 Consolas, "Cascadia Mono", monospace; color: #e6e9f0; white-space: pre; tab-size: 4; user-select: text; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.kind { 
  padding: 16px 12px; 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 12px; 
  background: rgba(255, 255, 255, 0.03); 
  text-align: center; 
  transition: all .15s ease; 
}
.kind:hover { 
  background: rgba(255, 255, 255, 0.06); 
  border-color: rgba(255, 255, 255, 0.15); 
  transform: translateY(-1px); 
}
.kind b { display: block; margin-top: 6px; color: #fff; }
.kind .big { font-size: 26px; }
.kind.on { 
  border-color: var(--accent); 
  background: rgba(var(--accent-rgb), 0.14); 
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.25), inset 0 0 0 1px var(--accent); 
}
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 12px 0; }
.emoji-grid button { font-size: 20px; padding: 6px 0; border: 1px solid transparent; border-radius: 8px; background: transparent; transition: all .12s ease; }
.emoji-grid button:hover { background: var(--hover); }
.emoji-grid button.on { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.12); }
.invite-code { 
  font: 700 22px/1.2 Consolas, monospace; 
  letter-spacing: .12em; 
  color: var(--accent-cyan); 
  text-align: center; 
  background: rgba(8, 11, 17, 0.8); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 10px; 
  padding: 14px; 
  user-select: all; 
}
.list { border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; overflow: hidden; }
.list > div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.list > div:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toasts { position: fixed; z-index: 40; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { 
  background: rgba(14, 18, 27, 0.94); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px); 
  border: 1px solid var(--line); 
  border-radius: 10px; 
  padding: 10px 16px; 
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); 
  color: #fff; 
}
.toast.bad { border-color: var(--danger); box-shadow: 0 12px 32px rgba(239, 68, 68, 0.25); }

@media (max-width: 900px) { 
  .shell { --rail-w: 68px; grid-template-columns: var(--rail-w) var(--side-w, 210px) minmax(0, 1fr); } 
  .members { display: none; } 
}

/* the column next to SPKR HQ's Stream page (the app sends layout "sidebar"): the rooms of the voice server, who is in them,
   and the voice bar with mute, deafen and leave; chat, members and the server rail stay on the TALKIE page */
body.sidebar .shell { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
body.sidebar .rail, body.sidebar .main, body.sidebar .members, body.sidebar #add-room, body.sidebar #invite { display: none !important; }
body.sidebar .side { border-radius: 12px; }
body.sidebar .voice-bar .vb-btn { flex: 0 0 auto; }
body.sidebar .sidebar-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--dim, #94a3b8);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  margin: 8px 10px 4px;
  cursor: pointer;
  transition: all .15s ease;
}
body.sidebar .sidebar-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg, #f8fafc);
  border-color: var(--accent, #6366f1);
}
.sidebar-server-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  margin: 3px 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--fg, #f8fafc);
  cursor: pointer;
  text-align: left;
  transition: all .15s ease;
}
.sidebar-server-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-soft, rgba(var(--accent-mid-rgb), 0.5));
}
.sidebar-server-item.personal {
  background: linear-gradient(135deg, rgba(140, 147, 248, 0.12), rgba(255, 255, 255, 0.02));
  border-color: rgba(140, 147, 248, 0.35);
}
.sidebar-server-item.personal:hover {
  border-color: rgba(140, 147, 248, 0.7);
  background: linear-gradient(135deg, rgba(140, 147, 248, 0.2), rgba(255, 255, 255, 0.04));
}
.sidebar-server-item .srv-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: bold;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg, #f8fafc);
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-server-item .srv-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-server-item .srv-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.sidebar-server-item .srv-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-server-item .srv-tag {
  font-size: 11px;
  color: #8c93f8;
  font-weight: 500;
}

/* ---------- the web version (html.web: TALKIE in a browser, hq.sp3akr.com/talkie) ---------- */
.mob-btn { display: none; }
.scrim { display: none; }
.web-signin { display: grid; gap: 10px; margin: 18px auto 0; width: min(340px, 100%); text-align: left; }
.web-signin input { font: inherit; font-size: 15px; color: var(--fg); background: rgba(8, 10, 18, 0.7); border: 1px solid var(--line-bright); border-radius: 10px; padding: 11px 13px; }
.web-signin input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.web-signin .btn { justify-content: center; padding: 11px; font-size: 15px; }
.web-err { color: #fca5a5; font-size: 13px; min-height: 1em; }
.web-links { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.web-links a { color: var(--accent-soft); text-decoration: none; }
.web-links a:hover { text-decoration: underline; }
html.web .gate .logo { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* phones: one column; the servers and rooms slide in from the left, the members from the right */
@media (max-width: 760px) {
  html.web, html.web body { height: 100%; }
  html.web .shell { height: 100dvh; grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  html.web .main { border-radius: 0; border: 0; box-shadow: none; }
  html.web .room-head { padding: 10px 10px; gap: 8px; font-size: 15px; }
  html.web .mob-btn { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--fg); font-size: 18px; cursor: pointer; }
  html.web .mob-btn.end { margin-left: auto; }
  html.web .link-state { font-size: 11px; }
  html.web .rail, html.web .side, html.web .members { position: fixed; top: 0; bottom: 0; z-index: 40; transition: transform .22s ease; border-radius: 0; }
  html.web .rail { left: 0; width: 64px; transform: translateX(-110%); }
  html.web .side { left: 64px; width: min(290px, calc(100vw - 112px)); transform: translateX(calc(-100% - 70px)); background: var(--panel-solid); }
  html.web .members { display: block; right: 0; width: min(280px, 86vw); transform: translateX(110%); background: var(--panel-solid); overflow-y: auto; }
  html.web body.show-side .rail, html.web body.show-side .side, html.web body.show-members .members { transform: none; }
  html.web .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  html.web body.show-side .scrim, html.web body.show-members .scrim { opacity: 1; pointer-events: auto; }
  html.web .composer { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
  html.web .composer textarea { font-size: 16px; }                 /* 16px: no zooming in on iPhones */
  html.web .composer .count { display: none; }
  html.web .messages { padding-left: 10px; padding-right: 10px; }
  html.web .popups, html.web .toasts { left: 8px; right: 8px; }
  html.web .popup { max-width: none; }
}

/* a file in a chat room: name, size, Download; scripts and programs get a warning */
.file-card { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 4px 0; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.file-card .file-ico { font-size: 22px; }
.file-card .file-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.file-card .file-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-warn { max-width: 420px; margin: 2px 0 4px; font-size: 12px; color: #f5a524; }

/* conversations with a friend: mine right, theirs left (WhatsApp-like) */
#messages.bubbles { display: flex; flex-direction: column; }
#messages.bubbles .msg { display: flex; flex-direction: column; max-width: min(78%, 560px); padding: 6px 10px 18px; border-radius: 12px; margin: 2px 12px; position: relative; min-width: 64px; }
#messages.bubbles .msg.first { margin-top: 8px; }
#messages.bubbles .msg.mine { align-self: flex-end; margin-left: auto; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
#messages.bubbles .msg.theirs { align-self: flex-start; background: var(--hover-card); border-bottom-left-radius: 4px; }
#messages.bubbles .msg .bt { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; opacity: .7; }
#messages.bubbles .msg .pic { max-width: 100%; height: auto !important; }
#messages.bubbles .msg .pic img { max-width: 100%; border-radius: 8px; }
/* a file in my own (accent-coloured) bubble: its size and warning in the bubble's own ink, the grey ones did not show on it */
#messages.bubbles .msg.mine .file-card { background: rgba(0,0,0,.14); border-color: rgba(255,255,255,.22); }
#messages.bubbles .msg.mine .file-card .dim { color: inherit; opacity: .8; }
#messages.bubbles .msg.mine .file-warn { color: inherit; opacity: .9; }
/* text and links in my own bubble: the bubble's own ink, links bold and underlined (the theme's second colour, orange on a
   red bubble, made a link all but invisible) */
#messages.bubbles .msg.mine .body { color: var(--accent-ink); }
#messages.bubbles .msg.mine .body a { color: inherit; font-weight: 600; text-decoration-color: currentColor; }
#messages.bubbles .day { align-self: center; }
#messages.bubbles .older, #messages.bubbles .empty { align-self: center; }
#messages.bubbles .call-line { align-self: center; margin: 8px auto; padding: 4px 12px; border-radius: 10px; background: var(--hover-card); font-size: 12.5px; opacity: .9; }
#messages.bubbles .call-line.missed { color: var(--danger); }
.person.chat .mem-text { flex: 1; min-width: 0; }
.person.chat .chat-top, .person.chat .chat-bottom { display: flex; gap: 6px; align-items: baseline; }
.person.chat .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person.chat .chat-at { font-size: 11px; opacity: .6; }
.person.chat .chat-last { flex: 1; min-width: 0; font-size: 12px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person.chat.unread .chat-at { color: var(--accent-soft); opacity: 1; }
.person.chat .chat-n { background: var(--accent); color: var(--accent-ink); border-radius: 10px; min-width: 18px; padding: 0 5px; font-size: 11px; text-align: center; }
.person.chat.unread::after { display: none; }                         /* the number says it already */

/* a call with a friend: a panel over the conversation, dragged anywhere inside it */
#call { position: fixed; z-index: 90; background: #0b0f17; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px #000c, 0 0 0 1px var(--line-bright); touch-action: none; cursor: grab; user-select: none; }
#call.dragging { cursor: grabbing; }
#call.large { border-radius: 10px; }
#call[hidden] { display: none; }
#call .call-face { display: flex; flex-direction: column; align-items: center; gap: 8px; }
#call .call-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-gradient); display: grid; place-items: center; font-size: 30px; font-weight: 700; }
#call .call-name { font-size: 16px; font-weight: 600; }
#call .call-what { opacity: .75; font-size: 13px; }
#call .call-what.floating { position: absolute; top: 62%; }
#call .call-big { position: absolute; inset: 0; display: grid; place-items: center; background: #000; }
#call .call-small { position: absolute; right: 10px; top: 10px; width: 24%; max-width: 160px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 4px 14px #0009; }
#call .call-small:empty { display: none; }
#call .call-video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
#call .call-top { position: absolute; top: 10px; left: 12px; display: flex; gap: 8px; align-items: baseline; text-shadow: 0 1px 3px #000; font-size: 13px; }
#call .call-top .call-name { font-size: 14px; }
#call .call-time { opacity: .8; font-variant-numeric: tabular-nums; }
#call .call-buttons { display: flex; gap: 12px; }
#call .call-buttons.bottom { position: absolute; bottom: 12px; }
#call .call-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #ffffff2e; color: #fff; font-size: 17px; cursor: pointer; }
#call .call-btn.off { background: #fff; color: #0b0f17; }
#call .call-btn.on { background: var(--accent); }
#call .call-btn.accept { background: #25d366; }
#call .call-btn.decline { background: #ff3b30; }
#call .call-size { position: absolute; left: 10px; bottom: 12px; width: 32px; height: 32px; border-radius: 8px; border: 0; background: #ffffff26; color: #fff; font-size: 15px; cursor: pointer; }

/* the call buttons at the top of a chat */
.room-head .head-call { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--fg); font-size: 17px; cursor: pointer; display: inline-grid; place-items: center; }
.room-head .head-call + .head-call { margin-left: 6px; }
.room-head .head-call:hover { background: var(--hover-card); }
.room-head .head-call[hidden] { display: none; }
.room-head .head-call:not([hidden]) ~ .mob-btn.end { margin-left: 6px; }

/* Settings: short */
.field.compact { margin: 8px 0; }
.field.compact label { display: flex; justify-content: space-between; }
.settings-account { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
/* the chats list filling a phone's screen */
.chat-home { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.chat-home .person.chat { width: 100%; padding: 10px 8px; }
.chat-home .chat-home-add, .chat-home .chat-home-wait { align-self: center; margin: 10px 0; }


/* a call: which camera (PC) */
#call .call-menu { position: absolute; bottom: 72px; left: 50%; transform: translateX(-50%); min-width: 240px; background: var(--panel-solid); border: 1px solid var(--line-bright); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 8px 28px #000a; }
#call .call-menu button { text-align: left; background: none; border: 0; color: var(--fg); padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
#call .call-menu button:hover, #call .call-menu button.on { background: var(--hover-card); }

/* the friend's picture in a call; rings pulse out of it while it rings */
#call .call-pic { position: relative; display: grid; place-items: center; }
#call .call-avatar { overflow: hidden; position: relative; z-index: 1; box-shadow: 0 0 40px rgba(var(--accent-rgb), .45); }
#call .call-avatar img { width: 100%; height: 100%; object-fit: cover; }
#call .call-face.ringing .call-pic::before, #call .call-face.ringing .call-pic::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(var(--accent-light-rgb), .8); animation: call-ring 2s ease-out infinite; }
#call .call-face.ringing .call-pic::after { border-color: rgba(var(--accent-cyan-rgb), .8); animation-delay: 1s; }
@keyframes call-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #call .call-face.ringing .call-pic::before, #call .call-face.ringing .call-pic::after { animation: none; opacity: 0; } }

/* phones: the chats list bigger (easier to read and to tap); the PC keeps its size */
@media (max-width: 760px) {
  html.web .person.chat { padding: 12px 10px; gap: 12px; min-height: 68px; }
  html.web .person.chat .avatar { width: 46px; height: 46px; font-size: 18px; flex: none; }
  html.web .person.chat .nm { font-size: 17px; font-weight: 600; }
  html.web .person.chat .chat-at { font-size: 12.5px; }
  html.web .person.chat .chat-last { font-size: 14.5px; margin-top: 3px; }
  html.web .person.chat .chat-n { font-size: 12.5px; min-width: 22px; padding: 1px 6px; }
  html.web .chat-home { gap: 4px; padding: 6px 2px; }
  html.web .chat-home .chat-home-add, html.web .chat-home .chat-home-wait { font-size: 14px; padding: 8px 16px; }
}

/* a pop-up's line wraps (a long link never runs out of the box) and stops after three lines */
.popup .dim { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* phones: notifications switched off for the app */
.notices-off { display: flex; align-items: center; gap: 10px; margin: 4px 6px 10px; padding: 10px 12px; border-radius: 12px; background: rgba(245, 165, 36, 0.12); border: 1px solid rgba(245, 165, 36, 0.35); color: var(--fg); font-size: 13.5px; }
.notices-off span { flex: 1; }

/* YouTube in the chat (2026-09-29): the picture under the message, the player under it across the whole chat */
.yt-card { position: relative; display: block; grid-column: 2; width: 360px; max-width: 100%; aspect-ratio: 16 / 9; margin-top: 6px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; }
.yt-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-card .yt-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 42px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(0, 0, 0, 0.65); transition: background .15s ease, transform .15s ease; }
.yt-card .yt-play::after { content: ""; position: absolute; left: 25px; top: 12px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.yt-card:hover .yt-play, .yt-card:focus-visible .yt-play { background: #ff0033; transform: translate(-50%, -50%) scale(1.06); }
.yt-card .yt-tag { position: absolute; left: 8px; bottom: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 11px; font-weight: 600; }
#messages.has-video { overflow-anchor: none; }        /* the view never jumps to follow the player node that is kept */
.yt-player { margin: 6px 0 12px; }
#messages.bubbles .yt-player { align-self: stretch; margin: 6px 12px 12px; }
.yt-box { width: min(100%, calc(66vh * 16 / 9)); margin: 0 auto; }
.yt-player.short .yt-box { width: min(100%, calc(70vh * 9 / 16)); }
.yt-bar { display: flex; align-items: center; gap: 12px; padding: 0 2px 6px; }
.yt-name { flex: 1; min-width: 0; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.yt-name::before { content: "▶"; color: #ff0033; margin-right: 6px; }
.yt-out { color: var(--dim); font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.yt-out:hover { color: #fff; text-decoration: underline; }
.yt-close { flex: none; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2-solid); color: #fff; font-size: 14px; cursor: pointer; }
.yt-close:hover { background: var(--danger); border-color: transparent; }
.yt-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); }
.yt-player.short .yt-frame { aspect-ratio: 9 / 16; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* a message that is being sent: in the chat at once, pale until the server has it */
.msg.sending { opacity: .6; animation: msg-in .16s ease-out; }
@keyframes msg-in { from { opacity: 0; transform: translateY(4px); } to { opacity: .6; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg.sending { animation: none; } }

/* ---------- Quick call (2026-10-01): the call screen for you (over the conversation) and for your guests (guest.html) ---------- */
.qc { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; background: #0b0f17; color: #fff; overflow: hidden; }
.qc-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.qc-title { font-weight: 700; }
.qc-time, .qc-count { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.qc-grow { flex: 1; }
.qc-sharing { border: 0; border-radius: 999px; padding: 4px 10px; background: rgba(255, 59, 48, .18); color: #ff8a80; font-size: 12.5px; cursor: pointer; }
.qc-note { padding: 8px 14px; background: rgba(245, 165, 36, .14); color: #f5c26b; font-size: 13px; }
.qc-main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.qc-stage { display: none; }
.qc-main.with-screen .qc-stage { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; }
.qc-screen { flex: 1; min-height: 0; display: grid; place-items: center; background: #000; border-radius: 12px; overflow: hidden; }
.qc-screen-video { width: 100%; height: 100%; object-fit: contain; }
.qc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.qc-chips:empty { display: none; }
.qc-chip { border: 1px solid var(--line); background: var(--panel2-solid); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.qc-chip.on { background: var(--accent); border-color: transparent; }
.qc-tiles { flex: 1; min-height: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-content: center; overflow: auto; }
.qc-main.with-screen .qc-tiles { flex: none; display: flex; overflow-x: auto; }
.qc-main.with-screen .qc-tile { width: 168px; flex: none; }
.qc-tile { position: relative; aspect-ratio: 16 / 10; background: #151b29; border-radius: 12px; overflow: hidden; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .12s ease, box-shadow .12s ease; }
.qc-tile.speaking { outline-color: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb), .45); }
.qc-face { position: absolute; inset: 0; display: grid; place-items: center; }
.qc-initial { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-gradient); font-size: 28px; font-weight: 700; }
.qc-main.with-screen .qc-initial { width: 40px; height: 40px; font-size: 18px; }
.qc-video { width: 100%; height: 100%; object-fit: cover; }
.qc-tile.mine .qc-video { transform: scaleX(-1); }
.qc-label { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .55); font-size: 12.5px; }
.qc-label .qc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-badge { font-size: 10.5px; padding: 0 5px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); }
.qc-people { position: absolute; top: 52px; right: 12px; width: min(300px, calc(100% - 24px)); max-height: 60%; overflow: auto; padding: 10px; border-radius: 12px; background: var(--panel2-solid); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); z-index: 2; }
.qc-people-head { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.qc-person { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.qc-person .qc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-bar { display: flex; justify-content: center; gap: 12px; padding: 12px; }
.qc .call-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #ffffff2e; color: #fff; font-size: 18px; cursor: pointer; }
.qc .call-btn.off { background: #fff; color: #0b0f17; }
.qc .call-btn.on { background: var(--accent); }
.qc .call-btn.decline { background: #ff3b30; }
.qc .call-btn[hidden] { display: none; }
@media (max-width: 760px) {
  .qc-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
  .qc-bar { gap: 10px; }
}
/* a phone held upright: up to three people one under the other, full width; from four on, two side by side */
@media (max-width: 760px) and (orientation: portrait) {
  .qc-tiles { grid-template-columns: 1fr; }
  .qc-tiles:has(> .qc-tile:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
}
/* yours: over the conversation, with Hide; hidden, a bar to go back */
#quick { position: absolute; inset: 0; z-index: 30; }
#quick[hidden] { display: none; }
.quick-back { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: rgba(var(--accent-rgb), .18); border-bottom: 1px solid var(--line); font-size: 13px; }
.quick-back[hidden] { display: none; }
.quick-back .grow { flex: 1; }
.quick-btn { width: calc(100% - 4px); margin: 0 2px 8px; }
.quick-links .quick-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.quick-links .quick-url { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the guest page */
.guest { width: min(440px, calc(100vw - 32px)); }
.guest input { width: 100%; }
.guest-full { position: fixed; inset: 0; }

/* columns you can drag wider or narrower (2026-10-01): a grip in the 12 px gap next to the Friends/rooms column and next to
   the right column (positioned from the same widths as the grid); a line shows on hover */
.col-grip { position: absolute; top: 12px; bottom: 12px; width: 10px; cursor: col-resize; z-index: 5; touch-action: none; }
.col-grip::after { content: ""; position: absolute; left: 4px; top: 35%; bottom: 35%; width: 2px; border-radius: 2px; background: var(--accent); opacity: 0; transition: opacity .15s ease, top .15s ease, bottom .15s ease; }
.col-grip:hover::after, .col-grip.dragging::after { opacity: .9; top: 12%; bottom: 12%; }
.side-grip { left: calc(12px + var(--rail-w) + 12px + var(--side-w, 242px) + 1px); }
.members-grip { right: calc(12px + var(--members-w, 220px) + 1px); }
body.resizing, body.resizing * { cursor: col-resize !important; user-select: none !important; }
body.sidebar .col-grip { display: none; }
@media (max-width: 900px) {
  .side-grip { left: calc(12px + var(--rail-w) + 12px + var(--side-w, 210px) + 1px); }
  .members-grip { display: none; }
}
@media (max-width: 760px) { html.web .col-grip { display: none; } }
/* a conversation in the list: the name, when you last talked, the last line, each on its own line */
.person.chat .mem-text { display: flex; flex-direction: column; gap: 1px; }
.person.chat .chat-top { display: flex; gap: 6px; align-items: center; }
.person.chat .chat-at { font-size: 11px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person.chat .chat-last { display: block; flex: none; }

/* ---------- a message's actions, replies and @mentions (2026-10-11) ---------- */
.msg { position: relative; }
/* the bar on hover (PC); on a phone a long press opens the same as a menu */
.msg-actions { position: absolute; right: 12px; top: -14px; display: none; gap: 2px; padding: 3px; z-index: 3;
  background: #141925; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.msg:hover .msg-actions { display: flex; }
@media (hover: none) { .msg:hover .msg-actions { display: none; } }
.msg-actions button { border: 0; background: transparent; color: #cbd5e1; padding: 3px 8px; border-radius: 6px; font-size: 12.5px; cursor: pointer; }
.msg-actions button:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.msg-actions button.danger { color: #f87171; }
#messages.bubbles .msg-actions { top: -12px; }
#messages.bubbles .msg.mine .msg-actions { right: auto; left: -8px; transform: translateX(-100%); top: 4px; }
#messages.bubbles .msg.theirs .msg-actions { right: -8px; transform: translateX(100%); top: 4px; }

/* the line above a reply: who wrote the original and how it began */
.reply-quote { grid-column: 2; display: flex; gap: 6px; align-items: center; min-width: 0; margin: 3px 0 2px; padding: 1px 0 1px 10px;
  font-size: 12.5px; color: var(--dim); border-left: 2px solid rgba(var(--accent-light-rgb), 0.55); cursor: pointer; white-space: nowrap; overflow: hidden; }
.reply-quote b { color: #e2e8f0; font-weight: 600; flex: none; }
.reply-quote .rq-text { overflow: hidden; text-overflow: ellipsis; }
.reply-quote:hover .rq-text { color: #e2e8f0; }
.reply-quote.gone { cursor: default; font-style: italic; }
#messages.bubbles .reply-quote { margin: 0 0 4px; padding: 5px 8px; border-radius: 7px; background: rgba(0, 0, 0, 0.18); border-left: 3px solid rgba(255, 255, 255, 0.55); color: inherit; opacity: 0.92; max-width: 100%; }
#messages.bubbles .msg.theirs .reply-quote { background: rgba(255, 255, 255, 0.05); border-left-color: var(--accent); }
#messages.bubbles .reply-quote b { color: inherit; }
.msg.flash { animation: msg-flash 1.4s ease-out; }
@keyframes msg-flash { 0%, 35% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: 0 0 0 2px transparent; } }

/* "Replying to Dex · ..." above the text box */
.reply-bar { position: absolute; left: 20px; right: 20px; bottom: calc(100% - 10px); display: flex; align-items: center; gap: 4px; min-width: 0; padding: 7px 10px 7px 12px;
  font-size: 12.5px; color: var(--dim); background: rgba(16, 21, 32, 0.96); border: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 0; border-radius: 10px 10px 0 0; z-index: 2; }
.reply-bar b { color: #e2e8f0; flex: none; }
.reply-bar .rb-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar .rb-x { margin-left: auto; border: 0; background: transparent; color: #94a3b8; cursor: pointer; padding: 0 4px; font-size: 13px; }
.reply-bar .rb-x:hover { color: #fff; }

/* @mentions: the chip in the text, my own in the accent colour; a message that names me is tinted, with an edge */
.at-chip { color: #cbd5e1; background: rgba(255, 255, 255, 0.08); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.at-chip.mine { color: var(--accent-soft); background: rgba(var(--accent-rgb), 0.25); }
.msg.mention { background: rgba(var(--accent-rgb), 0.13); box-shadow: inset 3px 0 0 var(--accent); }
.msg.mention:hover { background: rgba(var(--accent-rgb), 0.18); }
.at-badge { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-radius: 9px; padding: 0 6px; font-size: 11px; font-weight: 800; line-height: 17px; flex: none; }
.srv { position: relative; }
.srv .at-badge { position: absolute; right: -4px; bottom: -4px; margin: 0; box-shadow: 0 0 0 2px var(--bg, #080a12); }

/* the list while typing @ */
.mention-pick { position: absolute; left: 62px; bottom: calc(100% - 4px); width: 320px; max-width: calc(100% - 80px); padding: 6px; z-index: 5;
  background: #141925; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.mention-pick .cap { font-size: 10.5px; font-weight: 700; color: var(--dim); padding: 4px 8px 6px; letter-spacing: 0.04em; }
.mention-pick .row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; font-size: 13.5px; color: #e2e8f0; cursor: pointer; }
.mention-pick .row.sel, .mention-pick .row:hover { background: rgba(var(--accent-rgb), 0.22); }
.mention-pick .row .avatar { width: 24px; height: 24px; font-size: 13px; }
.mention-pick .row .un { color: var(--dim); font-size: 12px; }
.mention-pick .row small { margin-left: auto; color: var(--dim); font-size: 11.5px; }
.reply-bar ~ .mention-pick { bottom: calc(100% + 26px); }
