:root { color-scheme: dark; }
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 30% 20%, #1b1030 0%, #0a0713 60%, #050308 100%);
  color: #eae6f5;
}

.hidden { display: none !important; }

/* ---------- Общие элементы форм ---------- */

input, button {
  font-family: inherit;
  font-size: 14px;
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #eae6f5;
  outline: none;
}
input[type="text"]:focus, input[type="password"]:focus {
  border-color: #7c5cff;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c5cff, #ff5cbe);
  color: white;
  padding: 10px 16px;
  font-weight: 600;
}
button:disabled { opacity: 0.6; cursor: default; }

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

.link-btn {
  background: none;
  color: #b9aee0;
  padding: 4px 0;
  font-weight: 500;
  font-size: 13px;
  text-align: left;
}

.icon-btn {
  background: rgba(255,255,255,0.06);
  width: 32px; height: 32px;
  border-radius: 8px;
  padding: 0;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Лендинг для незалогиненных: hero + отдельные секции ---------- */

.landing-screen {
  background: #0a0714;
  overflow-x: hidden;
}

/* --- Hero --- */

.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px 40px;
}

.landing-hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 65% 15%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 30% 75%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90% 85%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 50% 45%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 10% 90%, rgba(255,255,255,0.4), transparent);
  background-repeat: repeat;
  background-size: 260px 260px;
  opacity: 0.8;
}

/* Большое размытое пятно цвета планеты — не по центру, а сдвинуто в угол,
   чтобы не читалось как штампованная "hero-карточка со свечением по центру". */
.landing-hero-glow {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(232,98,58,0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

/* Кольцо орбиты — тонкий эллипс, повёрнутый и обрезанный краем экрана,
   отсылка к логотипу, но не буквальное его повторение по центру. */
.landing-hero-orbit {
  position: absolute;
  width: 900px;
  height: 320px;
  border: 1.5px solid rgba(124,92,255,0.25);
  border-radius: 50%;
  top: 8%;
  right: -280px;
  transform: rotate(-16deg);
  pointer-events: none;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 480px;
  animation: landing-hero-rise 0.7s ease both;
}

@keyframes landing-hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-hero-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  display: block;
  margin: 0 auto 24px;
  object-fit: contain;
}

.landing-hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1;
}

.landing-hero-tagline {
  font-size: 17px;
  line-height: 1.55;
  color: #b8b0d4;
  margin: 0 0 32px;
}

.landing-cta {
  background: linear-gradient(135deg, #7c5cff, #6b4fe0);
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.landing-cta:hover { background: linear-gradient(135deg, #8a6dff, #7859e8); }

.landing-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #6a628a;
  font-size: 18px;
  animation: landing-bob 2.2s ease-in-out infinite;
}
@keyframes landing-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* --- Секции общего вида --- */

.landing-section {
  padding: 88px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.landing-section-inner {
  max-width: 640px;
  margin: 0 auto;
}

.landing-section h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  text-align: center;
}

/* --- Фичи: список с иконкой слева, разделённый тонкими линиями,
   не одинаковые карточки с тенями. --- */

.landing-feature-list {
  display: flex;
  flex-direction: column;
}

.landing-feature {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-align: left;
}
.landing-feature:last-child { border-bottom: none; }

.landing-feature-icon {
  font-size: 30px;
  flex-shrink: 0;
  width: 44px;
}

.landing-feature-text h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}
.landing-feature-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #a99fcf;
  margin: 0;
}

/* --- Шифрование: выделенная полоса другого тона --- */

.landing-security {
  background: #120b24;
  text-align: center;
}
.landing-security-text {
  font-size: 16px;
  line-height: 1.7;
  color: #c9c2e0;
  max-width: 540px;
  margin: 0 auto;
}

/* --- Скачивание --- */

.landing-download-subtitle {
  text-align: center;
  color: #a99fcf;
  font-size: 14px;
  margin: -20px 0 32px;
}

.landing-download-list { display: flex; flex-direction: column; gap: 10px; }

.landing-download-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  text-decoration: none;
  color: #eee;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.landing-download-item.is-recommended {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(124,92,255,0.28), rgba(124,92,255,0.12));
}
.landing-download-item.is-disabled { opacity: 0.45; cursor: default; pointer-events: none; }

