:root {
  --font-main: "Verdana", Verdana, Tahoma, sans-serif;
  --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;
  --shadow: 0 16px 44px rgba(42, 70, 82, 0.12);
  --shadow-soft: 0 8px 22px rgba(42, 70, 82, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

img,
svg,
button,
.user-avatar,
.brand-mark {
  -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:
    radial-gradient(circle at 18% 12%, rgba(63, 157, 190, 0.18), transparent 31%),
    radial-gradient(circle at 82% 0%, rgba(82, 184, 164, 0.16), transparent 30%),
    linear-gradient(180deg, #f7fbfc 0%, #eaf3f6 55%, #ffffff 100%);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.login-card {
  display: grid;
  grid-template-rows: 36px minmax(0, auto) minmax(32px, auto);
  width: min(430px, 100%);
  max-height: calc(100svh - 44px);
  overflow: hidden;
  border: 1px solid #9fc2cc;
  border-radius: 8px;
  background: #fbfeff;
  box-shadow: 0 24px 64px rgba(38, 78, 92, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 0;
}

.login-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #cde1e7;
  background: linear-gradient(180deg, #f3fbff 0%, #cfe8f7 100%);
  color: #285f83;
  padding: 0 8px 0 13px;
  user-select: none;
}

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

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

.login-window-body {
  min-height: 0;
  overflow: auto;
  padding: 26px 32px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 253, 254, 0.98));
  scrollbar-width: thin;
}

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

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

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

.login-brand {
  display: table;
  position: relative;
  padding: 0 0 12px;
  color: transparent;
  background: linear-gradient(135deg, #1d6d86 0%, #35a6bc 48%, #3faaa3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 950;
  text-shadow: 0 12px 30px rgba(36, 125, 154, 0.12);
}

.login-brand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(54, 157, 189, 0.18), rgba(63, 170, 163, 0.78), rgba(54, 157, 189, 0.18));
  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 #dcecf1;
  border-radius: 8px;
  background: #f8fcfd;
  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: #79a88a;
  font-size: 17px;
  transform: translateY(-50%);
  pointer-events: none;
}

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

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

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

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

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

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

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

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

.login-card input {
  min-height: 46px;
  border-color: #cfe1e8;
  border-radius: 10px;
  background: #ffffff;
  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.14);
}

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

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

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

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

.login-submit {
  position: relative;
  overflow: hidden;
  border: 1px solid #78bd79;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 253, 254, 0.98) 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(79, 143, 66, 0.26),
    0 2px 0 #70b56d,
    0 0 12px rgba(191, 250, 174, 0.38),
    0 8px 18px rgba(128, 203, 120, 0.16);
}

.login-submit:hover {
  border-color: #6bb96d;
  background:
    linear-gradient(180deg, #ffffff 0%, #f3fbf6 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(180deg, #f8fcfd 0%, #e9f3f6 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 !important;
  border: 1px solid transparent;
  box-shadow: none;
}

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

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

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

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

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

.side {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

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

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

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

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

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

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

.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.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-panel {
  display: none;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: 10px;
}

.tab-panel.active {
  display: block;
}

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

.side #usersPanel {
  background: linear-gradient(90deg, #eaf6fb 0%, #f3fbff 58%, #fbfdff 100%);
}

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

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

.side #roomsList,
.side #usersList {
  min-height: 100%;
  border-radius: var(--radius-sm);
}

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

.side #usersList {
  border: 1px solid #cfe3ec;
  background: linear-gradient(90deg, #eaf6fb 0%, #f4fbff 58%, #f8fcff 100%);
  padding: 8px 6px !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 {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

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

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

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

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

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

.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: 14px;
  font-size: 15px;
  letter-spacing: 0;
  opacity: 1;
  text-shadow: none;
}

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

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

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

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

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

#usersList .list-item.user-row {
  grid-template-columns: 43px minmax(0, 1fr) max-content !important;
  column-gap: 7px !important;
  min-height: 53px !important;
  height: 53px !important;
  max-height: 53px !important;
  padding: 8px 10px !important;
  border-radius: var(--radius-sm) !important;
  align-items: center !important;
  overflow: hidden !important;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

#usersList .list-item.user-row:hover {
  border-color: #b8d9d6 !important;
  background: linear-gradient(180deg, #f7fcfb 0%, #edf8f6 100%) !important;
  box-shadow: inset 3px 0 0 #79bdb8;
}

#usersList .list-item.user-row.selected,
#usersList .list-item.user-row:focus-visible {
  border-color: #8ecbc6 !important;
  background: linear-gradient(180deg, #eef9f7 0%, #ddf2ef 100%) !important;
  box-shadow: inset 3px 0 0 var(--accent-strong), 0 5px 12px rgba(47, 125, 121, 0.1);
}

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

.user-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: #356f9f;
  font-size: 10px;
  font-weight: 900;
}

.user-avatar.has-photo {
  overflow: hidden;
  padding: 0;
  background: transparent !important;
  border: 1px solid transparent;
  box-shadow: none;
}

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

#usersList .user-avatar {
  width: 38px !important;
  height: 38px !important;
  font-size: 13px !important;
  line-height: 38px !important;
  flex: 0 0 38px;
  transform: translateX(-3px);
}

