.app-view,
.chat,
.chat-content {
  min-height: 0;
  overflow: hidden;
}

.chat {
  height: 100%;
}

.messages {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.composer {
  flex: none;
}

.compose-main textarea {
  display: block;
  min-height: 42px;
  pointer-events: auto;
}

.chat-notice {
  margin: auto;
  color: #8f8f98;
  font-size: 13px;
  text-align: center;
}

.date-separator {
  position: sticky;
  top: 5px;
  z-index: 2;
  align-self: center;
  width: max-content;
  margin: 13px auto 8px;
  padding: 5px 12px;
  border: 1px solid #303038;
  border-radius: 14px;
  background: rgba(24,24,29,.92);
  color: #a4a4ad;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.message {
  flex: none;
}

#friendName,
#callName,
.room-member {
  cursor: pointer;
}

#friendName:hover,
#callName:hover,
.room-member:hover {
  color: var(--accent2);
}

.room-member {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #17171b;
  color: var(--text);
  font-size: 11px;
}

.call-overlay.active-call.screen-mode.screen-expanded {
  inset: 44px 0 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
}

.web-client .call-overlay.active-call.screen-mode.screen-expanded {
  inset: 0;
}

.call-overlay.screen-expanded .call-actions {
  bottom: 24px;
}

.public-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.public-profile h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.public-profile p,
.public-profile-bio {
  color: var(--muted);
}

.screen-share-card{max-width:520px}.screen-share-quality{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:5px 0 8px}.screen-share-quality label{margin-top:0}.screen-share-quality-hint{margin:0 0 16px;color:var(--muted);font-size:11px;line-height:1.45}.screen-share-actions{display:grid;gap:12px}.screen-share-actions button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:15px 17px}.screen-share-actions button small{opacity:.7;font-weight:500}

