:root {
  --font-main: "Verdana", Verdana, Tahoma, sans-serif;
  --ii-app-height: 100dvh;
  --ii-app-width: 100vw;
  --ii-viewport-offset-top: 0px;
  --ii-android-bottom-guard: 24px;
  --page: #edf4f7;
  --surface: #ffffff;
  --surface-2: #f7fbfc;
  --surface-3: #eef6f8;
  --text: #405761;
  --muted: #7f929b;
  --faint: #9aaab1;
  --line: #dbe7ec;
  --line-strong: #c8d8df;
  --accent: #4aa6a2;
  --accent-strong: #2f7d79;
  --accent-soft: #e5f6f4;
  --blue: #5f95c8;
  --blue-soft: #eaf3fb;
  --green: #42a76f;
  --yellow: #c99635;
  --red: #d45b68;
  --nick-default: #173f74;
  --nick-member: #334155;
  --nick-guest: #64748b;
  --nick-admin: #b83c48;
  --nick-root: #b91c1c;
  --nick-blue-role: #1d4ed8;
  --nick-warm-role: #7c2d12;
  --nick-green-role: #047857;
  --nick-owner: #b45309;
  --nick-operator: #0f766e;
  --nick-staff: #7c3aed;
  --chat-nick-mine: #173f74;
  --chat-nick-other: #b83c48;
  --shadow: 0 16px 44px rgba(42, 70, 82, 0.12);
  --shadow-soft: 0 8px 22px rgba(42, 70, 82, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

img,
svg,
button,
.user-avatar,
.brand-mark,
.thinking-loader {
  -webkit-user-drag: none;
  user-drag: none;
}

img,
svg {
  user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 14px;
  user-select: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(105deg, rgba(255, 241, 246, 0.84) 0%, rgba(236, 248, 223, 0.82) 34%, rgba(230, 245, 255, 0.86) 66%, rgba(255, 246, 200, 0.84) 100%),
    linear-gradient(180deg, #fbfdff 0%, #eef7f9 58%, #ffffff 100%);
}

.login-screen.hidden {
  display: none;
}

.connection-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(2px);
}

body.connection-blocking .private-window,
body.connection-blocking .admin-window,
body.connection-blocking .private-dock,
body.connection-blocking .floating-video,
body.connection-blocking .user-context-menu {
  display: none !important;
}

.connection-overlay[hidden] {
  display: none;
}

.connection-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(360px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  padding: 24px 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.connection-card strong {
  color: #172b33;
  font-size: 18px;
}

.connection-card span {
  color: var(--muted);
  line-height: 1.35;
}

.connection-card button {
  min-height: 40px;
  border-radius: 8px;
  background: #1f6762;
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
}

.exit-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 31, 38, 0.52);
}

.exit-confirm-card {
  width: min(340px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid #cfe0e6;
  border-radius: 12px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 20px 54px rgba(18, 31, 38, 0.28);
}

.exit-confirm-card strong {
  color: #173f4a;
  font-size: 18px;
}

.exit-confirm-card p {
  margin: 0;
  color: #506872;
  line-height: 1.4;
}

.exit-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.exit-confirm-actions button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 850;
}

.exit-confirm-actions .secondary {
  border: 1px solid #c8dce3;
  background: #f4fafb;
  color: #48616b;
}

.exit-confirm-actions .primary {
  background: #1f6762;
  color: #ffffff;
}

.connection-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #d7ebe8;
  border-top-color: #2f7d79;
  border-radius: 50%;
  animation: connectionSpin 850ms linear infinite;
}

.room-ban-panel {
  position: absolute;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(24, 33, 38, 0.68);
  backdrop-filter: blur(3px);
}

.site-ban-panel {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 230, 178, 0.72), transparent 34%),
    linear-gradient(135deg, #fff3d4 0%, #f2b764 52%, #d98943 100%);
}

.ban-card {
  width: min(430px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(34, 47, 55, 0.26);
}

.ban-card .ban-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff0d9;
  color: #b75624;
  font-size: 26px;
}

.ban-card strong {
  color: #4d626c;
  font-size: 24px;
  font-weight: 850;
}

.ban-card p {
  margin: 0;
  color: #6d828a;
  line-height: 1.45;
}

.ban-card button {
  min-height: 40px;
  border: 1px solid #e0b26e;
  border-radius: 8px;
  padding: 0 16px;
  background: linear-gradient(180deg, #ffe3ad 0%, #e0a24c 100%);
  color: #5f3810;
  font-weight: 800;
}

.moderation-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(28, 39, 45, 0.54);
  backdrop-filter: blur(3px);
}

.moderation-dialog {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid #cfe0e6;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 249, 250, 0.98) 100%);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(35, 55, 64, 0.26);
}

.moderation-dialog p {
  margin: 0;
  color: #8ba0a8;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.moderation-dialog h2 {
  margin: 0;
  color: #4d6671;
  font-size: 24px;
}

.moderation-dialog > span {
  color: #6f858e;
  font-weight: 750;
}

.moderation-dialog label {
  display: grid;
  gap: 6px;
  color: #5d737d;
  font-weight: 800;
}

.moderation-dialog input,
.moderation-dialog textarea {
  width: 100%;
  border: 1px solid #d4e4ea;
  border-radius: 8px;
  background: #ffffff;
  color: #405761;
  padding: 10px 11px;
  resize: vertical;
}

.moderation-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.moderation-dialog button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 15px;
  font-weight: 850;
}

.moderation-dialog .primary {
  border: 1px solid #8fc9d6;
  background: linear-gradient(180deg, #8bd0de 0%, #55aabd 100%);
  color: #ffffff;
}

.moderation-dialog .secondary {
  border: 1px solid #d3e2e8;
  background: #ffffff;
  color: #778c95;
}

@keyframes connectionSpin {
  to {
    transform: rotate(360deg);
  }
}

.login-card {
  display: grid;
  grid-template-rows: 36px minmax(0, auto) minmax(32px, auto);
  width: min(430px, 100%);
  max-height: calc(100svh - 44px);
  overflow: hidden;
  border: 1px solid #bfd3dc;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 253, 254, 0.96) 100%);
  box-shadow: 0 24px 64px rgba(42, 70, 82, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: 0;
}

.login-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #c8dce3;
  background: linear-gradient(105deg, #fff1f6 0%, #ecf8df 35%, #e6f5ff 68%, #fff6c8 100%);
  color: #355e6b;
  padding: 0 8px 0 13px;
  user-select: none;
}

.login-titlebar strong {
  font-size: 13px;
  font-weight: 900;
}

.login-titlebar button {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 24px;
  border: 1px solid #e6bfc8;
  border-radius: 5px;
  background: linear-gradient(180deg, #fffafa 0%, #ffe7eb 100%);
  color: #9b4b57;
  font-size: 13px;
  font-weight: 900;
}

.login-window-body {
  min-height: 0;
  overflow: auto;
  padding: 26px 32px 22px;
  background:
    linear-gradient(90deg, rgba(255, 241, 242, 0.6) 0%, rgba(244, 251, 255, 0.62) 50%, rgba(251, 255, 248, 0.6) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 253, 254, 0.98));
  scrollbar-width: thin;
}

.login-window-body::-webkit-scrollbar {
  width: 7px;
}

.login-window-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c7d6dc;
}

.login-card h1 {
  margin: 0 auto 12px;
  color: #244552;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
}

.login-brand {
  display: table;
  position: relative;
  padding: 0 0 12px;
  color: transparent;
  background: linear-gradient(105deg, #d45b68 0%, #5f95c8 38%, #42a76f 72%, #c99635 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 950;
  text-shadow: 0 12px 30px rgba(42, 70, 82, 0.1);
}

.login-brand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 91, 104, 0.18), rgba(95, 149, 200, 0.72), rgba(66, 167, 111, 0.68), rgba(201, 150, 53, 0.2));
  transform: translateX(-50%);
}

.login-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.permission-note {
  border: 1px solid #cfe3ec;
  border-radius: 8px;
  background: linear-gradient(105deg, #fffafa 0%, #f4fbff 50%, #fbfff8 100%);
  color: #7f939d;
  padding: 11px 12px;
}

.login-card label,
.room-admin label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.login-card label {
  position: relative;
  color: #667d88;
  font-weight: 700;
}

.login-card .auth-field {
  margin: 12px 0;
}

.auth-field::before {
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #5f95c8;
  font-size: 17px;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-field.user-field::before {
  content: "♙";
}

.auth-field.lock-field::before {
  content: "🔒";
  font-size: 15px;
}

.auth-field.mail-field::before {
  content: "@";
  font-size: 16px;
  font-weight: 900;
}

.auth-field.link-field::before {
  content: "↗";
  font-size: 18px;
  font-weight: 900;
}

input,
select,
.message span,
.private-message span {
  user-select: text;
}

input,
select {
  min-height: 36px;
  border: 1px solid #cfe1e8;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  outline: none;
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 3px 10px rgba(52, 93, 106, 0.04);
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 166, 162, 0.16);
}

.login-card input,
.room-admin input,
.composer input,
.smiley-panel input {
  width: 100%;
}

.login-card input {
  min-height: 46px;
  border-color: #d5e4e9;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: #385660;
  padding: 10px 13px 10px 44px;
}

.login-card input::placeholder {
  color: #c1cfd5;
  opacity: 0.78;
}

.login-card input:focus {
  border-color: #70b8b4;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(74, 166, 162, 0.13), 0 0 0 6px rgba(95, 149, 200, 0.08);
}

.room-admin button,
.composer button,
.panel-action {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(118, 210, 224, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.16) 42%, rgba(255, 255, 255, 0.06) 43%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(180deg, #55d4d0 0%, #21a9c7 52%, #117da4 100%);
  color: #fff;
  padding: 0 14px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 11px 18px rgba(255, 255, 255, 0.15),
    inset 0 -10px 16px rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(20, 126, 162, 0.24);
}

.composer button::before,
.panel-action::before {
  content: "";
  position: absolute;
  inset: 1px 1px 50%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.login-card button {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border-radius: 4px;
  font-size: 16px;
}

.login-card .login-titlebar button {
  width: 25px;
  min-height: 24px;
  margin-top: 0;
  border-radius: 5px;
  padding: 0;
  font-size: 13px;
}

.login-submit {
  position: relative;
  overflow: hidden;
  border: 1px solid #95c87e;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.12) 48%, rgba(0, 0, 0, 0.05) 100%),
    linear-gradient(105deg, #fff1f6 0%, #ecf8df 32%, #e6f5ff 68%, #fff6c8 100%);
  color: #1f6d3f;
  padding: 0 16px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 1px 0 0 rgba(255, 255, 255, 0.38),
    inset -1px -1px 0 rgba(66, 167, 111, 0.22),
    0 2px 0 #95c87e,
    0 0 12px rgba(230, 245, 255, 0.44),
    0 8px 18px rgba(42, 70, 82, 0.1);
}

.login-submit:hover {
  border-color: #70b8b4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.2) 48%, rgba(0, 0, 0, 0.04) 100%),
    linear-gradient(105deg, #fffafa 0%, #ddf2d2 34%, #ddf1fb 68%, #fff6c8 100%);
  color: #185d32;
}

.login-submit::before {
  content: "";
  position: absolute;
  inset: 1px 1px 50%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

.login-submit:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 8px rgba(45, 96, 28, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 #3d8335;
}

.login-card.hidden {
  display: none;
}

.auth-switch {
  margin: 0;
  color: #778d97;
  font-size: 13px;
  text-align: center;
}

.login-submit + .auth-switch {
  margin-top: 42px !important;
}

.auth-link {
  color: #247d9a;
  padding: 0;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 125, 154, 0.45);
}

.auth-link:hover {
  color: #17627a;
  border-bottom-color: currentColor;
}

.room-admin button:hover,
.composer button:hover,
.panel-action:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.06) 43%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, #45ccc9 0%, #179abd 52%, #0f7198 100%);
}

.composer button:active,
.panel-action:active,
.panel-action.talk-queued {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 3px 8px rgba(22, 91, 86, 0.16);
}

.login-message {
  display: flex;
  align-items: center;
  min-height: 32px;
  border-top: 1px solid #d2e4e9;
  background: linear-gradient(105deg, #fff1f2 0%, #f4fbff 48%, #fbfff8 100%);
  color: #5f7782;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.login-message[data-status="error"] {
  color: #9b382f;
}

.login-message[data-status="success"] {
  color: #276d3b;
}

.login-message[data-status="info"] {
  color: #386e85;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.mark.has-logo {
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.mark.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.mark.large {
  width: 46px;
  height: 46px;
  font-size: 24px;
}

.chat-shell {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 4px;
  width: 100vw;
  height: 100vh;
  padding: 6px;
}

.side,
.conversation {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 1px solid #bfd3dc;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(42, 70, 82, 0.1);
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: calc(100vh - 12px);
  overflow: hidden;
}

.side {
  overflow: auto;
}

body:not(.mobile-layout) .side {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 12px);
  overflow: hidden;
}

.mobile-sheet-head,
.mobile-sheet-backdrop,
.mobile-action-bar,
.mobile-rail-logo,
.mobile-rail-toggle {
  display: none;
}

.mobile-action-bar .mobile-nav-tool,
.mobile-action-bar .mobile-primary-tool {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(105deg, #fff1f6 0%, #ecf8df 36%, #e6f5ff 68%, #fff6c8 100%);
  font-family: var(--font-main);
}

.brand-copy {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.thinking-loader {
  position: relative;
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  margin-left: auto;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
}

.thinking-loader::after {
  content: none;
}

.thinking-loader canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tabs {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0;
  padding: 8px 10px 0;
  border-bottom: 1px solid #bfd6dc;
  background: linear-gradient(180deg, #f8fcfd 0%, #edf6f8 100%);
}

.tab {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 38px;
  min-height: 38px;
  margin-right: 3px;
  border: 1px solid #c8dce3;
  border-bottom-color: #bfd6dc;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #eef5f7 100%);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.tab img,
.friend-tab-icon {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
  pointer-events: none;
}

.tab.rooms-tab {
  background: linear-gradient(180deg, #fffafa 0%, #fff1f2 100%);
  border-color: #efd5dc;
}

.tab.users-tab {
  background: linear-gradient(180deg, #f7fcff 0%, #eaf6fb 100%);
  border-color: #cfe3ec;
}

.tab.friends-tab {
  background: linear-gradient(180deg, #fbfff8 0%, #e5f6d9 100%);
  border-color: #b9dda9;
}

.tab.add-room-tab {
  margin-left: auto;
  margin-right: 0;
  background: linear-gradient(180deg, #fffdf7 0%, #fff1cf 100%);
  border-color: #e6c777;
}

.theme-tab {
  margin-left: auto;
  background: linear-gradient(180deg, #ffffff 0%, #eef5f7 100%);
  border-color: #c8dce3;
}

.theme-toggle-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 36px;
  min-height: 36px;
  margin-left: auto;
  margin-right: 0;
  border: 1px solid #c8dce3;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5f7 100%);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.theme-toggle-button:hover {
  transform: translateY(-1px);
}

.theme-toggle-button.active {
  border-color: #486b76;
  background: linear-gradient(180deg, #203941 0%, #14232b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 10px rgba(0, 0, 0, 0.18);
}

.tab.add-room-tab:not([hidden]) + .theme-tab {
  margin-left: 3px;
}

.theme-moon-icon {
  display: block;
  width: 19px;
  height: 22px;
  fill: #5f95c8;
  filter: drop-shadow(0 2px 4px rgba(42, 70, 82, 0.16));
}

.friend-tab-icon {
  position: relative;
  width: 25px;
  height: 22px;
}

.friend-tab-icon::before,
.friend-tab-icon::after {
  content: "";
  position: absolute;
  bottom: 2px;
  border-radius: 999px 999px 7px 7px;
  background: linear-gradient(180deg, #64b96a 0%, #2f7b39 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.friend-tab-icon::before {
  left: 2px;
  width: 12px;
  height: 13px;
}

.friend-tab-icon::after {
  right: 2px;
  width: 14px;
  height: 16px;
}

.friend-tab-icon {
  filter: drop-shadow(0 2px 3px rgba(56, 111, 52, 0.22));
}

.tab:hover {
  transform: translateY(-1px);
}

.tab.rooms-tab:hover {
  background: linear-gradient(180deg, #ffffff 0%, #ffe7eb 100%);
}

.tab.users-tab:hover {
  background: linear-gradient(180deg, #ffffff 0%, #ddf1fb 100%);
}

.tab.friends-tab:hover {
  background: linear-gradient(180deg, #ffffff 0%, #ddf2d2 100%);
}

.tab.add-room-tab:hover {
  background: linear-gradient(180deg, #ffffff 0%, #ffe7a3 100%);
}

.tab.active {
  position: relative;
  z-index: 1;
  border-bottom-color: transparent;
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 -1px 5px rgba(73, 116, 132, 0.08);
}

.tab.rooms-tab.active {
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
  border-color: #e6bfc8;
  border-bottom-color: transparent;
}

.tab.users-tab.active {
  background: linear-gradient(180deg, #ffffff 0%, #eaf6fb 100%);
  border-color: #a9d3e1;
  border-bottom-color: transparent;
}

.tab.friends-tab.active {
  background: linear-gradient(180deg, #ffffff 0%, #ddf3d5 100%);
  border-color: #95c87e;
  border-bottom-color: transparent;
}

.tab.add-room-tab.active {
  transform: translateY(0);
}

.tab-panel {
  display: none;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: 10px;
}

.tab-panel.active {
  display: flex;
  flex-direction: column;
}

.side #roomsPanel {
  background: linear-gradient(90deg, #fff1f2 0%, #fff7f8 56%, #fffafa 100%);
}

.side #usersPanel {
  background:
    linear-gradient(90deg, rgba(234, 246, 251, 0.88) 0%, rgba(243, 251, 255, 0.74) 58%, rgba(251, 253, 255, 0.82) 100%),
    url("../img/userlist_bg.jpg") center / cover no-repeat;
}

.side #friendsPanel {
  background: linear-gradient(90deg, #e9f8df 0%, #f4fdee 58%, #fbfff8 100%);
}

.side #settingsPanel {
  background: linear-gradient(90deg, #f4fbff 0%, #f8fdff 58%, #ffffff 100%);
}

.room-list-filter {
  display: block;
  flex: 0 0 auto;
  margin: 0 0 7px;
}

.room-list-filter input {
  width: 100%;
  height: 28px;
  border: 1px solid #efd5dc;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: #7c1f1f;
  padding: 0 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  outline: none;
}

.room-list-filter input:focus {
  border-color: #e6a0ac;
  box-shadow: 0 0 0 2px rgba(244, 177, 190, 0.26);
}

.mobile-audio-settings {
  display: grid;
  gap: 10px;
  min-height: 100%;
  align-content: start;
  border: 1px solid #c7dce6;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff 0%, #eef8fb 100%);
  padding: 10px;
}

.mobile-audio-settings[hidden] {
  display: none;
}

.mobile-audio-settings label {
  display: grid;
  gap: 5px;
  color: #355e6b;
  font-size: 12px;
  font-weight: 900;
}

.mobile-audio-settings select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #a8c1ca;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #edf6f8 100%);
  color: #244f59;
  padding: 0 8px;
  font: 800 12px var(--font-main);
}

.list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 7px;
  max-height: 100%;
  overflow: auto;
  padding-right: 2px;
}

.side #roomsList,
.side #usersList {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--radius-sm);
}

body:not(.mobile-layout) .side #roomsList,
body:not(.mobile-layout) .side #usersList,
body:not(.mobile-layout) .side #friendsList {
  flex: 1 1 auto;
  height: 100%;
}

.side #roomsList {
  border: 1px solid #efd5dc;
  background: linear-gradient(90deg, #fff1f2 0%, #fff7f8 58%, #fffafa 100%);
  padding: 8px;
}

.side #usersList {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(139, 177, 188, 0.46);
  background: linear-gradient(180deg, #f8fdff 0%, #eef8fb 100%);
  padding: 7px 6px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(89, 126, 139, 0.28) transparent;
}

.side #usersList::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--user-list-background-image, none) center / cover no-repeat;
}

.side #usersList::-webkit-scrollbar {
  width: 4px;
}

.side #usersList::-webkit-scrollbar-track {
  background: transparent;
}

.side #usersList::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(89, 126, 139, 0.22);
}

.side #usersList:hover::-webkit-scrollbar-thumb {
  background: rgba(89, 126, 139, 0.36);
}

.side #friendsList {
  min-height: 100%;
  border: 1px solid #cfe6c5;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #eaf8df 0%, #f5fdee 58%, #fbfff8 100%);
  padding: 8px 6px;
}

.list::-webkit-scrollbar,
.messages::-webkit-scrollbar,
.smiley-grid::-webkit-scrollbar {
  width: 8px;
}

.list::-webkit-scrollbar-thumb,
.messages::-webkit-scrollbar-thumb,
.smiley-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c7d6dc;
}

.list-item {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
}

button.list-item:hover,
.list-item.active {
  border-color: #b9d9d6;
  background: var(--accent-soft);
}

.room-list-item.room-private {
  border-color: #eadfb5;
  background: linear-gradient(180deg, #ffffff 0%, #fffbe8 100%);
}

.room-list-item.room-private .room-icon {
  background: linear-gradient(180deg, #fffdf0 0%, #f4e8b8 100%);
}

.room-list-item.room-locked {
  border-color: #efc7b8;
  background: linear-gradient(180deg, #ffffff 0%, #fff3ee 100%);
}

.room-list-item.room-locked .room-icon {
  background: linear-gradient(180deg, #fff7f3 0%, #f8d8c9 100%);
}

.room-list-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.room-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #9fcfe6;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, #e8f7ff 0%, #bfe4f5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 10px rgba(54, 118, 150, 0.16);
}

.room-icon::before {
  content: "";
  position: absolute;
  inset: 8px 7px 11px;
  border: 2px solid #2f83ad;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffffff 0%, #d7eff8 100%);
}

.room-icon::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 7px;
  width: 8px;
  height: 6px;
  border-left: 2px solid #2f83ad;
  border-bottom: 2px solid #2f83ad;
  transform: skewX(-28deg);
}

.room-icon span {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 14px;
  height: 2px;
  border-radius: 999px;
  background: #2f83ad;
  box-shadow: 0 5px 0 #73b4d1;
}

.room-icon.has-room-profile {
  overflow: hidden;
  border-color: #c7dbe3;
  background: #ffffff;
}

.room-icon.has-room-profile::before,
.room-icon.has-room-profile::after {
  display: none;
}

.room-icon.has-room-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.room-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.room-main strong,
.room-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-count {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 26px;
  border: 1px solid #bad8e3;
  border-radius: 999px;
  background: #f2f9fb;
  color: #356f83;
  font-size: 12px;
  font-weight: 800;
}

.list-item strong {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item span,
.list-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.users-panel-inner {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  height: 100%;
}

#talkButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  border-radius: 5px;
  font-size: 15px;
  letter-spacing: 0;
  opacity: 1;
  text-shadow: none;
  touch-action: manipulation;
  user-select: none;
}

#talkButton > *,
#mobileTalkButton > * {
  pointer-events: none;
}

#talkButton .tool-media-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 3px 8px rgba(10, 36, 43, 0.18);
}

#talkButton:hover,
#talkButton:focus-visible {
  opacity: 0.96;
}

.user-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  min-width: 0;
  padding-top: 6px;
  padding-bottom: 6px;
}

.list-item.user-row {
  min-height: 32px;
  padding: 4px 8px;
}

#usersList {
  align-content: start !important;
  grid-auto-rows: max-content !important;
  gap: 2px !important;
}

#usersList .list-item.user-row {
  position: relative;
  z-index: 1;
  grid-template-columns: 35px minmax(0, 1fr) max-content !important;
  column-gap: 4px !important;
  min-height: 44px !important;
  height: 44px !important;
  max-height: 44px !important;
  padding: 5px 9px !important;
  border-color: transparent !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none;
  align-items: center !important;
  overflow: hidden !important;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

#usersList .list-item.user-row.selected,
#usersList .list-item.user-row:focus-visible {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: inset 3px 0 0 var(--accent-strong), 0 5px 12px rgba(47, 125, 121, 0.12);
}

#usersList .list-item.user-row.bot-user {
  border-color: transparent !important;
  background: transparent !important;
}

#usersList .list-item.user-row.bot-user .user-nick {
  color: #176a71 !important;
}

.user-row.speaking {
  border-color: #9fd4b6;
  background: #f0fbf5;
}

#usersList .list-item.user-row.speaking {
  border-color: #9fd4b6 !important;
  background: #f0fbf5 !important;
}

#usersList .list-item.user-row.current-speaker-user {
  border-color: #d75f66 !important;
  background: linear-gradient(180deg, #fff6f6 0%, #ffe4e6 100%) !important;
  box-shadow: inset 4px 0 0 #d84f5d, 0 7px 16px rgba(174, 58, 70, 0.16);
}

#usersList .list-item.user-row.current-speaker-user .user-nick {
  color: #9d2632 !important;
  font-weight: 900;
}

#usersList .list-item.user-row.queued-user {
  border-color: #9fcbe8 !important;
  background: linear-gradient(180deg, #f6fbff 0%, #e4f2ff 100%) !important;
  box-shadow: inset 4px 0 0 #5f9fd1, 0 5px 12px rgba(72, 131, 179, 0.12);
}

#usersList .list-item.user-row.queued-user .user-nick {
  color: #245f93 !important;
  font-weight: 850;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  color: #356f9f;
  font-size: 10px;
  font-weight: 900;
  box-shadow:
    0 0 11px rgba(38, 143, 154, 0.48),
    0 0 18px rgba(213, 155, 47, 0.22),
    0 4px 10px rgba(26, 72, 88, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.user-avatar.has-photo {
  overflow: hidden;
  padding: 0;
  background: #ffffff !important;
  border-radius: 50%;
}

.user-avatar.has-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

#usersList .user-avatar {
  width: 30px !important;
  height: 30px !important;
  font-size: 12px !important;
  line-height: 30px !important;
  flex: 0 0 30px;
  transform: translate(0, -1px);
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 14px rgba(38, 143, 154, 0.52),
    0 0 24px rgba(213, 155, 47, 0.24),
    0 5px 12px rgba(24, 68, 84, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

#usersList .user-avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transform: translate(0, -1px);
}

#usersList .user-avatar-wrap .user-avatar {
  transform: none;
}

#usersList .user-avatar-wrap .user-avatar.has-photo {
  width: 30px !important;
  height: 30px !important;
  overflow: hidden;
  background: transparent !important;
}

#usersList .user-avatar-wrap .user-avatar.has-photo img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  clip-path: none;
}

#usersList .user-avatar-wrap .avatar-status-dot {
  position: absolute;
  z-index: 2;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(18, 46, 57, 0.22);
}

.user-main {
  display: grid;
  align-content: center;
  min-width: 0;
}

.user-main .user-nick {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--nick-default);
  font-size: 13px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-nick-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
}

.user-row.admin-user .user-nick {
  color: var(--nick-admin);
}

.user-row.role-root-user .user-nick {
  color: var(--nick-root);
}

.user-row.role-admin-user .user-nick {
  color: var(--nick-blue-role);
}

.user-row.role-superadmin-user .user-nick {
  color: var(--nick-warm-role);
}

.user-row.role-moderator-user .user-nick {
  color: var(--nick-green-role);
}

.user-row.role-owner-user .user-nick {
  color: var(--nick-owner);
}

.user-row.role-operator-user .user-nick {
  color: var(--nick-operator);
}

.user-row.role-staff-user .user-nick {
  color: var(--nick-staff);
}

.user-row.role-member-user .user-nick {
  color: var(--nick-member);
}

.user-row.role-guest-user .user-nick {
  color: var(--nick-guest);
}

.user-row.ignored-user .user-nick {
  color: #7f5c64;
  text-decoration: line-through;
}

.user-row.invisible-user .user-nick,
.user-row.invisible-user small {
  font-style: italic;
}

.user-row.invisible-self-user .user-nick::after {
  content: " (Invisible)";
  color: #8b6a2c;
  font-size: 11px;
  font-style: italic;
  font-weight: 700;
}

#usersList .user-main .user-nick {
  font-size: 13px !important;
  line-height: 17px !important;
  height: 17px !important;
  letter-spacing: 0 !important;
}

#usersList .user-main {
  height: 31px;
  grid-template-rows: 17px 12px;
  row-gap: 0;
  transform: translateY(-1px);
}

#usersList .user-main small {
  display: block !important;
  font-size: 11px !important;
  line-height: 12px !important;
  height: 12px !important;
  color: #6f8790 !important;
}

.user-main small {
  display: none;
}

.user-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: max-content;
}

#usersList .user-actions {
  gap: 6px !important;
  height: 28px !important;
  overflow: hidden !important;
}

#usersList .camera-watch,
#usersList .camera-icon-button {
  width: 28px !important;
  height: 28px !important;
}

.friends-panel-note,
.friends-empty {
  border: 1px solid #cfe6c5;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  color: #52745a;
  padding: 9px 10px;
  font-size: 12px;
}

.friend-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  border-color: #cfe6c5;
  background: linear-gradient(180deg, #ffffff 0%, #f1faec 100%);
}

.friend-row.friend-added {
  border-color: #a9d89a;
  background: linear-gradient(180deg, #fbfff8 0%, #e3f6d8 100%);
}

.friend-main {
  min-width: 0;
}

.friend-main strong,
.friend-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-main strong {
  color: #315e38;
  font-size: 13px;
}

.friend-main small {
  color: #6a8971;
  font-size: 11px;
}

.friend-actions {
  display: inline-flex;
  gap: 6px;
}

.friend-row button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: var(--radius-sm);
  padding: 0;
}

.friend-row button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.friend-write {
  background: linear-gradient(180deg, #e5f7db 0%, #bfe6b1 100%);
  color: #356024;
}

.friend-remove {
  background: linear-gradient(180deg, #ffe7e7 0%, #f4b8b8 100%);
  color: #8f2525;
}

.friend-request-window {
  width: min(360px, calc(100vw - 28px)) !important;
  min-width: min(360px, calc(100vw - 28px)) !important;
  height: 190px !important;
  min-height: 0 !important;
}

.friend-request-window .admin-window-body {
  min-height: 0 !important;
}

.friend-request-form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 6px;
  padding: 8px 10px;
  color: #34444b;
  font-size: 12px;
}

.friend-request-form p {
  margin: 0;
}

.friend-request-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.friend-request-form footer button {
  min-height: 28px;
  padding: 0 10px;
}

.list-item.user-row .status-dot {
  width: 7px;
  height: 7px;
}

.list-item.user-row .avatar-status-dot {
  width: 11px;
  height: 11px;
}

.list-item.user-row .voice-bars {
  height: 20px;
  min-width: 36px;
}

.list-item.user-row .voice-bars i {
  width: 4px;
}

.list-item.user-row .queue-badge {
  min-height: 22px;
  border-color: #8ebde3;
  background: linear-gradient(180deg, #f2f8ff 0%, #dcecf9 100%);
  color: #235f96;
  padding: 0 7px;
  font-size: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.list-item.user-row .moderation-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #906f12;
  font-size: 25px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(61, 73, 79, 0.18));
}

.list-item.user-row .moderation-badge.room-mute {
  color: #9a6800;
}

.list-item.user-row .moderation-badge.site-mute {
  color: #9f1f2b;
}

.list-item.user-row .media-block-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.list-item.user-row .media-block-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.handup-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  transform-origin: center bottom;
  animation: handupPulse 0.95s ease-in-out infinite;
  will-change: opacity, transform;
}

.moderation-badge .desk-clock {
  animation: deskClockPulse 1.15s ease-in-out infinite;
}

