/* meet405 — стили, вырезанные из app.css chat405 по СЕЛЕКТОРАМ.
 *
 * ⚑ Оставлены только правила, чьи классы действительно встречаются в разметке и
 * коде этого приложения (плюс сброс, токены темы, шрифты и анимации). Из 5664
 * строк мессенджера здесь осталась примерно десятая часть: чат-лист, лента
 * сообщений, композер, стикеры, админка и правая колонка сюда не приехали, и их
 * стили тоже.
 *
 * ⛔ Не дописывать сюда правила «на будущее»: файл собран инструментом
 * (ops/extract-css.py в chat405-переезде) и любое расхождение с разметкой
 * должно быть видно как отсутствующий стиль, а не как мёртвый селектор.
 */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden; /* the app manages its own internal scroll regions */
}
h1, p, ul, li, form { margin: 0; padding: 0; list-style: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
input, textarea {
  font: inherit;
  color: inherit;
}
img, svg { display: block; }
a { color: inherit; }
:root {
  color-scheme: dark;

  --font-sans: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif; /* tdesktop ships Open Sans — the text texture is half of why it looked foreign */

  --bg-app: #0e1621;
  --bg-sidebar: #17212b;
  --bg-thread: #1c2b26;
  /* Обои чата: четыре цвета из ConstructDefault(), приглушённые под ночь —
     ярко-зелёная стена под тёмными пузырями читалась бы как чужая. */
  --chat-wallpaper:
    radial-gradient(78% 78% at 18% 12%, #233a30 0%, rgba(35, 58, 48, 0) 72%),
    radial-gradient(78% 78% at 84% 16%, #1d3b31 0%, rgba(29, 59, 49, 0) 72%),
    radial-gradient(80% 80% at 12% 88%, #223526 0%, rgba(34, 53, 38, 0) 74%),
    radial-gradient(86% 86% at 88% 84%, #1a2f28 0%, rgba(26, 47, 40, 0) 74%);
  --chat-wallpaper-pattern: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22260%22%20height%3D%22260%22%20viewBox%3D%220%200%20260%20260%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20opacity%3D%220.06%22%3E%3Ccircle%20cx%3D%2238%22%20cy%3D%2242%22%20r%3D%2219%22%2F%3E%3Ccircle%20cx%3D%22232%22%20cy%3D%2270%22%20r%3D%2211%22%2F%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%22166%22%20r%3D%2227%22%2F%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%22228%22%20r%3D%2214%22%2F%3E%3Cpath%20d%3D%22M132%2016%20a26%2026%200%200%201%2044%2020%22%2F%3E%3Cpath%20d%3D%22M196%20196%20a22%2022%200%200%200%20-38%2016%22%2F%3E%3Cpath%20d%3D%22M14%20128%20a20%2020%200%200%201%2030%20-10%22%2F%3E%3Cpath%20d%3D%22M162%2096%20q12%20-12%2024%200%20t24%200%22%2F%3E%3Cpath%20d%3D%22M28%20168%20q10%2010%2020%200%20t20%200%22%2F%3E%3Cpath%20d%3D%22M92%2044%20l16%20-16%22%2F%3E%3Cpath%20d%3D%22M100%2052%20l16%20-16%22%2F%3E%3Cpath%20d%3D%22M214%20140%20l14%2014%22%2F%3E%3Cpath%20d%3D%22M222%20132%20l14%2014%22%2F%3E%3Cpath%20d%3D%22M188%2060%20h16%20M196%2052%20v16%22%2F%3E%3Cpath%20d%3D%22M74%20122%20h14%20M81%20115%20v14%22%2F%3E%3Cpath%20d%3D%22M240%20214%20h14%20M247%20207%20v14%22%2F%3E%3Crect%20x%3D%2286%22%20y%3D%22196%22%20width%3D%2226%22%20height%3D%2226%22%20rx%3D%228%22%2F%3E%3Crect%20x%3D%22176%22%20y%3D%22240%22%20width%3D%2220%22%20height%3D%2220%22%20rx%3D%226%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23ffffff%22%20opacity%3D%220.06%22%3E%3Ccircle%20cx%3D%22166%22%20cy%3D%2246%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2222%22%20cy%3D%2296%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%22252%22%20cy%3D%22118%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%22110%22%20cy%3D%2292%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2246%22%20cy%3D%22152%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22204%22%20cy%3D%22168%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%22148%22%20cy%3D%22232%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2296%22%20cy%3D%22258%22%20r%3D%223%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --bg-panel: #17212b;
  --bg-elevated: #1f2b38;
  --bg-hover: #1c2733;
  --bg-active: #2b5278;
  --bg-input: #242f3d;

  --border-subtle: #1e2933;
  --border-strong: #2b3947;

  --text-primary: #e9edef;
  --text-secondary: #8296a8;
  --text-tertiary: #5d707f;
  --text-on-accent: #ffffff;

  --accent: #4ea4f5;
  --accent-strong: #2b96e8;
  /* The info column's action tiles. tdesktop paints them with the accent at
     infoProfileTopBarActionButtonBgOpacity = 0.16 rather than with a grey, so
     the row of them reads as one control strip instead of four buttons. */
  --accent-soft: rgba(78, 164, 245, 0.16);
  /* activeButtonSecondaryFg — the count inside FORWARD 3 / DELETE 3, which
     tdesktop draws dimmer than the label (lib_ui colors.palette says so in as
     many words: "selected messages counter in forward / delete buttons"). */
  --accent-btn-count: #9abfe7;

  --bubble-own-bg: #2b5278;
  --bubble-own-text: #eaf3ff;
  --bubble-other-bg: #182533; /* tdesktop night incoming */
  --bubble-other-text: #e5e9ec;
  --bubble-quote-bg: rgba(255, 255, 255, 0.08);

  --unread-badge-bg: #4082bc; /* dialogsUnreadBg night */
  --unread-badge-text: #ffffff;
  --unread-badge-muted-bg: #35424e;
  --unread-badge-muted-text: #8296a8;

  --tick-sent-color: #8296a8;
  /* historyOutIconFg #6bbfff: tdesktop uses ONE colour for the single and the
     double tick — sent vs read differ by COUNT, not colour. Our two-colour
     scheme was invented. historySendingOutIconFg is the pending clock. */
  --tick-read-color: #6bbfff;
  --tick-own-sent: #6bbfff;
  --flash-overlay: rgba(255, 255, 255, 0.16);
  --tick-clock: #70a4d2;
  --msg-time-in: #6d7f8f;   /* msgInDateFg */
  --msg-time-out: #7da8d3;  /* msgOutDateFg */

  /* A SELECTED message. Telegram repaints the bubble rather than washing the
     row, and in the night theme msgInBgSelected and msgOutBgSelected are the
     SAME blue — a selection reads down a mixed conversation at a glance
     because both directions land on one colour. */
  --bubble-selected-bg: #2e70a5;      /* msgInBgSelected */
  --bubble-own-selected-bg: #2e70a5;  /* msgOutBgSelected */
  --msg-time-selected: #ffffff;       /* msgInDateFgSelected */
  --msg-time-own-selected: #ffffff;   /* msgOutDateFgSelected */
  --tick-selected: #ffffff;           /* historyOutIconFgSelected */
  --select-overlay: #3585d44c;        /* msgSelectOverlay, for media */
  /* msgSelectionCheck: a 2px windowBg ring over msgServiceBg, filled with
     boxTextFgGood when checked and the check drawn in windowBg. */
  --check-ring: #17212b;              /* windowBg */
  --check-ring-bg: #213040d5;         /* msgServiceBg */
  --check-checked-bg: #5598db;        /* boxTextFgGood, night */
  --check-checked-fg: #17212b;        /* overviewCheckFgActive = windowBg */

  --danger: #f2555a;
  --divider-unread-color: #4ea4f5;
  --presence-online: #43b581;

  --scrollbar-thumb: #2b3947;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-bubble: 16px; /* tdesktop bubbleRadiusLarge */

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  --shadow-panel: 0 12px 32px rgba(0, 0, 0, 0.45);
  --sidebar-width: 300px;
}
:root[data-theme="light"] {
  color-scheme: light;

  --bg-app: #eef2f5;
  --bg-sidebar: #ffffff;
  --bg-thread: #a8c69a; /* база под градиент обоев */
  /* Обои чата ровно из первоисточника (data_wall_paper.cpp,
     WallPaper::ConstructDefault): rgb(219,221,187) / rgb(107,165,135) /
     rgb(213,216,141) / rgb(136,184,132), узор интенсивности 50. */
  --chat-wallpaper:
    radial-gradient(72% 72% at 16% 12%, #dbddbb 0%, rgba(219, 221, 187, 0) 70%),
    radial-gradient(72% 72% at 86% 18%, #6ba587 0%, rgba(107, 165, 135, 0) 70%),
    radial-gradient(74% 74% at 12% 86%, #d5d88d 0%, rgba(213, 216, 141, 0) 72%),
    radial-gradient(80% 80% at 90% 88%, #88b884 0%, rgba(136, 184, 132, 0) 74%);
  --chat-wallpaper-pattern: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22260%22%20height%3D%22260%22%20viewBox%3D%220%200%20260%20260%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23335c42%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20opacity%3D%220.14%22%3E%3Ccircle%20cx%3D%2238%22%20cy%3D%2242%22%20r%3D%2219%22%2F%3E%3Ccircle%20cx%3D%22232%22%20cy%3D%2270%22%20r%3D%2211%22%2F%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%22166%22%20r%3D%2227%22%2F%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%22228%22%20r%3D%2214%22%2F%3E%3Cpath%20d%3D%22M132%2016%20a26%2026%200%200%201%2044%2020%22%2F%3E%3Cpath%20d%3D%22M196%20196%20a22%2022%200%200%200%20-38%2016%22%2F%3E%3Cpath%20d%3D%22M14%20128%20a20%2020%200%200%201%2030%20-10%22%2F%3E%3Cpath%20d%3D%22M162%2096%20q12%20-12%2024%200%20t24%200%22%2F%3E%3Cpath%20d%3D%22M28%20168%20q10%2010%2020%200%20t20%200%22%2F%3E%3Cpath%20d%3D%22M92%2044%20l16%20-16%22%2F%3E%3Cpath%20d%3D%22M100%2052%20l16%20-16%22%2F%3E%3Cpath%20d%3D%22M214%20140%20l14%2014%22%2F%3E%3Cpath%20d%3D%22M222%20132%20l14%2014%22%2F%3E%3Cpath%20d%3D%22M188%2060%20h16%20M196%2052%20v16%22%2F%3E%3Cpath%20d%3D%22M74%20122%20h14%20M81%20115%20v14%22%2F%3E%3Cpath%20d%3D%22M240%20214%20h14%20M247%20207%20v14%22%2F%3E%3Crect%20x%3D%2286%22%20y%3D%22196%22%20width%3D%2226%22%20height%3D%2226%22%20rx%3D%228%22%2F%3E%3Crect%20x%3D%22176%22%20y%3D%22240%22%20width%3D%2220%22%20height%3D%2220%22%20rx%3D%226%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23335c42%22%20opacity%3D%220.14%22%3E%3Ccircle%20cx%3D%22166%22%20cy%3D%2246%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2222%22%20cy%3D%2296%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%22252%22%20cy%3D%22118%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%22110%22%20cy%3D%2292%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2246%22%20cy%3D%22152%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%22204%22%20cy%3D%22168%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%22148%22%20cy%3D%22232%22%20r%3D%223.5%22%2F%3E%3Ccircle%20cx%3D%2296%22%20cy%3D%22258%22%20r%3D%223%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --bg-panel: #ffffff;
  --bg-elevated: #f3f5f7;
  --bg-hover: #f2f4f6;
  --bg-active: #419fd9; /* tdesktop day: the active chat row is SOLID blue with white text */
  --bg-input: #eef1f4;

  --border-subtle: #e4e8ec;
  --border-strong: #d5dbe1;

  --text-primary: #17212b;
  --text-secondary: #6d7883;
  --text-tertiary: #98a1a9;
  --text-on-accent: #ffffff;

  --accent: #3390ec;
  --accent-strong: #2077cf;
  --accent-soft: rgba(51, 144, 236, 0.12);
  --accent-btn-count: #cceeff;

  /* THE Telegram day signature: outgoing is pale GREEN, not blue. The blue
     bubble was the single biggest "this is not Telegram" tell in the light
     theme — every other messenger is blue; Telegram day is #effdde with
     green ticks. */
  --bubble-own-bg: #effdde;
  --bubble-own-text: #141414;
  --bubble-other-bg: #ffffff;
  --bubble-other-text: #1a232c;
  --bubble-quote-bg: rgba(17, 51, 85, 0.06);

  --unread-badge-bg: #40a7e3; /* dialogsUnreadBg day = windowBgActive */
  --unread-badge-text: #ffffff;
  --unread-badge-muted-bg: #d7dce1;
  --unread-badge-muted-text: #6d7883;

  --tick-sent-color: #9aa4ac;
  --tick-read-color: #57b84c; /* historyOutIconFg — one colour for 1 and 2 ticks */
  --tick-own-sent: #57b84c;
  /* msgSelectOverlay: the wash tdesktop paints over a jumped-to bubble. Dark
     on a light theme, light on a dark one — it must read on the pale green
     outgoing bubble AND on white. */
  --flash-overlay: rgba(17, 51, 85, 0.14);
  --tick-clock: #98d292;
  --msg-time-in: #a0acb6;
  --msg-time-out: #6db566;

  /* Day, and here the two directions genuinely differ: bluish for incoming,
     teal for outgoing, and the checked circle is GREEN (boxTextFgGood
     #4ab44a) rather than the night theme's blue. */
  --bubble-selected-bg: #c2dcf2;      /* msgInBgSelected */
  --bubble-own-selected-bg: #b7dbdb;  /* msgOutBgSelected */
  --msg-time-selected: #6a9cc5;       /* msgInDateFgSelected */
  --msg-time-own-selected: #56b2a6;   /* msgOutDateFgSelected */
  --tick-selected: #45a3aa;           /* historyOutIconFgSelected */
  --select-overlay: #358cd44c;        /* msgSelectOverlay */
  --check-ring: #ffffff;              /* windowBg */
  --check-ring-bg: #517c417f;         /* msgServiceBg */
  --check-checked-bg: #4ab44a;        /* boxTextFgGood, day */
  --check-checked-fg: #ffffff;        /* overviewCheckFgActive = windowBg */

  --danger: #e0393e;
  --divider-unread-color: #2077cf;
  --presence-online: #2fa860;

  --scrollbar-thumb: #d1d7dc;

  --shadow-panel: 0 12px 32px rgba(20, 30, 40, 0.16);
}
body {
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.icon-btn:focus-visible, .theme-toggle:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(160deg, hsl(var(--avatar-hue, 210) 62% 52%), hsl(var(--avatar-hue, 210) 62% 38%));
}
.avatar--saved .icon { width: 55%; height: 55%; color: inherit; }
.avatar--channel .icon { color: inherit; width: 22px; height: 22px; }
.avatar--lg { width: 72px; height: 72px; font-size: 24px; }
.menu-item .icon { color: var(--text-secondary); flex: 0 0 auto; }
.menu-item-danger, .menu-item-danger .icon { color: var(--danger, #e5534b); }
.row-ticks .icon { width: 15px; height: 10px; }
.row-ticks--clock .icon { width: 11px; height: 11px; }
.chat-row--archive .chat-row-archive-icon .icon { width: 22px; height: 22px; }
.thread-header-identity .avatar { width: 40px; height: 40px; font-size: 13.5px; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.ticks .icon { width: 15px; height: 10px; }
@keyframes bubble-flash {
  0%   { box-shadow: inset 0 0 0 400px transparent; }
  12%  { box-shadow: inset 0 0 0 400px var(--flash-overlay); }
  100% { box-shadow: inset 0 0 0 400px transparent; }
}
.msg-action-btn .icon { width: 15px; height: 15px; }
.file-download .icon { width: 16px; height: 16px; }
.send-btn .icon { width: 18px; height: 18px; }
.info-tile .icon { width: 23px; height: 23px; }
.info-row .icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--text-secondary); }
.info-row--danger .info-row-value, .info-row--danger .icon { color: var(--danger); }
.btn {
  height: 40px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  width: 100%;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--danger {
  margin-top: var(--space-5);
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}
.btn--danger:hover { background: rgba(242, 85, 90, 0.1); }
.message-check .icon { width: 12px; height: 12px; stroke-width: 3; }
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  /* Without this the default `stretch` makes every dialog as tall as the
     overlay, and max-height then clamps it — which is why "Forward to…" with
     two rows in it, "New poll" and "New group" were all exactly the same
     height with half the window empty. A Telegram box is as tall as what is
     in it; max-height still caps the ones that genuinely are long, and their
     inner list keeps scrolling. */
  align-items: flex-start;
  padding-top: 12vh;
}
.modal-overlay[hidden] { display: none; }
.modal {
  width: 480px;
  max-width: calc(100vw - 48px);
  max-height: 70vh;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header .icon { color: var(--text-tertiary); }
.modal-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0 var(--space-3);
  color: var(--text-primary);
  font-size: 14px;
}
.modal-search-input:focus { outline: none; border-color: var(--accent); }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}
.field input {
  height: 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0 var(--space-3);
  color: var(--text-primary);
  font-size: 14px;
}
.field input:focus { outline: none; border-color: var(--accent); }
.field input::placeholder { color: var(--text-tertiary); }
.field select, .field textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}
.field select { height: 40px; }
.field textarea { resize: vertical; min-height: 72px; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
@media (max-width: 1000px) {
  :root { --sidebar-width: 280px; }
}
.lightbox-nav .icon { width: 22px; height: 22px; }
.lightbox-next .icon { transform: rotate(180deg); }
.emoji-panel-search .icon { width: 15px; height: 15px; color: var(--text-tertiary); flex: 0 0 auto; }
.pinned-bar-close .icon { width: 14px; height: 14px; }
.audio-bar-btn .icon { width: 14px; height: 14px; }
.audio-bar-close .icon { width: 14px; height: 14px; }
.admin-tab-btn .icon { flex: 0 0 auto; }
.settings-avatar-row .btn { width: auto; padding: 0 var(--space-4); height: 34px; }
.admin-pager-next .icon { transform: rotate(180deg); }
.admin-confirm-overlay, .admin-secret-overlay, .admin-form-overlay { z-index: 250; padding-top: 16vh; }
.admin-confirm-modal, .admin-secret-modal, .admin-form-modal { padding: var(--space-5); max-height: 80vh; overflow-y: auto; gap: var(--space-3); display: flex; flex-direction: column; width: 420px; }
.admin-confirm-title { font-size: 16px; font-weight: 700; }
.admin-form { display: flex; flex-direction: column; gap: var(--space-3); }
.admin-field { gap: 6px; }
.admin-form-error,
.settings-2fa-error { font-size: 12.5px; font-weight: 600; color: var(--danger); }
.admin-form-actions { display: flex; gap: var(--space-3); justify-content: flex-end; }
.admin-form-actions .btn { width: auto; padding: 0 var(--space-5); }
.new-chat-hint {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
}
.new-chat-chip-remove .icon { width: 12px; height: 12px; }
.admin-audit-back .icon { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .admin-confirm-modal, .admin-secret-modal, .admin-form-modal, .admin-csv-modal { width: 100%; max-width: calc(100vw - 32px); }
}
.voice-play .icon { width: 16px; height: 16px; }
.voice-play .icon { transform: rotate(0deg); }
@keyframes recording-pulse { 50% { opacity: 0.25; } }
.call-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg-app);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3);
  /* Nothing in a call may paint outside the window: whatever else goes wrong
     with sizing, the controls stay the last row ON the screen. */
  overflow: hidden;
}
.call-actions { flex: none; }
.call-share-stage, .call-grid { min-height: 0; }
.call-status { font-size: 14px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.call-actions { display: flex; gap: var(--space-4); margin-top: var(--space-2); }
.call-btn {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--bg-elevated); color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
}
.call-btn .icon { width: 22px; height: 22px; }
.call-btn--off { background: var(--text-tertiary); color: var(--bg-app); }
.call-btn--end { background: var(--danger); color: #fff; }
.call-grid {
  display: grid;
  gap: var(--space-2);
  width: min(92vw, 960px);
  grid-template-columns: 1fr;
}
.call-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.call-grid[data-count="3"],
.call-grid[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
.call-grid[data-count="5"],
.call-grid[data-count="6"] { grid-template-columns: repeat(3, 1fr); }
.call-grid:not([data-count="1"]):not([data-count="2"]):not([data-count="3"]):not([data-count="4"]):not([data-count="5"]):not([data-count="6"]) {
  grid-template-columns: repeat(4, 1fr);
}
.call-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-tile-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.call-tile-avatar { position: absolute; }
.call-tile-name {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  max-width: calc(100% - var(--space-4));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.call-tile--self .call-tile-video { transform: scaleX(-1); }
.call-tile--speaking { outline: 3px solid var(--accent); outline-offset: -3px; }
.call-tile-hand {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.55);
}
.call-tile-hand[hidden] { display: none; }
.call-tile--hand { outline: 2px solid #f0b429; outline-offset: -2px; }
.call-tile--speaking.call-tile--hand { outline-color: var(--accent); }
.call-share-stage {
  position: relative;
  width: min(92vw, 960px);
  max-height: 52vh;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-share-stage[hidden] { display: none; }
.call-share-video {
  width: 100%;
  max-height: 52vh;
  /* `contain`, never `cover`: a screen is text, and cropping the edges off a
     terminal or a slide is worse than letterboxing it. */
  object-fit: contain;
  display: block;
}
.call-share-full {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 120ms ease;
}
.call-share-stage:hover .call-share-full,
.call-share-full:focus-visible { opacity: 1; }
.call-share-full:hover { background: rgba(0, 0, 0, 0.75); }
.call-share-full .icon { width: 18px; height: 18px; }
.call-overlay:fullscreen { padding: 0; justify-content: center; }
.call-overlay:fullscreen .call-share-stage {
  width: 100vw;
  max-height: calc(100vh - 140px);
  border-radius: 0;
}
.call-overlay:fullscreen .call-share-video { max-height: calc(100vh - 140px); }
.screen-pick-modal { width: min(880px, 92vw); }
.screen-pick-body { max-height: 60vh; overflow-y: auto; margin: var(--space-4) 0; }
.screen-pick-section {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: var(--space-4) 0 var(--space-2);
}
.screen-pick-section:first-child { margin-top: 0; }
.screen-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-3);
}
.screen-pick-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
}
.screen-pick-item:hover, .screen-pick-item:focus-visible {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.screen-pick-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius-sm);
  display: block;
}
.screen-pick-thumb--empty {
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-input);
}
.screen-pick-label { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.screen-pick-icon { width: 16px; height: 16px; flex: none; }
.screen-pick-name {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.call-share-stage:not([hidden]) ~ .call-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  height: 22vh;
  max-height: 22vh;
  overflow-x: auto;
  overflow-y: hidden;
}
.call-share-stage:not([hidden]) ~ .call-grid .call-tile {
  aspect-ratio: 16 / 9;
  height: 100%;
  flex: 0 0 auto;
}
.call-btn--on { background: var(--accent); color: #fff; }
.settings-notif-row .btn[hidden] { display: none; }
.btn--outline {
  width: auto;
  padding: 0 var(--space-5);
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
}
.btn--outline:hover { background: var(--bg-hover); }
.btn--outline:disabled { opacity: 0.6; cursor: default; }
.call-btn--recording { background: var(--danger); color: #fff; }
.call-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 70;
  max-width: min(90vw, 480px);
  background: var(--bg-elevated); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); font-size: 13px; line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.info-media-photo-fallback .icon { width: 28px; height: 28px; }
.info-media-play .icon { width: 12px; height: 12px; }
.ticks--clock .icon { width: 12px; height: 12px; }
.send-files-remove .icon { width: 11px; height: 11px; }
.send-files-checkbox .icon { width: 12px; height: 12px; color: #fff; }
.send-files-emoji .icon { width: 18px; height: 18px; }
.send-files-actions .btn { width: auto; padding: 6px 16px; }
.send-files-row .icon { flex: none; color: var(--accent); }
.menu-readby .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.scheduled-chip .icon { width: 15px; height: 15px; flex: none; }
.poll-option-mark .icon { width: 14px; height: 14px; color: var(--accent); }
.settings-2fa-secret .btn { width: auto; flex: none; }
.chat-row-menu .menu-item .icon { width: 20px; height: 20px; flex: 0 0 20px; }
.modal-overlay .btn,
.admin-form-overlay .btn,
.admin-confirm-overlay .btn,
.admin-secret-overlay .btn {
  height: 34px;
  padding: 0 var(--space-4);
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.modal-overlay .btn:hover,
.admin-form-overlay .btn:hover,
.admin-confirm-overlay .btn:hover,
.admin-secret-overlay .btn:hover { background: var(--bg-hover); }
.modal-overlay .btn--danger,
.admin-form-overlay .btn--danger,
.admin-confirm-overlay .btn--danger,
.admin-secret-overlay .btn--danger { color: var(--danger); background: transparent; }
.panel-pin .icon { width: 15px; height: 15px; }
.catalogue-actions .btn { width: auto; padding: 6px 14px; }
.catalogue-chosen-remove .icon { width: 10px; height: 10px; }
.settings-form .admin-form-actions { justify-content: flex-end; }
.manage-photo-cam .icon { width: 12px; height: 12px; }
@keyframes kb-spin { to { transform: rotate(360deg); } }
.confirm-overlay { z-index: 200; }
.confirm-box {
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--bg-panel);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
  padding: 18px 20px 10px;
}
.confirm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.confirm-avatar { width: 40px; height: 40px; flex: 0 0 auto; font-size: 15px; }
.confirm-title { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confirm-text { font-size: 14px; line-height: 1.45; color: var(--text-primary); white-space: pre-line; }
.confirm-check-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  margin-top: 14px; font-size: 14px; color: var(--text-primary);
}
.confirm-check {
  width: 20px; height: 20px; flex: 0 0 auto; border-radius: 4px;
  border: 2px solid var(--border-strong); display: grid; place-items: center;
  color: transparent;
}
.confirm-check-row--on .confirm-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.confirm-check .icon { width: 13px; height: 13px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 16px; }
.confirm-btn {
  width: auto; padding: 9px 16px; background: transparent;
  color: var(--accent); font-size: 14px; font-weight: 600;
}
.confirm-btn:hover { background: var(--bg-hover); }
.confirm-overlay .confirm-btn--danger { color: var(--danger); }
.confirm-overlay .confirm-btn { font-size: 14px; height: auto; padding: 9px 16px; }
.rooms-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-6);
}
.rooms-hero {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}
.rooms-hero-text { flex: 1 1 320px; min-width: 0; }
.rooms-hero-text h3 { margin: 0 0 4px; font-size: 16px; }
.rooms-hero-text p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.5; max-width: 460px; }
.rooms-hero-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.rooms-code-input { width: 190px; }
.rooms-btn { width: auto; padding: 0 var(--space-4); height: 38px; white-space: nowrap; }
.rooms-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.rooms-section {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: var(--space-5) 0 var(--space-3);
}
.rooms-empty { color: var(--text-tertiary); font-size: 13px; padding: var(--space-3) 0; }
.rooms-card-main { flex: 1 1 auto; min-width: 0; }
.rooms-card-name { font-weight: 600; font-size: 14.5px; }
.rooms-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12.5px;
}
.rooms-card-code {
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  color: var(--text-primary);
  /* A long link must not push the buttons off the card. */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rooms-card-dead { color: var(--danger); font-weight: 600; }
.rooms-card-kind { text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; font-weight: 700; }
.rooms-card-live { display: inline-flex; align-items: center; gap: 6px; color: var(--presence-online); font-weight: 600; }
.rooms-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--presence-online);
  box-shadow: 0 0 0 3px rgba(67, 181, 129, 0.18);
}
.rooms-card-actions { display: flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; }
.rooms-entry { margin-bottom: var(--space-5); }
.rooms-entry-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}
.rooms-entry-main { flex: 1 1 auto; min-width: 0; }
.rooms-entry-name { font-weight: 700; font-size: 16px; }
.rooms-entry-people {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 13px;
}
.rooms-entry-empty { color: var(--text-tertiary); }
.rooms-entry-loading { color: var(--text-secondary); font-size: 13px; }
.rooms-entry-dead {
  padding: var(--space-4);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 13.5px;
}
.rooms-stack { display: flex; }
.rooms-stack-avatar {
  width: 26px; height: 26px; font-size: 11px;
  border: 2px solid var(--bg-app);
  margin-left: -8px;
}
.rooms-stack-avatar:first-child { margin-left: 0; }
.rooms-options { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-3) 0; }
.rooms-option {
  display: flex;
  gap: var(--space-3);
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  height: auto;
}
.rooms-option--on { border-color: var(--accent); background: var(--accent-soft); }
.rooms-radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--text-tertiary);
  flex: 0 0 auto;
  margin-top: 2px;
}
.rooms-option--on .rooms-radio { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); }
.rooms-option-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rooms-option-title { font-weight: 600; font-size: 13.5px; color: var(--text-primary); }
.rooms-option-hint { color: var(--text-secondary); font-size: 12.5px; line-height: 1.45; white-space: normal; }
.rooms-form-note { color: var(--text-tertiary); font-size: 12px; line-height: 1.45; margin-bottom: var(--space-2); }
.rooms-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  padding: 10px 16px;
  font-size: 13.5px;
}
.call-room-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.call-lobby {
  /* Floated over the tiles rather than stacked above them, and that is a fix,
     not a preference: as a flex child it grew the overlay's column until the
     controls at the bottom — Remove among them — sat outside the viewport.
     Every computed style was correct and the button could not be clicked,
     which is the failure that looks like nothing at all. */
  position: absolute;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: min(90vw, 420px);
  max-height: 40vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.call-lobby[hidden] { display: none; }
.call-lobby-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid #f0b429; /* the same amber the raised-hand outline uses: "needs a person" */
  box-shadow: var(--shadow-panel);
}
.call-lobby-card--in { border-color: var(--border-strong); }
.call-lobby-main { flex: 1 1 auto; min-width: 0; }
.call-lobby-name { font-weight: 600; font-size: 13.5px; }
.call-lobby-sub { color: var(--text-secondary); font-size: 12px; margin-top: 2px; }
.call-lobby-actions { display: flex; gap: var(--space-2); flex: 0 0 auto; }
.call-lobby-btn { width: auto; height: 32px; padding: 0 12px; font-size: 13px; }
.call-tile-guest {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f0b429;
  color: #20160a;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.guest-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
  color: var(--text-primary);
}
.guest-bar {
  flex: 0 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  font-weight: 700;
}
.guest-room-name { color: var(--text-secondary); font-weight: 400; }
.guest-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  padding: var(--space-6);
}
.guest-preview {
  position: relative;
  width: min(90vw, 520px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #0a0f15;
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.guest-preview-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scaleX(-1); /* your own camera, mirrored, as every video app does */
}
.guest-preview-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--text-tertiary); font-size: 13px;
}
.guest-preview-placeholder[hidden] { display: none; }
.guest-preview-bar {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: var(--space-3);
}
.guest-side { width: min(90vw, 340px); }
.guest-title { font-size: 22px; margin: 0 0 6px; }
.guest-sub { color: var(--text-secondary); font-size: 13.5px; margin: 0 0 20px; line-height: 1.5; }
.guest-label { display: block; color: var(--text-secondary); font-size: 12.5px; margin-bottom: 6px; }
.guest-form[hidden], .guest-waiting[hidden], .guest-dead[hidden] { display: none; }
.guest-join-btn { width: 100%; justify-content: center; height: 44px; margin-top: var(--space-3); }
.guest-note { color: var(--text-tertiary); font-size: 12px; line-height: 1.5; margin-top: var(--space-3); }
.guest-waiting {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--text-secondary); font-size: 13.5px;
}
.guest-spinner {
  width: 18px; height: 18px; flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: guest-spin 0.9s linear infinite;
}
@keyframes guest-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .guest-spinner { animation: none; }
}
.guest-dead {
  padding: var(--space-4);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 13.5px;
}
.guest-employee { margin-top: var(--space-6); color: var(--text-tertiary); font-size: 12.5px; }
.guest-employee a { color: var(--accent); }
.rooms-guests-row { display: flex; align-items: flex-start; gap: var(--space-3); margin: var(--space-3) 0 var(--space-2); }
.rooms-switch {
  width: 38px; height: 22px; flex: 0 0 auto; margin-top: 2px;
  border-radius: 11px; background: var(--border-strong);
  position: relative; padding: 0; border: none;
}
.rooms-switch-knob {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #8fa3b5;
  transition: left 0.12s ease, background 0.12s ease;
}
.rooms-switch--on { background: var(--accent); }
.rooms-switch--on .rooms-switch-knob { left: 19px; background: #fff; }
.rooms-card-guests {
  color: #f0b429;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rooms-history {
  flex: 1 1 100%;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.rooms-history-loading { color: var(--text-secondary); font-size: 12.5px; }
.rooms-meeting {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
}
.rooms-meeting-when {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 12.5px;
  font-weight: 600;
}
.rooms-meeting-dur { color: var(--text-secondary); font-weight: 400; }
.rooms-meeting-guests {
  color: #f0b429;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rooms-meeting-who {
  color: var(--text-secondary);
  font-size: 12.5px;
  /* A long roster must not stretch the card sideways. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rooms-meeting-audio { width: 100%; max-width: 420px; margin-top: 4px; }
.rooms-meeting-norec { color: var(--danger); font-size: 12px; }

/* ---------------------------------------------------------------------------
 * Оболочка meet405
 *
 * Единственное, что здесь дописано руками поверх вырезанного из chat405:
 * шапка приложения, экран входа и полоса «нет связи». Всё остальное — комнаты,
 * встреча, гостевая страница, коробка подтверждения, пикер экрана — приехало
 * со своими стилями и не трогалось.
 * ------------------------------------------------------------------------- */

.meet-body {
  margin: 0;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.meet-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.meet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 56px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  flex: 0 0 auto;
}

.meet-brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-primary);
}

.meet-head-spacer { flex: 1 1 auto; }

.meet-me {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meet-signout { padding: 6px 14px; font-size: 13px; }

.meet-main {
  flex: 1 1 auto;
  overflow-y: auto;
  /* Тот же предел ширины, что у карточек комнат внутри: список ссылок,
     растянутый на 27 дюймов, читается хуже, а не лучше. */
  padding: 24px 20px 48px;
}

.meet-main > .rooms-body { max-width: 880px; margin: 0 auto; }

/* Вход. Одна кнопка — пароля у этого приложения нет вовсе. */
.meet-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.meet-login-card {
  width: min(360px, 100%);
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 36px 28px;
}

.meet-login-card .meet-brand { font-size: 24px; display: block; margin-bottom: 6px; }

.meet-login-sub {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.meet-login-btn {
  display: inline-block;
  text-decoration: none;
  padding: 10px 22px;
}

/* Причина неудачного входа. Красным и словами: молча показанная кнопка «Войти»
   после отказа — это круг, в котором человек жмёт одно и то же. */
.meet-login-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: #e8737a;
  line-height: 1.45;
}

.meet-offline {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