.landing-download-icon { font-size: 24px; flex-shrink: 0; }
.landing-download-info { flex: 1; min-width: 0; }
.landing-download-name { font-weight: 600; }
.landing-download-status { font-size: 12px; color: #a99fcf; }
.landing-download-badge {
  font-size: 11px;
  background: #7c5cff;
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* --- Футер --- */

.landing-footer {
  padding: 48px 24px 64px;
  text-align: center;
}
.landing-footer-logo { height: 22px; width: auto; opacity: 0.6; }

@media (max-width: 560px) {
  .landing-hero-title { font-size: 42px; }
  .landing-hero-tagline { font-size: 15px; }
  .landing-section { padding: 64px 20px; }
  .landing-section h2 { font-size: 24px; margin-bottom: 28px; }
  .landing-hero-orbit { width: 600px; height: 220px; right: -220px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-inner { animation: none; }
  .landing-scroll-cue { animation: none; }
}


/* ---------- Экран авторизации ---------- */

.screen { min-height: 100vh; }

#auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.insecure-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.insecure-screen .auth-card { max-width: 440px; text-align: left; }
.insecure-screen h1 { text-align: center; }
.insecure-screen .sub { color: #c9c2e0; line-height: 1.5; margin-bottom: 14px; }
.insecure-screen code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
  word-break: break-all;
}
.warning-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff9d6c, #ff5c5c);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
#insecure-continue-anyway-btn { display: block; margin: 8px auto 0; }

.auth-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 44px;
  width: 100%;
  max-width: 360px;
  backdrop-filter: blur(12px);
  text-align: center;
}

.logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: block;
  object-fit: contain;
}

.auth-card h1 { margin: 0 0 4px; font-size: 22px; }
.auth-card .sub { margin: 0 0 24px; color: #9d95b8; font-size: 13px; }

.field {
  display: block;
  text-align: left;
  margin-bottom: 14px;
}
.field span {
  display: block;
  font-size: 12px;
  color: #9d95b8;
  margin-bottom: 4px;
}

#auth-submit { width: 100%; margin-top: 4px; padding: 12px; }

.auth-error {
  background: rgba(255, 92, 92, 0.12);
  color: #ff8f8f;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.auth-toggle {
  margin-top: 20px;
  font-size: 13px;
  color: #9d95b8;
}
.auth-toggle a { color: #b9aee0; margin-left: 4px; }

/* ---------- Layout приложения ---------- */

#app-screen { height: 100vh; }
.app-layout {
  display: flex;
  height: 100%;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.02);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.me {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 10px;
  text-align: left;
  color: inherit;
  font-weight: 400;
}
.me-clickable { cursor: pointer; }
.me-clickable:hover { background: rgba(255,255,255,0.05); }
.me-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c5cff, #ff5cbe);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.me-name { font-size: 14px; font-weight: 600; }
.me-username { font-size: 12px; color: #9d95b8; }

.key-warning {
  margin: 10px 16px 0;
  padding: 8px 10px;
  background: rgba(255, 190, 92, 0.12);
  color: #ffd28f;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.4;
}

.search-block {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.search-results {
  margin-top: 8px;
  max-height: 160px;
  overflow-y: auto;
}
.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  font-size: 13px;
}
.search-empty { font-size: 12px; color: #7a7191; padding: 6px 4px; }
.muted { color: #7a7191; font-size: 11px; }

.group-draft { margin-top: 8px; }
.group-draft-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip {
  background: rgba(124, 92, 255, 0.2);
  color: #c9bdff;
  border-radius: 999px;
  padding: 3px 6px 3px 10px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip-remove {
  background: none;
  border: none;
  color: #c9bdff;
  padding: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.chip-remove:hover { background: rgba(255,255,255,0.15); }
.group-draft-form { display: flex; gap: 6px; }
.group-draft-form input { flex: 1; }

.sidebar-actions {
  padding: 0 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-actions .link-btn { padding: 6px 0; }

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.chat-list-empty {
  padding: 20px 12px;
  color: #7a7191;
  font-size: 13px;
  text-align: center;
}

.chat-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: none;
  color: inherit;
  text-align: left;
  font-weight: 400;
  margin-bottom: 2px;
}
.chat-item:hover { background: rgba(255,255,255,0.05); }
.chat-item.active { background: rgba(124, 92, 255, 0.18); }

.chat-item-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.chat-item-title { font-size: 13px; font-weight: 600; }
.chat-item-sub { font-size: 11px; color: #7a7191; }

/* ---------- Основная область чата ---------- */

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7191;
  font-size: 14px;
  padding: 20px;
  text-align: center;
}

.chat-active-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header-titles { flex: 1; min-width: 0; }
.chat-header-title { font-size: 15px; font-weight: 600; }
.chat-header-sub { font-size: 12px; color: #7a7191; }
.chat-back-btn { display: none; flex-shrink: 0; }
.call-buttons { display: flex; gap: 4px; flex-shrink: 0; }

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 70%;
}
.message-row.mine {
  align-items: flex-end;
  align-self: flex-end;
}

.message-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.message-row.mine .message-bubble {
  background: linear-gradient(135deg, #7c5cff, #ff5cbe);
}

.message-time {
  font-size: 10px;
  color: #7a7191;
  margin-top: 3px;
  padding: 0 4px;
}

.message-form {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.message-form input { flex: 1; }

/* ---------- Звонки ---------- */

.btn-decline {
  background: linear-gradient(135deg, #ff5c5c, #ff8f5c);
}

.incoming-call-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 14, 34, 0.97);
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  font-size: 13px;
  max-width: calc(100vw - 32px);
}
.incoming-call-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.incoming-call-icon { font-size: 20px; flex-shrink: 0; }
.incoming-call-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Полноэкранный экран звонка — отдельное "окно" поверх всего интерфейса,
   не маленькая плашка. Сетка тайлов адаптируется под число участников через
   data-count на #call-tiles (см. JS). */
.call-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0a0714;
  display: flex;
  flex-direction: column;
}
.call-screen-header {
  padding: 18px 20px 10px;
  text-align: center;
  flex-shrink: 0;
}
.call-screen-title { font-size: 17px; font-weight: 600; }
.call-screen-status { font-size: 13px; color: #a99fcf; margin-top: 4px; }

.call-tiles {
  flex: 1;
  display: grid;
  gap: 6px;
  padding: 10px;
  min-height: 0;
  grid-template-columns: 1fr;
}
.call-tiles[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.call-tiles[data-count="3"],
.call-tiles[data-count="4"] { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.call-tiles[data-count="5"],
.call-tiles[data-count="6"],
.call-tiles[data-count="7"],
.call-tiles[data-count="8"],
.call-tiles[data-count="9"] { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }

.call-tile {
  position: relative;
  background: #17102b;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.call-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.call-tile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #ff5c9c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.call-tile-name {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 12px;
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 6px;
}
.call-tile-status {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  background: rgba(0,0,0,0.5);
  padding: 2px 7px;
  border-radius: 6px;
  color: #a99fcf;
}

/* Мой собственный превью — маленькое плавающее окошко поверх сетки, как в
   Zoom/Telegram, а не строка в общей сетке. */
.call-tile-local {
  position: absolute;
  right: 16px;
  bottom: 96px;
  width: 100px;
  height: 140px;
  z-index: 5;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.call-tile-local video { transform: scaleX(-1); } /* зеркалим себя, как в любом видеозвонке */
.call-tile-local .call-tile-avatar { width: 44px; height: 44px; font-size: 18px; }

.call-screen-controls {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 28px;
}
.call-control-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}
.call-control-btn:hover { background: rgba(255,255,255,0.2); }
.call-control-btn:active { transform: scale(0.94); }
.call-control-btn.is-off { background: rgba(255,255,255,0.35); color: #17102b; }
.call-control-hangup {
  background: linear-gradient(135deg, #ff5c5c, #ff8f5c);
  transform: rotate(135deg);
}
.call-control-hangup:hover { background: linear-gradient(135deg, #ff7070, #ffa070); }

@media (max-width: 480px) {
  .call-tile-local { width: 76px; height: 108px; right: 10px; bottom: 88px; }
  .call-control-btn { width: 48px; height: 48px; font-size: 19px; }
}

.transient-notice {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 14, 34, 0.97);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* ---------- Модалки (по центру окна, переиспользуется профилем и группами) ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 8, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
}

.modal-card {
  background: #150f22;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 28px 30px;
  width: 100%;
  max-width: 380px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal-header h2 { margin: 0; font-size: 17px; }
.modal-header .icon-btn { font-size: 18px; line-height: 1; }

.profile-avatar-preview {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c5cff, #ff5cbe);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.emoji-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 6px 0;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.emoji-btn:hover { background: rgba(255,255,255,0.1); }
.emoji-btn.selected { border-color: #7c5cff; background: rgba(124,92,255,0.2); }

#profile-save-btn { width: 100%; margin-top: 18px; padding: 12px; }

/* ---------- Мобильная раскладка (телефоны) ---------- */
/* Раньше .sidebar и .chat-main всегда стояли рядом (300px + остальное) —
   на узком экране это ломалось. Теперь на мобильном показываем один экран
   за раз: список чатов или открытый чат, переключение — кнопкой "назад"
   в шапке чата (см. #chat-back-btn в app.js: openChat() добавляет класс
   chat-open на #app-screen, кнопка назад его снимает). */

@media (max-width: 768px) {
  /* iOS Safari автоматически зумит страницу при фокусе на input с
     font-size меньше 16px — из-за этого сайт выглядел "сломанным" на
     телефоне. Поднимаем размер шрифта в полях именно на мобильном. */
  input[type="text"], input[type="password"] {
    font-size: 16px;
  }

  .app-layout {
    position: relative;
    overflow: hidden;
  }

  .sidebar {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 1;
    transition: transform 0.25s ease;
  }

  .chat-main {
    position: absolute;
    inset: 0;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  #app-screen.chat-open .sidebar {
    transform: translateX(-100%);
  }
  #app-screen.chat-open .chat-main {
    transform: translateX(0);
  }

  .chat-back-btn {
    display: flex;
  }

  /* Чуть крупнее тач-цели */
  .icon-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .message-row {
    max-width: 85%;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .modal-card {
    padding: 22px 20px;
  }
}

/* ---------- Лента историй (в сайдбаре, над поиском) ---------- */
.stories-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 16px 4px;
  scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }
.stories-bar:empty { display: none; }

.story-circle {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
}
.story-circle-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 2.5px;
  margin: 0 auto 4px;
  background: linear-gradient(135deg, #7c5cff, #ff5c9c, #ff9d5c);
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-circle-ring.is-viewed { background: rgba(255,255,255,0.16); }
.story-circle-ring.is-mine-empty {
  background: none;
  border: 2px dashed rgba(255,255,255,0.35);
}
.story-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #17102b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
}
.story-circle-plus {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7c5cff;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(16px, 16px);
  border: 2px solid #0f0a1e;
}
.story-circle-name {
  font-size: 11px;
  color: #c9c2e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Модалка создания истории ---------- */
.story-create-card { max-width: 340px; }
.story-preview {
  border-radius: 16px;
  aspect-ratio: 9 / 14;
  max-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #7c5cff, #ff5c9c);
}
.story-preview-text {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  resize: none;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  outline: none;
}
.story-preview-text::placeholder { color: rgba(255,255,255,0.75); }

.story-bg-picker { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.story-bg-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.story-bg-swatch.is-selected { border-color: #fff; }

/* ---------- Полноэкранный просмотр историй ---------- */
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: #000;
  display: flex;
  flex-direction: column;
  user-select: none;
}
.story-viewer-progress {
  display: flex;
  gap: 4px;
  padding: 10px 10px 0;
  flex-shrink: 0;
}
.story-viewer-segment {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
  overflow: hidden;
}
.story-viewer-segment-fill {
  height: 100%;
  width: 0%;
  background: #fff;
}
.story-viewer-segment-fill.is-complete { width: 100%; transition: none; }
.story-viewer-segment-fill.is-animating { transition: width linear; }

.story-viewer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  flex-shrink: 0;
}
.story-viewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #ff5c9c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.story-viewer-info { flex: 1; min-width: 0; }
.story-viewer-name { font-size: 13px; font-weight: 600; color: #fff; }
.story-viewer-time { font-size: 11px; color: rgba(255,255,255,0.6); }
.story-viewer-header .icon-btn { color: #fff; }

.story-viewer-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  min-height: 0;
  position: relative;
}
.story-viewer-text {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 480px;
}

.story-viewer-nav {
  position: absolute;
  top: 60px;
  bottom: 70px;
  left: 0;
  right: 0;
  display: flex;
  z-index: 1;
}
.story-viewer-nav-zone { flex: 1; }

.story-viewer-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 20px;
}
.story-viewer-views { font-size: 12px; color: rgba(255,255,255,0.7); }
.story-viewer-footer .link-btn { color: #ff8f8f; }

@media (max-width: 480px) {
  .story-viewer-text { font-size: 20px; }
}

/* ---------- Баннер запроса разрешения на уведомления ---------- */
.notifications-banner {
  margin: 10px 16px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #dcd7f0;
}
.notifications-banner span { flex: 1; line-height: 1.4; }
.notifications-banner-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.notifications-banner .icon-btn { width: 26px; height: 26px; font-size: 15px; }

/* ---------- Вложения, ответы, пересылка, эмодзи ---------- */
.message-form #attachment-file-input { display: none; }

.reply-preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(124, 92, 255, 0.1);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.reply-preview-content { flex: 1; min-width: 0; border-left: 3px solid #7c5cff; padding-left: 10px; }
.reply-preview-label { font-size: 11px; color: #a99fcf; }
.reply-preview-text { font-size: 13px; color: #dcd7f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.emoji-picker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-height: 160px;
  overflow-y: auto;
}
.emoji-picker-item {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  line-height: 1;
}
.emoji-picker-item:hover { background: rgba(255,255,255,0.08); }

.message-bubble { position: relative; }
.message-reply-quote {
  border-left: 3px solid rgba(255,255,255,0.35);
  padding-left: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-text { white-space: pre-wrap; word-break: break-word; }

.message-actions {
  position: absolute;
  top: -14px;
  right: 4px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.message-row:hover .message-actions,
.message-row:focus-within .message-actions { opacity: 1; }
.message-action-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(20,14,34,0.9);
  color: #dcd7f0;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.message-action-btn:hover { background: #7c5cff; color: #fff; }

.message-attachment-image {
  max-width: 240px;
  max-height: 280px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}
.attachment-file-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  min-width: 180px;
}
.attachment-file-icon { font-size: 22px; flex-shrink: 0; }
.attachment-file-info { min-width: 0; }
.attachment-file-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attachment-file-size { font-size: 11px; color: #a99fcf; }

.forward-chat-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.forward-chat-item {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.05);
  color: #eee;
  font-size: 14px;
  cursor: pointer;
}
.forward-chat-item:hover { background: rgba(124,92,255,0.25); }

/* ---------- Список просмотревших историю ---------- */
.story-viewer-views.is-clickable { cursor: pointer; text-decoration: underline; }
.story-viewers-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 50%;
  background: rgba(15, 10, 30, 0.97);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
}
.story-viewers-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  font-size: 13px;
  color: #dcd7f0;
  flex-shrink: 0;
}
.story-viewers-panel-header .icon-btn { color: #fff; }
.story-viewers-panel-list { overflow-y: auto; padding: 0 16px 16px; }
.story-viewer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #fff;
  font-size: 13px;
}
.story-viewer-item-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #ff5c9c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ---------- Загрузка фото профиля ---------- */
.profile-avatar-actions { display: flex; justify-content: center; gap: 14px; margin-top: -6px; margin-bottom: 16px; }
#profile-photo-file-input { display: none; }

/* ---------- Фото-редактор историй (текст + рисование поверх фото) ---------- */
.story-mode-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.story-mode-tab {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: none;
  color: #a99fcf;
  cursor: pointer;
  font-size: 13px;
}
.story-mode-tab.is-active { background: rgba(124,92,255,0.25); color: #fff; border-color: #7c5cff; }

.story-photo-picker-prompt {
  aspect-ratio: 9 / 16;
  max-height: 400px;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.story-photo-editor { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.story-photo-canvas-wrap {
  position: relative;
  width: 280px;
  height: 498px;
  border-radius: 14px;
  overflow: hidden;
  touch-action: none;
}
.story-photo-canvas-wrap canvas { display: block; width: 100%; height: 100%; }
.story-text-layer { position: absolute; inset: 0; }

.story-text-box {
  position: absolute;
  min-width: 40px;
  max-width: 240px;
  padding: 4px 8px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  background: transparent;
  outline: none;
  cursor: text;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}
.story-text-box.is-dragging { opacity: 0.85; }
.story-text-box-handle {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #7c5cff;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}
.story-text-box-delete {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,80,80,0.9);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.story-photo-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.story-photo-toolbar .icon-btn.is-active { background: #7c5cff; color: #fff; }
.story-photo-color-picker { display: flex; gap: 6px; }
.story-photo-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.story-photo-color-swatch.is-selected { border-color: #fff; }

/* ---------- Фото-истории во вьювере + pointer-events для текстового слоя редактора ---------- */
.story-viewer-content.has-photo { padding: 0; align-items: flex-end; }
.story-viewer-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.story-viewer-content.has-photo .story-viewer-text {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 16px 24px 24px;
  font-size: 16px;
  text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  max-width: none;
}

.story-text-layer { pointer-events: none; }
.story-text-box { pointer-events: auto; }

/* ---------- Меню вложений, запись голосовых, опросы, гео ---------- */
.attach-menu {
  position: absolute;
  bottom: 64px;
  left: 16px;
  background: rgba(20,14,34,0.97);
  border: 1px solid rgba(124,92,255,0.3);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.attach-menu-item {
  text-align: left;
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  background: none;
  color: #eee;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.attach-menu-item:hover { background: rgba(124,92,255,0.25); }

.voice-recording-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}
.voice-recording-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5c5c;
  animation: voice-blink 1s infinite;
  flex-shrink: 0;
}
@keyframes voice-blink { 50% { opacity: 0.2; } }
.voice-recording-hint { flex: 1; color: #a99fcf; }

.message-voice-player { display: flex; align-items: center; gap: 8px; min-width: 200px; }
.message-voice-player audio { height: 34px; max-width: 220px; }

.message-geo-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  color: inherit;
}
.message-geo-icon { font-size: 24px; }
.message-geo-coords { font-size: 12px; color: #a99fcf; }
.message-geo-link { font-size: 13px; color: #7c9dff; text-decoration: underline; }

.message-attachment-video { max-width: 260px; max-height: 280px; border-radius: 10px; display: block; }

.poll-options-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.poll-option-row { display: flex; gap: 6px; align-items: center; }
.poll-option-row input { flex: 1; }
.poll-option-remove-btn {
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.08); color: #eee; cursor: pointer; flex-shrink: 0;
}

.poll-card { min-width: 220px; max-width: 280px; }
.poll-question { font-weight: 600; margin-bottom: 10px; font-size: 14px; }
.poll-option-bar {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  padding: 8px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 13px;
}
.poll-option-bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: rgba(124,92,255,0.35);
  transition: width 0.3s ease;
  z-index: 0;
}
.poll-option-bar-content { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 8px; }
.poll-option-bar.is-my-vote { outline: 2px solid #7c5cff; }
.poll-total-votes { font-size: 11px; color: #a99fcf; margin-top: 4px; }

/* ---------- Расширенный эмодзи-пикер с вкладками ---------- */
.emoji-picker-panel { border-top: 1px solid rgba(255,255,255,0.08); }
.emoji-picker-tabs { display: flex; gap: 4px; padding: 8px 12px 0; }
.emoji-picker-tabs .emoji-tab {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: none;
  color: #a99fcf;
  font-size: 12px;
  cursor: pointer;
}
.emoji-picker-tabs .emoji-tab.is-active { background: rgba(124,92,255,0.25); color: #fff; }

/* ---------- Стикеры и GIF ---------- */
.sticker-panel { border-top: 1px solid rgba(255,255,255,0.08); }
.sticker-panel-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 12px; }
.sticker-tab {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  color: #a99fcf;
  font-size: 12px;
  cursor: pointer;
}
.sticker-tab.is-active { background: rgba(124,92,255,0.25); color: #fff; }
.sticker-add-btn {
  margin-left: auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #eee;
  font-size: 15px;
  cursor: pointer;
}
#sticker-file-input { display: none; }

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 12px 12px;
  max-height: 220px;
  overflow-y: auto;
}
.sticker-grid-empty { grid-column: 1 / -1; text-align: center; color: #a99fcf; font-size: 13px; padding: 20px 0; }
.sticker-grid-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: none;
  cursor: pointer;
  padding: 0;
}
.sticker-grid-item img { width: 100%; height: 100%; object-fit: contain; }
.sticker-grid-item-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Сообщения: стикер и GIF ---------- */
.message-sticker-img { width: 128px; height: 128px; object-fit: contain; display: block; }
.message-row.is-sticker .message-bubble { background: none; padding: 0; box-shadow: none; }
.message-gif-img { max-width: 240px; max-height: 240px; border-radius: 10px; display: block; }

/* ---------- Реакции на сообщения + избранное ---------- */
.message-reactions-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction-pill {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  color: #dcd7f0;
  cursor: pointer;
}
.reaction-pill.is-mine { border-color: #7c5cff; background: rgba(124,92,255,0.25); }

.message-action-btn.is-active { color: #ffd23f; }

.quick-react-popover {
  position: fixed;
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(20,14,34,0.97);
  border: 1px solid rgba(124,92,255,0.3);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  z-index: 200;
}
.quick-react-popover button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 8px;
}
.quick-react-popover button:hover { background: rgba(255,255,255,0.1); }

/* ---------- Папки чатов ---------- */
.folder-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
  overflow-x: auto;
}
.folder-tabs:empty { display: none; }
.folder-tab {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: none;
  color: #a99fcf;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.folder-tab.is-active { background: rgba(124,92,255,0.25); color: #fff; border-color: #7c5cff; }

.folder-create-row { display: flex; gap: 8px; margin-bottom: 16px; }
.folder-create-row input { flex: 1; }

.folder-manage-list { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.folder-manage-item { border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 12px; }
.folder-manage-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.folder-manage-item-name { flex: 1; font-weight: 600; font-size: 14px; }
.folder-manage-item-header .icon-btn { width: 26px; height: 26px; font-size: 13px; }
.folder-chat-checklist { display: flex; flex-direction: column; gap: 4px; }
.folder-chat-checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #dcd7f0;
  cursor: pointer;
}

/* ---------- Боты ---------- */
.bot-token-result { margin: 12px 0; }
.bot-token-value {
  font-family: monospace;
  font-size: 12px;
  background: rgba(255,255,255,0.08);
  padding: 10px 12px;
  border-radius: 8px;
  word-break: break-all;
  user-select: all;
}

/* ---------- Список моих ботов + добавление в группу ---------- */
.bot-mine-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.bot-mine-list:empty { display: none; margin: 0; }
.bot-mine-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  font-size: 13px;
}
.bot-mine-item-name { flex: 1; }
.bot-mine-item-tag { font-size: 10px; color: #a99fcf; background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 999px; }

.bot-add-to-group { margin-top: 12px; }
.bot-add-to-group-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bot-add-to-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  font-size: 13px;
}
.bot-add-to-group-item button:disabled { opacity: 0.5; cursor: default; }

.folder-manage-item-header .icon-btn + .icon-btn { margin-left: -6px; }