.room-mini{position:fixed;z-index:75;right:22px;bottom:22px;width:min(360px,calc(100vw - 32px));display:flex;align-items:center;gap:10px;padding:10px;border:1px solid rgba(var(--accent-rgb),.34);border-radius:20px;background:rgba(14,15,20,.94);box-shadow:0 18px 48px rgba(0,0,0,.48),0 0 30px rgba(var(--accent-rgb),.13);backdrop-filter:blur(22px)}.room-mini-main{display:flex;align-items:center;gap:11px;min-width:0;flex:1;padding:0;border:0;background:transparent;color:var(--text);text-align:left}.room-mini-main .avatar{width:44px;height:44px;flex:none;border-radius:14px}.room-mini-main>span{display:flex;min-width:0;flex-direction:column}.room-mini-main small{color:var(--accent2);font-size:9px;font-weight:800;letter-spacing:.12em}.room-mini-main b{overflow:hidden;margin:2px 0;white-space:nowrap;text-overflow:ellipsis}.room-mini-main em{color:var(--muted);font-size:10px;font-style:normal}.room-mini-controls{display:flex;gap:6px}.room-mini-controls button{display:grid;width:34px;height:34px;place-items:center;padding:0;border:1px solid var(--line);border-radius:11px;background:#24252c;color:#ddd}.room-mini-controls button.off{color:#ef656b;background:#3b2025}.room-mini-controls button.hang{border-color:#d93c46;background:#c9323c;color:white}.room-mini-controls svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}

.room-mini-drag{align-self:stretch;width:22px;flex:none;padding:0;border:0;border-right:1px solid rgba(255,255,255,.07);background:transparent;color:#777985;cursor:grab;touch-action:none;user-select:none}.room-mini-drag:hover{color:var(--accent2)}.room-mini-drag:active{cursor:grabbing}.brand .build-badge{padding:3px 7px;border:1px solid rgba(255,255,255,.09);border-radius:999px;background:rgba(255,255,255,.045);color:#777985;font-size:9px;font-weight:750;letter-spacing:.04em}.brand .update-button{-webkit-app-region:no-drag;margin-left:3px;padding:5px 10px;border:1px solid rgba(var(--accent-rgb),.5);border-radius:999px;background:linear-gradient(135deg,var(--accent2),var(--accent));color:#fff;font-size:10px;font-weight:850;box-shadow:0 5px 18px rgba(var(--accent-rgb),.25);cursor:pointer}.brand .update-button:hover{filter:brightness(1.1);transform:translateY(-1px)}.brand .update-button:disabled{cursor:wait;filter:saturate(.55);transform:none}

.room-screen-stage{position:relative}.room-screen-expand,.room-screen-close{position:absolute;z-index:4;top:10px;display:grid;width:38px;height:38px;place-items:center;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(10,10,13,.78);color:#fff;font-size:19px;backdrop-filter:blur(12px)}.room-screen-expand{right:10px}.room-screen-close{right:56px}.room-screen-expand:hover,.room-screen-close:hover{background:rgba(var(--accent-rgb),.8)}.room-view.screen-expanded{position:fixed;z-index:110;inset:0;display:block;background:#050507}.room-view.screen-expanded>header,.room-view.screen-expanded>.room-controls,.room-view.screen-expanded #roomVoiceStage,.room-view.screen-expanded .room-screen-choices,.room-view.screen-expanded #roomScreenLabel{display:none}.room-view.screen-expanded .room-stage{grid-template-columns:1fr}.room-view.screen-expanded .room-stage,.room-view.screen-expanded .room-screen-stage{width:100%;height:100%;padding:0}.room-view.screen-expanded .room-screen-stage{grid-column:1}.room-view.screen-expanded .room-screen-stage video{width:100%;height:100%;max-height:none;border:0;border-radius:0}.room-view.screen-expanded .room-screen-expand,.room-view.screen-expanded .room-screen-close{position:fixed;top:18px;width:46px;height:46px}.room-view.screen-expanded .room-screen-expand{right:18px}.room-view.screen-expanded .room-screen-close{right:72px}

@media(max-width:700px){.room-mini{right:10px;bottom:10px;width:calc(100vw - 20px)}.room-mini-controls button{width:32px;height:32px}}

.brand-logo{width:23px;height:23px;flex:none;background:var(--accent);mask:url("../assets/eclipse-logo.png") center/contain no-repeat;-webkit-mask:url("../assets/eclipse-logo.png") center/contain no-repeat;filter:drop-shadow(0 0 12px rgba(var(--accent-rgb),.45))}.hero-logo{background:var(--accent);mask:url("../assets/eclipse-logo.png") center/contain no-repeat;-webkit-mask:url("../assets/eclipse-logo.png") center/contain no-repeat;filter:drop-shadow(0 8px 28px rgba(var(--accent-rgb),.32))}.shell{background:radial-gradient(circle at 78% 22%,rgba(var(--accent-rgb),.09),transparent 34%),var(--bg)}input:focus,textarea:focus{border-color:rgba(var(--accent-rgb),.8);box-shadow:0 0 0 4px rgba(var(--accent-rgb),.1)}.call-overlay.active-call .call-shade{background:radial-gradient(circle at 50% 25%,rgba(var(--accent-rgb),.12),transparent 65%)}.call-shade{background:radial-gradient(circle,rgba(var(--accent-rgb),.1),transparent 42%),linear-gradient(transparent 60%,rgba(0,0,0,.7))}.voice-state{color:var(--accent2)}.profile-identity:hover strong{color:var(--accent2)}.room-mini-controls button.off{color:var(--accent2);background:rgba(var(--accent-rgb),.18)}

.call-overlay.active-call .call-info {
  cursor: move;
  user-select: none;
  touch-action: none;
}

.call-drag-handle {
  display: none;
  position: absolute;
  z-index: 8;
  top: 8px;
  left: 50%;
  width: 48px;
  height: 22px;
  transform: translateX(-50%);
  border: 1px solid #3b3b43;
  border-radius: 12px;
  background: rgba(28,28,33,.94);
  color: #a7a7b0;
  cursor: grab;
  user-select: none;
  touch-action: none;
  text-align: center;
  line-height: 18px;
}

.call-overlay.active-call:not(.screen-expanded) .call-drag-handle {
  display: block;
}

.call-drag-handle:active {
  cursor: grabbing;
}

.room-screen-stage {
  width: min(900px, 88%);
  min-height: 0;
}

.room-screen-stage video {
  display: block;
  width: 100%;
  max-height: 55vh;
  border: 1px solid #34343b;
  border-radius: 18px;
  background: #050507;
  object-fit: contain;
}

.room-screen-stage > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.room-screen-choices {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.room-screen-choices button {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #18181d;
  color: var(--muted);
}

.room-screen-choices button.active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb),.15);
  color: #fff;
}

.room-stage:has(.room-screen-stage:not(.hidden)) {
  place-content: stretch;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  padding: 14px;
}

#roomVoiceStage.compact {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.room-stage:has(.room-screen-stage:not(.hidden)) {
  grid-template-columns: minmax(210px,280px) minmax(0,1fr);
  gap: 18px;
}