@keyframes deskClockPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.68;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes handupPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(1px) scale(0.92);
  }

  50% {
    opacity: 1;
    transform: translateY(-1px) scale(1.1);
  }
}

.room-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px 12px;
  border-bottom: 1px solid #b9d0da;
  background:
    linear-gradient(90deg, rgba(244, 249, 255, 0.88), rgba(231, 241, 255, 0.74) 54%, rgba(255, 251, 232, 0.82)),
    url("../img/room_top_bar.jpg") center / cover no-repeat;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.9);
  font-family: var(--font-main);
}

.room-title-block {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

.room-head h1 {
  margin: 0 0 5px;
  overflow: hidden;
  color: #2f3438;
  font-size: 22px;
  line-height: 1.12;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(255, 224, 98, 0.62),
    0 0 32px rgba(255, 244, 186, 0.82);
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: roomTitleNeonPulse 10s ease-in-out infinite;
}

@keyframes roomTitleNeonPulse {
  0%,
  82%,
  100% {
    text-shadow:
      0 2px 10px rgba(0, 0, 0, 0.22),
      0 0 18px rgba(255, 224, 98, 0.62),
      0 0 32px rgba(255, 244, 186, 0.82);
  }

  87% {
    text-shadow:
      0 2px 12px rgba(0, 0, 0, 0.2),
      0 0 14px rgba(255, 213, 44, 0.92),
      0 0 30px rgba(255, 232, 97, 0.96),
      0 0 48px rgba(255, 250, 203, 0.94);
  }

  91% {
    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.2),
      0 0 7px rgba(255, 219, 62, 0.46),
      0 0 18px rgba(255, 246, 187, 0.6);
  }

  95% {
    text-shadow:
      0 2px 12px rgba(0, 0, 0, 0.18),
      0 0 18px rgba(255, 216, 45, 0.92),
      0 0 34px rgba(255, 237, 107, 0.96),
      0 0 54px rgba(255, 252, 215, 0.92);
  }
}

