/* ==========================================================================
   Личный кабинет
   ========================================================================== */

.lk {
  --bar-h: 64px;
  --top: calc(var(--stripe-h) + var(--bar-h));
  min-height: 100vh;
  min-height: 100dvh;
}

/* ------------------------------------------------------------------ каркас */

.app-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--bar-h);
  padding: 0 20px 0 24px;
  background: rgba(32, 32, 32, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.app-bar .brand img {
  width: 36px;
  height: 36px;
}
.app-bar .brand__name {
  font-size: 20px;
}
.app-bar__title {
  padding-left: 16px;
  border-left: 1px solid var(--c-border-strong);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text-3);
}
.app-bar__user {
  position: relative;
  margin-left: auto;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 14px;
  transition: background 0.15s;
}
.user-btn:hover,
.user-btn[aria-expanded='true'] {
  background: rgba(255, 255, 255, 0.07);
}
.user-btn__name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.user-btn > svg {
  width: 18px;
  height: 18px;
  color: var(--c-text-3);
}

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #393939;
  box-shadow: var(--shadow-2);
  animation: pop-in 0.15s var(--ease);
}
.menu__head {
  padding: 10px 12px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--c-border);
}
.menu__name {
  font-family: var(--font-display);
}
.menu__email {
  font-size: 13px;
  color: var(--c-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--c-text-2);
  text-align: left;
}
.menu__item:hover,
.menu__item:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.menu__item svg {
  width: 18px;
  height: 18px;
}

.app {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100vh - var(--top));
}
body:not(.lk--app) .app {
  grid-template-columns: minmax(0, 1fr);
}

.app-nav {
  position: sticky;
  top: var(--top);
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: calc(100vh - var(--top));
  padding: 20px 14px;
  border-right: 1px solid var(--c-border);
  overflow-y: auto;
}
.nav-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  transition: border-color 0.15s;
}
.nav-profile:hover {
  border-color: var(--c-border-strong);
}
.nav-profile__text {
  display: grid;
  gap: 4px;
  min-width: 0;
  justify-items: start;
}
.nav-profile__name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 16px;
}
.role {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--c-success-bg);
  color: var(--c-green-soft);
}
.role--admin {
  background: var(--c-info-bg);
  color: #8fe8f3;
}
/* «Пользователь» — ещё не игрок сервера */
.role--user {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text-2);
}
.nav-list {
  display: grid;
  gap: 4px;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--c-text-2);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav-link svg {
  width: 21px;
  height: 21px;
  flex: none;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nav-link[aria-current='page'] {
  background: rgba(30, 197, 220, 0.12);
  color: #fff;
}
.nav-link[aria-current='page']::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--grad-y);
}
.nav-link[aria-current='page'] svg {
  color: var(--c-blue-2);
}
.nav-foot {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}
.nav-badge {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.nav-badge--inline {
  margin: 0;
}

.app-main {
  min-width: 0;
  padding: 32px 40px 56px;
  outline: none;
}
.tabbar {
  display: none; /* нижние вкладки — только на планшете и телефоне */
}

.lk-loading,
.lk-center {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--top) - 88px);
}
.lk-noscript {
  padding: 120px 24px;
  text-align: center;
}

/* ----------------------------------------------------------------- страница */

.page {
  max-width: 1120px;
  margin: 0 auto;
}
.page--fill {
  display: flex;
  flex-direction: column;
  max-width: 1320px;
  height: calc(100vh - var(--top) - 32px - 32px);
  height: calc(100dvh - var(--top) - 32px - 32px);
  min-height: 520px;
}
.page--fill .page-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-title {
  font-size: 32px;
}
.page-title:focus {
  outline: none;
}
.page-sub {
  margin-top: 6px;
  color: var(--c-text-2);
}