.room-stage:has(.room-screen-stage:not(.hidden)) .room-screen-stage {
  width: 100%;
}

#roomVoiceStage.compact .room-orbit {
  padding: 12px;
}

#roomVoiceStage.compact .call-avatar {
  width: 62px;
  height: 62px;
  font-size: 21px;
}

#roomVoiceStage.compact h3 {
  margin-top: 12px;
}

#roomVoiceStage.compact .room-members {
  width: 100%;
  max-width: 280px;
  max-height: 42vh;
  flex-direction: column;
  flex-wrap: nowrap;
  overflow-y: auto;
}

#roomVoiceStage.compact .room-member-wrap {
  width: 100%;
}

.room-member-wrap.sharing {
  border-color: rgba(var(--accent-rgb),.78);
  background: linear-gradient(135deg,rgba(var(--accent-rgb),.2),rgba(var(--accent-rgb),.06));
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.08),0 8px 28px rgba(var(--accent-rgb),.16);
}

.room-member-wrap.sharing .room-member {
  color: var(--accent2);
}

.screen-live {
  margin-left: 7px;
  padding: 2px 5px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.room-screen-volume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 10px;
}

.room-screen-volume span {
  color: var(--text);
}

.room-screen-volume input {
  width: min(220px,32vw);
  accent-color: var(--accent);
}

.room-view.screen-expanded .room-screen-volume {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 20px;
  margin: 0;
  padding: 10px 15px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(10,10,13,.82);
  backdrop-filter: blur(14px);
}

.room-view.screen-expanded #roomScreenVideo {
  position: fixed !important;
  z-index: 1;
  inset: 0 !important;
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}

.call-screen-volume {
  display: none;
}

.call-overlay.screen-mode .call-screen-volume {
  display: flex;
}

.call-overlay.screen-expanded .call-screen-volume {
  right: auto;
  left: 50%;
  width: min(440px,calc(100vw - 40px));
  padding: 10px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(10,10,13,.82);
  backdrop-filter: blur(14px);
}

.switch-row > i {
  z-index: 4;
  pointer-events: auto !important;
  cursor: pointer;
}

.public-profile p {
  margin: 0;
  font-size: 12px;
}

.public-profile-bio {
  min-height: 58px;
  margin: 20px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d0d10;
  line-height: 1.5;
}

/* Eclipse branding uses the full-color mark instead of the old monochrome mask. */
.brand-logo,
.hero-logo,
.splash-logo,
.empty-state .empty-logo {
  position: relative;
  isolation: isolate;
  background: url("../assets/eclipse-logo-base.png") center/contain no-repeat;
  mask: none;
  -webkit-mask: none;
}

