/* Чат КИТ: дополнения к дизайн-системе КИТ (style.css копируется из скелета как есть). */

/* Выход — квадратная кнопка со значком «дверь + стрелка вправо» (правило КИТ, эталон auto). */
.topbar-user .logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
}
.topbar-user .logout-btn:hover { color: var(--text-primary); background: var(--page-plane); }
.topbar-user .logout-btn svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Переключатель темы — квадратная кнопка-значок в шапке, как кнопка выхода. */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: 8px; background: none; color: var(--text-secondary);
  cursor: pointer; margin-left: auto; flex: 0 0 32px; padding: 0; }
/* после блока пользователя — вплотную к кнопке выхода (у шапки gap 28px) */
.topbar-user + .theme-btn { margin-left: -16px; }
.theme-btn:hover { color: var(--text-primary); background: var(--page-plane); }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; display: none; }
.theme-btn svg .fill { fill: currentColor; stroke: none; }
.theme-btn[data-mode="auto"] .ic-auto, .theme-btn:not([data-mode]) .ic-auto,
.theme-btn[data-mode="light"] .ic-light, .theme-btn[data-mode="dark"] .ic-dark { display: block; }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* Страница входа */
.login-box { max-width: 420px; margin: 48px auto 0; }
.login-box .field input[type="text"],
.login-box .field input[type="password"] { width: 100%; max-width: none; }
/* Подписи полей — слева от поля, в одну строку (правило КИТ) */
.login-box .field { display: flex; align-items: center; gap: 12px; }
.login-box .field label { min-width: 80px; white-space: nowrap; margin: 0; }
.login-box .field input { flex: 1; }

.stub-note { color: var(--text-secondary); margin: 0; }