.card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-1);
}
.card--pad {
  padding: 28px 32px;
}
.card--pad + .card--pad {
  margin-top: 20px;
}
.card--flush {
  margin-bottom: 20px;
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.card-title {
  font-size: 22px;
}
.card-sub {
  margin-top: 6px;
  color: var(--c-text-2);
  font-size: 15px;
}
.card-content {
  margin-top: 20px;
}
.card--danger {
  border-color: rgba(255, 107, 107, 0.25);
}
.card--danger .card-title {
  color: #ffb3b3;
}
.stack {
  display: grid;
  gap: 20px;
  max-width: 820px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 20px;
  margin-top: 56px; /* место для персонажей, выглядывающих над карточками */
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  color: #fff;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.icon-btn svg {
  width: 24px;
  height: 24px;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ------------------------------------------------------- главная: заявка */

/* Как в макете: персонаж стоит на нижнем крае карточки и выглядывает над ней. */
.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 24px;
  min-height: 250px;
  margin-top: 44px;
  padding: 32px 36px;
  border-radius: var(--r-xl);
  background: radial-gradient(110% 150% at 100% 100%, rgba(30, 197, 220, 0.26) 0%, rgba(21, 152, 217, 0.08) 40%, rgba(0, 0, 0, 0) 70%), var(--c-surface);
}
.hero-card--approved {
  background: radial-gradient(110% 150% at 100% 100%, rgba(31, 152, 55, 0.3) 0%, rgba(31, 152, 55, 0.08) 40%, rgba(0, 0, 0, 0) 70%), var(--c-surface);
}
.hero-card--rejected {
  background: radial-gradient(110% 150% at 100% 100%, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.05) 40%, rgba(0, 0, 0, 0) 70%), var(--c-surface);
}
.hero-card--loading {
  min-height: 250px;
  border-radius: var(--r-xl);
}
.hero-card__body {
  align-self: center;
}
.hero-card__title {
  margin: 14px 0 8px;
  font-size: 28px;
}
.hero-card__text {
  max-width: 560px;
  color: var(--c-text-2);
  overflow-wrap: anywhere;
}
.hero-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-card__art {
  position: absolute;
  right: 28px;
  bottom: 0;
  width: auto;
  height: calc(100% + 44px);
  max-width: 320px;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.mini-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 480px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.mini-progress__bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}
.mini-progress__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--c-text-3);
}
.is-done .mini-progress__bar {
  background: var(--c-green);
}
.is-current .mini-progress__bar {
  background: var(--grad);
  animation: pulse 1.6s ease-in-out infinite;
}
.is-fail .mini-progress__bar {
  background: var(--c-danger);
}
.is-done .mini-progress__label,
.is-current .mini-progress__label,
.is-fail .mini-progress__label {
  color: #fff;
}
@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

/* ------------------------------------------------------------ плитки */

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 230px;
  padding: 26px 28px;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 197, 220, 0.35);
}
.tile__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--c-info-bg);
  color: var(--c-blue-2);
}
.tile__icon svg {
  width: 24px;
  height: 24px;
}
.tile__row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tile__name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
}
.tile__muted {
  display: block;
  color: var(--c-text-3);
  font-size: 14px;
}
.tile__title {
  margin-top: 6px;
  font-size: 22px;
}
.tile__text {
  color: var(--c-text-2);
}
.tile__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-weight: 600;
  color: var(--c-blue-2);
}
.tile__meta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}
.tile:hover .tile__meta svg {
  transform: translateX(3px);
}
.tile--art .tile__text {
  max-width: 50%;
}
.tile__art {
  position: absolute;
  right: 18px;
  bottom: 0;
  width: auto;
  height: calc(100% + 30px);
  max-width: 44%;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  transform-origin: bottom center;
  transition: transform 0.3s var(--ease);
}
.tile:hover .tile__art {
  transform: scale(1.05);
}
.tile--stat {
  min-height: 200px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
}

.list-card {
  padding: 20px 20px 12px;
}
.list-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 12px;
}
.list-card__head h2 {
  font-size: 20px;
}
.list-card__head .link-btn {
  font-size: 14px;
}

/* ---------------------------------------------------------------- списки */