.brand-logo::after,
.hero-logo::after,
.splash-logo::after,
.empty-state .empty-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg,var(--accent2),var(--accent));
  mask: url("../assets/eclipse-logo-accent-mask.png") center/contain no-repeat;
  -webkit-mask: url("../assets/eclipse-logo-accent-mask.png") center/contain no-repeat;
  pointer-events: none;
}

.brand-logo {
  width: 26px;
  height: 26px;
}

.hero-logo {
  filter: drop-shadow(0 12px 32px rgba(24,199,239,.24));
}

/* Participant tiles keep identity, live state and volume in separate rows. */
.room-members {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(88px,98px));
  align-items: start;
  justify-content: center;
  gap: 16px 12px;
  width: min(640px,calc(100vw - 44px));
  max-width: 640px;
}

.room-members .room-member-wrap {
  display: flex;
  width: 98px;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.room-members .room-member {
  position: relative;
  display: block;
  width: 76px;
  height: 76px;
  flex: none;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 23px;
  background: #17181d;
  box-shadow: 0 9px 24px rgba(0,0,0,.25);
}

.room-members .room-member:hover {
  border-color: rgba(var(--accent-rgb),.55);
  transform: translateY(-2px);
}

.room-member-avatar {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  font-size: 24px;
}

.room-member-identity {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text);
  font-size: 11px;
  font-weight: 760;
}