.room-welcome,
.room-topic {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  max-width: min(620px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-topic {
  margin-top: 3px;
  color: var(--faint);
  font-size: 12px;
}

.room-welcome .inline-smile,
.room-welcome-card .inline-smile {
  max-width: 20px;
  max-height: 20px;
  margin: 0 2px;
}

.room-meta {
  flex: 0 0 max-content;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  align-content: flex-start;
  gap: 7px;
  margin-left: auto;
  max-width: max-content;
  min-width: max-content;
}

.room-meta > * {
  flex: 0 0 auto;
}

.speaker-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid #8ad6cc;
  border-radius: 5px;
  background: linear-gradient(180deg, #f1fffc 0%, #d8f6ef 100%);
  color: #12665f;
  padding: 0 10px;
  box-shadow: 0 5px 14px rgba(31, 103, 98, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.speaker-indicator[hidden] {
  display: none;
}

.speaker-action-row {
  flex: 0 0 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 0;
}

.speaker-action-row:has(.speaker-indicator:not([hidden])) {
  min-height: 30px;
}

.speaker-indicator b {
  max-width: 150px;
  overflow: hidden;
  color: #0f7b72;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speaker-indicator img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(47, 173, 157, 0.48));
  animation: speakerMicBlink 920ms ease-in-out infinite;
}

.room-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 26px;
  border: 1px solid #b92f3b;
  border-radius: 5px;
  background: linear-gradient(180deg, #f05b64 0%, #c93643 100%);
  color: #ffffff;
  padding: 0 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 3px 9px rgba(173, 35, 49, 0.26);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

.room-logout-button:hover {
  background: linear-gradient(180deg, #ff6871 0%, #b92735 100%);
}

.room-admin-button {
  min-width: 76px;
  min-height: 26px;
  border: 1px solid #2f8b7d;
  border-radius: 5px;
  background: linear-gradient(180deg, #65d4bf 0%, #249d91 100%);
  color: #ffffff;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 6px rgba(37, 120, 112, 0.16);
}

.room-admin-button:hover {
  background: linear-gradient(180deg, #78dfcd 0%, #1d877d 100%);
}

.room-button-style-bar {
  display: none;
}

body.room-style-button:not(.mobile-layout) .room-head {
  min-height: var(--room-style-head-height, 92px);
  padding: 8px;
}

body.room-style-button:not(.mobile-layout) .room-title-block,
body.room-style-button:not(.mobile-layout) .room-meta {
  visibility: hidden;
  pointer-events: none;
}

body.room-style-button:not(.mobile-layout) .room-button-style-bar {
  position: absolute;
  inset: 7px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
}

body.room-style-button:not(.mobile-layout) .room-button-style-rooms {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  align-content: flex-start;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  padding: 3px;
}

.room-style-room-button {
  flex: 0 0 var(--room-style-button-basis, 128px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  height: var(--room-style-button-height, 64px);
  min-height: 0;
  border: 1px solid #9fcfe0;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, hsla(var(--room-tone, 188), 58%, 91%, 0.92) 100%),
    hsl(var(--room-tone, 188), 68%, 94%);
  color: hsl(var(--room-tone, 188), 34%, 31%);
  padding: 4px 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 3px 8px hsla(var(--room-tone, 188), 36%, 36%, 0.13);
  font-family: var(--font-main);
  cursor: pointer;
}

.room-style-room-button strong,
.room-style-room-button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-style-room-button strong {
  color: hsl(var(--room-tone, 188), 38%, 29%);
  font-size: 13px;
  font-weight: 900;
}

.room-style-room-button span {
  min-width: 40px;
  border: 1px solid hsla(var(--room-tone, 188), 42%, 64%, 0.42);
  border-radius: 999px;
  background: hsla(var(--room-tone, 188), 70%, 97%, 0.34);
  color: hsl(var(--room-tone, 188), 32%, 36%);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
}

.room-style-room-button.active {
  border-color: hsl(var(--room-tone, 188), 50%, 48%);
  background:
    linear-gradient(180deg, hsla(var(--room-tone, 188), 86%, 97%, 0.98) 0%, hsla(var(--room-tone, 188), 72%, 82%, 0.96) 100%),
    hsl(var(--room-tone, 188), 72%, 88%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 2px hsla(var(--room-tone, 188), 58%, 56%, 0.23);
}

.room-style-room-button:hover {
  transform: translateY(-1px);
}

body.room-style-button:not(.mobile-layout) .room-button-style-rooms.compact-room-buttons {
  align-content: stretch;
}

body.room-style-button:not(.mobile-layout) .room-button-style-rooms.compact-room-buttons .room-style-room-button {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 3px 5px;
}

body.room-style-button:not(.mobile-layout) .room-button-style-rooms.compact-room-buttons .room-style-room-button strong {
  font-size: 12px;
  line-height: 1.1;
}

body.room-style-button:not(.mobile-layout) .room-button-style-rooms.compact-room-buttons .room-style-room-button span {
  display: none;
}

.room-style-empty {
  display: grid;
  place-items: center;
  min-width: 120px;
  color: #6f8790;
  font-size: 12px;
  font-weight: 700;
}

body.room-style-button:not(.mobile-layout) .room-button-style-actions {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  align-self: stretch;
  border: 1px solid #b8d6df;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #edf7fa 100%);
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 8px rgba(51, 98, 116, 0.12);
}

body.room-style-button:not(.mobile-layout) .room-button-style-actions .room-logout-button,
body.room-style-button:not(.mobile-layout) .room-button-style-actions .room-admin-button {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0 6px;
}

body.room-style-button:not(.mobile-layout) .room-button-style-actions .room-admin-button[hidden] {
  display: none;
}

body.room-style-button:not(.mobile-layout) .room-button-style-actions:has(.room-admin-button[hidden]) {
  grid-template-rows: 1fr;
}

body.room-style-button:not(.mobile-layout) .tab.rooms-tab,
body.room-style-button:not(.mobile-layout) #roomsPanel {
  display: none !important;
}

.room-menu-button {
  display: none;
}

@keyframes speakerMicBlink {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.9);
  }

  45% {
    opacity: 1;
    transform: scale(1.13);
  }
}

.meta-pill,
.queue-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border: 1px solid #8fb5c1;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffffff 0%, #edf6f8 100%);
  color: #45636f;
  padding: 0 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(48, 80, 92, 0.12);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.meta-pill b {
  color: #244f63;
}

#roomStatus {
  border-color: #3f7f47;
  background: linear-gradient(180deg, #f2fff3 0%, #dcefdc 100%);
  color: #1f6428;
}

.room-owner-pill b {
  max-width: 120px;
  overflow: hidden;
  color: #0b8bba;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-owner-prefix {
  color: #6f8790;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.media-panel {
  padding: 9px 17px;
  border-bottom: 1px solid #bfd5dc;
  background: linear-gradient(90deg, #e7f0f2 0%, #f0f6f6 52%, #f8fbf8 100%);
  color: #54707a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 -1px 0 rgba(126, 154, 164, 0.08);
}

.media-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audio-source-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.audio-source-controls[hidden] {
  display: none;
}

.audio-source-controls label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #47636d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.audio-source-controls select {
  width: min(210px, 28vw);
  min-width: 130px;
  height: 28px;
  border: 1px solid #a8c1ca;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #edf6f8 100%);
  color: #244f59;
  padding: 0 7px;
  font: 700 11px var(--font-main);
}

.audio-settings-toggle {
  color: #245f93;
}

.audio-settings-icon {
  width: 21px;
  height: 21px;
  overflow: visible;
}

.audio-settings-icon circle {
  fill: #8b5cf6;
  stroke: #111827;
  stroke-width: 2;
}

.audio-settings-icon path {
  fill: none;
  stroke: #111827;
  stroke-width: 4;
  stroke-linecap: round;
}

.audio-settings-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 35;
  width: min(360px, 90vw);
  border: 1px solid #b8d1da;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #edf8fb 100%);
  box-shadow: 0 16px 34px rgba(38, 77, 84, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 10px;
}

.audio-settings-popover[hidden] {
  display: none;
}

.audio-settings-popover .audio-source-controls {
  display: grid;
  gap: 8px;
}

.audio-settings-popover .audio-source-controls[hidden] {
  display: none;
}

.audio-settings-popover .audio-source-controls label {
  display: grid;
  gap: 5px;
  font-size: 12px;
}

.audio-settings-popover .audio-source-controls select {
  width: 100%;
  min-width: 0;
  height: 34px;
  font-size: 12px;
}

@media (max-width: 860px) {
  .media-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .audio-source-controls {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .audio-source-controls select {
    width: 168px;
  }
}

.messages {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  height: auto;
  min-height: 0;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  overflow-x: hidden;
  margin: 0 6px 10px;
  border: 1px solid #c5d9e1;
  border-radius: 7px;
  padding: 14px 16px 16px 8px;
  background: #f1f7f9;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.room-ad-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(246, 252, 252, 0.96), rgba(238, 247, 255, 0.96));
}

.room-ad-card {
  position: relative;
  width: min(680px, 100%);
  max-height: 100%;
  display: grid;
  gap: 12px;
  overflow: auto;
  border: 1px solid rgba(54, 132, 144, 0.3);
  border-radius: 8px;
  background: #ffffff;
  color: #234148;
  padding: 16px;
  box-shadow: 0 24px 54px rgba(39, 91, 104, 0.18);
}

.room-ad-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
  border: 1px solid #d7e6eb;
  border-radius: 7px;
  background: #ffffff;
  color: #6f858d;
  font-weight: 900;
}

.room-ad-image {
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: #eef6f8;
}

.room-ad-image img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.room-ad-frame {
  width: 100%;
  min-height: 360px;
  border: 1px solid #d7e6eb;
  border-radius: 7px;
  background: #ffffff;
}

.room-ad-copy {
  display: grid;
  gap: 7px;
  padding-right: 34px;
}

.room-ad-copy strong {
  color: #145f69;
  font-size: 20px;
}

.room-ad-copy span {
  color: #516d76;
  line-height: 1.45;
}

.room-ad-link {
  justify-self: start;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #28b7a4, #5c9df2);
  color: #ffffff;
  padding: 0 14px;
  font-weight: 900;
  text-decoration: none;
}

.empty {
  align-self: center;
  display: grid;
  gap: 6px;
  margin: auto;
  color: var(--muted);
  text-align: center;
}

.empty strong {
  color: var(--text);
  font-size: 15px;
}

.room-welcome-card {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 4px;
  max-width: min(620px, 92%);
  margin: 0 auto 4px;
  border: 1px solid #bddfe4;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #e9f7f8 100%);
  color: #285f6b;
  padding: 9px 18px;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: 0 8px 20px rgba(45, 103, 117, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.room-welcome-card strong {
  color: #194f59;
  font-size: 14px;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.room-welcome-card span {
  color: #6c8790;
  font-size: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.message {
  align-self: flex-start;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  max-width: min(720px, 82%);
  border: 1px solid #c7e2d1;
  border-radius: 8px;
  background: linear-gradient(105deg, #ffffff 0%, #ecf8df 46%, #e8f5e9 100%);
  box-shadow: 0 3px 14px rgba(42, 70, 82, 0.06);
  padding: 6px 11px 6px 7px;
}

.message.mine {
  align-self: flex-end;
  grid-template-columns: minmax(0, 1fr) 30px;
  border-color: #ecd0dc;
  background: linear-gradient(105deg, #ffffff 0%, #fff1f6 48%, #f8e6ef 100%);
  padding: 6px 7px 6px 11px;
}

.message.mine .message-avatar {
  order: 2;
}

.message.mine .message-body {
  order: 1;
  text-align: right;
}

.message-avatar {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-soft);
  color: #356f9f;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  box-shadow:
    0 0 14px rgba(38, 143, 154, 0.52),
    0 0 24px rgba(213, 155, 47, 0.24),
    0 5px 12px rgba(24, 68, 84, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.message.mine .message-avatar {
  background: #d9f1ed;
  color: var(--accent-strong);
}

.message-avatar.has-photo {
  background: #ffffff;
  color: transparent;
}

.message-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-body {
  min-width: 0;
  transform: translateY(1px);
}

.message:not(.mine) .message-body {
  transform: translateY(3px);
}

.message-nick {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
}

.message.mine .message-nick {
  color: var(--chat-nick-mine);
}

.message:not(.mine) .message-nick {
  color: var(--chat-nick-other);
}

.message span {
  overflow-wrap: anywhere;
  line-height: 1.42;
}

.message .message-color,
.message .message-color span,
.private-message .message-color,
.private-message .message-color span {
  color: var(--message-color) !important;
}

body.message-style-inline .message,
body.message-style-inline .message.mine,
body.message-style-inline .private-message,
body.message-style-inline .private-message.mine {
  align-self: stretch;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
  max-width: none;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 3px 6px 3px 0;
}

body.message-style-inline .messages {
  padding-left: 4px;
}

body.message-style-inline .private-messages {
  padding-left: 3px;
}

body.message-style-inline .message.mine .message-avatar,
body.message-style-inline .private-message.mine .message-avatar {
  order: 0;
}

body.message-style-inline .message.mine .message-body,
body.message-style-inline .private-message.mine .private-message-body {
  order: 0;
  text-align: left;
}

body.message-style-inline .message-avatar,
body.message-style-inline .private-message .message-avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

body.message-style-inline .message-body,
body.message-style-inline .private-message-body {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

body.message-style-inline .message-nick {
  flex: 0 0 auto;
  display: inline;
  margin: 0;
}

body.message-style-inline .message span,
body.message-style-inline .private-message span {
  min-width: 0;
}

.broadcast-message {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(620px, 94%);
  margin: 6px auto;
  border: 1px solid #f1c475;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 226, 0.94)),
    #fff8e2;
  color: #5e4212;
  padding: 14px 18px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(121, 86, 21, 0.14);
}

.broadcast-message strong {
  color: #986318;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.broadcast-message span {
  color: #3f331d;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.system-event {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 90%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  box-shadow: none;
  padding: 2px 0;
}

.system-icon {
  font-size: 8px;
  line-height: 1;
}

.system-copy,
.system-nick,
.system-text {
  font-style: italic;
}

.system-nick {
  font-weight: 800;
}

.system-text {
  margin-left: 4px;
  font-weight: 400;
}

.system-event.join .system-icon {
  color: #46a56d;
}

.system-event.join .system-nick {
  color: #1f6d3f;
}

.system-event.join .system-text {
  color: #65bd86;
}

.system-event.leave .system-icon {
  color: #be5a4d;
}

.system-event.leave .system-nick {
  color: #8f2f28;
}

.system-event.leave .system-text {
  color: #d37a6d;
}

.moderation-event {
  max-width: 96%;
  font-size: 12px;
}

.moderation-event .moderation-clock {
  font-size: 12px;
  animation: deskClockPulse 1.15s ease-in-out infinite;
}

.moderation-event.room-mute .moderation-clock,
.moderation-event.room-unmute .moderation-clock {
  color: #9a6800;
}

.moderation-event.site-mute .moderation-clock,
.moderation-event.site-unmute .moderation-clock {
  color: #9f1f2b;
}

.moderation-event.ban .moderation-clock {
  color: #a33b2e;
}

.moderation-copy {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
}

.moderation-title {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  border: 1px solid #ebc670;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff7cf 0%, #f5df91 100%);
  color: #835c16;
  padding: 1px 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.moderation-event.ban .moderation-title {
  border-color: #eba28f;
  background: linear-gradient(180deg, #fff0ea 0%, #f3b6a5 100%);
  color: #9b3729;
}

.moderation-event.site-mute .moderation-title,
.moderation-event.site-unmute .moderation-title {
  border-color: #e9a3ab;
  background: linear-gradient(180deg, #ffe9ec 0%, #f1b5be 100%);
  color: #9f1f2b;
}

.moderation-inline-item {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.moderation-inline-item em {
  color: #82939b;
  font-style: italic;
  font-weight: 500;
}

.moderation-inline-item strong {
  font-weight: 900;
}

.moderation-inline-item.admin strong {
  color: #267b76;
}

.moderation-inline-item.room strong {
  color: #9a6800;
}

.moderation-inline-item.user strong {
  color: #315f9f;
}

.moderation-inline-item.duration strong {
  color: #8a4f16;
}

.moderation-inline-item.reason strong {
  color: #5a6b73;
}

.private-window {
  position: fixed;
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr) auto auto;
  width: min(420px, calc(100vw - 28px));
  height: min(365px, calc(100vh - 28px));
  min-width: 330px;
  min-height: 285px;
  border: 1px solid #9fc8d0;
  border-radius: 8px;
  background: #f8fcfd;
  box-shadow: 0 18px 42px rgba(35, 72, 82, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  resize: both;
  z-index: 80;
}

.private-window[hidden] {
  display: none;
}

.private-window::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(135deg, transparent 0 45%, #9bbfc8 46% 52%, transparent 53%),
    linear-gradient(135deg, transparent 0 62%, #9bbfc8 63% 69%, transparent 70%);
  opacity: 0.85;
  pointer-events: none;
}

.private-window.private-maximized {
  width: auto;
  height: auto;
  resize: none;
}

.private-window.private-maximized::after {
  display: none;
}

body.mobile-layout .private-window {
  width: min(390px, calc(100vw - 18px));
  height: min(360px, calc(100dvh - 190px));
  min-width: 0;
  min-height: 270px;
  resize: none;
  z-index: 140;
}

.private-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #b9d7df;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, #eef8fb 0%, #d7ebf0 100%);
  color: #235d67;
  cursor: move;
  padding: 0 6px 0 12px;
  touch-action: none;
  user-select: none;
}

.private-titlebar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.private-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.private-typing {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 14px;
  color: #2f7d79;
  letter-spacing: 0;
}

.private-typing::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 9px 0 0 currentColor, 18px 0 0 currentColor;
  animation: privateTypingDots 1.05s ease-in-out infinite;
}

@keyframes privateTypingDots {
  0% {
    opacity: 0.25;
    box-shadow: 9px 0 0 rgba(47, 125, 121, 0.25), 18px 0 0 rgba(47, 125, 121, 0.25);
  }

  35% {
    opacity: 1;
    box-shadow: 9px 0 0 rgba(47, 125, 121, 0.25), 18px 0 0 rgba(47, 125, 121, 0.25);
  }

  65% {
    opacity: 0.25;
    box-shadow: 9px 0 0 currentColor, 18px 0 0 rgba(47, 125, 121, 0.25);
  }

  100% {
    opacity: 0.25;
    box-shadow: 9px 0 0 rgba(47, 125, 121, 0.25), 18px 0 0 currentColor;
  }
}

.private-window-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.private-window-actions button {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 24px;
  border: 1px solid #aacdd3;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #e5f1f3 100%);
  color: #2a6871;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.private-window-actions button:hover {
  border-color: #2f7d79;
  background: linear-gradient(180deg, #f6fffd 0%, #d8eee9 100%);
}

.private-window-actions [data-private-action="close"]:hover {
  border-color: #c97066;
  background: linear-gradient(180deg, #fff8f6 0%, #f1d2cd 100%);
  color: #9b382f;
}

.admin-window {
  position: fixed;
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr) 24px;
  min-width: 560px;
  min-height: 260px;
  border: 1px solid #9fc8d0;
  border-radius: 8px;
  background: #f8fcfd;
  box-shadow: 0 18px 42px rgba(35, 72, 82, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  resize: both;
}

.admin-window::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(135deg, transparent 0 45%, #9bbfc8 46% 52%, transparent 53%),
    linear-gradient(135deg, transparent 0 62%, #9bbfc8 63% 69%, transparent 70%);
  opacity: 0.85;
  pointer-events: none;
}

.admin-window-maximized {
  inset: 8px !important;
  width: auto !important;
  height: auto !important;
  resize: none;
}

.admin-window-maximized::after,
.admin-window-minimized::after {
  display: none;
}

.admin-window-minimized {
  grid-template-rows: 36px;
  width: 300px !important;
  height: 36px !important;
  min-width: 260px;
  min-height: 36px;
  resize: none;
}

.admin-window-minimized .admin-window-body,
.admin-window-minimized .admin-window-statusbar {
  display: none;
}

.complaint-window {
  min-width: 320px;
  min-height: 300px;
}

.complaint-window .admin-window-body {
  grid-template-rows: minmax(0, 1fr);
}

.complaint-window .complaint-form {
  grid-template-rows: auto minmax(92px, 1fr) auto auto;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  overflow: hidden;
}

.complaint-window .complaint-form label {
  gap: 4px;
  font-size: 11px;
}

.complaint-window .complaint-form input,
.complaint-window .complaint-form textarea {
  min-height: 30px;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
}

.complaint-window .complaint-form textarea {
  min-height: 92px;
  height: 100%;
  resize: none;
}

.complaint-window .complaint-form footer {
  gap: 7px;
  padding-top: 8px;
}

.complaint-window .complaint-form footer button {
  min-height: 30px;
  padding: 0 10px;
}

.complaint-window .admin-window-statusbar {
  display: none;
}

.broadcast-window {
  min-width: 320px;
  min-height: 300px;
}

.broadcast-window .admin-window-body {
  grid-template-rows: minmax(0, 1fr);
}

.broadcast-message-form {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(92px, 1fr) auto auto;
  gap: 8px;
  padding: 10px;
  overflow: auto;
}

.broadcast-message-form label {
  gap: 5px;
}

.broadcast-message-form textarea {
  min-height: 92px;
  resize: none;
}

.broadcast-recipient-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  border: 1px solid #cfe2e8;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfefe 0%, #f4fafb 100%);
  padding: 7px 10px;
}

.broadcast-recipient-section legend {
  color: #66808a;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 900;
}

.broadcast-recipient-section label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  margin: 0;
  color: #526f79;
  font-size: 12px;
  font-weight: 800;
}

.broadcast-recipient-section input {
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.broadcast-message-form footer {
  padding-top: 4px;
}

.broadcast-message-form footer button {
  min-height: 31px;
  padding: 0 12px;
}

.broadcast-window .admin-window-statusbar {
  display: none;
}

.admin-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #b9d7df;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, #dff5f1 0%, #b9e1df 100%);
  color: #1f6868;
  cursor: move;
  padding: 0 6px 0 12px;
  touch-action: none;
  user-select: none;
}

.admin-blue-window .admin-titlebar {
  border-bottom-color: #9fc6e9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.1)),
    linear-gradient(180deg, #d8ecff 0%, #a9cdeb 100%);
  color: #245d93;
}

.admin-orange-window .admin-titlebar {
  border-bottom-color: #efc18a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.1)),
    linear-gradient(180deg, #ffe1b8 0%, #efaa56 100%);
  color: #8a4f13;
}

.admin-brown-window .admin-titlebar {
  border-bottom-color: #b18a68;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.1)),
    linear-gradient(180deg, #d7b99c 0%, #8f6440 100%);
  color: #fff6ed;
}

.admin-brown-window .admin-titlebar strong {
  text-shadow: 0 1px 0 rgba(80, 42, 20, 0.45);
}

.admin-black-window .admin-titlebar {
  border-bottom-color: #111111;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, #333333 0%, #050505 100%);
  color: #ffffff;
}

.admin-black-window .admin-titlebar strong {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
}

.admin-titlebar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.admin-window-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-window-actions button {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 24px;
  border: 1px solid #aacdd3;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #e5f1f3 100%);
  color: #2a6871;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.admin-window-actions button:hover {
  border-color: #2f7d79;
  background: linear-gradient(180deg, #f6fffd 0%, #d8eee9 100%);
}

.admin-window-actions [data-admin-window-action="minimize"] {
  border-color: #d6bb68;
  background: linear-gradient(180deg, #fff9dc 0%, #efd97c 100%);
  color: #7a5d0c;
}

.admin-window-actions [data-admin-window-action="maximize"] {
  border-color: #8db7e2;
  background: linear-gradient(180deg, #f5fbff 0%, #bdd8f1 100%);
  color: #2b5f96;
}

.admin-window-actions [data-admin-window-action="close"] {
  border-color: #df9b91;
  background: linear-gradient(180deg, #fff5f2 0%, #edb6ad 100%);
  color: #9b382f;
}

.admin-window-actions [data-admin-window-action="close"]:hover {
  border-color: #c97066;
  background: linear-gradient(180deg, #fff8f6 0%, #f1d2cd 100%);
  color: #9b382f;
}

.admin-window-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  background: #fbfeff;
}

.admin-window-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #d2e4e9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 248, 250, 0.94)),
    #edf7f9;
  color: #6f838b;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.admin-window-statusbar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-window-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border-bottom: 1px solid #dcebef;
  background: #fbfeff;
  padding: 10px 12px;
}

.admin-window-toolbar span {
  margin-right: auto;
  color: #7c1f1f;
  font-size: 12px;
  font-weight: 400;
}

.admin-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7c1f1f;
  font-size: 12px;
  font-weight: 400;
}

.admin-date-filter input {
  height: 30px;
  border: 1px solid #cfe1e7;
  border-radius: 7px;
  background: #ffffff;
  color: #111111;
  padding: 0 7px;
  font: 400 12px var(--client-font);
}

.admin-search-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7c1f1f;
  font-size: 12px;
  font-weight: 400;
}

.admin-search-field input {
  width: min(260px, 28vw);
  height: 30px;
  border: 1px solid #cfe1e7;
  border-radius: 7px;
  background: #ffffff;
  color: #111111;
  padding: 0 9px;
  font: 400 12px var(--client-font);
}

.admin-online-filter {
  width: 130px;
  height: 28px;
  border: 1px solid #cfe1e7;
  border-radius: 7px;
  background: #ffffff;
  color: #1f3440;
  font-size: 12px;
  padding: 0 9px;
}

.admin-window-toolbar button {
  min-height: 30px;
  border: 1px solid #9fcbd2;
  border-radius: 7px;
  background: linear-gradient(180deg, #f9ffff 0%, #d9edf0 100%);
  color: #2a6871;
  padding: 0 12px;
  font-weight: 850;
  cursor: pointer;
}

.admin-table-wrap {
  min-height: 0;
  overflow: auto;
  padding: 0 10px 10px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    #ffffff;
}

.admin-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #4c636d;
  font-size: 12px;
}

.admin-data-table th,
.admin-data-table td {
  border-right: 1px solid #d8e8ed;
  border-bottom: 1px solid #d8e8ed;
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
}

.admin-data-table th:first-child,
.admin-data-table td:first-child {
  border-left: 1px solid #d8e8ed;
}

.admin-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-top: 1px solid #d8e8ed;
  background: linear-gradient(180deg, #effaf8 0%, #cfe7e5 100%);
  color: #7c1f1f;
  font-weight: 400;
}

.admin-data-table tbody tr:nth-child(even) td {
  background: #fcfefe;
}

.admin-data-table tbody td {
  background: #ffffff;
}

.admin-data-table tbody tr:hover td {
  background: #eaf7f5;
}

.admin-data-table tbody tr.selected-row td {
  background: #fff8e9;
}

.admin-data-table tbody tr {
  cursor: context-menu;
}

.admin-data-table [data-admin-online-copy] {
  cursor: copy;
}

.admin-data-table [data-admin-online-room] {
  cursor: pointer;
}

.admin-data-table .fingerprint-cell {
  max-width: 280px;
  font-family: Consolas, "Segoe UI", monospace;
  overflow-wrap: anywhere;
}

.admin-privacy-cell {
  color: #8a9aa1;
  font-style: italic;
}

.admin-ban-table th:nth-child(5),
.admin-ban-table td:nth-child(5) {
  max-width: 250px;
}

.admin-ban-type {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  color: #ffffff;
  background: #9a5b32;
}

.admin-ban-type.site {
  background: #9a332e;
}

.admin-inline-action {
  min-height: 28px;
  border: 1px solid #c99b76;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff7ef 0%, #e6bf9d 100%);
  color: #7a341e;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
}

.admin-inline-action:hover {
  border-color: #9a5b32;
  background: linear-gradient(180deg, #ffffff 0%, #f0cfb2 100%);
}

.admin-inline-action.disabled {
  border-color: #ccd8dc;
  background: #f5f8f9;
  color: #8b9aa1;
}

.audit-data-table th:nth-child(1) {
  width: 130px;
}

.audit-data-table th:nth-child(2),
.audit-data-table th:nth-child(3),
.audit-data-table th:nth-child(4) {
  width: 140px;
}

.audit-detail-cell {
  min-width: 260px;
  max-width: 420px;
  overflow-wrap: anywhere;
}

.admin-room-manager {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  background: #ffffff;
}

.admin-user-manager {
  display: grid;
  grid-template-columns: minmax(430px, 1.05fr) minmax(360px, 0.95fr);
  min-height: 0;
  background: #ffffff;
}

.admin-user-list-wrap {
  border-right: 1px solid #d8e8ed;
}

.admin-user-table td:nth-child(2) {
  max-width: 150px;
}

.admin-user-online {
  color: #167a4f;
}

.admin-room-picker {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  border-right: 1px solid #d8e8ed;
  background: linear-gradient(180deg, #fbfefe 0%, #f5fbfc 100%);
  overflow: hidden;
}

.admin-room-picker-head {
  border-bottom: 1px solid #d8e8ed;
  background: linear-gradient(180deg, #fffaf0 0%, #f6e9cf 100%);
  color: #7f4d17;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-room-filter {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #d8e8ed;
  padding: 7px 9px;
  color: #7f4d17;
  font-size: 10.5px;
  font-weight: 850;
}

.admin-room-filter input {
  width: 100%;
  min-height: 28px;
  border: 1px solid #d4e4ea;
  border-radius: 6px;
  background: #ffffff;
  color: #1f3339;
  padding: 0 8px;
  font: inherit;
  font-weight: 700;
}

.admin-room-picker-list {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 8px;
  overscroll-behavior: contain;
}

.admin-room-row-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 6px;
}

.admin-room-create-form {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #d8e8ed;
  padding: 8px 9px;
}

.admin-room-create-form input {
  min-height: 30px;
  border: 1px solid #d4e4ea;
  border-radius: 6px;
  background: #ffffff;
  color: #111111;
  padding: 0 8px;
  font: 400 12px var(--client-font);
}

.admin-room-create-form button {
  min-height: 30px;
  border: 1px solid #d98d33;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffbc6c 0%, #d97920 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.admin-room-row {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid #dce9ed;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
  color: #536b75;
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
}

.admin-room-row strong {
  color: #375f69;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-room-row span {
  color: #8799a1;
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-room-row:hover,
.admin-room-row.active {
  border-color: #e6a54f;
  background: linear-gradient(180deg, #fffaf2 0%, #f6e5ca 100%);
}

.admin-room-order-actions {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.admin-room-order-actions button {
  width: 28px;
  min-height: 0;
  border: 1px solid #d8e8ed;
  border-radius: 5px;
  background: #ffffff;
  color: #5b7881;
  font-weight: 900;
  cursor: pointer;
}

.admin-room-form,
.admin-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 11px;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.admin-room-form label,
.admin-user-form label {
  display: grid;
  gap: 5px;
  color: #7c1f1f;
  font-size: 12px;
  font-weight: 400;
}

.admin-room-form input,
.admin-room-form select,
.admin-room-form textarea,
.admin-user-form input,
.admin-user-form select,
.admin-user-form textarea {
  min-height: 36px;
  border: 1px solid #d4e4ea;
  border-radius: 7px;
  background: #ffffff;
  color: #111111;
  padding: 8px 9px;
  font: 400 12px var(--client-font);
}

.admin-room-form textarea,
.admin-user-form textarea {
  resize: vertical;
}

.admin-room-manager .admin-room-form {
  gap: 8px;
  padding: 10px;
}

.admin-room-manager .admin-room-form label {
  gap: 4px;
  font-size: 11px;
}

.admin-room-manager .admin-room-form input,
.admin-room-manager .admin-room-form select,
.admin-room-manager .admin-room-form textarea {
  min-height: 30px;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.2;
}

.admin-room-manager .admin-room-form select:not([size]) {
  height: 30px;
  padding-top: 0;
  padding-bottom: 0;
}

.admin-room-manager .admin-room-form textarea {
  min-height: 68px;
}

.admin-room-form .room-limit-field {
  justify-self: start;
  width: 96px;
}

.admin-room-form .room-limit-field input {
  width: 72px;
  text-align: center;
}

.admin-room-form .room-url-field {
  min-width: 0;
}

.admin-room-form .room-url-field input {
  width: 100%;
}

.admin-room-form .owner-picker {
  align-self: start;
}

.admin-room-form .owner-picker input[type="search"] {
  min-height: 32px;
}

.admin-room-form .owner-picker select {
  min-height: 104px;
  overflow-y: auto;
}

.admin-room-form .wide,
.admin-user-form .wide,
.admin-room-checks,
.admin-room-form footer,
.admin-user-form footer,
.admin-room-form-message,
.admin-form-lock,
.admin-room-form-empty {
  grid-column: 1 / -1;
}

.room-owner-settings-window {
  width: min(520px, calc(100vw - 28px)) !important;
  min-height: 0 !important;
}

.room-owner-settings-window .admin-window-body {
  max-height: min(560px, calc(100svh - 130px));
}

.room-owner-settings-form {
  gap: 8px !important;
  padding: 10px !important;
}

.room-owner-settings-form input,
.room-owner-settings-form select,
.room-owner-settings-form textarea {
  min-height: 31px !important;
  padding: 6px 8px !important;
}

.room-owner-settings-form .readonly-owner-label {
  display: flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 8px;
  border: 1px solid #d4e4ea;
  border-radius: 8px;
  background: #f6fbfa;
  color: #526d77;
  font-weight: 850;
}

.room-owner-settings-form textarea {
  max-height: 82px;
}

.my-profile-window {
  width: min(560px, calc(100vw - 28px)) !important;
  min-width: min(520px, calc(100vw - 28px)) !important;
  min-height: 0 !important;
}

.my-profile-window .admin-window-body {
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

body[data-client-theme="night"] .my-profile-window .admin-window-body {
  background: linear-gradient(180deg, #142832 0%, #10212a 100%);
}

body[data-client-theme="night"] .my-profile-window .admin-titlebar {
  border-bottom-color: rgba(100, 199, 187, 0.26);
  background: linear-gradient(180deg, #203f4b 0%, #142d38 100%);
  color: #e8fbfd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .my-profile-window .admin-titlebar strong {
  color: #e8fbfd;
  text-shadow: 0 0 8px rgba(100, 199, 187, 0.22);
}

body[data-client-theme="night"] .my-profile-window .admin-window-toolbar {
  border-bottom-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(180deg, #1b3540 0%, #132934 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .my-profile-window .admin-window-toolbar span {
  color: #c9f5ef;
  text-shadow: 0 0 8px rgba(100, 199, 187, 0.18);
}

body[data-client-theme="night"] .my-profile-window .admin-window-statusbar {
  border-top-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(180deg, #12252e 0%, #0e1e26 100%);
  color: #9fbcc5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.my-profile-form {
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-areas:
    "photo nick"
    "photo email"
    "photo avatar"
    "photo privacy"
    "new current"
    "repeat actions"
    "message message";
  align-items: start;
  align-content: start;
  gap: 8px 12px !important;
  min-height: 100%;
  padding: 12px !important;
  overflow: auto;
  background: #fbfeff;
}

body[data-client-theme="night"] .my-profile-form {
  background: linear-gradient(180deg, rgba(21, 42, 52, 0.95), rgba(14, 30, 38, 0.96));
}

body[data-client-theme="night"] .my-profile-form label {
  color: #d9edf1;
}

body[data-client-theme="night"] .my-profile-form .profile-nick,
body[data-client-theme="night"] .my-profile-form .profile-email,
body[data-client-theme="night"] .my-profile-form .profile-avatar-url,
body[data-client-theme="night"] .my-profile-form .profile-new-password,
body[data-client-theme="night"] .my-profile-form .profile-current-password,
body[data-client-theme="night"] .my-profile-form .profile-repeat-password {
  color: #d9edf1;
}

.my-profile-form input {
  min-height: 31px !important;
  padding: 6px 8px !important;
}

.profile-id-photo {
  grid-area: photo;
  width: 136px;
  height: 136px;
  border: 2px dashed #b8d6e6;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(236, 248, 252, 0.92)),
    #f8fcfd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 24px rgba(36, 93, 147, 0.12);
  overflow: hidden;
}

.profile-id-photo.has-photo {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(95, 149, 200, 0.35),
    0 12px 26px rgba(36, 93, 147, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.profile-id-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-nick {
  grid-area: nick;
}

.profile-email {
  grid-area: email;
}

.profile-avatar-url {
  grid-area: avatar;
}

.profile-privacy-options {
  grid-area: privacy;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  align-items: center;
  border: 1px solid rgba(180, 215, 226, 0.82);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(250, 254, 255, 0.86), rgba(238, 248, 250, 0.78));
  padding: 7px 9px;
}

.my-profile-form .profile-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  margin: 0;
  color: #8b2e33;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-client-theme="night"] .my-profile-form .profile-check {
  color: #d9edf1;
}

body[data-client-theme="night"] .profile-privacy-options {
  border-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, rgba(24, 47, 57, 0.92), rgba(16, 33, 41, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.my-profile-form .profile-check input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-height: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
}

.profile-new-password {
  grid-area: new;
}

.profile-current-password {
  grid-area: current;
}

.profile-repeat-password {
  grid-area: repeat;
}

.my-profile-form .profile-actions {
  grid-area: actions;
  align-self: end;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 0;
  padding-top: 17px;
}

.my-profile-form .profile-actions button {
  min-height: 31px;
}

.my-profile-form [data-my-profile-message] {
  grid-area: message;
}

.admin-room-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.admin-room-checks label {
  display: flex;
  align-items: center;
  border: 1px solid #d4e4ea;
  border-radius: 7px;
  background: #ffffff;
  padding: 9px 10px;
}

.admin-room-checks input {
  width: 16px;
  min-height: 16px;
}

.admin-room-form footer,
.admin-user-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid #dce9ed;
  padding-top: 12px;
}

.admin-room-form footer button,
.admin-user-form footer button {
  min-height: 36px;
  border-radius: 7px;
  padding: 0 13px;
  font-weight: 900;
  cursor: pointer;
}

.admin-room-form .primary {
  border: 1px solid #d68f38;
  background: linear-gradient(180deg, #ffca82 0%, #e59439 100%);
  color: #ffffff;
}

.admin-user-form .primary {
  border: 1px solid #111111;
  background: linear-gradient(180deg, #3a3a3a 0%, #080808 100%);
  color: #ffffff;
}

.admin-user-form.broadcast-message-form {
  grid-template-columns: 1fr;
  grid-template-rows: auto 88px auto auto auto;
  align-content: start;
  gap: 7px;
  overflow: hidden;
  padding: 10px;
}

.admin-user-form.broadcast-message-form label {
  gap: 4px;
  font-size: 11px;
}

.admin-user-form.broadcast-message-form input,
.admin-user-form.broadcast-message-form textarea {
  min-height: 30px;
  border-radius: 6px;
  padding: 6px 8px;
}

.admin-user-form.broadcast-message-form textarea {
  min-height: 88px;
  height: 88px;
}

.admin-user-form.broadcast-message-form .broadcast-recipient-section {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  width: 100%;
  min-height: 38px;
  gap: 6px 16px;
  padding: 6px 10px;
}

.admin-user-form.broadcast-message-form .broadcast-recipient-section legend {
  font-size: 11px;
  line-height: 1;
}

.admin-user-form.broadcast-message-form .broadcast-recipient-section label {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 20px;
  gap: 5px;
  margin: 0;
  font-size: 11px;
  line-height: 1;
}

.admin-user-form.broadcast-message-form .broadcast-recipient-section input {
  width: 13px;
  height: 13px;
  min-height: 0;
  flex: 0 0 13px;
}

.admin-user-form.broadcast-message-form footer {
  grid-column: 1 / -1;
  padding-top: 5px;
}

.admin-user-form.broadcast-message-form footer button {
  min-height: 30px;
  padding: 0 12px;
}

.admin-user-form .primary:disabled {
  border-color: #cdd8dc;
  background: #eef3f5;
  color: #8da0a7;
  cursor: default;
}

.admin-room-form .secondary {
  border: 1px solid #e0bab0;
  background: linear-gradient(180deg, #fff8f5 0%, #f0d7d0 100%);
  color: #9b4536;
}

.admin-room-form-message {
  min-height: 18px;
  color: #8a4f13;
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.admin-form-lock {
  border: 1px solid #e3d3c9;
  border-radius: 8px;
  background: #fff7ef;
  color: #8f3b22;
  padding: 9px 10px;
  font-size: 12px;
}

.admin-role-preview {
  display: grid;
  gap: 7px;
  border: 1px solid #cfe5df;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fffb 0%, #f5fbff 100%);
  color: #234148;
  padding: 10px 12px;
  font-size: 12px;
}

.admin-role-preview.empty {
  color: #70848a;
}

.admin-role-preview strong {
  color: #173139;
}

.admin-role-preview ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
}

.admin-role-preview p {
  margin: 0;
}

.site-settings-form {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 12px;
}

.site-settings-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid #d8e8ec;
  border-radius: 8px;
  background: #fbfeff;
  padding: 12px;
}

.site-settings-section h3 {
  margin: 0;
  color: #365b65;
  font-size: 14px;
  font-weight: 900;
}

.site-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.site-settings-grid .wide {
  grid-column: 1 / -1;
}

.site-settings-toggles {
  align-content: start;
}

.site-settings-form .site-toggle-check,
.site-bot-welcome-toggle {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  color: #365b65;
  font-weight: 800;
}

.site-settings-form .site-toggle-check input,
.site-bot-welcome-toggle input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
}

.site-settings-form .site-toggle-check span {
  min-width: 0;
}

.site-settings-note {
  border: 1px solid #ead6b8;
  border-radius: 8px;
  background: #fff8ed;
  color: #7c4d11;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.site-bot-settings {
  gap: 9px;
}

.site-bot-settings-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(260px, 1.15fr);
  gap: 12px;
  align-items: stretch;
}

.site-bot-picker,
.site-bot-details,
.site-bot-command-editor,
.site-bot-welcome-editor {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.site-bot-details {
  align-content: start;
}

.site-bot-picker select {
  width: 100%;
}

.site-bot-command-editor textarea {
  min-height: 156px;
  line-height: 1.35;
}

.site-bot-save-button {
  justify-self: end;
  min-height: 36px;
  border: 1px solid #0f6f73;
  border-radius: 8px;
  background: linear-gradient(180deg, #33c4c8 0%, #0b7a7f 100%);
  color: #ffffff;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 6px 14px rgba(15, 111, 115, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.site-bot-save-button:hover {
  filter: brightness(1.04);
}

.site-bot-save-button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(15, 111, 115, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.16);
}

@media (max-width: 700px) {
  .site-settings-grid,
  .site-bot-settings-grid {
    grid-template-columns: 1fr;
  }
}

.mini-user-info {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
}

.mini-user-hero {
  display: contents;
}

.mini-user-summary {
  display: none;
}

.mini-user-avatar {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8f6ff, #fff5da);
  border: 2px solid rgba(255, 255, 255, 0.92);
  color: #31596a;
  font-size: 42px;
  font-weight: 800;
  box-shadow:
    0 0 0 1px rgba(95, 149, 200, 0.34),
    0 10px 24px rgba(36, 93, 147, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.mini-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-user-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.mini-user-window {
  min-width: 430px;
  min-height: 205px;
}

.mini-user-window .admin-window-body {
  grid-template-rows: minmax(0, 1fr);
}

.mini-user-window .admin-window-statusbar {
  display: none;
}

.mini-user-window .admin-user-form input,
.mini-user-window .mini-user-fields input {
  min-height: 28px;
  height: 28px;
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 12px;
}

.mini-user-window .mini-user-fields label {
  gap: 3px;
  font-size: 11px;
}

.mini-user-fields label {
  display: grid;
  gap: 5px;
  color: #50636b;
  font-size: 12px;
  font-weight: 800;
}

.mini-user-fields input {
  min-width: 0;
  height: 34px;
  border: 1px solid #d4e4ea;
  border-radius: 7px;
  padding: 0 10px;
  color: #19313a;
  background: #f8fcfd;
}

.admin-complaint-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 12px;
  min-height: 0;
}

.word-filter-form {
  align-self: start;
  border-left: 1px solid #d8e8ed;
  padding-left: 12px;
}

.word-filter-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.word-filter-item {
  min-height: 28px;
  border: 1px solid #cfe0e7;
  border-radius: 7px;
  background: #f8fcfd;
  color: #223f49;
  font-weight: 800;
}

.admin-room-form-empty,
.admin-room-empty {
  color: #91a5ad;
  font-size: 13px;
  font-weight: 800;
}

.admin-status-cell {
  width: 70px;
  text-align: center !important;
}

.admin-status-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 900;
}

.admin-status-badge.room-mute {
  color: #9a6800;
}

.admin-status-badge.site-mute {
  color: #9f1f2b;
}

.admin-status-badge.ban {
  color: #a33b2e;
}

.admin-status-empty {
  color: #a5b5bc;
}

.private-messages {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  overflow: auto;
  padding: 12px 12px 12px 6px;
  background: linear-gradient(180deg, #fff7f7 0%, #f6eeee 100%);
}

.private-empty {
  margin: auto;
  color: var(--muted);
  font-size: 12px;
}

.private-warning {
  align-self: center;
  max-width: min(92%, 300px);
  margin: auto;
  border: 1px solid #e5a8ae;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 247, 248, 0.96) 0%, rgba(248, 224, 227, 0.96) 100%);
  color: #9e3341;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 18px rgba(150, 54, 66, 0.12);
}

.private-call-panel {
  position: absolute;
  inset: 36px 0 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 10%, rgba(105, 242, 220, 0.24), transparent 39%),
    radial-gradient(circle at 82% 84%, rgba(93, 156, 255, 0.18), transparent 34%),
    rgba(5, 12, 18, 0.78);
  color: #eefcff;
  backdrop-filter: blur(12px) saturate(1.25);
}

.private-call-card {
  width: min(92%, 320px);
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid rgba(180, 241, 232, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(8, 23, 31, 0.82);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(100, 199, 187, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  padding: 20px 18px 17px;
  text-align: center;
}

.private-call-panel.video.active .private-call-card {
  width: min(96%, 380px);
  gap: 10px;
  padding: 15px 14px 14px;
}

.private-call-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5cffaa 0%, #21c874 48%, #0f8d4d 100%);
  color: #ffffff;
  box-shadow:
    0 0 0 8px rgba(56, 217, 134, 0.13),
    0 0 24px rgba(66, 223, 143, 0.32),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

.private-call-panel.audio .private-call-icon {
  margin-bottom: 6px;
}

.private-call-icon::before,
.private-call-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(105, 255, 184, 0.42);
  border-radius: inherit;
  animation: privateCallRingPulse 1.45s ease-out infinite;
  pointer-events: none;
}

.private-call-icon::after {
  inset: -15px;
  border-color: rgba(105, 255, 184, 0.24);
  animation-delay: 0.36s;
}

.private-call-panel.video .private-call-icon {
  background: linear-gradient(180deg, #73d2ff 0%, #2b9deb 48%, #17669e 100%);
  box-shadow:
    0 0 0 8px rgba(73, 185, 255, 0.14),
    0 0 24px rgba(73, 185, 255, 0.32),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

.private-call-panel.video .private-call-icon::before,
.private-call-panel.video .private-call-icon::after {
  border-color: rgba(115, 210, 255, 0.38);
}

.private-call-panel.call-danger .private-call-icon,
.private-call-panel.video.call-danger .private-call-icon {
  background: linear-gradient(180deg, #ff8791 0%, #eb4054 48%, #a9172b 100%);
  box-shadow:
    0 0 0 8px rgba(255, 122, 134, 0.14),
    0 0 24px rgba(255, 82, 98, 0.34),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

.private-call-panel.call-danger .private-call-icon::before,
.private-call-panel.call-danger .private-call-icon::after,
.private-call-panel.video.call-danger .private-call-icon::before,
.private-call-panel.video.call-danger .private-call-icon::after {
  border-color: rgba(255, 122, 134, 0.42);
}

.private-call-icon.has-avatar {
  background: rgba(12, 27, 34, 0.78);
  overflow: visible;
}

.private-call-icon.has-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  box-shadow:
    0 0 0 calc(5px + (var(--private-call-level, 0) * 10px)) rgba(100, 199, 187, calc(0.10 + (var(--private-call-level, 0) * 0.28))),
    0 0 calc(18px + (var(--private-call-level, 0) * 30px)) rgba(100, 199, 187, calc(0.20 + (var(--private-call-level, 0) * 0.35)));
  transform: scale(calc(1 + (var(--private-call-level, 0) * 0.045)));
  transition: box-shadow 80ms linear, transform 80ms linear;
}

.private-call-panel.video .private-call-icon.has-avatar img {
  box-shadow:
    0 0 0 calc(5px + (var(--private-call-level, 0) * 10px)) rgba(73, 185, 255, calc(0.10 + (var(--private-call-level, 0) * 0.28))),
    0 0 calc(18px + (var(--private-call-level, 0) * 30px)) rgba(73, 185, 255, calc(0.20 + (var(--private-call-level, 0) * 0.35)));
}

.private-call-panel.call-danger .private-call-icon.has-avatar img {
  box-shadow:
    0 0 0 calc(5px + (var(--private-call-level, 0) * 10px)) rgba(255, 122, 134, calc(0.12 + (var(--private-call-level, 0) * 0.3))),
    0 0 calc(18px + (var(--private-call-level, 0) * 30px)) rgba(255, 82, 98, calc(0.22 + (var(--private-call-level, 0) * 0.36)));
}

.private-call-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.private-call-copy {
  display: grid;
  gap: 3px;
}

.private-call-copy span {
  color: #9be1d8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.private-call-copy .private-call-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  justify-self: center;
  min-height: 22px;
  border: 1px solid rgba(155, 225, 216, 0.3);
  border-radius: 999px;
  background: rgba(21, 67, 72, 0.42);
  padding: 2px 10px;
  line-height: 1;
  white-space: nowrap;
}

.private-call-copy .private-call-kind svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: currentColor;
}

.private-call-copy .private-call-kind b {
  font: inherit;
}

.private-call-copy strong {
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
}

.private-call-copy small {
  color: #b8ced6;
  font-size: 12px;
  font-weight: 700;
}

.private-call-copy small.status-danger {
  color: #ff7b86;
  font-weight: 950;
  text-shadow: 0 0 10px rgba(255, 82, 98, 0.22);
  animation: privateCallRejectedBlink 1s steps(2, end) infinite;
}

.private-call-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(152, 220, 255, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 26% 20%, rgba(72, 183, 255, 0.28), transparent 34%),
    radial-gradient(circle at 80% 84%, rgba(96, 255, 216, 0.18), transparent 32%),
    #040b12;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.private-call-video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #a9d8e8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.private-call-video-placeholder span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(71, 177, 255, 0.2);
  color: #9ae4ff;
  box-shadow: 0 0 24px rgba(71, 177, 255, 0.26);
}

.private-call-video-placeholder svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.private-call-remote-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0;
  cursor: zoom-in;
  transition: opacity 180ms ease;
}

.private-call-video-stage:fullscreen,
.private-call-video-stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #000;
}

.private-call-video-stage:fullscreen .private-call-remote-video,
.private-call-video-stage:-webkit-full-screen .private-call-remote-video {
  object-fit: contain;
  cursor: zoom-out;
}

.private-call-panel.has-remote-video .private-call-remote-video {
  opacity: 1;
}

.private-call-local-preview {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 94px;
  height: 66px;
  border: 2px solid rgba(209, 246, 255, 0.72);
  border-radius: 12px;
  background: rgba(4, 12, 18, 0.82);
  object-fit: cover;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(93, 207, 255, 0.24);
}

.private-call-local-preview.camera-off {
  opacity: 0.42;
  filter: grayscale(1);
}

@keyframes privateCallRejectedBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.04);
  }
}

.private-call-quick-actions,
.private-call-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.private-call-quick-actions button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(216, 242, 246, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #d9edf1;
}

.private-call-quick-actions button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.private-call-quick-actions button.muted {
  border-color: rgba(255, 122, 134, 0.46);
  background: rgba(114, 39, 49, 0.62);
  color: #ffd9de;
}

.private-call-actions button {
  min-width: 86px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.private-call-actions .accept {
  background: linear-gradient(180deg, #5cffaa 0%, #22c874 52%, #0d864a 100%);
  box-shadow: 0 7px 20px rgba(38, 195, 109, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.private-call-actions .reject {
  background: linear-gradient(180deg, #ff8791 0%, #eb4054 52%, #a9172b 100%);
  box-shadow: 0 7px 20px rgba(210, 52, 68, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.private-call-card [data-private-call-media] {
  width: 100%;
  max-height: 120px;
  border-radius: 12px;
  background: #050b10;
  object-fit: cover;
}

.private-call-video-stage [data-private-call-media] {
  max-height: none;
}

.private-call-card audio[data-private-call-media] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.private-call-panel.call-docked {
  display: none !important;
}

.private-call-inline-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0 8px 6px;
  border: 1px solid #8ac5bd;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fffd 0%, #d6f2ec 100%);
  color: #1e625d;
  font-size: 12px;
  font-weight: 850;
  padding: 0 9px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(32, 100, 94, 0.12);
}

.private-call-inline-bar i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  border-radius: 999px;
  background: #2f7d79;
  color: #fff;
  font-style: normal;
  font-size: 12px;
}

.private-call-inline-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-call-inline-bar em {
  flex: 0 1 auto;
  max-width: 110px;
  overflow: hidden;
  color: #55777b;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen {
  position: fixed;
  inset: 0;
  z-index: 2300;
  min-height: 100svh;
  display: grid;
  place-items: stretch center;
  overflow: hidden;
  padding: max(14px, env(safe-area-inset-top)) 14px max(var(--ii-android-bottom-guard), env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 9%, rgba(96, 230, 211, 0.28), transparent 32%),
    radial-gradient(circle at 85% 82%, rgba(80, 152, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(7, 20, 29, 0.98) 0%, rgba(3, 9, 14, 0.99) 100%);
  backdrop-filter: blur(18px) saturate(1.2);
}

body.mobile-layout .private-call-panel.mobile-private-call-screen .private-call-card {
  width: min(100%, 430px);
  height: calc(var(--ii-app-height, 100svh) - max(28px, env(safe-area-inset-top)) - max(calc(var(--ii-android-bottom-guard) * 2), env(safe-area-inset-bottom)));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  grid-template-areas:
    "icon"
    "copy"
    "quick"
    "actions";
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video.active .private-call-card {
  width: min(100%, 520px);
  grid-template-columns: clamp(76px, 19vw, 94px) minmax(0, 300px);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    "icon copy"
    "video video"
    "quick quick"
    "actions actions";
  justify-content: center;
  justify-items: stretch;
  gap: 14px 20px;
  padding: 0;
  text-align: left;
}

body.mobile-layout .mobile-private-call-screen .private-call-icon {
  grid-area: icon;
  width: 128px;
  height: 128px;
  justify-self: center;
}

body.mobile-layout .mobile-private-call-screen.audio .private-call-icon {
  margin-bottom: 8px;
}

body.mobile-layout .mobile-private-call-screen.audio .private-call-icon {
  width: 144px;
  height: 144px;
  margin-bottom: 18px;
}

body.mobile-layout .mobile-private-call-screen.video.active .private-call-icon {
  width: clamp(82px, 20vw, 100px);
  height: clamp(82px, 20vw, 100px);
  justify-self: end;
  align-self: center;
}

body.mobile-layout .mobile-private-call-screen .private-call-icon::before {
  inset: -8px;
}

body.mobile-layout .mobile-private-call-screen .private-call-icon::after {
  inset: -15px;
}

body.mobile-layout .mobile-private-call-screen.video.active .private-call-icon::before {
  inset: -5px;
}

body.mobile-layout .mobile-private-call-screen.video.active .private-call-icon::after {
  inset: -10px;
}

body.mobile-layout .mobile-private-call-screen .private-call-icon svg {
  width: 56px;
  height: 56px;
}

body.mobile-layout .mobile-private-call-screen.video.active .private-call-icon svg {
  width: 34px;
  height: 34px;
}

body.mobile-layout .mobile-private-call-screen .private-call-copy {
  grid-area: copy;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

body.mobile-layout .mobile-private-call-screen.video.active .private-call-copy {
  align-items: flex-start;
  align-self: center;
  gap: 7px;
  padding-right: 2px;
}

body.mobile-layout .mobile-private-call-screen .private-call-copy span {
  font-size: 12px;
  color: #9ee9df;
}

body.mobile-layout .mobile-private-call-screen .private-call-copy .private-call-kind {
  margin-bottom: 2px;
  padding: 4px 12px;
}

body.mobile-layout .mobile-private-call-screen.video.active .private-call-copy .private-call-kind {
  justify-self: start;
  margin-bottom: 0;
  padding: 4px 10px;
}

body.mobile-layout .mobile-private-call-screen .private-call-copy strong {
  max-width: min(86vw, 360px);
  overflow-wrap: anywhere;
  font-size: 32px;
  line-height: 1.08;
}

body.mobile-layout .mobile-private-call-screen.video.active .private-call-copy strong {
  max-width: 100%;
  font-size: clamp(20px, 5.7vw, 27px);
  line-height: 1.05;
}

body.mobile-layout .mobile-private-call-screen .private-call-copy small {
  font-size: 16px;
  color: #c8dde3;
}

body.mobile-layout .mobile-private-call-screen.video.active .private-call-copy small {
  font-size: 14px;
}

body.mobile-layout .mobile-private-call-screen .private-call-video-stage {
  grid-area: video;
  justify-self: center;
  width: min(100%, 430px);
  aspect-ratio: 9 / 13;
  max-height: 48svh;
  min-height: 0;
}

body.mobile-layout .mobile-private-call-screen .private-call-quick-actions {
  grid-area: quick;
  justify-content: center;
  gap: 14px;
}

body.mobile-layout .mobile-private-call-screen.audio .private-call-quick-actions {
  gap: clamp(22px, 7vw, 40px);
  margin-top: 10px;
}

body.mobile-layout .mobile-private-call-screen .private-call-quick-actions button {
  width: clamp(46px, 13vw, 54px);
  height: clamp(46px, 13vw, 54px);
}

body.mobile-layout .mobile-private-call-screen .private-call-quick-actions button svg {
  width: 25px;
  height: 25px;
}

body.mobile-layout .mobile-private-call-screen .private-call-actions {
  grid-area: actions;
  justify-self: center;
  width: min(100%, 340px);
  gap: 12px;
}

body.mobile-layout .mobile-private-call-screen.audio .private-call-actions {
  margin-top: 24px;
}

body.mobile-layout .mobile-private-call-screen .private-call-actions button {
  flex: 1;
  min-width: 0;
  height: clamp(48px, 13vw, 56px);
  font-size: 16px;
}

@media (max-height: 700px) {
  body.mobile-layout .private-call-panel.mobile-private-call-screen .private-call-card {
    gap: 10px;
  }

  body.mobile-layout .mobile-private-call-screen.video.active .private-call-icon {
    width: 58px;
    height: 58px;
  }

  body.mobile-layout .mobile-private-call-screen.video.active .private-call-copy strong {
    font-size: 21px;
  }

  body.mobile-layout .mobile-private-call-screen.video.active .private-call-copy small {
    font-size: 13px;
  }

  body.mobile-layout .mobile-private-call-screen .private-call-video-stage {
    max-height: 42svh;
  }

  body.mobile-layout .mobile-private-call-screen .private-call-quick-actions button {
    width: 44px;
    height: 44px;
  }

  body.mobile-layout .mobile-private-call-screen .private-call-actions button {
    height: 46px;
  }
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.audio .private-call-card {
  width: min(100%, 430px) !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto auto !important;
  grid-template-areas:
    "icon"
    "copy"
    "quick"
    "actions" !important;
  align-content: center !important;
  justify-items: center !important;
  gap: clamp(18px, 3.2svh, 30px) !important;
  text-align: center !important;
  transform: none !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.audio .private-call-icon {
  width: clamp(148px, 38vw, 180px) !important;
  height: clamp(148px, 38vw, 180px) !important;
  margin: 0 0 clamp(18px, 3svh, 30px) !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.audio .private-call-copy {
  display: grid !important;
  justify-items: center !important;
  gap: clamp(9px, 1.5svh, 15px) !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.audio .private-call-kind,
body.mobile-layout .private-call-panel.mobile-private-call-screen.video .private-call-kind {
  border: 1px solid rgba(157, 239, 228, 0.48) !important;
  background:
    linear-gradient(180deg, rgba(157, 239, 228, 0.2), rgba(48, 137, 135, 0.24)),
    rgba(11, 44, 51, 0.78) !important;
  color: #c9fff8 !important;
  font-size: clamp(13px, 3.5vw, 16px) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  padding: 7px 16px !important;
  box-shadow: 0 8px 22px rgba(67, 213, 194, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  text-shadow: 0 0 10px rgba(125, 244, 229, 0.32);
}

body.mobile-layout .private-call-panel.mobile-private-call-screen .private-call-kind svg {
  width: clamp(16px, 4vw, 20px) !important;
  height: clamp(16px, 4vw, 20px) !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.audio .private-call-copy strong {
  font-size: clamp(34px, 8.8vw, 46px) !important;
  line-height: 1.02 !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.audio .private-call-copy small {
  font-size: clamp(20px, 5.4vw, 25px) !important;
  line-height: 1.1 !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.audio .private-call-quick-actions {
  gap: clamp(22px, 6.2vw, 38px) !important;
  margin-top: clamp(2px, 0.8svh, 8px) !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.audio .private-call-quick-actions button {
  width: clamp(56px, 15vw, 70px) !important;
  height: clamp(56px, 15vw, 70px) !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.audio .private-call-actions {
  width: min(100%, 390px) !important;
  margin-top: clamp(8px, 1.8svh, 18px) !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video:not(.active) .private-call-card {
  width: min(100%, 430px) !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto auto !important;
  grid-template-areas:
    "icon"
    "copy"
    "quick"
    "actions" !important;
  align-content: center !important;
  justify-items: center !important;
  gap: clamp(18px, 3.1svh, 30px) !important;
  text-align: center !important;
  padding-top: 0 !important;
  transform: none !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video:not(.active) .private-call-icon {
  width: clamp(142px, 36vw, 176px) !important;
  height: clamp(142px, 36vw, 176px) !important;
  margin: 0 0 clamp(18px, 3svh, 30px) !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video:not(.active) .private-call-copy {
  display: grid !important;
  justify-items: center !important;
  gap: clamp(9px, 1.5svh, 15px) !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video:not(.active) .private-call-copy strong {
  font-size: clamp(34px, 8.6vw, 46px) !important;
  line-height: 1.02 !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video:not(.active) .private-call-copy small {
  font-size: clamp(20px, 5.3vw, 25px) !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video:not(.active) .private-call-quick-actions {
  margin-top: clamp(2px, 0.8svh, 8px) !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video:not(.active) .private-call-actions {
  margin-top: clamp(8px, 1.8svh, 18px) !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video.active .private-call-card {
  grid-template-columns: clamp(90px, 23vw, 112px) minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) auto auto !important;
  justify-content: stretch !important;
  gap: clamp(14px, 2.2svh, 22px) clamp(18px, 5vw, 28px) !important;
  padding: clamp(6px, 1.4svh, 14px) clamp(8px, 2.5vw, 16px) 0 !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video.active .private-call-icon {
  width: clamp(90px, 23vw, 112px) !important;
  height: clamp(90px, 23vw, 112px) !important;
  justify-self: end !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video.active .private-call-copy {
  display: grid !important;
  justify-items: start !important;
  gap: 7px !important;
  align-self: center !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video.active .private-call-copy strong {
  font-size: clamp(27px, 7vw, 36px) !important;
  line-height: 1.02 !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video.active .private-call-copy small {
  font-size: clamp(17px, 4.7vw, 22px) !important;
}

body.mobile-layout .private-call-panel.mobile-private-call-screen.video.active .private-call-video-stage {
  width: min(100%, 440px) !important;
  max-height: 46svh !important;
}

@keyframes privateCallRingPulse {
  0% {
    opacity: 0.9;
    transform: scale(0.86);
  }
  70% {
    opacity: 0.08;
    transform: scale(1.28);
  }
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

.private-call-log {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(92%, 310px);
  border: 1px solid rgba(88, 161, 190, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(244, 253, 255, 0.94), rgba(225, 244, 248, 0.9));
  color: #2f6978;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 850;
  font-style: italic;
  text-align: center;
  box-shadow: 0 5px 14px rgba(42, 105, 122, 0.1);
}

.private-call-log i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(47, 105, 120, 0.12);
  color: inherit;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  flex: 0 0 auto;
}

.private-call-log.success {
  border-color: rgba(52, 171, 119, 0.32);
  background: linear-gradient(180deg, rgba(239, 255, 247, 0.96), rgba(207, 244, 224, 0.92));
  color: #16744b;
}

.private-call-log.danger {
  border-color: rgba(214, 86, 98, 0.34);
  background: linear-gradient(180deg, rgba(255, 246, 247, 0.96), rgba(247, 218, 222, 0.92));
  color: #a42e3c;
}

.private-call-log.success i {
  background: rgba(22, 116, 75, 0.13);
}

.private-call-log.danger i {
  background: rgba(164, 46, 60, 0.12);
}

body[data-client-theme="night"] .private-call-log {
  border-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, rgba(26, 51, 61, 0.92), rgba(17, 36, 45, 0.9));
  color: #b8ced6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"] .private-call-log.success {
  border-color: rgba(82, 228, 153, 0.34);
  background: linear-gradient(180deg, rgba(25, 70, 50, 0.9), rgba(15, 48, 36, 0.9));
  color: #a9ffd1;
}

body[data-client-theme="night"] .private-call-log.danger {
  border-color: rgba(255, 122, 134, 0.36);
  background: linear-gradient(180deg, rgba(78, 32, 42, 0.9), rgba(48, 24, 34, 0.9));
  color: #ffd9de;
}

body[data-client-theme="night"] .private-call-log i {
  background: rgba(217, 237, 241, 0.1);
}

.private-message {
  align-self: flex-start;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  max-width: 86%;
  border: 1px solid #c7e2d1;
  border-radius: 8px;
  background: linear-gradient(105deg, #ffffff 0%, #ecf8df 46%, #e8f5e9 100%);
  color: var(--text);
  padding: 5px 9px 5px 7px;
  box-shadow: 0 3px 10px rgba(42, 70, 82, 0.06);
}

.private-message.mine {
  grid-template-columns: minmax(0, 1fr) 28px;
  align-self: flex-end;
  border-color: #ecd0dc;
  background: linear-gradient(105deg, #ffffff 0%, #fff1f6 48%, #f8e6ef 100%);
  padding: 5px 7px 5px 9px;
  text-align: right;
}

.private-message.mine .message-avatar {
  order: 2;
}

.private-message.mine .private-message-body {
  order: 1;
}

.private-message-body {
  transform: translateY(1px);
}

.private-message:not(.mine) .private-message-body {
  transform: translateY(3px);
}

.private-message .message-avatar {
  width: 28px;
  height: 28px;
}

.private-message .message-nick {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 900;
}

.private-message.mine .message-nick {
  color: var(--chat-nick-mine);
}

.private-message:not(.mine) .message-nick {
  color: var(--chat-nick-other);
}

.private-message span {
  overflow-wrap: anywhere;
  line-height: 1.4;
}

body:not(.mobile-layout) .message-nick,
body:not(.mobile-layout) .private-message .message-nick {
  font-size: 13px;
}

.private-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  border-top: 1px solid #c5dce2;
  background: linear-gradient(180deg, #ffffff 0%, #edf6f7 100%);
  padding: 8px;
}

.private-tools {
  position: relative;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  border-top: 1px solid #c5dce2;
  background: linear-gradient(180deg, #fbfefe 0%, #eff7f7 100%);
  padding: 6px 7px;
  overflow: hidden;
}

.private-tools select {
  min-width: 0;
  height: 28px;
  padding: 3px 4px;
  font-size: 10px;
}

.private-tools [data-font-select] {
  width: 62px;
}

.private-tools [data-font-size-select] {
  width: 39px;
}

.private-tools button,
.private-tools .color-tool {
  width: 27px;
  height: 28px;
  font-size: 12px;
}

.private-tools .private-call-button {
  width: 29px;
  height: 28px;
  border-radius: 8px;
}

.private-call-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.private-call-button.audio-call {
  border-color: rgba(49, 159, 103, 0.42);
  background: linear-gradient(180deg, #effff7 0%, #c9f1dd 100%);
  color: #13824c;
}

.private-call-button.video-call {
  border-color: rgba(45, 132, 203, 0.42);
  background: linear-gradient(180deg, #f1f9ff 0%, #cbe6fb 100%);
  color: #1f6ea8;
}

.private-call-button.audio-call:hover {
  border-color: rgba(28, 142, 82, 0.72);
  background: linear-gradient(180deg, #e2fff1 0%, #9ee7c3 100%);
  box-shadow: 0 5px 14px rgba(36, 146, 89, 0.22);
}

.private-call-button.video-call:hover {
  border-color: rgba(35, 118, 185, 0.72);
  background: linear-gradient(180deg, #e7f6ff 0%, #9fd2f4 100%);
  box-shadow: 0 5px 14px rgba(42, 125, 190, 0.22);
}

.private-window .private-smiley-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 54px;
  max-height: 165px;
  z-index: 2;
}

.private-composer input {
  width: 100%;
  min-height: 38px;
  background: #fffdf0;
}

.private-composer button {
  position: relative;
  overflow: hidden;
  min-width: 82px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, #5ca4df 0%, #2f73b8 50%, #18558f 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 6px 14px rgba(36, 99, 158, 0.2);
}

.private-composer button::before {
  content: "";
  position: absolute;
  inset: 1px 1px 50%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.composer-wrap {
  position: relative;
  flex: 0 0 auto;
  margin-top: -10px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  padding: 0 10px 5px;
}

.private-dock {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  margin: -10px 6px 10px;
  padding: 5px 7px;
  border: 1px solid #c8dce3;
  border-radius: 8px;
  background: linear-gradient(180deg, #f9fdfd 0%, #e9f4f2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 4px 12px rgba(38, 77, 84, 0.08);
  overflow-x: auto;
  scrollbar-width: thin;
}

.private-dock[hidden] {
  display: none;
}

.private-dock button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 58px;
  max-width: 118px;
  min-height: 26px;
  border: 1px solid #8ac5bd;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #dff1ed 100%);
  color: #1e625d;
  font-size: 12px;
  font-weight: 800;
  padding: 0 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(32, 100, 94, 0.1);
}

.private-dock button:hover {
  background: linear-gradient(180deg, #f4fffd 0%, #cfe9e3 100%);
  border-color: #2f7d79;
}

.private-dock button.has-call {
  min-width: 136px;
  max-width: 178px;
  border-color: #3caea3;
  background: linear-gradient(180deg, #f7fffd 0%, #d6f2ec 100%);
}

.private-dock button i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #2f7d79;
  color: #fff;
  font-style: normal;
  font-size: 12px;
}

.private-dock button em {
  max-width: 82px;
  overflow: hidden;
  color: #55777b;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-dock span {
  min-width: 0;
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-dock button.has-call span {
  max-width: 106px;
}

.private-dock b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d94e5a;
  color: #fff;
  font-size: 10px;
}

.private-dock.dock-overflow {
  padding-right: 34px;
}

.private-dock.dock-overflow::after {
  content: "›";
  position: sticky;
  right: 0;
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  align-self: stretch;
  margin-left: 2px;
  border-left: 1px solid rgba(47, 125, 121, 0.22);
  background: linear-gradient(90deg, rgba(247, 251, 252, 0), #e9f4f2 42%, #e9f4f2 100%);
  color: #1e625d;
  font-size: 22px;
  font-weight: 950;
  pointer-events: none;
}

.text-tools {
  position: relative;
  top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.text-tools select {
  width: auto;
  min-width: 96px;
  min-height: 32px;
  padding: 5px 8px;
  color: var(--muted);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.text-tools select:hover,
.text-tools select:focus,
.color-tool:hover,
.color-tool:focus-within {
  border-color: #2f7d79;
  background: linear-gradient(180deg, #f6fffd 0%, #e1f3ef 100%);
  color: #184f4b;
  box-shadow: 0 3px 10px rgba(47, 125, 121, 0.12);
}

.text-tools button,
.camera-watch,
.camera-icon-button,
.share-screen-button,
.speaker-mute-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
}

.camera-watch {
  position: relative;
  border-color: #c7dde3;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #edf7f8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 8px rgba(45, 83, 96, 0.08);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

#videoButton.camera-icon-button,
#shareScreenButton.share-screen-button {
  display: inline-grid;
  flex: 0 0 32px;
}

.text-tools button:hover,
.camera-watch:hover,
.camera-icon-button:hover,
.camera-icon-button.active,
.share-screen-button:hover,
.speaker-mute-button:hover {
  border-color: #2f7d79;
  background: linear-gradient(180deg, #f3fffc 0%, #d9f0eb 100%);
  color: #184f4b;
  box-shadow: 0 4px 12px rgba(47, 125, 121, 0.16);
  transform: translateY(-1px);
}

.text-tools button.tool-active,
.text-tools button:focus-visible,
.camera-icon-button.active,
.share-screen-button:focus-visible,
.speaker-mute-button.tool-active {
  border-color: #1f6762;
  background: linear-gradient(180deg, #3faaa3 0%, #2f7d79 48%, #225f5a 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 5px 14px rgba(31, 103, 98, 0.24);
}

.text-tools.private-tools select {
  min-width: 0;
  height: 28px;
  padding: 3px 5px;
  font-size: 11px;
}

.text-tools.private-tools [data-font-select] {
  width: 68px;
}

.text-tools.private-tools [data-font-size-select] {
  width: 42px;
}

.text-tools button.tool-active img {
  filter: saturate(1.15) brightness(1.05);
}

.speaker-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #1f625d;
}

.speaker-icon-svg {
  width: 23px;
  height: 23px;
  overflow: visible;
}

.speaker-box {
  fill: #30a09a;
  stroke: #123d3a;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.speaker-wave {
  fill: none;
  stroke: #123d3a;
  stroke-width: 4;
  stroke-linecap: round;
}

.speaker-cross {
  display: none;
  fill: none;
  stroke: #d93948;
  stroke-width: 5;
  stroke-linecap: round;
}

.speaker-mute-button.tool-active {
  color: #143f3b;
}

.speaker-mute-button.tool-active .speaker-box {
  fill: #d7f4ef;
  stroke: #143f3b;
}

.speaker-mute-button.tool-active .speaker-wave {
  display: none;
}

.speaker-mute-button.tool-active .speaker-cross {
  display: block;
}

.color-tool {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #edf6f5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 2px 7px rgba(32, 73, 81, 0.06);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.color-tool::before {
  content: "A";
  color: #1d5f5a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.color-tool:hover {
  transform: translateY(-1px);
}

#colorSwatch,
.color-swatch {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 4px;
  border-radius: 999px;
  background: #2f7d79;
  box-shadow: 0 0 0 1px rgba(24, 79, 75, 0.12);
}

#fontColorInput,
.font-color-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.camera-watch:hover {
  border-color: #70b8b4;
  background: linear-gradient(180deg, #f4fffd 0%, #dff3f0 100%);
  box-shadow: 0 5px 14px rgba(47, 125, 121, 0.16);
  transform: translateY(-1px);
}

.camera-watch.camera-ignored {
  opacity: 1;
  border-color: #d59aa4;
  background: linear-gradient(180deg, #fff6f7 0%, #f4dde1 100%);
}

.camera-watch.camera-ignored::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-top: 3px solid #c74455;
  transform: rotate(-42deg);
  transform-origin: center;
}

.camera-icon-button img,
.smiley-button img,
.speaker-mute-button img,
.share-screen-button img,
.camera-watch img {
  max-width: 20px;
  max-height: 20px;
  background: transparent;
}

#videoButton img,
#shareScreenButton img {
  display: block;
}

.composer {
  position: relative;
  top: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  border: 1px solid #cfe1e7;
  border-radius: 9px;
  background: linear-gradient(180deg, #fafdfe 0%, #edf5f7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 6px 16px rgba(42, 70, 82, 0.08);
  padding: 6px;
}

.composer input {
  min-height: 54px;
  height: 54px;
  background: #ffffff;
  font-size: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
}

body.client-muted .composer input {
  border-color: #c6cfd4;
  background: #edf1f3;
  color: #8a99a0;
  cursor: not-allowed;
}

.composer button {
  min-height: 54px;
  min-width: 92px;
}

body.client-muted .composer button {
  filter: grayscale(0.45);
  opacity: 0.72;
  cursor: not-allowed;
}

body.client-muted #talkButton,
body.client-muted #mobileTalkButton,
#talkButton.disabled-by-mute,
#mobileTalkButton.disabled-by-mute {
  filter: grayscale(0.55);
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

#talkButton:disabled,
#mobileTalkButton:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

#talkButton.device-missing,
#mobileTalkButton.device-missing,
#videoButton.device-missing,
#mobileVideoButton.device-missing {
  border-color: #b8d7ee !important;
  background:
    linear-gradient(180deg, #eef8ff 0%, #d7ecfb 52%, #bddcf3 100%) !important;
  color: #4b5563 !important;
  cursor: not-allowed !important;
  opacity: 0.86 !important;
  filter: none !important;
  pointer-events: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -8px 14px rgba(80, 126, 160, 0.1) !important;
}

#talkButton.device-missing,
#mobileTalkButton.device-missing {
  border-radius: 8px !important;
}

#sendButton {
  border-color: rgba(255, 255, 255, 0.64);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.17) 42%, rgba(255, 255, 255, 0.06) 43%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(180deg, #70c9ff 0%, #2f9ee6 52%, #1670c0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 11px 18px rgba(255, 255, 255, 0.16),
    inset 0 -10px 16px rgba(0, 0, 0, 0.17),
    0 8px 18px rgba(36, 128, 205, 0.28);
}

#sendButton:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.06) 43%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, #5dbcff 0%, #218bd6 52%, #105fa8 100%);
}

.smiley-panel {
  position: absolute;
  left: 10px;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: min(360px, calc(100vw - 20px));
  max-height: 330px;
  border: 1px solid #b9d9d2;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfffd 0%, #eff9f5 100%);
  box-shadow: 0 16px 42px rgba(31, 103, 98, 0.16);
  padding: 10px;
}

.smiley-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 6px;
  max-height: 238px;
  margin-top: 8px;
  overflow: auto;
}

.smiley-choice {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cfe6df;
  border-radius: var(--radius-sm);
  background: transparent !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.smiley-choice:hover {
  border-color: #2f7d79;
  background: rgba(233, 250, 244, 0.52);
  box-shadow: 0 5px 12px rgba(47, 125, 121, 0.18);
  transform: translateY(-1px);
}

.smiley-choice:active,
.smiley-choice:focus-visible {
  border-color: #1f6762;
  background: rgba(63, 170, 163, 0.2);
}

.smiley-choice img,
.inline-smile {
  max-width: 24px;
  max-height: 24px;
  background: transparent;
  vertical-align: middle;
}

.smiley-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 10px;
  text-align: center;
}

.private-window .private-smiley-panel {
  left: 8px;
  right: 8px;
  bottom: 104px;
  width: auto;
  max-height: 150px;
  padding: 8px;
  box-shadow: 0 10px 26px rgba(31, 103, 98, 0.14);
}

.private-window .private-smiley-panel .smiley-grid {
  grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
  gap: 5px;
  max-height: 96px;
}

.private-window .private-smiley-panel .smiley-choice {
  width: 28px;
  height: 28px;
}

.private-window .private-smiley-panel .smiley-choice img {
  max-width: 20px;
  max-height: 20px;
}

.room-admin {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.admin-room-list .list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.inline-danger {
  min-height: 30px;
  border: 1px solid #efc7cd;
  border-radius: var(--radius-sm);
  background: #fff6f7;
  color: var(--red);
  padding: 0 10px;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.status-dot.busy,
.rec-dot,
.button-rec {
  background: var(--red);
}

.status-dot.away {
  background: var(--yellow);
}

.status-dot.break {
  background: var(--blue);
}

.rec-dot,
.button-rec {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.camera-watch .rec-dot {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border: 1px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(212, 91, 104, 0.16);
  animation: recPulse 1s ease-in-out infinite;
}

@keyframes recPulse {
  0%,
  100% {
    opacity: 0.45;
    box-shadow: 0 0 0 1px rgba(212, 91, 104, 0.14);
    transform: scale(0.86);
  }

  45% {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(212, 91, 104, 0.2), 0 0 8px rgba(212, 91, 104, 0.5);
    transform: scale(1.08);
  }
}

.panel-action.talk-idle {
  border: 1px solid #86d7c7;
  background: linear-gradient(180deg, #f7fffc 0%, #dff8f1 100%);
  color: #12665f;
  box-shadow: 0 10px 24px rgba(31, 103, 98, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.panel-action.talk-talking {
  border: 1px solid #f0a3ad;
  background: linear-gradient(180deg, #fff6f7 0%, #ffdce1 100%);
  color: #9b2333;
  box-shadow: 0 10px 24px rgba(188, 54, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.panel-action.talk-queued {
  border: 1px solid #9ac9ef;
  background: linear-gradient(180deg, #f4fbff 0%, #dcedfb 100%);
  color: #1f5e91;
  box-shadow: 0 10px 24px rgba(54, 122, 186, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.talk-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.talk-mic::before {
  content: "";
  width: 8px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.talk-mic::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 0 0 9px 9px;
}

.talk-rec::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff2f45;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45), 0 0 12px rgba(255, 47, 69, 0.75);
  animation: recPulse 1s ease-in-out infinite;
}

.user-context-menu {
  position: fixed;
  z-index: 10000;
  min-width: 238px;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border: 1px solid #c9dde1;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfa 100%);
  box-shadow: 0 16px 40px rgba(31, 60, 70, 0.18);
  padding: 7px;
}

.user-context-menu.mine-menu,
.user-context-menu.mine-menu .submenu {
  border-color: #b7d9d3;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf8 100%);
}

.user-context-menu.other-menu {
  border-color: #e2b5ad;
  background: linear-gradient(180deg, #fffdfc 0%, #fff3f0 100%);
  box-shadow: 0 16px 40px rgba(117, 54, 44, 0.16);
}

.admin-quick-menu-dropdown {
  min-width: 176px;
}

.menu-user-title {
  margin: 2px 4px 7px;
  border-bottom: 1px solid rgba(190, 90, 77, 0.2);
  color: #8f2f28;
  padding: 0 4px 7px;
  font-size: 12px;
  font-weight: 800;
}

.user-context-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  padding: 0 9px;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.user-context-menu button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.user-context-menu button:hover,
.menu-parent:hover > button {
  border-color: #2f7d79;
  background: linear-gradient(180deg, #3faaa3 0%, #2f7d79 100%);
  color: #ffffff;
}

.user-context-menu button:disabled:hover {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.user-context-menu.other-menu button:hover {
  border-color: #a94538;
  background: linear-gradient(180deg, #df8a7d 0%, #bd594c 100%);
  color: #ffffff;
}

.user-context-menu.other-menu .check-menu-item.checked {
  border-color: #bd594c;
  background: linear-gradient(180deg, #fff3f0 0%, #f4d4ce 100%);
  color: #8f2f28;
}

.menu-parent {
  position: relative;
}

.menu-parent::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -14px;
  width: 18px;
  height: calc(100% + 12px);
}

.submenu {
  display: none;
  position: fixed;
  top: 8px;
  left: 8px;
  min-width: 220px;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border: 1px solid #c9dde1;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfa 100%);
  box-shadow: 0 16px 40px rgba(31, 60, 70, 0.18);
  padding: 7px;
}

.menu-parent:hover .submenu {
  display: block;
}

.chat-context-menu {
  min-width: 230px;
}

.room-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 18%, rgba(145, 205, 218, 0.24), transparent 34%),
    rgba(44, 67, 76, 0.54);
  backdrop-filter: blur(3px);
  font-family: var(--font-main);
}

.room-gate-card,
.room-settings-card {
  width: min(430px, 100%);
  border: 1px solid #c8dce3;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 250, 0.98) 100%);
  box-shadow: 0 24px 64px rgba(46, 80, 92, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  padding: 24px;
}

.room-gate-card {
  position: relative;
  display: grid;
  gap: 13px;
  text-align: center;
  overflow: hidden;
}

.room-gate-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #b7dde6, #87c8d8, #bfe5df);
}

.room-window-card {
  width: min(470px, calc(100vw - 34px));
  padding: 0;
  gap: 0;
  border: 1px solid #9fc2cc;
  border-radius: 8px;
  background: #fbfeff;
  text-align: left;
  box-shadow:
    0 26px 70px rgba(15, 47, 58, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.room-window-card::before {
  display: none;
}

.room-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  border-bottom: 1px solid #cde1e7;
  border-radius: 7px 7px 0 0;
  padding: 0 8px 0 13px;
  color: #315f6d;
  user-select: none;
}

.room-window-titlebar strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-window-titlebar button {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 24px;
  border: 1px solid #df9b91;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff5f2 0%, #edb6ad 100%);
  color: #9b382f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.room-window-titlebar button:hover {
  border-color: #c97066;
  background: linear-gradient(180deg, #fff8f6 0%, #f1d2cd 100%);
}

.room-window-blue .room-window-titlebar {
  background: linear-gradient(180deg, #f3fbff 0%, #cfe8f7 100%);
  color: #285f83;
}

.room-window-red .room-window-titlebar {
  border-bottom-color: #e6c4c1;
  background: linear-gradient(180deg, #fff6f5 0%, #f4d4d0 100%);
  color: #8a3630;
}

.room-window-body {
  display: grid;
  gap: 13px;
  padding: 20px 22px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfc 100%);
}

.room-gate-card p,
.room-settings-head p {
  margin: 0;
  color: #8ba0a8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.room-gate-card h2,
.room-settings-head h2 {
  margin: 0;
  color: #496a76;
  font-size: 18px;
  font-weight: 850;
}

.room-gate-card span {
  color: #28708a;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.42;
}

.room-window-red .room-gate-card span,
.room-window-red .room-window-body > span {
  color: #a6453d;
}

.room-window-body > h2 {
  color: #78909a;
  font-size: 22px;
  font-weight: 900;
}

.room-window-red .room-window-body > h2 {
  color: #a6453d;
}

.room-window-room-name {
  display: block;
  color: #7e939c;
  font-size: 12px;
  font-weight: 750;
}

.room-gate-card input,
.room-gate-card textarea,
.room-settings-form input,
.room-settings-form textarea {
  width: 100%;
  border: 1px solid #d4e4ea;
  border-radius: 8px;
  background: #ffffff;
  color: #566f79;
  padding: 11px 12px;
  outline: none;
}

.room-gate-card blockquote {
  margin: 0;
  border-left: 3px solid #93ccd8;
  border-radius: 7px;
  background: #f3fafb;
  color: #627b85;
  padding: 10px 12px;
  text-align: left;
}

.room-gate-actions,
.room-settings-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.room-gate-actions button,
.room-settings-form footer button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 900;
}

.room-gate-actions .primary,
.room-settings-form .primary {
  border: 1px solid #8fc9d6;
  background: linear-gradient(180deg, #8bd0de 0%, #55aabd 100%);
  color: #fff;
}

.room-gate-actions .secondary,
.room-settings-form .secondary {
  border: 1px solid #d3e2e8;
  background: #ffffff;
  color: #778c95;
}

.private-room-gate .room-gate-card::before {
  background: linear-gradient(90deg, #f5e9b8, #ecd477, #d9eef2);
}

.locked-room-gate .room-gate-card::before {
  background: linear-gradient(90deg, #efc7b8, #e8a990, #d9eef2);
}

.join-request-gate .room-gate-card::before {
  background: linear-gradient(90deg, #bfe5df, #8fc9d6, #f5e9b8);
}

.room-settings-card {
  width: min(640px, 100%);
  padding: 0;
  overflow: hidden;
  border: 1px solid #c5d9e1;
  border-radius: 9px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5fbfc 100%);
  box-shadow:
    0 24px 66px rgba(15, 47, 58, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.room-settings-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #cfe2e8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 248, 250, 0.94) 100%),
    #f1f7f9;
  padding: 18px 20px 16px;
}

.room-settings-head p {
  margin-bottom: 4px;
  color: #91a5ad;
}

.room-settings-head h2 {
  font-size: 24px;
  color: #496a76;
  font-weight: 850;
}

.room-settings-head button {
  width: 36px;
  height: 36px;
  border: 1px solid #cbdde4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #7c929b;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(46, 89, 103, 0.08);
}

.room-settings-id {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  border: 1px solid #bddfe4;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #e9f7f8 100%);
  color: #8298a0;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.room-settings-id b {
  color: #5f9cac;
}

.room-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: min(72vh, 680px);
  overflow: auto;
  margin: 0;
  background: #f1f7f9;
  padding: 18px 20px 20px;
}

.room-settings-form label {
  display: grid;
  gap: 6px;
  color: #7c929b;
  font-size: 13px;
  font-weight: 800;
}

.room-settings-form label:has(textarea),
.room-settings-form label:has([name="background_url"]),
.room-settings-form label:has([name="user_list_background_url"]),
.room-password-field,
.room-settings-form footer,
.room-settings-message {
  grid-column: 1 / -1;
}

.room-settings-form input,
.room-settings-form textarea {
  min-height: 42px;
  border-color: #c5d9e1;
  border-radius: 7px;
  background: #ffffff;
  color: #566f79;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.room-settings-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
}

.room-settings-checks label {
  display: flex;
  align-items: center;
  border: 1px solid #c5d9e1;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #edf7f9 100%);
  padding: 11px 12px;
  box-shadow: 0 4px 12px rgba(45, 103, 117, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.room-settings-checks input {
  width: 16px;
}

.room-settings-message {
  min-height: 18px;
  color: #5b909c;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.room-settings-form footer {
  border-top: 1px solid #d4e5eb;
  margin-top: 2px;
  padding-top: 14px;
}

@media (max-width: 680px) {
  .room-settings-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .room-settings-head {
    padding: 18px;
  }

  .room-settings-checks {
    grid-template-columns: 1fr;
  }
}

.menu-arrow,
.menu-check {
  margin-left: auto;
}

.menu-check {
  color: var(--green);
}

.menu-separator {
  height: 1px;
  margin: 5px 0;
  background: var(--line);
}

.floating-video {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 60;
  width: min(320px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid #22313a;
  border-radius: var(--radius);
  background: #111b22;
  color: #fff;
  box-shadow: var(--shadow);
  touch-action: none;
  user-select: none;
}

.floating-video header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.42);
  cursor: move;
  touch-action: none;
}

.floating-video.is-dragging {
  cursor: grabbing;
  opacity: 0.96;
}

.floating-video-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.floating-video button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.floating-video button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.camera-switch-button {
  font-size: 17px;
  line-height: 1;
}

.floating-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  object-fit: cover;
  pointer-events: none;
}

.floating-video.screen-video {
  width: min(520px, calc(100vw - 36px));
}

.floating-video.screen-video video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.viewer-list {
  min-height: 24px;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.voice-bars {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 21px;
  min-width: 40px;
}

.voice-bars i {
  display: block;
  width: 4px;
  height: calc(4px + (var(--step) * 1.85px));
  border-radius: 2px 2px 1px 1px;
  background: #d7e1e4;
  opacity: 0.75;
  transform-origin: bottom;
  transition: background 70ms linear, opacity 70ms linear, transform 70ms linear;
}

.voice-bars.active i.on {
  opacity: 1;
  transform: scaleY(1.08);
}

.voice-bars i:nth-child(1).on {
  background: #cfd8dc;
}

.voice-bars i:nth-child(2).on {
  background: #8f9aa0;
}

.voice-bars i:nth-child(3).on {
  background: #a7dfbe;
}

.voice-bars i:nth-child(4).on {
  background: #35a66d;
}

.voice-bars i:nth-child(5).on {
  background: #a9d5f7;
}

.voice-bars i:nth-child(6).on {
  background: #3b82c4;
}

.voice-bars i:nth-child(7).on {
  background: #f3a6ad;
}

.voice-bars i:nth-child(8).on {
  background: #d45b68;
  box-shadow: 0 0 6px rgba(212, 91, 104, 0.22);
}

.ignore-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d28d98;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7f8 0%, #f2d5da 100%);
  color: #a62f42;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.room-toast-stack {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 110;
  display: grid;
  gap: 8px;
}

.room-toast {
  width: min(320px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.room-toast.join {
  border-color: #a8d8b8;
  background: linear-gradient(180deg, #f3fff7 0%, #e1f7e9 100%);
  box-shadow: 0 14px 34px rgba(45, 120, 76, 0.16);
}

.room-toast.leave {
  border-color: #dda49a;
  background: linear-gradient(180deg, #fff6f4 0%, #f7dfda 100%);
  box-shadow: 0 14px 34px rgba(151, 58, 44, 0.16);
}

.room-toast.friend-online {
  border-color: #7fb4df;
  background: linear-gradient(180deg, #f6fbff 0%, #dfefff 100%);
  box-shadow: 0 14px 34px rgba(42, 104, 158, 0.18);
}

.room-toast.closing {
  opacity: 0;
  transform: translateY(8px);
}

.room-toast-title {
  margin-bottom: 4px;
  font-weight: 800;
}

.room-toast-body {
  color: var(--muted);
}

.room-toast.join .room-toast-title,
.room-toast.join .room-toast-body {
  color: #1f6d3f;
}

.room-toast.leave .room-toast-title,
.room-toast.leave .room-toast-body {
  color: #8f2f28;
}

.room-toast.friend-online .room-toast-title,
.room-toast.friend-online .room-toast-body {
  color: #225f93;
}

.admin-confirm-toast-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 39, 48, 0.26);
}

.admin-confirm-toast-overlay.closing {
  opacity: 0;
  transition: opacity 160ms ease;
}

.admin-confirm-toast {
  width: min(360px, calc(100vw - 28px));
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(213, 155, 47, 0.34);
  border-radius: 8px;
  background: rgba(255, 252, 239, 0.96);
  box-shadow: 0 18px 44px rgba(21, 46, 56, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: #4b3b11;
}

.admin-confirm-toast strong {
  font-size: 14px;
  font-weight: 900;
}

.admin-confirm-toast span {
  font-size: 13px;
  line-height: 1.35;
}

.admin-confirm-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.admin-confirm-toast-actions button {
  min-width: 78px;
}

@media (max-width: 860px) {
  body {
    overflow: hidden;
  }

  .login-screen {
    display: grid;
    place-items: stretch;
    min-height: 100svh;
    padding: 0;
    background:
      radial-gradient(circle at 50% 10%, rgba(74, 166, 162, 0.2), transparent 36%),
      linear-gradient(180deg, #f9fcfd 0%, #eef7f8 42%, #ffffff 100%);
  }

  .login-card {
    display: grid;
    grid-template-rows: 44px minmax(0, 1fr) minmax(38px, auto);
    height: 100svh;
    max-height: 100svh;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fbfeff;
    box-shadow: none;
    overflow: auto;
    scrollbar-width: none;
  }

  .login-titlebar {
    min-height: 44px;
    padding: 0 11px 0 15px;
  }

  .login-titlebar strong {
    font-size: 15px;
  }

  .login-titlebar button {
    width: 30px;
    height: 28px;
  }

  .login-window-body {
    overflow: auto;
    padding: 24px 22px 18px;
  }

  .login-card::-webkit-scrollbar {
    display: none;
  }

  .register-card {
    gap: 0;
  }

  .login-card h1 {
    margin-bottom: 12px;
    font-size: 36px;
    line-height: 1.05;
  }

  .login-card p {
    max-width: 360px;
    margin-bottom: 18px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    line-height: 1.5;
  }

  .permission-note {
    max-width: none;
    border-radius: 10px;
    padding: 12px 13px;
  }

  .login-card label {
    gap: 8px;
    margin: 14px 0;
    font-size: 15px;
  }

  .login-card input {
    min-height: 54px;
    border-radius: 10px;
    padding: 12px 14px 12px 46px;
    font-size: 17px;
  }

  .login-submit {
    min-height: 64px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 21px;
  }

  .login-submit + .auth-switch {
    margin-top: 48px !important;
  }

  .register-card .login-submit {
    min-height: 60px;
  }

  .login-statusbar {
    min-height: 38px;
    padding: 4px 12px;
    font-size: 13px;
  }

  .connection-overlay {
    padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  }

  .connection-card {
    border-radius: 10px;
    padding: 22px 18px;
  }

  .chat-shell {
    grid-template-columns: 1fr;
    height: var(--ii-app-height, 100dvh);
    min-height: var(--ii-app-height, 100dvh);
    padding: 4px;
  }

  .side {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    height: min(76dvh, 640px);
    max-height: calc(var(--ii-app-height, 100dvh) - max(10px, env(safe-area-inset-top)));
    min-height: 0;
    border-radius: 18px 18px 0 0;
    border-color: #b9d3dc;
    box-shadow: 0 -16px 40px rgba(21, 46, 56, 0.24);
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + max(18px, env(safe-area-inset-bottom))));
    transition: transform 190ms ease, visibility 0s linear 190ms;
  }

  body.mobile-sheet-open .side {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: transform 190ms ease;
  }

  .mobile-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    border: 0;
    background: rgba(19, 34, 41, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  body.mobile-sheet-open .mobile-sheet-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-sheet-head {
    position: sticky;
    top: 0;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f2f8fa 100%);
  }

  .mobile-sheet-head strong {
    font-size: 16px;
  }

  .mobile-sheet-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-sheet-head button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #c8dce3;
    border-radius: 999px;
    background: #ffffff;
    color: #48616b;
    font-weight: 800;
  }

  .mobile-sheet-head .mobile-sheet-icon-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    pointer-events: none;
  }

  .side .brand,
  .side .tabs {
    display: none;
  }

  .side .tab-panel {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow: auto;
    padding: 10px 10px max(14px, env(safe-area-inset-bottom));
  }

  .conversation {
    height: calc(var(--ii-app-height, 100svh) - 8px);
    min-height: 0;
  }

  .messages {
    min-height: 0;
  }

  .room-welcome-card {
    max-width: 96%;
    border-radius: 12px;
    padding: 8px 11px;
  }

  .room-welcome-card strong {
    font-size: 12px;
  }

  .room-welcome-card span {
    font-size: 11px;
  }

  .composer-wrap {
    padding: 8px 8px max(var(--ii-android-bottom-guard), env(safe-area-inset-bottom));
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f5fbfc 100%);
  }

  .mobile-action-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d8e8ed;
  }

  .mobile-action-bar .mobile-nav-tool {
    display: inline-grid;
    place-items: center;
    min-width: 0;
    height: 36px;
    padding: 0 4px;
    border: 1px solid #c8dce3;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #eaf5f8 100%);
    color: #245f93;
    font-size: 10.5px;
    font-weight: 800;
    box-shadow: 0 3px 9px rgba(38, 77, 84, 0.08);
    white-space: nowrap;
  }

  .mobile-action-bar .mobile-nav-tool.admin-only[hidden] {
    display: none !important;
  }

  .text-tools {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .text-tools > * {
    flex: 0 0 auto;
  }

  .mobile-action-bar .mobile-primary-tool {
    display: inline-grid;
    place-items: center;
    min-width: 0;
    height: 36px;
    border: 1px solid #c8dce3;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #eaf5f8 100%);
    color: #1f625d;
    font-size: 10.5px;
    font-weight: 800;
    box-shadow: 0 3px 9px rgba(38, 77, 84, 0.08);
    white-space: nowrap;
  }

  .mobile-action-bar .mobile-primary-tool img {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  .mobile-action-bar #mobileVideoButton,
  .mobile-action-bar #mobileShareScreenButton {
    grid-template-columns: auto auto;
    gap: 3px;
  }

  .mobile-action-bar #mobileTalkButton {
    grid-template-columns: auto auto;
    gap: 3px;
    color: #1f625d;
    background: linear-gradient(180deg, #ffffff 0%, #eaf5f8 100%);
    border-color: #c8dce3;
  }

  .text-tools #videoButton.camera-icon-button,
  .text-tools #shareScreenButton.share-screen-button {
    display: none;
  }

  .text-tools select {
    min-width: 82px;
  }

  .room-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 5px;
    padding: 7px 154px 7px 8px;
  }

  .room-title-block {
    grid-column: 1 / 2;
    grid-row: 1;
    min-width: 0;
    max-width: none;
  }

  .room-head h1 {
    margin: 0;
    font-size: 16px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .room-welcome {
    display: none;
  }

  .room-topic {
    display: block;
    max-width: 100%;
    margin: 2px 0 0;
    overflow: hidden;
    color: var(--faint);
    font-size: 10.5px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-meta {
    display: contents;
  }

  .room-menu-button {
    position: absolute;
    top: 7px;
    right: 82px;
    display: inline-grid;
    place-items: center;
    min-width: 68px;
    min-height: 32px;
    border: 1px solid #8fb5c1;
    border-radius: 5px;
    background: linear-gradient(180deg, #ffffff 0%, #edf6f8 100%);
    color: #315965;
    padding: 0 7px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
  }

  .room-logout-button {
    position: absolute;
    top: 7px;
    right: 8px;
    min-width: 68px;
    min-height: 32px;
    border-radius: 5px;
    padding: 0 7px;
  }

  .room-admin-button {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    min-width: 62px;
    min-height: 24px;
    font-size: 9px;
    padding: 0 6px;
  }

  #roomLimit {
    grid-column: 4;
    grid-row: 2;
    justify-self: end;
  }

  #roomOwner {
    grid-column: 5;
    grid-row: 2;
    justify-self: end;
  }

  #roomStatus {
    grid-column: 5;
    grid-row: 2;
    justify-self: end;
  }

  .speaker-indicator {
    min-height: 24px;
    border-radius: 5px;
    padding: 0 8px;
    gap: 5px;
  }

  .speaker-indicator b {
    max-width: 120px;
    font-size: 11px;
  }

  .speaker-indicator img {
    width: 16px;
    height: 16px;
  }

  .speaker-action-row {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    justify-self: start;
    margin-left: -34px;
    min-height: 24px;
  }

  .meta-pill,
  .queue-badge {
    min-height: 22px;
    border-radius: 5px;
    padding: 0 7px;
    font-size: 10.5px;
  }
}

body.mobile-layout .composer-wrap {
  display: flex;
  flex-direction: column;
  padding: 3px 7px max(4px, env(safe-area-inset-bottom));
}

body.mobile-layout .conversation {
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  transition: margin-left 180ms ease, width 180ms ease;
}

body.mobile-layout.mobile-rail-collapsed .conversation {
  width: 100%;
  margin-left: 0;
}

body.mobile-layout .mobile-rail-toggle {
  display: none;
}

body.mobile-layout .mobile-rail-toggle::before {
  content: "";
  width: 10px;
  height: 10px;
  border: solid #315965;
  border-width: 0 0 2px 2px;
  transform: translateX(2px) rotate(45deg);
  transition: transform 180ms ease;
}

body.mobile-layout.mobile-rail-collapsed .mobile-rail-toggle::before {
  transform: translateX(-2px) rotate(225deg);
}

body.mobile-layout .room-head {
  grid-template-columns: minmax(0, 1fr) auto auto max-content;
  grid-template-rows: auto auto;
  gap: 6px 6px;
  padding: 7px 8px 8px;
}

body.mobile-layout .room-title-block {
  grid-column: 1 / 3;
  grid-row: 1;
}

body.mobile-layout .room-menu-button,
body.mobile-layout .room-logout-button {
  position: absolute;
  top: 7px;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 3px !important;
  border-radius: 5px;
  font-size: 10px !important;
  line-height: 1;
}

body.mobile-layout .room-menu-button {
  right: 80px;
  width: 58px !important;
  max-width: 58px !important;
  min-width: 58px !important;
}

body.mobile-layout .room-logout-button {
  right: 8px;
  width: 66px !important;
  max-width: 66px !important;
  min-width: 66px !important;
}

body.mobile-layout .room-admin-button {
  grid-column: 4;
  grid-row: 2;
  justify-self: end;
  width: 66px !important;
  max-width: 66px !important;
  min-width: 66px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 5px !important;
  font-size: 10px !important;
}

body.mobile-layout #roomLimit {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  margin-left: 0;
}

body.mobile-layout #roomOwner {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  margin-left: 0;
}

body.mobile-layout .room-head:has(#adminQuickButton[hidden]) #roomLimit {
  grid-column: 3;
}

body.mobile-layout .room-head:has(#adminQuickButton[hidden]) #roomOwner {
  grid-column: 4;
  justify-self: end;
}

body.mobile-layout .room-head:has(#adminQuickButton[hidden]):has(#roomOwner[hidden]) #roomLimit {
  grid-column: 4;
}

body.mobile-layout .speaker-action-row {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  justify-content: flex-start;
  max-width: none;
  margin-left: 0 !important;
  overflow: visible;
}

body.mobile-layout .speaker-indicator {
  max-width: none;
  min-width: 0;
}

body.mobile-layout .speaker-indicator b {
  min-width: 0;
  max-width: none;
}

body.mobile-layout .room-meta .meta-pill {
  min-height: 28px;
  padding: 0 7px;
}

body.mobile-layout .mobile-live-stack {
  position: absolute;
  top: 96px;
  right: 8px;
  z-index: 65;
  display: grid;
  justify-items: end;
  gap: 5px;
  max-width: min(62vw, 300px);
  pointer-events: none;
}

body.mobile-layout .mobile-live-stack[hidden] {
  display: none;
}

body.mobile-layout .mobile-live-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

body.mobile-layout .mobile-live-pill {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 142px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 2px 8px 2px 3px;
  color: #ffffff;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 18px rgba(21, 46, 56, 0.18);
}

body.mobile-layout .mobile-live-pill.audio {
  background: linear-gradient(180deg, rgba(239, 111, 128, 0.94) 0%, rgba(210, 78, 96, 0.94) 100%);
}

body.mobile-layout .mobile-live-pill.audio.voice-active {
  box-shadow:
    0 8px 18px rgba(21, 46, 56, 0.18),
    0 0 calc(8px + (var(--voice-level, 0) * 18px)) rgba(255, 36, 82, 0.82),
    0 0 calc(16px + (var(--voice-level, 0) * 34px)) rgba(255, 235, 245, 0.58);
  animation: mobileAudioPillNeon 620ms ease-in-out infinite;
  animation-duration: calc(760ms - (var(--voice-level, 0) * 260ms));
}

body.mobile-layout .mobile-live-pill.audio.voice-active::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(255, 55, 96, 0.78);
  border-radius: 999px;
  opacity: calc(0.34 + (var(--voice-level, 0) * 0.5));
  pointer-events: none;
  animation: mobileAudioRing 620ms ease-out infinite;
  animation-duration: calc(760ms - (var(--voice-level, 0) * 260ms));
}

@keyframes mobileAudioPillNeon {
  0%,
  100% {
    box-shadow:
      0 8px 18px rgba(21, 46, 56, 0.18),
      0 0 calc(6px + (var(--voice-level, 0) * 12px)) rgba(255, 36, 82, 0.58),
      0 0 calc(12px + (var(--voice-level, 0) * 24px)) rgba(255, 235, 245, 0.36);
  }

  45% {
    box-shadow:
      0 8px 18px rgba(21, 46, 56, 0.18),
      0 0 calc(11px + (var(--voice-level, 0) * 24px)) rgba(255, 36, 82, 0.94),
      0 0 calc(20px + (var(--voice-level, 0) * 42px)) rgba(255, 235, 245, 0.64);
  }
}

@keyframes mobileAudioRing {
  0% {
    transform: scale(0.96);
    opacity: calc(0.28 + (var(--voice-level, 0) * 0.44));
  }

  100% {
    transform: scale(calc(1.08 + (var(--voice-level, 0) * 0.18)));
    opacity: 0;
  }
}

body.mobile-layout .mobile-live-pill.video {
  background: linear-gradient(180deg, rgba(74, 167, 219, 0.94) 0%, rgba(47, 128, 194, 0.94) 100%);
}

body.mobile-layout .mobile-live-pill.screen {
  background: linear-gradient(180deg, rgba(35, 157, 118, 0.96) 0%, rgba(22, 116, 99, 0.96) 100%);
}

body.mobile-layout .mobile-live-pill[data-mobile-live-watch],
body.mobile-layout .mobile-live-pill[data-mobile-live-screen-watch] {
  cursor: pointer;
  pointer-events: auto;
}

body.mobile-layout .mobile-live-pill[data-mobile-live-watch]:active,
body.mobile-layout .mobile-live-pill[data-mobile-live-screen-watch]:active {
  transform: translateY(1px);
}

body.mobile-layout .mobile-live-pill .user-avatar {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  min-width: 23px;
  border-radius: 999px;
  font-size: 10px;
}

body.mobile-layout .mobile-live-pill b {
  min-width: 0;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mobile-layout .mobile-live-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.28));
}

body.mobile-layout .mobile-live-pill.audio.voice-active .mobile-live-icon {
  transform: scale(calc(0.94 + (var(--voice-level, 0) * 0.36)));
  filter:
    drop-shadow(0 1px 1px rgba(17, 24, 39, 0.3))
    drop-shadow(0 0 calc(4px + (var(--voice-level, 0) * 12px)) rgba(255, 255, 255, 0.95));
  animation: mobileMicVoicePulse 520ms ease-in-out infinite;
  animation-duration: calc(680ms - (var(--voice-level, 0) * 240ms));
}

@keyframes mobileMicVoicePulse {
  0%,
  100% {
    transform: scale(calc(0.94 + (var(--voice-level, 0) * 0.22)));
  }

  45% {
    transform: scale(calc(1 + (var(--voice-level, 0) * 0.42)));
  }
}

body.mobile-layout .mobile-rail-logo,
body.mobile-layout .mobile-action-bar {
  transition: transform 180ms ease, opacity 180ms ease, visibility 0s linear 0s;
}

body.mobile-layout.mobile-rail-collapsed .mobile-rail-logo,
body.mobile-layout.mobile-rail-collapsed .mobile-rail-toggle {
  visibility: hidden;
  opacity: 0;
  transform: translateX(-58px);
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease, visibility 0s linear 180ms;
}

body.mobile-layout .mobile-rail-logo {
  display: none;
}

body.mobile-layout .mobile-rail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

body.mobile-layout .room-toast-stack {
  top: max(8px, env(safe-area-inset-top));
  left: 8px;
  right: 8px;
  bottom: auto;
  z-index: 140;
  justify-items: stretch;
}

body.mobile-layout .room-toast {
  width: auto;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 10px 26px rgba(21, 46, 56, 0.2);
}

body.mobile-layout .room-toast.closing {
  transform: translateY(-8px);
}

body.mobile-layout .mobile-action-bar {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  order: 4;
  gap: 5px;
  width: 100%;
  margin: 1px 0 0;
  padding: 5px 5px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(174, 202, 212, 0.86);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 248, 250, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 5px 13px rgba(31, 66, 78, 0.1);
  scrollbar-width: none;
}

body.mobile-layout.mobile-keyboard-open .mobile-action-bar {
  display: none;
}

body.mobile-layout.mobile-keyboard-open .composer-wrap {
  padding-bottom: max(3px, env(safe-area-inset-bottom));
}

body.mobile-layout .mobile-action-bar::after,
body.mobile-layout .mobile-action-bar::before {
  position: sticky;
  z-index: 3;
  display: none;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 45px;
  margin-top: -5px;
  margin-bottom: -6px;
  color: #245f93;
  font-size: 18px;
  font-weight: 900;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.mobile-layout .mobile-action-bar::before {
  content: "<";
  left: -5px;
  order: -1;
  background: linear-gradient(90deg, rgba(239, 248, 250, 0.98) 0%, rgba(239, 248, 250, 0) 100%);
}

body.mobile-layout .mobile-action-bar::after {
  content: ">";
  right: -5px;
  margin-left: auto;
  background: linear-gradient(270deg, rgba(239, 248, 250, 0.98) 0%, rgba(239, 248, 250, 0) 100%);
}

body.mobile-layout .mobile-action-bar.can-scroll-left::before,
body.mobile-layout .mobile-action-bar.can-scroll-right::after {
  display: grid;
}

body.mobile-layout .mobile-action-bar::-webkit-scrollbar {
  display: none;
}

body.mobile-layout .mobile-action-bar .mobile-nav-tool,
body.mobile-layout .mobile-action-bar .mobile-primary-tool {
  position: relative;
  display: grid;
  grid-template-rows: 24px 13px;
  place-items: center;
  flex: 0 0 54px;
  min-width: 0;
  width: 54px;
  height: 45px;
  padding: 4px 3px 3px;
  overflow: hidden;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.mobile-layout .mobile-action-bar #mobileTalkButton,
body.mobile-layout .mobile-action-bar #mobileVideoButton,
body.mobile-layout .mobile-action-bar #mobileShareScreenButton {
  grid-template-columns: none;
  grid-template-rows: 24px 13px;
  gap: 0;
}

body.mobile-layout .mobile-action-bar .mobile-nav-tool::before,
body.mobile-layout .mobile-action-bar .mobile-primary-tool::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 9px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(226, 244, 248, 0.62) 58%, rgba(255, 255, 255, 0) 72%);
  box-shadow: 0 4px 12px rgba(53, 111, 159, 0.12);
  pointer-events: none;
}

body.mobile-layout .mobile-action-bar .mobile-nav-tool::after,
body.mobile-layout .mobile-action-bar .mobile-primary-tool::after {
  content: attr(aria-label);
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  color: #355e6b;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mobile-layout #mobileTalkButton.talk-talking {
  border-color: #da7482;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, #ffd9df 0%, #f2aab5 52%, #df7b8b 100%);
  box-shadow:
    inset 0 3px 7px rgba(111, 28, 39, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.62),
    0 1px 3px rgba(111, 28, 39, 0.08);
  transform: translateY(1px);
}

body.mobile-layout #mobileTalkButton.talk-talking::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(255, 247, 249, 0.82) 50%, rgba(255, 255, 255, 0) 74%);
  box-shadow: inset 0 2px 8px rgba(111, 28, 39, 0.16);
}

body.mobile-layout #mobileTalkButton.talk-talking .tool-media-icon {
  transform: scale(0.94);
  filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.34));
}

body.mobile-layout #mobileVideoButton.active,
body.mobile-layout #mobileShareScreenButton.active {
  border-color: #e0a54e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, #fff1cf 0%, #ffd37a 52%, #f2aa3f 100%);
  box-shadow:
    inset 0 3px 7px rgba(116, 70, 12, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.62),
    0 1px 3px rgba(116, 70, 12, 0.08);
  transform: translateY(1px);
}

body.mobile-layout #mobileVideoButton.active::before,
body.mobile-layout #mobileShareScreenButton.active::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(255, 249, 232, 0.84) 50%, rgba(255, 255, 255, 0) 74%);
  box-shadow: inset 0 2px 8px rgba(116, 70, 12, 0.16);
}

body.mobile-layout #mobileVideoButton.active .tool-media-icon,
body.mobile-layout #mobileShareScreenButton.active .tool-media-icon {
  transform: scale(0.94);
  filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.34));
}

body.mobile-layout .mobile-action-bar img,
body.mobile-layout .mobile-action-bar svg,
body.mobile-layout .mobile-action-bar .tool-media-icon {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(17, 24, 39, 0.12));
}

body.mobile-layout .mobile-action-bar span {
  display: none;
}

body.mobile-layout .mobile-action-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
}

body.mobile-layout .text-tools #videoButton.camera-icon-button,
body.mobile-layout .text-tools #shareScreenButton.share-screen-button {
  display: none;
}

body.mobile-layout .text-tools {
  position: relative;
  top: auto;
  order: 1;
  align-items: center;
  min-height: 29px;
  max-height: 29px;
  gap: 3px;
  margin: 0;
  padding: 0;
  overflow-y: hidden;
  scrollbar-width: none;
}

body.mobile-layout .composer {
  top: auto;
  order: 3;
  margin-top: 2px;
}

body.mobile-layout .smiley-panel {
  order: 2;
}

body.mobile-layout .media-panel {
  display: none !important;
}

body.mobile-layout #audioSettingsToggle,
body.mobile-layout #audioSettingsPopover {
  display: none !important;
}

body.mobile-layout .text-tools::-webkit-scrollbar {
  display: none;
}

body.mobile-layout .text-tools select {
  min-width: 0;
  min-height: 29px;
  height: 29px;
  font-size: 11px;
  padding-inline: 4px;
}

body.mobile-layout #fontSelect {
  width: 50px;
}

body.mobile-layout #fontSizeSelect {
  width: 42px;
}

body.mobile-layout .text-tools button,
body.mobile-layout .color-tool {
  width: 27px;
  height: 29px;
}

body.mobile-layout .speaker-icon,
body.mobile-layout .speaker-icon-svg {
  width: 21px;
  height: 21px;
}

body.mobile-layout .admin-window {
  position: fixed;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: min(76dvh, 640px) !important;
  max-width: none !important;
  max-height: calc(100dvh - max(10px, env(safe-area-inset-top))) !important;
  min-width: 0;
  min-height: 0;
  resize: none;
  grid-template-rows: minmax(0, 1fr);
  border-radius: 18px 18px 0 0;
  border-width: 1px;
  z-index: 1800 !important;
  box-shadow: 0 -16px 40px rgba(21, 46, 56, 0.24);
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100% + max(18px, env(safe-area-inset-bottom))));
  transition: transform 190ms ease, visibility 0s linear 190ms;
}

.mobile-admin-window-backdrop {
  display: none;
}

body.mobile-layout .mobile-admin-window-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1750;
  border: 0;
  background: rgba(13, 33, 40, 0.24);
  backdrop-filter: blur(1px);
}

body.mobile-layout .private-window {
  position: fixed;
  inset: 0 !important;
  width: 100dvw !important;
  height: 100dvh !important;
  max-width: 100dvw !important;
  max-height: 100dvh !important;
  min-width: 0;
  min-height: 0;
  resize: none;
  grid-template-rows: 52px minmax(0, 1fr) auto auto;
  grid-template-areas:
    "private-title"
    "private-messages"
    "private-tools"
    "private-composer";
  border-radius: 0;
  border-width: 0;
  z-index: 1800 !important;
  box-shadow: none;
}

body.mobile-layout .private-window .private-titlebar {
  grid-area: private-title;
  grid-column: 1 / -1;
  order: 0;
}

body.mobile-layout .private-window .private-messages {
  grid-area: private-messages;
  grid-column: 1 / -1;
  order: 1;
}

body.mobile-layout .private-window .private-tools {
  grid-area: private-tools;
  grid-column: 1 / -1;
  order: 2;
}

body.mobile-layout .private-window .private-composer {
  grid-area: private-composer;
  grid-column: 1 / -1;
  order: 4;
}

body.mobile-layout .admin-window::after,
body.mobile-layout .private-window::after {
  display: none;
}

body.mobile-layout .admin-window-minimized,
body.mobile-layout .private-window[hidden] {
  display: none;
}

body.mobile-layout .admin-window-maximized {
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: min(76dvh, 640px) !important;
}

body.mobile-layout .admin-window.mobile-admin-sheet-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 190ms ease;
}

body.mobile-layout .admin-window.mobile-admin-sheet-closing {
  visibility: visible;
  pointer-events: none;
  transform: translateY(calc(100% + max(18px, env(safe-area-inset-bottom))));
  transition: transform 170ms ease;
}

body.mobile-layout .admin-window::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 3;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(91, 122, 132, 0.28);
  transform: translateX(-50%);
}

body.mobile-layout .admin-titlebar {
  display: none;
}

body.mobile-layout .private-titlebar {
  min-height: 48px;
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(10px, env(safe-area-inset-right));
  cursor: default;
  touch-action: auto;
}

body.mobile-layout .private-titlebar {
  cursor: default;
  touch-action: auto;
}

body.mobile-layout .private-window .private-titlebar {
  min-height: 52px;
  border-bottom: 1px solid #b9d7df;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8fa 100%);
  padding: 9px max(10px, env(safe-area-inset-right)) 9px max(12px, env(safe-area-inset-left));
}

body.mobile-layout .private-window .private-title {
  min-width: 0;
}

body.mobile-layout .private-window .private-titlebar strong {
  display: block;
  max-width: calc(100vw - 112px);
  color: #235d67;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
}

body.mobile-layout .private-window-actions {
  flex: 0 0 auto;
  gap: 8px;
}

body.mobile-layout .private-window-actions button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
}

body.mobile-layout .private-window-actions [data-private-action="maximize"] {
  display: none;
}

body.mobile-layout .private-window .private-tools {
  display: grid;
  grid-template-columns: minmax(62px, 1.3fr) minmax(48px, 0.9fr) repeat(7, minmax(30px, 1fr));
  align-items: center;
  gap: 4px;
  min-height: 51px;
  max-height: none;
  overflow: hidden;
  margin-top: 10px;
  padding: 8px max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left));
  border-top: 1px solid #d7e8ed;
  border-bottom: 1px solid #d7e8ed;
  background: rgba(247, 252, 253, 0.94);
  overscroll-behavior-x: contain;
}

body.mobile-layout .private-window .private-tools select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 5px;
  font-size: 12px;
}

body.mobile-layout .private-window .private-tools button,
body.mobile-layout .private-window .private-tools .color-tool {
  width: 100%;
  min-width: 0;
  height: 34px;
  border-radius: 9px;
  padding: 0;
}

body.mobile-layout .private-window .private-tools .private-call-button svg,
body.mobile-layout .private-window .private-tools .smiley-button img {
  width: 20px;
  height: 20px;
}

body.mobile-layout .private-window .private-composer {
  grid-template-columns: minmax(0, 1fr) minmax(94px, 24vw);
  gap: 8px;
  margin: 0;
  padding: 10px max(10px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: linear-gradient(180deg, #eef8fa 0%, #f9feff 100%);
}

body.mobile-layout .admin-window-actions [data-admin-window-action="minimize"],
body.mobile-layout .admin-window-actions [data-admin-window-action="maximize"],
body.mobile-layout .private-window-actions [data-private-action="maximize"] {
  display: none;
}

body.mobile-layout .private-dock {
  margin: -8px 6px 8px;
}

body.mobile-layout .admin-window-body,
body.mobile-layout .private-messages {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

body.mobile-layout .admin-window-body {
  display: block;
  padding: 24px 0 0;
}

body.mobile-layout .admin-window-toolbar {
  min-height: 44px;
  padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
}

body.mobile-layout .admin-window-statusbar {
  display: none;
}

body.mobile-layout .admin-window-body form,
body.mobile-layout .admin-user-form,
body.mobile-layout .room-owner-settings-form,
body.mobile-layout .site-settings-form,
body.mobile-layout .complaint-form,
body.mobile-layout .broadcast-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
}

body.mobile-layout .admin-user-form,
body.mobile-layout .room-owner-settings-form,
body.mobile-layout .site-settings-form,
body.mobile-layout .complaint-form,
body.mobile-layout .broadcast-form {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.mobile-layout .admin-window input,
body.mobile-layout .admin-window select,
body.mobile-layout .admin-window textarea,
body.mobile-layout .private-window input,
body.mobile-layout .private-window select,
body.mobile-layout .private-window textarea {
  max-width: 100%;
  min-width: 0;
}

body.mobile-layout .my-profile-window {
  width: auto !important;
  min-width: 0 !important;
}

body.mobile-layout .my-profile-window .admin-window-body {
  overflow: auto;
  overscroll-behavior: contain;
}

body.mobile-layout [data-admin-window="room-management"] {
  height: min(86dvh, 760px) !important;
}

body.mobile-layout [data-admin-window="room-management"] .admin-window-body {
  display: block;
  overflow: auto;
}

body.mobile-layout .admin-room-manager {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100%;
  height: auto;
  background: #f8fcfd;
  overflow: visible;
}

body.mobile-layout .admin-room-picker {
  display: grid;
  grid-template-rows: auto auto auto auto;
  border-right: 0;
  border-bottom: 1px solid #d3e5eb;
  background: linear-gradient(180deg, #ffffff 0%, #f2fafc 100%);
  overflow: visible;
}

body.mobile-layout .admin-room-picker-head {
  padding: 9px max(12px, env(safe-area-inset-right)) 7px max(12px, env(safe-area-inset-left));
  font-size: 12px;
}

body.mobile-layout .admin-room-create-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding: 9px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
}

body.mobile-layout .admin-room-create-form input,
body.mobile-layout .admin-room-create-form button {
  min-height: 38px;
  border-radius: 10px;
}

body.mobile-layout .admin-room-filter {
  padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
}

body.mobile-layout .admin-room-filter input {
  min-height: 38px;
  border-radius: 10px;
}

body.mobile-layout .admin-room-picker-list {
  display: flex;
  gap: 8px;
  min-height: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px max(12px, env(safe-area-inset-right)) 11px max(12px, env(safe-area-inset-left));
  scroll-snap-type: x proximity;
}

body.mobile-layout .admin-room-row-wrap {
  flex: 0 0 min(230px, 74vw);
  grid-template-columns: minmax(0, 1fr) 32px;
  scroll-snap-align: start;
}

body.mobile-layout .admin-room-row {
  min-height: 52px;
  border-radius: 12px;
  padding: 9px 10px;
}

body.mobile-layout .admin-room-order-actions button {
  width: 32px;
  border-radius: 9px;
}

body.mobile-layout .admin-room-manager .admin-room-form {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px;
  padding: 12px max(12px, env(safe-area-inset-right)) 18px max(12px, env(safe-area-inset-left));
  overflow: visible;
}

body.mobile-layout .admin-room-manager .admin-room-form label {
  gap: 6px;
  font-size: 12px;
}

body.mobile-layout .admin-room-manager .admin-room-form input,
body.mobile-layout .admin-room-manager .admin-room-form select,
body.mobile-layout .admin-room-manager .admin-room-form textarea {
  min-height: 40px;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

body.mobile-layout .admin-room-manager .admin-room-form select:not([size]) {
  height: 40px;
}

body.mobile-layout .admin-room-manager .admin-room-form textarea {
  min-height: 86px;
}

body.mobile-layout .admin-room-form .room-limit-field,
body.mobile-layout .admin-room-form .room-limit-field input {
  width: 100%;
}

body.mobile-layout .admin-room-form footer {
  position: sticky;
  bottom: 0;
  margin: 4px -12px -18px;
  padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(248, 252, 253, 0.82), #f8fcfd 34%);
}

body.mobile-layout [data-admin-window="complaints"] {
  height: min(82dvh, 700px) !important;
}

body.mobile-layout [data-admin-window="complaints"] .admin-window-body {
  overflow: auto;
}

body.mobile-layout .admin-complaint-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 0 max(10px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}

body.mobile-layout .admin-complaint-layout .admin-table-wrap {
  min-height: 260px;
  max-height: min(44dvh, 380px);
  overflow: auto;
  border: 1px solid #d5e7ec;
  border-radius: 14px;
  background: #ffffff;
  padding: 0;
  overscroll-behavior: contain;
}

body.mobile-layout .admin-complaint-layout .admin-data-table {
  min-width: 720px;
}

body.mobile-layout .admin-complaint-layout .admin-data-table th,
body.mobile-layout .admin-complaint-layout .admin-data-table td {
  padding: 9px 10px;
  font-size: 12px;
}

body.mobile-layout .admin-complaint-layout .admin-data-table th:nth-child(5),
body.mobile-layout .admin-complaint-layout .admin-data-table td:nth-child(5) {
  min-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.mobile-layout .word-filter-form {
  align-self: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  border-left: 0;
  border-top: 1px solid #d8e8ed;
  padding: 12px 0 0;
  overflow: visible;
}

body.mobile-layout .word-filter-form button.primary,
body.mobile-layout .word-filter-list {
  grid-column: 1 / -1;
}

body.mobile-layout .word-filter-form button.primary {
  min-height: 40px;
  border-radius: 10px;
}

body.mobile-layout .my-profile-form {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "photo"
    "nick"
    "email"
    "avatar"
    "privacy"
    "new"
    "current"
    "repeat"
    "actions"
    "message";
  gap: 10px !important;
  min-height: auto;
  padding: 12px max(12px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
  overflow: visible;
}

body.mobile-layout .profile-id-photo {
  justify-self: center;
  width: 118px;
  height: 118px;
}

body.mobile-layout .profile-privacy-options {
  grid-template-columns: minmax(0, 1fr);
}

body.mobile-layout .my-profile-form .profile-check {
  white-space: normal;
}

body.mobile-layout .my-profile-form .profile-actions {
  justify-content: stretch;
  padding-top: 6px;
}

body.mobile-layout .my-profile-form .profile-actions button {
  flex: 1 1 auto;
}

body.mobile-layout .private-window .private-composer {
  margin: 0;
}

.mobile-user-menu-backdrop {
  display: none;
}

body.mobile-layout .mobile-user-menu-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1550;
  border: 0;
  background: rgba(19, 34, 41, 0.34);
  opacity: 1;
}

body.mobile-layout .user-context-menu {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: auto;
  min-width: 0;
  height: min(76dvh, 640px);
  max-height: calc(100dvh - max(10px, env(safe-area-inset-top))) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  padding: 26px 10px max(14px, env(safe-area-inset-bottom));
  z-index: 1600;
  box-shadow: 0 -16px 40px rgba(21, 46, 56, 0.24);
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100% + max(18px, env(safe-area-inset-bottom))));
  transition: transform 190ms ease, visibility 0s linear 190ms;
}

body.mobile-layout .user-context-menu.mobile-context-sheet-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 190ms ease;
}

body.mobile-layout .user-context-menu.mobile-context-sheet-closing {
  visibility: visible;
  pointer-events: none;
  transform: translateY(calc(100% + max(18px, env(safe-area-inset-bottom))));
  transition: transform 170ms ease;
}

body.mobile-layout .user-context-menu::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(91, 122, 132, 0.28);
  transform: translateX(-50%);
}

body.mobile-layout .user-context-menu button {
  min-height: 43px;
  border-radius: 11px;
  padding: 0 12px;
  font-size: 15px;
}

body.mobile-layout .user-context-menu button span:first-child {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  font-size: 18px;
}

body.mobile-layout .user-context-menu .submenu {
  position: static;
  display: none;
  gap: 2px;
  margin: 4px 0 8px 38px;
  border-radius: 12px;
  padding: 7px;
  box-shadow: none;
}

body.mobile-layout .user-context-menu .submenu button {
  min-height: 38px;
  font-size: 14px;
}

body.mobile-layout .menu-parent.mobile-submenu-open > .submenu {
  display: grid;
}

body.mobile-layout .menu-parent.mobile-submenu-open > button .menu-arrow {
  transform: rotate(90deg);
}

body.mobile-layout .moderation-dialog-overlay {
  align-items: end;
  justify-items: stretch;
  padding: 0 8px max(7px, env(safe-area-inset-bottom));
}

body.mobile-layout .moderation-dialog {
  width: auto;
  max-height: min(76dvh, 620px);
  overflow: auto;
  border-radius: 16px 16px 0 0;
  padding: 16px;
}

body.mobile-layout .composer-wrap > .smiley-panel {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(max(6px, env(safe-area-inset-bottom)) + 129px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: auto;
  max-height: min(36dvh, 260px);
  overflow: hidden;
  border-radius: 14px;
  background: #fbfffd;
  z-index: 1450;
}

body.mobile-layout .composer-wrap > .smiley-panel[hidden] {
  display: none;
}

body.mobile-layout .composer-wrap > .smiley-panel .smiley-grid {
  min-height: 0;
  max-height: none;
  overflow: auto;
}

body.mobile-layout .private-window .private-smiley-panel {
  grid-area: private-tools;
  left: 8px;
  right: 8px;
  bottom: 74px;
  max-height: min(34dvh, 180px);
}

body.mobile-layout .mobile-admin-panel {
  padding: 10px;
}

body.mobile-layout .mobile-admin-menu {
  display: grid;
  gap: 8px;
}

body.mobile-layout .mobile-admin-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid #c8dce3;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #eef8fa 100%);
  color: #315965;
  padding: 0 12px;
  text-align: left;
  font-weight: 850;
}

body.mobile-layout .mobile-admin-menu button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  color: #247d9a;
}

body.mobile-layout .mobile-user-sheet-menu .menu-user-title {
  margin: 0 0 8px;
  color: #315965;
  font-size: 14px;
  font-weight: 900;
}

body.mobile-layout .mobile-user-sheet-menu .submenu {
  position: static;
  display: none;
  gap: 2px;
  margin: 4px 0 8px 34px;
  border: 1px solid #d5e7ec;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 7px;
  box-shadow: none;
}

body.mobile-layout .mobile-user-sheet-menu .submenu button {
  min-height: 38px;
  font-size: 14px;
}

body.mobile-layout .mobile-user-sheet-menu .menu-parent.mobile-submenu-open > .submenu {
  display: grid;
}

body.mobile-layout .mobile-user-sheet-menu .menu-parent.mobile-submenu-open > button .menu-arrow {
  transform: rotate(90deg);
}

body.mobile-layout .mobile-admin-content-panel {
  padding: 0 0 max(14px, env(safe-area-inset-bottom));
}

body.mobile-layout .mobile-admin-window-content {
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible;
}

body.mobile-layout .mobile-admin-content-panel .admin-window-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
}

body.mobile-layout .mobile-admin-content-panel .admin-table-wrap {
  min-height: 320px;
  max-height: calc(76dvh - 112px);
  overflow: auto;
  padding: 0;
}

body.mobile-layout .mobile-admin-content-panel .admin-data-table {
  min-width: 760px;
}

body.mobile-layout .mini-user-window {
  background:
    radial-gradient(circle at 50% 0%, rgba(83, 177, 190, 0.18), transparent 34%),
    linear-gradient(180deg, #f8fdff 0%, #eef7fa 100%);
}

body.mobile-layout .mini-user-window .admin-window-body {
  display: block;
  padding: 0;
  overflow: auto;
}

body.mobile-layout .mini-user-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 100%;
  padding: 18px 16px max(18px, env(safe-area-inset-bottom));
}

body.mobile-layout .mini-user-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(184, 215, 226, 0.9);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 250, 252, 0.92) 100%);
  padding: 18px 14px;
  box-shadow: 0 14px 34px rgba(31, 66, 78, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.mobile-layout .mini-user-avatar {
  width: 116px;
  height: 116px;
  border-radius: 24px;
  font-size: 42px;
}

body.mobile-layout .mini-user-summary {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  text-align: center;
}

body.mobile-layout .mini-user-summary strong {
  max-width: min(260px, 80vw);
  overflow: hidden;
  color: #153c48;
  font-size: 24px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mobile-layout .mini-user-summary span {
  color: #23708a;
  font-size: 14px;
  font-weight: 900;
}

body.mobile-layout .mini-user-summary small {
  color: #6f8791;
  font-size: 12px;
  font-weight: 800;
}

body.mobile-layout .mini-user-fields {
  grid-template-columns: 1fr;
  gap: 9px;
}

body.mobile-layout .mini-user-window .mini-user-fields label {
  gap: 6px;
  border: 1px solid rgba(196, 218, 226, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #607781;
  padding: 9px 10px;
  font-size: 12px;
}

body.mobile-layout .mini-user-window .mini-user-fields input {
  height: auto;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #213f49;
  padding: 0;
  font-size: 16px;
  font-weight: 850;
}

body.mobile-layout .mobile-user-info-sheet {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: max(7px, env(safe-area-inset-bottom));
  z-index: 1700;
  max-height: min(72dvh, 620px);
  overflow: auto;
  border: 1px solid rgba(184, 215, 226, 0.94);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(83, 177, 190, 0.18), transparent 34%),
    linear-gradient(180deg, #f8fdff 0%, #eef7fa 100%);
  box-shadow: 0 -18px 42px rgba(21, 46, 56, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 24px 10px 10px;
}

body.mobile-layout .mobile-user-info-sheet::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: rgba(91, 122, 132, 0.28);
  transform: translateX(-50%);
}

body.mobile-layout .mobile-user-info-close {
  position: absolute;
  top: 9px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(184, 215, 226, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #607781;
  font-weight: 900;
}

body.mobile-layout .mobile-user-info-sheet .mini-user-info {
  padding: 8px 6px max(8px, env(safe-area-inset-bottom));
}

img,
.inline-smile,
.mark.has-logo,
.mark.has-logo img,
.user-avatar.has-photo,
.user-avatar.has-photo img,
.smiley-choice,
.smiley-choice img,
.private-window .private-smiley-panel .smiley-choice,
.private-window .private-smiley-panel .smiley-choice img,
.camera-icon-button,
.camera-icon-button img,
.smiley-button,
.smiley-button img,
.speaker-mute-button,
.camera-watch,
.camera-watch img,
.mobile-action-bar img,
.tab img,
.tool-media-icon {
  background: transparent !important;
  background-color: transparent !important;
}


.login-screen {
  padding: 24px;
  background:
    linear-gradient(105deg, rgba(255, 241, 246, 0.88) 0%, rgba(236, 248, 223, 0.86) 34%, rgba(230, 245, 255, 0.9) 66%, rgba(255, 246, 200, 0.86) 100%),
    linear-gradient(180deg, #fbfdff 0%, #eef7f9 58%, #ffffff 100%);
}

.login-card {
  grid-template-rows: minmax(0, auto) minmax(34px, auto);
  width: min(448px, 100%);
  max-height: calc(100svh - 44px);
  border: 1px solid rgba(191, 211, 220, 0.96);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 253, 254, 0.98) 100%);
  box-shadow: 0 18px 50px rgba(42, 70, 82, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  animation: authFadeIn 0.7s ease;
}

.login-titlebar {
  display: none;
}

.login-window-body {
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(255, 241, 242, 0.54) 0%, rgba(244, 251, 255, 0.62) 50%, rgba(251, 255, 248, 0.56) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 253, 254, 0.98));
}

.login-hero-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  border: 1px solid rgba(169, 211, 225, 0.92);
  border-radius: var(--radius);
  background: linear-gradient(105deg, #fff1f6 0%, #ecf8df 34%, #e6f5ff 68%, #fff6c8 100%);
  box-shadow: 0 14px 28px rgba(42, 70, 82, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.login-logo {
  display: block;
  width: min(172px, 62vw);
  max-height: 88px;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(42, 70, 82, 0.12));
}

.lock-hero-icon::before {
  content: "";
  width: 30px;
  height: 30px;
  background:
    linear-gradient(#ffffff 0 0) center 15px / 24px 15px no-repeat,
    radial-gradient(ellipse at 50% 48%, transparent 0 8px, #ffffff 8.5px 10px, transparent 10.5px);
}

.user-hero-icon::before {
  content: "";
  width: 34px;
  height: 34px;
  background:
    radial-gradient(circle at 50% 31%, #ffffff 0 7px, transparent 7.5px),
    radial-gradient(ellipse at 50% 86%, #ffffff 0 14px, transparent 14.5px);
}

.login-card h1,
.login-brand {
  display: block;
  margin: 0 auto 10px;
  padding: 0;
  color: transparent;
  background: linear-gradient(105deg, #d45b68 0%, #5f95c8 38%, #42a76f 72%, #c99635 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-shadow: none;
}

.login-brand::after {
  display: none;
}

.login-card p {
  max-width: 360px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.permission-note {
  margin-top: -12px !important;
  margin-bottom: 28px !important;
  border: 1px solid #cfe3ec;
  border-radius: var(--radius);
  background: linear-gradient(105deg, #fffafa 0%, #f4fbff 50%, #fbfff8 100%);
  color: #6d828a;
  padding: 11px 12px;
}

.login-card .auth-field {
  margin: 0 0 18px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 12px;
  color: #435a63;
  font-size: 13px;
  font-weight: 800;
}

.auth-check input {
  width: 16px;
  height: 16px;
}

.auth-field::before {
  left: 16px;
  width: 20px;
  height: 20px;
  color: #5f95c8;
  font-size: 16px;
}

.auth-field.user-field::before {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%235f95c8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 21a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
}

.auth-field.lock-field::before {
  content: "";
  background:
    linear-gradient(currentColor 0 0) center 11px / 15px 9px no-repeat,
    radial-gradient(ellipse at 50% 44%, transparent 0 5px, currentColor 5.5px 7px, transparent 7.5px);
}

.auth-field.mail-field::before {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%235f95c8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
}

.auth-field.link-field::before {
  content: "";
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  width: 13px;
  height: 13px;
  transform: translateY(-50%) rotate(45deg);
}

.login-card input {
  min-height: 50px;
  border: 1px solid #d5e4e9;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--text);
  padding: 11px 14px 11px 48px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 3px 10px rgba(52, 93, 106, 0.04);
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.reset-card .auth-field {
  position: relative;
  margin: 0;
}

.reset-card input {
  width: 100%;
  min-height: 50px;
  padding-left: 48px;
}

.login-card input::placeholder {
  color: #aab4c0;
  opacity: 0.72;
}

.login-card input:focus {
  border-color: #70b8b4;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(74, 166, 162, 0.13), 0 0 0 6px rgba(95, 149, 200, 0.08);
}

.login-card button {
  border-radius: var(--radius);
}

.login-submit {
  min-height: 50px;
  margin-top: 4px;
  border: 1px solid #95c87e;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.12) 48%, rgba(0, 0, 0, 0.05) 100%),
    linear-gradient(105deg, #fff1f6 0%, #ecf8df 32%, #e6f5ff 68%, #fff6c8 100%);
  color: #1f6d3f;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(42, 70, 82, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.login-submit:hover {
  color: #185d32;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.2) 48%, rgba(0, 0, 0, 0.04) 100%),
    linear-gradient(105deg, #fffafa 0%, #ddf2d2 34%, #ddf1fb 68%, #fff6c8 100%);
  box-shadow: 0 14px 28px rgba(42, 70, 82, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: translateY(-2px);
}

.login-submit::before {
  display: none;
}

.login-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.login-submit + .auth-switch {
  margin-top: 24px !important;
}

.auth-links {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 91, 104, 0.18), rgba(95, 149, 200, 0.45), rgba(66, 167, 111, 0.2));
}

.google-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  margin-top: 0;
  border: 1px solid #cfe3ec;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(42, 70, 82, 0.07);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.google-login-button::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  background: url("../img/google-g.svg") center / contain no-repeat;
}

.google-login-button:hover {
  border-color: #a9d3e1;
  background: linear-gradient(180deg, #ffffff 0%, #eaf6fb 100%);
  box-shadow: 0 6px 18px rgba(42, 70, 82, 0.11);
}

.auth-switch {
  color: #6d828a;
  font-size: 14px;
}

.auth-link {
  color: #247d9a;
  border-bottom: 0;
  font-weight: 900;
}

.auth-link:hover {
  color: #17627a;
}

.auth-button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: var(--radius-sm);
  color: #247d9a;
  font-weight: 900;
  text-decoration: none;
}

.auth-button-link:hover {
  color: #17627a;
  text-shadow: 0 4px 14px rgba(95, 149, 200, 0.16);
}

.login-message {
  min-height: 34px;
  border-top: 1px solid #d2e4e9;
  background: linear-gradient(105deg, #fff1f2 0%, #f4fbff 48%, #fbfff8 100%);
  color: #5f7782;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
}

.login-card input,
.login-card input[type="password"] {
  border-color: #d5e4e9;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  color: #385660 !important;
  -webkit-text-fill-color: #385660;
}

.login-card input::placeholder,
.login-card input[type="password"]::placeholder {
  color: #aab4c0 !important;
  opacity: 0.72;
  -webkit-text-fill-color: #aab4c0;
}

.auth-divider {
  color: #6d828a !important;
}

.auth-divider span {
  color: #6d828a;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 0 8px;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#usersList .user-avatar-wrap {
  overflow: visible !important;
}

#usersList .list-item.user-row {
  overflow: visible !important;
}

#usersList .user-avatar-wrap::after {
  content: none !important;
}

#usersList .user-avatar-wrap .user-avatar,
.message-avatar {
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-shadow:
    0 0 13px rgba(38, 143, 154, 0.5),
    0 0 22px rgba(213, 155, 47, 0.22),
    0 5px 12px rgba(24, 68, 84, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

#usersList .user-avatar-wrap .user-avatar.has-photo,
.message-avatar.has-photo {
  background: #ffffff !important;
  color: transparent !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.78),
    0 0 15px rgba(38, 143, 154, 0.56),
    0 0 24px rgba(213, 155, 47, 0.24),
    0 6px 13px rgba(20, 58, 72, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

#usersList .user-avatar-wrap .user-avatar img,
.message-avatar.has-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.theme-panel {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 99998;
  width: min(278px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(21, 46, 56, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.theme-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 9px;
  color: var(--accent-strong);
}

.theme-panel-head button {
  width: 26px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--muted);
  font-weight: 900;
}

.theme-options {
  display: grid;
  gap: 6px;
}

.theme-options button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  text-align: left;
}

.theme-options button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 3px 0 0 var(--accent-strong);
}

.theme-swatch {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(26, 60, 72, 0.16);
}

.theme-swatch-default {
  background: linear-gradient(135deg, #fff1f6 0 33%, #ecf8df 33% 66%, #e6f5ff 66%);
}

.theme-swatch-light {
  background: linear-gradient(135deg, #ffffff 0 45%, #eef6f8 45%);
}

.theme-swatch-night {
  background: linear-gradient(135deg, #13242c 0 45%, #2f7d79 45%);
}

.theme-swatch-pastel {
  background: linear-gradient(135deg, #f9e8f0 0 33%, #e9f6df 33% 66%, #dff2ff 66%);
}

.theme-swatch-contrast {
  background: linear-gradient(135deg, #101820 0 45%, #ffcf4a 45%);
}

body[data-client-theme="light"] {
  --page: #f8fbfc;
  --surface: #ffffff;
  --surface-2: #fbfdfe;
  --surface-3: #eef5f7;
  --text: #344a54;
  --muted: #667b85;
  --line: #d7e6eb;
  --line-strong: #bfd4dc;
  --accent: #4e9cc0;
  --accent-strong: #2f7190;
  --accent-soft: #e8f4f8;
  --nick-default: #225f93;
  --nick-member: #344a54;
  --nick-guest: #6d7f88;
  --nick-admin: #b34a66;
  --nick-root: #b82033;
  --nick-blue-role: #2867b7;
  --nick-warm-role: #8d5a20;
  --nick-green-role: #277b5d;
  --nick-owner: #a86b12;
  --nick-operator: #167a83;
  --nick-staff: #7653b8;
  --chat-nick-mine: #225f93;
  --chat-nick-other: #b34a66;
}

body[data-client-theme="night"] {
  --page: #14232b;
  --surface: #1c3038;
  --surface-2: #203941;
  --surface-3: #263f49;
  --text: #e5f1f4;
  --muted: #a9c0c8;
  --faint: #829aa4;
  --line: #35525d;
  --line-strong: #486b76;
  --accent: #64c7bb;
  --accent-strong: #9be1d8;
  --accent-soft: rgba(100, 199, 187, 0.16);
  --blue-soft: #263f56;
  --nick-default: #9ccff0;
  --nick-member: #d7e8ee;
  --nick-guest: #a9bec7;
  --nick-admin: #ff9aa8;
  --nick-root: #ff7b86;
  --nick-blue-role: #8ebeff;
  --nick-warm-role: #ffc06f;
  --nick-green-role: #8ee0b3;
  --nick-owner: #ffd36e;
  --nick-operator: #75d8cd;
  --nick-staff: #c3a5ff;
  --chat-nick-mine: #9ccff0;
  --chat-nick-other: #ff9aa8;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

body[data-client-theme="pastel"] {
  --page: #f8f2f7;
  --surface: #ffffff;
  --surface-2: #fff9fc;
  --surface-3: #f4edf7;
  --text: #4e5660;
  --muted: #817989;
  --line: #eadbe8;
  --line-strong: #dbc5d7;
  --accent: #d982aa;
  --accent-strong: #a94f7c;
  --accent-soft: #fdebf4;
  --nick-default: #8c4f78;
  --nick-member: #5b596d;
  --nick-guest: #857a91;
  --nick-admin: #c44f76;
  --nick-root: #b9365b;
  --nick-blue-role: #5f75c8;
  --nick-warm-role: #9a6647;
  --nick-green-role: #4f8b72;
  --nick-owner: #b07930;
  --nick-operator: #4d8d98;
  --nick-staff: #9065c7;
  --chat-nick-mine: #8c4f78;
  --chat-nick-other: #c44f76;
}

body[data-client-theme="contrast"] {
  --page: #101820;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --surface-3: #e8eef3;
  --text: #101820;
  --muted: #42515c;
  --line: #91a2ad;
  --line-strong: #647887;
  --accent: #ffcf4a;
  --accent-strong: #8c5e00;
  --accent-soft: #fff3c4;
  --nick-default: #0f4c81;
  --nick-member: #101820;
  --nick-guest: #4c5964;
  --nick-admin: #b00020;
  --nick-root: #8a0018;
  --nick-blue-role: #004eb8;
  --nick-warm-role: #844100;
  --nick-green-role: #006f48;
  --nick-owner: #8c5e00;
  --nick-operator: #00747a;
  --nick-staff: #5d2eb3;
  --chat-nick-mine: #0f4c81;
  --chat-nick-other: #b00020;
}

body[data-client-theme]:not([data-client-theme="default"]) .side,
body[data-client-theme]:not([data-client-theme="default"]) .conversation {
  border-color: var(--line-strong);
  background: var(--surface);
}

body[data-client-theme]:not([data-client-theme="default"]) .brand,
body[data-client-theme]:not([data-client-theme="default"]) .tabs,
body[data-client-theme]:not([data-client-theme="default"]) .composer-wrap,
body[data-client-theme]:not([data-client-theme="default"]) .mobile-action-bar {
  border-color: var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

body[data-client-theme]:not([data-client-theme="default"]) .room-head {
  border-color: var(--line-strong);
  background:
    linear-gradient(90deg, var(--surface), var(--accent-soft)),
    url("../img/room_top_bar.jpg") center / cover no-repeat;
}

body[data-client-theme]:not([data-client-theme="default"]) .messages {
  border-color: var(--line-strong);
  background-color: var(--surface-3);
}

body[data-client-theme]:not([data-client-theme="default"]) .side #usersList {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%) !important;
}

body[data-client-theme]:not([data-client-theme="default"]) .side #usersList::before {
  filter: none;
}

body[data-client-theme]:not([data-client-theme="default"]) .side #usersPanel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%) !important;
}

body[data-client-theme]:not([data-client-theme="default"]) #usersList .user-main .user-nick,
body[data-client-theme]:not([data-client-theme="default"]) .message-nick,
body[data-client-theme]:not([data-client-theme="default"]) .private-message .message-nick {
  text-shadow: none;
}

body[data-client-theme]:not([data-client-theme="default"]) #usersList .user-main small {
  color: var(--muted) !important;
}

body[data-client-theme="night"] .messages,
body[data-client-theme="night"] #usersList,
body[data-client-theme="night"] #roomsList,
body[data-client-theme="night"] #friendsList {
  color: var(--text);
}

body[data-client-theme="night"] .room-head h1,
body[data-client-theme="night"] .message span,
body[data-client-theme="night"] .room-topic,
body[data-client-theme="night"] .room-welcome {
  color: var(--text);
}

body[data-client-theme="night"] .theme-panel {
  background: rgba(28, 48, 56, 0.98);
}

body[data-client-theme="night"]:not([data-client-theme="default"]) .brand {
  border-color: rgba(100, 199, 187, 0.22);
  background:
    linear-gradient(105deg, rgba(74, 34, 45, 0.86) 0%, rgba(24, 55, 67, 0.94) 36%, rgba(23, 63, 58, 0.9) 70%, rgba(80, 62, 30, 0.82) 100%),
    linear-gradient(180deg, #182c34 0%, #13252d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(100, 199, 187, 0.12);
}

body[data-client-theme="night"] .mobile-rail-logo {
  background:
    linear-gradient(105deg, rgba(74, 34, 45, 0.86) 0%, rgba(24, 55, 67, 0.94) 48%, rgba(23, 63, 58, 0.9) 100%),
    linear-gradient(180deg, #182c34 0%, #13252d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

body[data-client-theme="night"] .brand strong {
  color: #f1fbfd;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

body[data-client-theme="night"] .brand small {
  color: #b7ccd3;
}

body[data-client-theme="night"] .room-head {
  background:
    linear-gradient(105deg, rgba(74, 34, 45, 0.72) 0%, rgba(24, 55, 67, 0.9) 38%, rgba(23, 63, 58, 0.82) 70%, rgba(80, 62, 30, 0.68) 100%),
    linear-gradient(180deg, #1b333c 0%, #13252d 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(155, 225, 216, 0.18);
}

body[data-client-theme="night"] .room-head h1 {
  color: #f1fbfd;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.48);
}

body[data-client-theme="night"] .room-meta .meta-pill,
body[data-client-theme="night"] .room-status,
body[data-client-theme="night"] .room-owner-pill {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(12, 25, 31, 0.62);
  color: #d6eef2;
}

body[data-client-theme="night"] .room-welcome-card,
body[data-client-theme="night"] .empty {
  border-color: rgba(100, 199, 187, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(155, 225, 216, 0.07) 34%, rgba(12, 25, 31, 0.34) 100%),
    linear-gradient(180deg, rgba(31, 58, 68, 0.88) 0%, rgba(18, 35, 43, 0.92) 100%);
  color: #c8dde3;
  backdrop-filter: blur(10px) saturate(1.08);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(100, 199, 187, 0.12);
}

body[data-client-theme="night"] .room-welcome-card strong,
body[data-client-theme="night"] .empty strong {
  color: #f1fbfd;
}

body[data-client-theme="night"] .room-welcome-card span {
  color: #a9c0c8;
}

body[data-client-theme="night"] .composer-wrap {
  background: linear-gradient(180deg, #182c34 0%, #13252d 100%) !important;
  border-top-color: rgba(100, 199, 187, 0.24);
}

body[data-client-theme="night"] .composer {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #203941 0%, #172c35 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.22);
}

body[data-client-theme="night"] input,
body[data-client-theme="night"] select,
body[data-client-theme="night"] .composer input,
body[data-client-theme="night"] .smiley-panel input,
body[data-client-theme="night"] .text-tools select {
  border-color: rgba(100, 199, 187, 0.28);
  background: #111f27;
  color: #e7f4f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .composer input[style*="color"] {
  color: var(--room-composer-color, #e7f4f6) !important;
  -webkit-text-fill-color: var(--room-composer-color, #e7f4f6) !important;
}

body[data-client-theme="night"] select option,
body[data-client-theme="night"] select optgroup {
  background: #111f27;
  color: #e7f4f6;
}

body[data-client-theme="night"] input::placeholder,
body[data-client-theme="night"] .smiley-panel input::placeholder {
  color: #7f99a3;
  opacity: 1;
}

body[data-client-theme="night"] .text-tools select:hover,
body[data-client-theme="night"] .text-tools select:focus,
body[data-client-theme="night"] .color-tool:hover,
body[data-client-theme="night"] .color-tool:focus-within {
  border-color: rgba(155, 225, 216, 0.48);
  background: #182f38;
  color: #f1fbfd;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

body[data-client-theme="night"] .composer button,
body[data-client-theme="night"] .panel-action,
body[data-client-theme="night"] #sendButton {
  border-color: rgba(100, 199, 187, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, #285564 0%, #1b4657 52%, #133241 100%);
  color: #eaffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.26);
}

body[data-client-theme="night"] .composer button:hover,
body[data-client-theme="night"] .panel-action:hover,
body[data-client-theme="night"] #sendButton:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 42%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, #2d6672 0%, #20586a 52%, #173c4d 100%);
}

body[data-client-theme="night"] .panel-action.talk-idle {
  border-color: rgba(117, 216, 205, 0.42);
  background: linear-gradient(180deg, #1e4f4b 0%, #173a3d 100%);
  color: #bff6ee;
}

body[data-client-theme="night"] .panel-action.talk-talking {
  border-color: rgba(255, 122, 134, 0.48);
  background: linear-gradient(180deg, #5c2630 0%, #3f1f2a 100%);
  color: #ffd9de;
}

body[data-client-theme="night"] .panel-action.talk-queued {
  border-color: rgba(142, 190, 255, 0.48);
  background: linear-gradient(180deg, #244663 0%, #1c334d 100%);
  color: #d7e8ff;
}

body[data-client-theme="night"] .room-admin-button {
  border-color: rgba(100, 199, 187, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, #1f4f4c 0%, #17393c 100%);
  color: #c9fff6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 7px 16px rgba(0, 0, 0, 0.22);
}

body[data-client-theme="night"] .room-admin-button:hover {
  border-color: rgba(155, 225, 216, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 42%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, #245e58 0%, #193f42 100%);
}

body[data-client-theme="night"] .text-tools button,
body[data-client-theme="night"] .color-tool,
body[data-client-theme="night"] .camera-watch,
body[data-client-theme="night"] .camera-icon-button,
body[data-client-theme="night"] .share-screen-button,
body[data-client-theme="night"] .speaker-mute-button {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(15, 31, 39, 0.78);
  color: #d9edf1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .text-tools button:hover,
body[data-client-theme="night"] .camera-watch:hover,
body[data-client-theme="night"] .camera-icon-button:hover,
body[data-client-theme="night"] .camera-icon-button.active,
body[data-client-theme="night"] .share-screen-button:hover,
body[data-client-theme="night"] .speaker-mute-button:hover,
body[data-client-theme="night"] .text-tools button.tool-active,
body[data-client-theme="night"] .text-tools button:focus-visible,
body[data-client-theme="night"] .speaker-mute-button.tool-active {
  border-color: rgba(155, 225, 216, 0.5);
  background: rgba(37, 76, 88, 0.82);
  color: #f1fbfd;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.26), inset 3px 0 0 rgba(100, 199, 187, 0.58);
}

body[data-client-theme="night"] .smiley-panel,
body[data-client-theme="night"] .private-window .private-smiley-panel {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #1f3841 0%, #142832 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

body[data-client-theme="night"] .smiley-choice,
body[data-client-theme="night"] .private-window .private-smiley-panel .smiley-choice {
  border-color: rgba(100, 199, 187, 0.2);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

body[data-client-theme="night"] .smiley-choice:hover,
body[data-client-theme="night"] .private-window .private-smiley-panel .smiley-choice:hover {
  border-color: rgba(155, 225, 216, 0.45);
  background: rgba(100, 199, 187, 0.14);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"] .tabs {
  border-bottom-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(180deg, #1b313a 0%, #142730 100%) !important;
}

body[data-client-theme="night"] .tab,
body[data-client-theme="night"] .tab.rooms-tab,
body[data-client-theme="night"] .tab.users-tab,
body[data-client-theme="night"] .tab.friends-tab,
body[data-client-theme="night"] .tab.add-room-tab,
body[data-client-theme="night"] .theme-tab,
body[data-client-theme="night"] .theme-toggle-button {
  border-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, #223c46 0%, #172a33 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body[data-client-theme="night"] .tab:hover,
body[data-client-theme="night"] .tab.rooms-tab:hover,
body[data-client-theme="night"] .tab.users-tab:hover,
body[data-client-theme="night"] .tab.friends-tab:hover,
body[data-client-theme="night"] .tab.add-room-tab:hover,
body[data-client-theme="night"] .theme-toggle-button:hover {
  border-color: rgba(155, 225, 216, 0.42);
  background: linear-gradient(180deg, #2a4b57 0%, #1d3640 100%);
}

body[data-client-theme="night"] .tab.active,
body[data-client-theme="night"] .tab.rooms-tab.active,
body[data-client-theme="night"] .tab.users-tab.active,
body[data-client-theme="night"] .tab.friends-tab.active,
body[data-client-theme="night"] .tab.add-room-tab.active,
body[data-client-theme="night"] .theme-toggle-button.active {
  border-color: rgba(155, 225, 216, 0.5);
  background: linear-gradient(180deg, #305967 0%, #1e3a45 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 -1px 8px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"] .theme-moon-icon {
  fill: #f2d06b;
  filter: drop-shadow(0 0 10px rgba(242, 208, 107, 0.24));
}

body[data-client-theme="night"] .side #roomsPanel,
body[data-client-theme="night"] .side #friendsPanel,
body[data-client-theme="night"] .side #settingsPanel {
  background: linear-gradient(180deg, #182c34 0%, #13252d 100%) !important;
}

body[data-client-theme="night"] .side #roomsList,
body[data-client-theme="night"] .side #friendsList {
  border-color: rgba(100, 199, 187, 0.26);
  background: linear-gradient(180deg, #1b333c 0%, #132832 100%) !important;
}

body[data-client-theme="night"] .room-list-filter {
  color: #d9edf1;
}

body[data-client-theme="night"] .room-list-filter input {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #111f27 0%, #162b34 100%);
  color: #e7f4f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .room-list-filter input::placeholder {
  color: #7f99a3;
  opacity: 1;
}

body[data-client-theme="night"] .room-list-filter input:focus {
  border-color: rgba(155, 225, 216, 0.48);
  box-shadow: 0 0 0 3px rgba(100, 199, 187, 0.12);
}

body[data-client-theme="night"] .friends-panel-note,
body[data-client-theme="night"] .friends-empty {
  border-color: rgba(100, 199, 187, 0.24);
  background: rgba(15, 31, 39, 0.74);
  color: #b8ced6;
}

body[data-client-theme="night"] .friend-row,
body[data-client-theme="night"] .friend-row.friend-added {
  border-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, #1f3a43 0%, #142832 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .friend-row:hover {
  border-color: rgba(155, 225, 216, 0.42);
  background: linear-gradient(180deg, #254b57 0%, #193541 100%);
}

body[data-client-theme="night"] .friend-main strong {
  color: #d9edf1;
}

body[data-client-theme="night"] .friend-main small {
  color: #9bb5be;
}

body[data-client-theme="night"] .friend-row button {
  border-color: rgba(100, 199, 187, 0.26);
  background: rgba(15, 31, 39, 0.78);
  color: #d9edf1;
}

body[data-client-theme="night"] .friend-row button:hover:not(:disabled) {
  border-color: rgba(155, 225, 216, 0.46);
  background: rgba(37, 76, 88, 0.82);
  color: #f1fbfd;
}

body[data-client-theme="night"] .private-window {
  border-color: rgba(100, 199, 187, 0.32);
  background: #13252d;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .private-window::after {
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(155, 225, 216, 0.42) 46% 52%, transparent 53%),
    linear-gradient(135deg, transparent 0 62%, rgba(155, 225, 216, 0.42) 63% 69%, transparent 70%);
}

body[data-client-theme="night"] .private-titlebar {
  border-bottom-color: rgba(100, 199, 187, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(155, 225, 216, 0.04)),
    linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #f1fbfd;
}

body[data-client-theme="night"] .private-typing {
  color: #9be1d8;
}

body[data-client-theme="night"] .private-window-actions button {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(15, 31, 39, 0.78);
  color: #d9edf1;
}

body[data-client-theme="night"] .private-window-actions button:hover {
  border-color: rgba(155, 225, 216, 0.46);
  background: rgba(37, 76, 88, 0.82);
  color: #f1fbfd;
}

body[data-client-theme="night"] .private-window-actions [data-private-action="close"]:hover {
  border-color: rgba(255, 122, 134, 0.48);
  background: rgba(92, 38, 48, 0.72);
  color: #ffd9de;
}

body[data-client-theme="night"] .private-messages {
  background:
    linear-gradient(180deg, rgba(31, 58, 68, 0.92) 0%, rgba(18, 35, 43, 0.94) 100%);
  color: #d9edf1;
}

body[data-client-theme="night"] .private-empty {
  border: 1px solid rgba(100, 199, 187, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(155, 225, 216, 0.06) 40%, rgba(12, 25, 31, 0.28) 100%),
    linear-gradient(180deg, rgba(31, 58, 68, 0.86) 0%, rgba(18, 35, 43, 0.9) 100%);
  color: #c8dde3;
  padding: 8px 16px;
  backdrop-filter: blur(10px) saturate(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 18px rgba(0, 0, 0, 0.22);
}

body[data-client-theme="night"] .private-message {
  border-color: transparent;
  background: transparent;
  color: #d9edf1;
  box-shadow: none;
}

body[data-client-theme="night"] .private-message.mine {
  border-color: transparent;
  background: transparent;
}

body[data-client-theme="night"]:not(.message-style-inline) .message,
body[data-client-theme="night"]:not(.message-style-inline) .private-message {
  border-color: rgba(100, 199, 187, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(155, 225, 216, 0.04) 44%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(105deg, rgba(35, 68, 75, 0.96) 0%, rgba(24, 48, 57, 0.96) 100%);
  color: #e8f5f7;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"]:not(.message-style-inline) .message.mine,
body[data-client-theme="night"]:not(.message-style-inline) .private-message.mine {
  border-color: rgba(255, 154, 168, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 154, 168, 0.05) 44%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(105deg, rgba(61, 45, 58, 0.96) 0%, rgba(40, 35, 49, 0.96) 100%);
}

body[data-client-theme="night"]:not(.message-style-inline) .message-avatar {
  background: linear-gradient(180deg, #314f5d 0%, #1e3945 100%);
  color: #d9edf1;
  box-shadow:
    0 0 12px rgba(100, 199, 187, 0.22),
    0 5px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-client-theme="night"]:not(.message-style-inline) .message.mine .message-avatar,
body[data-client-theme="night"]:not(.message-style-inline) .private-message.mine .message-avatar {
  background: linear-gradient(180deg, #553c54 0%, #352b40 100%);
  color: #ffdbe1;
}

body[data-client-theme="night"] .private-tools {
  border-top-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(180deg, #1a313a 0%, #142832 100%);
}

body[data-client-theme="night"] .private-tools select,
body[data-client-theme="night"] .private-tools button,
body[data-client-theme="night"] .private-tools .color-tool {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(15, 31, 39, 0.78);
  color: #d9edf1;
}

body[data-client-theme="night"] .private-tools button.tool-active,
body[data-client-theme="night"] .private-tools button:hover,
body[data-client-theme="night"] .private-tools .color-tool:hover,
body[data-client-theme="night"] .private-tools .color-tool:focus-within {
  border-color: rgba(155, 225, 216, 0.46);
  background: rgba(37, 76, 88, 0.82);
  color: #f1fbfd;
}

body[data-client-theme="night"] .private-call-button.audio-call {
  border-color: rgba(93, 222, 154, 0.36);
  background: linear-gradient(180deg, rgba(34, 92, 65, 0.94), rgba(17, 57, 43, 0.92));
  color: #a9ffd1;
}

body[data-client-theme="night"] .private-call-button.video-call {
  border-color: rgba(103, 189, 255, 0.38);
  background: linear-gradient(180deg, rgba(36, 83, 111, 0.94), rgba(18, 51, 72, 0.92));
  color: #bce8ff;
}

body[data-client-theme="night"] .private-call-button.audio-call:hover {
  border-color: rgba(128, 245, 181, 0.58);
  background: linear-gradient(180deg, rgba(42, 112, 77, 0.96), rgba(23, 74, 53, 0.94));
  box-shadow: 0 5px 16px rgba(63, 219, 132, 0.22);
}

body[data-client-theme="night"] .private-call-button.video-call:hover {
  border-color: rgba(133, 207, 255, 0.6);
  background: linear-gradient(180deg, rgba(45, 101, 135, 0.96), rgba(24, 68, 96, 0.94));
  box-shadow: 0 5px 16px rgba(78, 180, 244, 0.22);
}

body[data-client-theme="night"] .private-composer {
  border-top-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(180deg, #182c34 0%, #13252d 100%);
}

body[data-client-theme="night"] .private-composer input {
  border-color: rgba(100, 199, 187, 0.28);
  background: #111f27;
  color: #e7f4f6;
}

body[data-client-theme="night"] .private-composer input::placeholder {
  color: #7f99a3;
  opacity: 1;
}

body[data-client-theme="night"] .private-composer button {
  border-color: rgba(100, 199, 187, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, #285564 0%, #1b4657 52%, #133241 100%);
  color: #eaffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.26);
}

body[data-client-theme="night"] .private-dock {
  border-color: rgba(100, 199, 187, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(155, 225, 216, 0.03) 42%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(180deg, #182c34 0%, #13252d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"] .private-dock button {
  border-color: rgba(100, 199, 187, 0.3);
  background: linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #d9edf1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .private-dock button:hover {
  border-color: rgba(155, 225, 216, 0.46);
  background: linear-gradient(180deg, #254b57 0%, #193541 100%);
  color: #f1fbfd;
}

body[data-client-theme="night"] .private-dock button.has-call {
  border-color: rgba(100, 199, 187, 0.46);
  background: linear-gradient(180deg, #20494f 0%, #16343d 100%);
}

body[data-client-theme="night"] .private-dock button i {
  background: #64c7bb;
  color: #092025;
}

body[data-client-theme="night"] .private-dock button em {
  color: #9fbcc5;
}

body[data-client-theme="night"] .private-dock.dock-overflow::after {
  border-left-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(90deg, rgba(19, 37, 45, 0), #13252d 42%, #13252d 100%);
  color: #c9f5ef;
}

body[data-client-theme="night"] .private-call-inline-bar {
  border-color: rgba(100, 199, 187, 0.42);
  background: linear-gradient(180deg, #20494f 0%, #16343d 100%);
  color: #d9edf1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .private-call-inline-bar i {
  background: #64c7bb;
  color: #092025;
}

body[data-client-theme="night"] .private-call-inline-bar em {
  color: #9fbcc5;
}

body[data-client-theme="night"] .audio-settings-popover {
  border-color: rgba(100, 199, 187, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(155, 225, 216, 0.03) 42%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(180deg, #182c34 0%, #13252d 100%);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .audio-settings-popover .audio-source-controls {
  color: #d9edf1;
}

body[data-client-theme="night"] .audio-settings-popover .audio-source-controls label {
  color: #d9edf1;
}

body[data-client-theme="night"] .audio-settings-popover .audio-source-controls select {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #111f27 0%, #162b34 100%);
  color: #e7f4f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .audio-settings-icon circle {
  fill: #64c7bb;
  stroke: #d9edf1;
}

body[data-client-theme="night"] .audio-settings-icon path {
  stroke: #d9edf1;
}

body[data-client-theme="night"] .broadcast-message {
  border-color: rgba(255, 207, 106, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(242, 208, 107, 0.07) 38%, rgba(12, 25, 31, 0.34) 100%),
    linear-gradient(180deg, rgba(39, 58, 56, 0.92) 0%, rgba(19, 37, 45, 0.94) 100%);
  color: #e8d9a6;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(242, 208, 107, 0.12);
  backdrop-filter: blur(10px) saturate(1.06);
}

body[data-client-theme="night"] .broadcast-message strong {
  color: #f2d06b;
  text-shadow: 0 0 10px rgba(242, 208, 107, 0.16);
}

body[data-client-theme="night"] .broadcast-message span {
  color: #f4ecd0;
}

body[data-client-theme="night"] .broadcast-recipient-section {
  border-color: rgba(100, 199, 187, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(155, 225, 216, 0.03)),
    linear-gradient(180deg, #1a313a 0%, #142832 100%);
  color: #d9edf1;
}

body[data-client-theme="night"] .broadcast-recipient-section label {
  color: #d9edf1;
}

body[data-client-theme="night"] .broadcast-recipient-section legend {
  color: #9be1d8;
}

body[data-client-theme="night"] .broadcast-recipient-section input {
  accent-color: #64c7bb;
}

body[data-client-theme="night"] .admin-user-form.broadcast-message-form {
  background: linear-gradient(180deg, #182c34 0%, #13252d 100%);
}

body[data-client-theme="night"] .admin-user-form.broadcast-message-form label {
  color: #d9edf1;
}

body[data-client-theme="night"] .admin-user-form.broadcast-message-form input,
body[data-client-theme="night"] .admin-user-form.broadcast-message-form textarea {
  border-color: rgba(100, 199, 187, 0.28);
  background: #111f27;
  color: #e7f4f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .admin-user-form.broadcast-message-form input::placeholder,
body[data-client-theme="night"] .admin-user-form.broadcast-message-form textarea::placeholder {
  color: #7f99a3;
  opacity: 1;
}

body[data-client-theme="night"] .admin-user-form.broadcast-message-form .broadcast-recipient-section input {
  background: transparent;
  box-shadow: none;
}

body[data-client-theme="night"] .admin-user-form.broadcast-message-form footer {
  border-top-color: rgba(100, 199, 187, 0.22);
}

body[data-client-theme="night"] .admin-user-form.broadcast-message-form .secondary {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(15, 31, 39, 0.78);
  color: #d9edf1;
}

body[data-client-theme="night"] .admin-user-form.broadcast-message-form .primary {
  border-color: rgba(100, 199, 187, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, #285564 0%, #1b4657 52%, #133241 100%);
  color: #eaffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"] .mini-user-window .admin-window-body {
  background: linear-gradient(180deg, #182c34 0%, #13252d 100%);
}

body[data-client-theme="night"] .mini-user-window {
  border-color: rgba(100, 199, 187, 0.28);
  background: #0e1e26;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .mini-user-window::after {
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(155, 225, 216, 0.48) 46% 52%, transparent 53%),
    linear-gradient(135deg, transparent 0 62%, rgba(155, 225, 216, 0.48) 63% 69%, transparent 70%);
}

body[data-client-theme="night"] .mini-user-window .admin-titlebar {
  border-bottom-color: rgba(100, 199, 187, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(155, 225, 216, 0.04)),
    linear-gradient(180deg, #203f4b 0%, #142d38 100%);
  color: #e8fbfd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .mini-user-window .admin-titlebar strong {
  color: #e8fbfd;
  text-shadow: 0 0 8px rgba(100, 199, 187, 0.22);
}

body[data-client-theme="night"] .mini-user-window .admin-titlebar button {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(15, 31, 39, 0.72);
  color: #d9edf1;
}

body[data-client-theme="night"] .mini-user-window .admin-titlebar button:hover {
  border-color: rgba(155, 225, 216, 0.46);
  background: rgba(37, 76, 88, 0.82);
  color: #f1fbfd;
}

body[data-client-theme="night"] .mini-user-window .admin-window-statusbar {
  border-top-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(180deg, #12252e 0%, #0e1e26 100%);
  color: #9fbcc5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-client-theme="night"] .mini-user-info {
  color: #d9edf1;
}

body[data-client-theme="night"] .mini-user-avatar {
  border-color: rgba(100, 199, 187, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(155, 225, 216, 0.04)),
    linear-gradient(135deg, #274754 0%, #172d39 100%);
  color: #9be1d8;
  box-shadow:
    0 0 0 1px rgba(100, 199, 187, 0.22),
    0 12px 26px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-client-theme="night"] .mini-user-fields label {
  color: #c9f5ef;
}

body[data-client-theme="night"] .mini-user-window .admin-user-form input,
body[data-client-theme="night"] .mini-user-window .mini-user-fields input {
  border-color: rgba(100, 199, 187, 0.28);
  background: #111f27;
  color: #e7f4f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .mini-user-window .admin-user-form input:disabled,
body[data-client-theme="night"] .mini-user-window .mini-user-fields input:disabled {
  background: #162b34;
  color: #b7cdd4;
  opacity: 1;
}

body[data-client-theme="night"].mobile-layout .mini-user-window {
  background:
    radial-gradient(circle at 50% 0%, rgba(100, 199, 187, 0.16), transparent 34%),
    linear-gradient(180deg, #162f39 0%, #0f212a 100%);
}

body[data-client-theme="night"].mobile-layout .mini-user-hero,
body[data-client-theme="night"].mobile-layout .mini-user-window .mini-user-fields label {
  border-color: rgba(100, 199, 187, 0.24);
  background: rgba(20, 40, 49, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-client-theme="night"].mobile-layout .mini-user-summary strong,
body[data-client-theme="night"].mobile-layout .mini-user-window .mini-user-fields input,
body[data-client-theme="night"].mobile-layout .mini-user-window .mini-user-fields input:disabled {
  background: transparent;
  color: #eefbfc;
}

body[data-client-theme="night"].mobile-layout .mini-user-summary span {
  color: #9be1d8;
}

body[data-client-theme="night"].mobile-layout .mini-user-summary small,
body[data-client-theme="night"].mobile-layout .mini-user-window .mini-user-fields label {
  color: #9fbcc5;
}

body[data-client-theme="night"].mobile-layout .mobile-user-info-sheet {
  border-color: rgba(100, 199, 187, 0.24);
  background:
    radial-gradient(circle at 50% 0%, rgba(100, 199, 187, 0.16), transparent 34%),
    linear-gradient(180deg, #162f39 0%, #0f212a 100%);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-client-theme="night"].mobile-layout .mobile-user-info-sheet::before {
  background: rgba(155, 225, 216, 0.28);
}

body[data-client-theme="night"].mobile-layout .mobile-user-info-close {
  border-color: rgba(100, 199, 187, 0.26);
  background: rgba(15, 31, 39, 0.78);
  color: #d9edf1;
}

body[data-client-theme="night"] .admin-window {
  border-color: rgba(100, 199, 187, 0.28);
  background: #0e1e26;
  color: #d9edf1;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .admin-window::after {
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(155, 225, 216, 0.46) 46% 52%, transparent 53%),
    linear-gradient(135deg, transparent 0 62%, rgba(155, 225, 216, 0.46) 63% 69%, transparent 70%);
}

body[data-client-theme="night"] .admin-titlebar,
body[data-client-theme="night"] .admin-blue-window .admin-titlebar,
body[data-client-theme="night"] .admin-orange-window .admin-titlebar,
body[data-client-theme="night"] .admin-brown-window .admin-titlebar,
body[data-client-theme="night"] .admin-black-window .admin-titlebar {
  border-bottom-color: rgba(100, 199, 187, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(155, 225, 216, 0.04)),
    linear-gradient(180deg, #203f4b 0%, #142d38 100%);
  color: #e8fbfd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .admin-titlebar strong,
body[data-client-theme="night"] .admin-brown-window .admin-titlebar strong,
body[data-client-theme="night"] .admin-black-window .admin-titlebar strong {
  color: #e8fbfd;
  text-shadow: 0 0 8px rgba(100, 199, 187, 0.22);
}

body[data-client-theme="night"] .admin-window-actions button {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(15, 31, 39, 0.76);
  color: #d9edf1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .admin-window-actions button:hover {
  border-color: rgba(155, 225, 216, 0.46);
  background: rgba(37, 76, 88, 0.82);
  color: #f1fbfd;
}

body[data-client-theme="night"] .admin-window-actions [data-admin-window-action="minimize"] {
  border-color: rgba(255, 207, 106, 0.34);
  background: linear-gradient(180deg, rgba(91, 72, 30, 0.9), rgba(52, 43, 24, 0.92));
  color: #ffe5a4;
}

body[data-client-theme="night"] .admin-window-actions [data-admin-window-action="maximize"] {
  border-color: rgba(142, 190, 255, 0.34);
  background: linear-gradient(180deg, rgba(36, 72, 106, 0.9), rgba(24, 49, 75, 0.92));
  color: #c8e0ff;
}

body[data-client-theme="night"] .admin-window-actions [data-admin-window-action="close"] {
  border-color: rgba(255, 122, 134, 0.38);
  background: linear-gradient(180deg, rgba(93, 40, 51, 0.9), rgba(55, 28, 38, 0.92));
  color: #ffd9de;
}

body[data-client-theme="night"] .admin-window-actions [data-admin-window-action="close"]:hover {
  border-color: rgba(255, 154, 168, 0.56);
  background: linear-gradient(180deg, rgba(112, 47, 59, 0.96), rgba(72, 32, 43, 0.94));
  color: #fff0f3;
}

body[data-client-theme="night"] .admin-window-body,
body[data-client-theme="night"] .admin-room-form,
body[data-client-theme="night"] .admin-user-form,
body[data-client-theme="night"] .room-owner-settings-form,
body[data-client-theme="night"] .broadcast-message-form,
body[data-client-theme="night"] .complaint-window .complaint-form {
  background: linear-gradient(180deg, #182c34 0%, #13252d 100%);
  color: #d9edf1;
}

body[data-client-theme="night"] .admin-window-statusbar {
  border-top-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(180deg, #12252e 0%, #0e1e26 100%);
  color: #9fbcc5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-client-theme="night"] .admin-window-toolbar {
  border-bottom-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(180deg, #1b3540 0%, #132934 100%);
  color: #d9edf1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .admin-window-toolbar span,
body[data-client-theme="night"] .admin-date-filter,
body[data-client-theme="night"] .admin-search-field,
body[data-client-theme="night"] .admin-room-form label,
body[data-client-theme="night"] .admin-user-form label,
body[data-client-theme="night"] .complaint-window .complaint-form label,
body[data-client-theme="night"] .broadcast-message-form label,
body[data-client-theme="night"] .site-settings-section h3,
body[data-client-theme="night"] .site-settings-form .site-toggle-check,
body[data-client-theme="night"] .site-bot-welcome-toggle,
body[data-client-theme="night"] .mini-user-fields label {
  color: #c9f5ef;
}

body[data-client-theme="night"] .admin-room-form input,
body[data-client-theme="night"] .admin-room-form select,
body[data-client-theme="night"] .admin-room-form textarea,
body[data-client-theme="night"] .admin-user-form input,
body[data-client-theme="night"] .admin-user-form select,
body[data-client-theme="night"] .admin-user-form textarea,
body[data-client-theme="night"] .admin-date-filter input,
body[data-client-theme="night"] .admin-search-field input,
body[data-client-theme="night"] .admin-online-filter,
body[data-client-theme="night"] .mini-user-fields input {
  border-color: rgba(100, 199, 187, 0.28);
  background: #111f27;
  color: #e7f4f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .admin-room-form input:disabled,
body[data-client-theme="night"] .admin-room-form select:disabled,
body[data-client-theme="night"] .admin-room-form textarea:disabled,
body[data-client-theme="night"] .admin-user-form input:disabled,
body[data-client-theme="night"] .admin-user-form select:disabled,
body[data-client-theme="night"] .admin-user-form textarea:disabled {
  background: #162b34;
  color: #b7cdd4;
  opacity: 1;
}

body[data-client-theme="night"] .admin-room-form input::placeholder,
body[data-client-theme="night"] .admin-room-form textarea::placeholder,
body[data-client-theme="night"] .admin-user-form input::placeholder,
body[data-client-theme="night"] .admin-user-form textarea::placeholder,
body[data-client-theme="night"] .admin-search-field input::placeholder {
  color: #7f99a3;
  opacity: 1;
}

body[data-client-theme="night"] .admin-window-toolbar button,
body[data-client-theme="night"] .admin-room-form footer button,
body[data-client-theme="night"] .admin-user-form footer button,
body[data-client-theme="night"] .site-bot-save-button,
body[data-client-theme="night"] .word-filter-item {
  border-color: rgba(100, 199, 187, 0.32);
  background: linear-gradient(180deg, #254b57 0%, #193541 100%);
  color: #eaffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 5px 12px rgba(0, 0, 0, 0.22);
}

body[data-client-theme="night"] .admin-window-toolbar button:hover,
body[data-client-theme="night"] .site-bot-save-button:hover,
body[data-client-theme="night"] .admin-room-form footer button:hover,
body[data-client-theme="night"] .admin-user-form footer button:hover {
  border-color: rgba(155, 225, 216, 0.5);
  background: linear-gradient(180deg, #2d5b68 0%, #1d4050 100%);
  color: #f1fbfd;
}

body[data-client-theme="night"] .admin-room-form .secondary,
body[data-client-theme="night"] .admin-user-form .secondary {
  border-color: rgba(255, 154, 168, 0.34);
  background: linear-gradient(180deg, rgba(79, 36, 46, 0.94), rgba(50, 28, 38, 0.92));
  color: #ffd9de;
}

body[data-client-theme="night"] .admin-user-form .primary:disabled {
  border-color: rgba(100, 199, 187, 0.16);
  background: #16242c;
  color: #748c96;
}

body[data-client-theme="night"] .admin-table-wrap {
  background: #13252d;
}

body[data-client-theme="night"] .admin-data-table {
  color: #d9edf1;
}

body[data-client-theme="night"] .admin-data-table th,
body[data-client-theme="night"] .admin-data-table td {
  border-color: rgba(100, 199, 187, 0.18);
}

body[data-client-theme="night"] .admin-data-table th {
  background: linear-gradient(180deg, #244853 0%, #18333e 100%);
  color: #c9f5ef;
}

body[data-client-theme="night"] .admin-data-table tbody td,
body[data-client-theme="night"] .admin-data-table tbody tr:nth-child(even) td {
  background: #142832;
}

body[data-client-theme="night"] .admin-data-table tbody tr:hover td {
  background: #1d3a44;
}

body[data-client-theme="night"] .admin-data-table tbody tr.selected-row td {
  background: #273848;
}

body[data-client-theme="night"] .admin-inline-action {
  border-color: rgba(255, 207, 106, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 207, 106, 0.1), rgba(0, 0, 0, 0.08)),
    linear-gradient(180deg, #263848 0%, #1a2e39 100%);
  color: #ffe4a3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .admin-inline-action:hover {
  border-color: rgba(255, 220, 132, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 220, 132, 0.14), rgba(0, 0, 0, 0.06)),
    linear-gradient(180deg, #30475a 0%, #203746 100%);
  color: #fff1c4;
}

body[data-client-theme="night"] .admin-inline-action.disabled {
  border-color: rgba(100, 199, 187, 0.16);
  background: #16242c;
  color: #8299a2;
}

body[data-client-theme="night"] .admin-form-lock,
body[data-client-theme="night"] .admin-role-preview,
body[data-client-theme="night"] .site-settings-section,
body[data-client-theme="night"] .broadcast-recipient-section,
body[data-client-theme="night"] .room-owner-settings-form .readonly-owner-label {
  border-color: rgba(100, 199, 187, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(155, 225, 216, 0.03)),
    linear-gradient(180deg, #1a313a 0%, #142832 100%);
  color: #d9edf1;
}

body[data-client-theme="night"] .admin-role-preview strong {
  color: #e8fbfd;
}

body[data-client-theme="night"] .admin-role-preview.empty,
body[data-client-theme="night"] .admin-room-form-empty,
body[data-client-theme="night"] .admin-room-empty {
  color: #9fbcc5;
}

body[data-client-theme="night"] .admin-room-form-message {
  color: #f2d06b;
}

body[data-client-theme="night"] .admin-room-manager,
body[data-client-theme="night"] .admin-user-manager {
  background: #13252d;
}

body[data-client-theme="night"] .admin-room-picker {
  border-right-color: rgba(100, 199, 187, 0.2);
  background: linear-gradient(180deg, #172d36 0%, #10232b 100%);
}

body[data-client-theme="night"] .admin-room-picker-head {
  border-bottom-color: rgba(100, 199, 187, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 207, 106, 0.1), rgba(0, 0, 0, 0.08)),
    linear-gradient(180deg, #223947 0%, #172d36 100%);
  color: #f2d06b;
}

body[data-client-theme="night"] .admin-room-filter,
body[data-client-theme="night"] .admin-room-create-form {
  border-bottom-color: rgba(100, 199, 187, 0.18);
  color: #c9f5ef;
}

body[data-client-theme="night"].mobile-layout .mobile-admin-window-backdrop {
  background: rgba(2, 8, 12, 0.5);
}

body[data-client-theme="night"].mobile-layout .mobile-user-menu-backdrop {
  background: rgba(2, 8, 12, 0.5);
}

body[data-client-theme="night"].mobile-layout .admin-room-form footer {
  background: linear-gradient(180deg, rgba(19, 37, 45, 0.78), #13252d 34%);
}

body[data-client-theme="night"].mobile-layout .admin-complaint-layout .admin-table-wrap {
  border-color: rgba(100, 199, 187, 0.18);
  background: #13252d;
}

body[data-client-theme="night"].mobile-layout .word-filter-form {
  border-top-color: rgba(100, 199, 187, 0.18);
}

body[data-client-theme="night"] .admin-room-filter input,
body[data-client-theme="night"] .admin-room-create-form input {
  border-color: rgba(100, 199, 187, 0.28);
  background: #111f27;
  color: #e7f4f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .admin-room-filter input::placeholder,
body[data-client-theme="night"] .admin-room-create-form input::placeholder {
  color: #7f99a3;
  opacity: 1;
}

body[data-client-theme="night"] .admin-room-create-form button {
  border-color: rgba(255, 207, 106, 0.32);
  background: linear-gradient(180deg, rgba(102, 74, 35, 0.96), rgba(67, 49, 28, 0.96));
  color: #ffe4a3;
}

body[data-client-theme="night"] .admin-room-row {
  border-color: rgba(100, 199, 187, 0.18);
  background: linear-gradient(180deg, #1b333d 0%, #142832 100%);
  color: #b8ced6;
}

body[data-client-theme="night"] .admin-room-row strong {
  color: #e8fbfd;
}

body[data-client-theme="night"] .admin-room-row span {
  color: #91aab3;
}

body[data-client-theme="night"] .admin-room-row:hover,
body[data-client-theme="night"] .admin-room-row.active {
  border-color: rgba(255, 207, 106, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 207, 106, 0.1), rgba(0, 0, 0, 0.08)),
    linear-gradient(180deg, #263848 0%, #1a2e39 100%);
}

body[data-client-theme="night"] .admin-room-order-actions button {
  border-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #d9edf1;
}

body[data-client-theme="night"] .admin-room-checks label {
  border-color: rgba(100, 199, 187, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(155, 225, 216, 0.03)),
    linear-gradient(180deg, #182f38 0%, #112731 100%);
  color: #d9edf1;
}

body[data-client-theme="night"] .admin-room-checks input {
  accent-color: #64c7bb;
}

body[data-client-theme="night"] .site-settings-note {
  border-color: rgba(255, 207, 106, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 207, 106, 0.1), rgba(0, 0, 0, 0.08)),
    linear-gradient(180deg, #2b342f 0%, #1a292d 100%);
  color: #f4dfaa;
}

body[data-client-theme="night"] .broadcast-recipient-section legend {
  color: #9be1d8;
}

body[data-client-theme="night"] .broadcast-recipient-section label {
  color: #d9edf1;
}

body[data-client-theme="night"] .broadcast-recipient-section input,
body[data-client-theme="night"] .site-settings-form .site-toggle-check input,
body[data-client-theme="night"] .site-bot-welcome-toggle input {
  accent-color: #64c7bb;
}

body[data-client-theme="night"] .room-list-item {
  border-color: rgba(100, 199, 187, 0.2);
  background: linear-gradient(180deg, #1d333c 0%, #142832 100%);
  color: #d9edf1;
}

body[data-client-theme="night"] .room-list-item.active,
body[data-client-theme="night"] .room-list-item:hover {
  border-color: rgba(155, 225, 216, 0.42);
  background: linear-gradient(180deg, #254b57 0%, #193541 100%);
}

body[data-client-theme="night"] .room-list-item.room-private,
body[data-client-theme="night"] .room-list-item.room-locked {
  border-color: rgba(255, 207, 74, 0.24);
  background: linear-gradient(180deg, #2d3540 0%, #1b2a33 100%);
}

body[data-client-theme="night"] .room-icon,
body[data-client-theme="night"] .room-list-item.room-private .room-icon,
body[data-client-theme="night"] .room-list-item.room-locked .room-icon,
body[data-client-theme="night"] .room-icon.has-room-profile {
  border-color: rgba(100, 199, 187, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, #274754 0%, #162d38 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 5px 12px rgba(0, 0, 0, 0.28);
}

body[data-client-theme="night"] .room-icon::before {
  border-color: #9be1d8;
  background: linear-gradient(180deg, #1f3f4b 0%, #142c36 100%);
}

body[data-client-theme="night"] .room-icon::after {
  border-color: #9be1d8;
}

body[data-client-theme="night"] .room-icon span {
  background: #9be1d8;
  box-shadow: 0 5px 0 rgba(155, 225, 216, 0.5);
}

body[data-client-theme="night"] .room-icon.has-room-profile img {
  filter: brightness(0.78) saturate(0.95);
}

body[data-client-theme="night"] .room-count {
  border-color: rgba(142, 190, 255, 0.28);
  background: linear-gradient(180deg, #20394b 0%, #172b3a 100%);
  color: #d7e8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 10px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"] #usersList .list-item.user-row.speaking,
body[data-client-theme="night"] #usersList .list-item.user-row.current-speaker-user {
  border-color: rgba(255, 122, 134, 0.44) !important;
  background: linear-gradient(180deg, rgba(82, 35, 43, 0.84) 0%, rgba(55, 28, 38, 0.84) 100%) !important;
  box-shadow: inset 4px 0 0 #ff7b86, 0 7px 16px rgba(0, 0, 0, 0.22);
}

body[data-client-theme="night"] #usersList .list-item.user-row.speaking .user-nick,
body[data-client-theme="night"] #usersList .list-item.user-row.current-speaker-user .user-nick {
  color: #ffd9de !important;
}

body[data-client-theme="night"] #usersList .list-item.user-row.queued-user {
  border-color: rgba(142, 190, 255, 0.42) !important;
  background: linear-gradient(180deg, rgba(36, 70, 99, 0.82) 0%, rgba(28, 51, 77, 0.82) 100%) !important;
  box-shadow: inset 4px 0 0 #8ebeff, 0 5px 12px rgba(0, 0, 0, 0.2);
}

body[data-client-theme="night"] #usersList .list-item.user-row.queued-user .user-nick {
  color: #d7e8ff !important;
}

body[data-client-theme="night"] .media-panel,
body[data-client-theme="night"] .room-button-style-bar {
  border-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(90deg, #172a33 0%, #1d3540 52%, #13252d 100%);
  color: #b8ced6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(100, 199, 187, 0.08);
}

body[data-client-theme="night"].room-style-button:not(.mobile-layout) .room-button-style-rooms {
  border: 1px solid rgba(100, 199, 187, 0.16);
  border-radius: 8px;
  background: rgba(12, 25, 31, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-client-theme="night"] .room-style-room-button {
  border-color: rgba(100, 199, 187, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.035) 42%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, hsl(var(--room-tone, 188), 34%, 27%) 0%, #142832 100%);
  color: #d9edf1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 5px 12px rgba(0, 0, 0, 0.22);
}

body[data-client-theme="night"] .room-style-room-button strong {
  color: #f1fbfd;
  text-shadow: 0 0 8px rgba(100, 199, 187, 0.18);
}

body[data-client-theme="night"] .room-style-room-button span {
  border-color: rgba(155, 225, 216, 0.24);
  background: rgba(15, 31, 39, 0.68);
  color: #b8ced6;
}

body[data-client-theme="night"] .room-style-room-button.active {
  border-color: rgba(155, 225, 216, 0.52);
  background:
    linear-gradient(180deg, rgba(155, 225, 216, 0.3) 0%, rgba(100, 199, 187, 0.14) 45%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, hsl(var(--room-tone, 188), 40%, 35%) 0%, #1b414a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 4px 0 0 rgba(155, 225, 216, 0.82),
    0 0 0 2px rgba(100, 199, 187, 0.32),
    0 0 16px rgba(100, 199, 187, 0.24),
    0 7px 16px rgba(0, 0, 0, 0.28);
}

body[data-client-theme="night"] .room-style-room-button.active strong {
  color: #c9fff6;
  text-shadow: 0 0 10px rgba(155, 225, 216, 0.34);
}

body[data-client-theme="night"] .room-style-room-button.active span {
  border-color: rgba(155, 225, 216, 0.42);
  background: rgba(100, 199, 187, 0.16);
  color: #e5fffb;
}

body[data-client-theme="night"] .room-style-room-button:hover {
  border-color: rgba(155, 225, 216, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.045) 42%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, hsl(var(--room-tone, 188), 36%, 31%) 0%, #18323c 100%);
}

body[data-client-theme="night"].room-style-button:not(.mobile-layout) .room-button-style-actions {
  border-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, #182c34 0%, #13252d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 7px 16px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"].room-style-button:not(.mobile-layout) .room-button-style-actions .room-logout-button {
  border-color: rgba(255, 122, 134, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.035) 42%, rgba(0, 0, 0, 0.24) 100%),
    linear-gradient(180deg, #5c2630 0%, #3f1f2a 100%);
  color: #ffd9de;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 14px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"].room-style-button:not(.mobile-layout) .room-button-style-actions .room-logout-button:hover {
  border-color: rgba(255, 157, 167, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.045) 42%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, #6a2c37 0%, #47222d 100%);
}

body[data-client-theme="night"] .room-style-empty {
  color: #9bb5be;
}

body[data-client-theme="night"] .meta-pill,
body[data-client-theme="night"] .queue-badge {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #c8dde3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 2px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"] .list-item.user-row .queue-badge {
  border-color: rgba(142, 190, 255, 0.36);
  background: linear-gradient(180deg, #20394b 0%, #172b3a 100%);
  color: #d7e8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 4px 10px rgba(0, 0, 0, 0.22);
}

body[data-client-theme="night"] .list-item.user-row .queue-badge b {
  color: #d7e8ff;
}

body[data-client-theme="night"] .meta-pill b,
body[data-client-theme="night"] .room-owner-pill b {
  color: #9be1d8;
}

body[data-client-theme="night"] #roomStatus {
  border-color: rgba(117, 216, 205, 0.42);
  background: linear-gradient(180deg, #1d4a46 0%, #173739 100%);
  color: #bff6ee;
}

body[data-client-theme="night"] .speaker-indicator {
  border-color: rgba(117, 216, 205, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 44%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, #1d4a46 0%, #173739 100%);
  color: #bff6ee;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 7px 16px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"] .speaker-indicator b {
  color: #9be1d8;
  text-shadow: 0 0 8px rgba(100, 199, 187, 0.28);
}

body[data-client-theme="night"] .speaker-indicator img {
  filter:
    brightness(0.82)
    saturate(0.9)
    drop-shadow(0 0 5px rgba(100, 199, 187, 0.3));
}

body[data-client-theme="night"] .user-context-menu,
body[data-client-theme="night"] .user-context-menu.mine-menu,
body[data-client-theme="night"] .user-context-menu.mine-menu .submenu,
body[data-client-theme="night"] .user-context-menu.other-menu,
body[data-client-theme="night"] .submenu,
body[data-client-theme="night"] .chat-context-menu {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #1d343d 0%, #132730 100%);
  color: #d9edf1;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

body[data-client-theme="night"] .menu-user-title {
  border-bottom-color: rgba(100, 199, 187, 0.18);
  color: #ffbac2;
}

body[data-client-theme="night"] .user-context-menu button {
  color: #d9edf1;
}

body[data-client-theme="night"] .user-context-menu button:hover,
body[data-client-theme="night"] .menu-parent:hover > button,
body[data-client-theme="night"] .user-context-menu.other-menu button:hover {
  border-color: rgba(155, 225, 216, 0.46);
  background: linear-gradient(180deg, #2e6570 0%, #214e5b 100%);
  color: #f1fbfd;
}

body[data-client-theme="night"] .user-context-menu.other-menu .check-menu-item.checked {
  border-color: rgba(255, 122, 134, 0.42);
  background: rgba(92, 38, 48, 0.72);
  color: #ffd9de;
}

body[data-client-theme="night"] .handup-icon {
  border-radius: 999px;
  background: radial-gradient(circle, #274a55 0%, #132832 72%);
  padding: 2px;
  box-shadow:
    0 0 0 1px rgba(100, 199, 187, 0.24),
    0 4px 10px rgba(0, 0, 0, 0.28),
    0 0 12px rgba(100, 199, 187, 0.16);
}

body[data-client-theme="night"] .panel-action .handup-icon,
body[data-client-theme="night"] .mobile-primary-tool .handup-icon {
  background: radial-gradient(circle, #315e69 0%, #17303a 74%);
  box-shadow:
    0 0 0 1px rgba(155, 225, 216, 0.3),
    0 0 12px rgba(142, 190, 255, 0.18);
}

body[data-client-theme="night"] .queue-badge .handup-icon {
  background: radial-gradient(circle, #284760 0%, #142838 74%);
  box-shadow:
    0 0 0 1px rgba(142, 190, 255, 0.24),
    0 0 10px rgba(142, 190, 255, 0.14);
}

body.mobile-layout .mobile-action-bar .theme-moon-icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 860px) {
  .login-screen {
    place-items: stretch;
    min-height: 100svh;
    padding: 0;
  }

  .login-card {
    grid-template-rows: minmax(0, 1fr) minmax(40px, auto);
    width: 100%;
    max-width: none;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    border: 0;
  }

  .login-window-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: max(28px, env(safe-area-inset-top)) 22px 20px;
  }

  .register-card .login-window-body {
    justify-content: flex-start;
    padding-top: max(22px, env(safe-area-inset-top));
  }

  .login-hero-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 22px;
  }

  .login-card h1,
  .login-brand {
    font-size: 32px;
  }

  .login-card p {
    max-width: 360px;
    margin-bottom: 18px;
    font-size: 15px;
  }

  .login-card input {
    min-height: 54px;
    font-size: 17px;
  }

  .login-submit {
    min-height: 58px;
    font-size: 19px;
  }

  .login-submit + .auth-switch {
    margin-top: 28px !important;
  }

  .login-statusbar {
    min-height: 40px;
    padding: 5px 14px;
    font-size: 13px;
  }
}

.login-screen {
  min-height: 100svh;
  overflow: hidden;
}

.login-card {
  max-height: calc(100svh - 24px);
}

.login-window-body {
  overflow: hidden;
  padding: clamp(18px, 3svh, 28px) 30px;
}

.login-logo {
  width: min(142px, 52vw);
  max-height: 72px;
  margin: 0 auto 10px;
}

.login-card h1,
.login-brand {
  margin-bottom: 8px;
  font-size: clamp(24px, 4.2vw, 30px);
}

.login-card p {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.32;
}

.permission-note {
  margin-top: -4px !important;
  margin-bottom: 14px !important;
  padding: 8px 10px;
}

.login-card .auth-field {
  margin: 0 0 12px;
}

.auth-divider {
  margin: 12px 0 10px;
}

.auth-links {
  gap: 6px;
  margin-top: 12px;
}

.login-submit + .auth-switch {
  margin-top: 14px !important;
}

@media (max-width: 860px) {
  .login-card {
    overflow: hidden;
  }

  .login-window-body {
    justify-content: flex-start;
    overflow: hidden;
    padding: clamp(16px, 4svh, 28px) 20px 14px;
  }

  .login-logo {
    width: min(150px, 48vw);
    max-height: clamp(62px, 12svh, 82px);
    margin-bottom: clamp(8px, 1.6svh, 14px);
  }

  .login-card h1,
  .login-brand {
    margin-bottom: 8px;
    font-size: clamp(26px, 7.2vw, 32px);
    line-height: 1.05;
  }

  .login-card p {
    max-width: 340px;
    margin-bottom: 11px;
    font-size: clamp(13px, 3.45vw, 15px);
    line-height: 1.34;
  }

  .permission-note {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding: 9px 10px;
  }

  .login-card .auth-field {
    margin: 0 0 11px;
  }

  .login-card input {
    min-height: 50px;
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 16px;
  }

  .login-submit,
  .google-login-button {
    min-height: 50px;
    font-size: 18px;
  }

  .auth-divider {
    margin: 11px 0 10px;
  }

  .auth-links {
    gap: 6px;
    margin-top: 10px;
  }

  .auth-switch,
  .auth-link,
  .auth-button-link {
    font-size: 13px;
  }

  .auth-button-link {
    min-height: 28px;
  }

  .login-submit + .auth-switch {
    margin-top: 12px !important;
  }

  .login-statusbar {
    min-height: 34px;
    padding: 4px 10px;
    font-size: 12px;
  }
}

@media (max-width: 860px) and (max-height: 740px) {
  .login-window-body {
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .login-logo {
    width: min(128px, 42vw);
    max-height: 58px;
    margin-bottom: 6px;
  }

  .login-card h1,
  .login-brand {
    margin-bottom: 5px;
    font-size: 24px;
  }

  .login-card p {
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 1.25;
  }

  .permission-note {
    padding: 6px 8px;
    margin-bottom: 8px !important;
  }

  .login-card .auth-field {
    margin-bottom: 8px;
  }

  .login-card input,
  .login-submit,
  .google-login-button {
    min-height: 44px;
    font-size: 15px;
  }

  .auth-divider {
    margin: 7px 0;
  }

  .auth-links {
    gap: 3px;
    margin-top: 7px;
  }
}

@media (max-width: 860px) and (max-height: 640px) {
  .login-window-body {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .login-logo {
    max-height: 48px;
    margin-bottom: 3px;
  }

  .login-card h1,
  .login-brand {
    font-size: 22px;
  }

  .login-card p {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .permission-note {
    padding: 5px 7px;
    margin-bottom: 6px !important;
  }

  .login-card input,
  .login-submit,
  .google-login-button {
    min-height: 40px;
  }

  .auth-divider {
    margin: 6px 0;
  }
}

body[data-client-theme="night"] .login-screen {
  background:
    radial-gradient(circle at 50% 12%, rgba(100, 199, 187, 0.16), transparent 34%),
    linear-gradient(180deg, #101820 0%, #14232b 58%, #0f1a21 100%);
}

body[data-client-theme="night"] .login-card {
  border-color: rgba(100, 199, 187, 0.32);
  background: #13252d;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .login-titlebar {
  border-bottom-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #f1fbfd;
}

body[data-client-theme="night"] .login-titlebar button {
  border-color: rgba(255, 122, 134, 0.36);
  background: rgba(92, 38, 48, 0.64);
  color: #ffd9de;
}

body[data-client-theme="night"] .login-window-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(100, 199, 187, 0.03) 38%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, #182c34 0%, #13252d 100%);
}

body[data-client-theme="night"] .login-card h1,
body[data-client-theme="night"] .login-brand {
  background: linear-gradient(105deg, #ff9aa8 0%, #9ccff0 38%, #9be1d8 72%, #f2d06b 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

body[data-client-theme="night"] .login-card p,
body[data-client-theme="night"] .auth-switch,
body[data-client-theme="night"] .login-card label {
  color: #a9c0c8;
}

body[data-client-theme="night"] .permission-note {
  border-color: rgba(100, 199, 187, 0.24);
  background: rgba(15, 31, 39, 0.72);
  color: #b8ced6;
}

body[data-client-theme="night"] .auth-field::before {
  color: #9be1d8;
}

body[data-client-theme="night"] .auth-field.user-field::before,
body[data-client-theme="night"] .auth-field.mail-field::before {
  filter: brightness(1.35) saturate(0.8);
}

body[data-client-theme="night"] .login-card input,
body[data-client-theme="night"] .login-card input[type="password"] {
  border-color: rgba(100, 199, 187, 0.28);
  background-color: #111f27 !important;
  background-image: linear-gradient(180deg, #111f27 0%, #162b34 100%) !important;
  color: #e7f4f6 !important;
  -webkit-text-fill-color: #e7f4f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  caret-color: #9be1d8;
}

body[data-client-theme="night"] .login-card input::placeholder,
body[data-client-theme="night"] .login-card input[type="password"]::placeholder {
  color: #7f99a3 !important;
  -webkit-text-fill-color: #7f99a3;
  opacity: 1;
}

body[data-client-theme="night"] .login-card input:focus {
  border-color: rgba(155, 225, 216, 0.5);
  background-color: #132832 !important;
  background-image: none !important;
  box-shadow: 0 0 0 3px rgba(100, 199, 187, 0.13);
}

body[data-client-theme="night"] .login-card input:-webkit-autofill,
body[data-client-theme="night"] .login-card input:-webkit-autofill:hover,
body[data-client-theme="night"] .login-card input:-webkit-autofill:focus,
body[data-client-theme="night"] .login-card input:-webkit-autofill:active,
body[data-client-theme="night"] .login-card input[type="password"]:-webkit-autofill,
body[data-client-theme="night"] .login-card input[type="password"]:-webkit-autofill:hover,
body[data-client-theme="night"] .login-card input[type="password"]:-webkit-autofill:focus,
body[data-client-theme="night"] .login-card input[type="password"]:-webkit-autofill:active {
  border-color: rgba(100, 199, 187, 0.28);
  -webkit-text-fill-color: #e7f4f6 !important;
  caret-color: #9be1d8;
  box-shadow: 0 0 0 1000px #111f27 inset, inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: background-color 999999s ease-out, color 999999s ease-out;
}

body[data-client-theme="night"] .auth-divider {
  color: #a9c0c8 !important;
}

body[data-client-theme="night"] .auth-divider span {
  color: #c8dde3;
  background: rgba(15, 31, 39, 0.84);
}

body[data-client-theme="night"] .auth-divider::before,
body[data-client-theme="night"] .auth-divider::after {
  background: linear-gradient(90deg, rgba(100, 199, 187, 0.08), rgba(155, 225, 216, 0.34), rgba(142, 190, 255, 0.1));
}

body[data-client-theme="night"] .google-login-button {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #e7f4f6;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"] .google-login-button:hover {
  border-color: rgba(155, 225, 216, 0.46);
  background: linear-gradient(180deg, #254b57 0%, #193541 100%);
}

body[data-client-theme="night"] .login-submit {
  border-color: rgba(155, 225, 216, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, #285564 0%, #1b4657 52%, #133241 100%);
  color: #eaffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body[data-client-theme="night"] .auth-link,
body[data-client-theme="night"] .auth-button-link {
  color: #9ccff0;
}

body[data-client-theme="night"] .login-message,
body[data-client-theme="night"] .login-statusbar {
  border-top-color: rgba(100, 199, 187, 0.2);
  background: linear-gradient(180deg, #172b34 0%, #111f27 100%);
  color: #b8ced6;
}

body[data-client-theme="night"].mobile-layout .side {
  border-color: rgba(100, 199, 187, 0.3);
  background: #13252d;
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.4);
}

body[data-client-theme="night"].mobile-layout .mobile-sheet-head {
  border-bottom-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #f1fbfd;
}

body[data-client-theme="night"].mobile-layout .mobile-sheet-head button {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(15, 31, 39, 0.82);
  color: #d9edf1;
}

body[data-client-theme="night"].mobile-layout .side .tab-panel,
body[data-client-theme="night"].mobile-layout .mobile-admin-panel,
body[data-client-theme="night"].mobile-layout .mobile-chat-menu-panel {
  background: linear-gradient(180deg, #182c34 0%, #13252d 100%) !important;
}

body[data-client-theme="night"].mobile-layout .mobile-audio-settings {
  border-color: rgba(100, 199, 187, 0.26);
  background: linear-gradient(180deg, #1b333c 0%, #132832 100%);
}

body[data-client-theme="night"].mobile-layout .mobile-audio-settings label {
  color: #b8ced6;
}

body[data-client-theme="night"].mobile-layout .mobile-audio-settings select {
  border-color: rgba(100, 199, 187, 0.28);
  background: #111f27;
  color: #e7f4f6;
}

body[data-client-theme="night"].mobile-layout .mobile-action-bar {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, rgba(24, 44, 52, 0.96) 0%, rgba(19, 37, 45, 0.96) 100%) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

body[data-client-theme="night"].mobile-layout .mobile-action-bar .mobile-nav-tool,
body[data-client-theme="night"].mobile-layout .mobile-action-bar .mobile-primary-tool {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(15, 31, 39, 0.82) !important;
  color: #d9edf1;
}

body[data-client-theme="night"].mobile-layout .mobile-rail-toggle {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #203941 0%, #172b34 100%);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body[data-client-theme="night"].mobile-layout .mobile-rail-toggle::before {
  border-color: #9be1d8;
}

body[data-client-theme="night"].mobile-layout .room-menu-button {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #d9edf1;
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body[data-client-theme="night"].mobile-layout .room-menu-button:hover {
  border-color: rgba(155, 225, 216, 0.46);
  background: linear-gradient(180deg, #294a55 0%, #1a313b 100%);
  color: #f1fbfd;
}

body[data-client-theme="night"].mobile-layout .mobile-action-bar .mobile-nav-tool::before,
body[data-client-theme="night"].mobile-layout .mobile-action-bar .mobile-primary-tool::before {
  background: rgba(37, 76, 88, 0.5);
}

body[data-client-theme="night"].mobile-layout .mobile-action-bar::before {
  color: #9be1d8;
  background: linear-gradient(90deg, rgba(24, 44, 52, 0.98) 0%, rgba(24, 44, 52, 0) 100%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.34);
}

body[data-client-theme="night"].mobile-layout .mobile-action-bar::after {
  color: #9be1d8;
  background: linear-gradient(270deg, rgba(24, 44, 52, 0.98) 0%, rgba(24, 44, 52, 0) 100%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.34);
}

body[data-client-theme="night"].mobile-layout .mobile-action-bar .mobile-nav-tool:hover,
body[data-client-theme="night"].mobile-layout .mobile-action-bar .mobile-primary-tool:hover,
body[data-client-theme="night"].mobile-layout .mobile-action-bar .mobile-nav-tool.active,
body[data-client-theme="night"].mobile-layout .mobile-action-bar .mobile-primary-tool.active {
  border-color: rgba(155, 225, 216, 0.46);
  background: rgba(37, 76, 88, 0.88) !important;
  color: #f1fbfd;
}

body[data-client-theme="night"].mobile-layout .composer-wrap > .smiley-panel,
body[data-client-theme="night"].mobile-layout .private-window .private-smiley-panel {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #1f3841 0%, #142832 100%) !important;
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.32);
}

body[data-client-theme="night"].mobile-layout .mobile-admin-menu button {
  border-color: rgba(100, 199, 187, 0.26);
  background: linear-gradient(180deg, #1f3a43 0%, #142832 100%);
  color: #d9edf1;
}

body[data-client-theme="night"].mobile-layout .mobile-admin-menu button span {
  color: #9be1d8;
}

body[data-client-theme="night"] .invisible-join-overlay {
  background:
    radial-gradient(circle at 50% 18%, rgba(100, 199, 187, 0.18), transparent 34%),
    rgba(4, 12, 17, 0.68);
}

body[data-client-theme="night"] .invisible-join-card {
  border-color: rgba(100, 199, 187, 0.32);
  background: linear-gradient(180deg, #182c34 0%, #13252d 100%);
  color: #d9edf1;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .invisible-join-card .room-window-titlebar {
  border-bottom-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #f1fbfd;
}

body[data-client-theme="night"] .invisible-join-card .room-window-titlebar button {
  border-color: rgba(255, 122, 134, 0.36);
  background: rgba(92, 38, 48, 0.64);
  color: #ffd9de;
}

body[data-client-theme="night"] .invisible-join-card .room-window-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(100, 199, 187, 0.03) 38%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, #182c34 0%, #13252d 100%);
}

body[data-client-theme="night"] .invisible-join-card .room-window-body p {
  color: #9be1d8;
}

body[data-client-theme="night"] .invisible-join-card .room-window-body h2 {
  color: #f1fbfd;
}

body[data-client-theme="night"] .invisible-join-card .second-nick-field input {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #111f27 0%, #162b34 100%) !important;
  color: #e7f4f6 !important;
  -webkit-text-fill-color: #e7f4f6;
}

body[data-client-theme="night"] .invisible-join-card .second-nick-field input::placeholder {
  color: #7f99a3 !important;
  -webkit-text-fill-color: #7f99a3;
  opacity: 1;
}

body[data-client-theme="night"] .invisible-join-card .invisible-panel-check {
  color: #c8dde3;
}

body[data-client-theme="night"] .invisible-join-card .invisible-panel-check input {
  accent-color: #64c7bb;
}

body[data-client-theme="night"] .invisible-join-card .room-gate-actions .secondary {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(15, 31, 39, 0.82);
  color: #d9edf1;
}

body[data-client-theme="night"] .invisible-join-card .room-gate-actions .primary {
  border-color: rgba(155, 225, 216, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, #285564 0%, #1b4657 52%, #133241 100%);
  color: #eaffff;
}

body[data-client-theme="night"] .room-gate-overlay {
  background:
    radial-gradient(circle at 50% 18%, rgba(100, 199, 187, 0.18), transparent 34%),
    rgba(4, 12, 17, 0.7);
}

body[data-client-theme="night"] .room-gate-card,
body[data-client-theme="night"] .room-window-card {
  border-color: rgba(100, 199, 187, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(100, 199, 187, 0.03) 38%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, #182c34 0%, #13252d 100%);
  color: #d9edf1;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .room-window-titlebar {
  border-bottom-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #f1fbfd;
}

body[data-client-theme="night"] .room-window-blue .room-window-titlebar {
  background: linear-gradient(180deg, #203f48 0%, #172d38 100%);
  color: #dff9ff;
}

body[data-client-theme="night"] .room-window-red .room-window-titlebar {
  border-bottom-color: rgba(255, 122, 134, 0.22);
  background: linear-gradient(180deg, #3a2730 0%, #2b2029 100%);
  color: #ffd9de;
}

body[data-client-theme="night"] .room-window-titlebar button {
  border-color: rgba(255, 122, 134, 0.36);
  background: rgba(92, 38, 48, 0.64);
  color: #ffd9de;
}

body[data-client-theme="night"] .room-window-titlebar button:hover {
  border-color: rgba(255, 155, 166, 0.48);
  background: rgba(112, 48, 58, 0.78);
}

body[data-client-theme="night"] .room-window-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(100, 199, 187, 0.03) 38%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, #182c34 0%, #13252d 100%);
}

body[data-client-theme="night"] .room-gate-card p,
body[data-client-theme="night"] .room-window-body > p {
  color: #9be1d8;
}

body[data-client-theme="night"] .room-gate-card h2,
body[data-client-theme="night"] .room-window-body > h2 {
  color: #f1fbfd;
}

body[data-client-theme="night"] .room-window-room-name,
body[data-client-theme="night"] .room-gate-card span,
body[data-client-theme="night"] .room-window-body > span {
  color: #c8dde3;
}

body[data-client-theme="night"] .room-window-red .room-window-body > span,
body[data-client-theme="night"] .room-window-red .room-window-body > h2 {
  color: #ffd9de;
}

body[data-client-theme="night"] .room-gate-card input,
body[data-client-theme="night"] .room-gate-card textarea {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #111f27 0%, #162b34 100%) !important;
  color: #e7f4f6 !important;
  -webkit-text-fill-color: #e7f4f6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

body[data-client-theme="night"] .room-gate-card input::placeholder,
body[data-client-theme="night"] .room-gate-card textarea::placeholder {
  color: #7f99a3 !important;
  -webkit-text-fill-color: #7f99a3;
  opacity: 1;
}

body[data-client-theme="night"] .room-gate-card blockquote {
  border-left-color: rgba(155, 225, 216, 0.42);
  background: rgba(15, 31, 39, 0.76);
  color: #c8dde3;
}

body[data-client-theme="night"] .room-gate-actions .secondary {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(15, 31, 39, 0.82);
  color: #d9edf1;
}

body[data-client-theme="night"] .room-gate-actions .primary {
  border-color: rgba(155, 225, 216, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, #285564 0%, #1b4657 52%, #133241 100%);
  color: #eaffff;
}