.list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--r-md);
  transition: background 0.15s;
}
.row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.row[aria-current='true'] {
  background: rgba(30, 197, 220, 0.12);
  box-shadow: inset 3px 0 0 var(--c-blue-2);
}
.row__avatar {
  position: relative;
}
.online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--c-surface);
  border-radius: 50%;
  background: var(--c-green-soft);
}
.row__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.row__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.row__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.row__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: var(--c-text-3);
}
.row--unread .row__text {
  color: var(--c-text);
}
.row__side {
  display: grid;
  justify-items: end;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-3);
  white-space: nowrap;
}
.row__side .nav-badge {
  margin: 0;
}
.dot--new {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-blue-2);
  box-shadow: 0 0 0 4px rgba(30, 197, 220, 0.18);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text-2);
}
.pill--pending {
  background: var(--c-warning-bg);
  color: #ffd98a;
}
.pill--approved {
  background: var(--c-success-bg);
  color: var(--c-green-soft);
}
.pill--rejected {
  background: var(--c-danger-bg);
  color: #ffb3b3;
}

/* Вкладки не прокручиваются вбок: если не влезают, переносятся на вторую строку
   и растягиваются, чтобы ряды были ровными. */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--c-field);
}
.tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  white-space: nowrap;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-3);
  transition: background 0.15s, color 0.15s;
}
.tabs__tab[aria-selected='true'] {
  background: var(--c-surface-3);
  color: #fff;
}
.tabs__tab:not([aria-selected='true']):hover {
  color: #fff;
}
.tabs__count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.search {
  position: relative;
}
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--c-text-3);
  pointer-events: none;
}
.search .input {
  min-height: 44px;
  padding-left: 42px;
  font-size: 15px;
}

/* ---------------------------------------------------- список | карточка */

.split {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 20px;
  flex: 1;
  min-height: 0;
}
.split__list,
.split__detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.split__tools {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--c-border);
}
.split__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  overscroll-behavior: contain;
}
.split__detail > .state {
  flex: 1;
}

.detail {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 30px 32px;
}
.detail__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}
.detail__back {
  display: none;
}
.detail__who {
  flex: 1;
  min-width: 0;
}
.detail__name {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.detail__meta {
  margin-top: 4px;
  font-size: 14px;
  color: var(--c-text-3);
}

.details {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px 24px;
  margin: 0;
}
.details dt {
  color: var(--c-text-3);
  font-size: 15px;
}
.details dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Выбор «есть лицензия / нет лицензии» в анкете */
.choices {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.choices > legend {
  padding: 0;
  margin-bottom: 8px;
}
.choices__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: var(--c-field);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.choice:hover {
  border-color: rgba(255, 255, 255, 0.28);
}
.choice:has(input:checked) {
  border-color: rgba(30, 197, 220, 0.65);
  background: var(--c-info-bg);
}
.choice input {
  appearance: none;
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: var(--c-surface);
  cursor: pointer;
}
.choice input:checked {
  border-color: transparent;
  background: var(--grad);
}
.choice input:checked::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.choice input:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}
.choice__body {
  display: grid;
  gap: 4px;
}
.choice__title {
  font-weight: 600;
}
.choice__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-text-3);
}
.field.has-error .choice {
  border-color: var(--c-danger);
}

/* Команда для консоли сервера в одобренной заявке */
.cmd {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
}
.cmd__title {
  font-weight: 600;
}
.cmd__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cmd__code {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--c-field);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  overflow-wrap: anywhere;
  user-select: all;
}

.review {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.12);
}
.review__title {
  font-size: 20px;
}
.review .actions-row .btn {
  flex: 1 1 180px;
}

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--c-info-bg);
  line-height: 1.5;
}
.card--flush .callout {
  margin-top: 0;
}
.callout > svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--c-blue-2);
}
.callout--success {
  background: var(--c-success-bg);
}
.callout--success > svg {
  color: var(--c-green-soft);
}
.callout--danger {
  background: var(--c-danger-bg);
}
.callout--danger > svg {
  color: var(--c-danger);
}
.callout__title {
  margin-bottom: 4px;
  font-weight: 700;
}
.callout__quote {
  margin: 8px 0;
  padding-left: 12px;
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.callout .link {
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.12);
  color: var(--c-text-3);
}
.step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
}
.step__num svg {
  width: 18px;
  height: 18px;
}
.step__title {
  display: block;
  font-weight: 700;
  color: #fff;
}
.step__date {
  display: block;
  font-size: 13px;
}
.step--done .step__num {
  background: var(--c-green);
  color: #fff;
}
.step--current {
  border-color: rgba(30, 197, 220, 0.5);
}
.step--current .step__num {
  background: var(--grad);
  color: #fff;
}
.step--fail {
  border-color: rgba(255, 107, 107, 0.45);
}
.step--fail .step__num {
  background: var(--c-danger-strong);
  color: #fff;
}
.card--pad .actions-row {
  margin-top: 24px;
}