.room-members .room-member-name {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* The stage tab opens a full catalogue instead of squeezing rooms into the sidebar. */
.rooms-side-hint {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 18px 5px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}
.modal-backdrop .settings-card { max-height: calc(100vh - 92px); overflow-y: auto; }
.web-client .modal-backdrop .settings-card { max-height: calc(100dvh - 32px); }
.rooms-side-hint b { color: #d9dbe3; font-size: 12px; }
.rooms-side-hint span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.rooms-directory {
  height: 100%;
  overflow-y: auto;
  padding: 38px clamp(24px,4vw,58px) 46px;
  background: radial-gradient(circle at 78% 12%,rgba(var(--accent-rgb),.105),transparent 34%),linear-gradient(145deg,rgba(9,10,14,.98),rgba(11,13,18,.96));
}
.web-client .rooms-directory { padding-top: 78px; }
.rooms-directory-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto 30px;
}
.rooms-directory-header .eyebrow { margin: 0 0 8px; text-align: left; color: var(--accent2); }
.rooms-directory-header h1 { margin: 0 0 8px; font-size: clamp(27px,3vw,38px); letter-spacing: -.035em; }
.rooms-directory-header p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.rooms-directory-create {
  flex: none;
  padding: 12px 17px;
  border: 1px solid rgba(var(--accent-rgb),.42);
  border-radius: 14px;
  background: linear-gradient(135deg,var(--accent2),var(--accent));
  color: white;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(var(--accent-rgb),.18);
  transition: .2s;
}
.rooms-directory-create:hover { transform: translateY(-2px); filter: brightness(1.08); }
.rooms-directory-back { display: none; }
.room-card-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(260px,1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}
.room-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 24px;
  background: linear-gradient(145deg,rgba(27,29,37,.92),rgba(15,16,21,.94));
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  overflow: hidden;
  transition: .28s var(--epic);
}
.room-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 12% 5%,rgba(var(--accent-rgb),.14),transparent 40%); pointer-events: none; }
.room-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb),.38); box-shadow: 0 24px 65px rgba(0,0,0,.35),0 0 28px rgba(var(--accent-rgb),.06); }
.room-card.active { border-color: rgba(var(--accent-rgb),.72); box-shadow: 0 0 0 1px rgba(var(--accent-rgb),.18),0 22px 65px rgba(0,0,0,.35); }
.room-card-main { position: relative; display: flex; width: 100%; min-height: 258px; flex-direction: column; align-items: stretch; padding: 22px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.room-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.room-card-glyph { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(var(--accent-rgb),.32); border-radius: 15px; background: rgba(var(--accent-rgb),.12); color: var(--accent2); }
.room-card-glyph svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.room-card-badge { padding: 5px 8px; border: 1px solid rgba(255,255,255,.075); border-radius: 999px; background: rgba(255,255,255,.035); color: #878a96; font-size: 8px; font-weight: 850; letter-spacing: .11em; }
.room-card.active .room-card-badge { border-color: rgba(var(--accent-rgb),.34); color: var(--accent2); }
.room-card h2 { max-width: calc(100% - 28px); margin: 0 0 5px; overflow: hidden; color: #f2f3f7; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.room-card-count { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.room-card-people { display: flex; min-width: 0; align-items: center; gap: 12px; color: #b2b4be; font-size: 11px; }
.room-card-people>span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-card-people.empty { color: #696c78; }
.room-card-avatars { display: flex; flex: none; padding-left: 7px; }
.room-card-avatars .avatar,.room-card-more { width: 30px; height: 30px; margin-left: -7px; border: 2px solid #171920; border-radius: 10px; font-size: 9px; box-shadow: none; }
.room-card-more { display: grid; place-items: center; background: #292c35; color: #c7c9d1; font-weight: 800; }
.room-card-action { align-self: flex-start; margin-top: auto; padding-top: 21px; color: var(--accent2); font-size: 11px; font-weight: 850; }
.room-card-action::after { content: ' →'; }
.room-card-delete { position: absolute; z-index: 2; right: 17px; top: 79px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,87,96,.22); border-radius: 10px; background: rgba(109,25,32,.22); color: #cf6269; font-size: 18px; cursor: pointer; }
.room-card-delete:hover { background: #b92c38; color: white; }
.rooms-empty { max-width: 520px; margin: 90px auto 0; text-align: center; color: var(--muted); }
.room-empty-glyph { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border: 1px solid rgba(var(--accent-rgb),.2); border-radius: 24px; background: rgba(var(--accent-rgb),.07); color: var(--accent2); font-size: 38px; }
.rooms-empty h2 { margin: 0 0 8px; color: #dfe1e8; font-size: 20px; }
.rooms-empty p { margin: 0; font-size: 12px; }
.room-view>header { justify-content: space-between; }
.room-minimize-button { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.045); color: #a5a7b1; font-size: 11px; font-weight: 750; transition: .2s; }
.room-minimize-button b { color: var(--accent2); font-size: 17px; line-height: .7; }
.room-minimize-button:hover { border-color: rgba(var(--accent-rgb),.35); background: rgba(var(--accent-rgb),.09); color: white; }
.web-client .room-view>header { padding-right: 285px; }
@media(max-width:950px){.room-card-grid{grid-template-columns:1fr}.rooms-directory{padding-inline:24px}}
@media(max-width:700px){
  .rooms-directory{padding:20px 14px calc(24px + env(safe-area-inset-bottom))}.web-client .rooms-directory{padding-top:72px}
  .rooms-directory-header{display:grid;grid-template-columns:40px 1fr;gap:10px 12px;margin-bottom:20px}
  .rooms-directory-header>div{min-width:0}.rooms-directory-header h1{font-size:25px}.rooms-directory-header p:last-child{font-size:11px;line-height:1.45}
  .rooms-directory-back{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(255,255,255,.04);font-size:27px}
  .rooms-directory-create{grid-column:1/-1;width:100%}
  .room-card-main{min-height:230px;padding:18px}.room-card{border-radius:21px}.room-card-top{margin-bottom:18px}
  .room-minimize-button span{display:none}.room-minimize-button{width:40px;height:40px;justify-content:center;padding:0}.room-minimize-button b{font-size:20px}
  .web-client .room-view>header{padding-right:12px}
}

.room-members .owner-crown {
  flex: none;
  margin: 0;
}

.room-members .voice-state {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 2;
  margin: 0;
  padding: 3px 5px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(8,9,12,.88);
  font-size: 10px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.room-members .screen-live {
  position: absolute;
  z-index: 3;
  top: -7px;
  left: 50%;
  margin: 0;
  padding: 3px 7px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 16px rgba(var(--accent-rgb),.3);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
}

.room-members .sharing .room-member {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.14),0 9px 28px rgba(var(--accent-rgb),.2);
}

.room-members .sharing .room-member-identity {
  color: var(--accent2);
}

.member-volume-control {
  display: flex;
  width: 90px;
  align-items: center;
  gap: 4px;
}

.member-volume-control .member-volume {
  width: 62px;
  min-width: 0;
  height: 12px;
  margin: 0;
  accent-color: var(--accent);
}

.room-members .member-volume-value {
  width: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
  text-align: right;
}

#roomVoiceStage.compact .room-members {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(88px,98px));
  max-width: 330px;
  max-height: 42vh;
  overflow-y: auto;
}

#roomVoiceStage.compact .room-member-wrap {
  width: 98px;
}

@media(max-width:700px) {
  .room-members {
    width: min(330px,calc(100vw - 28px));
    grid-template-columns: repeat(auto-fit,minmax(82px,94px));
    gap: 14px 8px;
    padding: 0;
  }

  .room-members .room-member-wrap,
  #roomVoiceStage.compact .room-member-wrap {
    width: 94px;
  }
}

.auth-help {
  margin-top: 7px;
  color: var(--accent2);
}

.security-card {
  width: min(500px,100%);
}

.authenticator-key {
  display: grid;
  gap: 9px;
  margin: 18px 0 8px;
  padding: 15px;
  border: 1px solid rgba(var(--accent-rgb),.28);
  border-radius: 16px;
  background: rgba(var(--accent-rgb),.07);
}

.authenticator-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 16px 0 10px;
}

.authenticator-qr img {
  display: block;
  width: min(230px,65vw);
  height: auto;
  aspect-ratio: 1;
  padding: 9px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.3);
  image-rendering: pixelated;
}

.authenticator-qr small {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.authenticator-key > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.authenticator-key code {
  overflow-wrap: anywhere;
  color: var(--accent2);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.55;
  letter-spacing: .13em;
  user-select: all;
}

.authenticator-key .secondary {
  margin-top: 2px;
}

.security-note {
  margin: 10px 0 4px;
  color: #d6b967;
  font-size: 11px;
  line-height: 1.45;
}

.security-card input[autocomplete="one-time-code"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: .32em;
  text-align: center;
}

/* Precise range geometry: the filled rail reaches both endpoints under the thumb. */
input[type="range"] {
  --range-progress: 50%;
  -webkit-appearance: none;
  appearance: none;
  height: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: linear-gradient(to right,var(--accent) 0 var(--range-progress),rgba(255,255,255,.16) var(--range-progress) 100%);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 2px 10px rgba(var(--accent-rgb),.36);
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.2),0 2px 10px rgba(var(--accent-rgb),.36);
}

/* Message bubbles follow their content instead of stretching to the maximum width. */
.messages .message {
  align-self: flex-start;
  width: fit-content;
  min-width: 58px;
}

.messages .message.mine {
  align-self: flex-end;
}

/* The sender sees the same stream that is being transmitted. */
.call-overlay.active-call.self-screen-mode video#localVideo {
  display: block;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: inherit;
  object-fit: contain;
  background: #050608;
  box-shadow: none;
}

.call-overlay.self-screen-mode video#remoteVideo {
  opacity: 0;
}

.call-overlay.self-screen-mode .call-screen-volume {
  display: none;
}

.call-overlay.self-screen-mode:after {
  content: "Ваша демонстрация";
  position: absolute;
  z-index: 3;
  left: 14px;
  top: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  background: rgba(5,6,8,.7);
  color: #dce6ec;
  font-size: 10px;
  font-weight: 750;
  backdrop-filter: blur(12px);
}
