﻿@font-face {
  font-family: 'Plicata';
  src: url('../fonts/Plicata.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

:root {
  --font-main: "Manrope", "Verdana", Verdana, Tahoma, sans-serif;
  --client-font: "Manrope", "Verdana", Verdana, Geneva, 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: #059669;
  --nick-guest: #64748b;
  --nick-admin: #f97316;
  --nick-root: #d97706;
  --nick-blue-role: #0284c7;
  --nick-warm-role: #7c3aed;
  --nick-green-role: #0f766e;
  --nick-owner: #f59e0b;
  --nick-operator: #0f766e;
  --nick-vip: #b45309;
  --nick-staff: #6d28d9;
  --chat-nick-mine: #173f74;
  --chat-nick-other: #e30a17;
  --msg-bg: linear-gradient(105deg, #ffffff 0%, #ecf8df 46%, #e8f5e9 100%);
  --msg-bg-mine: linear-gradient(105deg, #ffffff 0%, #fff1f6 48%, #f8e6ef 100%);
  --msg-border: #c7e2d1;
  --msg-border-mine: #ecd0dc;
  --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;
  --top-panel-height: 104px;
}

* {
  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,
body.connection-blocking .room-style-popup-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: 12px;
  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: 12px;
  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);
}

.room-full-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);
}

.room-full-card .ban-icon {
  background: #fdece9;
  color: #c04a3d;
}

.room-full-panel .ban-card {
  animation: roomFullShakeIn 0.5s ease-out both;
}

.room-full-icon {
  animation: roomFullPulse 1.4s ease-in-out infinite;
}

@keyframes roomFullShakeIn {
  0% { opacity: 0; transform: translateY(-14px) scale(0.96); }
  55% { opacity: 1; transform: translateY(4px) scale(1.02); }
  75% { transform: translateY(-2px) scale(0.995); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes roomFullPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(192, 74, 61, 0.35); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(192, 74, 61, 0); }
}

.site-ban-panel,
.site-status-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%);
}

.status-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);
}

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

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

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

.site-closed-card {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 52%, #d0d0d0 100%);
}

.site-closed-card .status-icon {
  background: #e0e0e0;
  color: #666;
}

.site-paused-card {
  background: linear-gradient(135deg, #fff8e1 0%, #ffe082 52%, #ffd54f 100%);
}

.site-paused-card .status-icon {
  background: #fff3cd;
  color: #856404;
}

.site-paused-card strong {
  color: #6d5200;
}

.site-paused-card p {
  color: #856404;
}

.site-traffic-card {
  background: linear-gradient(135deg, #fce4ec 0%, #ef9a9a 52%, #e57373 100%);
}

.site-traffic-card .status-icon {
  background: #ffcdd2;
  color: #c62828;
}

.site-traffic-card strong {
  color: #b71c1c;
}

.site-traffic-card p {
  color: #c62828;
}

.paused-remaining {
  margin-top: 8px;
  font-size: 15px;
}

.paused-remaining strong {
  color: #b8860b;
  font-size: 18px;
}

.demo-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
  animation: demo-pulse 2s ease-in-out infinite;
}

@keyframes demo-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.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: 12px;
  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: 22000;
  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: 12px;
  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: 12px;
  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: 12px;
  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;
  font-family: 'Plicata', cursive;
}

.login-titlebar button {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 24px;
  border: 1px solid #e6bfc8;
  border-radius: 8px;
  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;
  font-family: 'Plicata', cursive;
  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: 12px;
  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,
.animaticon-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: 8px;
  padding: 0;
  font-size: 13px;
}

.login-card label.kvkk-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 4px;
  font-size: 12px;
  font-weight: 400;
  color: #5a7a84;
  position: static;
}

.login-card label.kvkk-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: #369b9e;
}

.login-card label.kvkk-checkbox a {
  color: #2a7d8f;
  font-weight: 500;
  text-decoration: underline;
}

.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.has-logo-link {
  cursor: pointer;
}

.room-background-color-input {
  position: fixed;
  z-index: 100000;
  width: 34px;
  height: 34px;
  opacity: 0.01;
  pointer-events: none;
}

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

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

body:not(.mobile-layout) .chat-shell {
  grid-template-columns: var(--side-w, 276px) minmax(0, 1fr) 244px;
  transition: grid-template-columns 220ms ease;
}

body:not(.mobile-layout).profile-flow-collapsed .chat-shell {
  grid-template-columns: var(--side-w, 276px) minmax(0, 1fr) 0px;
}

body:not(.mobile-layout).panel-dragging .chat-shell {
  transition: none;
}

.panel-splitter {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: calc(var(--side-w, 276px) - 5px);
  width: 14px;
  z-index: 30;
  display: grid;
  place-items: center;
  cursor: ew-resize;
  touch-action: none;
}

.panel-splitter .panel-splitter-handle {
  width: 6px;
  height: 56px;
  border-radius: 999px;
  background: rgba(47, 125, 121, 0.9);
  box-shadow: 0 0 8px rgba(47, 125, 121, 0.45);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.panel-splitter:hover .panel-splitter-handle,
body.panel-dragging .panel-splitter .panel-splitter-handle {
  opacity: 1;
  transform: scaleY(1.2);
}

body.mobile-layout .panel-splitter {
  display: none;
}

.side,
.conversation,
.profile-flow-panel {
  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;
  font-family: var(--font-main);
}

.side {
  overflow: auto;
}

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

.profile-flow-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 12px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 249, 246, 0.95) 48%, rgba(238, 248, 252, 0.96) 100%),
    #ffffff;
  transition: opacity 180ms ease, transform 220ms ease, visibility 0s linear 0s;
}

body.profile-flow-collapsed .profile-flow-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease, visibility 0s linear 180ms;
}

.profile-flow-toggle {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 28px;
  border: 1px solid #b9d4dc;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.92), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #e7f4f8 100%);
  color: #315f77;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 3px 9px rgba(42, 70, 82, 0.14);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.profile-flow-toggle:hover {
  border-color: #8fb9c5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 5px 12px rgba(42, 70, 82, 0.18);
  transform: translateY(-1px);
}

.profile-flow-toggle img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
}

.profile-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 9px 11px;
  border-bottom: 1px solid #cfe1e7;
  background: linear-gradient(105deg, #fff3df 0%, #eaf8fb 48%, #e8f7de 100%);
  color: #355f68;
}

.profile-flow-head strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-flow-head span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  border: 1px solid #b9d4dc;
  border-radius: 999px;
  background: #ffffff;
  color: #7b3f1f;
  font-size: 11px;
  font-weight: 900;
}

.profile-flow-list {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: var(--profile-flow-list-gap, 10px);
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding: 11px;
  scrollbar-width: thin;
  scrollbar-color: rgba(69, 147, 166, 0.42) transparent;
}

.profile-flow-list::-webkit-scrollbar {
  width: 8px;
}

.profile-flow-list::-webkit-scrollbar-track {
  background: transparent;
}

.profile-flow-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(107, 188, 204, 0.58), rgba(69, 147, 166, 0.48));
}

.profile-flow-list:hover::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(116, 203, 217, 0.72), rgba(58, 136, 158, 0.64));
}

body[data-client-theme="night"] .profile-flow-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(100, 199, 187, 0.5), rgba(64, 156, 146, 0.42));
}

body[data-client-theme="night"] .profile-flow-list:hover::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(120, 214, 202, 0.66), rgba(74, 170, 160, 0.56));
}

.profile-flow-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 9px 12px;
  align-items: stretch;
  min-height: 166px;
  border: 1px solid #d4e6ec;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 246, 231, 0.86) 0%, rgba(255, 255, 255, 0.96) 35%, rgba(239, 250, 248, 0.96) 100%);
  box-shadow: 0 9px 20px rgba(42, 70, 82, 0.1);
  color: #355f68;
  padding: 12px;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
}

.profile-flow-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #f0a94a 0%, #58b48f 48%, #5f95c8 100%);
  opacity: 0.82;
}

.profile-flow-card:hover {
  border-color: #a9ced8;
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.95) 0%, rgba(255, 255, 255, 0.98) 38%, rgba(234, 249, 247, 0.98) 100%);
  box-shadow: 0 13px 26px rgba(42, 70, 82, 0.14);
  transform: translateY(-1px);
}

.profile-flow-side {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.profile-flow-right {
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.profile-flow-avatar {
  width: 86px;
  height: 86px;
}

.profile-flow-avatar .user-avatar {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(42, 70, 82, 0.16);
}

.profile-flow-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-top: 3px;
}

.profile-flow-main strong,
.profile-flow-main span,
.profile-flow-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-flow-main strong {
  color: #243f47;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.12;
}

.profile-flow-main span {
  color: #28705a;
  font-size: 11.5px;
  font-weight: 800;
}

.profile-flow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.profile-flow-meta small {
  max-width: 100%;
  min-height: 24px;
  border: 1px solid rgba(178, 214, 224, 0.9);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 247, 250, 0.96) 100%);
  color: #4e6d76;
  padding: 5px 8px;
  font-size: 9.5px;
  font-weight: 900;
}

.profile-flow-meta small:first-child {
  border-color: rgba(255, 255, 255, 0.48);
  background: var(--role-badge-bg, linear-gradient(135deg, #86efac 0%, #4ade80 100%));
  box-shadow: 0 5px 12px var(--role-badge-shadow, rgba(74, 222, 128, 0.2));
  color: var(--role-badge-fg, #14532d);
}

.profile-flow-meta small:last-child {
  border-color: rgba(235, 188, 98, 0.55);
  background: linear-gradient(180deg, #fffaf0 0%, #f7e8c8 100%);
  color: #7a541e;
}

.profile-flow-stats {
  margin-top: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.pf-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.pf-stat-likes {
  background: linear-gradient(135deg, #ffe0e6, #ffc8d4);
  color: #a83248;
  border: 1px solid rgba(255, 150, 170, 0.4);
}
.pf-stat-gifts {
  background: linear-gradient(135deg, #fff5d6, #ffe8a8);
  color: #996a1a;
  border: 1px solid rgba(255, 200, 80, 0.4);
}
body[data-client-theme="night"] .pf-stat-likes {
  background: linear-gradient(135deg, rgba(180, 50, 70, 0.45), rgba(140, 30, 50, 0.35));
  color: #f5a0b0;
  border-color: rgba(255, 100, 130, 0.25);
}
body[data-client-theme="night"] .pf-stat-gifts {
  background: linear-gradient(135deg, rgba(160, 120, 30, 0.45), rgba(120, 90, 20, 0.35));
  color: #f0d060;
  border-color: rgba(255, 200, 80, 0.2);
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .pf-stat-likes {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #e07080) 20%, transparent), color-mix(in srgb, var(--accent, #d06070) 14%, transparent));
  color: var(--accent-strong, #a83248);
  border-color: color-mix(in srgb, var(--accent, #ff96aa) 40%, transparent);
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .pf-stat-gifts {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #f0c040) 20%, transparent), color-mix(in srgb, var(--accent, #d0a020) 14%, transparent));
  color: var(--accent-strong, #996a1a);
  border-color: color-mix(in srgb, var(--accent, #ffc850) 40%, transparent);
}

.profile-flow-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.profile-flow-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 28px;
  border: 1px solid #bfd9e2;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf6fb 100%);
  color: #315f77;
  padding: 0 6px;
  font: 900 10px var(--font-main);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.profile-flow-actions button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.profile-flow-actions button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-flow-actions button:first-child {
  border-color: rgba(121, 190, 127, 0.6);
  background: linear-gradient(180deg, #fbfff8 0%, #dff3d5 100%);
  color: #37743c;
}

.profile-flow-actions button:last-child {
  border-color: rgba(95, 149, 200, 0.58);
  background: linear-gradient(180deg, #f8fcff 0%, #dceffc 100%);
  color: #2d6595;
}

.profile-flow-actions button:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.profile-flow-actions button:disabled {
  opacity: 0.48;
  cursor: default;
}

.profile-flow-empty {
  border: 1px dashed #c7dce6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #6b8088;
  padding: 12px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

body[data-client-theme="night"] .profile-flow-panel {
  border-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(180deg, #132832 0%, #0e1e26 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

body[data-client-theme="night"] .profile-flow-head {
  border-bottom-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(105deg, #213c45 0%, #17303a 54%, #172b2a 100%);
  color: #e8fbfd;
}

body[data-client-theme="night"] .profile-flow-head span {
  border-color: rgba(100, 199, 187, 0.28);
  background: #0f222b;
  color: #d6f2ed;
}

body[data-client-theme="night"] .profile-flow-toggle {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #c9fff6;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

body[data-client-theme="night"] .profile-flow-card {
  border-color: rgba(100, 199, 187, 0.22);
  background:
    linear-gradient(135deg, rgba(37, 62, 69, 0.94) 0%, rgba(24, 47, 57, 0.98) 44%, rgba(16, 36, 45, 0.98) 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  color: #d9edf1;
}

body[data-client-theme="night"] .profile-flow-card:hover {
  border-color: rgba(129, 220, 207, 0.38);
  background:
    linear-gradient(135deg, rgba(44, 73, 80, 0.98) 0%, rgba(29, 56, 67, 0.98) 44%, rgba(20, 42, 52, 0.98) 100%);
}

body[data-client-theme="night"] .profile-flow-card::before {
  background: linear-gradient(90deg, #d7a75b 0%, #64c7bb 52%, #7fa6d8 100%);
}

body[data-client-theme="night"] .profile-flow-avatar .user-avatar {
  border-color: rgba(226, 251, 250, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

body[data-client-theme="night"] .profile-flow-main strong {
  color: #f1feff;
}

body[data-client-theme="night"] .profile-flow-main span {
  color: #8ee1cd;
}

body[data-client-theme="night"] .profile-flow-meta small {
  border-color: rgba(100, 199, 187, 0.2);
  background: #10242d;
  color: #adc9d0;
}

body[data-client-theme="night"] .profile-flow-meta small:first-child {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--role-badge-bg, linear-gradient(135deg, #86efac 0%, #4ade80 100%));
  color: var(--role-badge-fg, #14532d);
}

body[data-client-theme="night"] .profile-flow-meta small:last-child {
  border-color: rgba(225, 181, 91, 0.28);
  background: linear-gradient(180deg, #352a19 0%, #271f14 100%);
  color: #e5c37f;
}

body[data-client-theme="night"] .profile-flow-actions button {
  border-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, #18323d 0%, #112731 100%);
  color: #d8f3f1;
}

body[data-client-theme="night"] .profile-flow-actions button:first-child {
  border-color: rgba(126, 212, 156, 0.32);
  background: linear-gradient(180deg, #18372c 0%, #102a21 100%);
  color: #a8e8ba;
}

body[data-client-theme="night"] .profile-flow-actions button:last-child {
  border-color: rgba(117, 170, 224, 0.34);
  background: linear-gradient(180deg, #173245 0%, #112839 100%);
  color: #b8d8fa;
}

body[data-client-theme="night"] .profile-flow-empty {
  border-color: rgba(100, 199, 187, 0.24);
  background: rgba(16, 36, 45, 0.78);
  color: #adc9d0;
}

.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: var(--top-panel-height);
  padding: 13px 14px;
  margin: 10px 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(105deg, #fff1f6 0%, #ecf8df 36%, #e6f5ff 68%, #fff6c8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(119, 163, 178, 0.16),
    inset -16px 0 22px rgba(255, 255, 255, 0.32),
    inset 1px 0 0 rgba(74, 126, 142, 0.06),
    0 3px 8px rgba(42, 70, 82, 0.12),
    0 12px 26px rgba(42, 70, 82, 0.16);
  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: 12px;
  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);
}

body[data-client-theme="darkwood"] .theme-panel {
  border-color: #4a3826;
  background: linear-gradient(180deg, rgba(42, 31, 20, 0.85), rgba(33, 22, 14, 0.9));
}

body[data-client-theme="darkwood"] .theme-custom-option input {
  background: #2a1f14;
  color: #d4a050;
}

body[data-client-theme="darkwood"] .theme-options button[data-theme="darkwood"] {
  border-color: #d4a050;
  background: linear-gradient(180deg, #6a4f30 0%, #5a3f24 100%);
  color: #e8dccc;
}

body[data-client-theme="darkwood"] #usersList .users-list-scroll::-webkit-scrollbar {
  width: 6px;
}
body[data-client-theme="darkwood"] #usersList .users-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(42, 31, 20, 0.78) !important;
  border-color: #5a3f24 !important;
}

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

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

@keyframes friend-online-neon {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(50, 180, 60, 0.15), 0 0 8px 3px rgba(50, 180, 60, 0.1);
    border-color: rgba(50, 180, 60, 0.2); }
  50% { box-shadow: 0 0 6px 2px rgba(50, 180, 60, 0.4), 0 0 14px 6px rgba(50, 180, 60, 0.2);
    border-color: rgba(50, 180, 60, 0.5); }
}
@keyframes friend-online-neon-night {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(80, 220, 200, 0.15), 0 0 8px 3px rgba(80, 220, 200, 0.1);
    border-color: rgba(80, 220, 200, 0.2); }
  50% { box-shadow: 0 0 6px 2px rgba(80, 220, 200, 0.4), 0 0 14px 6px rgba(80, 220, 200, 0.2);
    border-color: rgba(80, 220, 200, 0.5); }
}
@keyframes friend-offline-neon {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(220, 60, 60, 0.15), 0 0 8px 3px rgba(220, 60, 60, 0.1);
    border-color: rgba(220, 60, 60, 0.2); }
  50% { box-shadow: 0 0 6px 2px rgba(220, 60, 60, 0.4), 0 0 14px 6px rgba(220, 60, 60, 0.2);
    border-color: rgba(220, 60, 60, 0.5); }
}
@keyframes friend-offline-neon-night {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(255, 100, 100, 0.15), 0 0 8px 3px rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.2); }
  50% { box-shadow: 0 0 6px 2px rgba(255, 100, 100, 0.4), 0 0 14px 6px rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.5); }
}
@keyframes friend-online-popup {
  0% { transform: translateY(20px); opacity: 0; }
  15% { transform: translateY(-42px); opacity: 1; }
  50% { transform: translateY(-45px); opacity: 1; }
  85% { transform: translateY(-40px); opacity: 0.7; }
  100% { transform: translateY(20px); opacity: 0; }
}
.friend-has-online {
  animation: friend-online-neon 0.6s ease-in-out 2;
  border-color: rgba(50, 180, 60, 0.4) !important;
}
body[data-client-theme="night"] .friend-has-online {
  animation: friend-online-neon-night 0.6s ease-in-out 2;
  border-color: rgba(80, 220, 200, 0.4) !important;
}
.friend-has-offline {
  animation: friend-offline-neon 0.6s ease-in-out 2;
  border-color: rgba(220, 60, 60, 0.4) !important;
}
body[data-client-theme="night"] .friend-has-offline {
  animation: friend-offline-neon-night 0.6s ease-in-out 2;
  border-color: rgba(255, 100, 100, 0.4) !important;
}

@keyframes friend-request-neon {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(220, 160, 50, 0.15), 0 0 8px 3px rgba(220, 160, 50, 0.1);
    border-color: rgba(220, 160, 50, 0.2); }
  50% { box-shadow: 0 0 6px 2px rgba(220, 160, 50, 0.45), 0 0 14px 6px rgba(220, 160, 50, 0.2);
    border-color: rgba(220, 160, 50, 0.55); }
}
@keyframes friend-request-neon-night {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(255, 200, 80, 0.15), 0 0 8px 3px rgba(255, 200, 80, 0.1);
    border-color: rgba(255, 200, 80, 0.2); }
  50% { box-shadow: 0 0 6px 2px rgba(255, 200, 80, 0.45), 0 0 14px 6px rgba(255, 200, 80, 0.2);
    border-color: rgba(255, 200, 80, 0.55); }
}
.friend-has-request {
  animation: friend-request-neon 0.5s ease-in-out 3;
  border-color: rgba(220, 160, 50, 0.5) !important;
}
body[data-client-theme="night"] .friend-has-request {
  animation: friend-request-neon-night 0.5s ease-in-out 3;
  border-color: rgba(255, 200, 80, 0.5) !important;
}
.friend-request-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8a020, #d4880c);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  animation: friend-request-badge-pop 0.3s ease-out;
  pointer-events: none;
}
@keyframes friend-request-badge-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
@keyframes friend-offline-popup {
  0% { transform: translateY(20px); opacity: 0; }
  15% { transform: translateY(-42px); opacity: 1; }
  50% { transform: translateY(-45px); opacity: 1; }
  85% { transform: translateY(-40px); opacity: 0.7; }
  100% { transform: translateY(20px); opacity: 0; }
}
.friend-offline-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: friend-offline-popup 2.2s ease-in-out forwards;
  pointer-events: none;
  z-index: 100;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #e04040 0%, #b02020 100%);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(200, 40, 40, 0.4);
}
body[data-client-theme="night"] .friend-offline-badge {
  background: linear-gradient(180deg, #ff5555 0%, #cc2222 100%);
  box-shadow: 0 2px 10px rgba(255, 80, 80, 0.3);
}

@keyframes room-new-neon {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(255, 160, 30, 0.15), 0 0 8px 3px rgba(255, 160, 30, 0.1);
    border-color: rgba(255, 160, 30, 0.2); }
  50% { box-shadow: 0 0 6px 2px rgba(255, 160, 30, 0.4), 0 0 14px 6px rgba(255, 160, 30, 0.2);
    border-color: rgba(255, 160, 30, 0.5); }
}
@keyframes room-new-neon-night {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(255, 200, 60, 0.15), 0 0 8px 3px rgba(255, 200, 60, 0.1);
    border-color: rgba(255, 200, 60, 0.2); }
  50% { box-shadow: 0 0 6px 2px rgba(255, 200, 60, 0.4), 0 0 14px 6px rgba(255, 200, 60, 0.2);
    border-color: rgba(255, 200, 60, 0.5); }
}
@keyframes room-offline-neon {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(220, 60, 60, 0.15), 0 0 8px 3px rgba(220, 60, 60, 0.1);
    border-color: rgba(220, 60, 60, 0.2); }
  50% { box-shadow: 0 0 6px 2px rgba(220, 60, 60, 0.4), 0 0 14px 6px rgba(220, 60, 60, 0.2);
    border-color: rgba(220, 60, 60, 0.5); }
}
@keyframes room-offline-neon-night {
  0%, 100% { box-shadow: 0 0 3px 1px rgba(255, 100, 100, 0.15), 0 0 8px 3px rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.2); }
  50% { box-shadow: 0 0 6px 2px rgba(255, 100, 100, 0.4), 0 0 14px 6px rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.5); }
}
.room-new-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
  color: #fff;
  z-index: 2;
  pointer-events: none;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  background: linear-gradient(135deg, #f5c842 0%, #e8a800 50%, #d49400 100%);
  box-shadow: -1px 1px 3px rgba(0,0,0,0.15);
}
.room-new-ribbon::before {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 14px 5px 0;
  border-color: transparent #b87a00 transparent transparent;
}
.room-has-new {
  animation: room-new-neon 0.6s ease-in-out 2;
  border-color: rgba(255, 160, 30, 0.4) !important;
}
body[data-client-theme="night"] .room-has-new {
  animation: room-new-neon-night 0.6s ease-in-out 2;
  border-color: rgba(255, 200, 60, 0.4) !important;
}
.room-has-offline {
  animation: room-offline-neon 0.6s ease-in-out 2;
  border-color: rgba(220, 60, 60, 0.4) !important;
}
body[data-client-theme="night"] .room-has-offline {
  animation: room-offline-neon-night 0.6s ease-in-out 2;
  border-color: rgba(255, 100, 100, 0.4) !important;
}
@keyframes room-offline-popup {
  0% { transform: translateY(16px) scale(0.5); opacity: 0; }
  15% { transform: translateY(-38px) scale(1); opacity: 1; }
  50% { transform: translateY(-42px) scale(1); opacity: 1; }
  85% { transform: translateY(-38px) scale(0.9); opacity: 0.7; }
  100% { transform: translateY(16px) scale(0.5); opacity: 0; }
}
.room-offline-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: room-offline-popup 2.2s ease-in-out forwards;
  pointer-events: none;
  z-index: 100;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #e04040 0%, #b02020 100%);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(200, 40, 40, 0.4);
}
body[data-client-theme="night"] .room-offline-badge {
  background: linear-gradient(180deg, #ff5555 0%, #cc2222 100%);
  box-shadow: 0 2px 10px rgba(255, 80, 80, 0.3);
}
body[data-client-theme="night"] .room-new-ribbon {
  background: linear-gradient(135deg, #f5c842 0%, #d49400 50%, #b87a00 100%);
  box-shadow: -1px 1px 6px rgba(0,0,0,0.35);
}
@keyframes room-new-popup {
  0% { transform: translateY(16px) scale(0.5); opacity: 0; }
  15% { transform: translateY(-38px) scale(1); opacity: 1; }
  50% { transform: translateY(-42px) scale(1); opacity: 1; }
  85% { transform: translateY(-38px) scale(0.9); opacity: 0.7; }
  100% { transform: translateY(16px) scale(0.5); opacity: 0; }
}
.room-new-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: room-new-popup 2.2s ease-in-out forwards;
  pointer-events: none;
  z-index: 100;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff9d1e 0%, #e07c00 100%);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(220, 120, 0, 0.4);
}
.friend-online-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: friend-online-popup 2s ease-in-out forwards;
  pointer-events: none;
  z-index: 100;
}
.friend-online-badge img,
.friend-online-badge svg {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  background: linear-gradient(180deg, #64b96a 0%, #2f7b39 100%);
  padding: 3px;
}

.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;
  transition: opacity 180ms ease;
}

.tab-panel.active {
  display: flex;
  flex-direction: column;
  animation: tab-panel-fade-in 180ms ease;
}

.tab-panel.tab-panel-leaving {
  opacity: 0;
  pointer-events: none;
}

@keyframes tab-panel-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.side #usersPanel {
  background: #ffffff;
}

.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);
}

.room-sub-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 7px;
  overflow: hidden;
}

.room-sub-tab {
  width: 32px;
  height: 26px;
  border: 1px solid #efd5dc;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  color: #7c1f1f;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.room-sub-tab.active {
  background: #fff;
  border-color: #dba6b2;
  color: #5c0e0e;
  box-shadow: 0 1px 3px rgba(124, 31, 31, 0.1);
}

.room-sub-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: #e0b3bd;
}

.room-sub-tab-icon {
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}

.room-sub-panels {
  flex: 1;
  min-height: 0;
  position: relative;
}

.room-sub-panel {
  display: none;
  height: 100%;
  border: 1px solid #efd5dc;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #fff1f2 0%, #fff7f8 58%, #fffafa 100%);
  padding: 8px;
}

#favoriteRoomsList {
  background: linear-gradient(90deg, #fff8f0 0%, #fffdf5 58%, #fffff8 100%);
}

#recentRoomsList {
  background: linear-gradient(90deg, #f0f8ff 0%, #f5fbff 58%, #fafdff 100%);
}

.room-sub-panel.active {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 7px;
  max-height: 100%;
  overflow-y: auto;
}

.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);
}

.mobile-audio-settings .mobile-personal-style-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.mobile-audio-settings .mobile-audio-test-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 32px;
  border: 1px solid rgba(47, 125, 121, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, #f6fffd 0%, #e1f3ef 100%);
  color: #1f625d;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.mobile-audio-settings .mobile-audio-test-button:hover {
  border-color: #2f7d79;
  background: linear-gradient(180deg, #e1f3ef 0%, #c5e8e4 100%);
  box-shadow: 0 2px 8px rgba(47, 125, 121, 0.15);
}

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

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

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

.side #usersList {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(119, 163, 178, 0.45);
  background:
    var(--user-list-background-image, none) center / cover no-repeat fixed,
    linear-gradient(160deg, rgba(255, 245, 248, 0.88) 0%, rgba(237, 250, 254, 0.92) 42%, rgba(234, 252, 228, 0.82) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(119, 163, 178, 0.16),
    inset -16px 0 22px rgba(255, 255, 255, 0.32),
    inset 1px 0 0 rgba(74, 126, 142, 0.06),
    0 3px 8px rgba(42, 70, 82, 0.12),
    0 12px 26px rgba(42, 70, 82, 0.16);
  padding: 8px 7px !important;
}

#usersList .users-list-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 3px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(69, 147, 166, 0.42) transparent;
}

#usersList .users-list-scroll::-webkit-scrollbar {
  width: 3px;
}

#usersList .users-list-scroll::-webkit-scrollbar-track {
  background: transparent;
}

#usersList .users-list-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(107, 188, 204, 0.58), rgba(69, 147, 166, 0.48));
}

#usersList .users-list-scroll:hover::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(116, 203, 217, 0.72), rgba(58, 136, 158, 0.64));
}

#usersList .current-speaker-pin {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}

#usersList .current-speaker-pin[hidden] {
  display: none !important;
}

.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.room-member {
  border-color: #b8d4b8;
  background: linear-gradient(180deg, #ffffff 0%, #eefff0 100%);
}

.room-list-item.room-member .room-icon {
  background: linear-gradient(180deg, #f3fff5 0%, #c9f8d0 100%);
}

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

.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: 8px;
  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: 8px;
  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: 3px !important;
}

#usersList .list-item.user-row {
  position: relative;
  z-index: 1;
  --role-badge-bg: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
  --role-badge-shadow: rgba(134, 239, 172, 0.2);
  --role-badge-fg: #14532d;
  --role-icon-color: #16a34a;
  --role-icon-glyph: "\2606";
  grid-template-columns: 38px minmax(0, 1fr) max-content !important;
  column-gap: 6px !important;
  min-height: 46px !important;
  height: 46px !important;
  max-height: 46px !important;
  padding: 5px 10px 5px 8px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: color-mix(in oklab, var(--surface) 55%, transparent) !important;
  box-shadow: inset 0 1px 0 color-mix(in oklab, oklch(1 0 0) 55%, transparent) !important;
  align-items: center !important;
  overflow: hidden !important;
  transition: border-color 420ms cubic-bezier(0.22, 1, 0.36, 1), background 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Glass shine overlay */
#usersList .list-item.user-row::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 44%;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, oklch(1 0 0) 38%, transparent), transparent);
  transform: translateX(-120%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

#usersList .list-item.user-row:hover {
  border-color: color-mix(in oklab, var(--accent) 22%, transparent) !important;
  background: color-mix(in oklab, var(--accent-soft) 65%, var(--surface) 35%) !important;
  box-shadow: 0 4px 16px -8px color-mix(in oklab, var(--accent) 28%, transparent), inset 0 1px 0 color-mix(in oklab, oklch(1 0 0) 60%, transparent) !important;
  transform: translateX(4px) !important;
}

#usersList .list-item.user-row:hover .user-nick {
  color: var(--accent-strong) !important;
}

#usersList .list-item.user-row:hover::after {
  opacity: 1;
  animation: sheen-sweep 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

#usersList .list-item.user-row.selected,
#usersList .list-item.user-row:focus-visible {
  border-color: color-mix(in oklab, var(--accent) 62%, var(--accent-strong) 22%) !important;
  background: color-mix(in oklab, var(--accent-soft) 92%, var(--surface) 8%) !important;
  box-shadow: inset 3px 0 0 var(--accent-strong), 0 0 0 1px color-mix(in oklab, var(--accent) 28%, transparent), 0 4px 20px -8px color-mix(in oklab, var(--accent) 36%, transparent) !important;
  transform: translateX(3px);
}

#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: color-mix(in oklab, #4abe8a 42%, transparent) !important;
  background: color-mix(in oklab, #dcf5e8 75%, var(--surface) 25%) !important;
  box-shadow: inset 4px 0 0 #4abe8a, 0 4px 18px -8px color-mix(in oklab, #4abe8a 28%, transparent) !important;
}

#usersList .list-item.user-row.current-speaker-user,
#currentSpeakerPin .list-item.user-row.current-speaker-user {
  position: sticky !important;
  top: 0;
  z-index: 12;
  isolation: isolate;
  width: 100% !important;
  box-sizing: border-box;
  margin-bottom: 6px !important;
  border-color: color-mix(in oklab, #d84f5d 48%, transparent) !important;
  background: color-mix(in oklab, #ffe4e6 82%, var(--surface) 18%) !important;
  box-shadow: inset 4px 0 0 #d84f5d, 0 6px 22px -10px color-mix(in oklab, #ae3a46 30%, transparent) !important;
}

#usersList .list-item.user-row.current-speaker-user::before,
#currentSpeakerPin .list-item.user-row.current-speaker-user::before {
  content: "";
  position: absolute;
  inset: -8px -10px -8px -8px;
  z-index: -1;
  border-radius: 0;
  background: color-mix(in oklab, #ffe4e6 92%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in oklab, #d75f66 24%, transparent),
    0 4px 12px color-mix(in oklab, #4b1c25 16%, transparent);
  pointer-events: none;
}

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

#usersList .list-item.user-row.queued-user {
  border-color: color-mix(in oklab, #5f9fd1 42%, transparent) !important;
  background: color-mix(in oklab, #dceefe 78%, var(--surface) 22%) !important;
  box-shadow: inset 4px 0 0 #5f9fd1, 0 4px 18px -8px color-mix(in oklab, #5f9fd1 28%, transparent) !important;
}

#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: transparent !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: 34px !important;
  height: 34px !important;
  font-size: 13px !important;
  line-height: 34px !important;
  flex: 0 0 34px;
  transform: none;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 2px color-mix(in oklab, oklch(1 0 0) 74%, transparent),
    0 6px 22px -6px color-mix(in oklab, var(--accent) 45%, transparent),
    0 16px 48px -10px color-mix(in oklab, #000 36%, transparent) !important;
}

#usersList .user-avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: none;
  filter: drop-shadow(0 3px 8px color-mix(in oklab, #000 22%, transparent));
}

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

#usersList .user-avatar-wrap .user-avatar.has-photo {
  width: 34px !important;
  height: 34px !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-row.has-animnick {
  grid-template-columns: 1fr max-content !important;
  background: transparent !important;
  border-color: transparent !important;
}
#usersList .user-row.has-animnick .user-avatar-wrap,
#usersList .user-row.has-animnick .user-main {
  display: none !important;
}
#usersList .user-animnick-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
}
#usersList .user-animnick-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

#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-role-icon {
  display: inline-grid;
  flex: 0 0 14px;
  place-items: center;
  width: 14px;
  height: 14px;
  color: var(--role-icon-color);
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 4px rgba(31, 52, 61, 0.18);
}

.user-role-icon::before {
  content: var(--role-icon-glyph);
}

#usersList .list-item.user-row.admin-user,
.profile-flow-card.admin-user,
.profile-top-card.admin-user {
  --role-badge-bg: linear-gradient(135deg, #fecaca 0%, #fed7aa 100%);
  --role-badge-shadow: rgba(254, 215, 170, 0.25);
  --role-badge-fg: #7c2d12;
  --role-icon-color: #f15a24;
  --role-icon-glyph: "\25C6";
}

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

.profile-message-band-card.admin-user {
  --message-band-nick-color: var(--nick-admin);
}

#usersList .list-item.user-row.role-root-user,
.profile-flow-card.role-root-user,
.profile-top-card.role-root-user {
  --role-badge-bg: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
  --role-badge-shadow: rgba(254, 243, 199, 0.25);
  --role-badge-fg: #713f12;
  --role-icon-color: #c56a08;
  --role-icon-glyph: "\265B";
  --msg-bg: linear-gradient(105deg, #ffffff 0%, #fef9c3 46%, #fde047 100%);
  --msg-bg-mine: linear-gradient(105deg, #ffffff 0%, #fef08a 46%, #d97706 100%);
  --msg-border: #fde047;
  --msg-border-mine: #d97706;
}

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

.profile-message-band-card.role-root-user {
  --message-band-nick-color: var(--nick-root);
}

#usersList .list-item.user-row.role-admin-user,
.profile-flow-card.role-admin-user,
.profile-top-card.role-admin-user {
  --role-badge-bg: linear-gradient(135deg, #fecaca 0%, #fed7aa 100%);
  --role-badge-shadow: rgba(254, 215, 170, 0.25);
  --role-badge-fg: #7c2d12;
  --role-icon-color: #f15a24;
  --role-icon-glyph: "\25C6";
  --msg-bg: linear-gradient(105deg, #ffffff 0%, #ffe4e6 46%, #fca5a5 100%);
  --msg-bg-mine: linear-gradient(105deg, #ffffff 0%, #fecaca 46%, #fdba74 100%);
  --msg-border: #fca5a5;
  --msg-border-mine: #fdba74;
}

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

.profile-message-band-card.role-admin-user {
  --message-band-nick-color: var(--nick-admin);
}

#usersList .list-item.user-row.role-superadmin-user,
.profile-flow-card.role-superadmin-user,
.profile-top-card.role-superadmin-user {
  --role-badge-bg: linear-gradient(135deg, #f3e8ff 0%, #d8b4fe 100%);
  --role-badge-shadow: rgba(216, 180, 254, 0.25);
  --role-badge-fg: #4c1d95;
  --role-icon-color: #8b5cf6;
  --role-icon-glyph: "\2726";
  --msg-bg: linear-gradient(105deg, #ffffff 0%, #fae8ff 46%, #e9d5ff 100%);
  --msg-bg-mine: linear-gradient(105deg, #ffffff 0%, #f0abfc 46%, #c084fc 100%);
  --msg-border: #e9d5ff;
  --msg-border-mine: #c084fc;
}

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

.profile-message-band-card.role-superadmin-user {
  --message-band-nick-color: var(--nick-warm-role);
}

#usersList .list-item.user-row.role-moderator-user,
.profile-flow-card.role-moderator-user,
.profile-top-card.role-moderator-user {
  --role-badge-bg: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  --role-badge-shadow: rgba(186, 230, 253, 0.25);
  --role-badge-fg: #0c4a6e;
  --role-icon-color: #0284c7;
  --role-icon-glyph: "\25C8";
  --msg-bg: linear-gradient(105deg, #ffffff 0%, #e0f2fe 46%, #bae6fd 100%);
  --msg-bg-mine: linear-gradient(105deg, #ffffff 0%, #bae6fd 46%, #7dd3fc 100%);
  --msg-border: #bae6fd;
  --msg-border-mine: #7dd3fc;
}

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

.profile-message-band-card.role-moderator-user {
  --message-band-nick-color: var(--nick-blue-role);
}

#usersList .list-item.user-row.role-owner-user,
.profile-flow-card.role-owner-user,
.profile-top-card.role-owner-user {
  --role-badge-bg: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  --role-badge-shadow: rgba(253, 230, 138, 0.28);
  --role-badge-fg: #713f12;
  --role-icon-color: #d88a05;
  --role-icon-glyph: "\2655";
  --msg-bg: linear-gradient(105deg, #ffffff 0%, #fef9c3 46%, #fde68a 100%);
  --msg-bg-mine: linear-gradient(105deg, #ffffff 0%, #fde68a 46%, #fcd34d 100%);
  --msg-border: #fde68a;
  --msg-border-mine: #fcd34d;
}

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

.profile-message-band-card.role-owner-user {
  --message-band-nick-color: var(--nick-owner);
}

#usersList .list-item.user-row.role-operator-user,
.profile-flow-card.role-operator-user,
.profile-top-card.role-operator-user {
  --role-badge-bg: linear-gradient(135deg, #d1fae5 0%, #99f6e4 100%);
  --role-badge-shadow: rgba(153, 246, 228, 0.22);
  --role-badge-fg: #134e4a;
  --role-icon-color: #0f766e;
  --role-icon-glyph: "\25A3";
  --msg-bg: linear-gradient(105deg, #ffffff 0%, #ccfbf1 46%, #a7f3d0 100%);
  --msg-bg-mine: linear-gradient(105deg, #ffffff 0%, #99f6e4 46%, #5eead4 100%);
  --msg-border: #a7f3d0;
  --msg-border-mine: #5eead4;
}

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

.profile-message-band-card.role-operator-user {
  --message-band-nick-color: var(--nick-operator);
}

#usersList .list-item.user-row.role-vip-user,
.profile-flow-card.role-vip-user,
.profile-top-card.role-vip-user {
  --role-badge-bg: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
  --role-badge-shadow: rgba(245, 158, 11, 0.25);
  --role-badge-fg: #78350f;
  --role-icon-color: #d97706;
  --role-icon-glyph: "\2666";
  --msg-bg: linear-gradient(105deg, #ffffff 0%, #fef3c7 46%, #fde68a 100%);
  --msg-bg-mine: linear-gradient(105deg, #ffffff 0%, #fde68a 46%, #f59e0b 100%);
  --msg-border: #fde68a;
  --msg-border-mine: #f59e0b;
}

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

.profile-message-band-card.role-vip-user {
  --message-band-nick-color: var(--nick-vip);
}

#usersList .list-item.user-row.role-staff-user,
.profile-flow-card.role-staff-user,
.profile-top-card.role-staff-user {
  --role-badge-bg: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  --role-badge-shadow: rgba(221, 214, 254, 0.22);
  --role-badge-fg: #4c1d95;
  --role-icon-color: #7c3aed;
  --role-icon-glyph: "\2738";
  --msg-bg: linear-gradient(105deg, #ffffff 0%, #ede9fe 46%, #ddd6fe 100%);
  --msg-bg-mine: linear-gradient(105deg, #ffffff 0%, #ddd6fe 46%, #c4b5fd 100%);
  --msg-border: #ddd6fe;
  --msg-border-mine: #c4b5fd;
}

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

.profile-message-band-card.role-staff-user {
  --message-band-nick-color: var(--nick-staff);
}

#usersList .list-item.user-row.role-member-user,
.profile-flow-card.role-member-user,
.profile-top-card.role-member-user {
  --role-badge-bg: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
  --role-badge-shadow: rgba(134, 239, 172, 0.2);
  --role-badge-fg: #14532d;
  --role-icon-color: #059669;
  --role-icon-glyph: "\2605";
  --msg-bg: linear-gradient(105deg, #ffffff 0%, #d1fae5 46%, #86efac 100%);
  --msg-bg-mine: linear-gradient(105deg, #ffffff 0%, #a7f3d0 46%, #4ade80 100%);
  --msg-border: #86efac;
  --msg-border-mine: #4ade80;
}

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

.profile-message-band-card.role-member-user {
  --message-band-nick-color: var(--nick-member);
}

#usersList .list-item.user-row.role-guest-user,
.profile-flow-card.role-guest-user,
.profile-top-card.role-guest-user {
  --role-badge-bg: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  --role-badge-shadow: rgba(209, 213, 219, 0.2);
  --role-badge-fg: #374151;
  --role-icon-color: #64748b;
  --role-icon-glyph: "\25CB";
  --msg-bg: linear-gradient(105deg, #ffffff 0%, #f1f5f9 46%, #d1d5db 100%);
  --msg-bg-mine: linear-gradient(105deg, #ffffff 0%, #e2e8f0 46%, #9ca3af 100%);
  --msg-border: #d1d5db;
  --msg-border-mine: #9ca3af;
}

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

.profile-message-band-card.role-guest-user {
  --message-band-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 .list-item.user-row .user-main .user-nick.user-nick {
  font-size: 13px !important;
  line-height: 16px !important;
  height: 16px !important;
  letter-spacing: 0 !important;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 2px rgba(255, 255, 255, 0.7);
}

#usersList .user-main {
  height: 32px;
  grid-template-rows: 16px 14px;
  row-gap: 2px;
  align-content: center;
  transform: none;
}

#usersList .user-main .user-role-badge {
  display: inline-grid !important;
  place-items: center;
  justify-self: start;
  max-width: 100%;
  font-size: 10px !important;
  line-height: 12px !important;
  height: 14px !important;
  min-width: 0;
  padding: 0 18px 1px 6px !important;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: var(--role-badge-bg) !important;
  box-shadow:
    0 1px 4px var(--role-badge-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: var(--role-badge-fg) !important;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.device-icon {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: inherit;
  pointer-events: none;
}

.admin-online-device-col {
  text-align: center;
  width: 1%;
  white-space: nowrap;
}

th.admin-online-device-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.admin-online-device-col .device-icon,
.admin-dashboard-content .device-icon {
  position: static;
  transform: none;
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  color: var(--text-muted, #8a8f98);
}

.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-row.friend-added.friend-offline {
  border-color: #d89a9a;
  background: linear-gradient(180deg, #fff8f8 0%, #f6d8d8 100%);
}

.friend-row.friend-added.friend-offline .friend-main strong {
  color: #8a3a3a;
}

.friend-row.friend-added.friend-offline .friend-main small {
  color: #a87070;
}

.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;
}

.pending-requests-section {
  margin-bottom: 6px;
}

.pending-requests-header {
  border: 1px solid #e6d5c5;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff8f0 0%, #f5e6d0 100%);
  color: #7a5a3a;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
}

.pending-request-row {
  border-color: #e6d5c5 !important;
  background: linear-gradient(180deg, #fffcf8 0%, #f9f0e4 100%) !important;
}

.pending-request-row .friend-main strong {
  color: #6a4a2a;
}

.pending-request-row .friend-main small {
  color: #9a7a5a;
  font-style: italic;
}

.pending-accept {
  background: linear-gradient(180deg, #e5f7db 0%, #bfe6b1 100%) !important;
  color: #356024 !important;
}

.pending-reject {
  background: linear-gradient(180deg, #ffe7e7 0%, #f4b8b8 100%) !important;
  color: #8f2525 !important;
}

.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 sheen-sweep {
  0% {
    transform: translateX(-120%) skewX(-18deg);
  }
  100% {
    transform: translateX(240%) skewX(-18deg);
  }
}

@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 52px 12px 16px;
  border-bottom: 1px solid #b9d0da;
  background: linear-gradient(135deg, #fffbe8 0%, #e7f1ff 48%, #f4f9ff 100%);
  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;
  overflow: hidden;
}

.room-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.room-title-row h1 {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-title-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.room-head h1 {
  margin: 0 0 5px;
  overflow: hidden;
  color: #2f3438;
  font-size: 22px;
  line-height: 1.12;
  text-overflow: ellipsis;
}

#roomName {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px rgba(70, 100, 115, 0.55);
  background:
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(200, 222, 235, 0.07) 50%,
      rgba(255, 255, 255, 0.28) 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.10),
    0 3px 8px rgba(0, 0, 0, 0.05);
}

@keyframes roomTitleNeonPulse {
  0%,
  82%,
  100% {
    text-shadow:
      0 0 4px rgba(253, 186, 116, 0.65),
      0 0 12px rgba(253, 186, 116, 0.45),
      0 0 28px rgba(253, 186, 116, 0.25),
      0 0 50px rgba(253, 186, 116, 0.1);
  }

  87% {
    text-shadow:
      0 0 6px rgba(253, 186, 116, 0.85),
      0 0 16px rgba(253, 186, 116, 0.65),
      0 0 32px rgba(253, 186, 116, 0.4),
      0 0 60px rgba(253, 186, 116, 0.18);
  }

  91% {
    text-shadow:
      0 0 3px rgba(253, 186, 116, 0.55),
      0 0 8px rgba(253, 186, 116, 0.35),
      0 0 20px rgba(253, 186, 116, 0.18);
  }

  95% {
    text-shadow:
      0 0 6px rgba(253, 186, 116, 0.8),
      0 0 14px rgba(253, 186, 116, 0.6),
      0 0 30px rgba(253, 186, 116, 0.35),
      0 0 55px rgba(253, 186, 116, 0.14);
  }
}

.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;
  padding-right: 56px;
  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;
}

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

.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: 8px;
  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);
  max-width: 100%;
}

.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;
}

.room-invite-button,
.room-theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 30px;
  min-height: 30px;
  border: 1px solid rgba(40, 125, 121, 0.34);
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(180deg, #f4ffff 0%, #d7f4ee 100%);
  color: #168174;
  padding: 0;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 6px 14px rgba(35, 91, 105, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.room-invite-button:hover,
.room-theme-button:hover,
.room-theme-button[aria-expanded="true"] {
  border-color: rgba(26, 151, 136, 0.5);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #c8f2ea 100%);
  color: #0f7066;
  transform: translateY(-1px);
  box-shadow:
    0 0 12px rgba(255, 100, 0, 0.55),
    0 0 28px rgba(255, 50, 0, 0.35),
    0 0 56px rgba(255, 20, 0, 0.15);
}

.room-invite-button[hidden] {
  display: none;
}

.room-invite-button svg,
.room-theme-button svg,
.notification-button svg,
.mobile-notification-mark {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.room-theme-button svg {
  fill: rgba(38, 151, 139, 0.14);
}

.room-event-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid rgba(160, 200, 180, 0.7);
  background: linear-gradient(105deg, #fff1f6 0%, #ecf8df 36%, #e6f5ff 68%, #fff6c8 100%);
  padding: 7px 14px;
  color: #2d6b50;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 6px rgba(42, 160, 110, 0.08);
}

.room-event-card[hidden] {
  display: none;
}

/* Hareketli arka plan ışık efekti */
.room-event-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(160, 230, 190, 0.12) 30%,
    rgba(100, 210, 180, 0.10) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: eventGlowMove 4s ease-in-out infinite alternate;
}

/* Parlak shimmer şeridi */
.room-event-shimmer {
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  animation: eventShimmerSlide 3.5s ease-in-out infinite;
}

/* Slide-in animasyonu */
.room-event-card.event-card-enter {
  animation: eventCardSlideIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Slide-out animasyonu */
.room-event-card.event-card-exit {
  animation: eventCardSlideOut 300ms ease both;
}

@keyframes eventGlowMove {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

@keyframes eventShimmerSlide {
  0%   { left: -60%; opacity: 0; }
  10%  { opacity: 1; }
  60%  { left: 110%; opacity: 1; }
  61%  { opacity: 0; }
  100% { left: 110%; opacity: 0; }
}

@keyframes eventCardSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 80px;
  }
}

@keyframes eventCardSlideOut {
  from { max-height: 80px; transform: translateX(0); }
  to   { max-height: 0; transform: translateX(24px); }
}

.room-event-main {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  z-index: 1;
}

/* Yeni badge stili */
.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(220, 120, 120, 0.7);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 220, 215, 0.95) 0%, rgba(245, 175, 170, 0.85) 100%);
  color: #8a3030;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow:
    0 1px 4px rgba(200, 80, 80, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

/* Eski span stili (geriye uyumluluk) */
.room-event-main > span:not(.event-badge) {
  border: 1px solid #8fd1c9;
  border-radius: 8px;
  background: #ecfffb;
  color: #15786f;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.room-event-main strong,
.room-event-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-event-main strong {
  color: #1a4a38;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.room-event-main small {
  color: #3a7a60;
  font-size: 12px;
}

.room-event-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  z-index: 1;
}

.room-event-actions time,
.room-event-actions a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.room-event-actions time {
  border: 1px solid rgba(60, 180, 210, 0.7);
  background: linear-gradient(135deg, #ddf0f8 0%, #a0d8ed 100%);
  color: #0a5070;
  box-shadow: 0 1px 4px rgba(0, 140, 180, 0.15), inset 0 1px 0 rgba(255,255,255,0.7);
}

.room-event-actions a {
  border: 1px solid rgba(80, 190, 180, 0.7);
  background: linear-gradient(135deg, #e0fff8 0%, #a0ede0 100%);
  color: #0a6058;
  box-shadow: 0 1px 4px rgba(0, 150, 130, 0.15), inset 0 1px 0 rgba(255,255,255,0.7);
}

.room-event-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 150, 130, 0.25), inset 0 1px 0 rgba(255,255,255,0.7);
}

.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;
}

body[data-client-theme="custom"] .speaker-indicator {
  border-color: var(--talk-theme-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, var(--talk-theme-mid) 0%, var(--talk-theme-deep) 100%);
  color: #ffffff;
  box-shadow:
    0 8px 18px color-mix(in srgb, var(--talk-theme-deep) 34%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body[data-client-theme="custom"] .speaker-indicator b {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.42);
}

body[data-client-theme="custom"] .speaker-indicator img {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--talk-theme-soft) 70%, transparent));
}

.room-profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border: 2px solid #8bbec9;
  border-radius: 50%;
  background: #eef6f9;
  color: #ffffff;
  padding: 0;
  box-shadow: 0 2px 6px rgba(51, 98, 116, 0.14);
  cursor: pointer;
  overflow: hidden;
}

.room-profile-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.room-profile-button[data-initials] {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #3e6d7a;
  line-height: 1;
}

.room-profile-button:hover {
  border-color: #6baabc;
  box-shadow:
    0 0 14px rgba(255, 100, 0, 0.55),
    0 0 30px rgba(255, 50, 0, 0.35),
    0 2px 8px rgba(51, 98, 116, 0.22);
}

#roomProfileFrame {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  padding: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

#roomProfileFrame .room-profile-button {
  height: 100%;
  width: auto;
  aspect-ratio: 1;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  border-width: 2.5px;
  box-shadow: 0 0 14px rgba(100, 192, 220, 0.35), 0 2px 8px rgba(51, 98, 116, 0.18);
}

#roomProfileFrame .room-profile-button:hover {
  box-shadow:
    0 0 14px rgba(255, 100, 0, 0.55),
    0 0 30px rgba(255, 50, 0, 0.35),
    0 2px 8px rgba(51, 98, 116, 0.22);
}

#roomProfileFrame:has(.room-profile-button[hidden]) {
  display: none;
}

/* Profil butonu gizliyken (misafir) sag ustteki boslugu kapat, butonlar yeniden dizilsin */
body:not(.mobile-layout):not(.room-style-button) .room-head:has(#roomProfileButton[hidden]) {
  padding-right: 12px;
}
body:not(.mobile-layout):not(.room-style-button) .room-head:has(#roomProfileButton[hidden]) .room-meta {
  padding-right: 8px;
}

.room-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
  border: 1px solid #b92f3b;
  border-radius: 8px;
  background: linear-gradient(180deg, #f05b64 0%, #c93643 100%);
  color: #ffffff;
  padding: 0 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 3px 0 0 rgba(0, 0, 0, 0.25),
    0 5px 12px rgba(173, 35, 49, 0.35);
  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%);
  box-shadow:
    0 0 12px rgba(255, 80, 0, 0.6),
    0 0 28px rgba(255, 30, 0, 0.4),
    0 0 56px rgba(200, 0, 0, 0.18);
}

.room-logout-button .logout-icon {
  width: 16px;
  height: 16px;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.room-admin-button {
  min-width: 26px;
  min-height: 26px;
  border: 1px solid #2f8b7d;
  border-radius: 8px;
  background: linear-gradient(180deg, #65d4bf 0%, #249d91 100%);
  color: #ffffff;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 3px 0 0 rgba(0, 0, 0, 0.25),
    0 5px 12px rgba(37, 120, 112, 0.3);
}

.room-admin-button .admin-shield-icon {
  width: 16px;
  height: 16px;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.room-admin-button:hover {
  background: linear-gradient(180deg, #78dfcd 0%, #1d877d 100%);
  box-shadow:
    0 0 12px rgba(255, 100, 0, 0.55),
    0 0 28px rgba(255, 50, 0, 0.35),
    0 0 56px rgba(255, 20, 0, 0.15);
}

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

body.room-style-button:not(.mobile-layout) .room-head {
  position: relative;
  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) #roomProfileFrame {
  display: none;
}

body.room-style-button:not(.mobile-layout) .speaker-action-row {
  display: none;
}

body:not(.mobile-layout) .speaker-action-row {
  display: 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) 64px;
  gap: 8px;
}

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

.room-style-room-button {
  position: relative;
  overflow: visible;
  flex: 0 0 var(--room-style-button-basis, 128px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
  min-width: 0;
  height: var(--room-style-button-height, 64px);
  min-height: 0;
  border: 1px solid hsla(var(--room-tone, 188), 45%, 72%, 0.85);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, hsla(var(--room-tone, 188), 42%, 92%, 1) 48%, hsla(var(--room-tone, 188), 40%, 84%, 1) 100%);
  color: hsl(var(--room-tone, 188), 34%, 31%);
  padding: 5px 8px;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -3px 6px hsla(var(--room-tone, 188), 45%, 70%, 0.28),
    0 3px 6px rgba(47, 98, 116, 0.16),
    0 1px 2px rgba(47, 98, 116, 0.12);
  font-family: var(--font-main);
  cursor: pointer;
  transition: box-shadow 0.3s ease-in-out, background 0.3s ease-in-out, border-color 0.3s ease-in-out, transform 0.15s ease-in-out;
}

.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: 12px;
  font-weight: 900;
}

.room-style-room-button strong img {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

.rss-room-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, hsla(var(--room-tone, 188), 68%, 90%, 1) 0%, hsla(var(--room-tone, 188), 58%, 76%, 1) 100%);
  border: 2px solid hsla(var(--room-tone, 188), 46%, 62%, 0.9);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.7), inset 0 -3px 5px rgba(0, 0, 0, 0.18), 0 2px 5px rgba(0, 0, 0, 0.14);
}

.rss-room-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rss-room-avatar img.rss-room-avatar-fallback {
  object-fit: contain;
  padding: 7px;
}

.rss-room-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.rss-room-main strong {
  line-height: 1.15;
}

.rss-room-topic {
  font-size: 10px;
  font-weight: 600;
  color: hsl(var(--room-tone, 188), 30%, 38%);
  line-height: 1.2;
}

.rss-room-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  border: 1px solid hsla(var(--room-tone, 188), 42%, 64%, 0.4);
  border-radius: 999px;
  background: hsla(var(--room-tone, 188), 70%, 97%, 0.35);
  color: hsl(var(--room-tone, 188), 34%, 34%);
  padding: 0 6px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.5;
}

.room-style-room-button .inline-smile,
.room-style-room-button .inline-animaticon {
  width: auto;
  height: 12px;
  max-width: none;
  max-height: 12px;
  border-radius: 3px;
  vertical-align: middle;
}

.rss-room-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 0;
  color: hsl(var(--room-tone, 188), 34%, 34%);
}

.rss-users-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.85;
}

.rss-room-count {
  min-width: 20px;
  text-align: center;
  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: 0 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.room-style-room-button.active {
  border-color: hsl(var(--room-tone, 188), 58%, 44%);
  background: linear-gradient(180deg, hsla(var(--room-tone, 188), 60%, 88%, 1) 0%, hsla(var(--room-tone, 188), 55%, 79%, 1) 100%);
  box-shadow:
    inset 4px 0 0 hsl(var(--room-tone, 188), 60%, 46%),
    inset 0 2px 6px hsla(var(--room-tone, 188), 52%, 60%, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.75),
    0 0 0 2px hsla(var(--room-tone, 188), 60%, 52%, 0.32),
    0 4px 14px hsla(var(--room-tone, 188), 55%, 55%, 0.35);
  transform: translateY(1px);
}

.room-style-room-button.active strong {
  color: hsl(var(--room-tone, 188), 52%, 28%);
}

.room-style-room-button.active .rss-room-status {
  border-color: hsl(var(--room-tone, 188), 62%, 40%);
  background: linear-gradient(180deg, hsl(var(--room-tone, 188), 64%, 46%), hsl(var(--room-tone, 188), 60%, 38%));
  color: #ffffff;
  box-shadow: 0 1px 4px hsla(var(--room-tone, 188), 55%, 40%, 0.5);
}

.room-style-room-button:hover {
  background: linear-gradient(180deg, #ffffff 0%, hsla(var(--room-tone, 188), 44%, 90%, 1) 100%);
  border-color: hsla(var(--room-tone, 188), 45%, 62%, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -3px 6px hsla(var(--room-tone, 188), 45%, 68%, 0.24),
    0 5px 12px rgba(47, 98, 116, 0.22),
    0 2px 4px rgba(47, 98, 116, 0.15);
  transform: translateY(-1px);
}

.rss-star {
  position: absolute;
  width: 22px;
  height: auto;
  color: #d49a22;
  fill: currentColor;
  filter: drop-shadow(0 0 5px rgba(212, 154, 34, 0.4));
  z-index: 2;
  pointer-events: none;
  transition: all 0.9s cubic-bezier(0.05, 0.83, 0.43, 0.96);
  opacity: 0;
}
.rss-star-1 { top: 50%; left: 50%; width: 20px; margin: -10px 0 0 -10px; transition-duration: 0.9s; }
.rss-star-2 { top: 50%; left: 50%; width: 12px; margin: -6px 0 0 -6px; transition-duration: 1.0s; }
.rss-star-3 { top: 50%; left: 50%; width: 6px; margin: -3px 0 0 -3px; transition-duration: 1.1s; }
.rss-star-4 { top: 50%; left: 50%; width: 8px; margin: -4px 0 0 -4px; transition-duration: 0.8s; }
.rss-star-5 { top: 50%; left: 50%; width: 14px; margin: -7px 0 0 -7px; transition-duration: 0.7s; }
.rss-star-6 { top: 50%; left: 50%; width: 5px; margin: -2.5px 0 0 -2.5px; transition-duration: 0.9s; }

.room-style-room-button:hover .rss-star {
  opacity: 1;
  color: #c4881a;
  filter: drop-shadow(0 0 16px rgba(255, 200, 50, 0.95));
}
.room-style-room-button:hover .rss-star-1 { top: 12%; left: 12%; width: 18px; margin: 0; }
.room-style-room-button:hover .rss-star-2 { top: 12%; right: 12%; left: auto; width: 11px; margin: 0; }
.room-style-room-button:hover .rss-star-3 { bottom: 12%; left: 12%; top: auto; width: 6px; margin: 0; }
.room-style-room-button:hover .rss-star-4 { bottom: 12%; right: 12%; top: auto; left: auto; width: 8px; margin: 0; }
.room-style-room-button:hover .rss-star-5 { top: 4%; left: 50%; width: 9px; margin: 0 0 0 -4.5px; }
.room-style-room-button:hover .rss-star-6 { bottom: 4%; left: 50%; top: auto; width: 5px; margin: 0 0 0 -2.5px; }

.fil0 { fill: currentColor; }

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

body.room-style-button:not(.mobile-layout) .room-button-style-rooms.compact-room-buttons .room-style-room-button strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  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 .rss-room-avatar,
body.room-style-button:not(.mobile-layout) .room-button-style-rooms.compact-room-buttons .room-style-room-button .rss-room-topic,
body.room-style-button:not(.mobile-layout) .room-button-style-rooms.compact-room-buttons .room-style-room-button .rss-room-status,
body.room-style-button:not(.mobile-layout) .room-button-style-rooms.compact-room-buttons .room-style-room-button .rss-room-meta,
body.room-style-button:not(.mobile-layout) .room-button-style-rooms.compact-room-buttons .room-style-room-button .room-new-ribbon {
  display: none;
}

body.room-style-button:not(.mobile-layout) .room-button-style-rooms.compact-room-buttons .room-style-room-button .rss-room-main {
  display: block;
  min-width: 0;
}

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

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

body.room-style-button:not(.mobile-layout) .room-button-style-rooms:not(.compact-room-buttons) .room-style-room-button.room-button-slim .rss-room-avatar {
  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 {
  position: relative;
  display: flex;
  flex-direction: column;
  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-profile-button {
  flex: 0 1 38px;
  width: 38px;
  height: 38px;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  align-self: center;
  border-radius: 50%;
}

body.room-style-button:not(.mobile-layout) .room-button-style-actions .room-profile-button[data-initials] {
  font-size: 15px;
}

body.room-style-button:not(.mobile-layout) .room-button-style-actions .room-style-head-logout {
  display: none;
  flex: 0 1 36px;
  width: 100%;
  height: 36px;
  min-width: 0;
  min-height: 0;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 12px;
}

body.room-style-button:not(.mobile-layout) .room-button-style-actions:has(.room-profile-button[hidden]) .room-style-head-logout {
  display: inline-flex;
}

body.room-style-button:not(.mobile-layout) .room-button-style-actions .room-style-head-logout .logout-icon {
  width: 20px;
  height: 20px;
}

body.room-style-button:not(.mobile-layout) .room-button-style-actions .room-style-menu-button {
  position: relative;
  flex: 1 1 26px;
  width: 38px;
  height: auto;
  min-width: 0;
  min-height: 26px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2f8b7d;
  border-radius: 8px;
  background: linear-gradient(180deg, #65d4bf 0%, #249d91 100%);
  color: #ffffff;
  padding: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 3px 0 0 rgba(0, 0, 0, 0.25),
    0 5px 12px rgba(37, 120, 112, 0.3);
}

body.room-style-button:not(.mobile-layout) .room-button-style-actions .room-style-menu-button b {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #d84848;
  color: #ffffff;
  font: 800 9px/16px var(--client-font);
  text-align: center;
  padding: 0 3px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
}

.room-style-popup-menu button .room-style-menu-notification-count {
  margin-left: auto;
  flex: none;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d84848;
  color: #ffffff;
  font: 800 10px/18px var(--client-font);
  text-align: center;
  padding: 0 5px;
  box-sizing: border-box;
}

body.room-style-button:not(.mobile-layout) .room-button-style-actions .room-style-menu-button:hover {
  background: linear-gradient(180deg, #78dfcd 0%, #1d877d 100%);
  box-shadow:
    0 0 12px rgba(255, 100, 0, 0.55),
    0 0 28px rgba(255, 50, 0, 0.35),
    0 0 56px rgba(255, 20, 0, 0.15);
}

.room-style-popup-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 200;
  min-width: 224px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 180px);
  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;
  animation: fadeIn 150ms ease both;
}

.room-style-menu-owner {
  margin: 2px 4px 7px;
  border-bottom: 1px solid rgba(47, 139, 125, 0.25);
  color: #23606c;
  padding: 0 4px 7px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-style-popup-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;
}

.room-style-popup-menu button:hover {
  border-color: #2f7d79;
  background: linear-gradient(180deg, #3faaa3 0%, #2f7d79 100%);
  color: #ffffff;
}

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

.room-switching {
  transition: opacity 180ms ease;
}

.room-switching.room-switching-out {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .room-switching,
  .room-switching.room-switching-out {
    transition: none;
  }
}

.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: 8px;
  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;
}

.meta-pill.user-count {
  min-width: 36px;
  justify-content: center;
  overflow: hidden;
}

.count-digit {
  display: inline-block;
  min-width: 1.2em;
  text-align: center;
}

.meta-pill.count-up .count-digit {
  animation: countUp 500ms cubic-bezier(0.2,0.8,0.2,1);
}

.meta-pill.count-down .count-digit {
  animation: countDown 500ms cubic-bezier(0.2,0.8,0.2,1);
}

@keyframes countUp {
  from { transform: translateY(1.2em); }
  to   { transform: translateY(0); }
}

@keyframes countDown {
  from { transform: translateY(-1.2em); }
  to   { transform: translateY(0); }
}

.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;
}

.media-panel.profile-flow-active {
  padding-top: 4px;
  padding-bottom: 4px;
}

.media-panel.profile-flow-active .media-actions {
  min-height: 24px;
}

.media-profile-flow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  animation: profileTopSlideIn 320ms ease both;
}

.media-profile-flow.profile-top-flow-opening {
  animation: profileTopSlideIn 360ms ease both;
}

.media-profile-flow.profile-top-flow-closing {
  animation: profileTopSlideOut 280ms ease both;
}

.media-profile-flow[hidden] {
  display: none !important;
}

.media-profile-flow .profile-top-card {
  flex: 1 1 0;
  max-width: 190px;
  min-width: 138px;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 7px 2px 2px;
}

.media-profile-flow .profile-top-avatar,
.media-profile-flow .profile-top-avatar .user-avatar {
  width: 24px;
  height: 24px;
}

.media-profile-flow .profile-top-copy {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
}

.media-profile-flow .profile-top-copy strong {
  font-size: 11px;
  line-height: 1;
}

.media-profile-flow .profile-top-copy span {
  min-height: 16px;
  max-width: 70px;
  padding: 2px 6px;
  font-size: 8.5px;
  line-height: 1;
}

.media-profile-flow .profile-message-band-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-height: 30px;
  border: 1px solid rgba(var(--role-border-rgb, 100, 190, 210), 0.55);
  border: 1px solid rgba(124, 190, 207, 0.65);
  border-radius: 12px;
  background:
    radial-gradient(circle at 34px 50%, rgba(255, 255, 255, 0.92), transparent 38px),
    linear-gradient(105deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(230, 250, 252, 0.92) 45%,
      rgba(220, 244, 255, 0.88) 100%),
    var(--role-card-bg, rgba(255, 255, 255, 0.84));
  box-shadow:
    0 2px 0 rgba(84, 158, 179, 0.15),
    0 8px 18px rgba(35, 94, 116, 0.18),
    0 18px 34px rgba(56, 116, 138, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(93, 168, 187, 0.14);
  padding: 2px 10px 2px 2px;
  overflow: hidden;
  position: relative;
}

.media-profile-flow .profile-message-band-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.44) 46%, transparent 76%);
  opacity: 0.62;
  pointer-events: none;
}

.media-profile-flow .profile-message-band-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.media-profile-flow .profile-message-band-head {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.media-profile-flow .profile-message-band-head strong {
  max-width: 120px;
  color: var(--message-band-nick-color, #1f6f86);
  font-family: "Arial Black", var(--client-font), sans-serif;
  font-size: 12px;
  font-weight: 900 !important;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
  -webkit-text-stroke: 0.2px currentColor;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78), 0 1px 6px rgba(38, 91, 110, 0.18);
}

.media-profile-flow .profile-message-band-head span {
  max-width: 72px;
  min-height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: var(--role-badge-bg, linear-gradient(135deg, #86efac 0%, #4ade80 100%));
  box-shadow:
    0 1px 4px var(--role-badge-shadow, rgba(74, 222, 128, 0.25)),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: var(--role-badge-fg, #14532d);
  padding: 0 6px 1px;
  font-size: 10px;
  line-height: 12px;
  height: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.media-profile-flow .profile-message-band-copy p {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  margin: 0;
  color: #31545f;
  font: 400 12px/1.05 var(--client-font);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.media-profile-flow .profile-message-band-copy .inline-smile {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
  vertical-align: middle;
}

.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-toggle img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.audio-settings-icon {
  width: 21px;
  height: 21px;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.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;
}

.mod-call-button {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: #e67e22;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.mod-call-button:hover {
  border-color: #e67e22;
  background: linear-gradient(180deg, #fef9e7 0%, #fdebd0 100%);
  color: #ca6f1e;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.16);
  transform: translateY(-1px);
}
.mod-call-button:active {
  transform: translateY(0);
}

/* ── AI Assistant Button ───────────────────────────────────────── */
.ai-assistant-button {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--accent-strong);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.ai-assistant-button:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface) 0%, var(--accent-soft) 100%);
  color: var(--accent-strong);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 22%, transparent);
  transform: translateY(-1px);
}
.ai-assistant-button:active { transform: translateY(0); }

/* ── AI Assistant Panel ────────────────────────────────────────── */
.ai-assistant-panel {
  position: fixed;
  z-index: 120;
  width: min(340px, 92vw);
  height: min(480px, 70vh);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow), inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent);
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.34,1.56,0.64,1);
}
.ai-assistant-panel.ai-assistant-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.ai-assistant-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.ai-assistant-icon { color: var(--accent-strong); display: flex; align-items: center; }
.ai-assistant-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.ai-assistant-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  padding: 2px 5px;
  border-radius: 6px;
  line-height: 1;
  transition: background 150ms, color 150ms;
}
.ai-assistant-close:hover { background: var(--accent-soft); color: var(--accent-strong); }
.ai-assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.ai-assistant-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  text-align: center;
}
.ai-assistant-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-strong) 32%, transparent);
}
.ai-assistant-welcome p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.ai-msg {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  animation: aiMsgIn 200ms ease both;
}
.ai-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg-bot {
  align-self: flex-start;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}
.ai-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-strong);
  animation: aiTypingDot 1.2s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}
@keyframes aiMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ai-assistant-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.ai-assistant-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 150ms;
}
.ai-assistant-input:focus { border-color: var(--accent); }
.ai-assistant-send {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 150ms, transform 150ms;
}
.ai-assistant-send:hover { opacity: 0.88; transform: scale(1.05); }
.ai-assistant-send:active { transform: scale(0.97); }
.audio-settings-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 8px;
  z-index: 35;
  width: min(360px, 90vw);
  border: 1px solid #b8d1da;
  border-radius: 12px;
  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;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.audio-settings-popover.panel-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.audio-settings-popover .audio-source-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: start;
}

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

.audio-settings-popover .audio-source-controls label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted, #6b7a80);
  margin: 0;
  padding: 0;
}

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

.audio-settings-popover .personal-style-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0 0 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.audio-settings-popover .personal-style-controls label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted, #6b7a80);
  min-width: 0;
  margin: 0;
  padding: 0;
}

.audio-settings-popover .personal-style-controls label span {
  white-space: nowrap;
  font-weight: 600;
  font-size: 11px;
}

.audio-settings-popover .personal-style-controls select {
  width: 100%;
  min-width: 0;
  height: 34px;
  font-size: 12px;
  padding: 4px 6px;
}

.audio-settings-popover .audio-test-popover-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 32px;
  border: 1px solid rgba(47, 125, 121, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, #f6fffd 0%, #e1f3ef 100%);
  color: #1f625d;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.audio-settings-popover .audio-test-popover-button:hover {
  border-color: #2f7d79;
  background: linear-gradient(180deg, #e1f3ef 0%, #c5e8e4 100%);
  box-shadow: 0 2px 8px rgba(47, 125, 121, 0.15);
}

@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;
  isolation: isolate;
  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;
  background-attachment: fixed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 12px 32px -6px rgba(42, 70, 82, 0.2), inset 0 -6px 20px -8px rgba(42, 70, 82, 0.08);
  font-family: var(--font-main);
}

body[data-client-theme="default"] #messages.room-bg-blur::before {
  content: "";
  position: fixed;
  top: var(--room-bg-blur-top, 0);
  left: var(--room-bg-blur-left, 0);
  width: var(--room-bg-blur-width, 0);
  height: var(--room-bg-blur-height, 0);
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(241, 247, 249, 0.32);
}

body[data-client-theme="default"] .side #usersList.room-bg-blur::before {
  content: "";
  position: fixed;
  top: var(--room-bg-blur-top, 0);
  left: var(--room-bg-blur-left, 0);
  width: var(--room-bg-blur-width, 0);
  height: var(--room-bg-blur-height, 0);
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(241, 247, 249, 0.32);
}

.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: 12px;
  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: 12px;
  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 {
  position: relative;
  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 var(--msg-border, #c7e2d1);
  border-radius: 12px;
  background: var(--msg-bg);
  box-shadow: 0 3px 14px rgba(42, 70, 82, 0.06);
  padding: 6px 11px 6px 7px;
}

.message.mine {
  align-self: flex-start;
  grid-template-columns: 30px minmax(0, 1fr);
  border-color: var(--msg-border-mine, #ecd0dc);
  background: var(--msg-bg-mine);
  padding: 6px 11px 6px 7px;
}

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

.message.mine .message-body {
  order: 0;
  text-align: left;
}

body:not(.message-style-flat):not(.message-style-inline):not(.message-style-compact) .message.modcall-message {
  --msg-bg: linear-gradient(135deg, #fff3e0, #ffe8cc);
  --msg-border: #ffb74d;
  animation: modcall-pulse 1.5s ease-in-out infinite;
}
body[data-client-theme="night"] .message.modcall-message {
  --msg-bg: linear-gradient(135deg, rgba(60,30,0,0.3), rgba(80,40,0,0.2));
  --msg-border: #e65100;
  animation: modcall-pulse-night 1.5s ease-in-out infinite;
}
@keyframes modcall-pulse {
  0%, 100% { border-color: #ffb74d; box-shadow: 0 0 6px rgba(255,183,77,0.3); }
  50% { border-color: #ff9800; box-shadow: 0 0 16px rgba(255,152,0,0.6); }
}
@keyframes modcall-pulse-night {
  0%, 100% { border-color: #e65100; box-shadow: 0 0 6px rgba(230,81,0,0.3); }
  50% { border-color: #ff6d00; box-shadow: 0 0 16px rgba(255,109,0,0.5); }
}

.message.modcall-message .room-link {
  color: #7c3aed;
  font-weight: 700;
}
.message.modcall-message .inline-smile,
.message.modcall-message .inline-animaticon {
  height: 22px;
  width: auto;
  border-radius: 4px;
  vertical-align: middle;
}

.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 6px rgba(38, 143, 154, 0.2),
    0 2px 6px rgba(24, 68, 84, 0.14),
    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: transparent;
  color: transparent;
}

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

.room-link {
  color: #2f7d79;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  border-bottom: 1px dashed rgba(47,125,121,0.3);
  transition: color 150ms ease, border-color 150ms ease;
}
.room-link:hover {
  color: #e67e22;
  border-color: #e67e22;
}

.message-body {
  min-width: 0;
  transform: none;
}

body:not(.message-style-inline) .message-body,
body:not(.message-style-inline) .private-message-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

body:not(.message-style-inline) .message-body > span,
body:not(.message-style-inline) .private-message-body > span {
  min-width: 0;
  flex: 1 1 auto;
}

.message:not(.mine) .message-body {
  transform: none;
}

.message-nick {
  display: block;
  width: 100%;
  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;
}

.message .message-bg,
.private-message .message-bg {
  display: inline;
  padding: 1px 4px 2px;
  border-radius: 4px;
  background: var(--message-bg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

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;
  align-items: start;
  max-width: none;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 3px 6px 3px 0;
}

body.message-style-inline .message-body,
body.message-style-inline .private-message-body {
  margin-top: 5px;
}

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;
  transform: none;
}

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

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

body.message-style-flat .message,
body.message-style-flat .message.mine,
body.message-style-flat .private-message,
body.message-style-flat .private-message.mine {
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.message-style-compact .message,
body.message-style-compact .message.mine,
body.message-style-compact .private-message,
body.message-style-compact .private-message.mine {
  display: flex;
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  padding: 1px 0;
  gap: 0;
  grid-template-columns: none;
  align-self: flex-start;
}

body.message-style-compact .message-avatar,
body.message-style-compact .private-message .message-avatar {
  display: none;
}

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

body.message-style-compact .message-body,
body.message-style-compact .private-message-body {
  display: block;
  position: relative;
  padding-right: 42px;
  margin-top: 0;
}

body.message-style-compact .message .message-time,
body.message-style-compact .private-message .message-time {
  position: absolute;
  right: 0;
  top: 0;
  margin-left: 0;
}

body.message-style-compact .messages,
body.message-style-compact .private-messages {
  gap: 1px;
}

body.message-style-compact .message.mine .message-body,
body.message-style-compact .private-message.mine .private-message-body {
  text-align: left;
}

body:not(.message-style-inline) .nick-colon {
  display: none;
}

body.message-style-compact .nick-colon {
  display: inline;
}

/* ── Nick Inline Style ── */
body.personal-nick-style #usersList .list-item.user-row {
  grid-template-columns: 18px minmax(0,1fr) max-content !important;
  min-height: 28px !important;
  height: 28px !important;
  max-height: 28px !important;
  padding: 2px 4px !important;
  border-radius: 999px !important;
  align-items: center;
}

body.personal-nick-style #usersList .user-avatar-wrap {
  width: 18px;
  height: 18px;
  align-self: center;
}

body.personal-nick-style #usersList .user-avatar {
  width: 18px !important;
  height: 18px !important;
  font-size: 9px !important;
  line-height: 18px !important;
  flex: 0 0 18px !important;
  box-shadow: none !important;
}

body.personal-nick-style #usersList .user-avatar.has-photo {
  width: 18px !important;
  height: 18px !important;
}

body.personal-nick-style #usersList .user-avatar.has-photo img {
  width: 100% !important;
  height: 100% !important;
}

body.personal-nick-style #usersList .user-main {
  height: 18px !important;
  grid-template-rows: 18px !important;
  row-gap: 0;
  align-content: center;
}

body.personal-nick-style #usersList .user-main .user-nick {
  font-size: 11px !important;
  line-height: 18px !important;
  height: 18px !important;
}

body.personal-nick-style #usersList .user-main .user-role-badge {
  display: none !important;
}

body.personal-nick-style #usersList .user-avatar-wrap::after {
  width: 7px;
  height: 7px;
  bottom: -1px;
  right: -1px;
}

body.personal-nick-style #usersList .user-avatar-wrap .avatar-status-dot {
  width: 5px;
  height: 5px;
  bottom: 0;
  right: 0;
}

body.personal-nick-style #usersList .user-actions {
  height: 18px !important;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2px;
  overflow: visible !important;
}

body.personal-nick-style #usersList .voice-bars {
  height: 18px !important;
  align-items: flex-end;
  min-width: 0 !important;
}

body.personal-nick-style #usersList .user-row.has-animnick {
  grid-template-columns: 18px minmax(0,1fr) max-content !important;
  background: inherit !important;
  border-color: inherit !important;
}
body.personal-nick-style #usersList .user-row.has-animnick .user-avatar-wrap,
body.personal-nick-style #usersList .user-row.has-animnick .user-main {
  display: flex !important;
}
body.personal-nick-style #usersList .user-row.has-animnick .user-animnick-wrap {
  display: none !important;
}

body.personal-nick-style #usersList .camera-watch,
body.personal-nick-style #usersList .camera-icon-button {
  width: 18px !important;
  height: 18px !important;
}
body.personal-nick-style #usersList .camera-watch img {
  max-width: 16px;
  max-height: 16px;
}

body.personal-nick-style #usersList .list-item.user-row.speaking {
  min-height: 28px !important;
  height: 28px !important;
  max-height: 28px !important;
}
body.personal-nick-style #usersList .list-item.user-row.current-speaker-user,
body.personal-nick-style #currentSpeakerPin .list-item.user-row.current-speaker-user {
  min-height: 28px !important;
  height: 28px !important;
  max-height: 28px !important;
  margin-bottom: 2px !important;
}
body.personal-nick-style #usersList .list-item.user-row.current-speaker-user::before,
body.personal-nick-style #currentSpeakerPin .list-item.user-row.current-speaker-user::before {
  inset: -3px -6px -3px -3px;
  border-radius: 0;
}
body.personal-nick-style #usersList .list-item.user-row.queued-user {
  min-height: 28px !important;
  height: 28px !important;
  max-height: 28px !important;
}

/* Night theme nick inline */
body[data-client-theme="night"].personal-nick-style #usersList .list-item.user-row,
body[data-client-theme="darkwood"].personal-nick-style #usersList .list-item.user-row {
  grid-template-columns: 18px minmax(0,1fr) max-content !important;
  height: 28px !important;
  max-height: 28px !important;
}

/* Mobile nick inline */
body.mobile-layout.personal-nick-style #usersList .list-item.user-row {
  grid-template-columns: 22px minmax(0,1fr) max-content !important;
  min-height: 28px !important;
  height: 28px !important;
  max-height: 28px !important;
}

body.mobile-layout.personal-nick-style #usersList .user-avatar-wrap {
  width: 22px;
  height: 22px;
}

body.mobile-layout.personal-nick-style #usersList .user-avatar-wrap .user-avatar.has-photo {
  width: 22px !important;
  height: 22px !important;
}

.message .user-role-icon {
  display: inline-grid;
  flex: 0 0 12px;
  place-items: center;
  width: 12px;
  height: 12px;
  color: var(--role-icon-color);
  font-size: 10px;
  line-height: 1;
  margin-left: 2px;
  vertical-align: baseline;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 4px rgba(31, 52, 61, 0.18);
}

.message-time {
  display: none;
}

body:not(.message-style-inline) .message .message-time,
body:not(.message-style-inline) .private-message .message-time {
  display: inline;
  position: relative;
  top: -2px;
  font-size: 8px;
  color: var(--text-soft, #7a8f96);
  white-space: nowrap;
  line-height: 1;
  pointer-events: none;
  margin-left: auto;
  flex-shrink: 0;
  align-self: baseline;
}

body.message-style-inline .message .message-time,
body.message-style-inline .private-message .message-time {
  display: block;
  font-size: 8px;
  line-height: 1;
  color: var(--text-soft, #7a8f96);
  white-space: nowrap;
  margin-left: 3px;
  flex-shrink: 0;
  align-self: baseline;
  position: relative;
  top: -3px;
}

.private-message .user-role-icon {
  display: inline-grid;
  flex: 0 0 12px;
  place-items: center;
  width: 12px;
  height: 12px;
  color: var(--role-icon-color);
  font-size: 10px;
  line-height: 1;
  margin-left: 2px;
  vertical-align: baseline;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 4px rgba(31, 52, 61, 0.18);
}

.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: 12px;
  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;
}

.broadcast-message.server-broadcast {
  border-color: #7ab8d0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(224, 244, 252, 0.94)),
    #e0f4fc;
  color: #1a5068;
  box-shadow: 0 12px 28px rgba(20, 90, 120, 0.16);
}
.broadcast-message.server-broadcast strong {
  color: #1a7a9a;
}
.broadcast-message.server-broadcast .server-broadcast-text {
  color: #0a3a50;
  font-weight: 700;
}

.broadcast-media-panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  top: max(92px, env(safe-area-inset-top));
  z-index: 1200;
  display: grid;
  gap: 10px;
  width: min(320px, 94%);
  max-height: min(70vh, 520px);
  overflow: auto;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(232, 244, 255, 0.98));
  color: #173b62;
  padding: 12px;
  box-shadow: 0 14px 32px rgba(24, 77, 132, 0.18);
}

body.mobile-layout .broadcast-media-panel {
  right: 10px;
  top: max(74px, env(safe-area-inset-top));
  width: min(340px, calc(100vw - 20px));
}

.broadcast-media-panel header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.broadcast-media-panel header strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #11518e;
  font-size: 13px;
  font-weight: 900;
}

.broadcast-media-panel header span {
  color: #54708d;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.broadcast-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #54708d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 150ms ease, color 150ms ease;
}

.broadcast-close-btn:hover {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}

.broadcast-media-stage {
  display: grid;
  place-items: center;
  min-height: 86px;
  border-radius: 12px;
  background: #0f2237;
  overflow: hidden;
}

.broadcast-media-stage video,
.broadcast-media-stage iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #0f2237;
}

.broadcast-media-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #214d78;
  font-size: 12px;
  font-weight: 900;
}

.broadcast-media-panel.live-broadcast {
  border-color: rgba(220, 38, 38, 0.44);
  box-shadow:
    0 14px 32px rgba(24, 77, 132, 0.18),
    0 0 0 3px rgba(220, 38, 38, 0.08);
}

.broadcast-media-panel.live-broadcast header strong {
  color: #b91c1c;
}

.broadcast-rec-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.72);
  animation: broadcastRecPulse 1s ease-in-out infinite;
}

.broadcast-media-panel.link-broadcast .broadcast-rec-dot {
  display: none;
}

.broadcast-live-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px 12px;
  margin: 8px 0 4px;
  background: linear-gradient(135deg, rgba(220,38,38,0.06), rgba(220,38,38,0.02));
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.broadcast-live-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #dc2626, #ef4444);
  background-size: 200% 100%;
  animation: broadcastLiveBar 2s linear infinite;
}

@keyframes broadcastLiveBar {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.broadcast-live-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.broadcast-rec-dot-large {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.72);
  animation: broadcastRecPulse 1s ease-in-out infinite;
}

.broadcast-live-tag {
  font-size: 13px;
  font-weight: 900;
  color: #b91c1c;
  letter-spacing: 1px;
}

.broadcast-live-duration {
  margin-left: auto;
  font-size: 20px;
  font-weight: 900;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  background: rgba(0,0,0,0.04);
  padding: 2px 8px;
  border-radius: 4px;
}

.broadcast-live-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  min-height: 56px;
}

.broadcast-audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 44px;
}

.broadcast-audio-bars span {
  width: 8px;
  border-radius: 99px;
  background: linear-gradient(to top, #b91c1c, #ef4444);
  animation: broadcastLiveBarAnim 0.65s ease-in-out infinite alternate;
}

.broadcast-audio-bars span:nth-child(1) { height: 18px; animation-delay: 0s; }
.broadcast-audio-bars span:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.broadcast-audio-bars span:nth-child(3) { height: 44px; animation-delay: 0.2s; }
.broadcast-audio-bars span:nth-child(4) { height: 26px; animation-delay: 0.15s; }
.broadcast-audio-bars span:nth-child(5) { height: 14px; animation-delay: 0.05s; }

@keyframes broadcastLiveBarAnim {
  0% { opacity: 0.5; transform: scaleY(0.6); }
  100% { opacity: 1; transform: scaleY(1); }
}

.broadcast-video-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #b91c1c;
}

.broadcast-video-icon-cam {
  display: inline-block;
  width: 28px;
  height: 20px;
  border: 2px solid #dc2626;
  border-radius: 4px;
  position: relative;
  background: rgba(220,38,38,0.06);
}

.broadcast-video-icon-cam::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 2px;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 8px solid #dc2626;
}

.broadcast-live-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.broadcast-live-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.broadcast-live-mode-badge {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #dc2626;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.broadcast-live-stats {
  display: flex;
  gap: 16px;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.broadcast-live-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.broadcast-stat-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  position: relative;
}

.broadcast-stat-icon-viewer {
  background: #3b82f6;
}

.broadcast-stat-icon-viewer::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 8px; height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px #fff;
}

.broadcast-stat-icon-viewer::after {
  content: '';
  position: absolute;
  bottom: 1px; left: 2px;
  width: 10px; height: 6px;
  border-radius: 999px 999px 0 0;
  box-shadow: 0 0 0 1px #fff;
}

.broadcast-stat-icon-signal {
  background: #22c55e;
}

.broadcast-stat-icon-signal::before,
.broadcast-stat-icon-signal::after {
  content: '';
  position: absolute;
  border: 1px solid #fff;
  border-left: 0;
  border-bottom: 0;
}

.broadcast-stat-icon-signal::before {
  top: 2px; left: 3px;
  width: 6px; height: 6px;
  border-radius: 0 6px 0 0;
}

.broadcast-stat-icon-signal::after {
  top: 2px; left: 6px;
  width: 3px; height: 3px;
  border-radius: 0 3px 0 0;
}

.broadcast-stat-label {
  color: #94a3b8;
}

.broadcast-end-btn {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
}

.broadcast-end-btn:hover {
  background: #b91c1c !important;
}

.broadcast-speaker-icon {
  position: relative;
  width: 24px;
  height: 18px;
  flex: 0 0 24px;
}

.broadcast-speaker-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 8px;
  border-radius: 2px;
  background: #2563eb;
  box-shadow: 7px -4px 0 1px #2563eb;
}

.broadcast-speaker-icon::after {
  content: "";
  position: absolute;
  right: 0;
  top: 2px;
  width: 12px;
  height: 12px;
  border: 2px solid #38bdf8;
  border-left: 0;
  border-radius: 0 14px 14px 0;
  animation: broadcastSpeakerPulse 0.9s ease-in-out infinite;
}

.broadcast-audio-visual {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  min-height: 86px;
}

.broadcast-audio-visual span {
  width: 8px;
  height: 24px;
  border-radius: 99px;
  background: #7dd3fc;
  animation: broadcastAudioBar 0.8s ease-in-out infinite;
}

.broadcast-audio-visual span:nth-child(2) {
  animation-delay: 0.12s;
}

.broadcast-audio-visual span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes broadcastSpeakerPulse {
  0%, 100% { opacity: 0.35; transform: scaleX(0.82); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes broadcastRecPulse {
  0%, 49% {
    opacity: 1;
    transform: scale(1);
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.72), 0 0 14px 4px rgba(239, 68, 68, 0.5);
  }
  50%, 100% {
    opacity: 0.15;
    transform: scale(0.7);
    background: #991b1b;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@keyframes broadcastAudioBar {
  0%, 100% { height: 18px; }
  50% { height: 52px; }
}

.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;
}

.system-event.room-created .system-icon {
  color: #4a9eff;
}

.system-event.room-created .room-name {
  font-weight: 700;
  color: #1a6dce;
}

.system-event.room-created .room-creator {
  font-weight: 700;
  color: #4ad1a0;
}

.system-event.room-deleted .system-icon {
  color: #e8874a;
}

.system-event.room-deleted .room-name {
  font-weight: 700;
  color: #b85a1a;
}

.system-event.room-deleted .room-creator {
  font-weight: 700;
  color: #e8874a;
}

.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(455px, calc(100vw - 28px));
  height: min(340px, calc(100vh - 28px));
  min-width: 330px;
  min-height: 285px;
  border: 1px solid #9fc8d0;
  border-radius: 12px;
  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;
  font-family: var(--font-main);
}

body:has(.admin-dashboard-overlay) .private-window {
  z-index: 30001;
}

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

@keyframes pvt-open {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pvt-close {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.3); }
}
.private-window.pvt-opening {
  animation: pvt-open 0.2s ease-out forwards;
  transform-origin: center center;
}
.private-window.pvt-closing {
  animation: pvt-close 0.15s ease-in forwards;
  pointer-events: none;
  transform-origin: center center;
}

.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;
  z-index: 21000;
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr) 24px;
  min-width: 560px;
  min-height: 260px;
  border: 1px solid #9fc8d0;
  border-radius: 12px;
  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;
  animation: panelSlideIn 200ms cubic-bezier(0.34, 1.56, 0.64, 1) 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: 12px;
  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;
}

.room-watch-window {
  min-width: 360px;
  min-height: 320px;
}

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

.room-watch-window .admin-window-statusbar {
  display: none;
}

.admin-room-watch {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  background: #f8fcfd;
}

.admin-room-watch-head {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid #d6e8ec;
  background: linear-gradient(180deg, #ffffff 0%, #eef8fa 100%);
  padding: 10px 12px;
}

.admin-room-watch-head strong {
  color: #225f6b;
  font-size: 14px;
  font-weight: 900;
}

.admin-room-watch-head span {
  color: #6a8189;
  font-size: 12px;
  font-weight: 800;
}

.admin-room-watch-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px;
}

.admin-room-watch-empty {
  margin: auto;
  color: #7b8f96;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.admin-room-watch-message {
  border: 1px solid #d3e5ea;
  border-radius: 12px;
  background: #ffffff;
  padding: 8px 10px;
  box-shadow: 0 4px 10px rgba(40, 82, 92, 0.06);
}

.admin-room-watch-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.admin-room-watch-meta strong {
  min-width: 0;
  overflow: hidden;
  color: #1f6975;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-room-watch-meta span {
  flex: 0 0 auto;
  color: #8da0a7;
  font-size: 11px;
  font-weight: 800;
}

.admin-room-watch-text {
  color: #2f464e;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-room-watch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #d6e8ec;
  background: linear-gradient(180deg, #f6fbfc 0%, #edf6f8 100%);
  padding: 8px 10px;
}

.admin-room-watch-footer span {
  color: #6c848c;
  font-size: 11px;
  font-weight: 900;
}

.admin-room-watch-footer [data-admin-room-watch-close] {
  display: none;
}

.admin-room-watch-footer button {
  min-height: 30px;
  border: 1px solid #b8d5dc;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #e7f1f4 100%);
  color: #2e6b75;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-room-watch-footer button:hover {
  border-color: #8db9c2;
  background: linear-gradient(180deg, #ffffff 0%, #d9edf1 100%);
}

.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-support-site { background: #e8f0fe; border: 1px solid #b3d4fc; }
.admin-support-whatsapp { background: #e6f7e6; border: 1px solid #b7e4b7; }
.admin-support-email { background: #f0e8ff; border: 1px solid #d4b3fc; }
.admin-support-phone { background: #fff3e0; border: 1px solid #ffd699; }

.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;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 10px 14px;
  min-width: 0;
}

.admin-window-toolbar span {
  margin-right: auto;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.admin-online-count {
  margin-right: 0 !important;
  background: #10b981;
  color: #fff !important;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

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

.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);
  flex-shrink: 1;
  min-width: 0;
}

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

.admin-search-field input {
  width: min(260px, 28vw);
  min-width: 0;
  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-online-action-btn {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  color: inherit;
  font-size: 15px; line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.admin-online-action-btn:hover {
  background: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.5);
}
.admin-online-action-cell {   text-align: center;
}

.admin-window-toolbar button {
  min-height: 30px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #374151;
  padding: 0 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}
.admin-window-toolbar button:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.admin-window-toolbar button.upgrade-button {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 700;
  padding: 0 14px;
}
.admin-window-toolbar button.upgrade-button:hover {
  background: #fde68a;
  border-color: #d97706;
}
.toolbar-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.toolbar-sep {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
  margin: 0 4px;
}
.site-plan-label {
  font-size: 12px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 12px;
  white-space: nowrap;
}
.site-plan-label strong {
  color: #1b515a;
}
.site-info-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.site-info-tag {
  font-size: 12px;
  color: #4c636d;
  background: #eef6f8;
  border: 1px solid #d0e2e6;
  border-radius: 7px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-info-tag .tag-label {
  color: #6a8e94;
  white-space: nowrap;
}
.site-info-tag strong {
  color: #1b515a;
}
.site-usage-line {
  font-size: 13px;
  color: #4c636d;
  padding: 6px 0 0;
  border-top: 1px dashed #d8e8ed;
  margin-top: 6px;
}
.site-settings-plan-limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  padding: 10px 0 4px;
  font-size: 12px;
  color: #4c636d;
}
.plan-limit-item strong {
  color: #1b515a;
}
.site-rent-tag .tag-label {
  color: #6f8b93;
}
.site-rent-end-tag strong {
  color: #d35400;
}

/* ===== Admin Dashboard ===== */
.admin-dashboard-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dashboardFadeIn 0.2s ease;
}

@keyframes dashboardFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.admin-dashboard-panel {
  display: flex;
  flex-direction: column;
  width: 92vw;
  max-width: 1200px;
  height: 88vh;
  max-height: 800px;
  background: #f5fafc;
  border: 1px solid #b4d3db;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(20, 50, 60, 0.3);
  overflow: hidden;
  animation: dashboardSlideIn 0.25s ease;
}

@keyframes dashboardSlideIn {
  from { transform: scale(0.95) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.admin-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 20px;
  height: 44px;
  background: linear-gradient(180deg, #1b3a44, #0e2830);
  color: #fff;
  border-bottom: 1px solid #0b1f26;
  flex-shrink: 0;
}

.admin-dashboard-header strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.admin-dash-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-dash-header-left .admin-dash-logo-img,
.admin-dash-header-left .admin-dash-logo-fallback {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.admin-dash-header-left .admin-dash-logo-fallback {
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.admin-dashboard-footer .admin-dash-logo-img,
.admin-dashboard-footer .admin-dash-logo-fallback {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.admin-dashboard-footer .admin-dash-logo-fallback {
  display: inline-grid;
  place-items: center;
  background: #c8dae0;
  color: #4a6c78;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.admin-dashboard-close {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.admin-dashboard-close:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

.admin-dashboard-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.admin-dashboard-sidebar {
  flex: 0 0 200px;
  background: #edf5f8;
  border-right: 1px solid #d0e0e5;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(69, 147, 166, 0.35) transparent;
}
.admin-dashboard-sidebar::-webkit-scrollbar {
  width: 5px;
}
.admin-dashboard-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.admin-dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(69, 147, 166, 0.35);
  border-radius: 999px;
}
.admin-dashboard-sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(69, 147, 166, 0.55);
}

.admin-dashboard-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #d0e0e5;
  background: rgba(0,0,0,0.02);
}

.admin-dashboard-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-dashboard-profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1d7a8c;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.admin-dashboard-profile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-dashboard-profile-name {
  font-size: 14px;
  font-weight: 700;
  color: #1d4855;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard-profile-role {
  font-size: 11px;
  color: #5f8593;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

.admin-dashboard-sidebar > [data-dashboard-action] {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #1d4855;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #1d4855;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}

.admin-dashboard-sidebar > [data-dashboard-action]:hover {
  background: rgba(0,0,0,0.04);
}

.admin-dashboard-sidebar > [data-dashboard-action].active {
  background: #d4e6ec;
  color: #0b2e38;
  font-weight: 700;
  border-left: 3px solid #1d7a8c;
}

.admin-dashboard-sidebar button span,
.admin-dashboard-sidebar > [data-dashboard-action] span {
  font-size: 16px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.admin-dashboard-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fbfeff;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.admin-dashboard-content .admin-window-toolbar {
  flex-shrink: 0;
}

.admin-dashboard-content .admin-table-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-dashboard-content .admin-user-manager,
.admin-dashboard-content .admin-room-manager,
.admin-dashboard-content .admin-complaint-layout,
.admin-dashboard-content .admin-user-form {
  flex: 1;
  min-height: 0;
}

.admin-dashboard-content .admin-room-picker-list {
  max-height: none;
}

.admin-dashboard-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 8px;
  color: #6e8f9a;
  padding: 40px;
  text-align: center;
}

.admin-dashboard-welcome-logo {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 12px;
}

.admin-dashboard-welcome-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d7a8c, #2aa0b3);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.admin-dashboard-welcome-brand {
  display: inline-flex;
  transition: opacity 0.15s;
}

.admin-dashboard-welcome-brand:hover {
  opacity: 0.8;
}

.admin-dashboard-welcome strong {
  font-size: 20px;
  font-weight: 700;
  color: #2a5a68;
}

.admin-dashboard-welcome span {
  font-size: 14px;
  max-width: 360px;
  line-height: 1.5;
}

.admin-dashboard-content > .admin-window-body {
  display: contents;
}

.admin-dashboard-content > .admin-window-body > * {
  flex: 1;
  min-height: 0;
}

.admin-dashboard-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 11px;
  color: #6e8f9a;
  background: #e4f0f4;
  border-top: 1px solid #d0e0e5;
  flex-shrink: 0;
}

.admin-dashboard-footer a {
  color: #1d7a8c;
  text-decoration: none;
  font-weight: 600;
}

.admin-dashboard-footer a:hover {
  text-decoration: underline;
}

.admin-dashboard-footer-sep {
  color: #b4cdd4;
}

[data-admin-window="upgrade-plan"] {
  width: min(680px, calc(100vw - 28px));
  height: min(560px, calc(100svh - 80px));
  min-height: 380px;
}
[data-admin-window="upgrade-plan"] .admin-window-body {
  overflow-y: auto;
}
[data-admin-window="upgrade-plan"] .admin-window-body > div {
  min-height: 0;
}
.upgrade-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 16px 0;
}
.upgrade-plan-card {
  background: #fff;
  border: 2px solid #d0e2e6;
  border-radius: 14px;
  padding: 0;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
.upgrade-plan-card.current-plan {
  border-color: #6aaf5c;
  box-shadow: 0 0 0 1px #6aaf5c, 0 4px 16px rgba(106,175,92,0.15);
}
.upgrade-plan-head {
  background: linear-gradient(180deg, #eef6f8, #dceef0);
  padding: 16px 14px 12px;
  border-bottom: 1px solid #d0e2e6;
}
.upgrade-plan-card.current-plan .upgrade-plan-head {
  background: linear-gradient(180deg, #e8f5e0, #d4ecc9);
  border-bottom-color: #b5dba8;
}
.upgrade-plan-head strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #0b3c45;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.upgrade-plan-price {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: #b45309;
  padding: 6px 0 2px;
}
.upgrade-plan-price small {
  font-size: 13px;
  font-weight: 500;
  color: #8a6b4e;
}
.upgrade-plan-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 12px;
  background: #6aaf5c;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.upgrade-plan-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.upgrade-plan-meta {
  font-size: 12px;
  color: #6a8e94;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #d8e8ed;
  line-height: 1.5;
}
.upgrade-plan-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  flex: 1;
}
.upgrade-plan-feature {
  font-size: 12px;
  color: #1b515a;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.upgrade-plan-feature .feat-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d9edf0;
  color: #0e6d7a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.upgrade-plan-feature.common {
  color: #2c5f1a;
  border-top: 1px solid #d8e8ed;
  margin-top: 4px;
  padding-top: 8px;
}
.upgrade-plan-feature.common .feat-icon {
  background: #d0e6c5;
  color: #3a7a2a;
}
.upgrade-plan-card button.primary {
  width: 100%;
  padding: 11px 10px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  margin-top: auto;
  border: 1px solid #c9852a;
  background: linear-gradient(180deg, #f59e2e 0%, #d9831a 100%);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(200, 120, 20, 0.25);
  letter-spacing: 0.3px;
}
.upgrade-plan-card button.primary:hover {
  background: linear-gradient(180deg, #faaa3e 0%, #e88d20 100%);
  box-shadow: 0 3px 10px rgba(200, 120, 20, 0.35);
}
.upgrade-plan-card button.primary:active {
  transform: scale(0.97);
}
.upgrade-plan-card button.primary:disabled {
  background: #a0b4b8;
  border-color: #90a4a8;
  color: #d8e4e6;
  cursor: not-allowed;
  box-shadow: none;
}
.upgrade-plan-message {
  padding: 8px 0;
  text-align: center;
}
.upgrade-plan-message .success {
  color: #3a8a2a;
  font-weight: 600;
}
.upgrade-plan-message .error {
  color: #c0392b;
  font-weight: 600;
}

.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: 160px;
  font-family: Consolas, "Segoe UI", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.admin-data-table .fingerprint-cell:hover {
  text-decoration: underline dotted;
}

.admin-multi-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 2px 3px 2px 0;
  border: 1px solid #d8e5ea;
  border-radius: 999px;
  background: #f5fafb;
  color: #6e848d;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-multi-badge.warn {
  border-color: #f0d39a;
  background: #fff6e5;
  color: #9b681d;
}

.admin-multi-badge.danger {
  border-color: #efb8c1;
  background: #fff0f3;
  color: #b9434d;
}

.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 {
  table-layout: fixed;
  width: 100%;
}
.audit-data-table th,
.audit-data-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audit-data-table th:nth-child(1) { width: 12%; }
.audit-data-table th:nth-child(2) { width: 12%; }
.audit-data-table th:nth-child(3) { width: 12%; }
.audit-data-table th:nth-child(4) { width: 16%; }
.audit-data-table th:nth-child(5) { width: 18%; }
.audit-data-table th:nth-child(6) { width: 30%; }

.audit-detail-cell {
  overflow-wrap: normal;
}

.admin-room-manager {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  background: #ffffff;
  position: relative;
}
.admin-room-manager .admin-room-form {
  display: none;
}
.admin-room-manager.editing .admin-room-picker {
  visibility: hidden;
}
.admin-room-manager.editing .admin-room-form {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: inherit;
  overflow-y: auto;
}

.admin-user-manager {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  background: #ffffff;
  position: relative;
}
.admin-user-manager .admin-user-form {
  display: none;
}
.admin-user-manager.editing .admin-user-list-wrap {
  visibility: hidden;
}
.admin-user-manager.editing .admin-user-form {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: inherit;
  overflow-y: auto;
}

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

.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 minmax(0, 1fr);
  min-height: 0;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow: hidden;
}

.admin-room-picker-head {
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #334155;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.admin-room-filter {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 12px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.admin-room-filter input {
  width: 100%;
  min-height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #1e293b;
  padding: 0 10px;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.15s;
}

.admin-room-filter input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

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

.admin-room-row-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-room-create-form {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 12px;
}

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

.admin-room-create-form button {
  min-height: 32px;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  background: #3b82f6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s;
}

.admin-room-create-form button:hover {
  background: #2563eb;
}

/* Oda oluştur modal */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 22000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.admin-modal {
  width: 360px;
  max-width: calc(100vw - 32px);
  border: 1px solid #c8dde4;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
}

.admin-modal-close {
  border: none;
  background: none;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.12s;
}

.admin-modal-close:hover {
  color: #c0392b;
}

/* ===== Profile Modal (Premium Design) ===== */
.pp-avatar-box:hover { transform: scale(1.02); }
.pp-photo.has-photo img { width: 100%; height: 100%; object-fit: contain; }
.pp-btn { transition: transform 0.2s, filter 0.2s; }
.pp-btn:hover { transform: translateY(-2px); filter: brightness(0.95); }
.pp-btn.del { background: #fee2e2; color: #ef4444; }
.pp-btn.add { background: #dcfce7; color: #22c55e; }
.pp-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #1e293b;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
}
.pp-check:hover { background: #fff; }
.pp-check input { width: 18px; height: 18px; accent-color: #6366f1; }
.pp-main {
  padding: 14px 28px;
  border-radius: 15px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
  font-size: 14px;
}
.pp-main:hover { transform: translateY(-3px); filter: brightness(1.1); }
.pp-main.save {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}
.pp-main.cancel { background: #f1f5f9; color: #64748b; }
.pp-main.outline { background: transparent; border: 1.5px solid #e2e8f0; color: #64748b; }

body[data-client-theme="night"] .admin-modal .pp-main.cancel {
  background: #1e293b;
  color: #94a3b8;
}
body[data-client-theme="night"] .admin-modal .pp-main.outline {
  border-color: #334155;
  color: #94a3b8;
}
body[data-client-theme="darkwood"] .admin-modal .pp-main.cancel {
  background: #332518;
  color: #b09880;
}
body[data-client-theme="darkwood"] .admin-modal .pp-main.outline {
  border-color: #4a3826;
  color: #b09880;
}
body[data-client-theme="night"] .admin-modal .pp-avatar-box {
  background: #0f172a;
  border-color: #334155;
}
body[data-client-theme="darkwood"] .admin-modal .pp-avatar-box {
  background: #1a120e;
  border-color: #4a3826;
}
body[data-client-theme="night"] .admin-modal .pp-check { color: #e2e8f0; }
body[data-client-theme="night"] .admin-modal .pp-check:hover { background: #1e293b; }
body[data-client-theme="darkwood"] .admin-modal .pp-check { color: #d0c0a8; }
body[data-client-theme="darkwood"] .admin-modal .pp-check:hover { background: #332518; }
body[data-client-theme="night"] .admin-modal input,
body[data-client-theme="night"] .admin-modal textarea {
  background: #1e293b;
  color: #e2e8f0;
}
body[data-client-theme="darkwood"] .admin-modal input,
body[data-client-theme="darkwood"] .admin-modal textarea {
  background: #1a120e;
  color: #e8dccc;
  border-color: #4a3826;
}
body[data-client-theme="night"] .admin-modal input:focus,
body[data-client-theme="night"] .admin-modal textarea:focus {
  background: #0f172a;
  border-color: #6366f1;
}
body[data-client-theme="darkwood"] .admin-modal input:focus,
body[data-client-theme="darkwood"] .admin-modal textarea:focus {
  background: #1a120e;
  border-color: #8a6540;
}

@media (max-width: 750px) {
  .admin-modal .pp-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-modal .pp-grid > div:first-child {
    max-width: 200px;
    margin: 0 auto;
  }
  .admin-modal .pp-settings,
  .admin-modal .pp-history {
    grid-template-columns: 1fr !important;
  }
  .admin-modal .pp-pass-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-modal .pp-footer {
    flex-direction: column;
    gap: 15px;
  }
}

.admin-modal-form {
  display: grid;
  gap: 10px;
  padding: 16px 14px 14px;
}

.admin-modal-form label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #375f69;
}

.admin-modal-form input {
  min-height: 32px;
  border: 1px solid #c8dde4;
  border-radius: 6px;
  background: #f8fcfd;
  color: #111;
  padding: 0 10px;
  font: 400 13px var(--client-font);
}

.admin-modal-form footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.admin-modal-form .admin-room-form-message {
  font-size: 12px;
  color: #c0392b;
  min-height: 0;
}

.admin-room-row {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid #e5ecf1;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdfe);
  color: #475569;
  padding: 7px 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(31, 52, 61, 0.06);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.admin-room-row strong {
  flex: 0 1 auto;
  min-width: 0;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-room-row span {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-room-row .admin-room-status-active {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.admin-room-row .admin-room-status-hidden {
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #a16207;
}

.admin-room-row .admin-room-status-archived {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.admin-room-row:hover {
  background: linear-gradient(180deg, #f0f7ff, #eaf4fb);
  border-color: #b9d8ec;
  box-shadow: 0 2px 6px rgba(31, 82, 110, 0.14);
}

.admin-room-row.active {
  background: linear-gradient(180deg, #e8f3ff, #dcecff);
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18), 0 2px 8px rgba(59, 130, 246, 0.18);
}

.admin-room-order-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.admin-room-order-actions button {
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe7ee;
  border-radius: 6px;
  background: #ffffff;
  color: #52616e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.admin-room-order-actions .admin-room-edit-btn {
  gap: 5px;
  width: auto;
  padding: 0 10px;
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.18);
}

.admin-room-order-actions .admin-room-edit-btn:hover {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.admin-room-order-actions .admin-room-edit-btn span {
  font-size: 11px;
  font-weight: 700;
}

.admin-room-order-actions button[data-admin-room-move] {
  width: 28px;
}

.admin-room-order-actions button[data-admin-room-move]:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #047857;
  box-shadow: 0 1px 4px rgba(4, 120, 87, 0.25);
}

.admin-room-order-actions button[data-direction="down"]:hover {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
  box-shadow: 0 1px 4px rgba(194, 65, 12, 0.22);
}

.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 fieldset {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.admin-room-form fieldset[data-category="general"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.admin-room-form fieldset[data-category="voice"] {
  border-color: #fed7aa;
  background: #fffbeb;
}

.admin-room-form fieldset[data-category="event"] {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.admin-room-form fieldset[data-category="ad"] {
  border-color: #fbcfe8;
  background: #fdf2f8;
}

.admin-room-form fieldset[data-category="appearance"] {
  border-color: #c4b5fd;
  background: #f5f3ff;
}

.admin-room-form fieldset[data-category="access"] {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.admin-room-form legend {
  font-weight: 700;
  font-size: 12px;
  color: #334155;
  padding: 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-room-form fieldset[data-category="general"] legend { color: #16a34a; }
.admin-room-form fieldset[data-category="voice"] legend { color: #ea580c; }
.admin-room-form fieldset[data-category="event"] legend { color: #0284c7; }
.admin-room-form fieldset[data-category="ad"] legend { color: #db2777; }
.admin-room-form fieldset[data-category="appearance"] legend { color: #7c3aed; }
.admin-room-form fieldset[data-category="access"] legend { color: #475569; }

.admin-room-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  grid-column: 1 / -1;
  padding: 2px 0 6px;
}

.admin-room-tab {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.admin-room-tab:hover {
  background: #e2e8f0;
}

.admin-room-tab.active {
  background: #334155;
  border-color: #334155;
  color: #ffffff;
}

.admin-room-tab.active[data-room-tab="general"] { background: #16a34a; border-color: #16a34a; }
.admin-room-tab.active[data-room-tab="voice"] { background: #ea580c; border-color: #ea580c; }
.admin-room-tab.active[data-room-tab="event"] { background: #0284c7; border-color: #0284c7; }
.admin-room-tab.active[data-room-tab="ad"] { background: #db2777; border-color: #db2777; }
.admin-room-tab.active[data-room-tab="appearance"] { background: #7c3aed; border-color: #7c3aed; }
.admin-room-tab.active[data-room-tab="gradient"] { background: #0d9488; border-color: #0d9488; }
.admin-room-tab.active[data-room-tab="access"] { background: #475569; border-color: #475569; }

.admin-room-tab.active[data-site-settings-tab="site-general"] { background: #16a34a; border-color: #16a34a; }
.admin-room-tab.active[data-site-settings-tab="site-room"] { background: #ea580c; border-color: #ea580c; }
.admin-room-tab.active[data-site-settings-tab="site-modules"] { background: #0284c7; border-color: #0284c7; }
.admin-room-tab.active[data-site-settings-tab="site-events"] { background: #7c3aed; border-color: #7c3aed; }
.admin-room-tab.active[data-site-settings-tab="site-bots"] { background: #db2777; border-color: #db2777; }
.admin-room-tab.active[data-site-settings-tab="site-tools"] { background: #0d9488; border-color: #0d9488; }

.admin-room-form fieldset.admin-room-panel-hidden {
  display: none;
}

.site-settings-form .site-settings-section.admin-room-panel-hidden {
  display: none;
}

body.mobile-layout .admin-room-tabs {
  display: none;
}

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

.admin-room-form label.admin-checkbox-label,
.admin-user-form label.admin-checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.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: 12px;
  background: #f6fbfa;
  color: #526d77;
  font-weight: 850;
}

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

/* ─── Room Background Image Grid ─────────────────────────────────── */
.room-bg-fieldset {
  border-color: #d1c4e9;
  background: linear-gradient(#f3e5f5, #fafbfc);
}

.room-bg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.room-bg-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.room-bg-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 2px dashed #c5b3d9;
  border-radius: 8px;
  overflow: hidden;
  background: #f5eef9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: default;
}

.room-bg-thumb:hover {
  border-color: #9c27b0;
  background: #ede7f6;
  box-shadow: 0 2px 12px rgba(156, 39, 176, 0.18);
}

.room-bg-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: roomBgThumbFadeIn 0.35s ease;
}

.room-bg-slot[data-category="roomprofile"] .room-bg-thumb-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

@keyframes roomBgThumbFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.room-bg-thumb-placeholder {
  font-size: 28px;
  color: #b39ddb;
  user-select: none;
  animation: roomBgPlaceholderPulse 2s ease-in-out infinite;
}

@keyframes roomBgPlaceholderPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.8;  transform: scale(1.1); }
}

.room-bg-delete-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(211, 47, 47, 0.85);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  z-index: 2;
}

.room-bg-thumb:hover .room-bg-delete-btn {
  opacity: 1;
  transform: scale(1);
}

.room-bg-delete-btn:hover {
  background: #c62828;
  transform: scale(1.15) !important;
}

.room-bg-label {
  font-size: 11px;
  color: #5e35b1;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.room-bg-select-btn {
  border: none;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  background: #7c4dff;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.room-bg-select-btn:hover {
  background: #651fff;
  transform: translateY(-1px);
}

.room-bg-slot-cleared .room-bg-thumb {
  animation: roomBgSlotShake 0.45s ease;
}

.room-bg-slot-selected .room-bg-thumb {
  animation: roomBgSlotPop 0.4s ease;
}

@keyframes roomBgSlotShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-4px); }
  40%      { transform: translateX(4px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(2px); }
}

@keyframes roomBgSlotPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.room-bg-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed #d8e6ec;
}

.room-bg-style-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #315f77;
}

.room-bg-style-select {
  padding: 5px 10px;
  border: 1px solid #a8c7d3;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff, #f3f9fb);
  color: #1d3c49;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(31, 78, 95, 0.12);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.room-bg-style-select:hover {
  border-color: #7fb3c4;
}

.room-bg-style-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.room-bg-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 6px;
  background: #43a047;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.room-bg-upload-label:hover {
  background: #388e3c;
  transform: translateY(-1px);
}

.room-bg-upload-label .room-bg-file-input {
  display: none;
}

.room-bg-upload-icon {
  font-size: 14px;
  font-weight: 700;
}

.room-bg-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: none;
  border-radius: 7px;
  background: linear-gradient(135deg, #1e88e5, #0d47a1);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(21, 101, 192, 0.3);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.room-bg-gallery-btn-icon {
  font-size: 14px;
  line-height: 1;
}

.room-bg-gallery-btn:hover {
  background: linear-gradient(135deg, #1565c0, #0b3a8f);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(21, 101, 192, 0.4);
}

/* ─── Room Background Gallery Modal ──────────────────────────────── */
.room-bg-gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 30000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.room-bg-gallery-overlay-active {
  opacity: 1;
}

.room-bg-gallery-modal {
  background: #fff;
  border-radius: 12px;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.room-bg-gallery-overlay-active .room-bg-gallery-modal {
  transform: translateY(0) scale(1);
}

.room-bg-gallery-full {
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
}

.room-bg-gallery-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 14px 0;
  border-bottom: 1px solid #e0e0e0;
}

.room-bg-gallery-tab {
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  background: #f0f0f0;
  color: #555;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.room-bg-gallery-tab:hover {
  background: #e0e0e0;
}

.room-bg-gallery-tab.active {
  background: #7c4dff;
  color: #fff;
}

.room-bg-slot-btns {
  display: flex;
  gap: 4px;
  align-items: center;
}

.room-bg-remove-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.room-bg-remove-btn:hover {
  background: #b71c1c;
  transform: scale(1.1);
}

.room-bg-gallery-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.room-bg-gallery-upload-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.room-bg-gallery-upload-btn .room-bg-gallery-file-input {
  display: none;
}

.room-bg-gallery-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-bg-gallery-maxsize {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.room-bg-gallery-upload-btn--uploading {
  pointer-events: none;
}

.room-bg-gallery-upload-btn--uploading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: roomBgSpin 0.8s linear infinite;
  flex-shrink: 0;
}

.room-bg-gallery-upload-btn--uploading .room-bg-gallery-upload-btn-icon {
  display: none;
}

.room-bg-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #7c4dff, #448aff);
  color: #fff;
}

.room-bg-gallery-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.room-bg-gallery-close {
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.room-bg-gallery-close:hover {
  background: rgba(255, 255, 255, 0.45);
}

.room-bg-gallery-body {
  padding: 14px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.room-bg-gallery-loading,
.room-bg-gallery-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 55px 20px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.room-bg-gallery-loading::before {
  content: "";
  width: 36px;
  height: 36px;
  border: 4px solid #e2e8f0;
  border-top-color: #7c4dff;
  border-radius: 50%;
  animation: roomBgSpin 0.8s linear infinite;
}

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

.room-bg-gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: default;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.room-bg-gallery-item:hover {
  border-color: #7c4dff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 77, 255, 0.25);
}

.room-bg-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.room-bg-gallery-body[data-gallery-category="roomprofile"] {
  grid-template-columns: repeat(auto-fill, 64px);
}

.room-bg-gallery-body[data-gallery-category="roomprofile"] .room-bg-gallery-item {
  width: 64px;
  height: 64px;
  aspect-ratio: auto;
}

.room-bg-gallery-body[data-gallery-category="roomprofile"] .room-bg-gallery-item img {
  object-fit: fill;
}

.room-bg-gallery-pick {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(67, 160, 71, 0.9);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-bg-gallery-item:hover .room-bg-gallery-pick {
  opacity: 1;
  transform: scale(1);
}

.room-bg-gallery-pick:hover {
  background: #2e7d32;
  transform: scale(1.12) !important;
}

.room-bg-gallery-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(211, 47, 47, 0.88);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-bg-gallery-item:hover .room-bg-gallery-delete-btn {
  opacity: 1;
  transform: scale(1);
}

.room-bg-gallery-delete-btn:hover {
  background: #b71c1c;
  transform: scale(1.12) !important;
}

.room-bg-gallery-item-removing {
  animation: roomBgGalleryItemRemove 0.4s ease forwards;
}

@keyframes roomBgGalleryItemRemove {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.5; transform: scale(0.85) rotate(-3deg); }
  100% { opacity: 0; transform: scale(0.3) rotate(-8deg); height: 0; margin: 0; padding: 0; }
}

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

.my-profile-window .admin-window-body {
  grid-template-rows: auto 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 {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px !important; overflow: auto;
  background: #fbfeff;
}
body[data-client-theme="night"] .my-profile-form {
  background: linear-gradient(180deg, rgba(16, 38, 48, 0.95), rgba(10, 26, 34, 0.96));
}

/* Header card */
.profile-header-card {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: linear-gradient(105deg, #fff1f6 0%, #ecf8df 36%, #e6f5ff 68%, #fff6c8 100%);
  border-radius: 20px; padding: 32px 20px 22px;
  position: relative; overflow: hidden;
  box-shadow: 0 6px 24px rgba(102,126,234,0.2);
}
body[data-client-theme="night"] .profile-header-card {
  background: linear-gradient(105deg, #2d1b3d 0%, #1a2d3d 36%, #1a3d2d 68%, #3d351a 100%);
}
.profile-header-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 40px;
  background: radial-gradient(ellipse 100% 25px at 20% 100%, rgba(255,255,255,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 100% 25px at 80% 100%, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.profile-avatar-wrap {
  position: relative; z-index: 1;
}
.profile-avatar-area {
  display: flex; align-items: center; gap: 12px; position: relative; z-index: 1;
}
.profile-avatar-badges {
  display: flex; flex-direction: column; gap: 6px;
}
.profile-badge {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 2px 8px;
  border-radius: 10px; font-size: 12px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: default;
}
.profile-badge-level {
  background: linear-gradient(135deg, #f6d365, #fda085);
  color: #5a3000; font-size: 14px;
}
.profile-badge-role {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
  color: #3a1a5e; font-size: 13px; text-transform: uppercase;
}
.profile-badge-likes {
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  color: #7a2040; font-size: 11px; gap: 2px;
}
.profile-badge-gifts {
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
  color: #1a3a5e; font-size: 11px; gap: 2px;
}
body[data-client-theme="night"] .profile-badge-level {
  background: linear-gradient(135deg, rgba(246,211,101,0.3), rgba(253,160,133,0.3));
  color: #f6d365;
}
body[data-client-theme="night"] .profile-badge-role {
  background: linear-gradient(135deg, rgba(161,140,209,0.3), rgba(251,194,235,0.3));
  color: #c2a6f0;
}
body[data-client-theme="night"] .profile-badge-likes {
  background: linear-gradient(135deg, rgba(255,154,158,0.3), rgba(254,207,239,0.3));
  color: #ff9a9e;
}
body[data-client-theme="night"] .profile-badge-gifts {
  background: linear-gradient(135deg, rgba(161,196,253,0.3), rgba(194,233,251,0.3));
  color: #a1c4fd;
}
body[data-client-theme="night"] .gifts-hover-popup {
  background: linear-gradient(135deg, rgba(20,35,45,0.95), rgba(15,28,38,0.95));
  border-color: rgba(100,199,187,0.2);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
body[data-client-theme="night"] .gifts-hover-popup .gift-popup-item { border-color: rgba(100,199,187,0.1); }
body[data-client-theme="night"] .gifts-hover-popup .gifts-popup-title { color: #a1c4fd; }
body[data-client-theme="night"] .gifts-hover-popup .gift-popup-name { color: #c0d8e0; }
body[data-client-theme="night"] .gifts-hover-popup .gift-popup-meta { color: #8aacb8; }
body[data-client-theme="night"] .gifts-hover-popup .gift-popup-price { color: #f0c040; }
body[data-client-theme="night"] .gifts-hover-popup .gift-popup-empty { color: #6f8f99; }
body[data-client-theme="night"] .gifts-hover-popup .gift-popup-loading { color: #6f8f99; }
body[data-client-theme="night"] .gifts-hover-popup .gift-popup-error { color: #e07070; }

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .gifts-hover-popup {
  background: linear-gradient(135deg, var(--surface, #fff) 0%, var(--surface-2, #f0f4f8) 100%);
  border-color: var(--line-strong, rgba(0,0,0,0.1));
  box-shadow: 0 12px 36px color-mix(in srgb, var(--accent, #4e9cc0) 18%, transparent);
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .gifts-hover-popup .gift-popup-item { border-color: var(--line, rgba(0,0,0,0.08)); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .gifts-hover-popup .gifts-popup-title { color: var(--accent-strong, #1a5f7a); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .gifts-hover-popup .gift-popup-name { color: var(--text, #2a3a4a); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .gifts-hover-popup .gift-popup-meta { color: var(--muted, #6f8791); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .gifts-hover-popup .gift-popup-price { color: var(--accent, #4e9cc0); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .gifts-hover-popup .gift-popup-empty { color: var(--muted, #6f8791); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .gifts-hover-popup .gift-popup-loading { color: var(--muted, #6f8791); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .gifts-hover-popup .gift-popup-error { color: #c44; }

.gifts-hover-popup {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,248,255,0.95));
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
  font-family: var(--client-font, sans-serif);
}
.gifts-popup-title { font-size: 12px; font-weight: 700; color: #5a3a7a; margin-bottom: 8px; }
.gift-popup-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.gift-popup-item + .gift-popup-item { border-top: 1px solid rgba(0,0,0,0.06); }
.gift-popup-icon { font-size: 20px; }
.gift-popup-info { flex: 1; min-width: 0; }
.gift-popup-name { font-size: 12px; font-weight: 600; color: #3a4a5a; }
.gift-popup-meta { font-size: 10px; color: #888; }
.gift-popup-price { font-size: 11px; font-weight: 600; color: #c89020; }
.gift-popup-empty, .gift-popup-loading { text-align: center; color: #999; font-size: 12px; padding: 10px; }
.gift-popup-loading { color: #888; }
.gift-popup-error { text-align: center; color: #c44; font-size: 12px; padding: 10px; }

/* --- Moderator Call Popup --- */
body[data-client-theme="night"] .mod-call-popup {
  background: linear-gradient(135deg, rgba(20,35,45,0.95), rgba(15,28,38,0.95));
  border-color: rgba(100,199,187,0.2);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
body[data-client-theme="night"] .mod-call-popup .mod-call-item { border-color: rgba(100,199,187,0.1); }
body[data-client-theme="night"] .mod-call-popup .mod-call-title { color: #a1c4fd; }
body[data-client-theme="night"] .mod-call-popup .mod-call-name { color: #c0d8e0; }
body[data-client-theme="night"] .mod-call-popup .mod-call-room { color: #8aacb8; }
body[data-client-theme="night"] .mod-call-popup .mod-call-empty { color: #6f8f99; }

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .mod-call-popup {
  background: linear-gradient(135deg, var(--surface, #fff) 0%, var(--surface-2, #f0f4f8) 100%);
  border-color: var(--line-strong, rgba(0,0,0,0.1));
  box-shadow: 0 12px 36px color-mix(in srgb, var(--accent, #4e9cc0) 18%, transparent);
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .mod-call-popup .mod-call-item { border-color: var(--line, rgba(0,0,0,0.08)); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .mod-call-popup .mod-call-title { color: var(--accent-strong, #1a5f7a); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .mod-call-popup .mod-call-name { color: var(--text, #2a3a4a); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .mod-call-popup .mod-call-room { color: var(--muted, #6f8791); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .mod-call-popup .mod-call-empty { color: var(--muted, #6f8791); }

.mod-call-popup {
  position: fixed;
  z-index: 99999;
  padding: 14px 16px;
  min-width: 220px;
  max-width: 300px;
  max-height: 280px;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,248,255,0.95));
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
  font-family: var(--client-font, sans-serif);
}
.mod-call-popup.mod-call-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mod-call-title {
  font-size: 12px;
  font-weight: 700;
  color: #5a3a7a;
  margin-bottom: 8px;
  padding-right: 4px;
}
.mod-call-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.mod-call-item:hover {
  background: rgba(100,199,187,0.08);
}
.mod-call-item + .mod-call-item {
  border-top: 1px solid rgba(0,0,0,0.06);
}
.mod-call-name {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: #3a4a5a;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mod-call-room {
  font-size: 10px;
  color: #888;
  white-space: nowrap;
}
.mod-call-empty {
  text-align: center;
  color: #999;
  font-size: 12px;
  padding: 10px;
}

.mod-call-popup::-webkit-scrollbar { width: 4px; }
.mod-call-popup::-webkit-scrollbar-track { background: transparent; }
.mod-call-popup::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
.mod-call-popup::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }
body[data-client-theme="night"] .mod-call-popup::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
body[data-client-theme="night"] .mod-call-popup::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

.gifts-hover-popup::-webkit-scrollbar { width: 4px; }
.gifts-hover-popup::-webkit-scrollbar-track { background: transparent; }
.gifts-hover-popup::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
.gifts-hover-popup::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }
body[data-client-theme="night"] .gifts-hover-popup::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
body[data-client-theme="night"] .gifts-hover-popup::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
.profile-stats-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  padding: 8px 0 0; position: relative; z-index: 1;
}
.profile-stat-item {
  font-size: 13px; font-weight: 600; color: #4a5a6a;
  background: rgba(255,255,255,0.5); padding: 4px 12px;
  border-radius: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
body[data-client-theme="night"] .profile-stat-item {
  color: #c0d8e0; background: rgba(255,255,255,0.08);
}
.profile-id-photo {
  width: 150px; height: 150px;
  border: 4px solid rgba(255,255,255,0.7);
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  color: #fff; font: 800 14px/1 var(--client-font); text-align: center;
}
.profile-id-photo.has-photo {
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2), 0 10px 40px rgba(0,0,0,0.2);
}
.profile-id-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.profile-avatar-actions { display: flex; gap: 8px; position: relative; z-index: 1; }
.pp-avatar-btn {
  min-height: 28px !important; padding: 4px 16px !important;
  font-size: 11px !important; font-weight: 700 !important;
  border: none !important; border-radius: 30px !important;
  cursor: pointer; transition: all 0.2s ease;
}
.pp-avatar-remove {
  color: #fff !important;
  background: rgba(220, 60, 60, 0.9) !important;
  box-shadow: 0 2px 6px rgba(220,60,60,0.3);
}
.pp-avatar-remove:hover {
  background: rgba(220, 60, 60, 1) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220,60,60,0.4);
}
.pp-avatar-upload {
  color: #fff !important;
  background: rgba(40, 150, 80, 0.9) !important;
  box-shadow: 0 2px 6px rgba(40,150,80,0.3);
}
.pp-avatar-upload:hover {
  background: rgba(40, 150, 80, 1) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40,150,80,0.4);
}
body[data-client-theme="night"] .pp-avatar-remove {
  background: rgba(255, 80, 80, 0.9);
  box-shadow: 0 2px 6px rgba(255,80,80,0.3);
}
body[data-client-theme="night"] .pp-avatar-remove:hover {
  background: rgba(255, 80, 80, 1);
  box-shadow: 0 4px 12px rgba(255,80,80,0.4);
}
body[data-client-theme="night"] .pp-avatar-upload {
  background: rgba(80, 200, 120, 0.9);
  box-shadow: 0 2px 6px rgba(80,200,120,0.3);
}
body[data-client-theme="night"] .pp-avatar-upload:hover {
  background: rgba(80, 200, 120, 1);
  box-shadow: 0 4px 12px rgba(80,200,120,0.4);
}
body[data-client-theme="darkwood"] .pp-avatar-remove {
  background: rgba(180, 60, 50, 0.9);
  box-shadow: 0 2px 6px rgba(180,60,50,0.3);
}
body[data-client-theme="darkwood"] .pp-avatar-remove:hover {
  background: rgba(200, 70, 55, 1);
  box-shadow: 0 4px 12px rgba(180,60,50,0.4);
}
body[data-client-theme="darkwood"] .pp-avatar-upload {
  background: rgba(100, 170, 80, 0.9);
  box-shadow: 0 2px 6px rgba(100,170,80,0.3);
}
body[data-client-theme="darkwood"] .pp-avatar-upload:hover {
  background: rgba(110, 190, 90, 1);
  box-shadow: 0 4px 12px rgba(100,170,80,0.4);
}

.profile-header-coin {
  display: flex; align-items: center; gap: 10px;
  margin-top: 4px; padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.1);
  position: relative; z-index: 1;
}
.ph-coin-value {
  font-size: 17px; font-weight: 700; color: #1a2634;
  display: inline-flex; align-items: center; gap: 4px;
}
body[data-client-theme="night"] .ph-coin-value {
  color: #e8fbfd;
}
.profile-header-coin .coin-center-btn {
  background: rgba(0,0,0,0.08);
  color: #1a2634; box-shadow: none;
}
.profile-header-coin .coin-center-btn:hover {
  background: rgba(0,0,0,0.14);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
body[data-client-theme="night"] .profile-header-coin .coin-center-btn {
  background: rgba(255,255,255,0.15);
  color: #e8fbfd;
}
body[data-client-theme="night"] .profile-header-coin .coin-center-btn:hover {
  background: rgba(255,255,255,0.25);
}
body[data-client-theme="darkwood"] .profile-header-coin .coin-center-btn {
  background: rgba(42, 31, 20, 0.78);
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .profile-header-coin .coin-center-btn:hover {
  background: rgba(74, 56, 38, 0.85);
}

/* Make cc-card style available in profile form */
.my-profile-form .cc-card-row {
  display: flex; gap: 10px;
}
body.mobile-layout .my-profile-form .cc-card-row {
  flex-direction: column;
}
.my-profile-form .cc-card {
  flex: 0 0 auto;
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 18px; padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}
.my-profile-form .cc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
body[data-client-theme="night"] .my-profile-form .cc-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
body[data-client-theme="night"] .my-profile-form .cc-card:hover {
  background: rgba(255,255,255,0.1);
}

.my-profile-form .cc-card-icon {
  width: 40px; height: 40px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.my-profile-form .cc-card-body { flex: 1; min-width: 0; }
.my-profile-form .cc-card-body h3 {
  font-size: 13px; font-weight: 700; color: #1a2634; margin: 0 0 6px;
}
body[data-client-theme="night"] .my-profile-form .cc-card-body h3 { color: #e8fbfd; }

.my-profile-form .cc-card-body input,
.my-profile-form .cc-card-body textarea {
  width: 100%; border-radius: 30px !important;
  border: 1px solid rgba(155,203,219,0.4) !important;
  background: rgba(255,255,255,0.5) !important;
  padding: 7px 12px !important;
  font: 500 12px/1.3 var(--client-font);
  color: #456b7a; transition: all 0.2s;
}
.my-profile-form .cc-card-body input:focus,
.my-profile-form .cc-card-body textarea:focus {
  background: rgba(255,255,255,0.85) !important;
  box-shadow: 0 0 0 2px rgba(102,126,234,0.3);
  outline: none; border-color: transparent !important;
}
body[data-client-theme="night"] .my-profile-form .cc-card-body input,
body[data-client-theme="night"] .my-profile-form .cc-card-body textarea {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(100,199,187,0.2) !important;
  color: #e8f8fa;
}
body[data-client-theme="night"] .my-profile-form .cc-card-body input:focus,
body[data-client-theme="night"] .my-profile-form .cc-card-body textarea:focus {
  background: rgba(255,255,255,0.12) !important;
  box-shadow: 0 0 0 2px rgba(102,126,234,0.3);
}

.my-profile-form .cc-card-body textarea {
  border-radius: 14px !important; min-height: 50px; resize: vertical;
}

/* Detail fields inside card */
.pp-detail-fields {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pp-detail-fields label {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 10px; font-weight: 600; color: #2b5f70; letter-spacing: 0.2px;
  flex: 1; min-width: 100px;
}
body[data-client-theme="night"] .pp-detail-fields label { color: #b5d9e0; }
.pp-detail-fields label input { min-width: 0; }

/* Privacy checkboxes */
.pp-privacy-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px;
}
.pp-check {
  display: flex !important; align-items: center; gap: 6px;
  min-height: 20px; margin: 0;
  font-size: 11px; font-weight: 600; color: #1a2634; line-height: 1.2;
}
body[data-client-theme="night"] .pp-check { color: #d9edf1; }
.pp-check input[type="checkbox"] {
  width: 14px !important; height: 14px !important;
  min-height: 0 !important; padding: 0 !important; flex: 0 0 auto;
  accent-color: #667eea;
}

.pp-privacy-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin-top: 10px;
}
.pp-privacy-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pp-privacy-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #1a2634;
  line-height: 1.15;
}
body[data-client-theme="night"] .pp-privacy-label { color: #d9edf1; }
.pp-privacy-label svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: #667eea;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body[data-client-theme="night"] .pp-privacy-label svg { stroke: #9bb4ff; }
.pp-select {
  width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(120, 140, 200, 0.4);
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff 0%, #eef2fb 100%) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center;
  color: #20324a;
  padding: 7px 30px 7px 10px;
  font: 800 11px var(--font-main);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.pp-select:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.18); }
body[data-client-theme="night"] .pp-select {
  background:
    linear-gradient(180deg, #1b2b36 0%, #16242e 100%) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aab' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center;
  border-color: rgba(120, 160, 200, 0.25);
  color: #dbe9f0;
}

body.mobile-layout .pp-privacy-grid { grid-template-columns: 1fr; }
body.mobile-layout .pp-privacy-selects { grid-template-columns: 1fr; }

/* Login info */
.pp-last-login {
  font-size: 11px; color: #3a5a6a; margin-bottom: 6px;
}
body[data-client-theme="night"] .pp-last-login { color: #b9d4da; }
.pp-last-login strong { color: #1a2634; font-weight: 700; }
body[data-client-theme="night"] .pp-last-login strong { color: #e8f8fa; }
.pp-last-login span { font-weight: 600; }

.pp-login-history > strong {
  display: block; font-size: 11px; font-weight: 700; color: #1a2634; margin-bottom: 6px;
}
body[data-client-theme="night"] .pp-login-history > strong { color: #e8f8fa; }
.pp-login-history ul {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 6px;
  list-style: none; margin: 0; padding: 0;
}
.pp-login-history li {
  display: flex; flex-direction: column; gap: 1px;
  border-radius: 10px; background: rgba(255,255,255,0.5);
  color: #3a5a6a; padding: 6px 10px; font-size: 10px; font-weight: 600;
  min-width: 0;
}
body[data-client-theme="night"] .pp-login-history li {
  background: rgba(9,25,32,0.68); color: #d9edf1;
}
.pp-login-history li span,
.pp-login-history li small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pp-login-history li small { color: #67808a; font-weight: 700; }
body[data-client-theme="night"] .pp-login-history li small { color: #8fb7bf; }
.pp-login-history li.current {
  border: 1px solid rgba(54,145,113,0.34);
  background: rgba(226,249,239,0.86); color: #1c5a45;
}
body[data-client-theme="night"] .pp-login-history li.current {
  border-color: rgba(100,199,149,0.3);
  background: rgba(16,63,49,0.66); color: #c8f3df;
}
.pp-login-history li.current small { color: #18714f; }
body[data-client-theme="night"] .pp-login-history li.current small { color: #90e7be; }

/* Password fields */
.pp-pw-field {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 11px; font-weight: 600; color: #2b5f70; margin-top: 6px;
}
body[data-client-theme="night"] .pp-pw-field { color: #b5d9e0; }
.pp-pw-field:first-of-type { margin-top: 0; }
.pp-pw-field input { width: 100%; }
.pp-pw-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 10px; padding: 3px 12px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #7c5cbf, #9b7bd4);
  color: #fff; font-size: 11px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(124,92,191,0.3);
  transition: all 0.2s ease; vertical-align: middle;
}
.pp-pw-toggle:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,92,191,0.4); }
body[data-client-theme="night"] .pp-pw-toggle {
  background: linear-gradient(135deg, rgba(124,92,191,0.6), rgba(155,123,212,0.6));
}
.pp-pw-fields { transition: all 0.25s ease; }

/* Actions */
.my-profile-form .profile-actions {
  flex: 0 0 auto;
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px;
  margin-top: 6px; padding: 16px 18px;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
body[data-client-theme="night"] .my-profile-form .profile-actions {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
}
.my-profile-form .profile-actions button {
  min-height: 38px; border-radius: 30px; font-weight: 700;
  padding: 0 24px; border: none; cursor: pointer;
  transition: all 0.2s ease; font-size: 12px;
}
.my-profile-form .profile-actions button.secondary {
  background: rgba(255,255,255,0.6);
  color: #173542; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.my-profile-form .profile-actions button.secondary:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.my-profile-form .profile-actions button.primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; box-shadow: 0 4px 14px rgba(102,126,234,0.25);
}
.my-profile-form .profile-actions button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102,126,234,0.35);
}
body[data-client-theme="night"] .my-profile-form .profile-actions button.secondary {
  background: rgba(255,255,255,0.08);
  color: #d4eef2;
}
body[data-client-theme="night"] .my-profile-form .profile-actions button.secondary:hover {
  background: rgba(255,255,255,0.14);
}
body[data-client-theme="night"] .my-profile-form .profile-actions button.primary {
  background: linear-gradient(135deg, #5a6fd6, #6a4a9a);
}
.my-profile-form [data-my-profile-message] {
  font-size: 13px; font-weight: 600;
}

/* Scrollbar */
.my-profile-form::-webkit-scrollbar { width: 5px; }
.my-profile-form::-webkit-scrollbar-track { background: transparent; }
.my-profile-form::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }
.my-profile-form::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }
body[data-client-theme="night"] .my-profile-form::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }
body[data-client-theme="darkwood"] .my-profile-form::-webkit-scrollbar-thumb { background: rgba(42, 31, 20, 0.42); }

/* ═══ DARKWOOD: PROFILIM ═══ */
body[data-client-theme="darkwood"] .my-profile-window .admin-window-body {
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
}
body[data-client-theme="darkwood"] .my-profile-window .admin-titlebar {
  border-bottom-color: #4a3826;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
  color: #e8dccc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body[data-client-theme="darkwood"] .my-profile-window .admin-titlebar strong {
  color: #e8dccc;
  text-shadow: 0 0 8px rgba(212, 160, 80, 0.18);
}
body[data-client-theme="darkwood"] .my-profile-window .admin-window-toolbar {
  border-bottom-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .my-profile-window .admin-window-toolbar span {
  color: #d0c0a8;
  text-shadow: 0 0 8px rgba(212, 160, 80, 0.12);
}
body[data-client-theme="darkwood"] .my-profile-window .admin-window-statusbar {
  border-top-color: #4a3826;
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
  color: #8a7560;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body[data-client-theme="darkwood"] .my-profile-form {
  background: linear-gradient(180deg, rgba(42, 31, 20, 0.95), rgba(26, 18, 14, 0.96));
}
body[data-client-theme="darkwood"] .profile-header-card {
  background: linear-gradient(105deg, #3d2e1e 0%, #2a1f14 36%, #332518 68%, #4a3826 100%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
body[data-client-theme="darkwood"] .profile-id-photo {
  border-color: rgba(212, 160, 80, 0.5);
  background: rgba(42, 31, 20, 0.5);
}
body[data-client-theme="darkwood"] .profile-id-photo.has-photo {
  border-color: rgba(212, 160, 80, 0.7);
  box-shadow: 0 0 0 3px rgba(212, 160, 80, 0.15), 0 10px 40px rgba(0, 0, 0, 0.25);
}
body[data-client-theme="darkwood"] .profile-header-coin {
  border-top-color: rgba(212, 160, 80, 0.2);
}
body[data-client-theme="darkwood"] .ph-coin-value {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .profile-stat-item {
  color: #b09880;
  background: rgba(42, 31, 20, 0.5);
}
body[data-client-theme="darkwood"] .pp-detail-fields label {
  color: #b09880;
}
body[data-client-theme="darkwood"] .pp-privacy-label {
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .pp-privacy-label svg {
  stroke: #d4a050;
}
body[data-client-theme="darkwood"] .pp-select {
  background:
    linear-gradient(180deg, #332518 0%, #2a1f14 100%) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b09880' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center;
  border-color: #4a3826;
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .pp-select:focus {
  border-color: #8a6540;
  box-shadow: 0 0 0 3px rgba(212, 160, 80, 0.18);
}
body[data-client-theme="darkwood"] .pp-last-login {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .pp-last-login strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .pp-login-history > strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .pp-login-history li {
  background: rgba(42, 31, 20, 0.6);
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .pp-login-history li small {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .pp-login-history li.current {
  border-color: rgba(129, 199, 132, 0.34);
}
body[data-client-theme="darkwood"] .pp-login-history li.current small {
  color: #81c784;
}
body[data-client-theme="darkwood"] .my-profile-form .cc-card {
  background: rgba(42, 31, 20, 0.5);
  border-color: rgba(90, 63, 36, 0.4);
}
body[data-client-theme="darkwood"] .my-profile-form .cc-card:hover {
  background: rgba(61, 46, 30, 0.6);
}
body[data-client-theme="darkwood"] .my-profile-form .cc-card-body h3 {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .my-profile-form .cc-card-body input,
body[data-client-theme="darkwood"] .my-profile-form .cc-card-body textarea {
  background: rgba(42, 31, 20, 0.6) !important;
  border-color: rgba(90, 63, 36, 0.4) !important;
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .my-profile-form .cc-card-body input:focus,
body[data-client-theme="darkwood"] .my-profile-form .cc-card-body textarea:focus {
  background: rgba(42, 31, 20, 0.75) !important;
  box-shadow: 0 0 0 2px rgba(212, 160, 80, 0.25);
}
body[data-client-theme="darkwood"] .my-profile-form .profile-actions {
  background: rgba(42, 31, 20, 0.4);
  border-color: #4a3826;
}
body[data-client-theme="darkwood"] .my-profile-form .profile-actions button.secondary {
  background: rgba(42, 31, 20, 0.7);
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .my-profile-form .profile-actions button.secondary:hover {
  background: rgba(74, 56, 38, 0.8);
}
body[data-client-theme="darkwood"] .my-profile-form .profile-actions button.primary {
  background: linear-gradient(135deg, #8a6540, #6d4f32);
  color: #1a120e;
}
body[data-client-theme="darkwood"] .my-profile-form::-webkit-scrollbar-thumb {
  background: rgba(42, 31, 20, 0.42);
}

/* ═══ ODALAR LİSTESİ SCROLLBAR (Tüm temalar) ═══ */
.side #roomsListContainer {
  scrollbar-width: thin;
  scrollbar-color: rgba(119, 163, 178, 0.32) transparent;
}
.side #roomsListContainer::-webkit-scrollbar {
  width: 4px;
}
.side #roomsListContainer::-webkit-scrollbar-track {
  background: transparent;
}
.side #roomsListContainer::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(119, 163, 178, 0.32);
}
.side #roomsListContainer:hover::-webkit-scrollbar-thumb {
  background: rgba(119, 163, 178, 0.5);
}
body[data-client-theme="night"] .side #roomsListContainer {
  scrollbar-color: rgba(100, 199, 187, 0.28) transparent;
}
body[data-client-theme="night"] .side #roomsListContainer::-webkit-scrollbar-thumb {
  background: rgba(100, 199, 187, 0.28);
}
body[data-client-theme="night"] .side #roomsListContainer:hover::-webkit-scrollbar-thumb {
  background: rgba(100, 199, 187, 0.45);
}
body[data-client-theme="darkwood"] .side #roomsListContainer {
  scrollbar-color: rgba(74, 56, 38, 0.5) transparent;
}
body[data-client-theme="darkwood"] .side #roomsListContainer::-webkit-scrollbar-thumb {
  background: rgba(74, 56, 38, 0.5);
}
body[data-client-theme="darkwood"] .side #roomsListContainer:hover::-webkit-scrollbar-thumb {
  background: rgba(106, 79, 50, 0.6);
}
body[data-client-theme="light"] .side #roomsListContainer {
  scrollbar-color: rgba(74, 156, 192, 0.28) transparent;
}
body[data-client-theme="light"] .side #roomsListContainer::-webkit-scrollbar-thumb {
  background: rgba(74, 156, 192, 0.28);
}
body[data-client-theme="light"] .side #roomsListContainer:hover::-webkit-scrollbar-thumb {
  background: rgba(74, 156, 192, 0.45);
}

/* Mobile */
body.mobile-layout .my-profile-form { padding: 14px !important; gap: 12px; }
body.mobile-layout .profile-id-photo { width: 110px; height: 110px; }
body.mobile-layout .profile-header-card { padding: 24px 14px 18px; }
body.mobile-layout .profile-badge { min-width: 30px; height: 30px; font-size: 11px; }
body.mobile-layout .profile-badge-level { font-size: 12px; }
body.mobile-layout .profile-avatar-area { gap: 8px; }
body.mobile-layout .profile-stats-row { gap: 8px; }
body.mobile-layout .profile-stat-item { font-size: 11px; padding: 3px 8px; }
body.mobile-layout .pp-detail-fields { flex-direction: column; }
body.mobile-layout .pp-detail-fields label { min-width: 0; }
body.mobile-layout .pp-privacy-grid { grid-template-columns: 1fr; }
body.mobile-layout .pp-login-history ul { grid-template-columns: 1fr; }
body.mobile-layout .my-profile-form .cc-card { padding: 14px; gap: 10px; }
body.mobile-layout .my-profile-form .cc-card-icon { width: 34px; height: 34px; font-size: 15px; }
body.mobile-layout .my-profile-form .profile-actions { padding: 12px 14px; gap: 8px; }
body.mobile-layout .my-profile-form .profile-actions button { min-height: 34px; padding: 0 16px; font-size: 11px; }

.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-gradient-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-room-gradient-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px 14px;
}

.admin-room-gradient-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.admin-room-gradient-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.admin-room-gradient-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
}

.admin-room-gradient-toggle:hover {
  background: #e2e8f0;
}

.admin-room-gradient-toggle input {
  width: 15px;
  min-height: 15px;
  margin: 0;
}

.admin-room-gradient-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-room-gradient-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #5a6b72;
}

.admin-room-gradient-row input[type="color"] {
  width: 100%;
  height: 36px;
  padding: 2px;
  border: 1px solid #d4e4ea;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.admin-room-gradient-row select {
  width: 100%;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #d4e4ea;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  color: #333;
}

body[data-client-theme="night"] .admin-room-gradient-item { background: #232a2f; border-color: #313b41; }
body[data-client-theme="night"] .admin-room-gradient-head { border-bottom-color: #313b41; }
body[data-client-theme="night"] .admin-room-gradient-title { color: #cdd8de; }
body[data-client-theme="night"] .admin-room-gradient-toggle { color: #c2cdd3; background: #2c353b; border-color: #3a444a; }
body[data-client-theme="night"] .admin-room-gradient-row label { color: #8a9aa3; }
body[data-client-theme="night"] .admin-room-gradient-row input[type="color"],
body[data-client-theme="night"] .admin-room-gradient-row select { background: #2a3035; border-color: #3a444a; color: #ccc; }

@media (max-width: 460px) {
  .admin-room-gradient-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-room-gradient-row label:last-child { grid-column: 1 / -1; }
}

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

.admin-room-form footer button,
.admin-user-form footer button {
  min-height: 34px;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s;
}

.admin-room-form .primary {
  border: 1px solid #3b82f6;
  background: #3b82f6;
  color: #ffffff;
}

.admin-room-form .primary:hover {
  background: #2563eb;
}

.admin-user-form .primary {
  border: 1px solid #1e293b;
  background: #1e293b;
  color: #ffffff;
}

.admin-user-form .primary:hover {
  background: #0f172a;
}

.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 #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.admin-room-form .secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.admin-room-form-message {
  min-height: 18px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

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

.admin-role-preview {
  display: grid;
  gap: 7px;
  border: 1px solid #cfe5df;
  border-radius: 12px;
  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;
}

.traffic-banner {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 10px;
  font-weight: 600;
}
.traffic-banner.traffic-ok {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 2px solid #66bb6a;
}
.traffic-banner.traffic-warning {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border: 2px solid #ffa726;
}
.traffic-banner.traffic-exceeded {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 2px solid #ef5350;
}
.traffic-banner-icon {
  font-size: 32px;
  line-height: 1;
}
.traffic-banner-body {
  flex: 1;
  min-width: 0;
}
.traffic-banner-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.traffic-ok .traffic-banner-title { color: #2e7d32; }
.traffic-warning .traffic-banner-title { color: #e65100; }
.traffic-exceeded .traffic-banner-title { color: #c62828; }
.traffic-banner-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.1);
  margin-bottom: 6px;
  overflow: hidden;
}
.traffic-banner-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}
.traffic-ok .traffic-banner-bar span { background: #43a047; }
.traffic-warning .traffic-banner-bar span { background: #fb8c00; }
.traffic-exceeded .traffic-banner-bar span { background: #e53935; }
.traffic-banner-meta {
  font-size: 13px;
  color: #555;
}
.traffic-banner-meta strong {
  color: #222;
}
.traffic-banner-alert {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}
.traffic-warning .traffic-banner-alert {
  background: #fff3e0;
  color: #e65100;
}
.traffic-exceeded .traffic-banner-alert {
  background: #ffebee;
  color: #c62828;
}

.site-settings-bot-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: linear-gradient(to right, transparent, #c0dce4, transparent);
  margin: 8px 0 4px;
}

.site-settings-form {
  font-family: Verdana, sans-serif;
}
.site-settings-form label {
  font-weight: 400;
}

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

.site-settings-section h3 {
  margin: 0 0 4px;
  color: #1a6b7a;
  font-size: 15px;
  font-weight: 700;
  border-left: 4px solid #2a9db3;
  padding-left: 10px;
  line-height: 1.4;
}

.static-field {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f0f6f8;
  border-radius: 6px;
  border: 1px solid #d8e8ec;
}

.static-field .field-label {
  color: #365b65;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.static-field .field-value {
  color: #1a6b7a;
  font-weight: 700;
  font-size: 16px;
}

.static-field .field-note {
  color: #8ba7af;
  font-size: 12px;
  margin-left: auto;
}

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

.site-settings-appearance-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

/* Site Ayarlari toolbar rozetleri */
.site-toolbar-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 6px;
}

.site-toolbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #e0f4f8 0%, #c8e8f0 100%);
  border: 1px solid #9ecfdb;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #2a6070;
  white-space: nowrap;
}

.site-toolbar-badge strong {
  font-size: 13px;
  font-weight: 900;
  color: #1a5060;
}

/* Section icon */
.section-icon {
  margin-right: 4px;
}

/* Ozellikler karti grid */
.site-settings-features-section {
  padding-bottom: 14px;
}

.site-features-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
  padding: 4px 0;
}
.site-features-checkboxes label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
  padding: 1px 0;
}
.site-features-checkboxes label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.site-features-checkboxes label:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}
  vertical-align: middle;
}

/* Site footer butonlari */
.site-settings-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 0 4px;
}

.site-settings-footer .primary {
  min-height: 36px;
  padding: 0 20px;
  border: 1px solid #1e8096;
  border-radius: 12px;
  background: linear-gradient(180deg, #2ab5ce 0%, #1a7d96 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.site-settings-footer .primary:hover {
  background: linear-gradient(180deg, #30c8e4 0%, #1e90ad 100%);
}

.site-settings-footer .secondary {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #b8cdd2;
  border-radius: 12px;
  background: linear-gradient(180deg, #f0f7f9 0%, #ddeef2 100%);
  color: #365b65;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.site-settings-footer .secondary:hover {
  background: linear-gradient(180deg, #e0f2f7 0%, #c8e4ec 100%);
}

/* Etkinlikler section - site info tag stili */
.site-settings-events-section .site-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.site-settings-events-section .event-chip {
  font-size: 12px;
  color: #4c636d;
  background: #eef6f8;
  border: 1px solid #d0e2e6;
  border-radius: 7px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}
.site-settings-events-section .event-chip::before {
  content: "\1F389";
  font-size: 13px;
  flex-shrink: 0;
}
.site-settings-events-section .muted {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #6a8e94;
  padding: 4px 0;
  font-style: italic;
}

body[data-client-theme="night"] .site-settings-events-section .event-chip {
  background: #142a33;
  border-color: rgba(100, 199, 187, 0.22);
  color: #b0d0db;
}
body[data-client-theme="night"] .site-settings-events-section .muted {
  color: #7da6b5;
}

/* Bot Ayarlari section */
.site-settings-bot-section {
  border-color: #b8a8e0;
  background: linear-gradient(160deg, #f5f0ff 0%, #ede5ff 100%);
}

.site-settings-bot-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #3a2070;
  border-left-color: #7c5cbf;
}

.site-settings-bot-section h3 .meta {
  font-size: 12px;
  font-weight: 600;
  color: #7c5cbf;
}

.site-settings-bot-section h3 .primary.small {
  margin-left: auto;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 8px;
  min-height: 28px;
}

.site-settings-bot-section h3 .muted {
  margin-left: auto;
  font-size: 12px;
  color: #8a7aaa;
}

/* Bot select row */
.site-bot-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.site-bot-select-label {
  flex: 0 1 320px;
}

.site-bot-select-label select {
  width: 100%;
  border: 1px solid #c8b8e8;
  border-radius: 8px;
  background: #fff;
  color: #2a1a50;
  font-size: 13px;
  padding: 7px 10px;
  font-family: inherit;
}

.site-bot-select-label select:focus {
  border-color: #7c5cbf;
  outline: none;
  box-shadow: 0 0 0 2px rgba(124, 92, 191, 0.2);
}

.site-bot-select-info {
  font-size: 12px;
  color: #8a7aaa;
}

.site-bot-empty-message {
  text-align: center;
  color: #8a7aaa;
  padding: 20px;
  font-size: 13px;
}

/* Editor panel */
.site-bot-editor {
  border: 1px solid #d0c0e8;
  border-radius: 10px;
  background: #faf8ff;
  overflow: hidden;
}

.site-bot-editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0eaff, #e8e0ff);
  border-bottom: 1px solid #d8c8f0;
}

.site-bot-editor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.site-bot-editor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-bot-editor-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7c5cbf, #9c7de0);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.site-bot-editor-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.site-bot-editor-name {
  font-size: 14px;
  font-weight: 700;
  color: #3a2070;
}

.site-bot-editor-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.mode-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.mode-welcome {
  background: #d4f0e0;
  color: #1a7050;
  border: 1px solid #a8dcc0;
}

.mode-chat {
  background: #dce8ff;
  color: #2a5090;
  border: 1px solid #b8ccf0;
}

.mode-default {
  background: #e8e0f0;
  color: #6a5a8a;
  border: 1px solid #d0c8e0;
}

.site-bot-editor-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.site-bot-editor-status.active {
  background: #d4f0e0;
  color: #1a7050;
}

.site-bot-editor-status.inactive {
  background: #f0e0e0;
  color: #8a5050;
}

/* Editor body grid */
.site-bot-editor-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}

.site-bot-editor-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #4a2a80;
  min-width: 0;
}

.site-bot-editor-field-wide {
  grid-column: 1 / -1;
}

.site-bot-editor-field select,
.site-bot-editor-field textarea,
.site-bot-editor-field input {
  border: 1px solid #c8b8e8;
  border-radius: 8px;
  background: #fff;
  color: #2a1a50;
  font-size: 12px;
  padding: 7px 9px;
  font-family: inherit;
}

.site-bot-editor-field select:focus,
.site-bot-editor-field textarea:focus,
.site-bot-editor-field input:focus {
  border-color: #7c5cbf;
  outline: none;
  box-shadow: 0 0 0 2px rgba(124, 92, 191, 0.2);
}

.site-bot-editor-field select[multiple] {
  max-height: 90px;
  min-height: 90px;
}

.site-bot-editor-field textarea {
  line-height: 1.45;
  resize: vertical;
}

.site-bot-editor-field small {
  font-weight: 400;
  color: #8a7aaa;
  margin-top: 1px;
}

/* Toggles */
.site-bot-editor-toggles {
  display: flex;
  gap: 16px;
  align-items: center;
}

.site-bot-editor-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4a2a80;
  cursor: pointer;
}

.site-bot-editor-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #7c5cbf;
}

/* Editor footer */
.site-bot-editor-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f5f0fc;
  border-top: 1px solid #e0d5f0;
}

.site-bot-editor-footer .primary {
  background: linear-gradient(180deg, #9c7de0 0%, #7c5cbf 100%);
  border: 1px solid #6a4aaa;
  color: #fff;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.site-bot-editor-footer .primary:hover {
  background: linear-gradient(180deg, #ae90ea 0%, #8c6ccf 100%);
}

.site-bot-editor-footer .danger {
  border: 1px solid #e0a8b8;
  background: linear-gradient(180deg, #fff0f2 0%, #fce0e4 100%);
  color: #a03040;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.site-bot-editor-footer .danger:hover {
  background: linear-gradient(180deg, #ffe0e4 0%, #f8c8d0 100%);
  border-color: #d08090;
}

.site-bot-editor-message {
  margin-left: auto;
  font-size: 11px;
  color: #6a5a8a;
}

/* Create bot form */
.site-bot-create-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px;
  margin-top: 12px;
  background: rgba(124, 92, 191, 0.05);
  border: 1px dashed #c8b8e8;
  border-radius: 10px;
}

.site-bot-create-form .site-bot-editor-field:first-child {
  grid-column: 1;
}

.site-bot-create-form .site-bot-editor-field:nth-child(2) {
  grid-column: 2;
}

.site-bot-create-buttons {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.site-bot-create-buttons .primary {
  background: linear-gradient(180deg, #9c7de0 0%, #7c5cbf 100%);
  border: 1px solid #6a4aaa;
  color: #fff;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.site-bot-create-buttons .primary:hover {
  background: linear-gradient(180deg, #ae90ea 0%, #8c6ccf 100%);
}

.site-bot-create-buttons button:not(.primary) {
  border: 1px solid #c0a8e8;
  background: transparent;
  color: #4a2a90;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.site-bot-create-buttons button:not(.primary):hover {
  background: rgba(124, 92, 191, 0.08);
}

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

  .site-bot-editor-body {
    grid-template-columns: 1fr;
  }

  .site-bot-create-form {
    grid-template-columns: 1fr;
  }

  .site-bot-create-form .site-bot-editor-field:first-child,
  .site-bot-create-form .site-bot-editor-field:nth-child(2) {
    grid-column: 1;
  }
}

.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;
}

.user-info-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.15s ease;
}
.user-info-card {
  background: #fff; border-radius: 16px;
  width: 420px; max-width: 90vw;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  position: relative;
  animation: scaleIn 0.15s ease;
  overflow: hidden;
}
.user-info-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border: none; background: rgba(0,0,0,0.06);
  border-radius: 50%; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #666; transition: background 0.15s;
  z-index: 1;
}
.user-info-close:hover { background: rgba(0,0,0,0.12); }
.user-info-top {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 24px 12px;
  background:
    radial-gradient(ellipse 140% 100px at 50% 0%, rgba(120, 200, 220, 0.15) 0%, transparent 100%),
    linear-gradient(180deg, rgba(220, 240, 248, 0.5) 0%, rgba(255,255,255,0.9) 100%);
}
.user-info-avatar .user-avatar {
  width: 100px; height: 100px; font-size: 40px;
  border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #dce8ed; color: #999; font-weight: 700;
}
.user-info-avatar {
  cursor: pointer;
}
.user-info-avatar .user-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.user-info-name {
  margin-top: 14px; font-size: 20px; font-weight: 600;
  color: #1a2634;
  display: flex; align-items: center; gap: 8px;
}
.user-info-google-badge {
  font-size: 10px; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #34a853, #2d8f47);
  padding: 2px 8px; border-radius: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.4;
}
.user-info-role {
  margin-top: 4px; font-size: 14px; color: #b8f0e0;
  background: linear-gradient(180deg, #0a3d2c 0%, #0d4f3a 50%, #106a48 100%);
  padding: 4px 16px; border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(80, 255, 180, 0.35), 0 0 24px rgba(80, 255, 180, 0.15);
  border: 1px solid rgba(80, 255, 180, 0.2);
}
.user-info-stats {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 10px; padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.user-info-stat-row {
  display: flex; gap: 6px; justify-content: center;
}
.user-info-coins-row {
  margin-top: 6px; padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; justify-content: center;
}
.coin-center-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #f7b731, #f5a623);
  color: #1a1a2e; font-size: 11px; font-weight: 700;
  border: none; border-radius: 20px; padding: 5px 14px;
  cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(247,183,49,0.3);
}
.coin-center-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(247,183,49,0.45);
}
.coin-center-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.2s ease;
}
.coin-center-modal {
  background: #f8faff; border-radius: 22px;
  width: 1100px; max-width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: scaleIn 0.25s ease;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}
.coin-center-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 36px; height: 36px; border: none;
  background: rgba(255,255,255,0.85); border-radius: 50%;
  font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #1a2634; transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.coin-center-close:hover { background: #fff; color: #11998e; transform: scale(1.05); }
body[data-client-theme="night"] .coin-center-close {
  background: rgba(255,255,255,0.12); color: #e8fbfd;
}
body[data-client-theme="night"] .coin-center-close:hover {
  background: rgba(255,255,255,0.2); color: #fff;
}
.coin-center-header {
  text-align: center; padding: 40px 40px 24px;
  background: linear-gradient(105deg, #fff1f6 0%, #ecf8df 36%, #e6f5ff 68%, #fff6c8 100%);
  border-radius: 22px 22px 0 0;
  position: relative; overflow: hidden;
}
body[data-client-theme="night"] .coin-center-header {
  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%);
}
.coin-center-header::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.coin-center-title {
  font-size: 32px; font-weight: 700; color: #1a2634; margin: 0;
  position: relative; letter-spacing: -0.5px;
}
body[data-client-theme="night"] .coin-center-title {
  color: #fff;
}
.coin-center-subtitle {
  font-size: 15px; color: #4a5a6a; margin: 8px 0 0;
  max-width: 600px; margin-left: auto; margin-right: auto;
  position: relative; line-height: 1.5;
}
body[data-client-theme="night"] .coin-center-subtitle {
  color: rgba(255,255,255,0.9);
}
.coin-center-balance {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 40px; padding: 10px 28px; margin-top: 18px;
  position: relative;
}
.cc-balance-icon { font-size: 24px; }
.cc-balance-amount { font-size: 26px; font-weight: 800; color: #1a2634; }
.cc-balance-label { font-size: 14px; color: #5a6a7a; font-weight: 500; }
body[data-client-theme="night"] .coin-center-balance {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}
body[data-client-theme="night"] .cc-balance-amount { color: #fff; }
body[data-client-theme="night"] .cc-balance-label { color: rgba(255,255,255,0.7); }
.coin-center-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  padding: 28px 32px 32px;
}
.cc-left { display: flex; flex-direction: column; gap: 20px; }
.cc-right { display: flex; flex-direction: column; gap: 16px; }
.cc-section-title {
  font-size: 20px; font-weight: 700; color: #1a2634; margin: 0;
}
.cc-cards { display: flex; flex-direction: column; gap: 14px; }
.cc-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 18px; padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}
.cc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
.cc-card-icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.cc-card-blue .cc-card-icon { background: linear-gradient(135deg, #a8d8ea, #7ec8e3); }
.cc-card-green .cc-card-icon { background: linear-gradient(135deg, #b5e7a0, #7dd56c); }
.cc-card-pink .cc-card-icon { background: linear-gradient(135deg, #fbc1cc, #f99aab); }
.cc-card-purple .cc-card-icon { background: linear-gradient(135deg, #d4b8f0, #b894e8); }
.cc-card-amber .cc-card-icon { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.pp-animnick-area { display: flex; flex-direction: column; gap: 10px; }
.pp-animnick-preview {
  width: 220px; height: 50px;
  border-radius: 10px; overflow: hidden;
  border: 2px solid rgba(0,0,0,0.08);
  position: relative;
  background: rgba(0,0,0,0.03);
}
.pp-animnick-preview img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pp-animnick-empty {
  font-size: 12px; color: #8a9aaa; font-style: italic;
}
.pp-animnick-loading {
  font-size: 12px; color: #667eea; font-weight: 600;
}
.pp-animnick-actions {
  display: flex; gap: 8px;
}
.pp-animnick-active-label {
  display: flex !important; align-items: center; gap: 6px;
  font-size: 12px; color: #5a6a7a; cursor: pointer;
  margin: 0; font-weight: 600;
}
.pp-animnick-active-label input[type="checkbox"] {
  width: 14px; height: 14px; cursor: pointer;
}
.cc-card-body { flex: 1; }
.cc-card-body h3 { font-size: 15px; font-weight: 700; color: #1a2634; margin: 0 0 4px; }
.cc-card-body p { font-size: 13px; color: #5a6a7a; margin: 0; line-height: 1.5; }
.cc-card-body strong { color: #2b5f70; }
.cc-progress {
  margin-top: 10px; height: 6px;
  background: rgba(0,0,0,0.06); border-radius: 10px; overflow: hidden;
}
.cc-progress-bar {
  height: 100%; border-radius: 10px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.6s ease;
}
.cc-progress-label {
  font-size: 12px; font-weight: 600; color: #667eea;
  margin-top: 4px; display: block;
}
.cc-daily-limit {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: #667eea; margin-top: 6px;
}
.cc-note { font-size: 11px; color: #9aabbb; margin-top: 4px; display: block; }
.cc-task {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #3a4a5a; padding: 4px 0;
  cursor: default;
}
.cc-task input[type="checkbox"] {
  accent-color: #667eea; width: 16px; height: 16px;
}
.cc-task strong { margin-left: auto; color: #2b5f70; }
.cc-task-bonus {
  display: block; font-size: 12px; font-weight: 600;
  color: #667eea; margin-top: 8px;
}
.cc-premium-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #f7b731, #f5a623);
  color: #1a1a2e; font-size: 11px; font-weight: 800;
  padding: 4px 14px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
  align-self: flex-start;
}
.cc-premium-title {
  background: linear-gradient(135deg, #b8860b, #f5a623);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cc-premium-desc {
  font-size: 13px; color: #6a7a8a; margin: 0; line-height: 1.6;
}
.cc-premium-packages {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.cc-premium-card {
  position: relative; background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 18px; padding: 22px 18px; text-align: center;
  border: 1px solid rgba(255,215,0,0.2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.25s ease; overflow: hidden;
}
.cc-premium-card::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255,215,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cc-premium-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 36px rgba(247,183,49,0.2);
  border-color: rgba(255,215,0,0.4);
}
.cc-premium-card:hover::before {
  background: radial-gradient(circle at 50% 50%, rgba(255,215,0,0.1) 0%, transparent 60%);
}
.cc-premium-popular { border-color: #f7b731; }
.cc-premium-best { border-color: #b8860b; }
.cc-premium-mega { border-color: #8b0000; }
.cc-premium-badge-popular {
  position: absolute; top: -1px; right: 16px;
  background: linear-gradient(135deg, #f7b731, #f5a623);
  color: #1a1a2e; font-size: 9px; font-weight: 800;
  padding: 3px 12px; border-radius: 0 0 10px 10px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.cc-premium-amount {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #b8860b, #f5a623);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-top: 4px;
}
.cc-premium-amount small { font-size: 14px; }
.cc-premium-price {
  font-size: 22px; font-weight: 700; color: #1a2634;
  margin: 6px 0 14px;
}
.cc-buy-btn {
  display: inline-block; width: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; font-size: 14px; font-weight: 700;
  border: none; border-radius: 30px; padding: 10px 0;
  cursor: pointer; transition: all 0.25s ease;
  font-family: inherit;
}
.cc-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102,126,234,0.35);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 768px) {
  .coin-center-content { grid-template-columns: 1fr; padding: 18px; }
  .coin-center-header { padding: 28px 20px 18px; }
  .coin-center-title { font-size: 24px; }
  .coin-center-subtitle { font-size: 13px; }
  .cc-premium-packages { grid-template-columns: 1fr 1fr; }
  .coin-center-modal { border-radius: 16px; max-height: 85vh; }
}
@media (max-width: 480px) {
  .cc-premium-packages { grid-template-columns: 1fr; }
  .coin-center-balance { padding: 8px 20px; }
  .cc-balance-amount { font-size: 22px; }
}
.user-info-stat {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; color: #2b5f70;
  background: rgba(255,255,255,0.7);
  padding: 4px 10px; border-radius: 14px;
  white-space: nowrap;
}
.user-info-stat .stat-icon {
  font-size: 14px;
}
.user-info-stat .stat-count {
  font-style: normal; font-weight: 800;
  color: #0f7b8a; margin-right: 2px;
  font-size: 14px;
}
.user-info-stat .stat-label {
  color: #3d7a85;
  font-weight: 500;
}
.user-info-body {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 8px 24px 14px; justify-content: center;
}
.user-info-badge {
  font-size: 13px; color: #555;
  background: #f0f4f5; padding: 6px 14px; border-radius: 20px;
}
.user-info-details {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; padding: 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.04);
  overflow: hidden;
}
.user-info-detail {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 14px; background: #fff;
}
.user-info-detail:nth-child(2) {
  border-left: 1px solid rgba(0,0,0,0.06);
}
.user-info-detail:nth-child(3) {
  border-top: 1px solid rgba(0,0,0,0.06);
}
.user-info-detail:nth-child(4) {
  border-left: 1px solid rgba(0,0,0,0.06);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.user-info-detail .detail-label {
  font-size: 10px; font-weight: 700; color: #0f8a7c;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.user-info-detail .detail-value {
  font-size: 13px; color: #1a3a44; font-weight: 500;
  padding-left: 19px;
}
.user-info-message {
  margin: 10px 14px 14px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  background: linear-gradient(135deg, #f5fafc, #fafcfd);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.user-info-message .msg-label {
  font-size: 10px; font-weight: 700; color: #0f8a7c;
  text-transform: uppercase; letter-spacing: 0.6px;
  display: block; margin-bottom: 4px;
}
.user-info-message p {
  margin: 0; font-size: 13px; color: #1a3a44; line-height: 1.4;
  word-break: break-word;
}
.user-info-actions {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 14px;
  padding: 0 24px 24px;
}
.user-info-actions-inline,
.user-info-actions-top,
.user-info-actions-bottom {
  display: flex; gap: 10px; justify-content: center;
}
.user-info-actions-inline {
  padding: 4px 24px 6px;
}
.user-info-actions-bottom button {
  flex: 1; max-width: 160px;
  min-height: 38px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
  padding: 0 12px; cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.user-info-actions-bottom button.primary {
  background: #1f8a7c; color: #fff;
  border-color: #1f8a7c;
}
.user-info-actions-bottom button.primary:hover {
  background: #187066; border-color: #187066;
}
.user-info-actions-bottom button.secondary {
  background: #eef4f6; color: #1f5660;
  border-color: #cde0e4;
}
.user-info-actions-bottom button.secondary:hover {
  background: #dce8eb; border-color: #b3ccd2;
}
.user-info-actions-inline button.action-sm,
.user-info-actions-top button.action-sm {
  font-size: 12px; font-weight: 700;
  min-height: 28px; border-radius: 14px;
  padding: 0 12px; cursor: pointer; border: 1px solid;
  transition: all 0.15s ease;
  background: transparent; color: #0f7b8a;
  border-color: #aad0da;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.12),
    0 1px 3px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
.user-info-actions-inline button.action-sm:hover,
.user-info-actions-top button.action-sm:hover {
  background: #dceef2; border-color: #8ab9c4;
  box-shadow:
    0 6px 10px rgba(0,0,0,0.16),
    0 2px 4px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.user-info-actions-inline button.action-sm.liked,
.user-info-actions-top button.action-sm.liked {
  background: rgba(220,40,80,0.08); border-color: #dc2850; color: #dc2850;
}
.user-info-actions-top button.action-sm.liked:hover {
  background: rgba(220,40,80,0.14); border-color: #dc2850;
}
.user-info-actions-inline button.action-sm:active,
.user-info-actions-top button.action-sm:active {
  box-shadow:
    0 1px 3px rgba(0,0,0,0.1),
    inset 0 2px 4px rgba(0,0,0,0.08);
  transform: translateY(1px);
}

.gift-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45);
  animation: fadeIn 0.15s ease;
}
.gift-modal {
  background: #fff; border-radius: 16px;
  width: 420px; max-width: 90vw;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  animation: scaleIn 0.2s ease;
}
.gift-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #eee;
}
.gift-modal-title {
  font-size: 15px; font-weight: 600; color: #222;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gift-modal-header .user-info-close {
  position: static; flex-shrink: 0;
  width: 28px; height: 28px;
  font-size: 20px; line-height: 28px; text-align: center;
  background: #f0f0f0; border: none; border-radius: 50%;
  color: #888; cursor: pointer;
}
.gift-modal-header .user-info-close:hover {
  background: #e0e0e0; color: #555;
}
.gift-modal-coins {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  background: #f9f9f9;
  font-size: 13px; color: #555;
}
.gift-coins-label { font-weight: 500; }
.gift-coins-balance { font-weight: 700; color: #e6a817; font-size: 15px; }
.gift-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px; padding: 16px 20px 20px;
}
.gift-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 8px 10px;
  border: 1px solid #eee; border-radius: 12px;
  background: #fafafa;
  cursor: pointer; user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.gift-item:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-color: #e6a817;
  background: #fff;
}
.gift-item:active {
  transform: scale(1.04);
}
.gift-item-disabled {
  opacity: 0.45; cursor: not-allowed;
}
.gift-item-disabled:hover {
  transform: none; box-shadow: none; border-color: #eee; background: #fafafa;
}
.gift-item-icon {
  font-size: 36px; line-height: 1; margin-bottom: 6px;
}
.gift-item-name {
  font-size: 12px; font-weight: 600; color: #333; margin-bottom: 3px;
}
.gift-item-price {
  font-size: 12px; color: #e6a817; font-weight: 600;
}
.gift-modal-status {
  padding: 10px 20px 16px;
  text-align: center; font-size: 13px; color: #555; min-height: 20px;
}
.gift-modal-status.gift-success { color: #1a9d1a; font-weight: 600; }
.gift-modal-status.gift-error { color: #d32f2f; }

body[data-client-theme="night"] .gift-modal {
  background: #2a2a2e; box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
body[data-client-theme="night"] .gift-modal-header {
  border-bottom-color: #3a3a3e;
}
body[data-client-theme="night"] .gift-modal-title { color: #ddd; }
body[data-client-theme="night"] .gift-modal-header .user-info-close {
  background: #3a3a3e; color: #999;
}
body[data-client-theme="night"] .gift-modal-header .user-info-close:hover {
  background: #4a4a4e; color: #ccc;
}
body[data-client-theme="night"] .gift-modal-coins {
  background: #222226; color: #aaa;
}
body[data-client-theme="night"] .gift-item {
  background: #333337; border-color: #3a3a3e;
}
body[data-client-theme="night"] .gift-item:hover {
  background: #3a3a3e; border-color: #e6a817;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
body[data-client-theme="night"] .gift-item-name { color: #ccc; }
body[data-client-theme="night"] .gift-item-disabled:hover {
  background: #333337; border-color: #3a3a3e; box-shadow: none;
}
body[data-client-theme="night"] .gift-modal-status { color: #aaa; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

.avatar-lightbox {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.75);
  animation: fadeIn 0.15s ease;
  cursor: zoom-out;
}
.avatar-lightbox img {
  width: auto; height: auto;
  max-width: 94vw; max-height: 94vh;
  border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  object-fit: contain; animation: scaleIn 0.2s ease;
}
.avatar-lightbox .lightbox-close {
  position: fixed; top: 16px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.15);
  color: #fff; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.avatar-lightbox .lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

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

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

.site-settings-section .word-filter-form {
  border-left: 0;
  padding-left: 0;
}

.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%);
  font-family: var(--font-main);
}

.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: 12px;
  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 {
  position: relative;
  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: 12px;
  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 {
  min-width: 0;
  transform: none;
}

.private-message:not(.mine) .private-message-body {
  transform: none;
}

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

.private-message .message-nick {
  display: block;
  width: 100%;
  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;
  align-items: center;
  gap: 7px;
  border-top: 1px solid #c5dce2;
  background: linear-gradient(180deg, #ffffff 0%, #edf6f7 100%);
  padding: 8px;
  min-height: 52px;
  height: 52px;
}

.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: visible;
}

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

.private-text-format-panel [data-private-font-select] {
  width: 62px;
}

.private-text-format-panel [data-private-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: 12px;
}

.private-tools .private-file-button {
  width: 29px;
  height: 28px;
  border-radius: 12px;
  border-color: rgba(139, 105, 45, 0.38);
  background: linear-gradient(180deg, #fff9ed 0%, #f0d7aa 100%);
  color: #8a5a12;
}

.private-call-button svg,
.private-file-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-tools .private-file-button:hover {
  border-color: rgba(138, 90, 18, 0.72);
  background: linear-gradient(180deg, #fff4d8 0%, #e9bf77 100%);
  box-shadow: 0 5px 14px rgba(145, 98, 29, 0.2);
}

.private-file-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  max-width: 88%;
  margin: 8px 0;
  border: 1px solid rgba(76, 129, 151, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 249, 249, 0.94));
  padding: 10px;
  box-shadow: 0 8px 20px rgba(52, 92, 113, 0.13);
}

.private-file-card.mine {
  margin-left: auto;
  border-color: rgba(66, 139, 192, 0.24);
  background: linear-gradient(180deg, rgba(239, 248, 255, 0.95), rgba(210, 233, 250, 0.95));
}

.private-file-card.complete {
  border-color: rgba(52, 154, 101, 0.28);
}

.private-file-card.rejected,
.private-file-card.cancelled,
.private-file-card.failed {
  border-color: rgba(199, 82, 82, 0.28);
}

.private-file-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7ffff 0%, #cde9ec 100%);
  color: #28727d;
}

.private-file-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.private-file-main {
  min-width: 0;
}

.private-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.private-file-head strong {
  overflow: hidden;
  color: #214952;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-file-head span,
.private-file-main small {
  color: #5d7b83;
  font-size: 10px;
  font-weight: 700;
}

.private-file-progress {
  overflow: hidden;
  height: 7px;
  margin: 8px 0;
  border-radius: 999px;
  background: rgba(63, 104, 118, 0.14);
}

.private-file-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #44b39b, #5aa9e8);
  transition: width 0.18s ease;
}

.private-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.private-file-actions button,
.private-file-actions a {
  min-width: 64px;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.private-file-actions .accept,
.private-file-actions .download {
  background: linear-gradient(180deg, #55c692, #259765);
}

.private-file-actions .reject,
.private-file-actions .cancel {
  background: linear-gradient(180deg, #f07b7b, #c43c3c);
}

.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;
  font-family: var(--font-main);
}

.private-composer button {
  position: relative;
  overflow: hidden;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  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;
  display: flex;
  align-items: center;
  justify-content: center;
  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;
}

.spam-cooldown-bar {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e74c3c, #ff6b6b);
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  z-index: 20;
  transform-origin: left;
  transform: scaleX(0);
}

.spam-cooldown-bar.active {
  display: block;
  animation: spamCooldownFill var(--spam-duration, 333ms) linear forwards;
}

@keyframes spamCooldownFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.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: 12px;
  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: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 7px 0 7px;
  background: linear-gradient(105deg, #fff1f6 0%, #ecf8df 36%, #e6f5ff 68%, #fff6c8 100%);
}

.composer-right-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  flex: 0 0 auto;
}

.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,
.animaticon-button,
.speaker-mute-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  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;
}

.text-tools button {
  background: linear-gradient(105deg, #fff1f6 0%, #ecf8df 36%, #e6f5ff 68%, #fff6c8 100%);
}

#textFormatBtn img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.camera-watch {
  position: relative;
  border-color: #c7dde3;
  border-radius: 12px;
  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,
.animaticon-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,
.animaticon-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;
}

.private-text-format-panel [data-private-font-select] {
  width: 68px;
}

.private-text-format-panel [data-private-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: 24px;
  color: #1f625d;
}

.speaker-icon-svg {
  width: 23px;
  height: 23px;
  overflow: visible;
  filter: drop-shadow(1px 3px 3px rgba(0, 0, 0, 0.55)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.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: 12px;
  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,
.animaticon-button img,
.speaker-mute-button img,
.share-screen-button img,
.camera-watch img {
  max-width: 20px;
  max-height: 20px;
  background: transparent;
  filter: drop-shadow(1px 3px 3px rgba(0, 0, 0, 0.42)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

#videoButton img,
#shareScreenButton img {
  display: block;
}

.speaker-mute-button .speaker-img {
  display: block;
  max-width: 20px;
  max-height: 24px;
}

.speaker-mute-button .speaker-img-mute,
.speaker-mute-button.tool-active .speaker-img-speaker {
  display: none;
}

.speaker-mute-button.tool-active .speaker-img-mute {
  display: block;
}

body.mobile-layout .speaker-mute-button .speaker-img-mute,
body.mobile-layout .speaker-mute-button.tool-active .speaker-img-speaker {
  display: none;
}

body.mobile-layout .speaker-mute-button.tool-active .speaker-img-mute {
  display: block;
}

.composer {
  position: relative;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  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;
  font-family: var(--font-main);
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 10px 26px -8px rgba(42, 70, 82, 0.18),
    inset 0 -5px 16px -8px rgba(42, 70, 82, 0.08);
}

body.client-muted .composer input {
  border-color: #c6cfd4;
  background: #edf1f3;
  color: #8a99a0;
  cursor: not-allowed;
}

.composer button {
  min-height: 54px;
  min-width: 54px;
  display: grid;
  place-items: center;
}

.composer button svg {
  width: 22px;
  height: 22px;
}

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%);
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.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;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.smiley-panel.panel-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.animaticon-panel {
  width: min(430px, calc(100vw - 20px));
}

.text-format-panel {
  position: absolute;
  left: 10px;
  bottom: calc(100% + 8px);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: min(420px, calc(100vw - 20px));
  min-height: 46px;
  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;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.text-format-panel.panel-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.text-format-panel select {
  width: auto;
  min-width: 76px;
  min-height: 30px;
  padding: 4px 7px;
  font-size: 11px;
}

.text-format-panel button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cfe6df;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff 0%, #effaf5 100%);
  color: #315965;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.text-format-panel button:hover {
  border-color: #2f7d79;
  background: linear-gradient(180deg, #f3fffc 0%, #d9f0eb 100%);
  box-shadow: 0 4px 12px rgba(47, 125, 121, 0.16);
  transform: translateY(-1px);
}

.text-format-panel 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-format-panel button.color-tool {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  border: 1px solid #cfe6df;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff 0%, #effaf5 100%);
  color: #315965;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  position: relative;
}

.text-format-panel button.color-tool:hover {
  border-color: #2f7d79;
  background: linear-gradient(180deg, #f3fffc 0%, #d9f0eb 100%);
  box-shadow: 0 4px 12px rgba(47, 125, 121, 0.16);
  transform: translateY(-1px);
}

.text-format-panel button.color-tool::before {
  content: none;
}

.text-format-panel .font-color-input {
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.smiley-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 6px;
  max-height: 238px;
  margin-top: 8px;
  overflow: auto;
}

.animaticon-grid {
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  max-height: 250px;
}

.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;
}

.animaticon-choice {
  width: 72px;
  height: 58px;
}

.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 {
  max-width: 24px;
  max-height: 24px;
  background: transparent;
  vertical-align: middle;
}

.inline-smile {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  background: transparent;
  vertical-align: middle;
}

.animaticon-choice img {
  max-width: 68px;
  max-height: 52px;
  object-fit: contain;
}

.inline-animaticon {
  max-width: min(160px, 42vw);
  max-height: 120px;
  border-radius: 6px;
  background: transparent;
  vertical-align: middle;
}

#roomName .inline-animaticon,
#roomName .inline-smile,
#roomWelcome .inline-animaticon,
#roomWelcome .inline-smile,
#roomTopic .inline-animaticon,
#roomTopic .inline-smile,
#messages .room-welcome-card .inline-animaticon,
#messages .room-welcome-card .inline-smile,
.room-list-item .inline-animaticon,
.room-list-item .inline-smile {
  max-width: none;
  max-height: 22px;
  width: auto;
  height: auto;
  border-radius: 4px;
  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: calc(100% + 3px);
  width: auto;
  max-height: 150px;
  padding: 8px;
  box-shadow: 0 10px 26px rgba(31, 103, 98, 0.14);
}

.private-window .private-text-format-panel {
  left: 8px;
  right: auto;
  bottom: calc(100% + 3px);
  width: fit-content;
  max-width: calc(100% - 16px);
  min-height: 0;
  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);
}

#talkButton.talk-talking,
#mobileTalkButton.talk-talking,
#talkButton.talk-queued,
#mobileTalkButton.talk-queued {
  transform: translateY(2px);
  box-shadow:
    inset 0 3px 9px rgba(0, 0, 0, 0.3),
    inset 0 -2px 0 rgba(255, 255, 255, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.2);
}

body[data-client-theme="custom"] .panel-action.talk-idle,
body[data-client-theme="custom"] .panel-action.talk-talking,
body[data-client-theme="custom"] .panel-action.talk-queued {
  border-color: var(--talk-theme-soft);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.38);
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--talk-theme-deep) 30%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -10px 16px rgba(0, 0, 0, 0.18);
}

body[data-client-theme="custom"] .panel-action.talk-idle {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, var(--talk-theme-top) 0%, var(--talk-theme-mid) 58%, var(--talk-theme-deep) 100%);
}

body[data-client-theme="custom"] .panel-action.talk-queued {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, var(--talk-theme-mid) 0%, var(--talk-theme-deep) 100%);
}

body[data-client-theme="custom"] .panel-action.talk-talking {
  border-color: var(--talk-theme-deep);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, var(--talk-theme-mid) 0%, var(--talk-theme-deep) 72%, #111 100%);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--talk-theme-soft) 24%, transparent),
    0 12px 26px color-mix(in srgb, var(--talk-theme-deep) 38%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -12px 18px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="custom"] .room-admin button:hover,
body[data-client-theme="custom"] .composer button:hover,
body[data-client-theme="custom"] .panel-action:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, var(--talk-theme-top) 0%, var(--talk-theme-mid) 54%, var(--talk-theme-deep) 100%);
}

.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: 12px;
  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;
  animation: fadeIn 150ms ease both;
}

.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: 12px;
  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: 8px;
  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: 12px;
  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: 12px;
  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 color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  touch-action: none;
  user-select: none;
}

.floating-video.local-video {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.floating-video header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  background: color-mix(in srgb, var(--surface) 84%, var(--accent) 16%);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  color: var(--text);
  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: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 72%, var(--accent) 8%);
  color: var(--text);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.floating-video button:hover {
  background: color-mix(in srgb, var(--accent) 24%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.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: color-mix(in srgb, var(--surface) 88%, #000 12%);
  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: color-mix(in srgb, var(--text) 78%, var(--surface));
  background: color-mix(in srgb, var(--surface) 92%, #000 8%);
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  font-size: 12px;
}

.floating-video-stage {
  position: relative;
}

.floating-video-react {
  position: absolute;
  top: 10px;
  right: 8px;
  bottom: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 10px 5px;
  max-width: 14%;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

.floating-video .floating-react-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform 120ms ease, background 140ms ease;
}

.floating-video .floating-react-button:hover {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.floating-react-button:active {
  transform: scale(0.9);
}

.floating-react-like svg {
  width: 24px;
  height: 24px;
  fill: #ff4d6d;
  filter: drop-shadow(0 1px 3px rgba(255, 60, 90, 0.5));
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-react-like.liked svg {
  fill: #ff2d55;
}

.floating-react-like.pop svg {
  transform: scale(1.3);
}

.floating-react-gift-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.floating-react-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff2d55;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* =========================================================================
   Received like/gift float effect (smooth TikTok-style fly-up)
   ========================================================================= */
@keyframes fxFloatUp {
  0% {
    transform: translate(0, 0) scale(0.3) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translate(0, -20px) scale(1);
  }
  30% {
    transform: translate(var(--x1), -150px) scale(1.2) rotate(10deg);
  }
  60% {
    transform: translate(var(--x2), -350px) scale(0.9) rotate(-10deg);
  }
  100% {
    transform: translate(var(--x3), -600px) scale(0.4) rotate(15deg);
    opacity: 0;
  }
}

.fx-float {
  position: fixed;
  pointer-events: none;
  z-index: 100000;
  will-change: transform, opacity;
  animation: fxFloatUp 2.5s linear forwards;
}

.camera-preparing-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: cameraPreparingFade 160ms ease-out;
}

@keyframes cameraPreparingFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.camera-preparing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 34px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
  backdrop-filter: blur(6px);
}

.camera-preparing-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--accent);
}

.camera-preparing-icon svg {
  width: 46px;
  height: 46px;
  fill: currentColor;
  animation: cameraPreparingBob 1.4s ease-in-out infinite;
}

@keyframes cameraPreparingBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.06); }
}

.camera-preparing-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  animation: cameraPreparingPulse 1.4s ease-out infinite;
}

@keyframes cameraPreparingPulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}

.camera-preparing-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.camera-preparing-dots {
  display: inline-flex;
}

.camera-preparing-dots i {
  font-style: normal;
  animation: cameraPreparingDot 1.2s infinite;
}

.camera-preparing-dots i:nth-child(2) { animation-delay: 0.2s; }
.camera-preparing-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes cameraPreparingDot {
  0%, 60%, 100% { opacity: 0.2; }
  30% { opacity: 1; }
}



.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, box-shadow 70ms linear;
}

.voice-bars.active i.on {
  opacity: 1;
  transform: scaleY(1.08);
}

.voice-bars i:nth-child(1).on {
  background: linear-gradient(180deg, #ffa726, #ef6c00);
  box-shadow: 0 0 6px rgba(239, 108, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.35);
}

.voice-bars i:nth-child(2).on {
  background: linear-gradient(180deg, #ffb74d, #f57c00);
  box-shadow: 0 0 6px rgba(245, 124, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}

.voice-bars i:nth-child(3).on {
  background: linear-gradient(180deg, #aed581, #689f38);
  box-shadow: 0 0 6px rgba(104, 159, 56, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}

.voice-bars i:nth-child(4).on {
  background: linear-gradient(180deg, #81c784, #43a047);
  box-shadow: 0 0 6px rgba(67, 160, 71, 0.35), inset 0 1px 0 rgba(255,255,255,0.35);
}

.voice-bars i:nth-child(5).on {
  background: linear-gradient(180deg, #66bb6a, #2e7d32);
  box-shadow: 0 0 6px rgba(46, 125, 50, 0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}

.voice-bars i:nth-child(6).on {
  background: linear-gradient(180deg, #4caf50, #1b5e20);
  box-shadow: 0 0 6px rgba(27, 94, 32, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}

.voice-bars i:nth-child(7).on {
  background: linear-gradient(180deg, #ef5350, #c62828);
  box-shadow: 0 0 6px rgba(198, 40, 40, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}

.voice-bars i:nth-child(8).on {
  background: linear-gradient(180deg, #e53935, #b71c1c);
  box-shadow: 0 0 8px rgba(183, 28, 28, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.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: 12px;
  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));
  }

  body:not(.mobile-layout) .profile-flow-mobile-panel {
    display: none !important;
  }

  .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: 12px;
    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 .profile-flow-nav-tool {
    font-size: 10px;
  }

  .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: 12px;
    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 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 230px 7px 8px;
  }

  .room-title-block {
    grid-column: 1 / 2;
    grid-row: 1;
    min-width: 0;
    max-width: none;
  }

.room-head h1 {
  margin: 0 0 5px;
  overflow: hidden;
  white-space: nowrap;
  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;
}

  .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;
  }

  #roomProfileFrame {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    margin-left: 0;
    padding: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #roomProfileFrame .room-profile-button {
    height: 100%;
    width: auto;
    aspect-ratio: 1;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
  }

  .room-menu-button {
    position: absolute;
    top: 7px;
    right: 154px;
    display: inline-grid;
    place-items: center;
    min-width: 68px;
    min-height: 32px;
    border: 1px solid #8fb5c1;
    border-radius: 8px;
    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;
  }

  body.mobile-layout .room-menu-button:hover {
    border-color: #6ea5b8;
    background: linear-gradient(180deg, #ffffff 0%, #d9eef3 100%);
    color: #1e3e4a;
    box-shadow:
      0 0 12px rgba(255, 100, 0, 0.55),
      0 0 28px rgba(255, 50, 0, 0.35),
      0 0 56px rgba(255, 20, 0, 0.15);
  }

  .room-logout-button {
    position: absolute;
    top: 7px;
    right: 78px;
    min-width: 68px;
    min-height: 32px;
    border-radius: 8px;
    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;
    font-family: 'SF Mono', 'Fira Mono', 'Roboto Mono', 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    overflow: hidden;
}

#roomLimit .count-digit {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
  will-change: transform;
}

#roomLimit.count-up .count-digit {
  animation: countUp 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#roomLimit.count-down .count-digit {
  animation: countDown 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes countUp {
  from { transform: translateY(1.2em); }
  to   { transform: translateY(0); }
}

@keyframes countDown {
  from { transform: translateY(-1.2em); }
  to   { transform: translateY(0); }
}

  #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: 8px;
    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: 8px;
    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 .profile-flow-panel {
  display: none;
}

body.mobile-layout .profile-flow-toggle {
  display: none;
}

body.mobile-layout.profile-flow-collapsed .chat-shell {
  grid-template-columns: 1fr;
}

body.mobile-layout .profile-flow-mobile-panel {
  overflow: hidden !important;
}

body.mobile-layout .profile-flow-mobile-panel .profile-flow-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  grid-auto-rows: max-content !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  gap: 6px !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 6px !important;
}

body.mobile-layout .profile-flow-card {
  grid-template-columns: 40px minmax(0, 1fr);
  min-height: auto;
  padding: 6px;
  gap: 4px 6px;
  border-radius: 10px;
}

body.mobile-layout .profile-flow-avatar {
  width: 40px;
  height: 40px;
}
body.mobile-layout .profile-flow-avatar .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

body.mobile-layout .profile-flow-side {
  gap: 4px;
}

body.mobile-layout .profile-flow-main {
  padding-top: 0;
  gap: 1px;
}
body.mobile-layout .profile-flow-main strong {
  font-size: 11px;
  line-height: 1.1;
}
body.mobile-layout .profile-flow-main span {
  font-size: 9px;
}

body.mobile-layout .profile-flow-meta {
  gap: 3px;
}
body.mobile-layout .profile-flow-meta small {
  min-height: 16px;
  padding: 2px 4px;
  font-size: 7.5px;
  border-radius: 5px;
}

body.mobile-layout .profile-flow-stats {
  gap: 3px;
}
body.mobile-layout .pf-stat {
  min-height: 15px;
  padding: 1px 4px;
  font-size: 8px;
  border-radius: 5px;
  gap: 2px;
}
body.mobile-layout .pf-stat svg {
  width: 10px;
  height: 10px;
}

body.mobile-layout .profile-flow-actions {
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}
body.mobile-layout .profile-flow-actions button {
  min-height: 20px;
  min-width: 0;
  flex: none;
  padding: 0 3px;
  font-size: 8px;
  gap: 2px;
}
body.mobile-layout .profile-flow-actions button svg {
  width: 10px;
  height: 10px;
}
body.mobile-layout .profile-flow-actions button span {
  font-size: 8px;
}

body.mobile-layout {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.mobile-layout .chat-shell {
  width: 100%;
  max-width: 100%;
}

body.mobile-layout .conversation {
  width: 100%;
  height: auto;
  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 {
  position: relative;
  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;
  grid-row: 1;
  min-width: 0;
  padding-right: 50px;
}

body.mobile-layout #roomProfileFrame {
  position: absolute;
  top: 7px;
  right: 4px;
  bottom: auto;
  height: 28px;
  margin-left: 0;
  padding: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.mobile-layout #roomProfileFrame .room-profile-button {
  height: 28px;
  width: 28px;
  min-width: 0;
  min-height: 0;
  border-radius: 50%;
}

body.mobile-layout .room-menu-button,
body.mobile-layout .room-logout-button {
  position: absolute;
  top: 7px;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 3px !important;
  border-radius: 8px;
  font-size: 10px !important;
  line-height: 1;
  z-index: 2;
}

body.mobile-layout .room-menu-button {
  right: 74px;
  width: 58px !important;
  max-width: 58px !important;
  min-width: 58px !important;
}

body.mobile-layout .room-logout-button {
  right: 40px;
  width: 26px !important;
  max-width: 26px !important;
  min-width: 26px !important;
}

body.mobile-layout .room-admin-button {
  grid-column: 4;
  grid-row: 2;
  justify-self: end;
  width: 26px !important;
  max-width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 4px !important;
  font-size: 10px !important;
}

body.mobile-layout #roomLimit {
  display: none;
}

body.mobile-layout #roomThemeButton {
  position: absolute;
  top: 7px;
  right: 140px;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  z-index: 2;
}

body.mobile-layout .room-invite-button {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 28px;
  min-height: 28px;
  padding: 0;
}

body.mobile-layout .room-invite-button svg {
  width: 15px;
  height: 15px;
}

body.mobile-layout .room-meta:has(.room-invite-button:not([hidden])) #roomLimit {
  grid-column: 3;
}

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]) .room-invite-button {
  grid-column: 2;
}

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 #notificationButton {
  display: none !important;
}

body.mobile-layout .room-head:has(#adminQuickButton[hidden]) .room-menu-button {
  right: 74px;
}

body.mobile-layout .room-head:has(#adminQuickButton[hidden]) #roomThemeButton {
  right: 140px;
}

/* Profil butonu gizliyken (misafir) mobilde sag ust boslugu kapat */
body.mobile-layout .room-head:has(#roomProfileButton[hidden]) .room-title-block {
  padding-right: 34px;
}
body.mobile-layout .room-head:has(#roomProfileButton[hidden]) .room-logout-button {
  right: 4px;
}
body.mobile-layout .room-head:has(#roomProfileButton[hidden]) .room-menu-button {
  right: 38px;
}
body.mobile-layout .room-head:has(#roomProfileButton[hidden]) #roomThemeButton {
  right: 104px;
}

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;
}

.room-settings-button {
  display: none !important;
}
body.mobile-layout .room-meta .meta-pill {
  min-height: 28px;
  padding: 0 7px;
}

body.mobile-layout .room-event-card {
  min-height: 30px;
  padding: 4px 8px;
  gap: 6px;
}

body.mobile-layout .room-event-main {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
}

body.mobile-layout .room-event-main span {
  padding: 2px 5px;
  font-size: 9px;
}

body.mobile-layout .room-event-main strong {
  font-size: 11px;
}

body.mobile-layout .room-event-main small {
  display: none;
}

body.mobile-layout .room-event-actions {
  gap: 5px;
}

body.mobile-layout .room-event-actions time,
body.mobile-layout .room-event-actions a {
  min-height: 22px;
  padding: 0 6px;
  font-size: 9.5px;
}

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: 12px;
  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 !important;
}

body.mobile-layout.mobile-keyboard-open {
  height: var(--ii-app-height, 100dvh);
  min-height: var(--ii-app-height, 100dvh);
  overflow: hidden;
  overscroll-behavior: none;
}

body.mobile-layout.mobile-keyboard-open .chat-shell {
  height: var(--ii-app-height, 100dvh);
  min-height: var(--ii-app-height, 100dvh);
  max-height: var(--ii-app-height, 100dvh);
  padding: 2px;
  padding-bottom: 0;
}

body.mobile-layout.mobile-keyboard-open .room-head,
body.mobile-layout.mobile-keyboard-open .room-event-card,
body.mobile-layout.mobile-keyboard-open .mobile-live-stack,
body.mobile-layout.mobile-keyboard-open .notification-center,
body.mobile-layout.mobile-keyboard-open .conversion-prompt,
body.mobile-layout.mobile-keyboard-open .private-dock {
  display: none !important;
}

body.mobile-layout.mobile-keyboard-open .composer-wrap {
  --ii-android-bottom-guard: 0px;
  position: relative;
  flex: 0 0 auto;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 7px max(8px, env(safe-area-inset-bottom)) !important;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
}

body.mobile-layout.mobile-keyboard-open .conversation {
  height: 100%;
  max-height: 100%;
  gap: 2px;
  padding-bottom: 0;
  transition: none !important;
}

body.mobile-layout.mobile-keyboard-open .messages {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 2px 2px;
  padding-bottom: 10px;
  scroll-padding-bottom: 10px;
  transition: none !important;
}

body.mobile-layout:not(.message-style-inline) .message.mine {
  align-self: flex-start !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  text-align: left;
}

body.mobile-layout:not(.message-style-inline) .message:not(.mine) {
  align-self: flex-start !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  text-align: left;
}

body.mobile-layout:not(.message-style-inline) .message.mine .message-avatar {
  order: 0;
}

body.mobile-layout:not(.message-style-inline) .message.mine .message-body {
  order: 0;
  text-align: left;
}

body.mobile-layout.message-style-compact .message,
body.mobile-layout.message-style-compact .message.mine,
body.mobile-layout.message-style-compact .message:not(.mine),
body.mobile-layout.message-style-compact .private-message,
body.mobile-layout.message-style-compact .private-message.mine {
  grid-template-columns: none !important;
  max-width: none !important;
}

body.mobile-layout.mobile-keyboard-open .mobile-action-bar {
  display: none !important;
}

body.mobile-layout.mobile-keyboard-open .composer {
  margin-top: 0;
  padding: 4px;
  transition: none !important;
}

body.mobile-layout.mobile-keyboard-open .composer input,
body.mobile-layout.mobile-keyboard-open .composer button {
  min-height: 42px;
  height: 42px;
}

body.mobile-layout.mobile-keyboard-open .voice-queue-panel {
  display: none;
}

body.ii-native-app.mobile-layout.ii-native-keyboard-open .chat-shell {
  height: var(--ii-app-height, 100dvh);
  min-height: var(--ii-app-height, 100dvh);
  max-height: var(--ii-app-height, 100dvh);
  padding-bottom: 0;
}

body.ii-native-app.mobile-layout.ii-native-keyboard-open .conversation {
  display: flex;
  min-height: 0;
  padding-bottom: 0;
}

body.ii-native-app.mobile-layout.ii-native-keyboard-open .messages {
  min-height: 0;
  padding-bottom: 10px;
  scroll-padding-bottom: 10px;
}

body.ii-native-app.mobile-layout.ii-native-keyboard-open .composer-wrap {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 5px 7px max(5px, env(safe-area-inset-bottom)) !important;
  transform: none;
}

body.ii-native-app.mobile-layout.ii-native-keyboard-open .room-head,
body.ii-native-app.mobile-layout.ii-native-keyboard-open .mobile-action-bar {
  display: none !important;
}

body.ii-native-app.mobile-layout.ii-native-keyboard-open .text-tools,
body.ii-native-app.mobile-layout.ii-native-keyboard-open .smiley-panel {
  display: none !important;
}

body.mobile-layout.mobile-keyboard-open .text-tools,
body.mobile-layout.mobile-keyboard-open .smiley-panel {
  display: none !important;
}

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 .mobile-action-bar #mobileVideoButton,
body.mobile-layout .mobile-action-bar #mobileShareScreenButton {
  display: none;
}

body.mobile-layout .text-tools {
  position: relative;
  top: auto;
  order: 1;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 29px;
  max-height: 29px;
  gap: 3px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

body.mobile-layout .composer-right-tools {
  gap: 3px;
  margin-left: 0;
}

body.mobile-layout .text-tools #audioSettingsToggle,
body.mobile-layout #audioSettingsPopover {
  display: none !important;
}

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 .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 .mod-call-button,
body.mobile-layout .color-tool {
  width: 27px;
  height: 29px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.mobile-layout .text-tools button img,
body.mobile-layout .text-tools button svg,
body.mobile-layout .mod-call-button svg {
  width: 16px;
  height: 16px;
  display: block;
}

body.mobile-layout #textFormatBtn img {
  width: 16px;
  height: 16px;
}

body.mobile-layout .text-tools #mobileTalkButton.talk-talking {
  border-color: #da7482;
  background: linear-gradient(180deg, #ffd9df 0%, #f2aab5 52%, #df7b8b 100%);
  box-shadow: inset 0 1px 3px rgba(111, 28, 39, 0.15);
  transform: none;
}

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;
  animation: 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-text-format-panel 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 .private-file-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.private-keyboard-open .composer-wrap {
  display: none !important;
}

body.mobile-layout:has(.private-composer input:focus) .composer-wrap {
  display: none !important;
}

body.mobile-layout.private-keyboard-open .private-window {
  bottom: max(var(--ii-keyboard-inset, 0px), env(safe-area-inset-bottom)) !important;
  height: auto !important;
  max-height: none !important;
}

body.mobile-layout:has(.private-composer input:focus) .private-window {
  bottom: max(var(--ii-keyboard-inset, 0px), env(safe-area-inset-bottom)) !important;
  height: auto !important;
  max-height: none !important;
}

body.mobile-layout.private-keyboard-open .private-window .private-composer {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

body.mobile-layout.private-keyboard-open:not(.ii-native-app) .private-window .private-composer,
body.mobile-layout:has(.private-composer input:focus):not(.ii-native-app) .private-window .private-composer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  padding: 8px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  transform: none;
}

body.mobile-layout.private-keyboard-open:not(.ii-native-app) .private-window .private-messages,
body.mobile-layout:has(.private-composer input:focus):not(.ii-native-app) .private-window .private-messages {
  padding-bottom: 10px;
  scroll-padding-bottom: 10px;
}

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: #f8fafc;
  overflow: visible;
}

body.mobile-layout .admin-room-picker {
  display: grid;
  grid-template-rows: auto auto auto;
  border-right: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  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: grid;
  align-content: start;
  gap: 4px;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 8px max(12px, env(safe-area-inset-right)) 11px max(12px, env(safe-area-inset-left));
  scroll-snap-type: none;
}

body.mobile-layout .admin-room-row-wrap {
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) 32px;
  scroll-snap-align: none;
}

body.mobile-layout .admin-dashboard-overlay .admin-room-picker {
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

body.mobile-layout .admin-dashboard-overlay .admin-room-picker-list {
  overflow-y: auto;
  overflow-x: hidden;
}

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"
    "board"
    "details"
    "privacy"
    "login"
    "history"
    "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 .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;
  animation: 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 .smiley-grid {
  min-height: 0;
  max-height: none;
  overflow: auto;
}

body.mobile-layout .text-format-panel {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(max(6px, env(safe-area-inset-bottom)) + 129px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 46px;
  max-height: 46px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  border: 1px solid #b9d9d2;
  border-radius: 14px;
  background: #fbfffd;
  box-shadow: 0 -6px 24px rgba(31, 103, 98, 0.12);
  z-index: 1450;
  padding: 8px 10px;
}

body.mobile-layout .text-format-panel::-webkit-scrollbar {
  display: none;
}

body:not(.mobile-layout) .text-tools #mobileTalkButton,
body:not(.mobile-layout) .text-tools #mobileTalkButton * {
  display: none !important;
}

body.mobile-layout .text-format-panel select {
  min-width: 76px;
  min-height: 28px;
  font-size: 11px;
  padding: 3px 5px;
}

body.mobile-layout .text-format-panel button {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

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 .admin-dashboard-overlay {
  align-items: flex-end;
}

body.mobile-layout .admin-dashboard-panel {
  width: 100vw;
  height: 90dvh;
  max-width: none;
  max-height: 90dvh;
  border-radius: 18px 18px 0 0;
  border-bottom: 0;
}

body.mobile-layout .admin-dashboard-body {
  flex-direction: column;
}

body.mobile-layout .admin-dashboard-sidebar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px;
  border-right: 0;
  border-bottom: 1px solid #d0e0e5;
  overflow-x: auto;
}

body.mobile-layout .admin-dashboard-sidebar > [data-dashboard-action] {
  flex: 0 0 auto;
  width: auto;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
}

body.mobile-layout .admin-dashboard-sidebar button.active {
  border-left: 0;
  background: #d4e6ec;
}

body.mobile-layout .admin-dashboard-sidebar button span {
  width: auto;
}

body.mobile-layout #adminContactGrid {
  grid-template-columns: 1fr;
}

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 input[type="text"],
body.mobile-layout input[type="search"],
body.mobile-layout textarea {
  font-size: 16px !important;
}

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 6px rgba(38, 143, 154, 0.2),
    0 2px 6px rgba(24, 68, 84, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

#usersList .user-avatar-wrap .user-avatar.has-photo,
.message-avatar.has-photo {
  background: transparent !important;
  color: transparent !important;
  box-shadow:
    0 0 0 2px color-mix(in oklab, oklch(1 0 0) 74%, transparent),
    0 6px 22px -6px color-mix(in oklab, var(--accent) 45%, transparent),
    0 16px 48px -10px color-mix(in oklab, #000 36%, transparent) !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: 12px;
  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[hidden] {
  display: none;
}

.room-theme-panel {
  position: absolute;
  top: 82px;
  right: 58px;
  bottom: auto;
  z-index: 51;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.room-theme-panel.panel-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.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-custom-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 34px;
  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;
  cursor: pointer;
}

.lang-select-wrap {
  padding: 12px 9px 0;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.lang-select-wrap label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.lang-select-wrap select {
  flex: 1;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
}

.theme-custom-option input {
  width: 34px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  padding: 2px;
  cursor: pointer;
}

body[data-client-theme="custom"] .theme-custom-option {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 3px 0 0 var(--accent-strong);
}

.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%);
}

.theme-swatch-darkwood {
  background:
    linear-gradient(135deg, #1a120e 0 22%, #2a1f14 22% 45%, #8b6b4a 45% 62%, #6d4f32 62%);
}

.theme-swatch-custom {
  background:
    linear-gradient(135deg, var(--custom-theme-color, #4e9cc0) 0 62%, #ffffff 62%);
}

body[data-client-theme="darkwood"] {
  --page: #1a120e;
  --surface: #2a1f14;
  --surface-2: #332518;
  --surface-3: #3d2e1e;
  --text: #e8dccc;
  --muted: #b09880;
  --faint: #8a7560;
  --line: #4a3826;
  --line-strong: #6d4f32;
  --accent: #d4a050;
  --accent-strong: #e8b860;
  --accent-soft: rgba(180, 140, 80, 0.16);
  --blue-soft: #2a2a30;
  --nick-default: #e8dccc;
  --nick-member: #b8c8a0;
  --nick-guest: #a09888;
  --nick-admin: #d4a050;
  --nick-root: #e8b860;
  --nick-blue-role: #88b8d8;
  --nick-warm-role: #c8a0d8;
  --nick-green-role: #90c8a8;
  --nick-owner: #e8b860;
  --nick-operator: #90c8a8;
  --nick-vip: #c89040;
  --nick-staff: #c8a0d8;
  --chat-nick-mine: #e8dccc;
  --chat-nick-other: #d46a5a;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}

body[data-client-theme="light"] {
  --page: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #ffffff;
  --text: #344a54;
  --muted: #667b85;
  --line: #d7e6eb;
  --line-strong: #bfd4dc;
  --accent: #4e9cc0;
  --accent-strong: #2f7190;
  --accent-soft: #ffffff;
  --nick-default: #225f93;
  --nick-member: #059669;
  --nick-guest: #64748b;
  --nick-admin: #f97316;
  --nick-root: #d97706;
  --nick-blue-role: #0284c7;
  --nick-warm-role: #7c3aed;
  --nick-green-role: #0f766e;
  --nick-owner: #f59e0b;
  --nick-operator: #0f766e;
  --nick-vip: #b45309;
  --nick-staff: #6d28d9;
  --chat-nick-mine: #225f93;
  --chat-nick-other: #e30a17;
}

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: #34d399;
  --nick-guest: #94a3b8;
  --nick-admin: #fb923c;
  --nick-root: #fbbf24;
  --nick-blue-role: #38bdf8;
  --nick-warm-role: #a78bfa;
  --nick-green-role: #5eead4;
  --nick-owner: #fcd34d;
  --nick-operator: #5eead4;
  --nick-vip: #f59e0b;
  --nick-staff: #c4b5fd;
  --chat-nick-mine: #9ccff0;
  --chat-nick-other: #ef5350;
  --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: #7ab898;
  --nick-guest: #a0a8b8;
  --nick-admin: #d9956e;
  --nick-root: #d4a850;
  --nick-blue-role: #7fafd8;
  --nick-warm-role: #b89ae8;
  --nick-green-role: #70cfa8;
  --nick-owner: #d4b560;
  --nick-operator: #70bfb8;
  --nick-vip: #c89840;
  --nick-staff: #a080d8;
  --chat-nick-mine: #8c4f78;
  --chat-nick-other: #da291c;
}

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: #006f48;
  --nick-guest: #4c5964;
  --nick-admin: #d42020;
  --nick-root: #b06000;
  --nick-blue-role: #004eb8;
  --nick-warm-role: #5d2eb3;
  --nick-green-role: #00747a;
  --nick-owner: #b07600;
  --nick-operator: #00747a;
  --nick-vip: #a06800;
  --nick-staff: #5d2eb3;
  --chat-nick-mine: #0f4c81;
  --chat-nick-other: #e30a17;
}

body[data-client-theme="custom"] {
  --nick-default: var(--accent-strong);
  --nick-member: var(--text);
  --nick-guest: var(--muted);
  --nick-admin: var(--accent-strong);
  --nick-root: var(--accent);
  --nick-blue-role: var(--accent-strong);
  --nick-warm-role: var(--accent-strong);
  --nick-green-role: var(--accent-strong);
  --nick-owner: var(--accent);
  --nick-operator: var(--accent-strong);
  --nick-vip: var(--accent);
  --nick-staff: var(--accent-strong);
  --chat-nick-mine: var(--accent-strong);
  --chat-nick-other: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-panel {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 18%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-head {
  border-bottom-color: var(--line);
  background: linear-gradient(105deg, var(--surface) 0%, var(--accent-soft) 54%, var(--surface-2) 100%);
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-head span {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-toggle {
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--surface) 86%, rgba(255, 255, 255, 0.75)), transparent 42%),
    linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface-2) 76%, var(--accent-soft)) 100%);
  color: var(--accent-strong);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface) 80%, rgba(255, 255, 255, 0.72)),
    0 3px 10px color-mix(in srgb, var(--accent) 16%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-toggle:hover {
  border-color: var(--accent);
  background:
    radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--surface) 82%, rgba(255, 255, 255, 0.82)), transparent 42%),
    linear-gradient(180deg, var(--surface) 0%, var(--accent-soft) 100%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface) 78%, rgba(255, 255, 255, 0.76)),
    0 5px 14px color-mix(in srgb, var(--accent) 22%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-card {
  border-color: var(--line);
  background:
    linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 48%, var(--accent-soft) 100%);
  box-shadow: 0 9px 20px color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-card::before {
  background: linear-gradient(90deg, var(--accent-strong), var(--accent), var(--line-strong));
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-card:hover {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 50%, var(--surface-2) 100%);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-main strong {
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-main span {
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-meta small {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-meta small:last-child {
  border-color: var(--line-strong);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-actions button {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-flow-actions button:first-child {
  background: linear-gradient(180deg, var(--surface) 0%, var(--accent-soft) 100%);
}

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"]):not([data-client-theme="night"]) .composer {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface-2) 82%, var(--accent-soft)) 100%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface) 78%, rgba(255, 255, 255, 0.72)),
    0 6px 16px color-mix(in srgb, var(--accent) 14%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .composer input {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--room-composer-color, var(--text));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface) 70%, rgba(255, 255, 255, 0.62)),
    0 0 0 1px color-mix(in srgb, var(--accent-soft) 58%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .composer input:focus {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface) 70%, rgba(255, 255, 255, 0.62)),
    0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent),
    0 4px 12px color-mix(in srgb, var(--accent) 12%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .composer input::placeholder {
  color: var(--muted);
  opacity: 0.82;
}

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="light"] .room-head {
  background: #ffffff;
}

body[data-client-theme="darkwood"] .room-head {
  border-bottom-color: #4a3826;
  background:
    linear-gradient(180deg, #1e1610 0%, #2a1f14 100%);
  box-shadow:
    inset 0 1px 0 rgba(180, 140, 80, 0.12),
    0 2px 16px rgba(0, 0, 0, 0.35);
}
body[data-client-theme="darkwood"] .room-head h1 {
  margin: 0 0 5px;
  overflow: hidden;
  color: #e8dccc;
  font-size: 22px;
  line-height: 1.12;
  text-overflow: ellipsis;
  -webkit-text-stroke: 1px rgba(80, 50, 20, 0.6);
  text-shadow:
    0 1px 0 rgba(180, 130, 60, 0.5),
    0 2px 0 rgba(120, 80, 30, 0.45),
    0 3px 0 rgba(80, 50, 15, 0.35),
    0 4px 6px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(212, 160, 80, 0.18);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
body[data-client-theme="darkwood"] #roomName {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)),
    url('../img/darkwood.jpg');
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(212, 160, 80, 0.6);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(212, 160, 80, 0.22);
}
body[data-client-theme="darkwood"] .room-topic,
body[data-client-theme="darkwood"] .room-welcome {
  color: #b09880;
}
body[data-client-theme="darkwood"] .room-meta .meta-pill,
body[data-client-theme="darkwood"] .room-status,
body[data-client-theme="darkwood"] .room-owner-pill {
  background: rgba(180, 140, 80, 0.12);
  border-color: rgba(180, 140, 80, 0.25);
  color: #d4c8b8;
}
body[data-client-theme="darkwood"] .message {
  background: linear-gradient(105deg, #2a1f14 0%, rgba(60, 45, 30, 0.7) 46%, rgba(50, 38, 26, 0.5) 100%);
  border-color: rgba(180, 140, 80, 0.16);
}
body[data-client-theme="darkwood"] .message.mine {
  background: linear-gradient(105deg, #2a1f14 0%, rgba(180, 140, 80, 0.15) 48%, rgba(120, 80, 50, 0.12) 100%);
  border-color: rgba(180, 140, 80, 0.22);
}
body[data-client-theme="darkwood"] .composer-wrap {
  background: linear-gradient(180deg, #221a14 0%, #2a1f14 100%);
  border-top-color: #4a3826;
}
body[data-client-theme="darkwood"] .composer input {
  background: rgba(30, 22, 16, 0.6);
  border-color: #4a3826;
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .composer input::placeholder {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .conversation {
  background: #1a120e;
}
body[data-client-theme="darkwood"] #messages {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body[data-client-theme="darkwood"] .messages {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body[data-client-theme="darkwood"] .panel-action,
body[data-client-theme="darkwood"] #sendButton {
  border-color: #6d4f32;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(255, 255, 255, 0.02) 58%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, #3a260e 0%, #4a3218 48%, #5a3f24 100%);
  color: #e8dccc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow:
    inset 0 5px 12px rgba(0, 0, 0, 0.6),
    inset 0 -3px 8px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(212, 160, 80, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.05);
}
body[data-client-theme="darkwood"] .panel-action::before,
body[data-client-theme="darkwood"] #sendButton::before {
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 26%, rgba(255, 255, 255, 0) 52%);
}
body[data-client-theme="darkwood"] .panel-action:hover,
body[data-client-theme="darkwood"] #sendButton:hover {
  border-color: #8a6540;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(255, 255, 255, 0.03) 58%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(180deg, #4a3018 0%, #5a4020 48%, #6a4f30 100%);
}
body[data-client-theme="darkwood"] .panel-action.talk-idle {
  border-color: #8a6540;
  background: linear-gradient(180deg, #4a3218 0%, #5a3f24 100%);
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .panel-action.talk-talking {
  border-color: #a04030;
  background: linear-gradient(180deg, #501810 0%, #6a2818 100%);
  color: #ffd4cc;
}
body[data-client-theme="darkwood"] .panel-action.talk-queued {
  border-color: #5a7088;
  background: linear-gradient(180deg, #2a3848 0%, #3a4858 100%);
  color: #c8d8e8;
}
body[data-client-theme="darkwood"] .theme-toggle-button {
  border-color: #6d4f32;
  background: linear-gradient(180deg, #4a3826 0%, #3a2a1a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body[data-client-theme="darkwood"] .theme-toggle-button:hover {
  border-color: #8a6540;
  background: linear-gradient(180deg, #5a4832 0%, #4a3826 100%);
}
body[data-client-theme="darkwood"] .theme-toggle-button[data-theme="darkwood"] {
  border-color: #d4a050;
  background: linear-gradient(180deg, #6a4f30 0%, #5a3f24 100%);
  color: #e8dccc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-client-theme="darkwood"] .notification-center {
  border: 1px solid #4a3826;
  background: linear-gradient(180deg, rgba(42, 31, 20, 0.86), rgba(33, 22, 14, 0.9)) !important;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

body[data-client-theme="darkwood"] .notification-center header {
  background: #1a120e !important;
  border-bottom: 1px solid #5a3f24 !important;
}

body[data-client-theme="darkwood"] .notification-center header strong {
  color: #d0c0a8 !important;
}

body[data-client-theme="darkwood"] .notification-center header button {
  color: #d0c0a8 !important;
}

body[data-client-theme="darkwood"] .notification-center .notification-item {
  border: 1px solid #5a3f24 !important;
  background: linear-gradient(180deg, rgba(50, 37, 24, 0.92), rgba(42, 31, 20, 0.95)) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2) !important;
}
body[data-client-theme="darkwood"] .notification-center .notification-item.notification-item-unread {
  border-color: #a07830 !important;
  background: linear-gradient(180deg, rgba(70, 52, 28, 0.94), rgba(58, 43, 24, 0.96)) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24) !important;
}
body[data-client-theme="darkwood"] .notification-center .notification-item::before {
  background: #b09880;
}
body[data-client-theme="darkwood"] .notification-center .notification-item .notification-title {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .notification-center .notification-item .notification-body {
  color: #c8b8a0;
}
body[data-client-theme="darkwood"] .notification-center .notification-item .notification-time {
  color: #a08060;
}
body[data-client-theme="darkwood"] .notification-center .notification-empty {
  color: #8a7a68;
}
body[data-client-theme="darkwood"] .theme-moon-icon,
body[data-client-theme="darkwood"] .theme-sun-icon {
  fill: #d4a050;
}
body[data-client-theme="darkwood"] .text-tools button,
body[data-client-theme="darkwood"] .mod-call-button,
body[data-client-theme="darkwood"] .color-tool,
body[data-client-theme="darkwood"] .camera-watch,
body[data-client-theme="darkwood"] .camera-icon-button,
body[data-client-theme="darkwood"] .share-screen-button,
body[data-client-theme="darkwood"] .speaker-mute-button,
body[data-client-theme="darkwood"] .animaticon-button {
  border-color: #4a3826;
  background: rgba(42, 31, 20, 0.78);
  color: #d0c0a8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .text-tools button:hover,
body[data-client-theme="darkwood"] .mod-call-button:hover,
body[data-client-theme="darkwood"] .camera-watch:hover,
body[data-client-theme="darkwood"] .camera-icon-button:hover,
body[data-client-theme="darkwood"] .camera-icon-button.active,
body[data-client-theme="darkwood"] .share-screen-button:hover,
body[data-client-theme="darkwood"] .speaker-mute-button:hover,
body[data-client-theme="darkwood"] .animaticon-button:hover,
body[data-client-theme="darkwood"] .text-tools button.tool-active,
body[data-client-theme="darkwood"] .text-tools button:focus-visible,
body[data-client-theme="darkwood"] .speaker-mute-button.tool-active {
  border-color: #8a6540;
  background: rgba(74, 56, 38, 0.82);
  color: #f0e4d4;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2), inset 3px 0 0 rgba(212, 160, 80, 0.45);
}
body[data-client-theme="darkwood"] .smiley-panel,
body[data-client-theme="darkwood"] .text-format-panel {
  border-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}
body[data-client-theme="darkwood"] .smiley-panel input,
body[data-client-theme="darkwood"] .animaticon-panel input {
  background: rgba(30, 22, 16, 0.6);
  border-color: #4a3826;
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .smiley-panel input::placeholder,
body[data-client-theme="darkwood"] .animaticon-panel input::placeholder {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .text-format-panel select {
  background: #332518;
  border-color: #4a3826;
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .smiley-panel .smiley-choice:hover,
body[data-client-theme="darkwood"] .animaticon-panel .smiley-choice:hover {
  background: rgba(212, 160, 80, 0.12);
}
body[data-client-theme="darkwood"] .theme-swatch-darkwood {
  border-color: #d4a050;
}
body[data-client-theme="darkwood"] .audio-settings-popover {
  border-color: #4a3826;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(212, 160, 80, 0.03) 42%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body[data-client-theme="darkwood"] .audio-settings-popover .audio-source-controls {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .audio-settings-popover .audio-source-controls label {
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .audio-settings-popover .audio-source-controls select {
  border-color: #4a3826;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
  color: #e8dccc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .audio-settings-popover .personal-style-controls {
  border-bottom-color: rgba(74, 56, 38, 0.5);
}
body[data-client-theme="darkwood"] .audio-settings-popover .personal-style-controls label {
  color: #b09880;
}
body[data-client-theme="darkwood"] .audio-settings-popover .personal-style-controls select {
  border-color: #4a3826;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
  color: #e8dccc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .audio-settings-popover .audio-test-popover-button {
  border-color: #4a3826;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
  color: #d4a050;
}
body[data-client-theme="darkwood"] .audio-settings-popover .audio-test-popover-button:hover {
  border-color: #6b4f30;
  background: linear-gradient(180deg, #4a3826 0%, #332518 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
body[data-client-theme="darkwood"] .friend-row,
body[data-client-theme="darkwood"] .friend-row.friend-added {
  border-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .friend-row.friend-added.friend-offline {
  border-color: #5a2a20;
  background: linear-gradient(180deg, #3d1e18 0%, #2a1410 100%);
}
body[data-client-theme="darkwood"] .friend-row.friend-added.friend-offline .friend-main strong {
  color: #e8a8a0;
}
body[data-client-theme="darkwood"] .friend-row.friend-added.friend-offline .friend-main small {
  color: #a07868;
}
body[data-client-theme="darkwood"] .friend-row:hover {
  border-color: #8a6540;
  background: linear-gradient(180deg, #3d2e1e 0%, #332518 100%);
}
body[data-client-theme="darkwood"] .friend-main strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .friend-main small {
  color: #a09080;
}
body[data-client-theme="darkwood"] .friend-row button {
  border-color: #4a3826;
  background: rgba(42, 31, 20, 0.78);
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .friend-row button:hover:not(:disabled) {
  border-color: #8a6540;
  background: rgba(74, 56, 38, 0.82);
  color: #f0e4d4;
}
body[data-client-theme="darkwood"] .pending-requests-header {
  border-color: #6d4f32;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
  color: #d4a050;
}
body[data-client-theme="darkwood"] .pending-request-row {
  border-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
}
body[data-client-theme="darkwood"] .pending-request-row .friend-main strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .pending-request-row .friend-main small {
  color: #a09080;
}
body[data-client-theme="darkwood"] .pending-accept {
  border-color: #4a6832;
  background: rgba(40, 60, 30, 0.78);
  color: #a8d890;
}
body[data-client-theme="darkwood"] .pending-accept:hover {
  border-color: #6a9048;
  background: rgba(56, 80, 40, 0.82);
}
body[data-client-theme="darkwood"] .pending-reject {
  border-color: #6d3228;
  background: rgba(60, 30, 24, 0.78);
  color: #e0a090;
}
body[data-client-theme="darkwood"] .pending-reject:hover {
  border-color: #a04838;
  background: rgba(80, 40, 32, 0.82);
}
body[data-client-theme="darkwood"] .admin-room-row {
  border-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  color: #b09880;
}
body[data-client-theme="darkwood"] .admin-room-row strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .admin-room-row span {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .admin-room-row:hover,
body[data-client-theme="darkwood"] .admin-room-row.active {
  border-color: #d4a050;
  background:
    linear-gradient(180deg, rgba(212, 160, 80, 0.1), rgba(0, 0, 0, 0.08)),
    linear-gradient(180deg, #3d2e1e 0%, #332518 100%);
}
body[data-client-theme="darkwood"] .text-format-panel button,
body[data-client-theme="darkwood"] .text-format-panel .color-tool {
  border-color: #4a3826;
  background: rgba(42, 31, 20, 0.78);
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .text-format-panel button:hover {
  border-color: #8a6540;
  background: rgba(74, 56, 38, 0.82);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
body[data-client-theme="darkwood"] .text-format-panel button.tool-active {
  border-color: #d4a050;
  background: linear-gradient(180deg, #d4a050 0%, #b08040 48%, #8a6530 100%);
  color: #1a120e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 5px 14px rgba(180, 130, 60, 0.24);
}
body[data-client-theme="darkwood"] .login-card {
  border-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  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="darkwood"] .login-titlebar {
  border-bottom-color: #4a3826;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .login-titlebar button {
  border-color: #6d3228;
  background: rgba(60, 30, 24, 0.64);
  color: #e0a090;
}
body[data-client-theme="darkwood"] .login-card h1,
body[data-client-theme="darkwood"] .login-card h2 {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .login-card p,
body[data-client-theme="darkwood"] .login-card label {
  color: #b09880;
}
body[data-client-theme="darkwood"] .login-card input:not([type="checkbox"]),
body[data-client-theme="darkwood"] .login-card input[type="password"] {
  border-color: #4a3826;
  background-color: #2a1f14 !important;
  background-image: linear-gradient(180deg, #332518 0%, #2a1f14 100%) !important;
  color: #e8dccc !important;
  -webkit-text-fill-color: #e8dccc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  caret-color: #d4a050;
}
body[data-client-theme="darkwood"] .login-card input:not([type="checkbox"])::placeholder,
body[data-client-theme="darkwood"] .login-card input[type="password"]::placeholder {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .login-card input:not([type="checkbox"]):focus,
body[data-client-theme="darkwood"] .login-card input[type="password"]:focus {
  border-color: #8a6540;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 2px rgba(212, 160, 80, 0.2);
}
body[data-client-theme="darkwood"] .login-card .auth-field {
  background: transparent;
  border-color: #4a3826;
}
body[data-client-theme="darkwood"] .side #roomsPanel {
  background: linear-gradient(90deg, #2a1f14 0%, #332518 56%, #3d2e1e 100%) !important;
}
body[data-client-theme="darkwood"].mobile-layout .mobile-action-bar {
  border-color: #4a3826;
  background: linear-gradient(180deg, rgba(51, 37, 24, 0.96) 0%, rgba(42, 31, 20, 0.96) 100%) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}
body[data-client-theme="darkwood"].mobile-layout .mobile-action-bar .mobile-nav-tool,
body[data-client-theme="darkwood"].mobile-layout .mobile-action-bar .mobile-primary-tool {
  border-color: #4a3826;
  background: rgba(42, 31, 20, 0.82) !important;
  color: #d0c0a8;
}
body[data-client-theme="darkwood"].mobile-layout .mobile-action-bar .mobile-nav-tool:hover,
body[data-client-theme="darkwood"].mobile-layout .mobile-action-bar .mobile-primary-tool:hover,
body[data-client-theme="darkwood"].mobile-layout .mobile-action-bar .mobile-nav-tool.active,
body[data-client-theme="darkwood"].mobile-layout .mobile-action-bar .mobile-primary-tool.active {
  border-color: #8a6540;
  background: rgba(74, 56, 38, 0.88) !important;
  color: #e8dccc;
}
body[data-client-theme="darkwood"].mobile-layout .mobile-action-bar .mobile-nav-tool::before,
body[data-client-theme="darkwood"].mobile-layout .mobile-action-bar .mobile-primary-tool::before {
  background: rgba(80, 55, 30, 0.5);
}
body[data-client-theme="darkwood"].mobile-layout .mobile-action-bar::before {
  color: #b09880;
  background: linear-gradient(90deg, rgba(51, 37, 24, 0.98) 0%, rgba(51, 37, 24, 0) 100%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.34);
}
body[data-client-theme="darkwood"].mobile-layout .mobile-action-bar::after {
  color: #b09880;
  background: linear-gradient(270deg, rgba(51, 37, 24, 0.98) 0%, rgba(51, 37, 24, 0) 100%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.34);
}
body[data-client-theme="darkwood"].mobile-layout .side .tab-panel,
body[data-client-theme="darkwood"].mobile-layout .mobile-admin-panel,
body[data-client-theme="darkwood"].mobile-layout .mobile-chat-menu-panel {
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%) !important;
}
body[data-client-theme="darkwood"].mobile-layout .mobile-audio-settings {
  border-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
}
body[data-client-theme="darkwood"].mobile-layout .mobile-audio-settings label {
  color: #b09880;
}
body[data-client-theme="darkwood"].mobile-layout .mobile-audio-settings select {
  border-color: #4a3826;
  background: #2a1f14;
  color: #e8dccc;
}
body[data-client-theme="darkwood"].mobile-layout .mobile-personal-style-controls {
  border-bottom-color: rgba(74, 56, 38, 0.5);
}
body[data-client-theme="darkwood"].mobile-layout .mobile-audio-test-button {
  border-color: #4a3826;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
  color: #b09880;
}
body[data-client-theme="darkwood"].mobile-layout .mobile-audio-test-button:hover {
  border-color: #6d4f32;
  background: linear-gradient(180deg, #4a3826 0%, #3a2a1a 100%);
}
body[data-client-theme="darkwood"].mobile-layout .mobile-rail-toggle {
  border-color: #4a3826;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 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="darkwood"].mobile-layout .mobile-rail-toggle::before {
  border-color: #d4a050;
}
body[data-client-theme="darkwood"].mobile-layout .room-menu-button {
  border-color: #6d4f32;
  background: linear-gradient(180deg, #4a3826 0%, #3a2a1a 100%);
  color: #e8dccc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 4px 12px rgba(0, 0, 0, 0.28);
}
body[data-client-theme="darkwood"].mobile-layout .room-menu-button:hover {
  border-color: #8a6540;
  background: linear-gradient(180deg, #5a4832 0%, #4a3826 100%);
  color: #e8dccc;
  box-shadow:
    0 0 10px rgba(212, 160, 80, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}
body[data-client-theme="darkwood"].mobile-layout .room-profile-button {
  border-color: #4a3826;
  background: rgba(42, 31, 20, 0.78);
}
body[data-client-theme="darkwood"].mobile-layout .room-profile-button:hover {
  border-color: #8a6540;
}
body[data-client-theme="darkwood"].mobile-layout .mobile-notification-mark {
  color: #d4a050;
}
body[data-client-theme="darkwood"].mobile-layout .notification-center {
  border-color: #4a3826;
  background: rgba(42, 31, 20, 0.98);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.42);
}
body[data-client-theme="darkwood"].mobile-layout .voice-queue-panel {
  border-color: #4a3826;
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
}
body[data-client-theme="darkwood"].mobile-layout .room-event-card {
  border-color: #4a3826;
  background: linear-gradient(90deg,
    rgba(42, 31, 20, 0.98) 0%,
    rgba(51, 37, 24, 0.97) 38%,
    rgba(61, 46, 30, 0.96) 72%,
    rgba(42, 31, 20, 0.98) 100%);
}
body[data-client-theme="darkwood"].mobile-layout .conversion-prompt {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
body[data-client-theme="darkwood"].mobile-layout .composer-wrap > .smiley-panel,
body[data-client-theme="darkwood"] .private-window {
  border-color: #4a3826;
  background: #1a120e;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body[data-client-theme="darkwood"] .private-window::after {
  background:
    linear-gradient(135deg, transparent 0 45%, #6d4f32 46% 52%, transparent 53%),
    linear-gradient(135deg, transparent 0 62%, #6d4f32 63% 69%, transparent 70%);
}
body[data-client-theme="darkwood"] .private-window .private-smiley-panel,
body[data-client-theme="darkwood"] .private-window .private-text-format-panel {
  border-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%) !important;
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.32);
}
body[data-client-theme="darkwood"] .private-window .private-tools {
  border-top-color: #4a3826 !important;
  border-bottom-color: #4a3826 !important;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%) !important;
}
body[data-client-theme="darkwood"] .private-window .private-titlebar {
  border-bottom-color: #4a3826 !important;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%) !important;
  color: #e8dccc !important;
}
body[data-client-theme="darkwood"] .private-window .private-title strong {
  color: #e8dccc !important;
}
body[data-client-theme="darkwood"] .private-window .private-typing {
  color: #d4a050 !important;
}
body[data-client-theme="darkwood"] .private-window .private-window-actions button {
  border-color: #4a3826 !important;
  background: rgba(42, 31, 20, 0.86) !important;
  color: #d0c0a8 !important;
}
body[data-client-theme="darkwood"] .private-window .private-text-format-panel select,
body[data-client-theme="darkwood"] .private-window .private-tools button,
body[data-client-theme="darkwood"] .private-window .private-tools .color-tool {
  border-color: #4a3826 !important;
  background: rgba(42, 31, 20, 0.86) !important;
  color: #d0c0a8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .private-window .private-composer {
  border-top: 1px solid #4a3826;
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%) !important;
}
body[data-client-theme="darkwood"] .private-window .private-composer input {
  border-color: #4a3826 !important;
  background: #2a1f14 !important;
  color: #e8dccc !important;
}
body[data-client-theme="darkwood"] .private-window .private-composer button {
  border-color: #6d4f32 !important;
  background: linear-gradient(180deg, #5a3f24 0%, #3a260e 100%) !important;
  color: #e8dccc !important;
}
body[data-client-theme="darkwood"] .private-window .private-messages {
  background: url('../img/darkwood.jpg') center/cover no-repeat;
}
body[data-client-theme="darkwood"] .private-messages {
  background: url('../img/darkwood.jpg') center/cover no-repeat;
}
body[data-client-theme="darkwood"] .private-window .private-messages .private-empty {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .private-message {
  background: linear-gradient(105deg, #2a1f14 0%, rgba(60, 45, 30, 0.7) 46%, rgba(50, 38, 26, 0.5) 100%);
  border-color: rgba(180, 140, 80, 0.16);
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .private-message.mine {
  background: linear-gradient(105deg, #2a1f14 0%, rgba(180, 140, 80, 0.15) 48%, rgba(120, 80, 50, 0.12) 100%);
  border-color: rgba(180, 140, 80, 0.22);
}
body[data-client-theme="darkwood"] .private-window .private-smiley-panel input {
  border-color: #4a3826 !important;
  background: #2a1f14 !important;
  color: #e8dccc !important;
}
body[data-client-theme="darkwood"] .private-window .private-smiley-panel .smiley-choice {
  border-color: #4a3826;
}
body[data-client-theme="darkwood"] .private-window .private-smiley-panel .smiley-empty {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .private-window .color-swatch {
  background-color: #2a1f14;
  border-color: #4a3826;
}
body[data-client-theme="darkwood"].mobile-layout .mobile-admin-menu button {
  border-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  color: #d0c0a8;
}
body[data-client-theme="darkwood"].mobile-layout .mobile-admin-menu button span {
  color: #d4a050;
}

body[data-client-theme="darkwood"].mobile-layout .mobile-sheet-head {
  border-bottom-color: #4a3826;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
  color: #e8dccc;
}
body[data-client-theme="darkwood"].mobile-layout .mobile-sheet-head strong {
  color: #e8dccc;
  text-shadow: 0 0 8px rgba(212, 160, 80, 0.18);
}
body[data-client-theme="darkwood"].mobile-layout .mobile-sheet-head button {
  border-color: #4a3826;
  background: #332518;
  color: #e8dccc;
}
body[data-client-theme="darkwood"].mobile-layout .mobile-sheet-head button:hover {
  border-color: #6d4f32;
  background: #4a3826;
}

/* ═══════════════════════════════════════════════════
   DARKWOOD ADMIN DASHBOARD
   ═══════════════════════════════════════════════════ */
body[data-client-theme="darkwood"] .admin-dashboard-overlay {
  background: rgba(0, 0, 0, 0.5);
}
body[data-client-theme="darkwood"] .admin-dashboard-panel {
  border-color: #4a3826;
  background: #2a1f14;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .admin-dashboard-header {
  background: linear-gradient(180deg, #3d2e1e, #1a120e);
  border-bottom-color: #4a3826;
}
body[data-client-theme="darkwood"] .admin-dashboard-close {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .admin-dashboard-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
body[data-client-theme="darkwood"] .admin-dashboard-sidebar {
  background: #1a120e;
  border-right-color: #4a3826;
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 56, 38, 0.5) transparent;
}
body[data-client-theme="darkwood"] .admin-dashboard-sidebar::-webkit-scrollbar {
  width: 5px;
}
body[data-client-theme="darkwood"] .admin-dashboard-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
body[data-client-theme="darkwood"] .admin-dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(74, 56, 38, 0.5);
  border-radius: 999px;
}
body[data-client-theme="darkwood"] .admin-dashboard-sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(106, 79, 50, 0.65);
}
body[data-client-theme="darkwood"] .admin-dashboard-profile {
  border-bottom-color: #4a3826;
  background: rgba(0, 0, 0, 0.2);
}
body[data-client-theme="darkwood"] .admin-dashboard-profile-name {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .admin-dashboard-profile-role {
  color: #b09880;
}
body[data-client-theme="darkwood"] .admin-dashboard-profile-avatar-fallback {
  background: #8a6540;
  color: #fff;
}
body[data-client-theme="darkwood"] .admin-dashboard-sidebar > [data-dashboard-action] {
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .admin-dashboard-sidebar > [data-dashboard-action]:hover {
  background: rgba(255, 255, 255, 0.05);
}
body[data-client-theme="darkwood"] .admin-dashboard-sidebar > [data-dashboard-action].active {
  background: rgba(212, 160, 80, 0.14);
  color: #e8dccc;
  border-left-color: #d4a050;
}
body[data-client-theme="darkwood"] .admin-dashboard-content {
  background: #2a1f14;
}
body[data-client-theme="darkwood"] .admin-dashboard-welcome {
  color: #b09880;
}
body[data-client-theme="darkwood"] .admin-dashboard-welcome strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .admin-dashboard-welcome-logo-fallback {
  background: linear-gradient(135deg, #8a6540, #d4a050);
  color: #fff;
}
body[data-client-theme="darkwood"] .admin-dashboard-footer {
  background: #1a120e;
  border-top-color: #4a3826;
  color: #b09880;
}
body[data-client-theme="darkwood"] .admin-dashboard-footer a {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .admin-dashboard-footer-sep {
  color: #4a3826;
}
body[data-client-theme="darkwood"] .admin-dashboard-footer .admin-dash-logo-fallback {
  background: linear-gradient(135deg, #8a6540, #d4a050);
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   DARKWOOD ADMIN WINDOW (titlebar, statusbar, table)
   ═══════════════════════════════════════════════════ */
body[data-client-theme="darkwood"] .admin-window {
  border-color: #4a3826;
  background: #2a1f14;
  color: #d0c0a8;
  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="darkwood"] .admin-window::after {
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(212, 160, 80, 0.42) 46% 52%, transparent 53%),
    linear-gradient(135deg, transparent 0 62%, rgba(212, 160, 80, 0.42) 63% 69%, transparent 70%);
}
body[data-client-theme="darkwood"] .admin-titlebar,
body[data-client-theme="darkwood"] .admin-blue-window .admin-titlebar,
body[data-client-theme="darkwood"] .admin-orange-window .admin-titlebar,
body[data-client-theme="darkwood"] .admin-brown-window .admin-titlebar,
body[data-client-theme="darkwood"] .admin-black-window .admin-titlebar {
  border-bottom-color: #4a3826;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(212, 160, 80, 0.04)),
    linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
  color: #e8dccc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body[data-client-theme="darkwood"] .admin-titlebar strong,
body[data-client-theme="darkwood"] .admin-brown-window .admin-titlebar strong,
body[data-client-theme="darkwood"] .admin-black-window .admin-titlebar strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .admin-titlebar .admin-titlebar-close,
body[data-client-theme="darkwood"] .admin-blue-window .admin-titlebar .admin-titlebar-close,
body[data-client-theme="darkwood"] .admin-orange-window .admin-titlebar .admin-titlebar-close,
body[data-client-theme="darkwood"] .admin-brown-window .admin-titlebar .admin-titlebar-close,
body[data-client-theme="darkwood"] .admin-black-window .admin-titlebar .admin-titlebar-close {
  border-color: #6d3228;
  background: rgba(60, 30, 24, 0.64);
  color: #e0a090;
}
body[data-client-theme="darkwood"] .admin-titlebar .admin-titlebar-close:hover {
  background: rgba(100, 40, 30, 0.72);
}
body[data-client-theme="darkwood"] .admin-window-statusbar {
  border-top-color: #4a3826;
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
  color: #8a7560;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body[data-client-theme="darkwood"] .admin-window-toolbar {
  border-bottom-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  color: #d0c0a8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .admin-window-toolbar span,
body[data-client-theme="darkwood"] .admin-date-filter,
body[data-client-theme="darkwood"] .admin-search-field,
body[data-client-theme="darkwood"] .admin-room-form label,
body[data-client-theme="darkwood"] .admin-user-form label,
body[data-client-theme="darkwood"] .complaint-window .complaint-form label,
body[data-client-theme="darkwood"] .broadcast-message-form label,
body[data-client-theme="darkwood"] .site-settings-section h3,
body[data-client-theme="darkwood"] .site-settings-form .site-toggle-check,
body[data-client-theme="darkwood"] .site-bot-toggle,
body[data-client-theme="darkwood"] .site-bot-welcome-section small,
body[data-client-theme="darkwood"] .site-bot-chat-section small,
body[data-client-theme="darkwood"] .mini-user-fields label {
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .admin-window-toolbar button,
body[data-client-theme="darkwood"] .admin-room-form footer button,
body[data-client-theme="darkwood"] .admin-user-form footer button,
body[data-client-theme="darkwood"] .word-filter-item {
  border-color: #6d4f32;
  background: linear-gradient(180deg, #5a3f24 0%, #3a260e 100%);
  color: #e8dccc;
  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="darkwood"] .admin-window-toolbar button:hover,
body[data-client-theme="darkwood"] .admin-room-form footer button:hover,
body[data-client-theme="darkwood"] .admin-user-form footer button:hover {
  border-color: #8a6540;
  background: linear-gradient(180deg, #6d4f32 0%, #4a3826 100%);
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .admin-window-toolbar button.upgrade-button {
  background: linear-gradient(180deg, #8a6540, #6d4f32);
  border-color: #d4a050;
  color: #1a120e;
}
body[data-client-theme="darkwood"] .admin-window-toolbar button.upgrade-button:hover {
  background: linear-gradient(180deg, #a07848, #8a6540);
  border-color: #e0b060;
  color: #1a120e;
}
body[data-client-theme="darkwood"] .toolbar-sep {
  background: #6d4f32;
}
body[data-client-theme="darkwood"] .admin-date-filter input,
body[data-client-theme="darkwood"] .admin-search-field input,
body[data-client-theme="darkwood"] .admin-online-filter {
  border-color: #4a3826;
  background: #2a1f14;
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .admin-table-wrap {
  border-color: #4a3826;
  background: #2a1f14;
  color: #d0c0a8;
}

/* ═══════════════════════════════════════════════════
   DARKWOOD ADMIN DATA TABLE
   ═══════════════════════════════════════════════════ */
body[data-client-theme="darkwood"] .admin-data-table td,
body[data-client-theme="darkwood"] .admin-data-table th {
  border-color: #4a3826;
}
body[data-client-theme="darkwood"] .admin-data-table,
body[data-client-theme="darkwood"] .admin-data-table th {
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .admin-data-table tbody td,
body[data-client-theme="darkwood"] .admin-data-table tbody tr:nth-child(even) td {
  background: #2a1f14;
}
body[data-client-theme="darkwood"] .admin-data-table th,
body[data-client-theme="darkwood"] .admin-data-table tbody tr:hover td,
body[data-client-theme="darkwood"] .admin-data-table tbody tr.selected-row td {
  background: rgba(212, 160, 80, 0.1);
}

/* ═══════════════════════════════════════════════════
   DARKWOOD ADMIN USER MANAGEMENT (right panel)
   ═══════════════════════════════════════════════════ */
body[data-client-theme="darkwood"] .admin-room-manager,
body[data-client-theme="darkwood"] .admin-user-manager {
  background: #2a1f14;
}
body[data-client-theme="darkwood"] .admin-user-list-wrap {
  border-color: #4a3826;
}
body[data-client-theme="darkwood"] .admin-user-table td:nth-child(2) {
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .admin-user-online {
  color: #81c784;
}
body[data-client-theme="darkwood"] .mini-user-window {
  border-color: #4a3826;
  background: #1a120e;
  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="darkwood"] .mini-user-window::after {
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(212, 160, 80, 0.42) 46% 52%, transparent 53%),
    linear-gradient(135deg, transparent 0 62%, rgba(212, 160, 80, 0.42) 63% 69%, transparent 70%);
}
body[data-client-theme="darkwood"] .mini-user-window .admin-window-body {
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
}
body[data-client-theme="darkwood"] .mini-user-window .admin-user-form input,
body[data-client-theme="darkwood"] .mini-user-window .admin-user-form select,
body[data-client-theme="darkwood"] .mini-user-window .admin-user-form textarea {
  border-color: #4a3826;
  background: #1a120e;
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .mini-user-window .admin-user-form input:disabled {
  background: #2a1f14;
  color: #8a7560;
}

/* ═══════════════════════════════════════════════════
   DARKWOOD ADMIN ROOM MANAGEMENT
   ═══════════════════════════════════════════════════ */
body[data-client-theme="darkwood"] .admin-room-picker {
  border-right-color: #4a3826;
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
}
body[data-client-theme="darkwood"] .admin-room-picker-head {
  border-bottom-color: #4a3826;
  background:
    linear-gradient(180deg, rgba(212, 160, 80, 0.1), rgba(0, 0, 0, 0.08)),
    linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  color: #d4a050;
}
body[data-client-theme="darkwood"] .admin-room-filter,
body[data-client-theme="darkwood"] .admin-room-create-form {
  border-bottom-color: #4a3826;
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .admin-room-filter input,
body[data-client-theme="darkwood"] .admin-room-create-form input {
  border-color: #4a3826;
  background: #1a120e;
  color: #e8dccc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .admin-room-filter input::placeholder,
body[data-client-theme="darkwood"] .admin-room-create-form input::placeholder {
  color: #6d5a48;
  opacity: 1;
}
body[data-client-theme="darkwood"] .admin-room-create-form button {
  border-color: #8a6540;
  background: linear-gradient(180deg, rgba(138, 101, 64, 0.96), rgba(90, 63, 36, 0.96));
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .admin-room-picker-list {
  border-color: #4a3826;
}
body[data-client-theme="darkwood"] .admin-room-row {
  border-color: #4a3826;
  background: linear-gradient(180deg, #2a1f14 0%, #332518 100%);
  color: #b09880;
}
body[data-client-theme="darkwood"] .admin-room-row strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .admin-room-row span {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .admin-room-row:hover,
body[data-client-theme="darkwood"] .admin-room-row.active {
  border-color: #8a6540;
  background:
    linear-gradient(180deg, rgba(212, 160, 80, 0.1), rgba(0, 0, 0, 0.08)),
    linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
}
body[data-client-theme="darkwood"] .admin-room-order-actions button {
  border-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  color: #d0c0a8;
}

/* ═══════════════════════════════════════════════════
   DARKWOOD ADMIN FORMS (room-form, user-form)
   ═══════════════════════════════════════════════════ */
body[data-client-theme="darkwood"] .admin-room-form,
body[data-client-theme="darkwood"] .admin-user-form,
body[data-client-theme="darkwood"] .room-owner-settings-form,
body[data-client-theme="darkwood"] .broadcast-message-form,
body[data-client-theme="darkwood"] .complaint-window .complaint-form {
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .admin-room-form input,
body[data-client-theme="darkwood"] .admin-room-form select,
body[data-client-theme="darkwood"] .admin-room-form textarea,
body[data-client-theme="darkwood"] .admin-user-form input,
body[data-client-theme="darkwood"] .admin-user-form select,
body[data-client-theme="darkwood"] .admin-user-form textarea,
body[data-client-theme="darkwood"] .admin-date-filter input,
body[data-client-theme="darkwood"] .admin-search-field input,
body[data-client-theme="darkwood"] .admin-online-filter,
body[data-client-theme="darkwood"] .mini-user-fields input {
  border-color: #4a3826;
  background: #1a120e;
  color: #e8dccc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .admin-room-form input:disabled,
body[data-client-theme="darkwood"] .admin-room-form select:disabled,
body[data-client-theme="darkwood"] .admin-room-form textarea:disabled,
body[data-client-theme="darkwood"] .admin-user-form input:disabled,
body[data-client-theme="darkwood"] .admin-user-form select:disabled,
body[data-client-theme="darkwood"] .admin-user-form textarea:disabled {
  background: #2a1f14;
  color: #8a7560;
  opacity: 1;
}
body[data-client-theme="darkwood"] .admin-room-form input::placeholder,
body[data-client-theme="darkwood"] .admin-room-form textarea::placeholder,
body[data-client-theme="darkwood"] .admin-user-form input::placeholder,
body[data-client-theme="darkwood"] .admin-user-form textarea::placeholder,
body[data-client-theme="darkwood"] .admin-search-field input::placeholder {
  color: #6d5a48;
  opacity: 1;
}
body[data-client-theme="darkwood"] .admin-room-form fieldset {
  border-color: #4a3826;
  background: #1a120e;
}
body[data-client-theme="darkwood"] .admin-room-form fieldset[data-category="general"] {
  border-color: rgba(129, 199, 132, 0.35);
  background: linear-gradient(180deg, rgba(129, 199, 132, 0.08), #1a120e 100%);
}
body[data-client-theme="darkwood"] .admin-room-form fieldset[data-category="voice"] {
  border-color: rgba(255, 183, 77, 0.35);
  background: linear-gradient(180deg, rgba(255, 183, 77, 0.08), #1a120e 100%);
}
body[data-client-theme="darkwood"] .admin-room-form fieldset[data-category="event"] {
  border-color: rgba(79, 195, 247, 0.35);
  background: linear-gradient(180deg, rgba(79, 195, 247, 0.08), #1a120e 100%);
}
body[data-client-theme="darkwood"] .admin-room-form fieldset[data-category="ad"] {
  border-color: rgba(240, 98, 146, 0.35);
  background: linear-gradient(180deg, rgba(240, 98, 146, 0.08), #1a120e 100%);
}
body[data-client-theme="darkwood"] .admin-room-form fieldset[data-category="appearance"] {
  border-color: rgba(206, 147, 216, 0.35);
  background: linear-gradient(180deg, rgba(206, 147, 216, 0.08), #1a120e 100%);
}
body[data-client-theme="darkwood"] .admin-room-form fieldset[data-category="access"] {
  border-color: #4a3826;
  background: linear-gradient(180deg, rgba(212, 160, 80, 0.06), #1a120e 100%);
}
body[data-client-theme="darkwood"] .admin-room-form legend {
  color: #b09880;
}
body[data-client-theme="darkwood"] .admin-room-form fieldset[data-category="general"] legend { color: #81c784; }
body[data-client-theme="darkwood"] .admin-room-form fieldset[data-category="voice"] legend { color: #ffb74d; }
body[data-client-theme="darkwood"] .admin-room-form fieldset[data-category="event"] legend { color: #4fc3f7; }
body[data-client-theme="darkwood"] .admin-room-form fieldset[data-category="ad"] legend { color: #f06292; }
body[data-client-theme="darkwood"] .admin-room-form fieldset[data-category="appearance"] legend { color: #ce93d8; }
body[data-client-theme="darkwood"] .admin-room-form fieldset[data-category="access"] legend { color: #b09880; }

body[data-client-theme="darkwood"] .admin-room-tab {
  border-color: #4a3826;
  background: #2a1f14;
  color: #b09880;
}

body[data-client-theme="darkwood"] .admin-room-tab:hover {
  background: #3a2b1b;
}

body[data-client-theme="darkwood"] .admin-room-tab.active {
  background: #8a7560;
  border-color: #8a7560;
  color: #1a120e;
}

body[data-client-theme="darkwood"] .admin-room-tab.active[data-room-tab="general"] { background: #81c784; border-color: #81c784; color: #1a120e; }
body[data-client-theme="darkwood"] .admin-room-tab.active[data-room-tab="voice"] { background: #ffb74d; border-color: #ffb74d; color: #1a120e; }
body[data-client-theme="darkwood"] .admin-room-tab.active[data-room-tab="event"] { background: #4fc3f7; border-color: #4fc3f7; color: #1a120e; }
body[data-client-theme="darkwood"] .admin-room-tab.active[data-room-tab="ad"] { background: #f06292; border-color: #f06292; color: #1a120e; }
body[data-client-theme="darkwood"] .admin-room-tab.active[data-room-tab="appearance"] { background: #ce93d8; border-color: #ce93d8; color: #1a120e; }
body[data-client-theme="darkwood"] .admin-room-tab.active[data-room-tab="gradient"] { background: #4db6ac; border-color: #4db6ac; color: #1a120e; }
body[data-client-theme="darkwood"] .admin-room-tab.active[data-room-tab="access"] { background: #b09880; border-color: #b09880; color: #1a120e; }

body[data-client-theme="darkwood"] .admin-room-form-empty,
body[data-client-theme="darkwood"] .admin-room-empty,
body[data-client-theme="darkwood"] .admin-role-preview.empty {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .admin-role-preview strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .admin-room-form-message {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .admin-room-checks label {
  color: #b09880;
}

/* ═══════════════════════════════════════════════════
   DARKWOOD SITE SETTINGS
   ═══════════════════════════════════════════════════ */
body[data-client-theme="darkwood"] .site-settings-section,
body[data-client-theme="darkwood"] .broadcast-recipient-section,
body[data-client-theme="darkwood"] .room-owner-settings-form .readonly-owner-label {
  border-color: #4a3826;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(212, 160, 80, 0.03)),
    linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .site-settings-section h3 {
  border-left-color: #d4a050;
}
body[data-client-theme="darkwood"] .site-feature-toggles {
  border-color: #6d4f32;
  background: #2a1f14;
}
body[data-client-theme="darkwood"] .site-feature-toggles legend {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .site-features-checkboxes label {
  color: #b09880;
}
body[data-client-theme="darkwood"] .site-features-checkboxes label:has(input:disabled) {
  color: #6d5a48;
}
body[data-client-theme="darkwood"] .site-settings-footer .primary {
  border-color: #8a6540;
  background: linear-gradient(180deg, #8a6540 0%, #6d4f32 100%);
  color: #1a120e;
}
body[data-client-theme="darkwood"] .site-settings-footer .secondary {
  border-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  color: #b09880;
}
body[data-client-theme="darkwood"] .site-settings-bot-section {
  border-color: #6d4f32;
  background: linear-gradient(160deg, #2a1f14 0%, #1a120e 100%);
}
body[data-client-theme="darkwood"] .site-settings-bot-section h3 {
  color: #d4a050;
  border-left-color: #8a6540;
}
body[data-client-theme="darkwood"] .site-settings-bot-section .meta {
  color: #b09880;
}
body[data-client-theme="darkwood"] .site-bot-select-label select {
  border-color: #4a3826;
  background: #1a120e;
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .site-bot-select-label select:focus {
  border-color: #8a6540;
  box-shadow: 0 0 0 2px rgba(212, 160, 80, 0.25);
}
body[data-client-theme="darkwood"] .site-bot-select-info {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .site-bot-empty-message {
  color: #6d5a48;
}
body[data-client-theme="darkwood"] .site-bot-editor {
  border-color: #4a3826;
  background: #1a120e;
}
body[data-client-theme="darkwood"] .site-bot-editor-header {
  background: linear-gradient(135deg, #332518, #2a1f14);
  border-bottom-color: #4a3826;
}
body[data-client-theme="darkwood"] .site-bot-editor-avatar-fallback {
  background: linear-gradient(135deg, #8a6540, #d4a050);
}
body[data-client-theme="darkwood"] .site-bot-editor-name {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .mode-welcome {
  background: #2a1f14;
  color: #81c784;
}
body[data-client-theme="darkwood"] .site-settings-note {
  border-color: rgba(212, 160, 80, 0.26);
  background:
    linear-gradient(180deg, rgba(212, 160, 80, 0.1), rgba(0, 0, 0, 0.08)),
    linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  color: #d4a050;
}
body[data-client-theme="darkwood"] .site-settings-note-inline {
  color: #b09880;
}
body[data-client-theme="darkwood"] .site-settings-plan-limits {
  color: #b09880;
}
body[data-client-theme="darkwood"] .plan-limit-item strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .site-rent-tag .tag-label {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .site-rent-end-tag strong {
  color: #e0b060;
}
body[data-client-theme="darkwood"] .site-plan-label {
  background: #332518;
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .site-plan-label strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .site-info-tag {
  background: #2a1f14;
  border-color: #4a3826;
  color: #b09880;
}
body[data-client-theme="darkwood"] .site-info-tag .tag-label {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .site-info-tag strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .upgrade-plan-card {
  background: #2a1f14;
  border-color: #4a3826;
}
body[data-client-theme="darkwood"] .upgrade-plan-card.current-plan {
  border-color: #81c784;
  box-shadow: 0 0 0 1px #81c784, 0 4px 16px rgba(129, 199, 132, 0.2);
}
body[data-client-theme="darkwood"] .upgrade-plan-head {
  background: linear-gradient(180deg, #332518, #2a1f14);
  border-bottom-color: #4a3826;
}
body[data-client-theme="darkwood"] .upgrade-plan-card.current-plan .upgrade-plan-head {
  background: linear-gradient(180deg, #2a3a1a, #1e2e12);
  border-bottom-color: #5a8a40;
}
body[data-client-theme="darkwood"] .upgrade-plan-head strong {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .site-settings-section input:focus,
body[data-client-theme="darkwood"] .site-settings-section select:focus,
body[data-client-theme="darkwood"] .site-settings-section textarea:focus {
  border-color: #8a6540;
  box-shadow: 0 0 0 2px rgba(212, 160, 80, 0.2);
}

/* ═══════════════════════════════════════════════════
   DARKWOOD BROADCAST MESSAGE FORM
   ═══════════════════════════════════════════════════ */
body[data-client-theme="darkwood"] .admin-user-form.broadcast-message-form {
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
}
body[data-client-theme="darkwood"] .admin-user-form.broadcast-message-form label {
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .admin-user-form.broadcast-message-form input,
body[data-client-theme="darkwood"] .admin-user-form.broadcast-message-form textarea {
  border-color: #4a3826;
  background: #1a120e;
  color: #e8dccc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .admin-user-form.broadcast-message-form input::placeholder,
body[data-client-theme="darkwood"] .admin-user-form.broadcast-message-form textarea::placeholder {
  color: #6d5a48;
  opacity: 1;
}
body[data-client-theme="darkwood"] .admin-user-form.broadcast-message-form .broadcast-recipient-section input {
  background: transparent;
  box-shadow: none;
}
body[data-client-theme="darkwood"] .admin-user-form.broadcast-message-form footer {
  border-top-color: #4a3826;
}
body[data-client-theme="darkwood"] .admin-user-form.broadcast-message-form .secondary {
  border-color: #4a3826;
  background: rgba(42, 31, 20, 0.78);
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .admin-user-form.broadcast-message-form .primary {
  border-color: #8a6540;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, #8a6540 0%, #6d4f32 52%, #5a3f24 100%);
  color: #1a120e;
  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="darkwood"] .broadcast-recipient-section legend {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .broadcast-recipient-section label {
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .broadcast-recipient-section input,
body[data-client-theme="darkwood"] .site-settings-form .site-toggle-check input,
body[data-client-theme="darkwood"] .site-feature-toggles input,
body[data-client-theme="darkwood"] .site-bot-toggle input {
  accent-color: #d4a050;
}
body[data-client-theme="darkwood"] .static-field {
  background: rgba(212, 160, 80, 0.08);
  border-color: #4a3826;
}
body[data-client-theme="darkwood"] .static-field .field-label {
  color: #b09880;
}
body[data-client-theme="darkwood"] .static-field .field-value {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .static-field .field-note {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .traffic-banner.traffic-ok {
  background: linear-gradient(135deg, #1e3a1e 0%, #2a4a1e 100%);
  border-color: #81c784;
}
body[data-client-theme="darkwood"] .traffic-banner.traffic-warning {
  background: linear-gradient(135deg, #3d2e0d 0%, #4a3508 100%);
  border-color: #ffb74d;
}
body[data-client-theme="darkwood"] .traffic-banner.traffic-exceeded {
  background: linear-gradient(135deg, #3d1518 0%, #4a1a1e 100%);
  border-color: #ef9a9a;
}
body[data-client-theme="darkwood"] .traffic-ok .traffic-banner-title { color: #81c784; }
body[data-client-theme="darkwood"] .traffic-warning .traffic-banner-title { color: #ffb74d; }
body[data-client-theme="darkwood"] .traffic-exceeded .traffic-banner-title { color: #ef9a9a; }
body[data-client-theme="darkwood"] .traffic-banner-meta { color: #b09880; }
body[data-client-theme="darkwood"] .traffic-banner-meta strong { color: #e8dccc; }
body[data-client-theme="darkwood"] .traffic-warning .traffic-banner-alert { background: rgba(255, 183, 77, 0.15); color: #ffb74d; }
body[data-client-theme="darkwood"] .traffic-exceeded .traffic-banner-alert { background: rgba(239, 154, 154, 0.15); color: #ef9a9a; }
body[data-client-theme="darkwood"] .traffic-banner-bar { background: rgba(255, 255, 255, 0.1); }
body[data-client-theme="darkwood"] .room-list-item {
  border-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .room-list-item:hover {
  border-color: #8a6540;
}

/* ═══════════════════════════════════════════════════
   DARKWOOD COMPLAINT WINDOW
   ═══════════════════════════════════════════════════ */
body[data-client-theme="darkwood"] .complaint-window .admin-window-body {
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
}
body[data-client-theme="darkwood"] .complaint-window .admin-window-statusbar {
  border-top-color: #4a3826;
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
}

/* ═══════════════════════════════════════════════════
   DARKWOOD BROADCAST WINDOW
   ═══════════════════════════════════════════════════ */
body[data-client-theme="darkwood"] .broadcast-window .admin-window-body {
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
}
body[data-client-theme="darkwood"] .broadcast-window .admin-window-statusbar {
  border-top-color: #4a3826;
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
}

body[data-client-theme="darkwood"] .broadcast-message {
  border-color: #4a3826;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(212, 160, 80, 0.06) 40%, rgba(26, 18, 14, 0.38) 100%),
    linear-gradient(180deg, #332518 0%, #1a120e 100%);
  color: #d0c0a8;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(212, 160, 80, 0.08);
}
body[data-client-theme="darkwood"] .broadcast-message strong {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .broadcast-message span {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .broadcast-message.server-broadcast {
  border-color: #4a3826;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(43, 165, 205, 0.05) 40%, rgba(26, 18, 14, 0.38) 100%),
    linear-gradient(180deg, #332518 0%, #1a120e 100%);
  color: #90c8e0;
}
body[data-client-theme="darkwood"] .broadcast-message.server-broadcast strong {
  color: #6bc0e0;
}
body[data-client-theme="darkwood"] .broadcast-message.server-broadcast .server-broadcast-text {
  color: #b0d8ec;
}

body[data-client-theme="darkwood"] .broadcast-media-panel {
  border-color: #4a3826;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(74, 56, 38, 0.08) 40%, rgba(26, 18, 14, 0.42) 100%),
    linear-gradient(180deg, #332518 0%, #1a120e 100%);
  color: #d0c0a8;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(212, 160, 80, 0.08);
}
body[data-client-theme="darkwood"] .broadcast-media-panel header strong {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .broadcast-media-panel header span {
  color: #a08a70;
}
body[data-client-theme="darkwood"] .broadcast-media-panel .broadcast-close-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #a08a70;
}
body[data-client-theme="darkwood"] .broadcast-media-panel .broadcast-close-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
}
body[data-client-theme="darkwood"] .broadcast-media-panel .broadcast-media-status {
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .broadcast-media-panel.live-broadcast {
  border-color: rgba(220, 80, 60, 0.4);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.42),
    0 0 0 3px rgba(220, 80, 60, 0.08);
}

/* ═══════════════════════════════════════════════════
   DARKWOOD MOBILE ADMIN EXTRAS
   ═══════════════════════════════════════════════════ */
body[data-client-theme="darkwood"].mobile-layout .mobile-admin-window-backdrop {
  background: rgba(2, 2, 2, 0.5);
}
body[data-client-theme="darkwood"].mobile-layout .mobile-user-menu-backdrop {
  background: rgba(2, 2, 2, 0.5);
}
body[data-client-theme="darkwood"].mobile-layout .admin-room-form footer {
  background: linear-gradient(180deg, rgba(42, 31, 20, 0.78), #2a1f14 34%);
}
body[data-client-theme="darkwood"].mobile-layout .admin-complaint-layout .admin-table-wrap {
  border-color: #4a3826;
  background: #2a1f14;
}
body[data-client-theme="darkwood"].mobile-layout .word-filter-form {
  border-top-color: #4a3826;
}
body[data-client-theme="darkwood"] .admin-room-gradient-item { background: #2a1f14; border-color: #4a3826; }
body[data-client-theme="darkwood"] .admin-room-gradient-head { border-bottom-color: #4a3826; }
body[data-client-theme="darkwood"] .admin-room-gradient-title { color: #d0c0a8; }
body[data-client-theme="darkwood"] .admin-room-gradient-toggle { color: #d0c0a8; background: #332518; border-color: #4a3826; }
body[data-client-theme="darkwood"] .admin-room-gradient-row label { color: #b09880; }
body[data-client-theme="darkwood"] .admin-room-gradient-row input[type="color"],
body[data-client-theme="darkwood"] .admin-room-gradient-row select { background: #2a1f14; border-color: #4a3826; color: #d0c0a8; }

body[data-client-theme]:not([data-client-theme="default"]) .messages {
  border-color: var(--line-strong);
  background-color: var(--surface-3);
}

body[data-client-theme="light"] .side,
body[data-client-theme="light"] .conversation,
body[data-client-theme="light"] .brand,
body[data-client-theme="light"] .tabs,
body[data-client-theme="light"] .composer-wrap,
body[data-client-theme="light"] .mobile-action-bar,
body[data-client-theme="light"] .messages,
body[data-client-theme="light"] #usersList,
body[data-client-theme="light"] #roomsList,
body[data-client-theme="light"] #friendsList {
  background: #ffffff;
  background-color: #ffffff;
}

body[data-client-theme="light"] .messages {
  background-image: none !important;
}

body[data-client-theme]:not([data-client-theme="default"]) .side #usersList {
  border-color: var(--line-strong);
  background:
    var(--user-list-background-image, none) center / cover no-repeat fixed,
    linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 58%, var(--surface) 100%) !important;
}

body[data-client-theme="darkwood"] .side #usersList {
  background:
    var(--user-list-background-image, none) center / cover no-repeat fixed,
    linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 42%, var(--surface-2) 72%, var(--surface) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 5px 0 16px rgba(0, 0, 0, 0.55),
    inset -4px 0 14px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px var(--line),
    0 14px 30px rgba(0, 0, 0, 0.5) !important;
}

body[data-client-theme="night"] .side #usersList {
  border-color: rgba(100, 199, 187, 0.26);
  background:
    var(--user-list-background-image, none) center / cover no-repeat fixed,
    linear-gradient(90deg, #1b333c 0%, #172d36 58%, #132832 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(100, 199, 187, 0.12),
    inset 1px 0 0 rgba(100, 199, 187, 0.08),
    inset -1px 0 0 rgba(100, 199, 187, 0.06),
    0 14px 30px rgba(0, 0, 0, 0.45) !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(90deg, var(--surface-3) 0%, var(--surface-2) 58%, var(--surface) 100%) !important;
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .tab {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .tab:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .tab.active {
  border-color: var(--accent);
  border-bottom-color: transparent;
  background: linear-gradient(180deg, var(--surface) 0%, var(--accent-soft) 100%);
  color: var(--accent-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 -1px 5px color-mix(in srgb, var(--accent) 18%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .friend-tab-icon::before,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .friend-tab-icon::after {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .friend-tab-icon {
  filter: drop-shadow(0 2px 3px color-mix(in srgb, var(--accent) 28%, transparent));
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .side #roomsPanel,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .side #friendsPanel,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .side #settingsPanel,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-sub-panel,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .side #friendsList {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-list-filter input,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .mobile-audio-settings,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .mobile-audio-settings,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .mobile-audio-settings select {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-list-filter input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 24%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-sub-tab {
  border-color: var(--line-weak);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-3) 100%);
  color: var(--text-weak);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-sub-tab.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--text-strong);
  box-shadow: 0 1px 3px var(--shadow);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-sub-tab:not(.active):hover {
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 100%);
  border-color: var(--line);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-list-item.room-private,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-list-item.room-locked,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-list-item.room-member,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-list-item.room-private .room-icon,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-list-item.room-locked .room-icon,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-list-item.room-member .room-icon,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-icon {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-event-card,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-welcome-card,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .text-tools {
  border-color: var(--line-strong);
  background: linear-gradient(90deg, var(--surface) 0%, var(--accent-soft) 54%, var(--surface-2) 100%);
  color: var(--text);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 13%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-event-main span,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-event-actions a,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-event-actions time {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-event-main strong,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-welcome-card strong {
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-event-main small,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-welcome-card span {
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .meta-pill,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .queue-badge,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .speaker-indicator,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-invite-button,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-theme-button,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .notification-button {
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(180deg, var(--surface) 0%, var(--accent-soft) 100%);
  color: var(--accent-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 5px 14px color-mix(in srgb, var(--accent) 16%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-invite-button:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-theme-button:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-theme-button[aria-expanded="true"],
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .notification-button:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface-2) 100%);
  color: var(--accent-strong);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--accent, #ff8800) 60%, transparent),
    0 0 32px color-mix(in srgb, var(--accent, #ff4400) 35%, transparent),
    0 0 56px color-mix(in srgb, var(--accent, #ff2200) 18%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .meta-pill b,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .speaker-indicator b,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-theme-button svg {
  color: var(--accent-strong);
  fill: color-mix(in srgb, var(--accent) 22%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #roomStatus {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface-2) 100%);
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .text-tools select,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .text-tools button,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .camera-watch,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .camera-icon-button,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .share-screen-button,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .animaticon-button,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .speaker-mute-button,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .private-text-format-panel select,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .private-tools button,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .private-tools .color-tool {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .text-tools button {
  background: linear-gradient(90deg, var(--surface) 0%, var(--accent-soft) 54%, var(--surface-2) 100%);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .text-tools select:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .text-tools select:focus,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .color-tool:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .color-tool:focus-within,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .text-tools button:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .camera-watch:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .camera-icon-button:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .share-screen-button:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .animaticon-button:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .speaker-mute-button:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .private-tools button:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .private-tools .color-tool:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .private-tools .color-tool:focus-within {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface) 0%, var(--accent-soft) 100%);
  color: var(--accent-strong);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 18%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .text-tools button.tool-active,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .text-tools button:focus-visible,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .camera-icon-button.active,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .share-screen-button:focus-visible,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .animaticon-button:focus-visible,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .speaker-mute-button.tool-active,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .private-tools button.tool-active {
  border-color: var(--accent-strong);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 5px 14px color-mix(in srgb, var(--accent-strong) 28%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-window,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-window-body,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-table-wrap {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-window-statusbar,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-window-toolbar {
  border-color: var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-window-toolbar span,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-date-filter,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-search-field,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-data-table,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-data-table th {
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-date-filter input,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-search-field input,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-online-filter {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-window-toolbar button,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]).mobile-layout .mobile-admin-menu button {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-window-toolbar button:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]).mobile-layout .mobile-admin-menu button:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface) 0%, var(--accent-soft) 100%);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-data-table td,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-data-table th {
  border-color: var(--line);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-data-table tbody td,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-data-table tbody tr:nth-child(even) td {
  background: var(--surface);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-data-table th,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-data-table tbody tr:hover td,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-data-table tbody tr.selected-row td {
  background: var(--accent-soft);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-overlay {
  background: rgba(0, 0, 0, 0.5);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-panel {
  border-color: var(--line-strong);
  background: var(--surface);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-header {
  background: var(--surface-2);
  border-bottom-color: var(--line);
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-close {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-close:hover {
  background: var(--accent-soft);
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-sidebar {
  background: var(--surface-2);
  border-right-color: var(--line);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-profile {
  border-bottom-color: var(--line);
  background: var(--surface-3);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-profile-name {
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-profile-role {
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-profile-avatar-fallback {
  background: var(--accent);
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-sidebar > [data-dashboard-action] {
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-sidebar > [data-dashboard-action]:hover {
  background: var(--accent-soft);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-sidebar > [data-dashboard-action].active {
  background: var(--accent);
  color: var(--text);
  border-left-color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-content {
  background: var(--surface);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-card {
  border-color: var(--line-strong);
  background: var(--surface);
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-head {
  border-bottom-color: var(--line);
  background: var(--surface-2);
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-head p { color: var(--muted); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-head h2 { color: var(--text); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-head button {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  box-shadow: none;
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-id {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-id b { color: var(--accent-strong); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-form {
  background: var(--surface);
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-form label { color: var(--muted); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-form input,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-form textarea {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-checks label {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: none;
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-checks input { accent-color: var(--accent-strong); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-message { color: var(--accent-strong); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-form footer { border-top-color: var(--line); }
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-card .primary {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-settings-card .secondary {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-support-site {
  background: var(--surface-2) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text) !important;
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-support-whatsapp {
  background: var(--surface-2) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text) !important;
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-support-email {
  background: var(--surface-2) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text) !important;
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-support-phone {
  background: var(--surface-2) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--text) !important;
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-support-site span,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-support-whatsapp span,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-support-email span,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-support-phone span {
  color: var(--muted) !important;
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) [data-open-support-ticket] {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-strong) 30%, transparent) !important;
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) [data-open-support-ticket]:hover {
  filter: brightness(1.1);
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) [id^="admin-contact-support-container-"] [data-ticket-id] {
  border-color: var(--line-strong) !important;
  background: var(--surface) !important;
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) [id^="admin-contact-support-container-"] [data-ticket-id] > div > div:first-child {
  color: var(--text) !important;
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) [id^="admin-contact-support-container-"] [data-ticket-id] > div > div:last-child {
  color: var(--muted) !important;
}
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) [id^="admin-contact-support-container-"] [style*="color:#555"] {
  color: var(--text) !important;
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-welcome {
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-welcome strong {
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-welcome-logo-fallback {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-footer {
  background: var(--surface-2);
  border-top-color: var(--line);
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-footer a {
  color: var(--accent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-footer-sep {
  color: var(--line-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .admin-dashboard-footer .admin-dash-logo-fallback {
  background: var(--surface-3);
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .user-context-menu,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .user-context-menu.mine-menu,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .user-context-menu.mine-menu .submenu,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .user-context-menu.other-menu,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .chat-context-menu {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--text);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 18%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .menu-user-title {
  border-bottom-color: var(--line);
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .user-context-menu button:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .user-context-menu.other-menu button:hover,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .menu-parent:hover > button {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .user-context-menu.other-menu .check-menu-item.checked {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-style-popup-menu {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--text);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 18%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-style-menu-owner {
  border-bottom-color: var(--line);
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .room-style-popup-menu button:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
}

body[data-client-theme="night"] .side #usersPanel {
  background: linear-gradient(90deg, #1b333c 0%, #172d36 58%, #132832 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:not(.user-role-badge) {
  color: var(--muted) !important;
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #usersList .list-item.user-row.speaking,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #usersList .list-item.user-row.current-speaker-user,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #currentSpeakerPin .list-item.user-row.current-speaker-user {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line-strong)) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, var(--accent-soft)) 0%, color-mix(in srgb, var(--surface-2) 58%, var(--accent-soft)) 100%) !important;
  box-shadow:
    inset 4px 0 0 var(--accent-strong),
    0 7px 16px color-mix(in srgb, var(--accent) 23%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #usersList .list-item.user-row.current-speaker-user::before,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #currentSpeakerPin .list-item.user-row.current-speaker-user::before {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 66%, var(--accent-soft)) 0%, color-mix(in srgb, var(--surface-2) 54%, var(--accent-soft)) 100%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent),
    0 4px 10px color-mix(in srgb, var(--accent-strong) 16%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #usersList .list-item.user-row.speaking .user-nick,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #usersList .list-item.user-row.current-speaker-user .user-nick,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #currentSpeakerPin .list-item.user-row.current-speaker-user .user-nick {
  color: var(--accent-strong) !important;
  font-weight: 950;
  text-shadow:
    0 1px 0 color-mix(in srgb, var(--surface) 84%, transparent),
    0 0 9px color-mix(in srgb, var(--accent) 32%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #usersList .list-item.user-row.queued-user {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line-strong)) !important;
  background:
    linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface-2) 72%, var(--accent-soft)) 100%) !important;
  box-shadow:
    inset 4px 0 0 color-mix(in srgb, var(--accent) 72%, var(--accent-strong)),
    0 5px 12px color-mix(in srgb, var(--accent) 16%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #usersList .list-item.user-row.queued-user .user-nick {
  color: color-mix(in srgb, var(--accent-strong) 82%, var(--text)) !important;
  font-weight: 850;
  text-shadow: 0 0 7px color-mix(in srgb, var(--accent) 20%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #usersList .list-item.user-row:hover {
  background: color-mix(in srgb, var(--surface) 80%, var(--accent-soft)) !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-strong) 10%, transparent);
  transform: translateX(4px) !important;
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) #usersList .list-item.user-row:hover .user-nick {
  color: color-mix(in srgb, var(--accent-strong) 78%, var(--text)) !important;
}

body[data-client-theme="darkwood"] #usersList .list-item.user-row.selected,
body[data-client-theme="darkwood"] #usersList .list-item.user-row:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 86%, var(--accent-soft)) 0%, color-mix(in srgb, var(--surface-2) 72%, var(--accent-soft)) 100%) !important;
  box-shadow: inset 3px 0 0 var(--accent-strong), 0 4px 14px color-mix(in srgb, var(--accent) 22%, transparent) !important;
}

body[data-client-theme="darkwood"] #usersList .list-item.user-row.selected .user-nick,
body[data-client-theme="darkwood"] #usersList .list-item.user-row:focus-visible .user-nick {
  color: var(--accent-strong) !important;
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]).mobile-layout .mobile-live-pill.audio {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, var(--surface)) 0%, var(--accent-strong) 100%);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]).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)) color-mix(in srgb, var(--accent) 72%, transparent),
    0 0 calc(16px + (var(--voice-level, 0) * 34px)) color-mix(in srgb, var(--accent-soft) 80%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]).mobile-layout .mobile-live-pill.audio.voice-active::after {
  border-color: color-mix(in srgb, var(--accent) 78%, var(--accent-strong));
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .voice-queue-panel,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-top-flow.mic-active {
  border-color: var(--line-strong);
  background: linear-gradient(90deg, var(--surface) 0%, var(--accent-soft) 56%, var(--surface-2) 100%);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .voice-queue-summary span,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .voice-queue-chip small,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .voice-queue-empty,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-top-mic small {
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .voice-queue-summary b,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .voice-queue-chip strong,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-top-mic strong {
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .voice-queue-chip,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .voice-queue-empty {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 82%, var(--accent-soft));
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .voice-queue-chip.speaker,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-top-mic-icon {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, color-mix(in srgb, var(--accent) 38%, var(--surface)) 100%);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 18%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-top-flow,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .media-profile-flow {
  border-color: var(--line-strong);
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 56%, var(--accent-soft) 100%);
  color: var(--text);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-top-title span,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .media-profile-flow .profile-top-copy span {
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .profile-top-title b,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .media-profile-flow .profile-top-copy strong {
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .media-profile-flow .profile-top-card {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface-2) 78%, var(--accent-soft)) 100%);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 14%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .media-profile-flow .profile-message-band-card {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line-strong));
  background:
    radial-gradient(circle at 34px 50%, color-mix(in srgb, var(--surface) 92%, transparent), transparent 42px),
    linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface-2) 72%, var(--accent-soft)) 54%, var(--accent-soft) 100%);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface) 74%, rgba(255, 255, 255, 0.45)),
    0 10px 24px color-mix(in srgb, var(--accent) 18%, transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .media-profile-flow .profile-message-band-card::after {
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--accent-soft) 64%, rgba(255, 255, 255, 0.42)) 46%, transparent 76%);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .media-profile-flow .profile-message-band-copy p {
  color: var(--text);
  text-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 82%, transparent);
}

body[data-client-theme="darkwood"] .media-panel {
  border-color: #4a3826;
  background: linear-gradient(90deg, #151e1b 0%, #1a2622 52%, #121d18 100%);
  color: #b09880;
  box-shadow: inset 0 1px 0 rgba(212, 200, 184, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
body[data-client-theme="darkwood"] #mediaMode {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .media-profile-flow {
  background: #1a201f;
  border-radius: 999px;
}
body[data-client-theme="darkwood"] .media-profile-flow .profile-message-band-card {
  border-color: #d4c8b8;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34px 50%, rgba(60, 50, 40, 0.5), transparent 38px),
    linear-gradient(105deg, #1a201f 0%, #1e2825 50%, #1a2622 100%),
    var(--role-card-bg, #1a201f);
  box-shadow:
    inset 0 1px 0 rgba(212, 200, 184, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 2px 0 rgba(212, 200, 184, 0.08);
}
body[data-client-theme="darkwood"] .media-profile-flow .profile-message-band-card::after {
  background: linear-gradient(90deg, transparent 0%, rgba(212, 200, 184, 0.04) 46%, transparent 76%);
}
body[data-client-theme="darkwood"] .media-profile-flow .profile-message-band-head strong,
body[data-client-theme="darkwood"] .media-profile-flow .profile-message-band-copy p {
  color: #d4c8b8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
body[data-client-theme="darkwood"] .media-profile-flow .profile-message-band-head strong {
  color: #e8dccc;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 0 8px rgba(212, 200, 184, 0.12);
}

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"] .messages::before {
  content: none;
}

body[data-client-theme="night"] .messages {
  background:
    radial-gradient(circle at calc(100% - 14px) 14px, rgba(255, 255, 230, 0.92) 0 4px, rgba(255, 232, 132, 0.82) 5px 9px, rgba(255, 176, 72, 0.34) 10px 15px, rgba(255, 176, 72, 0) 23px),
    radial-gradient(circle at calc(100% - 14px) 14px, rgba(255, 229, 119, 0.34) 0 22px, rgba(255, 229, 119, 0) 58px),
    radial-gradient(ellipse at 100% 0%, rgba(255, 238, 166, 0.24) 0 8%, rgba(255, 224, 112, 0.12) 18%, rgba(255, 224, 112, 0.05) 32%, rgba(255, 224, 112, 0) 58%),
    conic-gradient(from 205deg at 100% 0%, rgba(255, 240, 174, 0) 0deg, rgba(255, 232, 137, 0.16) 16deg, rgba(119, 220, 255, 0.08) 29deg, rgba(255, 240, 174, 0.035) 42deg, rgba(255, 240, 174, 0) 62deg),
    linear-gradient(134deg, rgba(255, 235, 162, 0) 0 32%, rgba(255, 235, 162, 0.09) 45%, rgba(112, 214, 255, 0.045) 58%, rgba(255, 235, 162, 0) 82%),
    var(--surface-3) !important;
  background-attachment: scroll;
  background-repeat: no-repeat;
}

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"] .room-welcome {
  color: #b8d4de;
}

body[data-client-theme="night"] .room-topic {
  color: #7a9eac;
}

body[data-client-theme="night"] .message {
  background: var(--msg-bg, linear-gradient(105deg, #1c3038 0%, rgba(60, 80, 90, 0.5) 46%, rgba(60, 80, 90, 0.3) 100%));
  border-color: rgba(255, 255, 255, 0.08);
}
body[data-client-theme="night"] .message.mine {
  background: var(--msg-bg-mine, linear-gradient(105deg, #1c3038 0%, rgba(90, 60, 70, 0.5) 48%, rgba(70, 60, 70, 0.3) 100%));
  border-color: rgba(255, 255, 255, 0.12);
}
body[data-client-theme="night"] .message.role-root-user,
body[data-client-theme="night"] .message.role-owner-user {
  --msg-bg: linear-gradient(105deg, #1c3038 0%, rgba(253, 224, 71, 0.2) 46%, rgba(217, 119, 6, 0.15) 100%);
  --msg-bg-mine: linear-gradient(105deg, #1c3038 0%, rgba(253, 224, 71, 0.3) 46%, rgba(217, 119, 6, 0.2) 100%);
  --msg-border: rgba(253, 224, 71, 0.3);
  --msg-border-mine: rgba(217, 119, 6, 0.4);
}
body[data-client-theme="night"] .message.role-admin-user,
body[data-client-theme="night"] .message.role-superadmin-user {
  --msg-bg: linear-gradient(105deg, #1c3038 0%, rgba(217, 70, 239, 0.2) 46%, rgba(124, 58, 237, 0.15) 100%);
  --msg-bg-mine: linear-gradient(105deg, #1c3038 0%, rgba(217, 70, 239, 0.3) 46%, rgba(124, 58, 237, 0.2) 100%);
  --msg-border: rgba(217, 70, 239, 0.3);
  --msg-border-mine: rgba(124, 58, 237, 0.4);
}
body[data-client-theme="night"] .message.role-moderator-user {
  --msg-bg: linear-gradient(105deg, #1c3038 0%, rgba(56, 189, 248, 0.2) 46%, rgba(2, 132, 199, 0.15) 100%);
  --msg-bg-mine: linear-gradient(105deg, #1c3038 0%, rgba(56, 189, 248, 0.3) 46%, rgba(2, 132, 199, 0.2) 100%);
  --msg-border: rgba(56, 189, 248, 0.3);
  --msg-border-mine: rgba(2, 132, 199, 0.4);
}
body[data-client-theme="night"] .message.role-operator-user,
body[data-client-theme="night"] .message.role-member-user {
  --msg-bg: linear-gradient(105deg, #1c3038 0%, rgba(52, 211, 153, 0.2) 46%, rgba(5, 150, 105, 0.15) 100%);
  --msg-bg-mine: linear-gradient(105deg, #1c3038 0%, rgba(52, 211, 153, 0.3) 46%, rgba(5, 150, 105, 0.2) 100%);
  --msg-border: rgba(52, 211, 153, 0.3);
  --msg-border-mine: rgba(5, 150, 105, 0.4);
}
body[data-client-theme="night"] .message.role-vip-user {
  --msg-bg: linear-gradient(105deg, #1c3038 0%, rgba(253, 224, 71, 0.15) 46%, rgba(245, 158, 11, 0.12) 100%);
  --msg-bg-mine: linear-gradient(105deg, #1c3038 0%, rgba(253, 224, 71, 0.22) 46%, rgba(245, 158, 11, 0.18) 100%);
  --msg-border: rgba(253, 224, 71, 0.25);
  --msg-border-mine: rgba(245, 158, 11, 0.35);
}
body[data-client-theme="night"] .message.role-staff-user {
  --msg-bg: linear-gradient(105deg, #1c3038 0%, rgba(167, 139, 250, 0.2) 46%, rgba(109, 40, 217, 0.15) 100%);
  --msg-bg-mine: linear-gradient(105deg, #1c3038 0%, rgba(167, 139, 250, 0.3) 46%, rgba(109, 40, 217, 0.2) 100%);
  --msg-border: rgba(167, 139, 250, 0.3);
  --msg-border-mine: rgba(109, 40, 217, 0.4);
}
body[data-client-theme="night"] .message.role-guest-user {
  --msg-bg: linear-gradient(105deg, #1c3038 0%, rgba(148, 163, 184, 0.15) 46%, rgba(100, 116, 139, 0.1) 100%);
  --msg-bg-mine: linear-gradient(105deg, #1c3038 0%, rgba(148, 163, 184, 0.2) 46%, rgba(100, 116, 139, 0.15) 100%);
  --msg-border: rgba(148, 163, 184, 0.2);
  --msg-border-mine: rgba(100, 116, 139, 0.3);

body[data-client-theme="night"] .message-time {
  color: #5f8594;
}
}

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),
    0 14px 30px rgba(0, 0, 0, 0.45);
}

body[data-client-theme="darkwood"] .brand {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 5px 0 16px rgba(0, 0, 0, 0.55),
    inset -4px 0 14px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px var(--line),
    0 14px 30px rgba(0, 0, 0, 0.5);
}

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.06),
    inset 0 -1px 0 rgba(155, 225, 216, 0.18);
}

body[data-client-theme="night"] .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;
}

body[data-client-theme="night"] #roomName {
  -webkit-text-stroke: 1.5px rgba(160, 200, 218, 0.60);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 0 12px rgba(100, 180, 210, 0.20);
}

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"] .meta-pill.user-count.count-up .count-digit {
  color: #66ff66;
}

body[data-client-theme="night"] .meta-pill.user-count.count-down .count-digit {
  color: #ff6666;
}

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 3px 0 0 rgba(0, 0, 0, 0.35),
    0 5px 14px rgba(0, 0, 0, 0.3);
}

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%);
  box-shadow:
    0 0 12px rgba(255, 130, 40, 0.7),
    0 0 28px rgba(255, 60, 10, 0.5),
    0 0 56px rgba(255, 30, 0, 0.25);
}

body[data-client-theme="night"] .room-profile-button {
  border-color: rgba(100, 199, 187, 0.38);
  background: rgba(15, 31, 39, 0.78);
}

body[data-client-theme="night"] .room-profile-button:hover {
  border-color: rgba(155, 225, 216, 0.48);
  box-shadow:
    0 0 14px rgba(255, 130, 40, 0.7),
    0 0 30px rgba(255, 60, 10, 0.5),
    0 0 56px rgba(255, 30, 0, 0.25);
}

body[data-client-theme="night"] .text-tools button,
body[data-client-theme="night"] .mod-call-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 {
  background: linear-gradient(105deg,
    rgba(50, 22, 32, 0.94) 0%,
    rgba(14, 48, 40, 0.94) 36%,
    rgba(16, 42, 56, 0.94) 68%,
    rgba(50, 40, 18, 0.94) 100%);
}

body[data-client-theme="night"] .text-tools button:hover,
body[data-client-theme="night"] .mod-call-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,
body[data-client-theme="night"] .text-format-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"] .text-format-panel select {
  background: #1a2f37;
  border-color: rgba(100, 199, 187, 0.2);
  color: #c2dfe8;
}

body[data-client-theme="night"] .text-format-panel button,
body[data-client-theme="night"] .text-format-panel .color-tool {
  border-color: rgba(100, 199, 187, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #c2dfe8;
}

body[data-client-theme="night"] .text-format-panel button:hover {
  border-color: rgba(100, 199, 187, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

body[data-client-theme="night"] .text-format-panel button.tool-active {
  border-color: #3faaa3;
  background: linear-gradient(180deg, #3faaa3 0%, #2f7d79 48%, #225f5a 100%);
  color: #ffffff;
}

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,
body[data-client-theme="night"] .theme-sun-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"] .room-sub-panel,
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-sub-tab {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #111f27 0%, #162b34 100%);
  color: #b5d5dd;
}

body[data-client-theme="night"] .room-sub-tab.active {
  border-color: rgba(100, 199, 187, 0.5);
  background: linear-gradient(180deg, #1b333c 0%, #132832 100%);
  color: #e8fbff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body[data-client-theme="night"] .room-sub-tab:not(.active):hover {
  background: linear-gradient(180deg, #162e38 0%, #1a3540 100%);
  border-color: rgba(100, 199, 187, 0.38);
}

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.friend-added.friend-offline {
  border-color: rgba(199, 100, 100, 0.30);
  background: linear-gradient(180deg, #431f2a 0%, #2d1418 100%);
}

body[data-client-theme="night"] .friend-row.friend-added.friend-offline .friend-main strong {
  color: #e8b0b0;
}

body[data-client-theme="night"] .friend-row.friend-added.friend-offline .friend-main small {
  color: #b08080;
}

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"] .pending-requests-header {
  border-color: rgba(199, 160, 100, 0.30);
  background: linear-gradient(180deg, #2a2015 0%, #1f1810 100%);
  color: #d4b88a;
}

body[data-client-theme="night"] .pending-request-row {
  border-color: rgba(199, 160, 100, 0.24) !important;
  background: linear-gradient(180deg, #2a2218 0%, #1e1a12 100%) !important;
}

body[data-client-theme="night"] .pending-request-row .friend-main strong {
  color: #e0c8a0;
}

body[data-client-theme="night"] .pending-request-row .friend-main small {
  color: #a09070;
}

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):not(.message-style-flat):not(.message-style-compact) .message,
body[data-client-theme="night"]:not(.message-style-inline):not(.message-style-flat):not(.message-style-compact) .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):not(.message-style-flat):not(.message-style-compact) .message.mine,
body[data-client-theme="night"]:not(.message-style-inline):not(.message-style-flat):not(.message-style-compact) .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):not(.message-style-flat):not(.message-style-compact) .message-avatar {
  background: linear-gradient(180deg, #314f5d 0%, #1e3945 100%);
  color: #d9edf1;
  box-shadow:
    0 0 6px rgba(100, 199, 187, 0.14),
    0 2px 7px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-client-theme="night"]:not(.message-style-inline):not(.message-style-flat):not(.message-style-compact) .message.mine .message-avatar,
body[data-client-theme="night"]:not(.message-style-inline):not(.message-style-flat):not(.message-style-compact) .private-message.mine .message-avatar {
  background: linear-gradient(180deg, #553c54 0%, #352b40 100%);
  color: #ffdbe1;
}

body[data-client-theme="night"].message-style-flat .message,
body[data-client-theme="night"].message-style-flat .message.mine,
body[data-client-theme="night"].message-style-flat .private-message,
body[data-client-theme="night"].message-style-flat .private-message.mine {
  border: none;
  background: transparent;
  box-shadow: none;
}

body[data-client-theme="night"].message-style-compact .message,
body[data-client-theme="night"].message-style-compact .message.mine,
body[data-client-theme="night"].message-style-compact .private-message,
body[data-client-theme="night"].message-style-compact .private-message.mine {
  border: none;
  background: transparent;
  box-shadow: none;
}

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-text-format-panel 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-tools .private-file-button {
  border-color: rgba(241, 191, 100, 0.38);
  background: linear-gradient(180deg, #3a3224 0%, #5b421c 100%);
  color: #ffd891;
}

body[data-client-theme="night"] .private-file-card {
  border-color: rgba(123, 189, 202, 0.22);
  background: linear-gradient(180deg, rgba(28, 44, 52, 0.96), rgba(21, 34, 41, 0.96));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

body[data-client-theme="night"] .private-file-card.mine {
  border-color: rgba(87, 162, 216, 0.26);
  background: linear-gradient(180deg, rgba(27, 48, 65, 0.96), rgba(20, 38, 55, 0.96));
}

body[data-client-theme="night"] .private-file-icon {
  background: linear-gradient(180deg, #243f47 0%, #172d35 100%);
  color: #8dd8e5;
}

body[data-client-theme="night"] .private-file-head strong {
  color: #e8fbff;
}

body[data-client-theme="night"] .private-file-head span,
body[data-client-theme="night"] .private-file-main small {
  color: #a7c6cf;
}

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="darkwood"] .private-dock {
  border-color: #4a3826;
  background: linear-gradient(180deg, #332518 0%, #2a1f14 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.3);
}

body[data-client-theme="darkwood"] .private-dock button {
  border-color: #6d4f32;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
  color: #e8dccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body[data-client-theme="darkwood"] .private-dock button:hover {
  border-color: #d4a050;
  background: linear-gradient(180deg, #4a3826 0%, #332518 100%);
  color: #f1e6d6;
}

body[data-client-theme="darkwood"] .private-dock button.has-call {
  border-color: #8a6a3e;
  background: linear-gradient(180deg, #4a3826 0%, #2a1f14 100%);
}

body[data-client-theme="darkwood"] .private-dock button i {
  background: #d4a050;
  color: #1a120e;
}

body[data-client-theme="darkwood"] .private-dock button em {
  color: #b09880;
}

body[data-client-theme="darkwood"] .private-dock.dock-overflow::after {
  border-left-color: #4a3826;
  background: linear-gradient(90deg, rgba(42, 31, 20, 0), #2a1f14 42%, #2a1f14 100%);
  color: #e8dccc;
}

body[data-client-theme="darkwood"] .private-call-inline-bar {
  border-color: #6d4f32;
  background: linear-gradient(180deg, #4a3826 0%, #2a1f14 100%);
  color: #e8dccc;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-client-theme="darkwood"] .private-call-inline-bar i {
  background: #d4a050;
  color: #1a120e;
}

body[data-client-theme="darkwood"] .private-call-inline-bar em {
  color: #b09880;
}

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-popover .personal-style-controls {
  border-bottom-color: rgba(100, 199, 187, 0.15);
}

body[data-client-theme="night"] .audio-settings-popover .personal-style-controls label {
  color: #8faeb5;
}

body[data-client-theme="night"] .audio-settings-popover .personal-style-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-popover .audio-test-popover-button {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, #111f27 0%, #162b34 100%);
  color: #64c7bb;
}

body[data-client-theme="night"] .audio-settings-popover .audio-test-popover-button:hover {
  border-color: rgba(100, 199, 187, 0.45);
  background: linear-gradient(180deg, #162b34 0%, #1a3340 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

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-message.server-broadcast {
  border-color: rgba(43, 165, 205, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(43, 165, 205, 0.06) 38%, rgba(10, 30, 42, 0.40) 100%),
    linear-gradient(180deg, rgba(20, 55, 65, 0.92) 0%, rgba(10, 30, 42, 0.94) 100%);
  color: #90d0e8;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(100, 199, 220, 0.12);
}
body[data-client-theme="night"] .broadcast-message.server-broadcast strong {
  color: #6bc8e8;
}
body[data-client-theme="night"] .broadcast-message.server-broadcast .server-broadcast-text {
  color: #b8e4f4;
}

body[data-client-theme="night"] .broadcast-media-panel {
  border-color: rgba(43, 165, 205, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(43, 165, 205, 0.05) 40%, rgba(10, 30, 42, 0.38) 100%),
    linear-gradient(180deg, rgba(20, 55, 65, 0.92) 0%, rgba(10, 30, 42, 0.94) 100%);
  color: #90d0e8;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(100, 199, 220, 0.12);
  backdrop-filter: blur(10px) saturate(1.06);
}
body[data-client-theme="night"] .broadcast-media-panel header strong {
  color: #6bc8e8;
}
body[data-client-theme="night"] .broadcast-media-panel header span {
  color: #7aacc4;
}
body[data-client-theme="night"] .broadcast-media-panel .broadcast-close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #7aacc4;
}
body[data-client-theme="night"] .broadcast-media-panel .broadcast-close-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
}
body[data-client-theme="night"] .broadcast-media-panel .broadcast-media-status {
  color: #90d0e8;
}
body[data-client-theme="night"] .broadcast-media-panel.live-broadcast {
  border-color: rgba(248, 113, 113, 0.38);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.36),
    0 0 0 3px rgba(248, 113, 113, 0.08);
}

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"] .user-info-overlay {
  background: rgba(0,0,0,0.6);
}
body[data-client-theme="night"] .user-info-card {
  background: #132a33;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
body[data-client-theme="night"] .user-info-close {
  background: rgba(255,255,255,0.08);
  color: #bcd7dd;
}
body[data-client-theme="night"] .user-info-close:hover {
  background: rgba(255,255,255,0.15);
}
body[data-client-theme="night"] .user-info-top {
  background:
    radial-gradient(ellipse 140% 100px at 50% 0%, rgba(60, 180, 200, 0.12) 0%, transparent 100%),
    linear-gradient(180deg, rgba(20, 55, 68, 0.6) 0%, rgba(19, 42, 51, 0.95) 100%);
}
body[data-client-theme="night"] .user-info-name {
  color: #e8fbfd;
}
body[data-client-theme="night"] .user-info-role {
  background: linear-gradient(180deg, #052419 0%, #072d1f 50%, #0a3d2c 100%);
  color: #b0edd9;
  box-shadow: 0 0 12px rgba(60, 220, 150, 0.3), 0 0 24px rgba(60, 220, 150, 0.1);
  border-color: rgba(60, 220, 150, 0.15);
}
body[data-client-theme="night"] .user-info-stats {
  border-color: rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.25);
}
body[data-client-theme="night"] .user-info-coins-row {
  border-top-color: rgba(255,255,255,0.08);
}
body[data-client-theme="night"] .user-info-stat {
  background: rgba(255,255,255,0.1);
  color: #9ec8d2;
}
body[data-client-theme="night"] .user-info-stat .stat-count {
  color: #6eddd0;
}
body[data-client-theme="night"] .user-info-stat .stat-label {
  color: #89bfcb;
}
body[data-client-theme="night"] .user-info-badge {
  background: #1e3f4a;
  color: #c4e2e8;
}
body[data-client-theme="night"] .user-info-details {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}
body[data-client-theme="night"] .user-info-detail {
  background: transparent;
}
body[data-client-theme="night"] .user-info-detail:nth-child(2),
body[data-client-theme="night"] .user-info-detail:nth-child(4) {
  border-left-color: rgba(255,255,255,0.1);
}
body[data-client-theme="night"] .user-info-detail:nth-child(3),
body[data-client-theme="night"] .user-info-detail:nth-child(4) {
  border-top-color: rgba(255,255,255,0.1);
}
body[data-client-theme="night"] .user-info-detail .detail-label {
  color: #4dd3c2;
}
body[data-client-theme="night"] .user-info-detail .detail-value {
  color: #d6f4f7;
}
body[data-client-theme="night"] .user-info-message {
  border-color: rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(20,55,68,0.4), rgba(19,42,51,0.3));
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
body[data-client-theme="night"] .user-info-message .msg-label {
  color: #4dd3c2;
}
body[data-client-theme="night"] .user-info-message p {
  color: #d6f4f7;
}

body[data-client-theme="night"] .user-info-actions-bottom button.primary {
  background: #1f8a7c; color: #fff; border-color: #1f8a7c;
}
body[data-client-theme="night"] .user-info-actions-bottom button.primary:hover {
  background: #26a290; border-color: #26a290;
}
body[data-client-theme="night"] .user-info-actions-bottom button.secondary {
  background: #1d3c47; color: #bcd7dd; border-color: #2d5a67;
}
body[data-client-theme="night"] .user-info-actions-bottom button.secondary:hover {
  background: #264f5c; border-color: #3b6f7e;
}
body[data-client-theme="night"] .user-info-actions-inline button.action-sm,
body[data-client-theme="night"] .user-info-actions-top button.action-sm {
  color: #6eddd0; border-color: #2d7a6a;
}
body[data-client-theme="night"] .user-info-actions-inline button.action-sm:hover,
body[data-client-theme="night"] .user-info-actions-top button.action-sm:hover {
  background: #1d4a47; border-color: #4dbbaa;
}
body[data-client-theme="night"] .user-info-actions-inline button.action-sm.liked,
body[data-client-theme="night"] .user-info-actions-top button.action-sm.liked {
  color: #f06a8a; border-color: #dc2850; background: rgba(220,40,80,0.12);
}
body[data-client-theme="night"] .user-info-actions-inline button.action-sm.liked:hover,
body[data-client-theme="night"] .user-info-actions-top button.action-sm.liked:hover {
  background: rgba(220,40,80,0.2); border-color: #dc2850;
}

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-toggle,
body[data-client-theme="night"] .site-bot-welcome-section small,
body[data-client-theme="night"] .site-bot-chat-section small,
body[data-client-theme="night"] .mini-user-fields label {
  color: #c9f5ef;
}

body[data-client-theme="night"] .site-feature-toggles {
  border-color: #26565d;
  background: #12333a;
}
body[data-client-theme="night"] .site-feature-toggles legend {
  color: #7fe3d4;
}

body[data-client-theme="night"] .site-features-checkboxes label {
  color: #b0d0d8;
}
body[data-client-theme="night"] .site-features-checkboxes label:has(input:disabled) {
  color: #557a82;
}

body[data-client-theme="night"] .site-settings-footer .primary {
  border-color: #2a9db3;
  background: linear-gradient(180deg, #1e7a90 0%, #145a6e 100%);
}

body[data-client-theme="night"] .site-settings-footer .secondary {
  border-color: #1e4a55;
  background: linear-gradient(180deg, #152e35 0%, #0f2530 100%);
  color: #8dd8d0;
}

/* Night: Bot section */
body[data-client-theme="night"] .site-settings-bot-section {
  border-color: #4a3870;
  background: linear-gradient(160deg, #1e1630 0%, #180f28 100%);
}

body[data-client-theme="night"] .site-settings-bot-section h3 {
  color: #c0a8f0;
  border-left-color: #8060c0;
}

body[data-client-theme="night"] .site-settings-bot-section .meta {
  color: #9878d8;
}

body[data-client-theme="night"] .site-bot-select-label select {
  border-color: #4a3870;
  background: #120c20;
  color: #d0c0f0;
}

body[data-client-theme="night"] .site-bot-select-label select:focus {
  border-color: #8060c0;
  box-shadow: 0 0 0 2px rgba(128, 96, 192, 0.25);
}

body[data-client-theme="night"] .site-bot-select-info {
  color: #7860a0;
}

body[data-client-theme="night"] .site-bot-empty-message {
  color: #6a5090;
}

body[data-client-theme="night"] .site-bot-editor {
  border-color: #3a2870;
  background: #140e24;
}

body[data-client-theme="night"] .site-bot-editor-header {
  background: linear-gradient(135deg, #1e1438, #1a1030);
  border-bottom-color: #3a2870;
}

body[data-client-theme="night"] .site-bot-editor-avatar-fallback {
  background: linear-gradient(135deg, #6040a0, #8060c0);
}

body[data-client-theme="night"] .site-bot-editor-name {
  color: #c0a8f0;
}

body[data-client-theme="night"] .mode-welcome {
  background: #1a3a2a;
  color: #80d8a8;
  border-color: #2a5a40;
}

body[data-client-theme="night"] .mode-chat {
  background: #1a2848;
  color: #90b8f8;
  border-color: #284080;
}

body[data-client-theme="night"] .mode-default {
  background: #2a2050;
  color: #9880c0;
  border-color: #403070;
}

body[data-client-theme="night"] .site-bot-editor-status.active {
  background: #1a3a2a;
  color: #80d8a8;
}

body[data-client-theme="night"] .site-bot-editor-status.inactive {
  background: #3a2020;
  color: #c08080;
}

body[data-client-theme="night"] .site-bot-editor-field {
  color: #a088d0;
}

body[data-client-theme="night"] .site-bot-editor-field select,
body[data-client-theme="night"] .site-bot-editor-field textarea,
body[data-client-theme="night"] .site-bot-editor-field input {
  border-color: #4a3870;
  background: #120c20;
  color: #d0c0f0;
}

body[data-client-theme="night"] .site-bot-editor-field select:focus,
body[data-client-theme="night"] .site-bot-editor-field textarea:focus,
body[data-client-theme="night"] .site-bot-editor-field input:focus {
  border-color: #8060c0;
  box-shadow: 0 0 0 2px rgba(128, 96, 192, 0.25);
}

body[data-client-theme="night"] .site-bot-editor-field small {
  color: #7860a0;
}

body[data-client-theme="night"] .site-bot-editor-toggle {
  color: #a088d0;
}

body[data-client-theme="night"] .site-bot-editor-toggle input {
  accent-color: #8060c0;
}

body[data-client-theme="night"] .site-bot-editor-footer {
  background: #1a1430;
  border-top-color: #3a2870;
}

body[data-client-theme="night"] .site-bot-editor-footer .primary {
  background: linear-gradient(180deg, #6040a0 0%, #4a2e80 100%);
  border-color: #3a2060;
}

body[data-client-theme="night"] .site-bot-editor-footer .primary:hover {
  background: linear-gradient(180deg, #7050b0 0%, #5a3890 100%);
}

body[data-client-theme="night"] .site-bot-editor-footer .danger {
  border-color: #6a3040;
  background: linear-gradient(180deg, #3a1820 0%, #2e1218 100%);
  color: #d890a0;
}

body[data-client-theme="night"] .site-bot-editor-footer .danger:hover {
  border-color: #904050;
  background: linear-gradient(180deg, #4a2028 0%, #3a1820 100%);
}

body[data-client-theme="night"] .site-bot-editor-message {
  color: #7a60a0;
}

body[data-client-theme="night"] .site-bot-create-form {
  background: rgba(64, 40, 128, 0.08);
  border-color: #4a3870;
}

body[data-client-theme="night"] .site-bot-create-form input {
  border-color: #4a3870;
  background: #120c20;
  color: #d0c0f0;
}

body[data-client-theme="night"] .site-bot-create-buttons .primary {
  background: linear-gradient(180deg, #6040a0 0%, #4a2e80 100%);
  border-color: #3a2060;
}

body[data-client-theme="night"] .site-bot-create-buttons .primary:hover {
  background: linear-gradient(180deg, #7050b0 0%, #5a3890 100%);
}

body[data-client-theme="night"] .site-bot-create-buttons button:not(.primary) {
  border-color: #4a3870;
  background: transparent;
  color: #c0a8f0;
}

body[data-client-theme="night"] .site-bot-create-buttons button:not(.primary):hover {
  background: rgba(64, 40, 128, 0.15);
}

/* Night: Toolbar rozetleri */
body[data-client-theme="night"] .site-toolbar-badge {
  background: linear-gradient(135deg, #152e35 0%, #0f2530 100%);
  border-color: #1e4a55;
  color: #7fd8cc;
}

body[data-client-theme="night"] .site-toolbar-badge strong {
  color: #a0eee4;
}

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-room-form fieldset {
  border-color: rgba(100, 199, 187, 0.2);
  background: #13252d;
}
body[data-client-theme="night"] .admin-room-form fieldset[data-category="general"] {
  border-color: rgba(76, 175, 80, 0.35);
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.08), #13252d 100%);
}
body[data-client-theme="night"] .admin-room-form fieldset[data-category="voice"] {
  border-color: rgba(255, 152, 0, 0.35);
  background: linear-gradient(180deg, rgba(255, 152, 0, 0.08), #13252d 100%);
}
body[data-client-theme="night"] .admin-room-form fieldset[data-category="event"] {
  border-color: rgba(3, 169, 244, 0.35);
  background: linear-gradient(180deg, rgba(3, 169, 244, 0.08), #13252d 100%);
}
body[data-client-theme="night"] .admin-room-form fieldset[data-category="ad"] {
  border-color: rgba(233, 30, 99, 0.35);
  background: linear-gradient(180deg, rgba(233, 30, 99, 0.08), #13252d 100%);
}
body[data-client-theme="night"] .admin-room-form fieldset[data-category="appearance"] {
  border-color: rgba(156, 39, 176, 0.35);
  background: linear-gradient(180deg, rgba(156, 39, 176, 0.08), #13252d 100%);
}
body[data-client-theme="night"] .admin-room-form fieldset[data-category="access"] {
  border-color: rgba(100, 199, 187, 0.25);
  background: linear-gradient(180deg, rgba(100, 199, 187, 0.06), #13252d 100%);
}
body[data-client-theme="night"] .admin-room-form legend {
  color: #9fbcc5;
}
body[data-client-theme="night"] .admin-room-form fieldset[data-category="general"] legend { color: #81c784; }
body[data-client-theme="night"] .admin-room-form fieldset[data-category="voice"] legend { color: #ffb74d; }
body[data-client-theme="night"] .admin-room-form fieldset[data-category="event"] legend { color: #4fc3f7; }
body[data-client-theme="night"] .admin-room-form fieldset[data-category="ad"] legend { color: #f06292; }
body[data-client-theme="night"] .admin-room-form fieldset[data-category="appearance"] legend { color: #ce93d8; }
body[data-client-theme="night"] .admin-room-form fieldset[data-category="access"] legend { color: #90a4ae; }

body[data-client-theme="night"] .admin-room-tab {
  border-color: rgba(100, 199, 187, 0.2);
  background: #1a2f38;
  color: #9fbcc5;
}

body[data-client-theme="night"] .admin-room-tab:hover {
  background: #233f4a;
}

body[data-client-theme="night"] .admin-room-tab.active {
  background: #90a4ae;
  border-color: #90a4ae;
  color: #13252d;
}

body[data-client-theme="night"] .admin-room-tab.active[data-room-tab="general"] { background: #81c784; border-color: #81c784; color: #13252d; }
body[data-client-theme="night"] .admin-room-tab.active[data-room-tab="voice"] { background: #ffb74d; border-color: #ffb74d; color: #13252d; }
body[data-client-theme="night"] .admin-room-tab.active[data-room-tab="event"] { background: #4fc3f7; border-color: #4fc3f7; color: #13252d; }
body[data-client-theme="night"] .admin-room-tab.active[data-room-tab="ad"] { background: #f06292; border-color: #f06292; color: #13252d; }
body[data-client-theme="night"] .admin-room-tab.active[data-room-tab="appearance"] { background: #ce93d8; border-color: #ce93d8; color: #13252d; }
body[data-client-theme="night"] .admin-room-tab.active[data-room-tab="gradient"] { background: #4db6ac; border-color: #4db6ac; color: #13252d; }
body[data-client-theme="night"] .admin-room-tab.active[data-room-tab="access"] { background: #90a4ae; border-color: #90a4ae; color: #13252d; }

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"] .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"] .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-window-toolbar button.upgrade-button {
  background: linear-gradient(180deg, #66551d, #4a3d14);
  border-color: #b8952a;
  color: #ffe484;
}
body[data-client-theme="night"] .admin-window-toolbar button.upgrade-button:hover {
  background: linear-gradient(180deg, #7a6623, #5a4c1a);
  border-color: #d4aa30;
  color: #ffe066;
}
body[data-client-theme="night"] .toolbar-sep {
  background: #3a6b78;
}
body[data-client-theme="night"] .site-plan-label {
  background: #1f3e47;
  color: #b0d8e0;
}
body[data-client-theme="night"] .site-plan-label strong {
  color: #e4f6fa;
}
body[data-client-theme="night"] .site-info-tag {
  background: #1a3640;
  border-color: #2d5360;
  color: #aac5cc;
}
body[data-client-theme="night"] .site-info-tag .tag-label {
  color: #7f9ca5;
}
body[data-client-theme="night"] .site-info-tag strong {
  color: #d0ecf0;
}
body[data-client-theme="night"] .site-usage-line {
  color: #b0d0d8;
  border-top-color: #2d5360;
}
body[data-client-theme="night"] .site-settings-plan-limits {
  color: #aac5cc;
}
body[data-client-theme="night"] .plan-limit-item strong {
  color: #d0ecf0;
}
body[data-client-theme="night"] .site-rent-tag .tag-label {
  color: #7a9ea8;
}
body[data-client-theme="night"] .site-rent-end-tag strong {
  color: #e67e22;
}
body[data-client-theme="night"] .upgrade-plan-card {
  background: #152b34;
  border-color: #2d5360;
}
body[data-client-theme="night"] .upgrade-plan-card.current-plan {
  border-color: #5a9a4c;
  box-shadow: 0 0 0 1px #5a9a4c, 0 4px 16px rgba(90,154,76,0.2);
}
body[data-client-theme="night"] .upgrade-plan-head {
  background: linear-gradient(180deg, #1a3640, #0f2832);
  border-bottom-color: #2d5360;
}
body[data-client-theme="night"] .upgrade-plan-card.current-plan .upgrade-plan-head {
  background: linear-gradient(180deg, #1d3a1a, #142e12);
  border-bottom-color: #3a6a30;
}
body[data-client-theme="night"] .upgrade-plan-head strong {
  color: #e0f0f5;
}
body[data-client-theme="night"] .upgrade-plan-price {
  color: #f5a83a;
}
body[data-client-theme="night"] .upgrade-plan-price small {
  color: #b8945a;
}
body[data-client-theme="night"] .upgrade-plan-body {
  background: #152b34;
}
body[data-client-theme="night"] .upgrade-plan-meta {
  color: #7f9ca5;
  border-bottom-color: #2d5360;
}
body[data-client-theme="night"] .upgrade-plan-feature {
  color: #cce4ea;
}
body[data-client-theme="night"] .upgrade-plan-feature .feat-icon {
  background: #1f4a57;
  color: #88d4e0;
}
body[data-client-theme="night"] .upgrade-plan-feature.common {
  color: #b8dbaa;
  border-top-color: #2d5360;
}
body[data-client-theme="night"] .upgrade-plan-feature.common .feat-icon {
  background: #2a4a22;
  color: #88cc6a;
}
body[data-client-theme="night"] .upgrade-plan-badge {
  background: #4a8a3c;
}
body[data-client-theme="night"] .upgrade-plan-card button.primary {
  background: linear-gradient(180deg, #d4911e 0%, #b87818 100%);
  border-color: #9a6814;
  box-shadow: 0 2px 8px rgba(180, 100, 10, 0.3);
  color: #fff;
}
body[data-client-theme="night"] .upgrade-plan-card button.primary:hover {
  background: linear-gradient(180deg, #e09e28 0%, #c8821c 100%);
  box-shadow: 0 3px 12px rgba(180, 100, 10, 0.45);
}
body[data-client-theme="night"] .upgrade-plan-card button.primary:disabled {
  background: #2a4850;
  border-color: #3a5a62;
  color: #6a8e94;
  box-shadow: none;
}

body[data-client-theme="night"] .admin-modal {
  border-color: rgba(100, 199, 187, 0.25);
  background: #152b34;
}

body[data-client-theme="night"] .admin-modal-head {
  border-bottom-color: rgba(100, 199, 187, 0.2);
  background: linear-gradient(180deg, #1b3540 0%, #132934 100%);
  color: #c9f5ef;
}

body[data-client-theme="night"] .admin-modal-close {
  color: #c9f5ef;
}

body[data-client-theme="night"] .admin-modal-form label {
  color: #a8d8d0;
}

body[data-client-theme="night"] .admin-modal-form input {
  border-color: rgba(100, 199, 187, 0.28);
  background: #111f27;
  color: #d6f5f0;
}

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"] .static-field {
  background: rgba(100, 199, 187, 0.08);
  border-color: rgba(100, 199, 187, 0.22);
}

body[data-client-theme="night"] .static-field .field-label {
  color: #b8e6ed;
}

body[data-client-theme="night"] .static-field .field-value {
  color: #7de0d6;
}

body[data-client-theme="night"] .static-field .field-note {
  color: #699fa8;
}

body[data-client-theme="night"] .traffic-banner.traffic-ok {
  background: linear-gradient(135deg, #1b3a1e 0%, #1e4620 100%);
  border-color: #43a047;
}
body[data-client-theme="night"] .traffic-banner.traffic-warning {
  background: linear-gradient(135deg, #3d2e0d 0%, #4a3508 100%);
  border-color: #fb8c00;
}
body[data-client-theme="night"] .traffic-banner.traffic-exceeded {
  background: linear-gradient(135deg, #3d1518 0%, #4a1a1e 100%);
  border-color: #e53935;
}
body[data-client-theme="night"] .traffic-ok .traffic-banner-title { color: #81c784; }
body[data-client-theme="night"] .traffic-warning .traffic-banner-title { color: #ffb74d; }
body[data-client-theme="night"] .traffic-exceeded .traffic-banner-title { color: #ef9a9a; }
body[data-client-theme="night"] .traffic-banner-meta { color: #9eb9c0; }
body[data-client-theme="night"] .traffic-banner-meta strong { color: #d9edf1; }
body[data-client-theme="night"] .traffic-warning .traffic-banner-alert { background: rgba(251,140,0,0.15); color: #ffb74d; }
body[data-client-theme="night"] .traffic-exceeded .traffic-banner-alert { background: rgba(229,57,53,0.15); color: #ef9a9a; }
body[data-client-theme="night"] .traffic-banner-bar { background: rgba(255,255,255,0.1); }

body[data-client-theme="night"] .site-settings-section h3 {
  border-left-color: #3bbfcc;
}

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"] .room-settings-card {
  border-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, #0e1e26 0%, #13252d 100%);
  box-shadow: 0 24px 66px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body[data-client-theme="night"] .room-settings-head {
  border-bottom-color: rgba(100, 199, 187, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(155, 225, 216, 0.03)),
    linear-gradient(180deg, #1a313a 0%, #142832 100%);
}
body[data-client-theme="night"] .room-settings-head p { color: #9fbcc5; }
body[data-client-theme="night"] .room-settings-head h2 { color: #d9edf1; }
body[data-client-theme="night"] .room-settings-head button {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(15, 31, 39, 0.76);
  color: #9fbcc5;
  box-shadow: none;
}
body[data-client-theme="night"] .room-settings-id {
  border-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(155, 225, 216, 0.03));
  color: #9fbcc5;
}
body[data-client-theme="night"] .room-settings-id b { color: #64c7bb; }
body[data-client-theme="night"] .room-settings-form {
  background: #0e1e26;
}
body[data-client-theme="night"] .room-settings-form label { color: #9fbcc5; }
body[data-client-theme="night"] .room-settings-form input,
body[data-client-theme="night"] .room-settings-form textarea {
  border-color: rgba(100, 199, 187, 0.28);
  background: #111f27;
  color: #d9edf1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="night"] .room-settings-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;
  box-shadow: none;
}
body[data-client-theme="night"] .room-settings-checks input { accent-color: #64c7bb; }
body[data-client-theme="night"] .room-settings-message { color: #f2d06b; }
body[data-client-theme="night"] .room-settings-form footer { border-top-color: rgba(100, 199, 187, 0.2); }
body[data-client-theme="night"] .room-settings-card .primary {
  border-color: #2a9db3;
  background: linear-gradient(180deg, #1e7a90 0%, #145a6e 100%);
}
body[data-client-theme="night"] .room-settings-card .secondary {
  border-color: #1e4a55;
  background: linear-gradient(180deg, #152e35 0%, #0f2530 100%);
  color: #8dd8d0;
}

body[data-client-theme="night"] .admin-support-site {
  background: rgba(20, 40, 60, 0.85) !important;
  border: 1px solid rgba(100, 199, 187, 0.28) !important;
  color: #d9edf1 !important;
}
body[data-client-theme="night"] .admin-support-whatsapp {
  background: rgba(20, 50, 30, 0.85) !important;
  border: 1px solid rgba(100, 199, 120, 0.28) !important;
  color: #d9edf1 !important;
}
body[data-client-theme="night"] .admin-support-email {
  background: rgba(35, 25, 60, 0.85) !important;
  border: 1px solid rgba(140, 100, 220, 0.28) !important;
  color: #d9edf1 !important;
}
body[data-client-theme="night"] .admin-support-phone {
  background: rgba(50, 35, 15, 0.85) !important;
  border: 1px solid rgba(220, 170, 60, 0.28) !important;
  color: #d9edf1 !important;
}
body[data-client-theme="night"] .admin-support-site span,
body[data-client-theme="night"] .admin-support-whatsapp span,
body[data-client-theme="night"] .admin-support-email span,
body[data-client-theme="night"] .admin-support-phone span {
  color: #9fbcc5 !important;
}

body[data-client-theme="night"] [data-open-support-ticket] {
  background: linear-gradient(135deg, #1e7a90, #145a6e) !important;
  color: #eaffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
body[data-client-theme="night"] [data-open-support-ticket]:hover {
  background: linear-gradient(135deg, #2a9db3, #1a7088) !important;
}
body[data-client-theme="night"] [id^="admin-contact-support-container-"] [data-ticket-id] {
  border-color: rgba(100, 199, 187, 0.2) !important;
  background: #13252d !important;
}
body[data-client-theme="night"] [id^="admin-contact-support-container-"] [data-ticket-id] > div > div:first-child {
  color: #d9edf1 !important;
}
body[data-client-theme="night"] [id^="admin-contact-support-container-"] [data-ticket-id] > div > div:last-child {
  color: #9fbcc5 !important;
}
body[data-client-theme="night"] [id^="admin-contact-support-container-"] [style*="color:#555"] {
  color: #d9edf1 !important;
}

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"] .site-settings-note-inline {
  color: #d4b078;
}

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-feature-toggles input,
body[data-client-theme="night"] .site-bot-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-list-item.room-member {
  border-color: rgba(74, 255, 130, 0.24);
  background: linear-gradient(180deg, #1d332a 0%, #14281d 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-list-item.room-member .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,
body[data-client-theme="night"] #currentSpeakerPin .list-item.user-row.current-speaker-user {
  border-color: color-mix(in oklab, #d84f5d 42%, transparent) !important;
  background: color-mix(in oklab, #4e252e 78%, var(--surface) 22%) !important;
  box-shadow: inset 4px 0 0 #c44d5a, 0 4px 18px -8px color-mix(in oklab, #781e2d 30%, transparent) !important;
}

body[data-client-theme="night"] #usersList .list-item.user-row.current-speaker-user::before,
body[data-client-theme="night"] #currentSpeakerPin .list-item.user-row.current-speaker-user::before {
  background: color-mix(in oklab, #4e252e 88%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in oklab, #c8505a 28%, transparent),
    0 4px 12px color-mix(in oklab, #000 26%, transparent);
}

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,
body[data-client-theme="night"] #currentSpeakerPin .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: color-mix(in oklab, #5089c8 40%, transparent) !important;
  background: color-mix(in oklab, #244663 80%, var(--surface) 20%) !important;
  box-shadow: inset 4px 0 0 #5089c8, 0 4px 18px -8px color-mix(in oklab, #1e3c64 26%, transparent) !important;
}

body[data-client-theme="night"] #usersList .list-item.user-row.queued-user .user-nick {
  color: #b3d4ff !important;
}

body[data-client-theme="night"] #usersList .list-item.user-row:hover {
  border-color: color-mix(in oklab, var(--accent) 20%, transparent) !important;
  background: color-mix(in oklab, var(--accent-soft) 50%, var(--surface) 50%) !important;
  box-shadow: 0 4px 16px -8px color-mix(in oklab, #000 30%, transparent), inset 0 1px 0 color-mix(in oklab, oklch(1 0 0) 8%, transparent) !important;
}

body[data-client-theme="night"] #usersList .list-item.user-row:hover .user-nick {
  color: #e8f5ff !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: 12px;
  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, hsl(var(--room-tone, 188), 33%, 26%) 0%, hsl(var(--room-tone, 188), 30%, 19%) 100%);
  color: #d9edf1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 3px 7px rgba(0, 0, 0, 0.4);
}

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 .rss-room-count {
  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 .rss-room-topic,
body[data-client-theme="night"] .room-style-room-button .rss-room-status,
body[data-client-theme="night"] .room-style-room-button .rss-room-meta {
  color: #b8ced6;
}

body[data-client-theme="night"] .room-style-room-button .rss-room-status {
  border-color: rgba(155, 225, 216, 0.24);
  background: rgba(15, 31, 39, 0.68);
}

body[data-client-theme="night"] .room-style-room-button.active {
  border-color: rgba(155, 225, 216, 0.52);
  background: linear-gradient(180deg, hsl(var(--room-tone, 188), 36%, 30%) 0%, hsl(var(--room-tone, 188), 33%, 25%) 100%);
  box-shadow:
    inset 4px 0 0 rgba(155, 225, 216, 0.82),
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(100, 199, 187, 0.24);
}

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 .rss-room-status {
  border-color: rgba(155, 225, 216, 0.7);
  background: linear-gradient(180deg, rgba(155, 225, 216, 0.26), rgba(100, 199, 187, 0.4));
  color: #eafffc;
  box-shadow: 0 0 12px rgba(155, 225, 216, 0.35);
}

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, hsl(var(--room-tone, 188), 33%, 28%) 0%, hsl(var(--room-tone, 188), 30%, 22%) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 18px rgba(255, 120, 20, 0.55);
}

body[data-client-theme="night"] .rss-star {
  color: #f0c850;
}
body[data-client-theme="night"] .room-style-room-button:hover .rss-star {
  color: #ffe680;
  filter: drop-shadow(0 0 16px rgba(255, 210, 60, 1));
}

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 3px 0 0 rgba(0, 0, 0, 0.35),
    0 5px 14px rgba(0, 0, 0, 0.3);
}

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-button:not(.mobile-layout) .room-button-style-actions .room-profile-button {
  border-color: rgba(100, 199, 187, 0.38);
  background: rgba(15, 31, 39, 0.78);
}

body[data-client-theme="night"].room-style-button:not(.mobile-layout) .room-button-style-actions .room-profile-button:hover {
  border-color: rgba(155, 225, 216, 0.48);
}

body[data-client-theme="night"].room-style-button:not(.mobile-layout) .room-button-style-actions .room-style-menu-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 3px 0 0 rgba(0, 0, 0, 0.35),
    0 5px 14px rgba(0, 0, 0, 0.3);
}

body[data-client-theme="night"].room-style-button:not(.mobile-layout) .room-button-style-actions .room-style-menu-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%);
  box-shadow:
    0 0 12px rgba(255, 130, 40, 0.7),
    0 0 28px rgba(255, 60, 10, 0.5),
    0 0 56px rgba(255, 30, 0, 0.25);
}

body[data-client-theme="night"] .room-style-popup-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"] .room-style-menu-owner {
  border-bottom-color: rgba(100, 199, 187, 0.18);
  color: #ffbac2;
}

body[data-client-theme="night"] .room-style-popup-menu button {
  color: #d9edf1;
}

body[data-client-theme="night"] .room-style-popup-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"] .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"] .smart-room-group > span,
body[data-client-theme="night"] .voice-queue-summary span {
  color: #8fb2bb;
}

body[data-client-theme="night"] .smart-room-chip {
  border-color: rgba(100, 199, 187, 0.22);
  background: linear-gradient(180deg, #1d333c 0%, #142832 100%);
  color: #d9edf1;
}

body[data-client-theme="night"] .smart-room-chip b,
body[data-client-theme="night"] .voice-queue-chip strong,
body[data-client-theme="night"] .notification-item strong {
  color: #e8fbff;
}

body[data-client-theme="night"] .smart-room-chip span,
body[data-client-theme="night"] .voice-queue-chip small,
body[data-client-theme="night"] .voice-queue-empty,
body[data-client-theme="night"] .notification-item span,
body[data-client-theme="night"] .notification-item small,
body[data-client-theme="night"] .notification-empty {
  color: #9bb5be;
}

body[data-client-theme="night"] .smart-room-chip.active,
body[data-client-theme="night"] .smart-room-chip:hover {
  border-color: rgba(155, 225, 216, 0.46);
  background: linear-gradient(180deg, #254b57 0%, #193541 100%);
}

body[data-client-theme="night"] .room-favorite-toggle {
  color: #9bb5be;
  background: rgba(15, 31, 39, 0.78);
  border: 1px solid rgba(100, 199, 187, 0.18);
}

body[data-client-theme="night"] .room-favorite-toggle.active {
  color: #ffcf4a;
  background: rgba(91, 67, 14, 0.86);
  border-color: rgba(255, 207, 74, 0.36);
}

body[data-client-theme="night"] .voice-queue-panel {
  border-color: rgba(100, 199, 187, 0.18);
  background: linear-gradient(90deg, #14262e 0%, #1a323b 52%, #11232b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(100, 199, 187, 0.08);
}

body[data-client-theme="night"] .voice-queue-summary b {
  color: #c9fff6;
}

body[data-client-theme="night"] .profile-top-flow {
  border-color: rgba(100, 199, 187, 0.18);
  background: linear-gradient(90deg, rgba(31, 49, 51, 0.98) 0%, rgba(18, 39, 48, 0.98) 50%, rgba(15, 31, 40, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .profile-top-title span {
  color: #93b8bd;
}

body[data-client-theme="night"] .profile-top-title b,
body[data-client-theme="night"] .profile-top-copy strong {
  color: #ecfeff;
}

body[data-client-theme="night"] .profile-top-card {
  border-color: rgba(100, 199, 187, 0.2);
  background: rgba(18, 39, 48, 0.78);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

body[data-client-theme="night"] .media-profile-flow .profile-message-band-card {
  border-color: rgba(100, 199, 187, 0.4);
  background:
    radial-gradient(circle at 34px 50%, rgba(99, 211, 195, 0.14), transparent 38px),
    linear-gradient(105deg, rgba(18, 48, 58, 0.98) 0%, rgba(14, 38, 50, 0.96) 50%, rgba(18, 46, 42, 0.95) 100%),
    var(--role-card-bg, rgba(18, 39, 48, 0.78));
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(100, 199, 187, 0.14);
}

body[data-client-theme="night"] .media-profile-flow .profile-message-band-head strong,
body[data-client-theme="night"] .media-profile-flow .profile-message-band-copy p {
  color: #ecfeff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.42);
}

body[data-client-theme="night"] .media-profile-flow .profile-message-band-head strong {
  color: var(--message-band-nick-color, #9be1d8);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.52), 0 0 8px rgba(100, 199, 187, 0.16);
}

body[data-client-theme="night"] .profile-top-avatar .user-avatar {
  border-color: rgba(226, 251, 250, 0.16);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.26);
}

body[data-client-theme="night"] .profile-top-flow.mic-active {
  background: linear-gradient(90deg, rgba(18, 52, 42, 0.98) 0%, rgba(14, 32, 39, 0.98) 100%);
}

body[data-client-theme="night"] .profile-top-mic-icon {
  background: linear-gradient(180deg, #174231 0%, #102b22 100%);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"] .profile-top-mic strong {
  color: #cbf8df;
}

body[data-client-theme="night"] .profile-top-mic small {
  color: #9abdb5;
}

body[data-client-theme="night"] .voice-queue-chip,
body[data-client-theme="night"] .voice-queue-empty {
  border-color: rgba(100, 199, 187, 0.24);
  background: linear-gradient(180deg, #203941 0%, #172b34 100%);
}

body[data-client-theme="night"] .voice-queue-chip.speaker {
  border-color: rgba(117, 216, 205, 0.42);
  background: linear-gradient(180deg, #1d4a46 0%, #173739 100%);
}

body[data-client-theme="night"] .notification-button,
body[data-client-theme="night"] .room-theme-button {
  border-color: rgba(100, 199, 187, 0.28);
  background:
    radial-gradient(circle at 30% 22%, rgba(155, 225, 216, 0.2), transparent 34%),
    linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #c9fff6;
  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"] .room-invite-button {
  border-color: rgba(100, 199, 187, 0.28);
  background:
    radial-gradient(circle at 30% 22%, rgba(155, 225, 216, 0.2), transparent 34%),
    linear-gradient(180deg, #203941 0%, #172b34 100%);
  color: #c9fff6;
  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"] .notification-button:hover,
body[data-client-theme="night"] .room-invite-button:hover,
body[data-client-theme="night"] .room-theme-button:hover,
body[data-client-theme="night"] .room-theme-button[aria-expanded="true"] {
  border-color: rgba(155, 225, 216, 0.46);
  background:
    radial-gradient(circle at 30% 22%, rgba(155, 225, 216, 0.26), transparent 34%),
    linear-gradient(180deg, #294a55 0%, #1a313b 100%);
  color: #f1fbfd;
  box-shadow:
    0 0 12px rgba(255, 130, 40, 0.7),
    0 0 28px rgba(255, 60, 10, 0.5),
    0 0 56px rgba(255, 30, 0, 0.25);
}

body[data-client-theme="night"] .room-event-card,
body[data-client-theme="night"] .text-tools {
  border-bottom-color: rgba(100, 199, 170, 0.22);
  background: linear-gradient(105deg,
    rgba(50, 22, 32, 0.94) 0%,
    rgba(14, 48, 40, 0.94) 36%,
    rgba(16, 42, 56, 0.94) 68%,
    rgba(50, 40, 18, 0.94) 100%);
  color: #c0e8d8;
  box-shadow: inset 0 1px 0 rgba(100, 199, 170, 0.1), 0 1px 8px rgba(0,0,0,0.3);
}

body[data-client-theme="night"] .room-event-glow {
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(100, 199, 170, 0.08) 30%,
    rgba(50, 180, 150, 0.08) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
}

body[data-client-theme="night"] .event-badge {
  border-color: rgba(220, 100, 90, 0.5);
  background: linear-gradient(135deg, rgba(80, 25, 20, 0.9) 0%, rgba(110, 35, 30, 0.85) 100%);
  color: #f5a098;
  box-shadow: 0 1px 6px rgba(200, 60, 50, 0.25), inset 0 1px 0 rgba(255,160,150,0.12);
}

body[data-client-theme="night"] .room-event-main span:not(.event-badge),
body[data-client-theme="night"] .room-event-actions a {
  border-color: rgba(100, 199, 170, 0.3);
  background: rgba(14, 48, 40, 0.72);
  color: #8ad8c0;
}

body[data-client-theme="night"] .room-event-main strong {
  color: #b0e0d0;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5), 0 0 8px rgba(100,199,170,0.15);
}

body[data-client-theme="night"] .room-event-main small {
  color: #6ab8a0;
}

body[data-client-theme="night"] .room-event-actions time {
  border-color: rgba(60, 180, 210, 0.4);
  background: linear-gradient(135deg, rgba(0, 50, 70, 0.9) 0%, rgba(0, 72, 92, 0.85) 100%);
  color: #8ad8ee;
  box-shadow: 0 1px 4px rgba(0,120,160,0.2);
}

body[data-client-theme="night"] .room-event-actions a {
  border-color: rgba(80, 190, 170, 0.4);
  background: linear-gradient(135deg, rgba(0, 50, 40, 0.9) 0%, rgba(0, 72, 56, 0.85) 100%);
  color: #64c7b0;
  box-shadow: 0 1px 4px rgba(0,150,120,0.2);
}

body[data-client-theme="night"] .room-toast.join {
  border-color: #1e644a;
  background: linear-gradient(180deg, #1a3a2a 0%, #0f2e1e 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

body[data-client-theme="night"] .room-toast.leave {
  border-color: #6e2e2a;
  background: linear-gradient(180deg, #3a1e1c 0%, #2e1412 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

body[data-client-theme="night"] .room-toast.join .room-toast-title,
body[data-client-theme="night"] .room-toast.join .room-toast-body {
  color: #6fd69a;
}

body[data-client-theme="night"] .room-toast.leave .room-toast-title,
body[data-client-theme="night"] .room-toast.leave .room-toast-body {
  color: #f09086;
}

body[data-client-theme="night"] .notification-center {
  border-color: rgba(100, 199, 187, 0.24);
  background: rgba(15, 31, 39, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

body[data-client-theme="night"] .notification-center header {
  border-bottom-color: rgba(100, 199, 187, 0.16);
  background: linear-gradient(180deg, #1d333c 0%, #142832 100%);
}

body[data-client-theme="night"] .notification-center header strong {
  color: #e8fbff;
}

body[data-client-theme="night"] .notification-center header button {
  color: #9be1d8;
}

body[data-client-theme="night"] .notification-item {
  border: 1px solid rgba(100, 199, 187, 0.16);
  background: linear-gradient(180deg, #1d333c 0%, #142832 100%);
}

body[data-client-theme="night"] .conversion-prompt {
  border-color: rgba(255, 207, 74, 0.32);
  background: linear-gradient(180deg, #3a331d 0%, #272616 100%);
}

body[data-client-theme="night"] .conversion-prompt strong {
  color: #ffe6a2;
}

body[data-client-theme="night"] .conversion-prompt span {
  color: #d4bd79;
}

body[data-client-theme="night"] .conversion-prompt button {
  border-color: rgba(255, 207, 74, 0.28);
  background: rgba(15, 31, 39, 0.78);
  color: #ffe6a2;
}

body[data-client-theme="night"] .login-security-prompt {
  border-color: rgba(255, 185, 74, 0.36);
  background: linear-gradient(180deg, #443018 0%, #2b2214 100%);
}

body[data-client-theme="night"] .site-embed-section textarea {
  border-color: rgba(100, 199, 187, 0.22);
  background: #0f1f27;
  color: #d9edf1;
}

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,
body.mobile-layout .mobile-action-bar .theme-sun-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: 20px;
  }

  .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]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-screen {
  background: linear-gradient(180deg, var(--page) 0%, var(--surface) 58%, var(--surface-2) 100%);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-card {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-window-body {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-hero-icon {
  border-color: var(--line-strong);
  background: linear-gradient(105deg, var(--surface-3), var(--surface-2));
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-card h1,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-brand {
  background: linear-gradient(105deg, var(--accent-strong), var(--accent));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-card p,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .auth-switch,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-card label,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .auth-check {
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .permission-note {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .auth-field::before {
  color: var(--accent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-card input:not([type="checkbox"]),
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .reset-card input {
  border-color: var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 3px 10px rgba(0, 0, 0, 0.06);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-card input:not([type="checkbox"])::placeholder,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .reset-card input::placeholder {
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-card input:not([type="checkbox"]):focus,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .reset-card input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .auth-divider {
  color: var(--muted);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .auth-divider span {
  color: var(--text);
  background: var(--surface-2);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .auth-divider::before,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .auth-divider::after {
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .google-login-button {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
  color: var(--text);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-submit {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: var(--text);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.18);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .auth-link,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .auth-button-link {
  color: var(--accent-strong);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-message,
body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-statusbar {
  border-top-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

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-personal-style-controls {
  border-bottom-color: rgba(100, 199, 187, 0.15);
}

body[data-client-theme="night"].mobile-layout .mobile-audio-test-button {
  border-color: rgba(100, 199, 187, 0.28);
  background: linear-gradient(180deg, rgba(24, 51, 60, 0.96) 0%, rgba(19, 40, 50, 0.96) 100%);
  color: #a8d4dc;
}
body[data-client-theme="night"].mobile-layout .mobile-audio-test-button:hover {
  border-color: rgba(100, 199, 187, 0.45);
  background: linear-gradient(180deg, rgba(30, 60, 70, 0.96) 0%, rgba(24, 51, 60, 0.96) 100%);
}

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;
  box-shadow:
    0 0 12px rgba(255, 130, 40, 0.7),
    0 0 28px rgba(255, 60, 10, 0.5),
    0 0 56px rgba(255, 30, 0, 0.25);
}

body[data-client-theme="night"].mobile-layout .room-profile-button {
  border-color: rgba(100, 199, 187, 0.38);
  background: rgba(15, 31, 39, 0.78);
}

body[data-client-theme="night"].mobile-layout .room-profile-button:hover {
  border-color: rgba(155, 225, 216, 0.48);
}

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 .mobile-notification-mark {
  color: #c9fff6;
}

body[data-client-theme="night"].mobile-layout .notification-center {
  border-color: rgba(100, 199, 187, 0.28);
  background: rgba(15, 31, 39, 0.98);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.42);
}

body[data-client-theme="night"].mobile-layout .voice-queue-panel {
  border-color: rgba(100, 199, 187, 0.2);
  background: linear-gradient(180deg, #172a33 0%, #13252d 100%);
}

body[data-client-theme="night"].mobile-layout .room-event-card {
  border-color: rgba(100, 199, 187, 0.2);
  background: linear-gradient(90deg,
    rgba(14, 34, 42, 0.98) 0%,
    rgba(20, 42, 52, 0.97) 38%,
    rgba(28, 38, 22, 0.96) 72%,
    rgba(14, 34, 42, 0.98) 100%);
}

body[data-client-theme="night"].mobile-layout .conversion-prompt {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

body[data-client-theme="night"].mobile-layout .composer-wrap > .smiley-panel,
body[data-client-theme="night"].mobile-layout .private-window .private-smiley-panel,
body[data-client-theme="night"].mobile-layout .text-format-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 .private-window .private-tools {
  border-top-color: rgba(100, 199, 187, 0.24) !important;
  border-bottom-color: rgba(100, 199, 187, 0.2) !important;
  background: linear-gradient(180deg, #1a313a 0%, #142832 100%) !important;
}

body[data-client-theme="night"].mobile-layout .private-window .private-titlebar {
  border-bottom-color: rgba(100, 199, 187, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(155, 225, 216, 0.04)),
    linear-gradient(180deg, #203941 0%, #172b34 100%) !important;
  color: #f1fbfd !important;
}

body[data-client-theme="night"].mobile-layout .private-window .private-title strong {
  color: #f1fbfd !important;
}

body[data-client-theme="night"].mobile-layout .private-window .private-typing {
  color: #9be1d8 !important;
}

body[data-client-theme="night"].mobile-layout .private-window .private-window-actions button {
  border-color: rgba(100, 199, 187, 0.3) !important;
  background: rgba(15, 31, 39, 0.86) !important;
  color: #d9edf1 !important;
}

body[data-client-theme="night"].mobile-layout .private-window .private-text-format-panel select,
body[data-client-theme="night"].mobile-layout .private-window .private-tools button,
body[data-client-theme="night"].mobile-layout .private-window .private-tools .color-tool {
  border-color: rgba(100, 199, 187, 0.32) !important;
  background: rgba(15, 31, 39, 0.86) !important;
  color: #d9edf1 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"].mobile-layout .private-window .private-composer {
  border-top: 1px solid rgba(100, 199, 187, 0.22);
  background: linear-gradient(180deg, #182c34 0%, #13252d 100%) !important;
}

body[data-client-theme="night"].mobile-layout .private-window .private-composer input {
  border-color: rgba(100, 199, 187, 0.3) !important;
  background: #111f27 !important;
  color: #e7f4f6 !important;
}

body[data-client-theme="night"].mobile-layout .private-window .private-composer button {
  border-color: rgba(100, 199, 187, 0.38) !important;
  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%) !important;
  color: #eaffff !important;
}

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;
}
/* User-retention surfaces */
.smart-room-strip {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}

.smart-room-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 6px;
}

.smart-room-group > span {
  grid-column: 1 / -1;
  color: #5d7880;
  font: 700 10px var(--client-font);
  text-transform: uppercase;
}

.smart-room-chip {
  min-width: 0;
  border: 1px solid rgba(75, 126, 137, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #24464c;
  border-radius: 12px;
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
}

.smart-room-chip b,
.smart-room-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-room-chip b {
  font: 800 12px var(--client-font);
}

.smart-room-chip span {
  color: #6f8a91;
  font: 600 10px var(--client-font);
}

.smart-room-chip.active,
.smart-room-chip:hover {
  border-color: rgba(24, 132, 145, 0.45);
  background: #e8fbff;
}

.room-list-item {
  position: relative;
}

.room-favorite-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #6d858c;
  background: rgba(255, 255, 255, 0.75);
  font: 900 15px var(--client-font);
  z-index: 2;
}

.room-favorite-toggle.active {
  color: #c78a00;
  background: #fff4c9;
}

.voice-queue-panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
  gap: 7px;
  align-items: center;
  border-top: 1px solid rgba(50, 92, 102, 0.12);
  border-bottom: 1px solid rgba(50, 92, 102, 0.12);
  background: linear-gradient(90deg, rgba(249, 252, 252, 0.96), rgba(241, 248, 249, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: 5px 12px;
}

body:not(.mobile-layout) .voice-queue-panel {
  display: none !important;
}

.voice-queue-summary {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.voice-queue-summary span {
  color: #6f858a;
  font: 650 9px/1.1 var(--client-font);
}

.voice-queue-summary b {
  display: block;
  overflow: hidden;
  color: #214b53;
  font: 800 12px/1.15 var(--client-font);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-queue-items {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.voice-queue-chip,
.voice-queue-empty {
  flex: 0 0 auto;
  min-width: 88px;
  max-width: 126px;
  border: 1px solid rgba(76, 131, 141, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  padding: 4px 7px;
}

.voice-queue-chip.speaker {
  border-color: rgba(40, 151, 111, 0.28);
  background: linear-gradient(180deg, rgba(238, 255, 248, 0.96), rgba(225, 248, 240, 0.92));
}

.voice-queue-chip strong,
.voice-queue-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-queue-chip strong {
  color: #1d4349;
  font: 750 11px/1.1 var(--client-font);
}

.voice-queue-chip small,
.voice-queue-empty {
  color: #6e848b;
  font: 650 9px/1.1 var(--client-font);
}

body[data-client-theme="custom"] .voice-queue-chip,
body[data-client-theme="custom"] .voice-queue-empty {
  border-color: color-mix(in srgb, var(--talk-theme-soft) 70%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.1)),
    linear-gradient(180deg, var(--talk-theme-top) 0%, var(--talk-theme-mid) 100%);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--talk-theme-deep) 24%, transparent);
}

body[data-client-theme="custom"] .voice-queue-chip.speaker {
  border-color: var(--talk-theme-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, var(--talk-theme-mid) 0%, var(--talk-theme-deep) 100%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--talk-theme-soft) 20%, transparent),
    0 8px 18px color-mix(in srgb, var(--talk-theme-deep) 32%, transparent);
}

body[data-client-theme="custom"] .voice-queue-chip strong,
body[data-client-theme="custom"] .voice-queue-chip small,
body[data-client-theme="custom"] .voice-queue-empty {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.38);
}

@keyframes profileTopSlideIn {
  from {
    opacity: 0;
    transform: translateX(34px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes profileTopSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(34px);
  }
}

@keyframes profileFlowSignalOut {
  0% {
    opacity: 1;
    filter: saturate(1);
    transform: scale(1);
  }

  45% {
    opacity: 0.62;
    filter: saturate(1.35) brightness(1.08);
    transform: scale(0.985);
  }

  100% {
    opacity: 0;
    filter: saturate(1.55) brightness(1.12);
    transform: scale(0.97);
  }
}

@keyframes profileFlowSignalIn {
  0% {
    opacity: 0;
    filter: saturate(1.35) brightness(1.1);
    transform: scale(0.985);
  }

  58% {
    opacity: 1;
    filter: saturate(1.15) brightness(1.06);
  }

  100% {
    opacity: 1;
    filter: saturate(1) brightness(1);
    transform: scale(1);
  }
}

.profile-flow-list.profile-flow-list-switching {
  animation: profileFlowSignalOut 260ms ease both;
}

.profile-flow-list.profile-flow-list-opening {
  animation: profileFlowSignalIn 380ms ease both;
}

.profile-top-flow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border-top: 1px solid rgba(50, 92, 102, 0.12);
  border-bottom: 1px solid rgba(50, 92, 102, 0.12);
  background: linear-gradient(90deg, rgba(255, 248, 236, 0.96) 0%, rgba(241, 249, 248, 0.96) 48%, rgba(238, 247, 252, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  overflow: hidden;
}

.profile-top-flow[hidden],
body.mobile-layout .profile-top-flow {
  display: none !important;
}

.profile-top-flow.profile-open {
  animation: profileTopSlideIn 360ms ease both;
}

.profile-top-flow.closing {
  animation: profileTopSlideOut 260ms ease both;
}

.profile-top-title {
  display: grid;
  align-content: center;
  gap: 2px;
  width: 86px;
  min-width: 86px;
}

.profile-top-title span {
  color: #6b7f86;
  font: 850 10px/1.05 var(--client-font);
  text-transform: uppercase;
}

.profile-top-title b {
  color: #244f63;
  font: 900 12px/1.1 var(--client-font);
}

.profile-top-items {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 8px;
  min-width: 0;
}

.profile-top-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(181, 214, 223, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  padding: 5px 9px 5px 5px;
  box-shadow: 0 5px 14px rgba(42, 70, 82, 0.08);
}

.profile-top-avatar,
.profile-top-avatar .user-avatar {
  width: 42px;
  height: 42px;
}

.profile-top-avatar .user-avatar {
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(42, 70, 82, 0.14);
}

.profile-top-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-top-copy strong,
.profile-top-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-top-copy strong {
  color: #243f47;
  font: 900 13px/1.1 var(--client-font);
}

.profile-top-copy span {
  justify-self: start;
  max-width: 100%;
  min-height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: var(--role-badge-bg, linear-gradient(135deg, #86efac 0%, #4ade80 100%));
  box-shadow: 0 2px 6px var(--role-badge-shadow, rgba(74, 222, 128, 0.2));
  color: var(--role-badge-fg, #14532d);
  padding: 1px 5px;
  font: 800 7.5px/1.15 var(--client-font);
}

.profile-top-flow.mic-active {
  grid-template-columns: minmax(0, 1fr);
  background: linear-gradient(90deg, rgba(232, 255, 245, 0.98) 0%, rgba(241, 250, 249, 0.98) 100%);
  animation: profileTopSlideIn 260ms ease both;
}

.profile-top-mic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-top-mic-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #eafff5 0%, #c8f0dc 100%);
  box-shadow: 0 5px 14px rgba(38, 137, 93, 0.18);
}

.profile-top-mic-icon img {
  width: 22px;
  height: 22px;
  animation: speakerMicBlink 900ms infinite ease-in-out;
}

.profile-top-mic div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-top-mic strong,
.profile-top-mic small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-top-mic strong {
  color: #1f5f44;
  font: 900 14px/1.1 var(--client-font);
}

.profile-top-mic small {
  color: #5f7a70;
  font: 800 11px/1.1 var(--client-font);
}

.notification-button,
.mobile-notification-button {
  position: relative;
}

.notification-button {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  width: 34px;
  height: 30px;
  border: 1px solid rgba(65, 112, 122, 0.26);
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #edf7f9 100%);
  color: #27545d;
  font: 900 14px var(--client-font);
  box-shadow:
    0 6px 14px rgba(35, 91, 105, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.notification-button:hover {
  border-color: rgba(50, 114, 124, 0.42);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.98), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #e1f4f7 100%);
  transform: translateY(-1px);
  box-shadow:
    0 0 12px rgba(255, 100, 0, 0.55),
    0 0 28px rgba(255, 50, 0, 0.35),
    0 0 56px rgba(255, 20, 0, 0.15);
}

.notification-button b,
.mobile-notification-button b {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #d84848;
  color: #fff;
  font: 800 9px var(--client-font);
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(216, 72, 72, 0.28);
}

.notification-button b {
  right: -2px;
  min-width: 18px;
  max-width: 22px;
  padding: 0 3px;
  font-size: 8px;
  line-height: 16px;
}

body.mobile-layout .mobile-notification-button b {
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  font-size: 8.5px;
  line-height: 17px;
}

.notification-center {
  position: absolute;
  top: 82px;
  right: 18px;
  width: min(320px, calc(100vw - 36px));
  max-height: 360px;
  z-index: 50;
  border: 1px solid rgba(55, 99, 110, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(20, 50, 58, 0.18);
  overflow: hidden;
}

.notification-center header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(65, 112, 122, 0.12);
}

.notification-center header strong {
  color: #1f424a;
  font: 900 13px var(--client-font);
}

.notification-center header button {
  border: 0;
  background: transparent;
  color: #32727c;
  font: 800 11px var(--client-font);
  cursor: pointer;
}

.notification-list {
  max-height: 306px;
  overflow: auto;
  padding: 8px;
}

.notification-item {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 10px 10px 10px 13px;
  border: 1px solid rgba(57, 122, 138, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 251, 252, 0.94)),
    #f4fafb;
  box-shadow: 0 5px 14px rgba(39, 82, 94, 0.07);
}

.notification-item::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 6px;
  width: 3px;
  border-radius: 999px;
  background: #4fa6b5;
}

.notification-item + .notification-item {
  margin-top: 6px;
}

.notification-item.notification-item-unread {
  background:
    linear-gradient(180deg, rgba(255, 250, 222, 0.95), rgba(250, 243, 205, 0.96)),
    #f6eecb;
  border-color: rgba(209, 154, 45, 0.3);
  box-shadow: 0 5px 14px rgba(120, 88, 20, 0.1);
}

body[data-client-theme="night"] .notification-item.notification-item-unread {
  background:
    linear-gradient(180deg, rgba(60, 52, 26, 0.95), rgba(46, 40, 20, 0.96)),
    #2e2814;
  border-color: rgba(209, 154, 45, 0.38);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

.notification-item.private::before {
  background: #6b8df2;
}

.notification-item.friend::before,
.notification-item.friend-online::before {
  background: #35a874;
}

.notification-item.warning::before {
  background: #e47856;
}

.notification-item.broadcast::before {
  background: #b06be8;
}

.notification-item.status::before {
  background: #d19a2d;
}

.notification-item .notification-title {
  color: #1763a6;
  font: 900 12px var(--client-font);
  letter-spacing: 0;
}

.notification-item .notification-body {
  color: #16816f;
  font: 700 11px var(--client-font);
  line-height: 1.28;
}

.notification-item .notification-time {
  color: #b05d15;
  font: 800 10px var(--client-font);
  text-transform: none;
}

.notification-empty {
  color: #607a82;
  font: 600 11px var(--client-font);
}

body[data-client-theme="night"] .notification-item {
  border-color: rgba(100, 199, 187, 0.16);
  background:
    linear-gradient(180deg, rgba(36, 62, 72, 0.94), rgba(20, 40, 50, 0.96)),
    #142832;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

body[data-client-theme="night"] .notification-item .notification-title {
  color: #8fc7ff;
}

body[data-client-theme="night"] .notification-item .notification-body {
  color: #83f0c5;
}

body[data-client-theme="night"] .notification-item .notification-time {
  color: #ffd074;
}

body[data-client-theme="night"] .notification-empty {
  color: #9bb5be;
}

body[data-client-theme="night"] .admin-dashboard-overlay {
  background: rgba(0, 0, 0, 0.65);
}

body[data-client-theme="night"] .admin-dashboard-panel {
  border-color: rgba(100, 199, 187, 0.28);
  background: #0e1e26;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-client-theme="night"] .admin-dashboard-header {
  background: linear-gradient(180deg, #162c36, #0a1d25);
  border-bottom-color: rgba(100, 199, 187, 0.2);
}

body[data-client-theme="night"] .admin-dashboard-close {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}

body[data-client-theme="night"] .admin-dashboard-close:hover {
  background: rgba(255,255,255,0.14);
}

body[data-client-theme="night"] .admin-dashboard-sidebar {
  background: #13242c;
  border-right-color: rgba(100, 199, 187, 0.16);
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 199, 187, 0.28) transparent;
}
body[data-client-theme="night"] .admin-dashboard-sidebar::-webkit-scrollbar {
  width: 5px;
}
body[data-client-theme="night"] .admin-dashboard-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
body[data-client-theme="night"] .admin-dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(100, 199, 187, 0.28);
  border-radius: 999px;
}
body[data-client-theme="night"] .admin-dashboard-sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(100, 199, 187, 0.48);
}

body[data-client-theme="night"] .admin-dashboard-profile {
  border-bottom-color: rgba(100, 199, 187, 0.16);
  background: rgba(0,0,0,0.2);
}

body[data-client-theme="night"] .admin-dashboard-profile-name {
  color: #e8f5f5;
}

body[data-client-theme="night"] .admin-dashboard-profile-role {
  color: #8fb9c7;
}

body[data-client-theme="night"] .admin-dashboard-profile-avatar-fallback {
  background: #1b7f8f;
  color: #fff;
}

body[data-client-theme="night"] .admin-dashboard-sidebar > [data-dashboard-action] {
  color: #c5e3ea;
}

body[data-client-theme="night"] .admin-dashboard-sidebar > [data-dashboard-action]:hover {
  background: rgba(255,255,255,0.05);
}

body[data-client-theme="night"] .admin-dashboard-sidebar > [data-dashboard-action].active {
  background: rgba(100, 199, 187, 0.14);
  color: #e0f7fa;
  border-left-color: #4fc3c7;
}

body[data-client-theme="night"] .admin-dashboard-content {
  background: #13252d;
}

body[data-client-theme="night"] .admin-dashboard-welcome {
  color: #8daeb8;
}

body[data-client-theme="night"] .admin-dashboard-welcome strong {
  color: #c5e3ea;
}

body[data-client-theme="night"] .admin-dashboard-welcome-logo-fallback {
  background: linear-gradient(135deg, #1b6f7e, #34a0b0);
  color: #fff;
}

body[data-client-theme="night"] .admin-dashboard-footer {
  background: #0d1b22;
  border-top-color: rgba(100, 199, 187, 0.16);
  color: #8daeb8;
}

body[data-client-theme="night"] .admin-dashboard-footer a {
  color: #64c7bb;
}

body[data-client-theme="night"] .admin-dashboard-footer-sep {
  color: #3a636f;
}

body[data-client-theme="night"] .admin-dashboard-footer .admin-dash-logo-fallback {
  background: #1a3640;
  color: #6daebb;
}

.conversion-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 14px 0;
  padding: 9px 10px;
  border: 1px solid rgba(199, 138, 0, 0.26);
  border-radius: 12px;
  background: #fff8de;
}

.conversion-prompt div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.conversion-prompt strong {
  color: #624b00;
  font: 900 12px var(--client-font);
}

.conversion-prompt span {
  color: #756018;
  font: 600 11px var(--client-font);
}

.conversion-prompt button {
  flex: 0 0 auto;
  border: 1px solid rgba(128, 92, 0, 0.2);
  border-radius: 12px;
  background: #fff;
  color: #5c4700;
  font: 800 11px var(--client-font);
  padding: 7px 9px;
  cursor: pointer;
}

#conversionDismissButton {
  width: 28px;
  padding: 7px 0;
}

.login-security-prompt {
  border-color: rgba(196, 120, 24, 0.32);
  background: #fff2cf;
}

#loginSecurityDismissButton {
  width: 28px;
  padding: 7px 0;
}

body.mobile-layout .voice-queue-panel {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
}

body.mobile-layout .voice-queue-summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

body.mobile-layout .voice-queue-summary span {
  display: none;
}

body.mobile-layout .voice-queue-summary b {
  max-width: 86px;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mobile-layout .voice-queue-items {
  gap: 4px;
  padding-bottom: 0;
  scrollbar-width: none;
}

body.mobile-layout .voice-queue-items::-webkit-scrollbar {
  display: none;
}

body.mobile-layout .voice-queue-chip,
body.mobile-layout .voice-queue-empty {
  min-width: 58px;
  max-width: 86px;
  border-radius: 6px;
  padding: 3px 5px;
}

body.mobile-layout .voice-queue-chip strong {
  font-size: 10px;
  line-height: 1.05;
}

body.mobile-layout .voice-queue-chip small,
body.mobile-layout .voice-queue-empty {
  font-size: 8.5px;
  line-height: 1.05;
}

body.mobile-layout .notification-center {
  position: fixed;
  top: auto;
  right: 10px;
  left: 10px;
  bottom: calc(var(--mobile-action-height, 74px) + 12px);
  width: auto;
  max-height: 42vh;
}

body.mobile-layout .conversion-prompt {
  margin: 6px 10px 0;
  align-items: flex-start;
}

body.mobile-layout .conversion-prompt span {
  white-space: normal;
}

body.mobile-layout .smart-room-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-notification-mark {
  color: currentColor;
}

.coin-center-modal::-webkit-scrollbar {
  width: 6px;
}
.coin-center-modal::-webkit-scrollbar-track {
  background: transparent;
}
.coin-center-modal::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 10px;
}
.coin-center-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.2);
}
body[data-client-theme="night"] .coin-center-modal::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
}
body[data-client-theme="night"] .coin-center-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

body[data-client-theme="night"] .coin-center-modal {
  background: #132a33;
}
body[data-client-theme="night"] .coin-center-close {
  background: rgba(255,255,255,0.08);
  color: #bcd7dd;
}
body[data-client-theme="night"] .coin-center-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
body[data-client-theme="night"] .cc-section-title {
  color: #e8fbfd;
}
body[data-client-theme="night"] .cc-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
body[data-client-theme="night"] .cc-card:hover {
  background: rgba(255,255,255,0.1);
}
body[data-client-theme="night"] .cc-card-body h3 {
  color: #e8fbfd;
}
body[data-client-theme="night"] .cc-card-body p,
body[data-client-theme="night"] .cc-card-body .cc-task {
  color: #9ec8d2;
}
body[data-client-theme="night"] .cc-card-body strong {
  color: #6eddd0;
}
body[data-client-theme="night"] .cc-progress {
  background: rgba(255,255,255,0.1);
}
body[data-client-theme="night"] .cc-note {
  color: #6a9aa8;
}
body[data-client-theme="night"] .cc-premium-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,215,0,0.15);
}
body[data-client-theme="night"] .cc-premium-card:hover {
  background: rgba(255,255,255,0.1);
}
body[data-client-theme="night"] .cc-premium-desc {
  color: #89bfcb;
}
body[data-client-theme="night"] .cc-premium-price {
  color: #e8fbfd;
}

/* ═══ DARKWOOD: COIN CENTER ═══ */
body[data-client-theme="darkwood"] .coin-center-overlay {
  background: rgba(0, 0, 0, 0.7);
}
body[data-client-theme="darkwood"] .coin-center-modal {
  background: #2a1f14;
}
body[data-client-theme="darkwood"] .coin-center-close {
  background: rgba(42, 31, 20, 0.85);
  color: #d4a050;
}
body[data-client-theme="darkwood"] .coin-center-close:hover {
  background: rgba(74, 56, 38, 0.9);
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .coin-center-header {
  background: linear-gradient(105deg, rgba(90, 63, 36, 0.86) 0%, rgba(42, 31, 20, 0.94) 36%, rgba(61, 46, 30, 0.9) 70%, rgba(106, 63, 47, 0.82) 100%),
    linear-gradient(180deg, #332518 0%, #2a1f14 100%);
}
body[data-client-theme="darkwood"] .coin-center-title {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .coin-center-subtitle {
  color: #b09880;
}
body[data-client-theme="darkwood"] .coin-center-balance {
  background: rgba(42, 31, 20, 0.6);
  border-color: rgba(212, 160, 80, 0.2);
}
body[data-client-theme="darkwood"] .cc-balance-amount {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .cc-balance-label {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .coin-center-content {
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .cc-section-title {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .cc-card {
  background: rgba(42, 31, 20, 0.6);
  border-color: rgba(90, 63, 36, 0.4);
}
body[data-client-theme="darkwood"] .cc-card:hover {
  background: rgba(61, 46, 30, 0.7);
}
body[data-client-theme="darkwood"] .cc-card-body h3 {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .cc-card-body p,
body[data-client-theme="darkwood"] .cc-card-body .cc-task {
  color: #b09880;
}
body[data-client-theme="darkwood"] .cc-card-body strong {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .cc-progress {
  background: rgba(42, 31, 20, 0.6);
}
body[data-client-theme="darkwood"] .cc-progress-bar {
  background: linear-gradient(90deg, #d4a050, #8a6540);
}
body[data-client-theme="darkwood"] .cc-progress-label {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .cc-note {
  color: #8a7560;
}
body[data-client-theme="darkwood"] .cc-task-bonus {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .cc-daily-limit {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .cc-task input[type="checkbox"] {
  accent-color: #d4a050;
}
body[data-client-theme="darkwood"] .cc-premium-badge {
  background: linear-gradient(135deg, #d4a050, #8a6540);
  color: #1a120e;
}
body[data-client-theme="darkwood"] .cc-premium-card {
  background: rgba(42, 31, 20, 0.6);
  border-color: rgba(212, 160, 80, 0.2);
}
body[data-client-theme="darkwood"] .cc-premium-card:hover {
  background: rgba(61, 46, 30, 0.7);
}
body[data-client-theme="darkwood"] .cc-premium-desc {
  color: #b09880;
}
body[data-client-theme="darkwood"] .cc-premium-price {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .coin-center-modal::-webkit-scrollbar-thumb {
  background: rgba(74, 56, 38, 0.6);
}
body[data-client-theme="darkwood"] .coin-center-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(106, 79, 50, 0.7);
}

/* ═══ ADMIN PANEL SCROLLBAR — TÜM TEMALAR ═══ */
.admin-dashboard-content,
.admin-table-wrap,
.my-profile-form,
.mini-user-window .admin-window-body,
.admin-room-picker-list,
.admin-room-manager .admin-room-form,
.admin-user-manager,
.word-filter-list,
.mobile-admin-content-panel .admin-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(69, 147, 166, 0.35) transparent;
}
.admin-dashboard-content::-webkit-scrollbar,
.admin-table-wrap::-webkit-scrollbar,
.my-profile-form::-webkit-scrollbar,
.mini-user-window .admin-window-body::-webkit-scrollbar,
.admin-room-picker-list::-webkit-scrollbar,
.admin-room-manager .admin-room-form::-webkit-scrollbar,
.admin-user-manager::-webkit-scrollbar,
.word-filter-list::-webkit-scrollbar,
.mobile-admin-content-panel .admin-table-wrap::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.admin-dashboard-content::-webkit-scrollbar-track,
.admin-table-wrap::-webkit-scrollbar-track,
.my-profile-form::-webkit-scrollbar-track,
.mini-user-window .admin-window-body::-webkit-scrollbar-track,
.admin-room-picker-list::-webkit-scrollbar-track,
.admin-room-manager .admin-room-form::-webkit-scrollbar-track,
.admin-user-manager::-webkit-scrollbar-track,
.word-filter-list::-webkit-scrollbar-track,
.mobile-admin-content-panel .admin-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.admin-dashboard-content::-webkit-scrollbar-thumb,
.admin-table-wrap::-webkit-scrollbar-thumb,
.my-profile-form::-webkit-scrollbar-thumb,
.mini-user-window .admin-window-body::-webkit-scrollbar-thumb,
.admin-room-picker-list::-webkit-scrollbar-thumb,
.admin-room-manager .admin-room-form::-webkit-scrollbar-thumb,
.admin-user-manager::-webkit-scrollbar-thumb,
.word-filter-list::-webkit-scrollbar-thumb,
.mobile-admin-content-panel .admin-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(69, 147, 166, 0.35);
}
.admin-dashboard-content:hover::-webkit-scrollbar-thumb,
.admin-table-wrap:hover::-webkit-scrollbar-thumb,
.my-profile-form:hover::-webkit-scrollbar-thumb,
.mini-user-window .admin-window-body:hover::-webkit-scrollbar-thumb,
.admin-room-picker-list:hover::-webkit-scrollbar-thumb,
.admin-room-manager .admin-room-form:hover::-webkit-scrollbar-thumb,
.admin-user-manager:hover::-webkit-scrollbar-thumb,
.word-filter-list:hover::-webkit-scrollbar-thumb,
.mobile-admin-content-panel .admin-table-wrap:hover::-webkit-scrollbar-thumb {
  background: rgba(69, 147, 166, 0.55);
}

/* Night */
body[data-client-theme="night"] .admin-dashboard-content,
body[data-client-theme="night"] .admin-table-wrap,
body[data-client-theme="night"] .mini-user-window .admin-window-body,
body[data-client-theme="night"] .admin-room-picker-list,
body[data-client-theme="night"] .admin-user-manager,
body[data-client-theme="night"] .word-filter-list,
body[data-client-theme="night"].mobile-layout .mobile-admin-content-panel .admin-table-wrap {
  scrollbar-color: rgba(100, 199, 187, 0.28) transparent;
}
body[data-client-theme="night"] .admin-dashboard-content::-webkit-scrollbar-thumb,
body[data-client-theme="night"] .admin-table-wrap::-webkit-scrollbar-thumb,
body[data-client-theme="night"] .mini-user-window .admin-window-body::-webkit-scrollbar-thumb,
body[data-client-theme="night"] .admin-room-picker-list::-webkit-scrollbar-thumb,
body[data-client-theme="night"] .admin-user-manager::-webkit-scrollbar-thumb,
body[data-client-theme="night"] .word-filter-list::-webkit-scrollbar-thumb,
body[data-client-theme="night"].mobile-layout .mobile-admin-content-panel .admin-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(100, 199, 187, 0.28);
}
body[data-client-theme="night"] .admin-dashboard-content:hover::-webkit-scrollbar-thumb,
body[data-client-theme="night"] .admin-table-wrap:hover::-webkit-scrollbar-thumb,
body[data-client-theme="night"] .mini-user-window .admin-window-body:hover::-webkit-scrollbar-thumb,
body[data-client-theme="night"] .admin-room-picker-list:hover::-webkit-scrollbar-thumb,
body[data-client-theme="night"] .admin-user-manager:hover::-webkit-scrollbar-thumb,
body[data-client-theme="night"] .word-filter-list:hover::-webkit-scrollbar-thumb,
body[data-client-theme="night"].mobile-layout .mobile-admin-content-panel .admin-table-wrap:hover::-webkit-scrollbar-thumb {
  background: rgba(100, 199, 187, 0.48);
}

/* Darkwood */
body[data-client-theme="darkwood"] .admin-dashboard-content,
body[data-client-theme="darkwood"] .admin-table-wrap,
body[data-client-theme="darkwood"] .mini-user-window .admin-window-body,
body[data-client-theme="darkwood"] .admin-room-picker-list,
body[data-client-theme="darkwood"] .admin-user-manager,
body[data-client-theme="darkwood"] .word-filter-list,
body[data-client-theme="darkwood"].mobile-layout .mobile-admin-content-panel .admin-table-wrap {
  scrollbar-color: rgba(74, 56, 38, 0.5) transparent;
}
body[data-client-theme="darkwood"] .admin-dashboard-content::-webkit-scrollbar-thumb,
body[data-client-theme="darkwood"] .admin-table-wrap::-webkit-scrollbar-thumb,
body[data-client-theme="darkwood"] .mini-user-window .admin-window-body::-webkit-scrollbar-thumb,
body[data-client-theme="darkwood"] .admin-room-picker-list::-webkit-scrollbar-thumb,
body[data-client-theme="darkwood"] .admin-user-manager::-webkit-scrollbar-thumb,
body[data-client-theme="darkwood"] .word-filter-list::-webkit-scrollbar-thumb,
body[data-client-theme="darkwood"].mobile-layout .mobile-admin-content-panel .admin-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(74, 56, 38, 0.5);
}
body[data-client-theme="darkwood"] .admin-dashboard-content:hover::-webkit-scrollbar-thumb,
body[data-client-theme="darkwood"] .admin-table-wrap:hover::-webkit-scrollbar-thumb,
body[data-client-theme="darkwood"] .mini-user-window .admin-window-body:hover::-webkit-scrollbar-thumb,
body[data-client-theme="darkwood"] .admin-room-picker-list:hover::-webkit-scrollbar-thumb,
body[data-client-theme="darkwood"] .admin-user-manager:hover::-webkit-scrollbar-thumb,
body[data-client-theme="darkwood"] .word-filter-list:hover::-webkit-scrollbar-thumb,
body[data-client-theme="darkwood"].mobile-layout .mobile-admin-content-panel .admin-table-wrap:hover::-webkit-scrollbar-thumb {
  background: rgba(106, 79, 50, 0.65);
}

/* Light */
body[data-client-theme="light"] .admin-dashboard-content,
body[data-client-theme="light"] .admin-table-wrap,
body[data-client-theme="light"] .mini-user-window .admin-window-body,
body[data-client-theme="light"] .admin-room-picker-list,
body[data-client-theme="light"] .admin-user-manager,
body[data-client-theme="light"] .word-filter-list,
body[data-client-theme="light"].mobile-layout .mobile-admin-content-panel .admin-table-wrap {
  scrollbar-color: rgba(74, 156, 192, 0.28) transparent;
}
body[data-client-theme="light"] .admin-dashboard-content::-webkit-scrollbar-thumb,
body[data-client-theme="light"] .admin-table-wrap::-webkit-scrollbar-thumb,
body[data-client-theme="light"] .mini-user-window .admin-window-body::-webkit-scrollbar-thumb,
body[data-client-theme="light"] .admin-room-picker-list::-webkit-scrollbar-thumb,
body[data-client-theme="light"] .admin-user-manager::-webkit-scrollbar-thumb,
body[data-client-theme="light"] .word-filter-list::-webkit-scrollbar-thumb,
body[data-client-theme="light"].mobile-layout .mobile-admin-content-panel .admin-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(74, 156, 192, 0.28);
}
body[data-client-theme="light"] .admin-dashboard-content:hover::-webkit-scrollbar-thumb,
body[data-client-theme="light"] .admin-table-wrap:hover::-webkit-scrollbar-thumb,
body[data-client-theme="light"] .mini-user-window .admin-window-body:hover::-webkit-scrollbar-thumb,
body[data-client-theme="light"] .admin-room-picker-list:hover::-webkit-scrollbar-thumb,
body[data-client-theme="light"] .admin-user-manager:hover::-webkit-scrollbar-thumb,
body[data-client-theme="light"] .word-filter-list:hover::-webkit-scrollbar-thumb,
body[data-client-theme="light"].mobile-layout .mobile-admin-content-panel .admin-table-wrap:hover::-webkit-scrollbar-thumb {
  background: rgba(74, 156, 192, 0.45);
}

/* ═══ DARKWOOD: INVISIBLE JOIN (GİRİŞ SEÇİMİ) ═══ */
body[data-client-theme="darkwood"] .invisible-join-overlay {
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 160, 80, 0.12), transparent 34%),
    rgba(10, 6, 3, 0.72);
}
body[data-client-theme="darkwood"] .invisible-join-card {
  border-color: #4a3826;
  background: linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
  color: #e8dccc;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-client-theme="darkwood"] .invisible-join-card .room-window-titlebar {
  border-bottom-color: #4a3826;
  background: linear-gradient(180deg, #3d2e1e 0%, #2a1f14 100%);
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .invisible-join-card .room-window-titlebar button {
  border-color: rgba(180, 60, 50, 0.4);
  background: rgba(100, 40, 30, 0.6);
  color: #ffd4cc;
}
body[data-client-theme="darkwood"] .invisible-join-card .room-window-titlebar button:hover {
  background: rgba(180, 60, 50, 0.6);
}
body[data-client-theme="darkwood"] .invisible-join-card .room-window-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(212, 160, 80, 0.02) 38%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, #2a1f14 0%, #1a120e 100%);
}
body[data-client-theme="darkwood"] .invisible-join-card .room-window-body p {
  color: #d4a050;
}
body[data-client-theme="darkwood"] .invisible-join-card .room-window-body h2 {
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .invisible-join-card .second-nick-field input {
  border-color: #4a3826;
  background: #1a120e !important;
  color: #e8dccc !important;
  -webkit-text-fill-color: #e8dccc;
}
body[data-client-theme="darkwood"] .invisible-join-card .second-nick-field input::placeholder {
  color: #8a7560 !important;
  -webkit-text-fill-color: #8a7560;
  opacity: 1;
}
body[data-client-theme="darkwood"] .invisible-join-card .second-nick-field input:focus {
  border-color: #8a6540;
  box-shadow: 0 0 0 3px rgba(212, 160, 80, 0.18);
}
body[data-client-theme="darkwood"] .invisible-join-card .invisible-panel-check {
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .invisible-join-card .invisible-panel-check input {
  accent-color: #d4a050;
}
body[data-client-theme="darkwood"] .invisible-join-card .room-gate-actions .secondary {
  border-color: #4a3826;
  background: #332518;
  color: #d0c0a8;
}
body[data-client-theme="darkwood"] .invisible-join-card .room-gate-actions .secondary:hover {
  border-color: #6d4f32;
  background: #4a3826;
}
body[data-client-theme="darkwood"] .invisible-join-card .room-gate-actions .primary {
  border-color: #8a6540;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, #6a4f30 0%, #5a3f24 52%, #4a3218 100%);
  color: #e8dccc;
}
body[data-client-theme="darkwood"] .invisible-join-card .room-gate-actions .primary:hover {
  border-color: #b08040;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.14)),
    linear-gradient(180deg, #7a5f38 0%, #6a4f30 52%, #5a3f24 100%);
}

.rain-effect-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
  display: none;
}
.rain-effect-layer.rain-active {
  display: block;
}
.rain-drop {
  position: absolute;
  top: -20px;
  background: linear-gradient(180deg, rgba(174, 213, 240, 0) 0%, rgba(174, 213, 240, 0.7) 100%);
  border-radius: 0 0 2px 2px;
  -webkit-animation: rain-fall linear forwards;
  animation: rain-fall linear forwards;
}
@-webkit-keyframes rain-fall {
  0% { top: -20px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% + 20px); opacity: 0; }
}
@keyframes rain-fall {
  0% { top: -20px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% + 20px); opacity: 0; }
}
.rain-puddle {
  position: absolute;
  bottom: 0;
  background: radial-gradient(ellipse at 35% 40%, rgba(200, 230, 255, 0.25) 0%, rgba(150, 200, 240, 0.18) 30%, rgba(100, 170, 220, 0.1) 60%, transparent 100%);
  border: 1px solid rgba(180, 220, 255, 0.2);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1s ease-in;
  opacity: 0;
  box-shadow: inset 0 -2px 4px rgba(255, 255, 255, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.rain-puddle.rain-puddle-expand {
  transform: scale(1);
  opacity: 1;
}
.rain-puddle.rain-puddle-fade {
  opacity: 0;
}
.rain-puddle.rain-puddle-drain {
  transition:
    transform 2.5s cubic-bezier(0.2, 0, 0.1, 1),
    opacity 2.5s ease-in,
    width 2.5s cubic-bezier(0.4, 0, 0.9, 1),
    height 2.5s ease-in,
    border-radius 2.5s ease-in;
  transform: translate(calc(100vw - 30px), 0) scaleY(0.3);
  opacity: 0;
  width: 10px !important;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.rain-puddle.rain-puddle-drain::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, rgba(180, 220, 255, 0.3), transparent);
  animation: drain-drip 2.5s ease-in forwards;
}
@keyframes drain-drip {
  0% { height: 0; opacity: 0.6; }
  50% { height: 30px; opacity: 0.4; }
  100% { height: 60px; opacity: 0; }
}
.rain-ripple {
  position: absolute;
  top: 50%;
  border: 1px solid rgba(200, 230, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  -webkit-animation: ripple-expand 1.2s ease-out forwards;
  animation: ripple-expand 1.2s ease-out forwards;
}
@-webkit-keyframes ripple-expand {
  0% { transform: scale(0); opacity: 0.8; border-width: 1.5px; }
  100% { transform: scale(3); opacity: 0; border-width: 0.5px; }
}
@keyframes ripple-expand {
  0% { transform: scale(0); opacity: 0.8; border-width: 1.5px; }
  100% { transform: scale(3); opacity: 0; border-width: 0.5px; }
}

/* ===== Firework Effect ===== */
.firework-effect-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  overflow: hidden;
  display: none;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.firework-effect-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===== Voice Message Recorder ===== */
/* ===== Voice Record Button (dual-icon send button) ===== */
.send-btn-icon { pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2)); }

/* ===== Voice Record Bar (inline in composer - WhatsApp style) ===== */
.voice-record-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  height: 34px;
}
.voice-record-bar-dot {
  width: 11px;
  height: 11px;
  min-width: 11px;
  background: #ff3b30;
  border-radius: 50%;
  flex-shrink: 0;
  animation: voice-dot-blink 1s infinite;
}
@keyframes voice-dot-blink {
  50% { opacity: 0.25; }
}
.voice-record-bar-time {
  font-size: 15px;
  font-weight: 400;
  color: #666;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  width: 42px;
}
.voice-record-bar-canvas {
  flex: 1;
  height: 34px;
  min-width: 0;
  border: none;
  outline: none;
}
.voice-record-bar-cancel {
  color: #e53935;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.15s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
}
.voice-record-bar-cancel:hover { color: #c62828; transform: scale(1.1); }
.voice-record-bar-cancel svg { pointer-events: none; }
.voice-record-bar-dot--uploading {
  background: var(--accent, #2f7d79);
  animation: voice-dot-pulse 0.8s ease-in-out infinite;
}
@keyframes voice-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* ===== Voice Message Player (in chat) ===== */
.voice-message-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 22px;
  padding: 6px 12px 6px 6px;
  min-width: 180px;
  max-width: 280px;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.voice-message-player audio { display: none; }
.mine .voice-message-player {
  background: rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.voice-msg-play-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: var(--accent, #2f7d79);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.voice-msg-play-btn:hover { background: #256b67; transform: scale(1.06); }
.voice-msg-play-btn svg { width: 16px; height: 16px; }
.voice-msg-play-btn.playing svg .play-icon { display: none; }
.voice-msg-play-btn.playing svg .pause-icon { display: block; }
.voice-msg-play-btn svg .pause-icon { display: none; }

.voice-msg-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.voice-msg-waveform {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 1.5px;
  cursor: pointer;
  padding: 1px 0;
  position: relative;
  overflow: hidden;
}
.voice-msg-wave-bar {
  width: 2.5px;
  border-radius: 1.5px;
  background: var(--accent, #2f7d79);
  opacity: 0.5;
  transition: opacity 0.15s;
}
.voice-msg-wave-bar.active { opacity: 1; }
.mine .voice-msg-wave-bar { background: var(--accent, #2f7d79); opacity: 0.55; }
.mine .voice-msg-wave-bar.active { opacity: 1; background: var(--accent, #2f7d79); }

.voice-msg-duration {
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.mine .voice-msg-duration { color: var(--accent, #2f7d79); font-weight: 500; }

body[data-client-theme="dark"] .voice-message-player { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.1); }
body[data-client-theme="dark"] .mine .voice-message-player { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.12); }
body[data-client-theme="dark"] .voice-msg-wave-bar { background: #7ecfcf; }
body[data-client-theme="dark"] .voice-msg-duration { color: rgba(255,255,255,0.6); }
body[data-client-theme="night"] .voice-message-player { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.08); }
body[data-client-theme="night"] .mine .voice-message-player { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.1); }
body[data-client-theme="night"] .voice-msg-wave-bar { background: #7ecfcf; }
body[data-client-theme="night"] .voice-msg-duration { color: rgba(255,255,255,0.55); font-weight: 500; }
body[data-client-theme="darkwood"] .voice-message-player { background: rgba(180,140,80,0.12); border-color: rgba(180,140,80,0.18); }
body[data-client-theme="darkwood"] .mine .voice-message-player { background: rgba(180,140,80,0.16); border-color: rgba(180,140,80,0.22); }
body[data-client-theme="darkwood"] .voice-msg-wave-bar { background: #d4a050; opacity: 0.5; }
body[data-client-theme="darkwood"] .voice-msg-wave-bar.active { opacity: 1; }
body[data-client-theme="darkwood"] .voice-msg-duration { color: rgba(232,220,204,0.6); font-weight: 500; }

/* ===== Voice Message Upload State (sender pending) ===== */
.voice-msg-upload-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: var(--accent, #2f7d79);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  pointer-events: none;
}
.voice-msg-upload-btn svg {
  width: 16px;
  height: 16px;
  position: relative;
  z-index: 1;
}
.voice-msg-upload-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  animation: voice-ring-spin 0.9s linear infinite;
}
@keyframes voice-ring-spin {
  to { transform: rotate(360deg); }
}
.voice-msg-waveform--uploading {
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice-msg-upload-text {
  font-size: 11px;
  color: var(--accent, #2f7d79);
  font-weight: 500;
  opacity: 0.7;
  animation: voice-upload-pulse 1.2s ease-in-out infinite;
}
@keyframes voice-upload-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.35; }
}
.mine .voice-msg-upload-text { color: var(--accent, #2f7d79); }
body[data-client-theme="dark"] .voice-msg-upload-text { color: #7ecfcf; }
body[data-client-theme="night"] .voice-msg-upload-text { color: #7ecfcf; }
body[data-client-theme="darkwood"] .voice-msg-upload-text { color: #d4a050; }

/* ===== Voice Message Download State (receiver) ===== */
.voice-msg-play-btn--downloading {
  pointer-events: none;
}
.voice-msg-play-btn--downloading svg:not(.voice-msg-download-icon) {
  display: none;
}
.voice-msg-download-icon {
  width: 16px;
  height: 16px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.voice-msg-download-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid rgba(0,0,0,0.15);
  border-top-color: var(--accent, #2f7d79);
  border-right-color: var(--accent, #2f7d79);
  animation: voice-ring-spin 0.9s linear infinite;
}
.voice-msg-download-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--accent, #2f7d79);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 0 4px rgba(0,0,0,0.1);
  animation: voice-upload-pulse 1.2s ease-in-out infinite;
  white-space: nowrap;
}
.voice-message-player--downloading .voice-msg-wave-bar { opacity: 0.2; }
.voice-message-player--downloading .voice-msg-duration { opacity: 0.4; }
.voice-message-player:not(.voice-message-player--downloading) .voice-msg-download-icon,
.voice-message-player:not(.voice-message-player--downloading) .voice-msg-download-ring,
.voice-message-player:not(.voice-message-player--downloading) .voice-msg-download-text { display: none; }
.voice-message-player:not(.voice-message-player--downloading) .voice-msg-play-btn--downloading { pointer-events: auto; }
.voice-message-player:not(.voice-message-player--downloading) .voice-msg-play-btn--downloading svg:not(.voice-msg-download-icon) { display: block; }
.voice-message-player--downloading .voice-msg-waveform { cursor: default; }
.mine .voice-msg-download-text { color: var(--accent, #2f7d79); }
body[data-client-theme="dark"] .voice-msg-download-text { color: #7ecfcf; }
body[data-client-theme="night"] .voice-msg-download-text { color: #7ecfcf; }
body[data-client-theme="darkwood"] .voice-msg-download-text { color: #d4a050; }
body[data-client-theme="dark"] .voice-msg-download-ring { border-top-color: #7ecfcf; border-right-color: #7ecfcf; border-color: rgba(255,255,255,0.2); border-top-color: #7ecfcf; border-right-color: #7ecfcf; }
body[data-client-theme="night"] .voice-msg-download-ring { border-top-color: #7ecfcf; border-right-color: #7ecfcf; border-color: rgba(255,255,255,0.2); border-top-color: #7ecfcf; border-right-color: #7ecfcf; }
body[data-client-theme="darkwood"] .voice-msg-download-ring { border-top-color: #d4a050; }
body[data-client-theme="dark"] .voice-msg-upload-ring { border-top-color: #7ecfcf; }
body[data-client-theme="night"] .voice-msg-upload-ring { border-top-color: #7ecfcf; }
body[data-client-theme="darkwood"] .voice-msg-upload-ring { border-top-color: #d4a050; }

/* ===== Private Voice Record Bar Alignment Fix ===== */
.private-composer .private-voice-record-bar {
  align-self: center;
  grid-column: 1;
  height: 38px;
  align-items: center;
  gap: 14px;
}
.private-composer .private-voice-record-bar .voice-record-bar-canvas {
  flex: 1 1 0%;
  min-width: 0;
  width: 0;
  max-width: 100%;
  height: 22px;
  align-self: center;
}
.private-composer .private-voice-record-bar .voice-record-bar-dot {
  margin-left: 2px;
}
.private-composer .private-voice-record-bar .private-voice-record-time {
  margin-right: 2px;
}

/* =========================================================================
   PWA Install Prompt Banner
   ========================================================================= */
.pwa-install-prompt {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 99990;
  width: 320px;
  background: linear-gradient(135deg, rgba(20, 35, 43, 0.95), rgba(30, 55, 65, 0.95));
  border: 1px solid rgba(100, 199, 187, 0.25);
  border-radius: 16px;
  padding: 16px 14px;
  color: #e5f1f4;
  font-family: var(--client-font, "Verdana", sans-serif);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
  opacity: 0;
  transform: translateX(40px) scale(0.92);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.pwa-install-prompt.pwa-prompt-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.pwa-install-prompt.pwa-prompt-dismissed {
  opacity: 0;
  transform: translateX(40px) scale(0.92);
  pointer-events: none;
}
.pwa-install-prompt .pwa-prompt-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.pwa-install-prompt .pwa-prompt-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #64c7bb, #3fa89f);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(100,199,187,0.3);
}
.pwa-install-prompt .pwa-prompt-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.pwa-install-prompt .pwa-prompt-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.pwa-install-prompt .pwa-prompt-desc {
  font-size: 11.5px;
  color: #a9c0c8;
  line-height: 1.45;
  margin-bottom: 12px;
}
.pwa-install-prompt .pwa-prompt-actions {
  display: flex;
  gap: 8px;
}
.pwa-install-prompt .pwa-prompt-btn {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 10px;
  font: 700 12px var(--client-font, "Verdana", sans-serif);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.pwa-install-prompt .pwa-prompt-btn:active {
  transform: scale(0.96);
}
.pwa-install-prompt .pwa-prompt-install {
  background: linear-gradient(135deg, #64c7bb, #3fa89f);
  color: #fff;
  box-shadow: 0 4px 16px rgba(100,199,187,0.35);
}
.pwa-install-prompt .pwa-prompt-install:hover {
  background: linear-gradient(135deg, #7dd4c9, #4fb8ab);
}
.pwa-install-prompt .pwa-prompt-dismiss {
  background: rgba(255,255,255,0.08);
  color: #a9c0c8;
  border: 1px solid rgba(255,255,255,0.1);
}
.pwa-install-prompt .pwa-prompt-dismiss:hover {
  background: rgba(255,255,255,0.14);
  color: #e5f1f4;
}

body[data-client-theme="night"] .pwa-install-prompt {
  background: linear-gradient(135deg, rgba(12, 24, 30, 0.96), rgba(20, 40, 50, 0.96));
  border-color: rgba(100, 199, 187, 0.2);
}
body[data-client-theme="contrast"] .pwa-install-prompt {
  background: linear-gradient(135deg, rgba(8, 12, 18, 0.96), rgba(16, 24, 32, 0.96));
  border-color: rgba(255, 207, 74, 0.2);
}
body[data-client-theme="contrast"] .pwa-install-prompt .pwa-prompt-icon {
  background: linear-gradient(135deg, #ffcf4a, #e6a800);
}
body[data-client-theme="contrast"] .pwa-install-prompt .pwa-prompt-install {
  background: linear-gradient(135deg, #ffcf4a, #e6a800);
  color: #101820;
}
body[data-client-theme="contrast"] .pwa-install-prompt .pwa-prompt-install:hover {
  background: linear-gradient(135deg, #ffd966, #f0b800);
}
body[data-client-theme="darkwood"] .pwa-install-prompt {
  background: linear-gradient(135deg, rgba(20, 14, 10, 0.96), rgba(40, 30, 20, 0.96));
  border-color: rgba(212, 160, 80, 0.2);
}
body[data-client-theme="darkwood"] .pwa-install-prompt .pwa-prompt-icon {
  background: linear-gradient(135deg, #d4a050, #b88830);
}
body[data-client-theme="darkwood"] .pwa-install-prompt .pwa-prompt-install {
  background: linear-gradient(135deg, #d4a050, #b88830);
  color: #1a120e;
}
body[data-client-theme="darkwood"] .pwa-install-prompt .pwa-prompt-install:hover {
  background: linear-gradient(135deg, #e0b060, #c89840);
}
body[data-client-theme="pastel"] .pwa-install-prompt {
  background: linear-gradient(135deg, rgba(80, 40, 60, 0.92), rgba(100, 50, 70, 0.92));
  border-color: rgba(217, 130, 170, 0.25);
}
body[data-client-theme="pastel"] .pwa-install-prompt .pwa-prompt-icon {
  background: linear-gradient(135deg, #d982aa, #b86090);
}
body[data-client-theme="pastel"] .pwa-install-prompt .pwa-prompt-install {
  background: linear-gradient(135deg, #d982aa, #b86090);
}
body[data-client-theme="pastel"] .pwa-install-prompt .pwa-prompt-install:hover {
  background: linear-gradient(135deg, #e49aba, #c870a0);
}

body.mobile-layout .pwa-install-prompt {
  width: calc(100vw - 24px);
  right: 12px;
  top: auto;
  bottom: 80px;
}
body.mobile-layout .pwa-install-prompt .pwa-prompt-actions {
  flex-direction: row;
}
body.mobile-layout .pwa-install-prompt {
  transform: translateY(20px) scale(0.92);
}
body.mobile-layout .pwa-install-prompt.pwa-prompt-visible {
  transform: translateY(0) scale(1);
}
body.mobile-layout .pwa-install-prompt.pwa-prompt-dismissed {
  transform: translateY(20px) scale(0.92);
}

.pwa-guide-steps {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
  list-style: decimal;
}
.pwa-guide-steps li {
  font-size: 11.5px;
  color: #c0d8e0;
  line-height: 1.6;
  margin-bottom: 2px;
}
.pwa-dismiss-full {
  width: 100%;
}
body[data-client-theme="contrast"] .pwa-guide-steps li { color: #ccc; }
body[data-client-theme="darkwood"] .pwa-guide-steps li { color: #d0c0a8; }
body[data-client-theme="pastel"] .pwa-guide-steps li { color: #e0d0d8; }

/* ===== Talk button - 3-state effects (idle / queued / talking) ===== */
#talkButton {
  overflow: visible;
  isolation: isolate;
}

#talkButton .talk-btn-glow,
#talkButton .talk-btn-border,
#talkButton .talk-btn-inner {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  pointer-events: none;
}

#talkButton .talk-btn-glow {
  z-index: -1;
  opacity: 0;
  background: var(--talk-accent, currentColor);
  filter: blur(10px);
  transition: opacity 260ms ease;
}

#talkButton.talk-idle:hover .talk-btn-glow {
  opacity: 0.5;
}

#talkButton.talk-talking .talk-btn-glow,
#talkButton.talk-queued .talk-btn-glow {
  opacity: 0.6;
  animation: talk-glow-pulse 2.4s ease-in-out infinite;
}

@keyframes talk-glow-pulse {
  0%, 100% { opacity: 0.38; transform: scale(0.99); }
  50% { opacity: 0.65; transform: scale(1.01); }
}

#talkButton .talk-btn-border {
  padding: 2px;
  background: linear-gradient(115deg, transparent 32%, color-mix(in srgb, var(--talk-accent, currentColor) 88%, white) 50%, transparent 68%);
  background-size: 260% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.85;
  animation: talk-border-shine 3.4s linear infinite;
}

@keyframes talk-border-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

#talkButton.talk-idle { --talk-accent: #2f9d8b; }
#talkButton.talk-talking { --talk-accent: #d94f63; }
#talkButton.talk-queued { --talk-accent: #3a86c8; }
body[data-client-theme="custom"] #talkButton.talk-idle { --talk-accent: var(--talk-theme-top, #2f9d8b); }
body[data-client-theme="custom"] #talkButton.talk-talking { --talk-accent: var(--talk-theme-deep, #d94f63); }
body[data-client-theme="custom"] #talkButton.talk-queued { --talk-accent: var(--talk-theme-mid, #3a86c8); }

#talkButton .talk-btn-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  padding: 0 8px;
}

#talkButton .talk-btn-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}

#talkButton .talk-btn-icon > svg,
#talkButton .talk-btn-icon > .wave-ring {
  grid-area: 1 / 1;
}

#talkButton .talk-btn-icon svg {
  z-index: 1;
}

#talkButton .icon-mic,
#talkButton .icon-queue {
  width: 22px;
  height: 22px;
}

#talkButton .icon-queue,
#mobileTalkButton .icon-queue {
  display: none;
}

#talkButton.talk-queued .icon-queue,
#mobileTalkButton.talk-queued .icon-queue {
  display: block;
}

#talkButton.talk-queued .icon-mic,
#mobileTalkButton.talk-queued .icon-mic {
  display: none;
}

#talkButton.talk-queued .icon-queue,
#mobileTalkButton.talk-queued .icon-queue {
  animation: spin-slow 2.4s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

#talkButton .talk-btn-content {
  display: grid;
  gap: 1px;
  min-width: 0;
  margin-right: auto;
  text-align: left;
  line-height: 1.15;
}

#talkButton .talk-btn-status {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  opacity: 0.72;
}

#talkButton .talk-btn-status:empty {
  display: none;
}

#talkButton .talk-btn-text {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
}

#talkButton .talk-btn-indicator {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  box-shadow: 0 0 5px currentColor;
}

#talkButton.talk-talking .talk-btn-indicator {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
  animation: talk-pulse 1s ease-in-out infinite;
}

#talkButton.talk-queued .talk-btn-indicator {
  background: #facc15;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.9);
  animation: talk-pulse 1.3s ease-in-out infinite;
}

@keyframes talk-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
}

#talkButton .wave-ring,
#mobileTalkButton .wave-ring {
  position: absolute;
  inset: 0;
  display: block;
  border: 2px solid var(--talk-accent, currentColor);
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
}

#talkButton.device-missing .icon-mic,
#mobileTalkButton.device-missing .icon-mic {
  opacity: 0.35;
  filter: grayscale(1);
}

#talkButton.talk-talking .wave-ring,
#talkButton.talk-queued .wave-ring,
#mobileTalkButton.talk-talking .wave-ring,
#mobileTalkButton.talk-queued .wave-ring {
  animation: talk-wave 1.9s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}

#talkButton.talk-talking .wave-ring.delay,
#talkButton.talk-queued .wave-ring.delay,
#mobileTalkButton.talk-talking .wave-ring.delay,
#mobileTalkButton.talk-queued .wave-ring.delay {
  animation-delay: 0.95s;
}

@keyframes talk-wave {
  0% { opacity: 0.6; transform: scale(0.55); }
  75% { opacity: 0; transform: scale(1.7); }
  100% { opacity: 0; transform: scale(1.7); }
}

body.mobile-layout #mobileTalkButton .talk-btn-icon {
  display: inline-block;
  position: relative;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transform: translateZ(0);
}

body.mobile-layout #mobileTalkButton .talk-btn-icon svg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  z-index: 1;
}

body.mobile-layout #mobileTalkButton .wave-ring {
  display: block;
  left: -1px;
  top: -1px;
  right: auto;
  bottom: auto;
  width: 26px;
  height: 26px;
  transform-origin: center center;
}

body.mobile-layout #mobileTalkButton.talk-idle { --talk-accent: #2f9d8b; }
body.mobile-layout #mobileTalkButton.talk-talking { --talk-accent: #d94f63; }
body.mobile-layout #mobileTalkButton.talk-queued { --talk-accent: #3a86c8; }

body.mobile-layout .voice-queue-summary {
  display: grid;
  gap: 0;
}

body.mobile-layout .voice-queue-summary span {
  display: block;
}

body.mobile-layout .voice-queue-summary b {
  max-width: 120px;
}

/* ---- Dusuk ekranlarda header daraltma butonu ---- */
.room-head-toggle {
  position: absolute;
  top: 6px;
  right: 12px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(47, 125, 121, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: #2f7d79;
  box-shadow: 0 2px 8px rgba(42, 70, 82, 0.18);
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 150ms ease, transform 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.room-head-toggle:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(47, 125, 121, 0.6);
  transform: scale(1.08);
}

.room-head-toggle:active {
  transform: scale(0.94);
}

.room-head-toggle[hidden] {
  display: none;
}

.room-head-toggle .room-head-toggle-arrow {
  display: grid;
  width: 15px;
  height: 15px;
}

.room-head-toggle .room-head-toggle-down {
  display: none;
}

@keyframes roomHeadToggleUpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes roomHeadToggleDownFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

.room-head-toggle .room-head-toggle-up {
  animation: roomHeadToggleUpFloat 1.4s ease-in-out infinite;
}

body.room-head-collapsed .room-head-toggle .room-head-toggle-up {
  display: none;
}

body.room-head-collapsed .room-head-toggle .room-head-toggle-down {
  display: grid;
  animation: roomHeadToggleDownFloat 1.4s ease-in-out infinite;
}

/* ---- Header daraltma ---- */
.room-head {
  transition: max-height 220ms ease, min-height 220ms ease, padding 220ms ease, border-bottom-width 220ms ease, opacity 180ms ease;
}

body:not(.room-style-button):not(.mobile-layout) .room-head {
  max-height: 260px;
}

body.room-head-collapsed:not(.mobile-layout) .room-head {
  overflow: hidden;
  max-height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
  opacity: 0;
}

body.room-head-collapsed.room-style-button:not(.mobile-layout) .room-head {
  min-height: 0;
  padding: 0;
}

/* Konferans modu: konusan satir cercevesi radiusu kapali, renkleri Konus butonunun idle hover paleti.
   Bu blog bilincli olarak dosyanin sonunda tutulur; temaya ozel speaking kurallarindan sonra geldigi icin
   (light/pastel/contrast/custom/darkwood) onlari gecersiz kilabilir. */
body.voice-mode-conference #usersList .list-item.user-row.speaking,
body[data-client-theme="light"].voice-mode-conference #usersList .list-item.user-row.speaking,
body[data-client-theme="pastel"].voice-mode-conference #usersList .list-item.user-row.speaking,
body[data-client-theme="contrast"].voice-mode-conference #usersList .list-item.user-row.speaking {
  border-radius: 0 !important;
  border-color: #86d7c7 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.44) 100%),
    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%) !important;
  box-shadow:
    inset 4px 0 0 #2f9d8b,
    0 0 16px 3px color-mix(in srgb, #2f9d8b 55%, transparent),
    0 4px 18px -8px color-mix(in oklab, #2f9d8b 28%, transparent) !important;
}

body[data-client-theme="custom"].voice-mode-conference #usersList .list-item.user-row.speaking {
  border-radius: 0 !important;
  border-color: var(--talk-theme-soft) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.22) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, var(--talk-theme-top) 0%, var(--talk-theme-mid) 58%, var(--talk-theme-deep) 100%) !important;
  box-shadow:
    inset 4px 0 0 var(--talk-theme-deep),
    0 0 16px 3px color-mix(in srgb, var(--talk-theme-mid) 55%, transparent),
    0 7px 16px color-mix(in srgb, var(--talk-theme-top) 23%, transparent) !important;
}

body[data-client-theme="night"].voice-mode-conference #usersList .list-item.user-row.speaking {
  border-radius: 0 !important;
  border-color: rgba(117, 216, 205, 0.42) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.12) 100%),
    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%) !important;
  box-shadow:
    inset 4px 0 0 rgba(117, 216, 205, 0.62),
    0 0 16px 3px rgba(117, 216, 205, 0.5),
    0 4px 18px -8px rgba(0, 0, 0, 0.35) !important;
}

body[data-client-theme="darkwood"].voice-mode-conference #usersList .list-item.user-row.speaking {
  border-radius: 0 !important;
  border-color: #8a6540 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.1) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(255, 255, 255, 0.03) 58%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(180deg, #4a3018 0%, #5a4020 48%, #6a4f30 100%) !important;
  box-shadow:
    inset 4px 0 0 #8a6540,
    0 0 16px 3px color-mix(in srgb, #8a6540 60%, transparent),
    0 4px 18px -8px rgba(0, 0, 0, 0.42) !important;
}

/* =====================================================
   ETKİNLİK BAŞLADI MODAL (site genelinde)
===================================================== */

.event-start-overlay {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(220, 228, 245, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-main, Inter, "Segoe UI", Arial, sans-serif);
  animation: eventStartOverlayIn .35s ease;
}

.event-start-overlay.event-start-overlay-leaving {
  animation: eventStartOverlayOut .2s ease forwards;
}

.event-start-overlay .event-modal {
  position: relative;
  width: min(510px, 100%);
  padding: 34px 34px 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 10%, rgba(184, 218, 255, 0.65), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(255, 203, 231, 0.65), transparent 30%),
    radial-gradient(circle at 80% 100%, rgba(194, 244, 225, 0.6), transparent 35%),
    linear-gradient(145deg, #ffffff, #f9f7ff 55%, #f5fbff);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 30px 80px rgba(75, 94, 140, 0.2),
    0 8px 30px rgba(110, 130, 180, 0.12),
    inset 0 1px 0 #ffffff;
  overflow: hidden;
  animation: eventStartModalIn .45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.event-start-overlay .event-modal::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  top: -140px;
  left: -80px;
  background: #b9ddff;
  opacity: 0.25;
  filter: blur(60px);
  pointer-events: none;
}

.event-start-overlay .event-modal::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -100px;
  bottom: -120px;
  background: #f3b7df;
  opacity: 0.22;
  filter: blur(65px);
  pointer-events: none;
}

.event-start-overlay .event-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(120, 135, 170, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #68728a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(80, 100, 140, 0.08);
  transition: 0.2s ease;
  z-index: 10;
}

.event-start-overlay .event-close:hover {
  background: #ffffff;
  color: #4c5870;
  transform: rotate(90deg);
  box-shadow: 0 7px 18px rgba(80, 100, 140, 0.15);
}

.event-start-overlay .event-icon {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 0 auto 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b8cff, #70b8ff 55%, #ff9fc8);
  box-shadow:
    0 12px 28px rgba(122, 145, 240, 0.23),
    0 0 0 8px rgba(155, 180, 255, 0.1);
  font-size: 35px;
  z-index: 2;
}

.event-start-overlay .event-icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(133, 160, 240, 0.25);
  animation: eventStartPulse 2.4s infinite;
}

.event-start-overlay .event-label {
  text-align: center;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #8171e8, #6c9ff2, #db79ad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.event-start-overlay .event-started-ago {
  margin: 0 0 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #6b7a99;
}

.event-start-overlay .event-title {
  margin: 0;
  text-align: center;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: #25314d;
  word-break: break-word;
}

.event-start-overlay .event-description {
  max-width: 420px;
  margin: 13px auto 26px;
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: #6d7891;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-start-overlay .event-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 25px;
}

.event-start-overlay .event-info-item {
  display: flex;
  align-items: center;
  min-height: 67px;
  padding: 11px 15px;
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(245, 249, 255, 0.95), rgba(255, 250, 255, 0.9));
  border: 1px solid rgba(175, 190, 225, 0.2);
  box-shadow:
    0 4px 15px rgba(100, 120, 160, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: 0.2s ease;
}

.event-start-overlay .event-info-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(100, 120, 160, 0.1);
}

.event-start-overlay .info-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 20px;
  margin-right: 13px;
  background: linear-gradient(135deg, #e9e1ff, #dff0ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.event-start-overlay .info-content {
  min-width: 0;
}

.event-start-overlay .info-label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #9a91bb;
}

.event-start-overlay .info-value {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: #35415d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-start-overlay .event-actions {
  display: flex;
  gap: 11px;
}

.event-start-overlay .event-btn {
  height: 52px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: 0.2s ease;
}

.event-start-overlay .event-btn-close {
  flex: 1;
  background: linear-gradient(135deg, #ffffff, #f4f6fb);
  border: 1px solid #dfe4ef;
  color: #7a8499;
  box-shadow: 0 4px 12px rgba(80, 100, 140, 0.06);
}

.event-start-overlay .event-btn-close:hover {
  background: #ffffff;
  color: #5c667b;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(80, 100, 140, 0.1);
}

.event-start-overlay .event-btn-join {
  flex: 1.25;
  border: 0;
  color: #ffffff;
  background: linear-gradient(100deg, #8f7bea, #72a8f5 55%, #68cdb6);
  box-shadow: 0 9px 22px rgba(112, 144, 230, 0.25);
}

.event-start-overlay .event-btn-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(112, 144, 230, 0.35);
}

.event-start-overlay .event-btn-goto {
  flex: 1.25;
  border: 0;
  color: #ffffff;
  background: linear-gradient(100deg, #e4869b, #f0a86b 55%, #f5c76a);
  box-shadow: 0 9px 22px rgba(230, 130, 150, 0.25);
}

.event-start-overlay .event-btn-goto:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(230, 130, 150, 0.35);
}

@keyframes eventStartOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes eventStartOverlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes eventStartModalIn {
  from {
    opacity: 0;
    transform: scale(0.91) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes eventStartPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

body[data-client-theme="night"] .event-start-overlay {
  background: rgba(4, 12, 17, 0.72);
}

body[data-client-theme="night"] .event-start-overlay .event-modal {
  background:
    radial-gradient(circle at 15% 10%, rgba(124, 156, 255, 0.16), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(255, 133, 191, 0.14), transparent 30%),
    radial-gradient(circle at 80% 100%, rgba(94, 220, 178, 0.13), transparent 35%),
    linear-gradient(145deg, #22304a, #1a2438 55%, #1b2432);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .event-start-overlay .event-modal::before {
  background: #3d5d9b;
  opacity: 0.3;
}

body[data-client-theme="night"] .event-start-overlay .event-modal::after {
  background: #7c3a63;
  opacity: 0.28;
}

body[data-client-theme="night"] .event-start-overlay .event-close {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #aab6d6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

body[data-client-theme="night"] .event-start-overlay .event-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #e6ecff;
}

body[data-client-theme="night"] .event-start-overlay .event-title {
  color: #eef2ff;
}

body[data-client-theme="night"] .event-start-overlay .event-description {
  color: #b6c0da;
}

body[data-client-theme="night"] .event-start-overlay .event-started-ago {
  color: #8f9cc4;
}

body[data-client-theme="night"] .event-start-overlay .event-info-item {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body[data-client-theme="night"] .event-start-overlay .event-info-item:hover {
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

body[data-client-theme="night"] .event-start-overlay .info-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-client-theme="night"] .event-start-overlay .info-label {
  color: #8f9cc4;
}

body[data-client-theme="night"] .event-start-overlay .info-value {
  color: #dde5fb;
}

body[data-client-theme="night"] .event-start-overlay .event-btn-close {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.14);
  color: #b9c2dd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

body[data-client-theme="night"] .event-start-overlay .event-btn-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #eef2ff;
}

body[data-client-theme="darkwood"] .event-start-overlay {
  background: rgba(24, 12, 5, 0.72);
}

body[data-client-theme="darkwood"] .event-start-overlay .event-modal {
  background:
    radial-gradient(circle at 15% 10%, rgba(228, 158, 92, 0.14), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(205, 121, 88, 0.12), transparent 30%),
    radial-gradient(circle at 80% 100%, rgba(118, 92, 62, 0.18), transparent 35%),
    linear-gradient(145deg, #3a2c1e, #2c2118 55%, #251c13);
  border: 1px solid rgba(255, 208, 150, 0.16);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body[data-client-theme="darkwood"] .event-start-overlay .event-modal::before {
  background: #b07a3d;
  opacity: 0.24;
}

body[data-client-theme="darkwood"] .event-start-overlay .event-modal::after {
  background: #a35c38;
  opacity: 0.2;
}

body[data-client-theme="darkwood"] .event-start-overlay .event-close {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 208, 150, 0.18);
  color: #cbb89e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

body[data-client-theme="darkwood"] .event-start-overlay .event-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f3e3cd;
}

body[data-client-theme="darkwood"] .event-start-overlay .event-title {
  color: #f3e3cd;
}

body[data-client-theme="darkwood"] .event-start-overlay .event-description {
  color: #cbb89e;
}

body[data-client-theme="darkwood"] .event-start-overlay .event-started-ago {
  color: #a9967c;
}

body[data-client-theme="darkwood"] .event-start-overlay .event-info-item {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 208, 150, 0.14);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body[data-client-theme="darkwood"] .event-start-overlay .event-info-item:hover {
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

body[data-client-theme="darkwood"] .event-start-overlay .info-icon {
  background: linear-gradient(135deg, rgba(255, 214, 160, 0.12), rgba(255, 214, 160, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body[data-client-theme="darkwood"] .event-start-overlay .info-label {
  color: #a89172;
}

body[data-client-theme="darkwood"] .event-start-overlay .info-value {
  color: #ecdcc4;
}

body[data-client-theme="darkwood"] .event-start-overlay .event-btn-close {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 208, 150, 0.16);
  color: #cdbb9e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

body[data-client-theme="darkwood"] .event-start-overlay .event-btn-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f3e3cd;
}

body.mobile-layout .event-start-overlay {
  padding: 14px;
}

body.mobile-layout .event-start-overlay .event-modal {
  padding: 28px 20px 22px;
  border-radius: 23px;
}

body.mobile-layout .event-start-overlay .event-icon {
  width: 70px;
  height: 70px;
  font-size: 30px;
}

body.mobile-layout .event-start-overlay .event-title {
  font-size: 26px;
}

body.mobile-layout .event-start-overlay .event-description {
  font-size: 14px;
  margin-bottom: 20px;
}

body.mobile-layout .event-start-overlay .event-info-item {
  min-height: 58px;
  padding: 9px 13px;
}

body.mobile-layout .event-start-overlay .info-icon {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  margin-right: 11px;
}

body.mobile-layout .event-start-overlay .event-btn {
  height: 49px;
}

@media (max-width: 520px) {
  .event-start-overlay {
    padding: 14px;
  }

  .event-start-overlay .event-modal {
    padding: 28px 20px 22px;
    border-radius: 23px;
  }

  .event-start-overlay .event-icon {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }

  .event-start-overlay .event-title {
    font-size: 26px;
  }

  .event-start-overlay .event-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .event-start-overlay .event-info-item {
    min-height: 58px;
    padding: 9px 13px;
  }

  .event-start-overlay .info-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    margin-right: 11px;
  }

  .event-start-overlay .event-btn {
    height: 49px;
  }
}

/* Guvenilir cihazlar */
.pp-trusted-devices-wrap {
  display: flex; flex-direction: column; gap: 8px;
}
.pp-trusted-loading {
  font-size: 11px; font-weight: 600; color: #67808a;
}
body[data-client-theme="night"] .pp-trusted-loading { color: #8fb7bf; }
.pp-trusted-save-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-radius: 10px; background: rgba(255,255,255,0.5);
  padding: 8px 10px;
}
body[data-client-theme="night"] .pp-trusted-save-row {
  background: rgba(9,25,32,0.68);
}
.pp-trusted-save-text {
  font-size: 10px; font-weight: 600; line-height: 1.35; color: #3a5a6a;
}
body[data-client-theme="night"] .pp-trusted-save-text { color: #d9edf1; }
.pp-trusted-save-row .primary {
  flex-shrink: 0; padding: 7px 12px; font-size: 11px; font-weight: 700;
}
.pp-trusted-save-ok {
  display: block; border-radius: 10px; background: rgba(213,240,220,0.55);
  padding: 8px 10px; font-size: 10px; font-weight: 700; line-height: 1.35; color: #1d6b3c;
}
body[data-client-theme="night"] .pp-trusted-save-ok {
  background: rgba(18,62,34,0.6); color: #9fe0b4;
}
.pp-trusted-devices {
  display: flex; flex-direction: column; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.pp-trusted-devices li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-radius: 10px; background: rgba(255,255,255,0.5);
  padding: 8px 10px; min-width: 0;
}
body[data-client-theme="night"] .pp-trusted-devices li {
  background: rgba(9,25,32,0.68);
}
.pp-trusted-devices .pp-trusted-empty {
  font-size: 10px; font-weight: 600; color: #67808a;
}
body[data-client-theme="night"] .pp-trusted-devices .pp-trusted-empty { color: #8fb7bf; }
.pp-trusted-device-info {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.pp-trusted-device-info strong {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; font-weight: 700; color: #1a2634;
}
body[data-client-theme="night"] .pp-trusted-device-info strong { color: #e8f8fa; }
.pp-trusted-device-info small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 10px; font-weight: 700; color: #67808a;
}
body[data-client-theme="night"] .pp-trusted-device-info small { color: #8fb7bf; }
.pp-trusted-delete {
  flex-shrink: 0; padding: 6px 10px; font-size: 10px; font-weight: 700;
}

.trusted-device-verify-body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px 18px;
}
.trusted-device-verify-body p {
  margin: 0; font-size: 11px; font-weight: 600; color: #3a5a6a;
  text-transform: none;
}
body[data-client-theme="night"] .trusted-device-verify-body p { color: #c8dde3; }
.trusted-device-verify-body h2 {
  margin: 0; font-size: 16px; font-weight: 900; color: #1a2634;
}
body[data-client-theme="night"] .trusted-device-verify-body h2 { color: #eaf7f9; }
.trusted-device-verify-note {
  display: flex; flex-direction: column; gap: 3px;
}
.trusted-device-verify-timer {
  color: #b1622f; font-weight: 800; font-size: 10px;
}
body[data-client-theme="night"] .trusted-device-verify-timer { color: #f2a65a; }
.trusted-device-verify-message {
  min-height: 16px; font-size: 11px; font-weight: 700; color: #b0382c;
}
.trusted-device-verify-overlay .auth-field input {
  letter-spacing: 0.4em; text-align: center; font-weight: 800;
}
.trusted-device-save-prompt {
  border-color: rgba(45, 137, 145, 0.45);
  background: #eefaf9;
}
.trusted-device-save-prompt strong { color: #0c5f6b; }
body[data-client-theme="night"] .trusted-device-save-prompt { background: rgba(13, 42, 48, 0.85); }
body[data-client-theme="night"] .trusted-device-save-prompt strong { color: #b6ecf2; }
body[data-client-theme="night"] .trusted-device-save-prompt span { color: #9fd0d8; }
.trusted-device-save-actions {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
}
#trustedDeviceSaveButton {
  border: 1px solid rgba(22, 118, 129, 0.35);
  background: linear-gradient(180deg, #43b7c4, #2f9fb0);
  color: #fff;
}
#trustedDeviceSaveButton:hover {
  background: linear-gradient(180deg, #53c5d1, #3aafc0);
}
#trustedDeviceSaveButton:disabled {
  opacity: 0.6;
  cursor: default;
}
#trustedDeviceSaveDismissButton {
  border: 1px solid rgba(128, 92, 0, 0.2);
  background: #fff;
  color: #5c4700;
}


/* ============ LOGIN YENİLEME ============
   Bant her durumda üstte (tek parçada tam genişlik),
   PC/tabletlerde form dikeyde sığmazsa iki sütuna bölünme (.login-split JS ekler),
   mobilde tek sütun, orijinal boyutlar korunur. */

/* Kart: satır1 = titlebar, satır2 = durum bandı (min 34px),
   satır3 = gövde (kalan alan, taşarsa kayar) */
.login-card {
  grid-template-rows: auto minmax(34px, auto) minmax(0, 1fr);
}

.login-window-body {
  min-height: 0;
}

/* iOS: odakta otomatik zoom olmaması için login input fontu 16px altına inmez */
.login-card input {
  font-size: 16px;
}

/* Band üstte: alt çizgi + durum noktası */
.login-message.login-statusbar {
  border-top-color: transparent;
  border-bottom: 1px solid #d2e4e9;
  padding: 5px 14px;
}

.login-message.login-statusbar::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #4e9cc0;
  box-shadow: 0 0 0 3px rgba(78, 156, 192, 0.16);
}

.login-message.login-statusbar[data-status="error"]::before {
  background: #d45b68;
  box-shadow: 0 0 0 3px rgba(212, 91, 104, 0.16);
}

.login-message.login-statusbar[data-status="success"]::before {
  background: #42a76f;
  box-shadow: 0 0 0 3px rgba(66, 167, 111, 0.16);
}

/* Boş bantta nokta görünmesin */
.login-message.login-statusbar:empty::before {
  display: none;
}

/* Gece ve özel temalarda alt çizgi */
body[data-client-theme="night"] .login-message.login-statusbar {
  border-top-color: transparent;
  border-bottom-color: rgba(100, 199, 187, 0.2);
}

body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-message.login-statusbar {
  border-top-color: transparent;
  border-bottom-color: var(--line);
}

/* PC/tablet: dikey taşma varsa iki sütuna bölünme (JS .login-split ekler ve
   gövdeyi iki bağımsız sütun kabına ayırır). Sol: logo + alanlar + KVKK (altta).
   Sağ: mesaj bandı üstte, altında butonlar (band hariç alta, KVKK ile aynı hizada).
   Bölünmede kart genişler, sütunlar sıkışmaz. */
@media (min-width: 861px) {
  .login-card.login-split {
    width: min(880px, 96vw);
    grid-template-rows: minmax(0, 1fr);
  }

  .login-card.login-split .login-window-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding-left: 26px;
    padding-right: 26px;
    overflow: auto;
  }

  .login-split-col {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
  }

  /* İki sütun arasında ortalanmış dikey ayraç çizgisi
     (sol 17px boşluk -> çizgi -> sağ 17px boşluk) */
  .login-split-col-left {
    border-right: 1px solid #d2e4e9;
    padding-right: 17px;
  }

  .login-split-col-right {
    padding-left: 17px;
  }

  body[data-client-theme="night"] .login-split-col-left {
    border-right-color: rgba(100, 199, 187, 0.2);
  }

  body[data-client-theme]:not([data-client-theme="default"]):not([data-client-theme="night"]) .login-split-col-left {
    border-right-color: var(--line);
  }

  .login-split-col-right .login-submit {
    margin-top: auto;
  }

  .login-split-col-left .kvkk-checkbox {
    margin-top: auto;
  }
}

/* Mobilde kart dikey flex: bant üstte sabit, gövde kalan tüm alanı doldurup
   en alta kadar uzanır. (Grid satır eşlemesine bağımlı değil: titlebar/bant/gövde
   hangi senaryoda olursa olsun karışmaz, altta artık bant/boşluk kalmaz.) */
@media (max-width: 860px) {
  .login-card {
    display: flex;
    flex-direction: column;
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
  }

  .login-card .login-message.login-statusbar {
    flex: 0 0 auto;
  }

  .login-card .login-window-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
}

/* Uzun ekranlarda (dar pencere + yüksek): gövde boşluğu kaldığında form aşağı
   inip alttaki boşluk dolsun diye dikey ortalanır. Kısa ekranlarda (taşma
   riski) davranış değişmez. */
@media (max-width: 860px) and (min-height: 800px) {
  .login-card .login-window-body {
    justify-content: center;
  }
}

/* LOGO + BAŞLIK TEK SATIR (tüm cihazlarda)
   Satır: [logo sola] ... [başlık kartın tam ortasında].
   Nick kutusu ve diğer alanlar satırın altında, orijinal sırayla durur. */
.login-head-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.login-head-row .login-logo {
  width: 56px;
  max-height: 56px;
  margin: 0;
}

.login-head-row .login-brand {
  min-width: 0;
  margin: 0;
  padding: 0 0 10px;
  font-size: 30px;
  text-align: center;
}

/* Mobilde satır sıkışır */
@media (max-width: 860px) {
  .login-head-row .login-logo {
    width: 46px;
    max-height: 46px;
  }

  .login-head-row .login-brand {
    font-size: 22px;
  }
}

/* Kısa ekranlarda (taşma riski) satırı iyice sıkıştır */
@media (max-height: 700px) {
  .login-head-row {
    margin-bottom: 10px;
  }

  .login-head-row .login-logo {
    width: 40px;
    max-height: 40px;
  }

  .login-head-row .login-brand {
    font-size: 22px;
  }
}

/* Bölünmede (iki sütun) VoiceChat başlığı küçülmesin:
   split genelde kısa pencerelerde açılır, orada max-height:700px
   küçültmesi başlığı da 17px'e indirirdi. Split'te orijinal boyut korunur. */
.login-card.login-split .login-head-row .login-brand {
  font-size: 30px;
}