/* ---------------------------------------------------------------- формы */

.form {
  display: grid;
  gap: 20px;
}
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form .actions-row {
  margin-top: 4px;
}

.avatar-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 6px;
  border-radius: var(--r-md);
}
.avatar-edit__side {
  display: grid;
  gap: 10px;
  flex: 1 1 260px;
}
.avatar-edit.is-dragover {
  outline: 2px dashed var(--c-blue-2);
  outline-offset: 4px;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--c-field);
}
.segmented button {
  position: relative;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--c-text-3);
}
.segmented button[aria-pressed='true'] {
  background: var(--grad);
  color: #fff;
}

.segmented button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* «Создатель» — владелец сайта, выше админа */
.role--creator {
  background: linear-gradient(90deg, rgba(242, 193, 78, 0.22), rgba(255, 150, 60, 0.22));
  color: #ffd66b;
}

/* Права админа (видит и меняет только создатель) */
.perms__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.perms__item {
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-field);
}
.perms__item:has(input:checked) {
  border-color: rgba(30, 197, 220, 0.45);
}
.perms__title {
  display: block;
  font-weight: 600;
}
.perms__text {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--c-text-3);
}

.detail__foot {
  margin-top: 28px;
}

/* Связь с Minecraft-сервером (RCON) во вкладке «Сервер» у админа */
.rcon {
  display: grid;
  gap: 14px;
}
.rcon .callout {
  margin-top: 0;
}
.rcon .cmd {
  margin-top: 0;
}
.rcon__reply {
  color: var(--c-text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rcon__reply--error {
  color: var(--c-danger);
}
.how-list--plain {
  margin: 0;
  padding-left: 22px;
  list-style: decimal;
  color: var(--c-text-2);
  line-height: 1.55;
}
.inline-code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--c-field);
  color: var(--c-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

/* Обрезка аватарки */
.crop {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.crop__stage {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-field);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.crop__stage.is-dragging {
  cursor: grabbing;
}
.crop__stage:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
}
.crop__canvas {
  display: block;
  width: 100%;
  height: 100%;
}
/* Затемнение вокруг круга — так аватарку увидят другие */
.crop__mask {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.55);
  outline: 2px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
}
.crop__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 100%);
}
.crop__range {
  flex: 1;
  accent-color: var(--c-blue-2);
}
.crop__hint {
  text-align: center;
}
.crop .modal__actions {
  justify-self: stretch;
}

/* ---------------------------------------------------------------- вход */

.gate {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 480px);
  margin-top: 90px;
  padding: 100px 36px 32px;
  text-align: center;
}
.gate__logo {
  position: absolute;
  top: -84px;
  left: 50%;
  width: 170px;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.4));
}
.gate__title {
  font-size: 30px;
}
.gate__text {
  color: var(--c-text-2);
}
.gate__actions {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}
.gate__back {
  margin-top: 6px;
  font-size: 15px;
}
.gate__slot {
  display: grid;
  gap: 14px;
  width: 100%;
}
.gate__form {
  text-align: left;
}

/* ---------------------------------------------------------------- вкладка «Сервер» */