.user-main {
  display: block;
  min-width: 0;
}

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

.user-row.admin-user .user-nick {
  color: #b83c48;
}

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

#usersList .user-main .user-nick {
  font-size: 14px !important;
  line-height: 18px !important;
  height: 18px !important;
}

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

.user-main small {
  display: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.list-item.user-row .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;
}

.queue-badge .hourglass {
  display: inline-block;
  transform-origin: center;
  animation: hourglassPulse 0.85s ease-in-out infinite;
  will-change: opacity, transform;
}

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

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

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

@keyframes hourglassPulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.72);
  }

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

.room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px 12px;
  border-bottom: 1px solid #b9d0da;
  background: linear-gradient(135deg, #f4f9ff 0%, #e7f1ff 48%, #fffbe8 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.9);
  font-family: var(--font-main);
}

.room-title-block {
  min-width: 0;
}

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

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

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

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

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

.room-welcome,
.room-topic {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.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 {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

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

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

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

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

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

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

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

@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: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #edf6f8 100%);
  color: #45636f;
  padding: 0 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(48, 80, 92, 0.12);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

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

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

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

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

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

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

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

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

.room-welcome-card span {
  color: #6c8790;
  font-size: 12px;
}

.message {
  align-self: flex-start;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  max-width: min(720px, 82%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 3px 14px rgba(42, 70, 82, 0.06);
  padding: 9px 11px 9px 9px;
}

.message.mine {
  align-self: flex-end;
  grid-template-columns: minmax(0, 1fr) 30px;
  border-color: #b5ddda;
  background: var(--accent-soft);
  padding: 9px 9px 9px 11px;
}

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

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

.message-avatar {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: #356f9f;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
}

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

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

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

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

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

.message.mine .message-nick {
  color: #173f74;
}

.message:not(.mine) .message-nick {
  color: #b83c48;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.admin-room-picker {
  min-height: 0;
  border-right: 1px solid #d8e8ed;
  background: #fbfefe;
  overflow: hidden;
}

.admin-room-picker-head {
  border-bottom: 1px solid #d8e8ed;
  background: linear-gradient(180deg, #fff7ed 0%, #f5dfc0 100%);
  color: #8a4f13;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
}

.admin-room-picker-list {
  display: grid;
  align-content: start;
  gap: 6px;
  max-height: 100%;
  overflow: auto;
  padding: 10px;
}

.admin-room-row {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid #dce9ed;
  border-radius: 7px;
  background: #ffffff;
  color: #536b75;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.admin-room-row strong {
  color: #375f69;
  font-size: 13px;
}

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

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

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

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

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

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

.admin-room-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 textarea {
  max-height: 82px;
}

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

.my-profile-window .admin-window-body {
  max-height: min(430px, calc(100svh - 130px));
}

.my-profile-form {
  gap: 8px !important;
  padding: 10px !important;
}

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

.my-profile-form .profile-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

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

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

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

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

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

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

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

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

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

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

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

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

.admin-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: 8px;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  background: linear-gradient(180deg, #fff7f7 0%, #f6eeee 100%);
}

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

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

.private-message {
  align-self: flex-start;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  max-width: 86%;
  border: 1px solid #d0e1e5;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 7px 9px;
  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: #b6dcd7;
  background: #eaf8f5;
  text-align: right;
}

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

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

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

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

.private-message.mine strong {
  color: #173f74;
}

.private-message:not(.mine) strong {
  color: #b83c48;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.private-dock button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 132px;
  max-width: 190px;
  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 9px;
  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 span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-dock b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d94e5a;
  color: #fff;
  font-size: 10px;
}

.text-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.text-tools select {
  width: auto;
  min-width: 96px;
  min-height: 32px;
  padding: 5px 8px;
  color: var(--muted);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.text-tools select:hover,
.text-tools select:focus,
.color-tool:hover,
.color-tool:focus-within {
  border-color: #2f7d79;
  background: linear-gradient(180deg, #f6fffd 0%, #e1f3ef 100%);
  color: #184f4b;
  box-shadow: 0 3px 10px rgba(47, 125, 121, 0.12);
}

.text-tools button,
.camera-watch,
.camera-icon-button,
.speaker-mute-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
}

.camera-watch {
  position: relative;
  border-color: #c7dde3;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #edf7f8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 8px rgba(45, 83, 96, 0.08);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

#videoButton.camera-icon-button {
  display: inline-grid;
  flex: 0 0 32px;
}

.text-tools button:hover,
.camera-watch:hover,
.camera-icon-button:hover,
.camera-icon-button.active,
.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,
.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 button.tool-active img {
  filter: saturate(1.15) brightness(1.05);
}

.color-tool {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #edf6f5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 2px 7px rgba(32, 73, 81, 0.06);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.color-tool::before {
  content: "A";
  color: #1d5f5a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

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

#colorSwatch,
.color-swatch {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 4px;
  border-radius: 999px;
  background: #2f7d79;
  box-shadow: 0 0 0 1px rgba(24, 79, 75, 0.12);
}

#fontColorInput,
.font-color-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.camera-watch:hover {
  border-color: #70b8b4;
  background: linear-gradient(180deg, #f4fffd 0%, #dff3f0 100%);
  box-shadow: 0 5px 14px rgba(47, 125, 121, 0.16);
  transform: translateY(-1px);
}

.camera-watch.camera-ignored {
  opacity: 1;
  border-color: #d59aa4;
  background: linear-gradient(180deg, #fff6f7 0%, #f4dde1 100%);
}

.camera-watch.camera-ignored::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-top: 3px solid #c74455;
  transform: rotate(-42deg);
  transform-origin: center;
}

.camera-icon-button img,
.smiley-button img,
.speaker-mute-button img,
.camera-watch img {
  max-width: 20px;
  max-height: 20px;
  background: transparent;
}

#videoButton img {
  display: block;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 7px;
  border: 1px solid #cfe1e7;
  border-radius: 9px;
  background: linear-gradient(180deg, #fafdfe 0%, #edf5f7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 6px 16px rgba(42, 70, 82, 0.08);
  padding: 6px;
}

.composer input {
  min-height: 54px;
  height: 54px;
  background: #ffffff;
  padding-top: 10px;
  padding-bottom: 10px;
}

body.client-muted .composer input {
  border-color: #c6cfd4;
  background: #edf1f3;
  color: #8a99a0;
  cursor: not-allowed;
}

.composer button {
  min-height: 54px;
  min-width: 92px;
}

body.client-muted .composer button {
  filter: grayscale(0.45);
  opacity: 0.72;
  cursor: not-allowed;
}

body.client-muted #talkButton,
body.client-muted #mobileTalkButton,
#talkButton.disabled-by-mute,
#mobileTalkButton.disabled-by-mute {
  filter: grayscale(0.55);
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

#talkButton.device-missing,
#mobileTalkButton.device-missing,
#videoButton.device-missing,
#mobileVideoButton.device-missing {
  border-color: #b8d7ee !important;
  background:
    linear-gradient(180deg, #eef8ff 0%, #d7ecfb 52%, #bddcf3 100%) !important;
  color: #4b5563 !important;
  cursor: not-allowed !important;
  opacity: 0.86 !important;
  filter: none !important;
  pointer-events: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -8px 14px rgba(80, 126, 160, 0.1) !important;
}

#talkButton.device-missing,
#mobileTalkButton.device-missing {
  border-radius: 8px !important;
}

#sendButton {
  border-color: rgba(255, 255, 255, 0.64);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.17) 42%, rgba(255, 255, 255, 0.06) 43%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(180deg, #70c9ff 0%, #2f9ee6 52%, #1670c0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 11px 18px rgba(255, 255, 255, 0.16),
    inset 0 -10px 16px rgba(0, 0, 0, 0.17),
    0 8px 18px rgba(36, 128, 205, 0.28);
}

#sendButton:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.06) 43%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, #5dbcff 0%, #218bd6 52%, #105fa8 100%);
}

.smiley-panel {
  position: absolute;
  left: 10px;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: min(360px, calc(100vw - 20px));
  max-height: 330px;
  border: 1px solid #b9d9d2;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfffd 0%, #eff9f5 100%);
  box-shadow: 0 16px 42px rgba(31, 103, 98, 0.16);
  padding: 10px;
}

.smiley-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 6px;
  max-height: 238px;
  margin-top: 8px;
  overflow: auto;
}

.smiley-choice {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cfe6df;
  border-radius: var(--radius-sm);
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.smiley-choice:hover {
  border-color: #2f7d79;
  background: rgba(233, 250, 244, 0.52);
  box-shadow: 0 5px 12px rgba(47, 125, 121, 0.18);
  transform: translateY(-1px);
}

.smiley-choice:active,
.smiley-choice:focus-visible {
  border-color: #1f6762;
  background: rgba(63, 170, 163, 0.2);
}

.smiley-choice img,
.inline-smile {
  max-width: 24px;
  max-height: 24px;
  background: transparent;
  vertical-align: middle;
}

.smiley-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 10px;
  text-align: center;
}

.private-window .private-smiley-panel {
  left: 8px;
  right: 8px;
  bottom: 104px;
  width: auto;
  max-height: 150px;
  padding: 8px;
  box-shadow: 0 10px 26px rgba(31, 103, 98, 0.14);
}

.private-window .private-smiley-panel .smiley-grid {
  grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
  gap: 5px;
  max-height: 96px;
}

.private-window .private-smiley-panel .smiley-choice {
  width: 28px;
  height: 28px;
}

.private-window .private-smiley-panel .smiley-choice img {
  max-width: 20px;
  max-height: 20px;
}

.room-admin {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

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

.inline-danger {
  min-height: 30px;
  border: 1px solid #efc7cd;
  border-radius: var(--radius-sm);
  background: #fff6f7;
  color: var(--red);
  padding: 0 10px;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.status-dot.busy,
.rec-dot,
.button-rec {
  background: var(--red);
}

.status-dot.away {
  background: var(--yellow);
}

.status-dot.break {
  background: var(--blue);
}

.rec-dot,
.button-rec {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.camera-watch .rec-dot {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border: 1px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(212, 91, 104, 0.16);
  animation: recPulse 1s ease-in-out infinite;
}

@keyframes recPulse {
  0%,
  100% {
    opacity: 0.45;
    box-shadow: 0 0 0 1px rgba(212, 91, 104, 0.14);
    transform: scale(0.86);
  }

  45% {
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(212, 91, 104, 0.2), 0 0 8px rgba(212, 91, 104, 0.5);
    transform: scale(1.08);
  }
}

.panel-action.talk-idle {
  border: 1px solid #86d7c7;
  background: linear-gradient(180deg, #f7fffc 0%, #dff8f1 100%);
  color: #12665f;
  box-shadow: 0 10px 24px rgba(31, 103, 98, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.panel-action.talk-talking {
  border: 1px solid #f0a3ad;
  background: linear-gradient(180deg, #fff6f7 0%, #ffdce1 100%);
  color: #9b2333;
  box-shadow: 0 10px 24px rgba(188, 54, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.panel-action.talk-queued {
  border: 1px solid #9ac9ef;
  background: linear-gradient(180deg, #f4fbff 0%, #dcedfb 100%);
  color: #1f5e91;
  box-shadow: 0 10px 24px rgba(54, 122, 186, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.talk-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.talk-mic::before {
  content: "";
  width: 8px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.talk-mic::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 0 0 9px 9px;
}

.talk-hourglass::before {
  content: "";
  width: 11px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 62% 50%, 100% 100%, 0 100%, 38% 50%);
  background: rgba(255, 255, 255, 0.2);
}

.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;
  border: 1px solid #c9dde1;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfa 100%);
  box-shadow: 0 16px 40px rgba(31, 60, 70, 0.18);
  padding: 7px;
}

.user-context-menu.mine-menu,
.user-context-menu.mine-menu .submenu {
  border-color: #b7d9d3;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf8 100%);
}

.user-context-menu.other-menu {
  border-color: #e2b5ad;
  background: linear-gradient(180deg, #fffdfc 0%, #fff3f0 100%);
  box-shadow: 0 16px 40px rgba(117, 54, 44, 0.16);
}

.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: absolute;
  top: 0;
  left: calc(100% + 2px);
  min-width: 220px;
  border: 1px solid #c9dde1;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfa 100%);
  box-shadow: 0 16px 40px rgba(31, 60, 70, 0.18);
  padding: 7px;
}

.menu-parent:hover .submenu {
  display: block;
}

.chat-context-menu {
  min-width: 230px;
}

.room-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 18%, rgba(145, 205, 218, 0.24), transparent 34%),
    rgba(44, 67, 76, 0.54);
  backdrop-filter: blur(3px);
  font-family: var(--font-main);
}

.room-gate-card,
.room-settings-card {
  width: min(430px, 100%);
  border: 1px solid #c8dce3;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 250, 0.98) 100%);
  box-shadow: 0 24px 64px rgba(46, 80, 92, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  padding: 24px;
}

.room-gate-card {
  position: relative;
  display: grid;
  gap: 13px;
  text-align: center;
  overflow: hidden;
}

.room-gate-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #b7dde6, #87c8d8, #bfe5df);
}

.room-window-card {
  width: min(470px, calc(100vw - 34px));
  padding: 0;
  gap: 0;
  border: 1px solid #9fc2cc;
  border-radius: 8px;
  background: #fbfeff;
  text-align: left;
  box-shadow:
    0 26px 70px rgba(15, 47, 58, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.room-window-card::before {
  display: none;
}

.room-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  border-bottom: 1px solid #cde1e7;
  border-radius: 7px 7px 0 0;
  padding: 0 8px 0 13px;
  color: #315f6d;
  user-select: none;
}

.room-window-titlebar strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-window-titlebar button {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 24px;
  border: 1px solid #df9b91;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff5f2 0%, #edb6ad 100%);
  color: #9b382f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.room-window-titlebar button:hover {
  border-color: #c97066;
  background: linear-gradient(180deg, #fff8f6 0%, #f1d2cd 100%);
}

.room-window-blue .room-window-titlebar {
  background: linear-gradient(180deg, #f3fbff 0%, #cfe8f7 100%);
  color: #285f83;
}

.room-window-red .room-window-titlebar {
  border-bottom-color: #e6c4c1;
  background: linear-gradient(180deg, #fff6f5 0%, #f4d4d0 100%);
  color: #8a3630;
}

.room-window-body {
  display: grid;
  gap: 13px;
  padding: 20px 22px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfc 100%);
}

.room-gate-card p,
.room-settings-head p {
  margin: 0;
  color: #8ba0a8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.room-gate-card h2,
.room-settings-head h2 {
  margin: 0;
  color: #496a76;
  font-size: 18px;
  font-weight: 850;
}

.room-gate-card span {
  color: #28708a;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.42;
}

.room-window-red .room-gate-card span,
.room-window-red .room-window-body > span {
  color: #a6453d;
}

.room-window-body > h2 {
  color: #78909a;
  font-size: 22px;
  font-weight: 900;
}

.room-window-red .room-window-body > h2 {
  color: #a6453d;
}

.room-window-room-name {
  display: block;
  color: #7e939c;
  font-size: 12px;
  font-weight: 750;
}

.room-gate-card input,
.room-gate-card textarea,
.room-settings-form input,
.room-settings-form textarea {
  width: 100%;
  border: 1px solid #d4e4ea;
  border-radius: 8px;
  background: #ffffff;
  color: #566f79;
  padding: 11px 12px;
  outline: none;
}

.room-gate-card blockquote {
  margin: 0;
  border-left: 3px solid #93ccd8;
  border-radius: 7px;
  background: #f3fafb;
  color: #627b85;
  padding: 10px 12px;
  text-align: left;
}

.room-gate-actions,
.room-settings-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.room-gate-actions button,
.room-settings-form footer button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 900;
}

.room-gate-actions .primary,
.room-settings-form .primary {
  border: 1px solid #8fc9d6;
  background: linear-gradient(180deg, #8bd0de 0%, #55aabd 100%);
  color: #fff;
}

.room-gate-actions .secondary,
.room-settings-form .secondary {
  border: 1px solid #d3e2e8;
  background: #ffffff;
  color: #778c95;
}

.private-room-gate .room-gate-card::before {
  background: linear-gradient(90deg, #f5e9b8, #ecd477, #d9eef2);
}

.locked-room-gate .room-gate-card::before {
  background: linear-gradient(90deg, #efc7b8, #e8a990, #d9eef2);
}

.join-request-gate .room-gate-card::before {
  background: linear-gradient(90deg, #bfe5df, #8fc9d6, #f5e9b8);
}

.room-settings-card {
  width: min(640px, 100%);
  padding: 0;
  overflow: hidden;
  border: 1px solid #c5d9e1;
  border-radius: 9px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5fbfc 100%);
  box-shadow:
    0 24px 66px rgba(15, 47, 58, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.room-settings-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #cfe2e8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 248, 250, 0.94) 100%),
    #f1f7f9;
  padding: 18px 20px 16px;
}

.room-settings-head p {
  margin-bottom: 4px;
  color: #91a5ad;
}

.room-settings-head h2 {
  font-size: 24px;
  color: #496a76;
  font-weight: 850;
}

.room-settings-head button {
  width: 36px;
  height: 36px;
  border: 1px solid #cbdde4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #7c929b;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(46, 89, 103, 0.08);
}

.room-settings-id {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  border: 1px solid #bddfe4;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #e9f7f8 100%);
  color: #8298a0;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.room-settings-id b {
  color: #5f9cac;
}

.room-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: min(72vh, 680px);
  overflow: auto;
  margin: 0;
  background: #f1f7f9;
  padding: 18px 20px 20px;
}

.room-settings-form label {
  display: grid;
  gap: 6px;
  color: #7c929b;
  font-size: 13px;
  font-weight: 800;
}

.room-settings-form label:has(textarea),
.room-settings-form label:has([name="background_url"]),
.room-password-field,
.room-settings-form footer,
.room-settings-message {
  grid-column: 1 / -1;
}

.room-settings-form input,
.room-settings-form textarea {
  min-height: 42px;
  border-color: #c5d9e1;
  border-radius: 7px;
  background: #ffffff;
  color: #566f79;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.room-settings-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
}

.room-settings-checks label {
  display: flex;
  align-items: center;
  border: 1px solid #c5d9e1;
  border-radius: 7px;
  background: linear-gradient(180deg, #ffffff 0%, #edf7f9 100%);
  padding: 11px 12px;
  box-shadow: 0 4px 12px rgba(45, 103, 117, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.room-settings-checks input {
  width: 16px;
}

.room-settings-message {
  min-height: 18px;
  color: #5b909c;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.room-settings-form footer {
  border-top: 1px solid #d4e5eb;
  margin-top: 2px;
  padding-top: 14px;
}

@media (max-width: 680px) {
  .room-settings-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .room-settings-head {
    padding: 18px;
  }

  .room-settings-checks {
    grid-template-columns: 1fr;
  }
}

.menu-arrow,
.menu-check {
  margin-left: auto;
}

.menu-check {
  color: var(--green);
}

.menu-separator {
  height: 1px;
  margin: 5px 0;
  background: var(--line);
}

.floating-video {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 60;
  width: min(320px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid #22313a;
  border-radius: var(--radius);
  background: #111b22;
  color: #fff;
  box-shadow: var(--shadow);
}

.floating-video header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.42);
  cursor: move;
}

.floating-video button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.floating-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  object-fit: cover;
}

.viewer-list {
  min-height: 24px;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.voice-bars {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 21px;
  min-width: 40px;
}

.voice-bars i {
  display: block;
  width: 4px;
  height: calc(4px + (var(--step) * 1.85px));
  border-radius: 2px 2px 1px 1px;
  background: #d7e1e4;
  opacity: 0.75;
  transform-origin: bottom;
  transition: background 70ms linear, opacity 70ms linear, transform 70ms linear;
}

.voice-bars.active i.on {
  opacity: 1;
  transform: scaleY(1.08);
}

.voice-bars i:nth-child(1).on {
  background: #cfd8dc;
}

.voice-bars i:nth-child(2).on {
  background: #8f9aa0;
}

.voice-bars i:nth-child(3).on {
  background: #a7dfbe;
}

.voice-bars i:nth-child(4).on {
  background: #35a66d;
}

.voice-bars i:nth-child(5).on {
  background: #a9d5f7;
}

.voice-bars i:nth-child(6).on {
  background: #3b82c4;
}

.voice-bars i:nth-child(7).on {
  background: #f3a6ad;
}

.voice-bars i:nth-child(8).on {
  background: #d45b68;
  box-shadow: 0 0 6px rgba(212, 91, 104, 0.22);
}

.ignore-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d28d98;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7f8 0%, #f2d5da 100%);
  color: #a62f42;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.room-toast-stack {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 110;
  display: grid;
  gap: 8px;
}

.room-toast {
  width: min(320px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 12px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.room-toast.join {
  border-color: #a8d8b8;
  background: linear-gradient(180deg, #f3fff7 0%, #e1f7e9 100%);
  box-shadow: 0 14px 34px rgba(45, 120, 76, 0.16);
}

.room-toast.leave {
  border-color: #dda49a;
  background: linear-gradient(180deg, #fff6f4 0%, #f7dfda 100%);
  box-shadow: 0 14px 34px rgba(151, 58, 44, 0.16);
}

.room-toast.friend-online {
  border-color: #7fb4df;
  background: linear-gradient(180deg, #f6fbff 0%, #dfefff 100%);
  box-shadow: 0 14px 34px rgba(42, 104, 158, 0.18);
}

.room-toast.closing {
  opacity: 0;
  transform: translateY(8px);
}

.room-toast-title {
  margin-bottom: 4px;
  font-weight: 800;
}

.room-toast-body {
  color: var(--muted);
}

.room-toast.join .room-toast-title,
.room-toast.join .room-toast-body {
  color: #1f6d3f;
}

.room-toast.leave .room-toast-title,
.room-toast.leave .room-toast-body {
  color: #8f2f28;
}

.room-toast.friend-online .room-toast-title,
.room-toast.friend-online .room-toast-body {
  color: #225f93;
}

@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: 100dvh;
    min-height: 100dvh;
    padding: 4px;
  }

  .side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    height: min(76dvh, 640px);
    min-height: 0;
    border-radius: 18px 18px 0 0;
    border-color: #b9d3dc;
    box-shadow: 0 -16px 40px rgba(21, 46, 56, 0.24);
    transform: translateY(calc(100% + 18px));
    transition: transform 190ms ease;
  }

  body.mobile-sheet-open .side {
    transform: translateY(0);
  }

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

  .side .brand,
  .side .tabs {
    display: none;
  }

  .side .tab-panel {
    padding: 10px 10px max(14px, env(safe-area-inset-bottom));
  }

  .conversation {
    height: calc(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(6px, 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;
  }

  body.client-is-admin .mobile-action-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mobile-action-bar .mobile-nav-tool {
    display: inline-grid;
    place-items: center;
    min-width: 0;
    height: 36px;
    padding: 0 4px;
    border: 1px solid #c8dce3;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #eaf5f8 100%);
    color: #245f93;
    font-size: 10.5px;
    font-weight: 800;
    box-shadow: 0 3px 9px rgba(38, 77, 84, 0.08);
    white-space: nowrap;
  }

  .mobile-action-bar .mobile-nav-tool.admin-only[hidden] {
    display: none !important;
  }

  .text-tools {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .text-tools > * {
    flex: 0 0 auto;
  }

  .mobile-action-bar .mobile-primary-tool {
    display: inline-grid;
    place-items: center;
    min-width: 0;
    height: 36px;
    border: 1px solid #c8dce3;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #eaf5f8 100%);
    color: #1f625d;
    font-size: 10.5px;
    font-weight: 800;
    box-shadow: 0 3px 9px rgba(38, 77, 84, 0.08);
    white-space: nowrap;
  }

  .mobile-action-bar .mobile-primary-tool img {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  .mobile-action-bar #mobileVideoButton {
    grid-template-columns: auto auto;
    gap: 3px;
  }

  .mobile-action-bar #mobileTalkButton {
    grid-template-columns: auto auto;
    gap: 3px;
    color: #ffffff;
    background: linear-gradient(180deg, #47aaa4 0%, #2f7d79 50%, #245f5a 100%);
    border-color: #2f7d79;
  }

  .text-tools #videoButton.camera-icon-button {
    display: none;
  }

  .text-tools select {
    min-width: 82px;
  }

  .room-head {
    display: grid;
    gap: 5px;
    padding: 7px 9px 6px;
  }

  .room-head h1 {
    margin-bottom: 2px;
    font-size: 16px;
    line-height: 1.05;
    white-space: normal;
  }

  .room-welcome {
    display: none;
  }

  .room-topic {
    margin-top: 0;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .room-meta {
    justify-content: flex-start;
    gap: 4px;
  }

  .speaker-indicator {
    min-height: 24px;
    padding: 0 8px;
    gap: 5px;
  }

  .speaker-indicator b {
    max-width: 120px;
    font-size: 11px;
  }

  .speaker-indicator img {
    width: 16px;
    height: 16px;
  }

  .meta-pill,
  .queue-badge {
    min-height: 22px;
    padding: 0 7px;
    font-size: 10.5px;
  }
}

body.mobile-layout .composer-wrap {
  display: block;
}

body.mobile-layout .mobile-action-bar {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid #d8e8ed;
}

body.mobile-layout.client-is-admin .mobile-action-bar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.mobile-layout .mobile-action-bar .mobile-nav-tool,
body.mobile-layout .mobile-action-bar .mobile-primary-tool {
  display: inline-grid;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  width: 100%;
  height: 36px;
  padding: 0 2px;
  overflow: hidden;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.mobile-layout .mobile-action-bar img,
body.mobile-layout .tool-media-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

body.mobile-layout .mobile-action-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
}

body.mobile-layout .text-tools #videoButton.camera-icon-button {
  display: none;
}

body.mobile-layout .text-tools {
  scrollbar-width: none;
}

body.mobile-layout .text-tools::-webkit-scrollbar {
  display: none;
}

body.mobile-layout .text-tools select {
  min-width: 68px;
  max-width: 82px;
  font-size: 12px;
  padding-inline: 6px;
}

body.mobile-layout .text-tools button,
body.mobile-layout .color-tool {
  width: 29px;
  height: 29px;
}

body.mobile-layout .speaker-mute-button img {
  max-width: 18px;
  max-height: 18px;
}

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,
.speaker-mute-button img,
.camera-watch,
.camera-watch img,
.mobile-action-bar img,
.tab img,
.tool-media-icon {
  background: transparent !important;
  background-color: transparent !important;
}

/* Login/register refresh: visual-only skin, existing form ids and behavior stay intact. */
.login-screen {
  padding: 24px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8f0f6 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(100, 130, 160, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(70, 100, 140, 0.12);
  backdrop-filter: blur(10px);
  animation: authFadeIn 0.7s ease;
}

.login-titlebar {
  display: none;
}

.login-window-body {
  padding: 32px;
  background: transparent;
}

.login-hero-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.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: #374151;
  background: none;
  -webkit-text-fill-color: currentColor;
  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: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.permission-note {
  margin-top: -12px !important;
  margin-bottom: 28px !important;
  border: 0;
  background: transparent;
  color: #6b7280;
  padding: 0;
}

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

.auth-field::before {
  left: 16px;
  width: 20px;
  height: 20px;
  color: #9ca3af;
  font-size: 16px;
}

.auth-field.user-field::before {
  content: "";
  background:
    radial-gradient(circle at 50% 31%, currentColor 0 4.5px, transparent 5px),
    radial-gradient(ellipse at 50% 82%, currentColor 0 8px, transparent 8.5px);
}

.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: "@";
  color: #9ca3af;
  font-size: 17px;
  font-weight: 800;
}

.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: 2px solid #eef2f7;
  border-radius: 10px;
  background: #f9fafb;
  color: #374151;
  padding: 11px 14px 11px 48px;
  box-shadow: none;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.login-card input::placeholder {
  color: #aab4c0;
  opacity: 0.72;
}

.login-card input:focus {
  border-color: #60a5fa;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.login-card button {
  border-radius: 10px;
}

.login-submit {
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  font-weight: 800;
  text-shadow: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.login-submit:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
  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: #a3afbb;
  font-size: 12px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5eaf0;
}

.google-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  margin-top: 0;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #374151;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(70, 100, 140, 0.08);
  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: #9ca3af;
  background: #fafafa;
  box-shadow: 0 6px 18px rgba(70, 100, 140, 0.12);
}

.auth-switch {
  color: #6b7280;
  font-size: 14px;
}

.auth-link {
  color: #7c3aed;
  border-bottom: 0;
  font-weight: 900;
}

.auth-link:hover {
  color: #6d28d9;
}

.auth-button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 8px;
  color: #2563eb;
  font-weight: 900;
  text-decoration: none;
}

.auth-button-link:hover {
  color: #1d4ed8;
  text-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
}

.login-message {
  min-height: 34px;
  border-top: 1px solid #eef2f7;
  background: rgba(249, 250, 251, 0.94);
  color: #64748b;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .login-screen {
    place-items: stretch;
    min-height: 100svh;
    padding: 0;
  }

  .login-card {
    grid-template-rows: minmax(0, 1fr) minmax(40px, auto);
    width: 100%;
    max-width: none;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    border: 0;
  }

  .login-window-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: max(28px, env(safe-area-inset-top)) 22px 20px;
  }

  .register-card .login-window-body {
    justify-content: flex-start;
    padding-top: max(22px, env(safe-area-inset-top));
  }

  .login-hero-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 22px;
  }

  .login-card h1,
  .login-brand {
    font-size: 32px;
  }

  .login-card p {
    max-width: 360px;
    margin-bottom: 18px;
    font-size: 15px;
  }

  .login-card input {
    min-height: 54px;
    font-size: 17px;
  }

  .login-submit {
    min-height: 58px;
    font-size: 19px;
  }

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

  .login-statusbar {
    min-height: 40px;
    padding: 5px 14px;
    font-size: 13px;
  }
}
