@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Unbounded;
  src: url("/fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Unbounded;
  src: url("/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f4f2ec;
  --chat: #fffdf9;
  --pane: #fffdf8;
  --control: #f2efe7;
  --hover: #eeeae0;
  --edge: #e5dfd2;
  --text: #20211c;
  --muted: #6d6d61;
  --blue: #214cc9;
  --action: #244fdb;
  --danger: #ab292f;
  --green: #147b55;
  --panel-width: clamp(258px, 25vw, 328px);
  --header-height: 68px;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 280px; margin: 0; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
svg { display: block; width: 19px; height: 19px; flex: none; }
p { margin: 0; }
.mobile-only, .scrim { display: none !important; }

.brand-mark {
  display: grid;
  flex: none;
  width: 42px;
  height: 42px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  padding: 9px;
  border: 1px solid #5875cc;
  border-radius: 13px;
  background: #293f78;
  box-shadow: inset 0 1px 1px #ffffff24, 0 4px 18px #102c802e;
}
.brand-mark i { background: #80abff; border-radius: 3px 3px 0 3px; }
.brand-mark i:nth-child(2) { margin: 1px 0 0 2px; border-radius: 3px; background: #cedaff; }
.brand-mark i:nth-child(3) { margin: 1px 2px 0 0; border-radius: 3px; background: #a4bcff; }
.brand-mark i:nth-child(4) { border-radius: 0 3px 3px 3px; background: #527cf8; }

.loading-screen {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 100svh;
  padding: 24px;
  gap: 16px;
  text-align: center;
  color: var(--muted);
}
.loading-screen p { max-width: 380px; }
.auth-shell {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(380px, 1.05fr);
  gap: 20px;
  max-width: 1440px;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(16px, 3vw, 40px);
}
.auth-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 62px);
  overflow: hidden;
  border: 1px solid #354cd3;
  border-radius: 26px;
  color: #fffdf8;
  background:
    radial-gradient(ellipse at 76% 36%, #69adff88, transparent 40%),
    linear-gradient(145deg, #2436a8, #3b61e6 58%, #283eba 100%);
}
.auth-brand::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  background-image: radial-gradient(#dae4ff 1px, transparent 1px);
  background-size: 20px 20px;
  content: "";
  mask-image: linear-gradient(115deg, transparent 26%, black, transparent 93%);
}
.auth-brand-top { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 800; }
.auth-brand-top .brand-mark { background: #102b7b55; border-color: #a9bdff80; }
.auth-art { position: absolute; z-index: -1; inset: 12% -6% 20% 8%; }
.art-orbit {
  position: absolute;
  inset: 8% 9% 7% 10%;
  border: 1px solid #c4d6ff4d;
  border-radius: 50%;
  transform: rotate(-31deg) scaleY(.72);
}
.art-orbit-inner { inset: 15% 16% 16% 18%; transform: rotate(32deg) scaleY(.68); }
.art-signal {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9%;
  width: 44%;
  aspect-ratio: 1;
  left: 32%;
  top: 50%;
  padding: 7%;
  transform: translateY(-50%) rotate(-12deg);
  border: 1px solid #c2d7ffd9;
  border-radius: 29%;
  background: linear-gradient(170deg, #cfeaff7a, #6aaaff6b 44%, #2e46b4b3);
  box-shadow: inset 0 0 26px #e1ecff46, 0 16px 65px #23339b88;
}
.art-signal i { width: 10%; height: 30%; background: #e6efff; border-radius: 12px; box-shadow: 0 0 20px #c9e3ffb0; }
.art-signal i:nth-child(2), .art-signal i:nth-child(4) { height: 57%; }
.art-signal i:nth-child(3) { height: 88%; }
.art-node { position: absolute; display: block; width: 8px; aspect-ratio: 1; border-radius: 50%; background: #f0f8ff; box-shadow: 0 0 20px 5px #a8e7ffae; }
.art-node-one { top: 36%; left: 16%; }
.art-node-two { top: 54%; right: 20%; }
.art-node-three { bottom: 27%; left: 27%; opacity: .6; }
.auth-brand-copy { text-shadow: 0 3px 25px #2236a450; }
.auth-brand-copy p:last-child { margin-top: 16px; line-height: 1.6; font-size: 17px; color: #e1eaff; }
.brand-title { font: 700 clamp(28px, 3.5vw, 61px)/1.14 Unbounded, Manrope, sans-serif; letter-spacing: -.085em; }
.brand-title span { color: #a9dfff; }
.auth-content { display: grid; align-content: center; justify-content: center; padding: 28px clamp(14px, 4vw, 62px); }
.auth-card { width: min(100%, 380px); }
.auth-local-brand { display: none; }
.auth-card h1 { margin: 0 0 10px; font-size: clamp(25px, 3vw, 39px); line-height: 1.16; letter-spacing: -.05em; }
.auth-card > p { color: var(--muted); line-height: 1.6; }
.auth-card .form-grid { margin-top: 27px; }
.auth-switch { margin-top: 23px; color: var(--muted); font-size: 14px; }
.auth-switch .link-button { padding-inline: 3px; }
.auth-card > .feature-icon { margin-bottom: 20px; }
#status-reload { margin: 24px 0 12px; }
#status-logout { display: block; }

.icon-button, .button, .link-button, .nav-button, .room-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  text-align: left;
  background: transparent;
}
.icon-button { padding: 0; width: 40px; min-height: 40px; flex: none; color: var(--muted); }
.icon-button:hover:not(:disabled), .nav-button:hover:not(:disabled), .room-item:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.icon-small { width: 30px; min-height: 30px; }
.icon-small svg { width: 16px; height: 16px; }
.button { padding: 10px 15px; min-height: 42px; border: 1px solid var(--edge); background: var(--control); font-size: 14px; }
.button:hover:not(:disabled) { background: var(--hover); }
.button-primary { border-color: var(--action); background: var(--action); color: white; justify-content: center; }
.button-primary:hover:not(:disabled) { background: #153bb2; }
.button-small { min-height: 35px; padding: 7px 11px; font-size: 12px; }
.button-small svg { width: 16px; height: 16px; }
.link-button { padding: 3px 0; color: var(--blue); }
.link-button:hover { text-decoration: underline; }
.form-grid { display: grid; gap: 15px; }
.form-grid > label { display: grid; gap: 7px; color: var(--text); font-size: 13px; font-weight: 700; }
.form-grid > .button { margin-top: 4px; justify-self: stretch; }
input, select, textarea {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--edge);
  border-radius: 9px;
  padding: 11px 13px;
  background: var(--control);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.form-error { margin: 0; color: var(--danger) !important; font-size: 13px; overflow-wrap: anywhere; }

.workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.global-header {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  min-height: var(--header-height);
  padding: max(9px, env(safe-area-inset-top)) 18px 9px;
  border-bottom: 1px solid var(--edge);
  background: var(--pane);
}
.global-context { position: relative; display: flex; align-items: center; gap: 15px; min-width: 0; }
.module-launcher {
  position: fixed;
  inset: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  z-index: 60;
  pointer-events: none;
}
.module-dismiss { position: fixed; inset: 0; pointer-events: auto; }
.module-trigger {
  position: absolute;
  left: var(--launcher-x, 14px);
  top: var(--launcher-y, calc(100% - 115px));
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--launcher-size, 52px);
  height: var(--launcher-size, 52px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--action);
  box-shadow: 0 5px 16px #193a9d45, 0 1px 4px #14204126;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  cursor: grab;
  transition: background .16s;
}
.module-trigger:hover { background: #163bb6; }
.module-trigger[aria-expanded="true"] { background: #1839a4; }
.module-launcher[data-dragging] .module-trigger { cursor: grabbing; transition: none; }
.module-trigger svg { width: 55%; height: 55%; pointer-events: none; transition: transform .16s; }
.module-trigger[aria-expanded="true"] svg { transform: rotate(45deg); }
.global-brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; color: #17191e; font: 800 19px/1 Manrope, sans-serif; letter-spacing: -.055em; }
.global-brand b, .auth-brand-top b { color: #316cf4; font-weight: inherit; }
.site-brand-mark { flex: none; object-fit: contain; }
.global-divider { width: 1px; height: 20px; flex: none; background: var(--edge); }
.global-module { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.module-menu {
  position: absolute;
  z-index: 1;
  top: var(--menu-y, 14px);
  left: var(--menu-x, 76px);
  display: flex;
  flex-direction: column;
  width: var(--menu-width, 270px);
  height: var(--menu-height, auto);
  max-height: var(--menu-max-height, 70dvh);
  overflow: hidden;
  padding: 8px 8px 30px;
  border: 1px solid var(--edge);
  border-radius: 19px 19px 0 19px;
  background: var(--pane);
  box-shadow: 0 12px 42px #2b2b2324, 0 2px 6px #2b2b230d;
  font-size: var(--menu-font, 14px);
  pointer-events: auto;
  animation: module-appear .19s cubic-bezier(.2,.75,.25,1) both;
}
.module-menu[data-side="right"] { transform-origin: left center; }
.module-menu[data-side="left"] { transform-origin: right center; }
.module-menu[data-side="above"] { transform-origin: center bottom; }
.module-menu[data-side="below"] { transform-origin: center top; }
@keyframes module-appear { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.module-preview { flex: none; margin: 0; padding: 7px 10px; color: var(--muted); font-size: .84em; }
.module-items { display: grid; flex: 1 1 auto; align-content: start; gap: 1px; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.module-item {
  min-width: 0;
  width: 100%;
  min-height: 2.7em;
  padding: .45em .75em;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-weight: 750;
  text-align: left;
}
.module-item:is(:hover, :focus-visible) { background: var(--hover); }
.module-item[aria-current="page"] { border-color: #dfe6fc; background: #edf1fd; color: var(--blue); }
.module-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 75%, var(--edge));
  cursor: nwse-resize;
  touch-action: none;
  user-select: none;
}
.module-resize::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  pointer-events: none;
}
.module-resize:is(:hover, :focus-visible), .module-menu[data-resizing] .module-resize {
  color: var(--blue);
}
.module-resize:focus-visible { outline-offset: -4px; }
.widget-shelf { display: flex; flex: none; align-items: center; gap: 9px; margin: 6px 4px 0; padding: 7px 4px 0; border-top: 1px solid var(--edge); }
.widget-icon { display: grid; width: 35px; height: 35px; place-items: center; padding: 0; border: 1px solid #d7e2ff; border-radius: 50%; color: var(--blue); background: #edf1fd; touch-action: none; user-select: none; }
.widget-icon:hover { background: #e2eaff; }
.widget-icon[data-docked="true"] { border-color: transparent; color: white; background: var(--action); }
.widget-icon[data-docked="true"] { cursor: grab; }
.widget-drag-preview { position: fixed; z-index: 72; display: grid; width: 52px; height: 52px; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 5px 16px #193a9d45; pointer-events: none; }
.widget-drag-preview svg { width: 27px; height: 27px; }
.module-trigger[data-widget-drop] { outline: 3px solid #8dafff; outline-offset: 4px; background: #163bb6; }
.floating-chat-launcher { z-index: 58; }
.widget-drag-preview, .widget-icon:is(:active, [data-grabbed]), .floating-chat-launcher .module-trigger[data-grabbed] { border-color: transparent; color: white; background: #18338d; cursor: grabbing; transition: none; }
.floating-chat-launcher .module-trigger[aria-expanded="true"] svg { transform: none; }
.floating-chat-launcher .module-trigger[data-in-call="true"]::after { position: absolute; top: 2px; right: 3px; width: 12px; height: 12px; border: 2px solid var(--pane); border-radius: 50%; background: #2aa971; content: ""; }
.floating-chat-menu { padding: 0 0 18px; }
.floating-chat-heading { display: flex; flex: none; align-items: center; gap: 8px; min-height: 48px; padding: 6px 9px 6px 12px; }
.floating-chat-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.floating-mode-slot { flex: none; }
.floating-room-slot { display: flex; flex: 1; min-height: 0; overflow: hidden; border-top: 1px solid var(--edge); }
.floating-room-slot .message-content { padding: 9px; }
.floating-room-slot .composer-wrap { padding: 7px; }
.floating-room-slot .message-row { max-width: 100%; }
.floating-room-slot .chat-intro { margin: auto; padding: 13px; }
.floating-room-slot .chat-intro h2 { font-size: 16px; }
.floating-room-slot .chat-intro p { font-size: 13px; }
.global-account { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; }
.global-profile { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 3px 8px 3px 3px; border: 1px solid transparent; border-radius: 28px; background: transparent; font-size: 13px; font-weight: 800; }
.global-profile:hover, .global-profile[aria-current="page"] { background: var(--control); border-color: var(--edge); }
.global-profile #self-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.guest-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
#invite-exit { margin-top: 17px; }
.room-invite-action { margin-top: 12px; }
.invite-list-note { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.invite-create { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.invite-create label { flex: 1 1 160px; display: grid; gap: 6px; color: var(--text); font-size: 13px; font-weight: 700; }
.invite-link-list { display: grid; gap: 8px; margin-top: 12px; }
.invite-link-row { min-width: 0; display: grid; gap: 7px; padding: 10px; border: 1px solid var(--edge); border-radius: 11px; background: var(--page); }
.invite-link-row input { width: 100%; min-width: 0; }
.invite-link-row small { color: var(--muted); }
.invite-link-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.invite-guests { border-top: 1px solid var(--edge); margin-top: 2px; padding-top: 7px; font-size: 13px; }
.invite-guests summary { width: fit-content; cursor: pointer; }
.invite-guests ul { display: grid; gap: 6px; list-style: none; margin: 7px 0 0; padding: 0; }
.invite-guests li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.invite-guests li span { overflow-wrap: anywhere; }
.module-view { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.workspace > :is(.messenger, .module-view) { grid-area: 2 / 1; }
#accounting-view { overflow: hidden; background: #f3f6fb; }
.accounting-frame { display: block; width: 100%; height: 100%; border: 0; }
.module-status { margin: clamp(18px, 4vw, 50px); color: var(--muted); font-size: 14px; }
.module-status .button { margin-top: 14px; }
.messenger { position: relative; display: grid; grid-template-columns: var(--panel-width) minmax(0, 1fr); min-width: 0; min-height: 0; width: 100%; }
.sidebar, .members-panel, .chat { min-width: 0; min-height: 0; }
.sidebar { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-right: 1px solid var(--edge); background: var(--page); }
.sidebar-brand { display: grid; gap: 17px; padding: 22px clamp(14px, 2.3vw, 32px) 10px; }
.sidebar-heading { display: flex; align-items: center; gap: 4px; }
.sidebar-heading h2 { flex: 1; margin: 0; font-size: clamp(25px, 2.5vw, 36px); font-weight: 800; line-height: 1.08; letter-spacing: -.075em; }
.new-room { width: 36px; min-height: 36px; border: 1px solid #d4dfff; border-radius: 50%; background: #e7ecfb; color: var(--blue); }
.new-room:hover:not(:disabled), .new-room[aria-expanded="true"] { background: #d9e4ff; color: var(--blue); }
.chat-sections { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px; padding: 3px; border: 1px solid var(--edge); border-radius: 12px; background: var(--control); }
.chat-sections button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 4px 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.2; }
.chat-sections button:hover { color: var(--text); }
.chat-sections button[aria-pressed="true"] { border-color: #d7e2ff; background: #e6ecfc; color: #163ca5; }
.chat-sections .unread-dot { margin: 0; }
.room-search { display: flex; min-width: 0; align-items: center; gap: 6px; padding-inline: 11px; border: 1px solid var(--edge); border-radius: 10px; color: var(--muted); background: var(--pane); }
.room-search:focus-within { border-color: var(--blue); }
.room-search svg { width: 17px; height: 17px; }
.room-search input { padding: 8px 0; border: 0; background: transparent; font-size: 13px; }
.sidebar-body { overflow-y: auto; padding: 10px clamp(14px, 2.3vw, 32px); scrollbar-width: thin; }
.room-section + .room-section { margin-top: 18px; }
.room-section h2 { margin: 0 7px 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.room-section > small { display: block; padding: 6px 9px; color: var(--muted); font-size: 12px; }
.room-filter-empty { padding: 7px; color: var(--muted); font-size: 13px; }
.room-item { display: flex; width: 100%; min-height: 45px; justify-content: flex-start; gap: 9px; padding: 5px 8px; color: var(--text); font-size: 13px; }
.room-item > span:first-child:not(.avatar) { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 8px; background: #e9e5db; color: #605c4e; }
.room-item .avatar { width: 28px; height: 28px; font-size: 10px; }
.room-item svg { width: 15px; height: 15px; }
.room-item[aria-current="true"] { background: #e6ecfc; color: #163ca5; }
.room-item[aria-current="true"] > span:first-child:not(.avatar) { background: #d7e2ff; color: var(--blue); }
.room-item .room-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-indicator { min-width: max-content; display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--green); font-size: 11px; }
.room-indicator svg { width: 12px; height: 12px; }
.unread-dot { width: 7px; aspect-ratio: 1; flex: none; margin-left: auto; border-radius: 100%; background: var(--blue); }
.sidebar-bottom { padding: 8px clamp(18px, 2.6vw, 36px) max(12px, env(safe-area-inset-bottom)); }
.connection { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.connection i { display: block; width: 6px; height: 6px; border-radius: 100%; background: #ba7929; }
.workspace[data-online="true"] .connection i { background: var(--green); }
.avatar {
  --avatar-color: #abbeff;
  --avatar-bg: #263d73;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--avatar-color), transparent 77%);
  border-radius: 50%;
  color: var(--avatar-color);
  background: var(--avatar-bg);
  font-weight: 800;
  font-size: 12px;
}
.user-meta { display: grid; flex: 1; min-width: 0; gap: 2px; }
.user-meta strong, .user-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta strong { font-size: 13px; }
.user-meta small { font-size: 11px; color: var(--muted); }

.chat { display: flex; flex-direction: column; overflow: hidden; background: var(--chat); }
.room-content { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.chat-header {
  min-height: 83px;
  display: flex;
  align-items: center;
  gap: 13px;
  flex: none;
  padding: 14px clamp(16px, 3.5vw, 48px);
  border-bottom: 1px solid var(--edge);
  background: var(--chat);
}
.room-heading-icon, .feature-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dce4fc;
  border-radius: 13px;
  background: #edf0fb;
  color: var(--blue);
}
.feature-icon { width: 52px; height: 52px; border-radius: 16px; }
.feature-icon svg { width: 25px; height: 25px; }
.chat-heading { min-width: 0; flex: 1; }
.chat-heading h1, .chat-heading p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.chat-heading h1 { margin-bottom: 3px; font-size: clamp(18px, 2.2vw, 25px); font-weight: 800; letter-spacing: -.06em; }
.chat-heading p { color: var(--muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.main-mode-slot:empty { display: none; }
.chat-header[data-view="call"] { justify-content: space-between; min-height: 51px; padding-block: 6px; }
.chat-modes { display: flex; align-items: center; gap: 5px; }
.button-call { min-height: 37px; padding: 7px 11px; border-color: #d8e1f7; border-radius: 40px; color: var(--blue); background: #edf1fc; font-size: 12px; }
.button-call:hover:not(:disabled) { background: #e2eafd; }
.button-call svg { width: 15px; height: 15px; }
.button-call[aria-pressed="false"] { color: var(--muted); border-color: var(--edge); background: var(--pane); }
#start-call:not([aria-pressed]) { color: #fff; border-color: var(--action); background: var(--action); }
#start-call:not([aria-pressed]):hover { background: #1839a4; }
.chat-placeholder {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  padding: 20px;
  overflow: auto;
  background:
    radial-gradient(ellipse at 50% 35%, #f0eee4, transparent 60%),
    var(--chat);
}
.placeholder-content { display: grid; justify-items: center; width: min(420px, 100%); text-align: center; }
.placeholder-content .feature-icon { margin-bottom: 15px; }
.placeholder-content h2, .chat-intro h2 { margin: 0 0 5px; font-size: 22px; line-height: 1.24; letter-spacing: -.04em; overflow-wrap: anywhere; }
.placeholder-content p, .chat-intro p { color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.placeholder-content .button { margin-top: 18px; }
.message-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; background: radial-gradient(#ebe7dc 1px, transparent 1px) 0 0 / 23px 23px, var(--chat); }
.message-content { display: flex; flex-direction: column; min-height: 100%; width: 100%; padding: 22px clamp(16px, 2vw, 28px); }
.history-button { align-self: center; margin: 0 0 15px; }
.chat-intro { max-width: 520px; margin: auto; padding: 27px; border: 1px solid var(--edge); border-radius: 22px; background: var(--pane); text-align: left; box-shadow: 0 10px 28px #514b3612; }
.chat-intro:first-of-type { align-self: flex-start; }
.chat-intro .feature-icon { margin-bottom: 12px; }
.messages { display: flex; flex-direction: column; }
.messages:not(:empty) { margin-top: 10px; }
.day-marker { align-self: center; width: fit-content; margin: 5px 0 14px; padding: 4px 10px; border: 1px solid var(--edge); border-radius: 20px; color: var(--muted); background: var(--pane); font-size: 11px; font-weight: 800; }
.message-row + .day-marker { margin-top: 14px; }
.message-row { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0 2px; }
.message-row.own-message { flex-direction: row-reverse; }
.message-bubble { min-width: 0; max-width: min(78%, 640px); padding: 8px 12px; border: 1px solid var(--edge); border-radius: 5px 15px 15px 15px; background: var(--pane); }
.own-message .message-bubble { border-color: #dce5fc; border-radius: 15px 5px 15px 15px; background: #e9efff; }
.continued-message { padding-top: 2px; }
.continued-message > .avatar { visibility: hidden; }
.continued-message .message-meta strong { display: none; }
.continued-message .message-bubble { border-radius: 13px; }
.message-row .message-more { align-self: center; width: 30px; min-height: 30px; margin-inline: -5px; opacity: 0; }
.message-more svg { width: 17px; height: 17px; }
.message-row:is(:hover, :focus-within) .message-more { opacity: 1; }
.message-row.message-highlight .message-bubble { outline: 2px solid #98b0f4; outline-offset: 2px; }
@media (hover: none) { .message-row .message-more { opacity: 1; } }
.message-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; color: var(--muted); font-size: 10px; }
.message-meta strong { color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.message-row p { margin: 3px 0 0; color: var(--text); font-size: 14px; line-height: 1.56; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-edited, .forwarded-note { color: var(--muted); font-size: 11px; }
.forwarded-note { display: block; margin-block: 4px; }
.message-quote {
  display: grid; gap: 2px; width: 100%; min-width: 0; padding: 5px 8px; margin-block: 4px;
  border: 0; border-inline-start: 3px solid #8ca9f3; border-radius: 4px; background: #4974e512; text-align: start;
  color: var(--muted); font-size: 11px;
}
.message-quote strong { color: var(--blue); }
.message-quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.message-quote:hover { background: #4974e524; }
.message-attachments { display: grid; gap: 6px; margin-block: 5px 2px; min-width: 0; }
.message-gallery { display: grid; width: min(390px, 58vw); max-width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; overflow: hidden; border-radius: 9px; }
.message-gallery.single-photo { width: min(340px, 58vw); grid-template-columns: minmax(0, 1fr); }
.gallery-photo { position: relative; display: block; min-width: 0; padding: 0; aspect-ratio: 4 / 3; border: 0; background: var(--control); }
.gallery-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-photo:focus-visible { z-index: 1; outline-offset: -4px; }
.message-file { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; background: #4974e512; color: var(--text); text-decoration: none; }
.message-file:hover { background: #4974e524; }
.message-file > span:last-child { min-width: 0; }
.message-file strong, .message-file small { display: block; }
.message-file strong { font-size: 12px; overflow-wrap: anywhere; }
.message-file small { color: var(--muted); font-size: 11px; }
.message-file svg, .draft-file svg { width: 17px; height: 17px; color: var(--blue); }
.chat-photo-view { display: block; max-width: 100%; width: 100%; max-height: 65dvh; object-fit: contain; border-radius: 8px; }
.chat-photo-controls { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 12px; }
.video-note { position: relative; display: grid; place-items: center; width: clamp(116px, 25vw, 200px); aspect-ratio: 1; margin-top: 7px; overflow: hidden; border: 1px solid #354b7c; border-radius: 50%; background: #1c2b50; }
.video-note video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-note .icon-button { position: absolute; z-index: 1; color: white; border: 1px solid #ffffff55; border-radius: 50%; background: #0e172cbb; }
.video-note .icon-button:hover { background: #243a76; }
.video-note[data-playing="true"]:not(:hover):not(:focus-within) .icon-button { opacity: .45; }
.video-note .video-time { position: absolute; z-index: 1; bottom: 12%; padding: 3px 7px; border-radius: 99px; background: #0e172cbb; color: white; font-size: 10px; pointer-events: none; }
.composer-wrap { width: 100%; padding: 11px clamp(16px, 2vw, 28px) max(17px, env(safe-area-inset-bottom)); }
.composer-wrap .form-error { margin: 0 0 6px; }
.composer { display: flex; align-items: flex-end; gap: 6px; padding: 5px; min-height: 49px; border: 1px solid var(--edge); border-radius: 15px; background: var(--control); }
.composer:focus-within { border-color: #a8bbf3; }
.composer textarea { display: block; resize: none; min-height: 39px; max-height: 126px; overflow-y: hidden; scrollbar-width: thin; padding: 9px 3px; background: transparent; border: 0; font-size: 14px; line-height: 22px; }
.composer textarea:focus-visible { box-shadow: none; }
.composer .icon-button { width: 39px; min-height: 39px; }
.composer .send-button { display: grid; place-items: center; flex: none; padding: 0; background: var(--action); color: white; touch-action: manipulation; }
.send-button svg { display: block; width: 19px; height: 19px; }
.send-button:hover:not([aria-disabled="true"]) { background: #183ead; color: white; }
.send-button[aria-disabled="true"] { opacity: .53; }
.compose-extra { display: grid; gap: 6px; margin-bottom: 6px; max-height: 26dvh; overflow: auto; }
.draft-reply, .draft-file { display: flex; min-width: 0; align-items: center; gap: 7px; }
.draft-reply .message-quote { min-width: 0; margin: 0; }
.draft-files { display: flex; flex-wrap: wrap; gap: 6px; }
.draft-file { padding: 4px 6px; max-width: min(100%, 250px); background: var(--control); border: 1px solid var(--edge); border-radius: 8px; }
.draft-file > div { min-width: 0; }
.draft-file strong, .draft-file small { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-file small, .draft-processing { color: var(--muted); }
.draft-processing { margin: 2px 0; font-size: 12px; }
.draft-file img { width: 30px; height: 30px; object-fit: cover; border-radius: 5px; }
.draft-reply .icon-button, .draft-file .icon-button { width: 30px; min-height: 30px; }
.chat-context {
  position: fixed; z-index: 75; display: grid; min-width: 176px; max-width: calc(100vw - 16px); padding: 5px;
  border: 1px solid var(--edge); border-radius: 11px; background: var(--pane); box-shadow: 0 8px 28px #28282330;
}
.chat-context button { text-align: start; padding: 7px 10px; min-height: 34px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; }
.chat-context button:is(:hover, :focus-visible) { background: var(--hover); }
.chat-context .chat-menu-danger { color: var(--danger); }
.chat-context .chat-menu-with-hint { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; }
.chat-menu-with-hint > span:first-child { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--blue); background: #e6ecfc; }
.chat-menu-with-hint svg { width: 16px; height: 16px; }
.chat-menu-copy { display: grid; gap: 2px; }
.chat-menu-copy small { color: var(--muted); font-size: 11px; }
.scheduled-item { display: grid; justify-items: start; gap: 5px; padding-block: 10px; border-bottom: 1px solid var(--edge); }
.scheduled-item p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.video-button { color: var(--blue); }

.members-panel { position: absolute; inset: 11px 14px 14px auto; z-index: 12; display: none; flex-direction: column; width: min(304px, 100% - 32px); padding: 4px; border: 1px solid var(--edge); border-radius: 18px; background: var(--pane); box-shadow: 0 12px 42px #2b2b2324; }
.workspace[data-members-open="true"] .members-panel { display: flex; }
.members-heading { display: flex; justify-content: space-between; align-items: center; min-height: 61px; padding: 9px 10px 10px 13px; border-bottom: 1px solid var(--edge); }
.members-heading h2 { margin: 0 0 3px; font-size: 14px; }
.members-heading p { color: var(--muted); font-size: 11px; }
.members-list { padding: 9px 8px; overflow: auto; scrollbar-width: thin; }
.member-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px; }
button.member-row { width: 100%; border: 0; border-radius: 9px; text-align: left; background: none; }
button.member-row:hover { background: var(--hover); }
.member-row .avatar { width: 31px; height: 31px; font-size: 11px; }
.member-row .active-call, .voice-roster .active-call { color: var(--green); font-weight: 800; }
.members-panel > .button { align-self: flex-start; margin: 1px 12px 12px; }

.call-bar { grid-area: 1 / 2; display: flex; align-items: center; gap: 6px; width: max-content; max-width: min(40vw, 500px); padding: 4px 5px 4px 9px; border: 1px solid #d6eadb; border-radius: 16px; background: #e8f4e8; }
.call-indicator { display: grid; width: 27px; height: 27px; flex: none; place-items: center; border-radius: 50%; color: #177245; background: #d6ecda; }
.call-indicator svg { width: 13px; height: 13px; }
.call-summary { display: grid; flex: 1; min-width: 0; gap: 1px; padding: 3px; border: 0; border-radius: 6px; color: var(--text); background: transparent; font-size: 12px; text-align: left; }
.call-summary:hover { background: #dceedd; }
.call-summary strong, .call-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-summary > span { color: #426450; font-size: 10px; }
.call-duration { flex: none; padding: 3px 2px; color: var(--green); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.call-controls { display: flex; flex: none; align-items: center; gap: 3px; }
.call-controls .icon-button { width: 34px; min-height: 34px; border-radius: 10px; }
.call-controls .icon-button[aria-pressed="true"] { color: #176541; background: #d0ead9; }
.call-controls #mute-call[aria-pressed="true"] { color: #ad2634; background: #f4dfdf; }
.danger-button { color: #a62834; background: #f7e3e4; }
.danger-button:hover:not(:disabled) { color: white; background: #a82736; }
.room-call { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; padding: clamp(9px, 2vw, 24px); background: var(--chat); }
.call-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); align-content: start; gap: 10px; }
.call-grid:empty, .call-feature:empty { display: none; }
.call-tile { display: grid; position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 9; max-height: 50dvh; padding: 0; overflow: hidden; border: 1px solid #363d4a; border-radius: 13px; background: #191d25; color: #fff; }
.call-tile video { width: 100%; height: 100%; min-height: 0; object-fit: contain; pointer-events: none; }
.call-tile-label { position: absolute; bottom: 7px; left: 7px; display: flex; align-items: center; gap: 5px; max-width: calc(100% - 14px); padding: 4px 7px; overflow: hidden; border-radius: 7px; background: #151925d9; color: white; font-size: 12px; }
.call-tile-label span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-tile-label svg { width: 14px; height: 14px; }
.call-stage-status { padding: 9px 0; color: var(--muted); font-size: 13px; }
.room-call-footer { display: grid; gap: 9px; margin-top: auto; }
.room-call-footer > .button { justify-self: start; }
.voice-roster { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; text-align: left; }
.voice-roster:empty { display: none; }
.voice-roster li { display: flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 8px 4px 4px; border-radius: 10px; background: var(--control); font-size: 13px; }
.voice-roster strong { overflow-wrap: anywhere; }
.voice-roster .avatar { flex: none; width: 29px; height: 29px; font-size: 10px; }
.voice-roster small { margin-left: auto; color: var(--muted); }
.floating-room-slot .room-call { padding: 8px; }
.floating-room-slot .call-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.call-fullscreen { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; background: #171b23; }
.call-fullscreen[open] { display: flex; }
.call-fullscreen-tools { position: absolute; z-index: 2; top: max(12px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 6px; }
.call-fullscreen-tools .call-controls { padding: 3px; border-radius: 12px; background: #e8f4e8; }
.call-fullscreen-tools > .icon-button { color: #fff; background: #292e3a; }
.call-fullscreen .room-call { gap: 8px; padding: max(9px, env(safe-area-inset-top)) max(9px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); background: inherit; }
.call-fullscreen .call-feature { display: flex; flex: 1; min-height: 120px; }
.call-fullscreen .call-feature .call-tile { height: 100%; max-height: none; aspect-ratio: auto; cursor: default; }
.call-fullscreen .call-grid { display: flex; flex: none; overflow-x: auto; padding: 3px; }
.call-fullscreen .call-grid:empty { display: none; }
.call-fullscreen .call-grid .call-tile { flex: 0 0 clamp(115px, 19vw, 175px); }
.call-fullscreen .voice-roster { max-height: 20dvh; overflow-y: auto; }
.call-fullscreen .voice-roster li, .call-fullscreen .room-call-footer > .button { color: var(--text); }
.call-fullscreen .call-stage-status { color: #dadfeb; }

.dialog {
  width: min(100% - 28px, 555px);
  max-height: min(calc(100dvh - 26px), 780px);
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 18px;
  overflow: hidden;
  color: var(--text);
  background: var(--pane);
  box-shadow: 0 22px 95px #3c37295c;
}
.dialog[open] { display: flex; flex-direction: column; }
.dialog::backdrop { background: #272b2c59; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 17px; border-bottom: 1px solid var(--edge); }
.dialog-heading h2 { margin: 4px 0 1px; font-size: 19px; line-height: 1.23; letter-spacing: -.035em; }
.dialog-heading p { color: var(--muted); margin-top: 6px; font-size: 12px; line-height: 1.5; }
.dialog-heading .icon-button { min-height: 34px; width: 34px; }
.dialog-body { min-height: 0; overflow: auto; padding: 16px 17px 18px; scrollbar-width: thin; }
.member-picker { display: grid; gap: 6px; max-height: 230px; overflow-y: auto; border: 1px solid var(--edge); border-radius: 10px; margin: 0; padding: 9px; }
.member-picker legend { padding: 0 5px; color: var(--muted); font-size: 12px; }
.member-picker label { display: flex; align-items: center; gap: 8px; padding: 5px 3px; font-size: 13px; }
.member-picker label input { width: 17px; height: 17px; accent-color: var(--action); flex: none; }
.room-form-note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.direct-contacts { display: grid; gap: 3px; margin-top: 10px; }
.direct-contacts .member-row { width: 100%; border-radius: 10px; }
.direct-contacts strong { min-width: 0; overflow-wrap: anywhere; }
.admin-users { display: grid; gap: 8px; margin-top: 8px; }
.loading-label { color: var(--muted); font-size: 12px; }
.admin-user { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: center; padding: 9px; background: var(--control); border: 1px solid var(--edge); border-radius: 10px; }
.admin-user > div:first-child { min-width: 0; }
.admin-user strong, .admin-user small { display: block; overflow-wrap: anywhere; }
.admin-user strong { font-size: 13px; }
.admin-user small, .admin-user span { color: var(--muted); font-size: 11px; }
.admin-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.admin-actions .button-primary { border-color: var(--action); }
.admin-actions select { width: auto; min-height: 35px; padding: 5px 7px; font-size: 12px; }
.admin-accounting { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 3px 7px; border-radius: 7px; background: var(--pane); color: var(--text); font-size: 12px; font-weight: 700; }
.admin-accounting input { width: 15px; min-height: 15px; flex: none; accent-color: var(--action); }
.video-dialog { display: grid; justify-items: center; gap: 12px; }
.camera-preview { display: grid; place-items: center; position: relative; width: min(240px, 90%); aspect-ratio: 1; border-radius: 50%; border: 1px solid #dbe4fa; background: #e2eafc; overflow: hidden; }
.camera-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera-preview > span { color: var(--blue); }
.camera-preview > span svg { width: 32px; height: 32px; }
.camera-preview .timer { position: absolute; bottom: 10%; padding: 4px 8px; border-radius: 99px; background: #131625c9; color: white; font-size: 11px; }
.record-actions { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.notice { display: flex; align-items: center; gap: 10px; position: fixed; z-index: 45; right: 17px; bottom: max(17px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 34px); padding: 10px 12px; border: 1px solid var(--edge); border-radius: 13px; background: var(--pane); box-shadow: 0 6px 28px #3b352b32; color: var(--text); font-size: 13px; }
.notice span { overflow-wrap: anywhere; }

.workspace[data-members-open="true"] .messenger > .scrim { display: block !important; }
.scrim { position: absolute; z-index: 10; inset: 0; border: 0; width: 100%; height: 100%; background: #292c2a36; }
@media (max-width: 995px) {
  .global-context { gap: 10px; }
  .global-header { grid-template-columns: minmax(0, 1fr) auto; column-gap: 9px; row-gap: 6px; }
  .global-account { grid-area: 1 / 2; }
  .call-bar { grid-area: 2 / 1 / auto / -1; width: 100%; max-width: none; }
}
@media (max-width: 760px) {
  .global-profile { padding-right: 3px; }
  .global-profile #self-name { display: none; }
}
@media (max-width: 840px) {
  .auth-shell { grid-template-columns: minmax(260px, .9fr) minmax(300px, 1fr); gap: 8px; }
  .auth-brand { min-height: 580px; }
}
@media (max-width: 640px) {
  .mobile-only { display: inline-flex !important; }
  .auth-shell { display: grid; grid-template-columns: 1fr; min-height: 100svh; padding: 0; }
  .auth-brand { display: none; }
  .auth-content { align-content: center; justify-content: stretch; min-width: 0; padding: 30px 24px max(34px, env(safe-area-inset-bottom)); background: radial-gradient(ellipse at 8% 2%, #e0e7fc, transparent 55%); }
  .auth-card { margin-inline: auto; }
  .auth-local-brand { display: flex; gap: 9px; align-items: center; margin-bottom: 27px; }
  .auth-local-brand strong { display: block; font: 650 15px/1.2 Unbounded, Manrope, sans-serif; }
  .auth-local-brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
  .auth-card h1 { font-size: 29px; }
  .auth-card .form-grid { margin-top: 20px; }
  .form-grid input, .form-grid select, .composer textarea { font-size: 16px; }
  .workspace { height: var(--visual-viewport-height, 100dvh); }
  .global-header { min-height: 58px; padding: max(7px, env(safe-area-inset-top)) 10px 7px; }
  .global-context { gap: 9px; }
  .global-brand { font-size: 13px; }
  .global-module { font-size: 11px; }
  .global-divider { height: 16px; }
  .global-account { gap: 0; }
  .global-account > .icon-button { width: 31px; min-height: 35px; }
  .global-account > .icon-button svg { width: 17px; height: 17px; }
  .global-profile .avatar { width: 33px; height: 33px; }
  .messenger { grid-template-columns: minmax(0, 1fr); }
  .workspace .sidebar { display: none; position: absolute; z-index: 12; inset: 0 auto 0 0; width: min(330px, calc(100% - 30px)); border-radius: 0 16px 16px 0; box-shadow: 10px 0 32px #3b352b32; }
  .workspace[data-nav-open="true"] .messenger > .scrim { display: block !important; }
  .workspace[data-nav-open="true"] .sidebar { display: grid; }
  .workspace[data-members-open="true"] .members-panel { inset: 7px 7px 7px auto; width: min(292px, calc(100% - 25px)); }
  .sidebar-brand { padding: 13px 13px 8px; }
  .sidebar-body { padding: 8px 13px; }
  .room-search input { font-size: 16px; }
  .chat-sections button { min-height: 42px; }
  .dialog-body > input[type="search"] { font-size: 16px; }
  .room-item { min-height: 46px; }
  .chat-header { min-height: 57px; gap: 5px; padding: 6px 7px; }
  .header-actions { gap: 1px; }
  .room-heading-icon { display: none; }
  .composer-wrap { padding: 8px 7px max(9px, env(safe-area-inset-bottom)); }
  .message-content { padding: 14px 9px; }
  .chat-heading h1 { font-size: 17px; }
  .button-call { padding-inline: 8px; }
  .call-bar { padding-inline: 7px; }
  .dialog-body { padding-inline: 12px; }
  .admin-user { grid-template-columns: 1fr; }
  .admin-actions { justify-content: flex-start; }
}
@media (max-width: 360px) {
  .call-indicator { display: none; }
  .button-call { min-width: 36px; }
  .auth-content { padding-inline: 18px; }
  .global-divider { display: none; }
  .global-context { gap: 7px; }
  .global-brand { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .module-trigger, .module-trigger svg { transition: none; }
  .module-menu { animation: none; }
}