.server-address {
  margin-bottom: 8px;
}
.cmd__code--big {
  padding: 14px 18px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.how-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.how-list__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.how-list__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-info-bg);
  color: #8fe8f3;
  font-family: var(--font-display);
}
.how-list__title {
  display: block;
  font-weight: 600;
}
.how-list__text {
  display: block;
  margin-top: 2px;
  color: var(--c-text-2);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.server-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--c-blue-2);
  border-radius: var(--r-sm);
  background: var(--c-field);
  color: var(--c-text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.server-card .actions-row {
  margin-top: 20px;
}

.packs {
  display: grid;
  gap: 14px;
}
.pack {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
}
.pack__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.pack__title {
  font-size: 18px;
}
.pack--admin .pack__head .pill {
  margin-left: auto;
}
.pack__launcher {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text-2);
}
.pack__launcher--prism {
  background: rgba(106, 180, 255, 0.14);
  color: #a9d1ff;
}
.pack__launcher--curseforge {
  background: rgba(241, 100, 54, 0.16);
  color: #ffb08f;
}
.pack__launcher--modrinth {
  background: rgba(27, 217, 106, 0.14);
  color: #7ff0ae;
}
.pack__meta {
  color: var(--c-text-3);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.pack__desc {
  color: var(--c-text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pack__help summary {
  width: max-content;
  color: var(--c-blue-2);
  font-weight: 600;
  cursor: pointer;
}
.pack__help ol {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--c-text-2);
  font-size: 15px;
}

.progress {
  display: grid;
  gap: 6px;
}
.progress__track {
  height: 8px;
  border-radius: 999px;
  background: var(--c-field);
  overflow: hidden;
}
.progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  transition: width 0.2s linear;
}
.progress__text {
  color: var(--c-text-3);
  font-size: 13px;
}

/* ---------------------------------------------------------------- состояния */

.state {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: 100%;
  padding: 48px 24px;
  text-align: center;
}
.state--compact {
  padding: 28px 16px;
}
.state__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-blue-2);
}
.state--compact .state__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}
.state__icon svg {
  width: 34px;
  height: 34px;
}
.state__icon img {
  width: 60%;
  height: auto;
  opacity: 0.9;
}
.state__title {
  font-family: var(--font-display);
  font-size: 21px;
}
.state--compact .state__title {
  font-size: 17px;
}
.state__text {
  max-width: 440px;
  color: var(--c-text-2);
}
.state .btn {
  margin-top: 6px;
}
.state--error .state__icon {
  color: var(--c-danger);
}

.skeleton {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.skeleton-list {
  display: grid;
  gap: 8px;
  padding: 4px;
}
.skeleton-list .skeleton {
  height: 64px;
}
.skeleton-list--tall .skeleton {
  height: 180px;
}

/* ------------------------------------------------------------------ чат */

.chat-card {
  flex: 1;
  min-height: 0;
}
.chat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  min-height: 72px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--c-border);
}
.chat__back {
  display: none;
}
.chat__avatar img {
  width: 44px;
  height: 44px;
}
.chat__avatar--brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 28%;
  background: var(--c-header);
}
.chat__avatar--brand img {
  width: 34px;
  height: 34px;
}
.chat__head-text {
  flex: 1;
  min-width: 0;
}
.chat__title {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat__subtitle {
  font-size: 14px;
  color: var(--c-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat__subtitle.is-online {
  color: var(--c-green-soft);
}
.chat__subtitle.is-online::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}
.chat__actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.chat__scroller {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 24px 12px;
}
.chat__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 100%;
  justify-content: flex-end;
}
.chat__more {
  align-self: center;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-2);
}
.chat__more:hover {
  color: #fff;
}
.chat__day {
  position: sticky;
  top: 0;
  z-index: 1;
  align-self: center;
  margin: 12px 0 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(58, 58, 58, 0.9);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-2);
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: min(74%, 680px);
}
.msg + .msg--first {
  margin-top: 10px;
}
.msg--mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg__avatar {
  width: 32px;
  flex: none;
}
.msg__avatar .avatar {
  width: 32px;
  height: 32px;
  font-size: 32px;
}
.msg:not(.msg--last) .msg__avatar {
  visibility: hidden;
}
.msg__body {
  min-width: 0;
}
.msg__author {
  margin: 0 0 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-blue-2);
}
.msg__bubble {
  padding: 9px 14px 7px;
  border-radius: 18px;
  background: var(--c-surface-3);
  font-size: 15.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg--mine .msg__bubble {
  background: var(--grad);
}
.msg--first:not(.msg--last) .msg__bubble {
  border-bottom-left-radius: 6px;
}
.msg:not(.msg--first):not(.msg--last) .msg__bubble {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.msg--last:not(.msg--first) .msg__bubble {
  border-top-left-radius: 6px;
}
.msg--mine.msg--first:not(.msg--last) .msg__bubble {
  border-radius: 18px 18px 6px 18px;
}
.msg--mine:not(.msg--first):not(.msg--last) .msg__bubble {
  border-radius: 18px 6px 6px 18px;
}
.msg--mine.msg--last:not(.msg--first) .msg__bubble {
  border-radius: 18px 6px 18px 18px;
}
.msg__bubble a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.msg__meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  float: right;
  margin: 6px 0 -2px 12px;
  font-size: 11px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
}
.msg--mine .msg__meta {
  color: rgba(255, 255, 255, 0.85);
}
.msg__meta svg {
  width: 14px;
  height: 14px;
}
.msg--mine:not(.msg--read) .msg__meta svg {
  opacity: 0.7;
}
.msg--read .msg__meta svg {
  width: 19px;
  height: 19px;
  margin: -3px -2px -3px 0;
  color: #fff;
}
.msg--pending .msg__bubble {
  opacity: 0.7;
}
.msg--failed .msg__bubble {
  background: #5b2a2e;
  box-shadow: inset 0 0 0 1.5px var(--c-danger);
}
.msg__retry {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-danger);
}
.msg__retry button {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}
.msg--system {
  align-self: center;
  max-width: min(86%, 560px);
  margin: 10px 0;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.chat__jump {
  position: absolute;
  right: 22px;
  bottom: 92px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--grad);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.chat__jump svg {
  width: 16px;
  height: 16px;
}

.chat__banner {
  padding: 10px 18px;
  background: var(--c-warning-bg);
  color: #ffe6a8;
  font-size: 14px;
  text-align: center;
}

.composer {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex: none;
  padding: 12px 14px;
  border-top: 1px solid var(--c-border);
  background: rgba(0, 0, 0, 0.1);
}
.composer__input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  max-height: 180px;
  padding: 12px 16px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: var(--c-field);
  color: #fff;
  font-size: 15.5px;
  line-height: 22px;
  resize: none;
  overflow-y: auto;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.composer__input::placeholder {
  color: var(--c-text-3);
}
.composer__input:focus {
  outline: none;
  border-color: var(--c-blue-2);
  box-shadow: 0 0 0 3px rgba(30, 197, 220, 0.2);
}
.composer__counter {
  position: absolute;
  right: 76px;
  top: -24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #3a3a3a;
  font-size: 12px;
  color: var(--c-text-3);
}
.composer__counter.is-over {
  color: var(--c-danger);
}
.composer__send {
  width: 48px;
  min-height: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--r-md);
}
.composer__send svg {
  width: 22px;
  height: 22px;
}

/* ----------------------------------------------- персонажи над карточками */

.card--art {
  position: relative;
  margin-top: 44px;
}
.card--art .card-head {
  padding-right: 200px;
}
.card__art {
  position: absolute;
  top: -56px;
  right: 28px;
  width: auto;
  height: 160px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.chat-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.chat-wrap__art {
  position: absolute;
  z-index: 2;
  top: -60px;
  right: 28px;
  width: auto;
  height: 132px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.chat-wrap--art .chat__head {
  padding-right: 200px;
}
.chat-wrap--art {
  margin-top: 28px;
}

/* ================================================================ адаптив */

@media (max-width: 1180px) {
  .app {
    grid-template-columns: 232px minmax(0, 1fr);
  }
  .app-main {
    padding: 28px 28px 48px;
  }
  .split {
    grid-template-columns: 320px minmax(0, 1fr);
  }
  .tile__art {
    height: calc(100% + 24px);
    max-width: 42%;
  }
  .tile--art .tile__text {
    max-width: 58%;
  }
}

/* Планшет и телефон: навигация — вкладками снизу */
@media (max-width: 1023px) {
  .lk {
    --bar-h: 58px;
  }
  .app-bar {
    padding: 0 12px 0 16px;
  }
  .app-bar__title {
    display: none;
  }
  .user-btn__name,
  .user-btn > svg {
    display: none;
  }
  .app,
  body:not(.lk--app) .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-nav {
    display: none;
  }
  .app-main {
    padding: 20px 16px calc(96px + env(safe-area-inset-bottom));
  }
  body:not(.lk--app) .app-main {
    padding-bottom: 32px;
  }

  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    /* 4–6 вкладок (у игрока есть «Сервер», у админа — «Люди»): всегда в одну строку */
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(32, 32, 32, 0.94);
    backdrop-filter: saturate(140%) blur(12px);
    border-top: 1px solid var(--c-border);
  }
  .tab {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--c-text-3);
  }
  .tab__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tab__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: min(56px, 100%);
    height: 30px;
    border-radius: 999px;
    transition: background 0.15s;
  }
  .tab__icon svg {
    width: 22px;
    height: 22px;
  }
  .tab[aria-current='page'] {
    color: #fff;
  }
  .tab[aria-current='page'] .tab__icon {
    background: rgba(30, 197, 220, 0.16);
    color: var(--c-blue-2);
  }
  .tab .nav-badge {
    position: absolute;
    top: -4px;
    right: 4px;
    margin: 0;
    min-width: 18px;
    padding: 0 5px;
    font-size: 11px;
    line-height: 16px;
  }

  .page--fill {
    height: calc(100dvh - var(--top) - 20px - 96px);
    min-height: 420px;
  }
  .page-title {
    font-size: 26px;
  }
  .page-head {
    margin-bottom: 18px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 48px;
  }
  .hero-card {
    grid-template-columns: minmax(0, 1fr) 200px;
    padding: 26px 22px;
  }
  .hero-card__art {
    right: 12px;
    height: calc(100% + 30px);
    max-width: 220px;
  }
  .card--pad {
    padding: 22px 20px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.has-detail .split__list,
  .split:not(.has-detail) .split__detail {
    display: none;
  }
  .detail__back {
    display: grid;
    margin-left: -8px;
  }
  .detail {
    padding: 18px 18px 28px;
  }
  .detail__head {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 8px 14px;
  }
  .detail__head > .pill {
    grid-column: 2 / -1;
    justify-self: start;
  }

  /* чат на весь экран */
  body.lk--chat .app-bar,
  body.lk--chat .stripe,
  body.lk--chat .tabbar,
  body.lk--chat .page-head {
    display: none;
  }
  body.lk--chat .app-main {
    padding: 0;
  }
  body.lk--chat .page--fill {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }
  body.lk--chat .chat-card,
  body.lk--chat .split__detail {
    border: 0;
    border-radius: 0;
  }
  .chat-wrap__art {
    display: none;
  }
  .chat-wrap--art {
    margin-top: 0;
  }
  .chat-wrap--art .chat__head {
    padding-right: 12px;
  }
  body.lk--chat .split {
    gap: 0;
  }
  .chat__back {
    display: grid;
    margin-left: -8px;
  }
  .chat__head {
    padding: 8px 12px calc(8px);
    padding-top: calc(8px + env(safe-area-inset-top));
    min-height: 64px;
    gap: 10px;
  }
  .composer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .choices__row {
    grid-template-columns: 1fr;
  }
  .hero-card {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 60px;
    padding: 24px 20px;
  }
  .hero-card__art {
    top: -58px;
    bottom: auto;
    right: 6px;
    height: 150px;
    max-width: 44%;
  }
  .hero-card__title {
    max-width: calc(100% - 110px);
    font-size: 23px;
  }
  .hero-card__text {
    margin-top: 6px;
  }
  .hero-card__actions .btn {
    flex: 1 1 100%;
  }
  .tile {
    min-height: 0;
    padding: 20px;
  }
  .tile__art {
    top: -40px;
    bottom: auto;
    right: 8px;
    height: 132px;
    max-width: 44%;
  }
  .tile--art .tile__title,
  .tile--art .tile__text {
    max-width: 56%;
  }
  .form__grid {
    grid-template-columns: 1fr;
  }
  .actions-row .btn {
    flex: 1 1 100%;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .card--art {
    margin-top: 56px;
  }
  .card--art .card-head {
    padding-right: 110px;
  }
  .card__art {
    top: -48px;
    right: 10px;
    height: 118px;
  }
  .details {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .details dd {
    margin-bottom: 12px;
  }
  .msg {
    max-width: 86%;
  }
  .msg__avatar {
    display: none;
  }
  .chat__scroller {
    padding: 14px 12px 10px;
  }
  .chat__jump {
    right: 12px;
    bottom: 84px;
  }
  .chat__actions .btn {
    padding: 0 10px;
    font-size: 13px;
  }
  .gate {
    padding: 32px 22px 26px;
  }
}
