:root {
  color-scheme: dark;
}
html {
  overflow-x: hidden;
}
body {
  overflow-x: clip;
}
.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

/* Hero РІР‚вЂќ bento layout (SaaSFrame 2026: largest cell = primary; raven: one gradient accent) */
.hero-screen {
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(214, 173, 96, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(7, 11, 20, 0) 0%, rgba(7, 11, 20, 1) 100%);
}

.hero-glow {
  animation: hero-glow-pulse 8s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.06);
  }
}

.hero-eyebrow {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  letter-spacing: 0.22em;
}

.hero-cta-primary {
  background: linear-gradient(135deg, #efd28d 0%, #d6ad60 48%, #b8924a 100%);
}

.hero-cta-primary:hover {
  background: linear-gradient(135deg, #f5dfa8 0%, #e0bc78 48%, #c49a52 100%);
}

/* Новый формат главного экрана — элегантный горизонтальный список фактов.
   Чистые строки, спокойный премиум вид. Короткий текст для фото на фоне. */
.hero-manifest {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #e0e0e0;
  align-self: center;
}

@media (min-width: 1024px) {
  .hero-manifest {
    flex-direction: row;
    gap: 1.5rem;
    font-size: 1rem;
    align-self: stretch;
    align-items: center;
  }

  .hero-manifest > div {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 1rem;
  }

  .hero-manifest > div:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.logo-link {
  position: relative;
  z-index: 1;
  display: block;
  flex-shrink: 0;
  margin-left: 4px;
}
.logo-lockup {
  position: relative;
  display: block;
  width: 176px;
  height: 54px;
  overflow: hidden;
  background: transparent;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.48));
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}
.logo-lockup img {
  position: absolute;
  top: -58px;
  left: -29px;
  width: 232px;
  max-width: none;
  pointer-events: none;
  animation: logo-float 4s ease-in-out infinite;
}
.logo-link:hover .logo-lockup {
  transform: translateY(-2px) scale(1.025);
  filter: drop-shadow(6px 8px 14px rgba(214, 173, 96, 0.3));
}
@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@media (min-width: 640px) {
  .logo-lockup {
    width: 205px;
    height: 64px;
  }
  .logo-lockup img {
    top: -68px;
    left: -33px;
    width: 270px;
  }
}
.animate-rise {
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  gap: 0.65rem;
  opacity: 1;
  pointer-events: auto;
}
.floating-action {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: #182238;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}
.floating-action:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 173, 96, 0.75);
  color: #e7c680;
}
@media (prefers-reduced-motion: reduce) {
  .floating-action {
    transition: none;
    animation: none;
  }
}

/* Стили для фиксированной иконки телефона и меню */

/* phone-container всегда видим (иконка фиксированная, постоянная) */
.phone-container {
  position: relative;
}

/* Меню раскрывается НАВЕРХ от кнопки (выше по экрану) */
.phone-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 0.65rem;
  flex-direction: column;
  gap: 0.65rem;
}

/* Показать меню при открытии */
.phone-container.open .phone-menu {
  display: flex;
}

/* Пункты меню */
.phone-option {
  width: 3.15rem;
  height: 3.15rem;
}

/* Анимация иконки в крестик */
.phone-toggle .phone-icon {
  display: inline;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.phone-toggle .cross-icon {
  display: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.phone-container.open .phone-toggle .phone-icon {
  display: none;
}
.phone-container.open .phone-toggle .cross-icon {
  display: inline;
}

/* Фиксированная часть (телефон) всегда видна */

/* Стрелка возврата скрыта по умолчанию, появляется после прокрутки */
.back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top.is-visible:hover {
  transform: translateY(-3px);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle,
.mobile-dropdown-toggle {
  display: flex;
  cursor: pointer;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.nav-dropdown-toggle:focus-visible,
.mobile-dropdown-toggle:focus-visible {
  outline: 2px solid #d6ad60;
  outline-offset: 4px;
}
.menu-chevron {
  width: 0.43rem;
  height: 0.43rem;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-dropdown.is-open .nav-dropdown-toggle,
.mobile-dropdown-menu.is-open .mobile-dropdown-toggle {
  color: #d6ad60;
}
.nav-dropdown.is-open .menu-chevron,
.mobile-dropdown-menu.is-open .menu-chevron {
  transform: translateY(0.12rem) rotate(225deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  display: grid;
  min-width: 14rem;
  gap: 0.2rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  background: #101827;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
  text-align: left;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-0.35rem);
  transition:
    visibility 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}
.nav-dropdown.is-open .nav-dropdown-menu {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  padding: 0.65rem 0.75rem;
  border-radius: 0.45rem;
  color: #cbd5e1;
  text-align: left;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.nav-dropdown-menu a:hover {
  background: rgba(214, 173, 96, 0.12);
  color: #efd28d;
}
.mobile-dropdown-toggle {
  width: 100%;
  justify-content: space-between;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
}
.mobile-dropdown-list {
  display: none;
  gap: 0.2rem;
  margin-top: 0.5rem;
  padding: 0;
  color: #cbd5e1;
  text-align: left;
}
.mobile-dropdown-menu.is-open .mobile-dropdown-list {
  display: grid;
}
.mobile-dropdown-list a {
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  text-align: left;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.mobile-dropdown-list a:hover {
  background: rgba(214, 173, 96, 0.1);
  color: #efd28d;
}
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator {
  display: inline;
}

/* Auth — кнопки с loader */
.auth-submit {
  position: relative;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
}
.auth-submit__loader {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 2px solid rgba(7, 11, 20, 0.2);
  border-top-color: #070b14;
  opacity: 0;
}
.auth-submit.is-loading .auth-submit__text {
  opacity: 0;
}
.auth-submit.is-loading .auth-submit__loader {
  opacity: 1;
  animation: order-spin 0.75s linear infinite;
}

/* ON-LINE ЗАКАЗ — модальное окно */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 100110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.order-modal.is-open {
  display: flex;
}
.is-hidden {
  display: none !important;
}
.order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(6px);
}
.order-modal__panel {
  position: relative;
  width: 100%;
  max-width: 34rem;
  max-height: min(92vh, 52rem);
  overflow: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, #111a2b 0%, #0d1422 55%, #0a101b 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  padding: 1.5rem 1.25rem 1.25rem;
}
.order-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.order-modal__close:hover {
  color: #fff;
  border-color: rgba(214, 173, 96, 0.45);
  background: rgba(214, 173, 96, 0.08);
}
.order-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d6ad60;
}
.order-modal__title {
  margin: 0 0 1.25rem;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  color: #fff;
}
.order-form {
  display: grid;
  gap: 1rem;
}
.order-field {
  display: grid;
  gap: 0.45rem;
}
.order-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}
.order-required {
  color: #d6ad60;
}
.order-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #070b14;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: #f8fafc;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.order-input:focus {
  border-color: rgba(214, 173, 96, 0.65);
  box-shadow: 0 0 0 3px rgba(214, 173, 96, 0.12);
}
.order-textarea {
  resize: vertical;
  min-height: 5.5rem;
}
.order-phone {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #070b14;
  padding: 0 0.85rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.order-phone:focus-within {
  border-color: rgba(214, 173, 96, 0.65);
  box-shadow: 0 0 0 3px rgba(214, 173, 96, 0.12);
}
.order-phone__prefix {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #d6ad60;
  user-select: none;
}
.order-phone__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.85rem 0;
  font-size: 0.95rem;
  color: #f8fafc;
  outline: none;
}
.order-upload {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.order-upload__dropzone {
  border: 1px dashed rgba(214, 173, 96, 0.35);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.95rem;
  text-align: center;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.order-upload__dropzone.is-dragover {
  border-color: rgba(214, 173, 96, 0.75);
  background: rgba(214, 173, 96, 0.08);
}
.order-upload__hint {
  margin: 0;
  font-size: 0.82rem;
  color: #e2e8f0;
}
.order-upload__sub {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.72rem;
  color: #64748b;
}
.order-upload__pick,
.order-upload__cam-btn,
.order-camera__btn,
.order-success__close {
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}
.order-upload__pick:hover,
.order-upload__cam-btn:hover,
.order-camera__btn:hover,
.order-success__close:hover {
  border-color: rgba(214, 173, 96, 0.55);
  color: #efd28d;
  background: rgba(214, 173, 96, 0.08);
}
.order-upload__camera {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.order-upload__list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.order-upload__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.55rem;
}
.order-upload__thumb {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.45rem;
  object-fit: cover;
  background: #111827;
}
.order-upload__meta {
  min-width: 0;
  flex: 1;
}
.order-upload__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: #e2e8f0;
}
.order-upload__size {
  font-size: 0.68rem;
  color: #64748b;
}
.order-upload__remove {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.2rem;
}
.order-upload__remove:hover {
  color: #f87171;
}
.order-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #94a3b8;
}
.order-consent input {
  margin-top: 0.15rem;
  accent-color: #d6ad60;
}
.order-consent a {
  color: #d6ad60;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.order-error {
  margin: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  padding: 0.65rem 0.8rem;
  font-size: 0.78rem;
  color: #fecaca;
}

.order-submit {
  position: relative;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 0;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #d6ad60, #c9a24e);
  color: #070b14;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}
.order-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.order-submit:disabled {
  cursor: wait;
  opacity: 0.92;
}
.order-submit__loader {
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid rgba(7, 11, 20, 0.2);
  border-top-color: #070b14;
  opacity: 0;
  pointer-events: none;
}
.order-submit.is-loading .order-submit__text {
  opacity: 0;
}
.order-submit.is-loading .order-submit__loader {
  opacity: 1;
  animation: order-spin 0.75s linear infinite;
}
@keyframes order-spin {
  to {
    transform: rotate(360deg);
  }
}
.order-success {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
}

.order-success__icon {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}
.order-success__title {
  margin: 0 0 0.65rem;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 1.35rem;
  color: #fff;
}
.order-success__text {
  margin: 0 auto 1.25rem;
  max-width: 24rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #cbd5e1;
}
.order-success__close {
  min-width: 9rem;
}
.order-camera {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  border-radius: 1.1rem;
  background: #070b14;
  padding: 0.85rem;
}
.order-camera:not(.is-hidden) {
  display: grid;
}
.order-camera__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.order-camera__close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
}
.order-camera__video {
  width: 100%;
  max-height: 18rem;
  border-radius: 0.75rem;
  background: #111827;
  object-fit: cover;
}
.order-camera__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.order-camera__btn--primary {
  border-color: rgba(214, 173, 96, 0.45);
  color: #efd28d;
}
.order-camera__btn--danger {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
@media (prefers-reduced-motion: reduce) {
  .order-submit.is-loading .order-submit__loader {
    animation: none;
    border-top-color: transparent;
    border-right-color: #070b14;
  }
}

.creator-action-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(214, 173, 96, 0.35);
  background: rgba(7, 11, 20, 0.55);
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.creator-action-card:hover {
  border-color: rgba(239, 210, 141, 0.8);
  color: #efd28d;
  transform: translateY(-1px);
}

.creator-tile {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: 1.25rem;
  min-height: 11rem;
}

.creator-tile__label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d6ad60;
}

.creator-tile__title {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.creator-tile__text {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #94a3b8;
}

.creator-tile__status {
  align-self: flex-start;
  border-radius: 999px;
  border: 1px solid rgba(214, 173, 96, 0.35);
  padding: 0.2rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #efd28d;
}

.creator-tile--link {
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.creator-tile--link:hover {
  border-color: rgba(239, 210, 141, 0.45);
  transform: translateY(-1px);
}

.admin-shell {
  min-height: 100vh;
  background: #070b14;
}

.admin-shell__main {
  min-height: 100vh;
}

.admin-shell--with-dock .admin-shell__main {
  padding-left: 4.5rem;
}

.admin-dock {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 45;
  display: flex;
  width: 4.5rem;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.4rem;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.98), rgba(8, 12, 22, 0.98));
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
}

.admin-dock__brand {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  text-align: center;
}

.admin-dock__brand-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(214, 173, 96, 0.35);
  background: linear-gradient(145deg, rgba(214, 173, 96, 0.22), rgba(214, 173, 96, 0.08));
  color: #efd28d;
}

.admin-dock__brand-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.admin-dock__brand-label {
  display: none;
}

.admin-dock__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  overflow: visible;
  padding: 0.1rem 0;
}

.admin-dock__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-dock__item {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  flex-shrink: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.05rem;
  color: #f8fafc;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.admin-dock__item:hover,
.admin-dock__item:focus-visible {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  outline: none;
}

.admin-dock__item--active {
  border-color: rgba(239, 210, 141, 0.55);
  box-shadow:
    0 0 0 1px rgba(239, 210, 141, 0.2),
    0 12px 26px rgba(0, 0, 0, 0.3);
}

.admin-dock__item--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.admin-dock__item--disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.admin-dock__lock {
  position: absolute;
  right: -0.15rem;
  bottom: -0.15rem;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.95);
  color: #94a3b8;
  pointer-events: none;
}

.admin-dock__lock svg {
  width: 0.58rem;
  height: 0.58rem;
}

.admin-dock__icon {
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
}

.admin-dock__icon svg {
  width: 100%;
  height: 100%;
}

.admin-dock__item--tone-gold {
  background: linear-gradient(145deg, #9a7b3c, #6d5528);
}

.admin-dock__item--tone-blue {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
}

.admin-dock__item--tone-violet {
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
}

.admin-dock__item--tone-emerald {
  background: linear-gradient(145deg, #059669, #047857);
}

.admin-dock__item--tone-rose {
  background: linear-gradient(145deg, #e11d48, #be123c);
}

.admin-dock__item--tone-slate {
  background: linear-gradient(145deg, #334155, #1e293b);
}

.admin-dock__tooltip {
  position: absolute;
  left: calc(100% + 0.75rem);
  top: 50%;
  z-index: 120;
  transform: translateY(-50%);
  white-space: nowrap;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.16s ease;
}

.admin-dock__tooltip::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: rgba(15, 23, 42, 0.98);
}

@media (hover: hover) and (pointer: fine) {
  .admin-dock__item:hover .admin-dock__tooltip,
  .admin-dock__item:focus-visible .admin-dock__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(6px, -50%);
  }
}

.admin-dock__label {
  display: none;
  max-width: 4.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: #e2e8f0;
}

@media (max-width: 767px) {
  /* Боковая панель: только иконки, всегда видна слева, без стрелок */
  .admin-shell--with-dock .admin-shell__main {
    padding-left: 3.65rem;
    padding-bottom: 0;
  }

  .admin-dock {
    inset: 0 auto 0 0;
    top: 0;
    bottom: 0;
    width: 3.65rem;
    height: 100%;
    max-height: 100dvh;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.35rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 0;
    border-radius: 0;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.28);
    transform: none;
  }

  .admin-dock__brand {
    display: grid;
  }

  .admin-dock__nav,
  .admin-dock__footer {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    width: 100%;
    padding-top: 0;
    border-top: 0;
  }

  .admin-dock__footer {
    margin-top: auto;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .admin-dock__tooltip {
    display: none;
  }

  .admin-dock__item {
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    min-width: 2.55rem;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 0.8rem;
  }

  .admin-dock__icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  /* Только иконки — без текстовых подписей */
  .admin-dock__label {
    display: none !important;
  }

  .admin-dock__item--site {
    flex: 0 0 auto;
  }

  .cabinet-page {
    padding: 1rem 0.85rem 1.35rem;
  }

  .cabinet-page__title {
    font-size: 1.4rem;
  }

  .cabinet-analytics__grid,
  .cabinet-stats {
    grid-template-columns: 1fr;
  }

  .cabinet-analytics__value {
    font-size: 1.45rem;
  }

  .cabinet-modal {
    padding: 0;
    align-items: stretch;
  }

  .cabinet-modal__panel {
    width: 100%;
    max-height: none;
    min-height: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 1.1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .cabinet-analytics__grid,
  .cabinet-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-dock__item,
  .admin-dock__tooltip {
    transition: none;
  }
}

.cabinet-analytics {
  margin-top: 1.75rem;
}

.cabinet-analytics__updated {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.cabinet-analytics__section-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.cabinet-analytics__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cabinet-analytics__card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.1rem 1.15rem;
}

.cabinet-analytics__card--accent {
  border-color: rgba(214, 173, 96, 0.35);
  background: linear-gradient(145deg, rgba(214, 173, 96, 0.14), rgba(255, 255, 255, 0.03));
}

.cabinet-analytics__value {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: #f8fafc;
}

.cabinet-analytics__label {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.cabinet-analytics__table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cabinet-analytics__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cabinet-analytics__table th,
.cabinet-analytics__table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cabinet-analytics__table th {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
}

.cabinet-analytics__table tbody tr:last-child td {
  border-bottom: 0;
}

.cabinet-analytics__table td:last-child {
  font-weight: 700;
  color: #f8fafc;
}

@media (min-width: 768px) {
  .cabinet-analytics__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cabinet-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .cabinet-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cabinet-stat {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem 1.1rem;
}

.cabinet-stat__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f8fafc;
}

.cabinet-stat__label {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.cabinet-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem 1rem 2rem;
  color: #e2e8f0;
  background: #070b14;
}

@media (min-width: 768px) {
  .cabinet-page {
    padding: 2rem 1.25rem 3rem;
  }
}

@media (min-width: 1024px) {
  .admin-shell--with-dock .cabinet-page {
    padding-top: 2.25rem;
  }
}

.cabinet-page__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.cabinet-page__back {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6ad60;
}

.cabinet-page__inner > .cabinet-page__eyebrow:first-child {
  margin-top: 0;
}

.cabinet-page__eyebrow {
  margin-top: 1.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d6ad60;
}

.cabinet-page__title {
  margin-top: 0.5rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
}

.cabinet-page__lead,
.cabinet-page__muted {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

.cabinet-alert {
  margin-top: 1.5rem;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
}

.cabinet-alert--error {
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.cabinet-alert--success {
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #86efac;
}

.cabinet-empty {
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  padding: 1.25rem;
  color: #94a3b8;
}

.cabinet-requests {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.cabinet-request-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.cabinet-request-card:hover {
  border-color: rgba(239, 210, 141, 0.35);
  transform: translateY(-1px);
}

.cabinet-request-card__body {
  flex: 1;
  min-width: 0;
  padding: 1rem 0.35rem 1rem 1.1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.cabinet-request-menu {
  position: relative;
  flex-shrink: 0;
  padding: 0.55rem 0.55rem 0 0;
}

.cabinet-request-menu__toggle {
  display: grid;
  gap: 3px;
  width: 2.25rem;
  height: 2.25rem;
  place-content: center;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cabinet-request-menu__toggle span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #94a3b8;
}

.cabinet-request-menu__toggle:hover,
.cabinet-request-menu__toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
}

.cabinet-request-menu__toggle:hover span,
.cabinet-request-menu__toggle[aria-expanded="true"] span {
  background: #e2e8f0;
}

.cabinet-request-menu__list {
  position: absolute;
  top: calc(100% - 0.15rem);
  right: 0.35rem;
  z-index: 5;
  min-width: 9.5rem;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.cabinet-request-menu__item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  color: #e2e8f0;
  cursor: pointer;
}

.cabinet-request-menu__item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
}

.cabinet-request-menu__item--danger {
  color: #fca5a5;
}

.cabinet-request-menu__item:disabled {
  opacity: 0.6;
  cursor: wait;
}

.cabinet-request-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.cabinet-request-card__head strong {
  color: #f8fafc;
  font-size: 1rem;
}

.cabinet-request-card__phone {
  margin-top: 0.45rem;
  font-weight: 700;
  color: #efd28d;
}

.cabinet-request-card__text {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.cabinet-request-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.cabinet-table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cabinet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cabinet-table th,
.cabinet-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.cabinet-table th {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
}

.cabinet-table__sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #64748b;
}

.cabinet-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
}

.cabinet-badge--online {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
}

.cabinet-btn {
  border-radius: 0.65rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.cabinet-users {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.cabinet-user-card {
  display: grid;
  gap: 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem 1.05rem;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.cabinet-user-card:hover {
  border-color: rgba(239, 210, 141, 0.28);
}

.cabinet-user-card--inactive {
  opacity: 0.72;
}

.cabinet-user-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.cabinet-user-card__head strong {
  font-size: 1rem;
  color: #f8fafc;
  line-height: 1.35;
}

.cabinet-user-card__phone {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.cabinet-user-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
}

.cabinet-user-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cabinet-user-card__actions .cabinet-btn {
  flex: 1 1 8.5rem;
  min-height: 2.5rem;
}

.cabinet-badge--creator {
  color: #fde68a;
  background: rgba(214, 173, 96, 0.16);
  border: 1px solid rgba(214, 173, 96, 0.28);
}

.cabinet-badge--user {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.cabinet-badge--guest {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.cabinet-tracking-note {
  margin: 0 0 1.25rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(214, 173, 96, 0.35);
  background: rgba(214, 173, 96, 0.08);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.cabinet-tracking-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.cabinet-tracking-filters__btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  padding: 0.45rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.cabinet-tracking-filters__btn--active {
  border-color: rgba(214, 173, 96, 0.45);
  background: rgba(214, 173, 96, 0.14);
  color: #fde68a;
}

.cabinet-tracking-list {
  display: grid;
  gap: 0.85rem;
}

.cabinet-tracking-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.1rem;
}

.cabinet-tracking-card--inactive {
  opacity: 0.72;
}

.cabinet-tracking-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cabinet-tracking-card__head strong {
  font-size: 0.95rem;
  color: #f8fafc;
}

.cabinet-tracking-card__title {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #e2e8f0;
}

.cabinet-tracking-card__phone {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.cabinet-tracking-card__text {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.cabinet-tracking-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  color: #64748b;
}

.cabinet-tracking-user {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.1rem;
}

.cabinet-tracking-user--inactive {
  opacity: 0.72;
}

.cabinet-tracking-user__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cabinet-tracking-user__name {
  font-size: 1rem;
  color: #f8fafc;
}

.cabinet-tracking-user__phone {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.cabinet-tracking-user__empty {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.cabinet-tracking-user__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  color: #64748b;
}

.cabinet-tracking-devices {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.cabinet-tracking-device {
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(2, 6, 23, 0.35);
  padding: 0.85rem 0.95rem;
}

.cabinet-tracking-device__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cabinet-tracking-device__user {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

.cabinet-tracking-device__ip {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fde68a;
}

.cabinet-tracking-device__hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.cabinet-tracking-device__grid-span {
  grid-column: 1 / -1;
}

.cabinet-tracking-device__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 0.7rem;
}

.cabinet-tracking-device__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.cabinet-tracking-device__grid strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.cabinet-tracking-device__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem !important;
}

.cabinet-tracking-device__ua {
  font-size: 0.72rem !important;
  line-height: 1.4;
  word-break: break-word;
}

.cabinet-tracking-toolbar {
  margin: 0 0 1rem;
}

.cabinet-tracking-inline-map {
  margin-top: 0.85rem;
}

.cabinet-tracking-inline-map__canvas {
  height: 220px;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cabinet-tracking-inline-map__error {
  margin: 0;
  font-size: 0.8rem;
  color: #fca5a5;
}

.cabinet-tracking-device__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.cabinet-tracking-device__no-coords {
  font-size: 0.78rem;
  color: #94a3b8;
}

.cabinet-btn--sm {
  padding: 0.42rem 0.8rem;
  font-size: 0.72rem;
}

.cabinet-tracking-map {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cabinet-tracking-map__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.cabinet-tracking-map__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f172a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.cabinet-tracking-map__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.35rem;
}

.cabinet-tracking-map__head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
  color: #f8fafc;
}

.cabinet-tracking-map__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.cabinet-tracking-map__close {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.cabinet-tracking-map__info {
  padding: 0.35rem 1.1rem 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.cabinet-tracking-map__info-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.82rem;
}

.cabinet-tracking-map__info-row span {
  color: #64748b;
}

.cabinet-tracking-map__info-row strong {
  color: #e2e8f0;
  line-height: 1.45;
}

.cabinet-tracking-map__info-row--address strong {
  color: #fde68a;
}

.cabinet-tracking-map__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cabinet-tracking-map__accuracy {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  color: #94a3b8;
}

.cabinet-tracking-map__canvas {
  height: 360px;
  margin: 0 1.1rem;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cabinet-tracking-map__pin span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f59e0b;
  border: 3px solid #fff7ed;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35);
}

.cabinet-tracking-map__error {
  margin: 0.65rem 1.1rem 0;
  color: #fca5a5;
  font-size: 0.82rem;
}

.cabinet-tracking-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1rem 1.1rem 1.1rem;
}

@media (max-width: 640px) {
  .cabinet-tracking-device__grid,
  .cabinet-tracking-map__info-row {
    grid-template-columns: 1fr;
  }

  .cabinet-tracking-map__canvas {
    height: 280px;
  }
}

.cabinet-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cabinet-btn--primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1220;
  border-color: transparent;
}

.cabinet-btn--primary:hover {
  filter: brightness(1.05);
}

.cabinet-btn--danger {
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.cabinet-btn--danger:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(248, 113, 113, 0.65);
}

.cabinet-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #e2e8f0;
}

.cabinet-settings {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cabinet-settings__card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.1rem 1.2rem;
}

.cabinet-settings__card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.cabinet-settings__card p,
.cabinet-settings__card li {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
}

.cabinet-settings__card ul {
  padding-left: 1.1rem;
}

.cabinet-settings__card--muted {
  border-style: dashed;
}

.cabinet-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cabinet-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.72);
  cursor: pointer;
}

.cabinet-modal__panel {
  position: relative;
  width: min(100%, 40rem);
  max-height: min(85vh, 44rem);
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f172a;
  padding: 1.25rem 1.35rem;
}

.cabinet-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}

.cabinet-modal__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.cabinet-detail {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.cabinet-detail div {
  display: grid;
  gap: 0.25rem;
}

.cabinet-detail dt {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.cabinet-detail dd {
  color: #e2e8f0;
  line-height: 1.55;
}

.cabinet-detail__message {
  white-space: pre-wrap;
}

.cabinet-detail__files {
  padding-left: 1rem;
}

.header-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.header-presence-dot {
  position: absolute;
  right: -0.04rem;
  bottom: -0.04rem;
}

.header-online-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #22c55e;
  animation: header-online-pulse 1.8s ease-in-out infinite;
}

@keyframes header-online-pulse {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.account-avatar {
  position: relative;
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  border: 2px solid rgba(214, 173, 96, 0.55);
  background: linear-gradient(145deg, rgba(214, 173, 96, 0.35), rgba(7, 11, 20, 0.95));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.account-avatar--sm {
  width: 2.25rem;
  height: 2.25rem;
}

.account-avatar--lg {
  width: 3.25rem;
  height: 3.25rem;
}

.account-avatar__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
}

.cabinet-profile-avatar {
  width: 5rem;
  height: 5rem;
}

.account-avatar__img--logo {
  object-fit: contain;
  padding: 0.18rem;
  background: rgba(8, 15, 28, 0.94);
}

.account-avatar__initials {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  pointer-events: none !important;
}

.account-avatar:has(.account-avatar__img:not(.hidden)) .account-avatar__initials {
  display: none !important;
}

.account-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  max-width: 15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.28rem 0.55rem 0.28rem 0.3rem;
  color: #f8fafc;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.account-dropdown__toggle:hover,
.account-dropdown.is-open .account-dropdown__toggle,
.mobile-dropdown-menu.is-open .account-dropdown__toggle--mobile {
  border-color: rgba(214, 173, 96, 0.55);
  background: rgba(214, 173, 96, 0.08);
}

.account-dropdown__toggle--mobile {
  width: 100%;
  max-width: none;
  border-radius: 0.85rem;
  padding: 0.55rem 0.7rem;
}

.account-dropdown__meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.account-dropdown__name {
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  color: #f8fafc;
}

.account-dropdown__toggle--mobile .account-dropdown__name {
  max-width: none;
}

.account-dropdown__role {
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6ad60;
}

.account-dropdown-menu {
  right: 0;
  left: auto;
  min-width: 13.5rem;
}

.account-dropdown-menu__caption {
  margin: 0 0 0.35rem;
  padding: 0 0.75rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.account-dropdown-menu__soon {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #94a3b8 !important;
  pointer-events: none;
}

.account-dropdown-menu__soon span {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.1rem 0.4rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-dropdown__logout {
  width: 100%;
  margin-top: 0.2rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  padding: 0.75rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fca5a5;
  cursor: pointer;
}

.account-dropdown__logout:hover {
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-file-input {
  position: fixed;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
}

/* Слои поверх страницы держатся выше шапки: при открытом бургере
   .site-header.is-menu-open поднимается на z-index 100000 (header.css),
   и окна на прежних 108-220 уходили под меню. */
.chat-sheet {
  position: fixed;
  inset: 0;
  z-index: 100120;
  pointer-events: none;
}

.chat-sheet.is-open {
  pointer-events: auto;
}

.chat-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.chat-sheet.is-open .chat-sheet__backdrop {
  opacity: 1;
}

.chat-sheet__panel {
  position: absolute;
  top: 10%;
  left: 10%;
  display: flex;
  flex-direction: column;
  width: 80%;
  height: 80vh;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(214, 173, 96, 0.28);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(214, 173, 96, 0.14), transparent 55%),
    linear-gradient(165deg, #141f33 0%, #0d1424 48%, #080f1c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(214, 173, 96, 0.12);
  transform: translateY(calc(100% + 12vh));
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-sheet__layout {
  display: flex;
  height: 100%;
  min-height: 0;
}

.chat-sheet__sidebar {
  display: flex;
  flex-direction: column;
  width: 17.5rem;
  flex: 0 0 17.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 20, 0.55);
}

.chat-sheet--creator-list .chat-sheet__layout {
  position: relative;
}

.chat-sheet--creator-list .chat-sheet__sidebar {
  width: 100%;
  flex-basis: 100%;
  border-right: 0;
}

.chat-sheet--creator-list .chat-sheet__sidebar-head {
  padding-right: 4rem;
}

.chat-sheet--creator-list .chat-sheet__main {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chat-sheet--creator-list .chat-sheet__fx,
.chat-sheet--creator-list .chat-sheet__header-start,
.chat-sheet--creator-list .chat-sheet__messages-wrap,
.chat-sheet--creator-list .chat-attach-menu,
.chat-sheet--creator-list .chat-sheet__composer {
  display: none;
}

.chat-sheet--creator-list .chat-sheet__header {
  position: absolute;
  top: 0;
  right: 0;
  justify-content: flex-end;
  width: auto;
  border-bottom: 0;
  background: transparent;
  pointer-events: none;
}

.chat-sheet--creator-list .chat-sheet__close {
  pointer-events: auto;
}
.chat-sheet--creator-thread .chat-sheet__sidebar {
  display: none;
}

.chat-sheet--creator-thread .chat-sheet__main {
  width: 100%;
  flex-basis: 100%;
}

.chat-sheet__sidebar-head {
  padding: 1rem 1rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-thread-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chat-thread-list__empty {
  padding: 1rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
}

.chat-thread-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.chat-thread-row:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.chat-thread-row.is-active {
  border-color: rgba(214, 173, 96, 0.35);
  background: rgba(214, 173, 96, 0.1);
}

.chat-thread-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  border: none;
  border-radius: 0.85rem;
  background: transparent;
  padding: 0.65rem 0.35rem 0.65rem 0.7rem;
  text-align: left;
  cursor: pointer;
}

.chat-thread-item__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.45rem 0.5rem 0.45rem 0;
  flex-shrink: 0;
}

.chat-thread-menu {
  position: relative;
}

.chat-thread-menu__toggle {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0;
}

.chat-thread-menu__toggle:hover,
.chat-thread-menu.is-open .chat-thread-menu__toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.chat-thread-menu__dropdown {
  position: absolute;
  top: calc(100% + 0.2rem);
  right: 0;
  z-index: 8;
  min-width: 8.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121a2a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  padding: 0.3rem;
}

.chat-thread-menu__action {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0.55rem;
  background: transparent;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fca5a5;
  text-align: left;
  cursor: pointer;
}

.chat-thread-menu__action:hover {
  background: rgba(248, 113, 113, 0.12);
}

.chat-thread-item__avatar {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 173, 96, 0.35);
  background: rgba(214, 173, 96, 0.12);
}

.chat-thread-item__meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.chat-thread-item__name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-item__sub {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-item__time {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.chat-sheet__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.chat-sheet__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.chat-sheet__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.42;
  animation: chat-orb-drift 16s ease-in-out infinite;
}

.chat-sheet__orb--1 {
  top: 8%;
  left: -8%;
  width: 9rem;
  height: 9rem;
  background: rgba(214, 173, 96, 0.55);
}

.chat-sheet__orb--2 {
  top: 42%;
  right: -6%;
  width: 7rem;
  height: 7rem;
  background: rgba(96, 165, 250, 0.35);
  animation-delay: -5s;
}

.chat-sheet__orb--3 {
  bottom: 12%;
  left: 28%;
  width: 8rem;
  height: 8rem;
  background: rgba(167, 139, 250, 0.28);
  animation-delay: -9s;
}

.chat-sheet__particles {
  position: absolute;
  inset: 0;
}

.chat-sheet__particle {
  position: absolute;
  bottom: -0.5rem;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 999px;
  background: rgba(239, 210, 141, 0.85);
  box-shadow: 0 0 8px rgba(214, 173, 96, 0.65);
  animation: chat-particle-rise 9s linear infinite;
  opacity: 0;
}

.chat-sheet__particle:nth-child(1) {
  left: 6%;
  animation-duration: 8s;
  animation-delay: 0s;
}
.chat-sheet__particle:nth-child(2) {
  left: 14%;
  animation-duration: 11s;
  animation-delay: -2s;
  width: 0.16rem;
  height: 0.16rem;
}
.chat-sheet__particle:nth-child(3) {
  left: 22%;
  animation-duration: 9.5s;
  animation-delay: -4s;
}
.chat-sheet__particle:nth-child(4) {
  left: 31%;
  animation-duration: 12s;
  animation-delay: -1s;
}
.chat-sheet__particle:nth-child(5) {
  left: 40%;
  animation-duration: 8.5s;
  animation-delay: -6s;
  width: 0.18rem;
  height: 0.18rem;
}
.chat-sheet__particle:nth-child(6) {
  left: 48%;
  animation-duration: 10s;
  animation-delay: -3s;
}
.chat-sheet__particle:nth-child(7) {
  left: 56%;
  animation-duration: 11.5s;
  animation-delay: -7s;
}
.chat-sheet__particle:nth-child(8) {
  left: 64%;
  animation-duration: 9s;
  animation-delay: -5s;
  width: 0.15rem;
  height: 0.15rem;
}
.chat-sheet__particle:nth-child(9) {
  left: 72%;
  animation-duration: 12.5s;
  animation-delay: -2.5s;
}
.chat-sheet__particle:nth-child(10) {
  left: 80%;
  animation-duration: 8.8s;
  animation-delay: -8s;
}
.chat-sheet__particle:nth-child(11) {
  left: 88%;
  animation-duration: 10.5s;
  animation-delay: -4.5s;
  width: 0.17rem;
  height: 0.17rem;
}
.chat-sheet__particle:nth-child(12) {
  left: 94%;
  animation-duration: 11s;
  animation-delay: -1.5s;
}

.chat-sheet.is-open .chat-sheet__panel {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .chat-sheet__panel {
    top: 8%;
    left: 6%;
    width: 88%;
    height: 84vh;
    max-height: 84vh;
  }

  .chat-sheet--with-sidebar .chat-sheet__sidebar {
    width: 9.5rem;
    flex-basis: 9.5rem;
  }

  /* У создателя список диалогов на телефоне повторяет компьютерный вид:
     занимает всё окно без пустой правой части и перегородки. */
  .chat-sheet--creator-list.chat-sheet--with-sidebar .chat-sheet__sidebar {
    width: 100%;
    flex-basis: 100%;
    border-right: 0;
  }

  .chat-thread-item__time {
    display: none;
  }
}

body.chat-sheet-open {
  overflow: hidden;
}

.chat-sheet__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(214, 173, 96, 0.14);
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.92), rgba(13, 20, 34, 0.78));
  backdrop-filter: blur(6px);
}

.chat-sheet__header-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}
.chat-sheet__creator-back {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border: 1px solid rgba(214, 173, 96, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.chat-sheet__creator-back:hover {
  border-color: rgba(214, 173, 96, 0.58);
  background: rgba(214, 173, 96, 0.12);
  transform: translateX(-1px);
}

.chat-sheet__creator-back:focus-visible {
  outline: 2px solid rgba(239, 210, 141, 0.9);
  outline-offset: 2px;
}

.chat-sheet__creator-back svg {
  width: 1.25rem;
  height: 1.25rem;
}

.chat-peer-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

#chat-peer-card .account-avatar {
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.chat-peer-card__meta {
  min-width: 0;
}

.chat-peer-card__meta .chat-sheet__title {
  margin-top: 0;
  min-height: 1.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: #f8fafc;
  word-break: break-word;
}

.chat-peer-card__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.chat-peer-card__status-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chat-peer-card__status-label--online {
  color: #4ade80;
}

.chat-peer-card__status-label--offline {
  color: #94a3b8;
}

.chat-peer-card__phone {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.chat-presence-dot {
  position: absolute;
  right: -0.05rem;
  bottom: -0.05rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  border: 2px solid #0b1220;
  background: #64748b;
}

.chat-presence-dot--sm {
  width: 0.58rem;
  height: 0.58rem;
  border-width: 1.5px;
}

.chat-presence-dot--online {
  background: #22c55e;
  animation: chat-presence-pulse 1.8s ease-in-out infinite;
}

.chat-presence-dot--offline {
  background: #64748b;
  animation: none;
}

.chat-typing-indicator {
  position: absolute;
  right: -0.2rem;
  bottom: -0.08rem;
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.16rem 0.3rem;
  border-radius: 999px;
  border: 2px solid #0b1220;
  background: #1e293b;
}

.chat-typing-indicator span {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: #d6ad60;
  animation: chat-typing-bounce 1.1s ease-in-out infinite;
}

.chat-typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

.chat-typing-indicator--sm {
  right: -0.12rem;
  bottom: -0.06rem;
  gap: 0.08rem;
  padding: 0.1rem 0.2rem;
}

.chat-typing-indicator--sm span {
  width: 0.22rem;
  height: 0.22rem;
}

.chat-peer-typing-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #d6ad60;
  letter-spacing: 0.04em;
}

@keyframes chat-typing-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-0.2rem);
    opacity: 1;
  }
}

.chat-thread-item__avatar-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.chat-thread-item__avatar-img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(214, 173, 96, 0.35);
}

@keyframes chat-presence-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  50% {
    box-shadow: 0 0 0 0.35rem rgba(34, 197, 94, 0);
  }
}

.chat-sheet__eyebrow {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d6ad60;
}

.chat-sheet__title {
  margin: 0.25rem 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
}

.chat-sheet__close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.chat-sheet__close:hover {
  color: #f8fafc;
}

.chat-sheet__messages-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-sheet__messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: linear-gradient(180deg, rgba(8, 15, 28, 0.35), rgba(8, 15, 28, 0.15));
}

.chat-scroll-bottom {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(214, 173, 96, 0.45);
  border-radius: 999px;
  background: rgba(24, 34, 56, 0.94);
  color: #e7c680;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.chat-scroll-bottom.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-scroll-bottom:hover {
  border-color: rgba(214, 173, 96, 0.85);
  color: #efd28d;
}

.chat-empty {
  margin: 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
}

.chat-message {
  max-width: 88%;
  border-radius: 1rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.chat-message--enter {
  animation: chat-message-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chat-message--mine {
  align-self: flex-end;
  border: 1px solid rgba(214, 173, 96, 0.38);
  background: linear-gradient(145deg, rgba(214, 173, 96, 0.2), rgba(214, 173, 96, 0.08));
}

.chat-message--other {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.chat-message__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.chat-message__meta {
  margin-bottom: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.chat-message__delete {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  border-radius: 0.35rem;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.chat-message:hover .chat-message__delete,
.chat-message__delete:focus-visible {
  opacity: 1;
}

.chat-message__delete:hover {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
}

.chat-message__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.chat-message__read {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.chat-message__read-icon {
  font-size: 0.72rem;
  line-height: 1;
}

.chat-message__read--unread {
  color: #94a3b8;
}

.chat-message__read--read {
  color: #d6ad60;
}

.chat-message__read--read .chat-message__read-icon {
  letter-spacing: -0.12em;
}

.chat-thread-item__sub--unread {
  color: #d6ad60;
  font-weight: 700;
}

.chat-thread-item__unread {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #d6ad60;
  color: #0b1220;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
}

.chat-message__body p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-link {
  color: #efd28d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-message--media {
  max-width: min(92%, 12.5rem);
  padding: 0.45rem;
}

.chat-message__media {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 15, 28, 0.55);
}

.chat-message__media--image,
.chat-message__media--video {
  width: min(11.5rem, 68vw);
  aspect-ratio: 1 / 1;
}

.chat-message__media.is-loading .chat-message__image,
.chat-message__media.is-loading .chat-message__video {
  opacity: 0;
}

.chat-message__media.is-loaded .chat-message__image,
.chat-message__media.is-loaded .chat-message__video,
.chat-message__media.is-error .chat-message__image,
.chat-message__media.is-error .chat-message__video {
  opacity: 1;
}

.chat-message__media-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 8%,
    rgba(255, 255, 255, 0.1) 18%,
    rgba(255, 255, 255, 0.04) 33%
  );
  background-size: 200% 100%;
  animation: chat-media-shimmer 1.2s linear infinite;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}

.chat-message__media.is-loaded .chat-message__media-skeleton {
  display: none;
}

.chat-message__media.is-error .chat-message__media-skeleton {
  display: grid;
  animation: none;
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
}

.chat-message__image,
.chat-message__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #000;
  transition: opacity 0.25s ease;
  pointer-events: auto;
}

.chat-message__image {
  user-select: none;
  -webkit-user-drag: none;
}

.chat-message--doc {
  max-width: min(94%, 21rem);
  padding: 0.3rem 0.35rem 0.4rem;
  border: none;
  background: transparent;
  box-shadow: none;
}

.chat-message--mine.chat-message--doc {
  border: none;
  background: transparent;
}

.chat-message--doc .chat-message__head {
  margin-bottom: 0.28rem;
}

.chat-message__doc-wrap {
  display: block;
}

.chat-message__doc {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(18, 26, 42, 0.96), rgba(12, 18, 30, 0.94));
  color: #f8fafc;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.chat-message--mine .chat-message__doc {
  border-color: rgba(214, 173, 96, 0.34);
  background: linear-gradient(145deg, rgba(28, 34, 48, 0.98), rgba(16, 22, 34, 0.96));
}

.chat-message__doc::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.22rem;
  background: var(--doc-badge-color, #d6ad60);
}

.chat-message__doc:hover {
  border-color: rgba(214, 173, 96, 0.58);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.chat-message__doc--pending {
  pointer-events: none;
}

.chat-message__doc-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.82rem 0.88rem 0.86rem 0.95rem;
}

.chat-message__doc--uploading .chat-message__doc-body {
  padding-bottom: 1rem;
}

.chat-message__doc-badge {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.78rem;
  background: var(--doc-badge-color, #d6ad60);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--doc-badge-color, #d6ad60) 45%, transparent);
}

.chat-message__doc--uploading .chat-message__doc-badge {
  animation: chat-doc-badge-pulse 1.4s ease-in-out infinite;
}

@keyframes chat-doc-badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.chat-message__doc-info {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.chat-message__doc-kind {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
}

.chat-message__doc-name {
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  color: #f8fafc;
}

.chat-message__doc-size {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}

.chat-message__doc-action {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 173, 96, 0.28);
  background: rgba(214, 173, 96, 0.1);
  color: #efd28d;
}

.chat-message__doc-action svg {
  width: 1.05rem;
  height: 1.05rem;
}

.chat-message__doc-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.24rem;
  background: rgba(255, 255, 255, 0.08);
}

.chat-message__doc-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 0 0.2rem 0.2rem 0;
  background: linear-gradient(90deg, var(--doc-badge-color, #d6ad60), #efd28d);
  transition: width 0.15s ease;
}

.chat-message--failed .chat-message__doc-size {
  color: #fca5a5;
}

@media (prefers-reduced-motion: reduce) {
  .chat-message__doc--uploading .chat-message__doc-badge {
    animation: none;
  }
}

.chat-message__file,
.chat-message__location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #efd28d;
  font-weight: 700;
}

.chat-message__contact {
  display: grid;
  gap: 0.25rem;
}

.chat-message--pending {
  opacity: 0.92;
}

.chat-message--failed .chat-message__upload-label {
  color: #fca5a5;
}

.chat-message__upload {
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem 0.15rem;
}

.chat-message__upload-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6ad60;
}

.chat-message__upload-bar {
  display: block;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chat-message__upload-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d6ad60, #efd28d);
  transition: width 0.15s ease;
}

@keyframes chat-media-shimmer {
  to {
    background-position: -200% 0;
  }
}

#auth-notifications-wrap,
#auth-notifications-wrap-mobile {
  display: none;
}

#auth-notifications-wrap:not(.hidden),
#auth-notifications-wrap-mobile:not(.hidden) {
  display: block;
}

#auth-notifications-wrap:not(.hidden) {
  display: flex;
  align-items: center;
}

.header-notifications {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  cursor: pointer;
  padding: 0;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.header-notifications:hover {
  border-color: rgba(214, 173, 96, 0.45);
  background: rgba(214, 173, 96, 0.12);
  color: #efd28d;
}

.header-notifications__icon {
  width: 1.15rem;
  height: 1.15rem;
}

.header-notifications--mobile {
  display: inline-flex;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  justify-content: flex-start;
}

.header-notifications__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
}

.notifications-panel {
  position: fixed;
  inset: 0;
  z-index: 100108;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 5.5rem 1rem 1rem;
  pointer-events: none;
}

.notifications-panel.is-open {
  display: flex;
  pointer-events: auto;
}

.notifications-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.55);
  backdrop-filter: blur(4px);
}

.notifications-panel__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 24rem);
  max-height: min(78vh, 40rem);
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, #111a2b 0%, #0d1422 55%, #0a101b 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.notifications-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notifications-panel__eyebrow {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d6ad60;
}

.notifications-panel__title {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}

.notifications-panel__close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.notifications-panel__close:hover {
  color: #fff;
  border-color: rgba(214, 173, 96, 0.45);
}

.notifications-panel__toolbar {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notifications-panel__tool {
  flex: 1;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
}

.notifications-panel__tool:hover {
  border-color: rgba(214, 173, 96, 0.4);
  color: #efd28d;
}

.notifications-panel__tool--danger {
  color: #fca5a5;
}

.notifications-panel__tool--danger:hover {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.notifications-panel__settings {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notifications-panel__switch {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

.notifications-panel__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.notifications-panel__switch-ui {
  position: relative;
  width: 2.4rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.notifications-panel__switch-ui::after {
  content: "";
  position: absolute;
  top: 0.12rem;
  left: 0.14rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #94a3b8;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.notifications-panel__switch input:checked + .notifications-panel__switch-ui {
  border-color: rgba(214, 173, 96, 0.55);
  background: rgba(214, 173, 96, 0.22);
}

.notifications-panel__switch input:checked + .notifications-panel__switch-ui::after {
  transform: translateX(1rem);
  background: #efd28d;
}

.notifications-panel__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.notifications-panel__empty {
  margin: 0;
  padding: 2rem 1rem 2.5rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #94a3b8;
}

.notifications-panel__empty.hidden {
  display: none;
}

.notifications-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s ease;
}

.notifications-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notifications-item.is-unread {
  background: rgba(214, 173, 96, 0.08);
}

.notifications-item__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1rem;
  line-height: 1;
}

.notifications-item__meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.notifications-item__title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #f8fafc;
}

.notifications-item__body {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #94a3b8;
  word-break: break-word;
}

.notifications-item__time {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
}

.notifications-item__delete {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem;
}

.notifications-item__delete:hover {
  color: #fca5a5;
}

body.notifications-panel-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .notifications-panel {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .notifications-panel__sheet {
    width: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
  }
}

.header-notifications__badge {
  position: absolute;
  top: 0.1rem;
  right: 0.05rem;
  min-width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  border: 1px solid #101827;
  background: #d6ad60;
  color: #101827;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0.2rem;
}

.header-messenger {
  position: relative;
}

.header-messenger__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 1px solid #101827;
  background: #d6ad60;
  color: #101827;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0.2rem;
  pointer-events: none;
}

.chat-delete-confirm {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 12, 20, 0.78);
}

.chat-delete-confirm__panel {
  width: min(100%, 22rem);
  border-radius: 1rem;
  border: 1px solid rgba(214, 173, 96, 0.45);
  background: linear-gradient(180deg, rgba(20, 29, 46, 0.98), rgba(14, 20, 33, 0.98));
  padding: 1.15rem 1.1rem 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.chat-delete-confirm__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #efd28d;
}

.chat-delete-confirm__text {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.chat-delete-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chat-delete-confirm__btn {
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
}

.chat-delete-confirm__btn--danger {
  border-color: rgba(214, 173, 96, 0.55);
  background: rgba(214, 173, 96, 0.22);
  color: #efd28d;
}

.chat-delete-confirm__btn--danger:hover {
  background: rgba(214, 173, 96, 0.34);
}

.chat-attach-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1rem 1rem;
}

.chat-attach-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #cbd5e1;
}

.chat-attach-item__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.chat-attach-item__icon-svg {
  width: 1.35rem;
  height: 1.35rem;
}

.chat-attach-item__label {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.chat-attach-item:hover .chat-attach-item__icon,
.chat-attach-item:focus-visible .chat-attach-item__icon {
  border-color: rgba(214, 173, 96, 0.45);
  background: rgba(214, 173, 96, 0.12);
  color: #efd28d;
}

.chat-attach-item:hover .chat-attach-item__label,
.chat-attach-item:focus-visible .chat-attach-item__label {
  color: #efd28d;
}

.chat-sheet__composer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  border-top: 1px solid rgba(214, 173, 96, 0.14);
  padding: 0.8rem 1rem 1rem;
  background: linear-gradient(0deg, rgba(10, 16, 28, 0.96), rgba(10, 16, 28, 0.82));
  backdrop-filter: blur(8px);
}

.chat-sheet__composer-end {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
}

.chat-sheet__attach,
.chat-sheet__send,
.chat-sheet__call {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
}

.chat-sheet__send {
  border-color: rgba(214, 173, 96, 0.55);
  background: linear-gradient(145deg, rgba(214, 173, 96, 0.32), rgba(214, 173, 96, 0.14));
  color: #efd28d;
  box-shadow: 0 0 18px rgba(214, 173, 96, 0.22);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.chat-sheet__send:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(214, 173, 96, 0.35);
}

.chat-sheet__call {
  display: grid;
  place-items: center;
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.chat-sheet__call .chat-call-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.chat-sheet__call:not(:disabled):hover {
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
}

.chat-sheet__call:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.chat-sheet__input {
  flex: 1;
  min-height: 2.5rem;
  max-height: 7rem;
  resize: none;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #070b14;
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
  color: #f8fafc;
  outline: none;
}

.chat-sheet__input:focus {
  border-color: rgba(214, 173, 96, 0.55);
}

.chat-camera {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(214, 173, 96, 0.14), transparent 55%),
    linear-gradient(165deg, #141f33 0%, #0d1424 48%, #080f1c 100%);
}

.chat-sheet__panel--camera .chat-sheet__fx {
  opacity: 0;
}

.chat-camera__preview {
  position: relative;
  flex: 1 1 auto;
  min-height: 16rem;
  overflow: hidden;
  isolation: isolate;
  background: #080f1c;
}

.chat-camera__preview-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 52% at 50% 14%, rgba(214, 173, 96, 0.18), transparent 58%),
    radial-gradient(ellipse 55% 38% at 82% 78%, rgba(96, 165, 250, 0.1), transparent 62%),
    linear-gradient(165deg, #141f33 0%, #0d1424 48%, #080f1c 100%);
}

.chat-camera__preview-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(circle at 18% 22%, rgba(214, 173, 96, 0.14), transparent 42%),
    radial-gradient(circle at 84% 68%, rgba(167, 139, 250, 0.1), transparent 40%);
}

.chat-camera__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition:
    background 0.15s ease,
    transform 0.12s ease;
}

.chat-camera__close:hover {
  background: rgba(0, 0, 0, 0.78);
  transform: scale(1.04);
}

.chat-camera__flip-icon {
  width: 1.55rem;
  height: 1.55rem;
}

.chat-camera__mode {
  display: flex;
  gap: 0.2rem;
  margin: 0.65rem 1rem 0.45rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.chat-camera__mode-btn {
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0.48rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.chat-camera__mode-btn.is-active {
  background: rgba(214, 173, 96, 0.24);
  color: #efd28d;
}

.chat-camera__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.chat-camera__video--mirror {
  transform: scaleX(-1);
}

.chat-camera--loading .chat-camera__video {
  opacity: 0.45;
}

.chat-camera--loading .chat-camera__shutter {
  opacity: 0.45;
  pointer-events: none;
}

.chat-camera__hint {
  margin: 0;
  padding: 0.65rem 1rem 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.chat-camera--error .chat-camera__hint {
  color: #fca5a5;
}

.chat-camera__retry {
  display: block;
  margin: 0.55rem auto 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 173, 96, 0.55);
  background: rgba(214, 173, 96, 0.18);
  color: #efd28d;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.chat-camera__retry.hidden {
  display: none !important;
}

.chat-camera__shutter[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.chat-camera__actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem 1.35rem;
  background: linear-gradient(0deg, rgba(8, 15, 28, 0.98), rgba(13, 20, 36, 0.82));
  border-top: 1px solid rgba(214, 173, 96, 0.14);
}

.chat-camera__flip {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.chat-camera__flip:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.82);
  transform: scale(1.04);
}

.chat-camera__flip:active:not(:disabled) {
  transform: scale(0.96);
}

.chat-camera__flip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat-camera__flip.hidden {
  display: none !important;
}

.chat-camera__shutter {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 4.75rem;
  height: 4.75rem;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.chat-camera__actions-spacer {
  justify-self: start;
  width: 3.1rem;
  height: 3.1rem;
}

.chat-camera__shutter:active {
  transform: scale(0.94);
}

.chat-camera__shutter-inner {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: #f8fafc;
  transition:
    border-radius 0.15s ease,
    background 0.15s ease,
    width 0.15s ease,
    height 0.15s ease;
}

.chat-camera__shutter--video .chat-camera__shutter-inner {
  background: #ef4444;
}

.chat-camera__shutter.is-recording {
  border-color: #f87171;
}

.chat-camera__shutter.is-recording .chat-camera__shutter-inner {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.35rem;
  background: #ef4444;
}

@media (min-width: 768px) {
  .chat-camera--desktop .chat-camera__preview {
    min-height: min(52vh, 30rem);
  }

  .chat-camera--desktop .chat-camera__mode {
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  .chat-camera--desktop .chat-camera__hint {
    font-size: 0.78rem;
  }

  .chat-camera--desktop .chat-camera__shutter {
    width: 5rem;
    height: 5rem;
  }

  .chat-camera--desktop .chat-camera__flip,
  .chat-camera--desktop .chat-camera__actions-spacer {
    width: 3.35rem;
    height: 3.35rem;
  }

  .chat-camera--desktop .chat-camera__shutter-inner {
    width: 3.55rem;
    height: 3.55rem;
  }
}

.call-overlay {
  position: fixed;
  inset: 0;
  z-index: 100220;
  display: grid;
  place-items: center;
}

/* Tailwind .hidden не перебивает display:grid/flex — явно скрываем оверлеи и панели */
.call-overlay.hidden,
.call-overlay__actions.hidden,
.chat-sheet__creator-back.hidden,
.chat-sheet__sidebar.hidden,
.chat-attach-menu.hidden,
.notifications-panel:not(.is-open),
.chat-delete-confirm.hidden,
.chat-camera.hidden,
.chat-camera__flip.hidden,
.chat-camera__retry.hidden,
.chat-sheet__call.hidden,
.chat-typing-indicator.hidden,
.chat-peer-typing-label.hidden,
.account-avatar__img.hidden,
.account-avatar__initials.hidden,
#auth-header-user.hidden,
#auth-header-user-mobile.hidden {
  display: none !important;
  pointer-events: none !important;
}

.call-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.88);
  backdrop-filter: blur(10px);
}

.call-overlay__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 22rem);
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.98), rgba(7, 11, 20, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.call-overlay__pulse {
  position: absolute;
  top: 2.4rem;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 999px;
  background: rgba(214, 173, 96, 0.14);
  animation: call-pulse 1.8s ease-out infinite;
}

.call-overlay[data-mode="outgoing"] .call-overlay__pulse {
  background: rgba(214, 173, 96, 0.14);
}

.call-overlay[data-mode="active"] .call-overlay__pulse {
  display: none;
}

@keyframes call-pulse {
  0% {
    transform: scale(0.82);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.call-overlay__avatar {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  border: 2px solid rgba(214, 173, 96, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.call-overlay__name {
  margin: 1rem 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  color: #f8fafc;
}

.call-overlay__status,
.call-overlay__timer {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}

.call-overlay__timer {
  margin-top: 0.25rem;
  color: #cbd5e1;
}

.call-overlay__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.35rem;
  width: 100%;
  justify-content: center;
}

.call-overlay__btn {
  min-width: 7.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.call-overlay__btn--accept {
  background: #22c55e;
  color: #052e16;
}

.call-overlay__btn--decline,
.call-overlay__btn--end {
  background: #ef4444;
  color: #fff;
}

.call-overlay__btn--mute {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.call-overlay__btn--mute[aria-pressed="true"] {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.45);
}

@keyframes chat-particle-rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  8% {
    opacity: 0.85;
  }

  85% {
    opacity: 0.35;
  }

  100% {
    transform: translateY(-105vh) translateX(0.8rem);
    opacity: 0;
  }
}

@keyframes chat-orb-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(1.2rem, -0.8rem) scale(1.08);
  }
}

@keyframes chat-message-in {
  from {
    opacity: 0;
    transform: translateY(0.65rem) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Панель клиента */
.client-dock__brand-icon {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.1));
  color: #7dd3fc;
}

.admin-dock__item--tone-sky {
  background: linear-gradient(145deg, #0284c7, #0369a1);
}

.admin-dock__item--tone-cyan {
  background: linear-gradient(145deg, #0891b2, #0e7490);
}

.admin-dock__item--tone-amber {
  background: linear-gradient(145deg, #d97706, #b45309);
}

.client-panel-quick {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .client-panel-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .client-panel-quick {
    grid-template-columns: 1fr;
  }
}

.client-panel-quick__card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.client-panel-quick__card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.cabinet-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.cabinet-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.cabinet-list__main {
  min-width: 0;
  flex: 1;
}

.cabinet-list__desc {
  margin: 0.35rem 0 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cabinet-list__meta {
  display: block;
  margin-top: 0.25rem;
  color: #94a3b8;
  font-size: 0.78rem;
}

.cabinet-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  background: rgba(8, 12, 22, 0.85);
  color: #f8fafc;
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
}

.client-tracking-card {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.client-tracking-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.client-tracking-card__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.client-tracking-card__step {
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: #94a3b8;
  font-size: 0.88rem;
}

.client-tracking-card__step--done {
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.35);
  color: #86efac;
}

.client-tracking-card__step--current {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.1);
  color: #e0f2fe;
}

.client-panel-profile__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
}

.client-panel-profile__avatar {
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.35);
}

.client-panel-profile__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cabinet-profile-avatar__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  font-size: 1.5rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .chat-sheet__backdrop,
  .chat-sheet__panel {
    transition: none;
  }

  .chat-sheet__particle,
  .chat-sheet__orb,
  .chat-message--enter {
    animation: none;
  }

  .chat-scroll-bottom {
    transition: none;
  }

  .call-overlay__pulse {
    animation: none;
  }
}

/* Прозрачная шапка → плотная при скролле (перенос прозрачности из исходника) */
.site-header {
  border-bottom: 1px solid transparent;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background-color 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
    backdrop-filter 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    -webkit-backdrop-filter 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(16, 24, 39, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.site-header.is-menu-open {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(16, 24, 39, 0.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

@media (max-width: 1023.98px) {
  .site-header {
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease;
  }

  .site-header.is-scrolled,
  .site-header.is-menu-open {
    background-color: rgba(16, 24, 39, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .m-actions__item {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Гамбургер: круглый с неоновым кольцом → крестик (перенос из исходника) */
.burger-btn {
  position: relative;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* display только там, где гамбургер виден (< sm), чтобы не ломать sm:hidden */
@media (max-width: 639.98px) {
  .burger-btn {
    display: grid;
  }
}

.burger-btn__glow {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(214, 173, 96, 0.28) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  pointer-events: none;
}

.burger-btn__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(214, 173, 96, 0.45);
  background: linear-gradient(145deg, rgba(16, 24, 39, 0.95), rgba(7, 11, 20, 0.88));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 6px 18px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.burger-btn__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 0.85rem;
}

.burger-btn__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #efd28d, #d6ad60 55%, #c49a4a);
  box-shadow: 0 0 8px rgba(214, 173, 96, 0.35);
  transition:
    transform 0.38s cubic-bezier(0.68, -0.45, 0.27, 1.35),
    opacity 0.25s ease,
    width 0.3s ease,
    top 0.38s cubic-bezier(0.68, -0.45, 0.27, 1.35);
  transform-origin: center;
}

.burger-btn__line--top {
  top: 0;
}
.burger-btn__line--mid {
  top: 50%;
  transform: translateY(-50%);
  width: 72%;
  justify-self: end;
  left: auto;
  right: 0;
}
.burger-btn__line--bot {
  bottom: 0;
  top: auto;
  width: 88%;
}

.burger-btn:hover .burger-btn__ring,
.burger-btn:focus-visible .burger-btn__ring {
  border-color: rgba(239, 210, 141, 0.75);
  box-shadow:
    0 0 0 1px rgba(214, 173, 96, 0.12) inset,
    0 0 16px rgba(214, 173, 96, 0.22),
    0 6px 18px rgba(0, 0, 0, 0.35);
  transform: scale(1.04);
}

.burger-btn:hover .burger-btn__glow,
.burger-btn:focus-visible .burger-btn__glow {
  opacity: 1;
  transform: scale(1);
}

.burger-btn:focus-visible {
  outline: none;
}

.burger-btn[aria-expanded="true"] .burger-btn__ring {
  border-color: rgba(239, 210, 141, 0.85);
  box-shadow:
    0 0 0 1px rgba(214, 173, 96, 0.18) inset,
    0 0 20px rgba(214, 173, 96, 0.28),
    0 6px 18px rgba(0, 0, 0, 0.4);
  transform: rotate(90deg) scale(1.02);
}

.burger-btn[aria-expanded="true"] .burger-btn__glow {
  opacity: 1;
  transform: scale(1.08);
}
.burger-btn[aria-expanded="true"] .burger-btn__line--top {
  top: 50%;
  width: 100%;
  transform: translateY(-50%) rotate(45deg);
}
.burger-btn[aria-expanded="true"] .burger-btn__line--mid {
  opacity: 0;
  width: 0;
  transform: translateY(-50%) scaleX(0);
}
.burger-btn[aria-expanded="true"] .burger-btn__line--bot {
  top: 50%;
  bottom: auto;
  width: 100%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Зелёный пульсирующий кружок «Без выходных 24/7» (из исходника) */
.green-pulse-dot {
  display: inline-block;
  background-color: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.6;
  }
}

/* Анимированная иконка WhatsApp в шапке (из исходника) */
.wa-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #25d366;
  flex-shrink: 0;
}
.wa-header-icon:hover {
  transform: scale(1.25);
  animation-play-state: paused;
}
.wa-header-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
@media (min-width: 1024px) {
  .wa-header-icon {
    animation: pulse-whatsapp-subtle 2s ease-in-out infinite;
  }
  .wa-header-icon:hover {
    animation-play-state: paused;
  }
}
@keyframes pulse-whatsapp-subtle {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.22);
  }
}

/* —— Клиентская панель: статистика, статусы, избранное, WIP —— */
.client-stats {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .client-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .client-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.client-stats__card {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  padding: 1.25rem 1.2rem 1.15rem;
  min-height: 9.5rem;
}
.client-stats__card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
  filter: blur(2px);
}
.client-stats__card--orders {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(155deg, rgba(14, 165, 233, 0.16), rgba(8, 12, 22, 0.5));
}
.client-stats__card--orders::after {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.55), transparent 70%);
}
.client-stats__card--active {
  border-color: rgba(45, 212, 191, 0.35);
  background: linear-gradient(155deg, rgba(20, 184, 166, 0.14), rgba(8, 12, 22, 0.5));
}
.client-stats__card--active::after {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.5), transparent 70%);
}
.client-stats__card--date {
  border-color: rgba(214, 173, 96, 0.4);
  background: linear-gradient(155deg, rgba(214, 173, 96, 0.16), rgba(8, 12, 22, 0.5));
}
.client-stats__card--date::after {
  background: radial-gradient(circle, rgba(214, 173, 96, 0.55), transparent 70%);
}
.client-stats__card--fav {
  border-color: rgba(244, 114, 182, 0.35);
  background: linear-gradient(155deg, rgba(236, 72, 153, 0.12), rgba(8, 12, 22, 0.5));
}
.client-stats__card--fav::after {
  background: radial-gradient(circle, rgba(244, 114, 182, 0.45), transparent 70%);
}
.client-stats__icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  margin-bottom: 0.75rem;
}
.client-stats__card--orders .client-stats__icon {
  color: #7dd3fc;
}
.client-stats__card--active .client-stats__icon {
  color: #5eead4;
}
.client-stats__card--date .client-stats__icon {
  color: #efd28d;
}
.client-stats__card--fav .client-stats__icon {
  color: #f9a8d4;
}
.client-stats__value {
  margin: 0;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}
.client-stats__value--date {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.client-stats__label {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5e1;
}
.client-stats__hint {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}

.client-status {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  vertical-align: middle;
}
.client-status--new {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.3);
}
.client-status--onway {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
}
.client-status--work {
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.4);
}
.client-status--done {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}
.client-status--cancel {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.cabinet-list__service {
  display: block;
  margin-top: 0.2rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
}

.client-heart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 114, 182, 0.45);
  background: rgba(236, 72, 153, 0.1);
  color: #f9a8d4;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  flex-shrink: 0;
}
.client-heart-btn:hover:not(:disabled) {
  background: rgba(236, 72, 153, 0.22);
  border-color: rgba(244, 114, 182, 0.7);
  transform: translateY(-1px);
}
.client-heart-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.client-heart-btn--solid {
  background: linear-gradient(135deg, #db2777, #e11d48);
  border-color: transparent;
  color: #fff;
}
.client-heart-btn--solid:hover:not(:disabled) {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}
.client-heart-btn--active {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  color: #fb7185;
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.45);
}
.client-heart-btn--active:hover {
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.22);
}

.client-fav-add h2,
.client-fav-list__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: #f1f5f9;
}
.client-fav-list {
  margin-top: 1.5rem;
}

.client-wip {
  margin-top: 1.5rem;
  padding: 1.75rem 1.4rem;
  border-radius: 1.25rem;
  border: 1px dashed rgba(214, 173, 96, 0.4);
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 173, 96, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.03);
  text-align: center;
}
.client-wip__badge {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #efd28d;
  border: 1px solid rgba(214, 173, 96, 0.45);
  background: rgba(214, 173, 96, 0.12);
}
.client-wip__title {
  margin: 0.9rem 0 0.45rem;
  font-size: 1.25rem;
  color: #f8fafc;
}
.client-wip__text {
  margin: 0 auto;
  max-width: 36rem;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.55;
}
.client-wip__text a {
  color: #7dd3fc;
  font-weight: 700;
}
.client-wip__map-placeholder {
  margin: 1.4rem auto 0;
  max-width: 22rem;
  min-height: 10rem;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(8, 12, 22, 0.9)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 12px,
      rgba(148, 163, 184, 0.04) 12px,
      rgba(148, 163, 184, 0.04) 13px
    );
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}

.client-settings-hint {
  margin: 0 0 0.85rem;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.45;
}
.client-about-input {
  resize: vertical;
  min-height: 5rem;
  font-family: inherit;
}

/* —— Избранное: ровное сердечко на карточках и в панели —— */
.fav-host,
.main-service-card,
.popular-card,
.hits-card,
.fleet-card,
.car-card,
article.svc,
.video-review-card,
[data-vrev-thumb] {
  position: relative;
}
.fav-heart {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 8;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.72);
  color: rgba(248, 250, 252, 0.88);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.fav-heart:hover {
  transform: scale(1.06);
  border-color: rgba(244, 114, 182, 0.55);
  color: #fda4af;
}
.fav-heart:active {
  transform: scale(0.96);
}
.fav-heart.is-active {
  color: #fff;
  border-color: rgba(244, 63, 94, 0.65);
  background: linear-gradient(145deg, #e11d48, #db2777 55%, #be185d);
  box-shadow:
    0 0 0 1px rgba(251, 113, 133, 0.25),
    0 8px 22px rgba(225, 29, 72, 0.35);
}
.fav-heart.is-active:hover {
  color: #fff;
  filter: brightness(1.05);
}
.fav-heart.is-loading {
  opacity: 0.65;
  pointer-events: none;
}
.fav-heart:disabled {
  opacity: 0.55;
  cursor: wait;
}
.fav-heart__icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  stroke: none;
  overflow: visible;
  flex-shrink: 0;
}
.fav-heart--panel {
  position: static;
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
}
.fav-heart--panel .fav-heart__icon {
  width: 1.25rem;
  height: 1.25rem;
}
.client-fav-grid {
  display: grid;
  gap: 0.85rem;
}
.client-fav-item {
  align-items: center;
}
.client-fav-item__media {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.65rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}
.client-fav-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .fav-heart {
    width: 2.15rem;
    height: 2.15rem;
    top: 0.4rem;
    right: 0.4rem;
  }
  .fav-heart__icon {
    width: 1.05rem;
    height: 1.05rem;
  }
}

/* PG monogram brand (client + creator docks) */
.admin-dock__brand-pg {
  display: grid !important;
  place-items: center;
  font-family: Unbounded, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #efd28d;
  line-height: 1;
  user-select: none;
}
.admin-dock__brand-pg svg {
  display: none;
}
.admin-dock__item--btn {
  border: 0;
  font: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  background: inherit;
}
.client-wip--compact {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}
.client-wip--compact .client-wip__text {
  margin-top: 0.5rem;
}
/* Fav heart path always filled when active */
.fav-heart__icon path {
  fill: currentColor;
  stroke: none;
}

/* Компактная панель создателя — всё помещается в экран */
.cabinet-page--compact {
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}
.cabinet-page--compact .cabinet-page__title {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  margin-bottom: 0.25rem;
}
.cabinet-page--compact .cabinet-page__lead {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}
.cabinet-page--compact .cabinet-analytics__card {
  padding: 0.85rem 0.9rem;
}
.cabinet-page--compact .cabinet-analytics__value {
  font-size: 1.45rem;
}
.cabinet-page--compact .cabinet-analytics__label {
  font-size: 0.65rem;
}
.cabinet-page--compact .cabinet-analytics__section-title {
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}
.cabinet-page--compact .cabinet-list__item {
  padding: 0.75rem 0.85rem;
}

/* Создатель: компактнее карточки и типографика во всех разделах */
.admin-shell--creator .cabinet-page {
  padding: 1rem 1rem 1.35rem;
}
.admin-shell--creator .cabinet-page__title {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin: 0.15rem 0 0.35rem;
}
.admin-shell--creator .cabinet-page__lead {
  font-size: 0.86rem;
  margin-bottom: 0.75rem;
}
.admin-shell--creator .cabinet-page__eyebrow {
  font-size: 0.68rem;
  margin-bottom: 0.15rem;
}
.admin-shell--creator .cabinet-analytics__card {
  padding: 0.8rem 0.85rem;
}
.admin-shell--creator .cabinet-analytics__value {
  font-size: 1.4rem;
}
.admin-shell--creator .cabinet-analytics__label {
  font-size: 0.64rem;
}
.admin-shell--creator .cabinet-analytics__grid {
  gap: 0.65rem;
}
.admin-shell--creator .cabinet-list {
  gap: 0.55rem;
}
.admin-shell--creator .cabinet-list__item {
  padding: 0.7rem 0.8rem;
}
/* Главная: фирменный знак Avito у заголовка и на каждой карточке слайдера. */
#client-reviews .section-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
#client-reviews .section-heading::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: clamp(7.5rem, 14vw, 9.5rem);
  aspect-ratio: 160 / 41;
  background: url("/images/logo/avito-logo-white.svg") center / contain no-repeat;
}
#client-reviews .review-photo-card {
  position: relative;
  align-self: flex-start;
  height: auto !important;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: var(--panel, #0d1422);
}
#client-reviews .home-avito-card-media {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}
#client-reviews .home-avito-card-media .review-photo-card__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 11.5rem;
  margin: 0 auto;
  object-fit: contain;
}
#client-reviews .carousel__nav {
  margin-top: 0.25rem;
}
#client-reviews .home-avito-card-media .pg-arev__avito-mark {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  display: inline-flex;
  pointer-events: none;
}
#client-reviews .home-avito-card-media .pg-arev__icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
}
#client-reviews .home-avito-card-media .pg-arev__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(4, 224, 97, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 170, 255, 0.2),
    0 0 12px rgba(150, 94, 235, 0.35);
  animation: home-avito-icon-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
#client-reviews .home-avito-card-media .pg-arev__ring--2 {
  border-color: rgba(255, 64, 83, 0.5);
  animation-delay: 0.9s;
}
#client-reviews .home-avito-card-media .pg-arev__icon-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}
@keyframes home-avito-icon-pulse {
  0% {
    transform: scale(0.75);
    opacity: 0.75;
  }
  70%,
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}
@media (max-width: 639.98px) {
  #client-reviews .section-heading {
    flex-direction: column;
    gap: 0.45rem;
  }
  #client-reviews .home-avito-card-media .pg-arev__avito-mark {
    top: 0.35rem;
    right: 0.35rem;
  }
  #client-reviews .home-avito-card-media .pg-arev__icon-wrap {
    width: 1.85rem;
    height: 1.85rem;
  }
  #client-reviews .home-avito-card-media .pg-arev__ring {
    border-width: 1.5px;
  }
  #client-reviews .home-avito-card-media .pg-arev__icon-img {
    width: 1.35rem;
    height: 1.35rem;
  }
  #client-reviews .home-avito-card-media .review-photo-card__img {
    max-height: 10.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  #client-reviews .home-avito-card-media .pg-arev__ring {
    animation: none;
    opacity: 0.25;
    transform: scale(1.15);
  }
}

/* Фиксированный менеджер для гостя: встроенный чат и прямой звонок. */
.guest-manager-widget.hidden,
.guest-manager-modal.hidden {
  display: none !important;
}
.guest-manager-dock {
  position: fixed;
  left: 14px;
  bottom: 72px;
  z-index: 8600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(214, 173, 96, 0.5);
  border-radius: 999px;
  background: rgba(9, 15, 28, 0.94);
  color: #fff;
  padding: 5px 12px 5px 5px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  cursor: pointer;
}
.guest-manager-dock__avatar {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}
/* Мягкая пульсация-кольцо вокруг аватара менеджера — привлекает внимание, не
   трогая layout: анимируются только transform и opacity на псевдоэлементе, а не
   box-shadow (та вызывала бы repaint каждый кадр). Кольцо под аватаром (z-index
   ниже картинки), клики не перехватывает. */
.guest-manager-dock__avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.45);
  animation: guest-manager-ping 2.4s ease-out infinite;
  pointer-events: none;
}
.guest-manager-dock__avatar img {
  position: relative;
  z-index: 1;
}
@keyframes guest-manager-ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.guest-manager-dock__avatar img,
.guest-manager-modal__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.guest-manager-dock__presence {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border: 2px solid #0b1120;
  border-radius: 50%;
  background: #64748b;
}
.guest-manager-dock__presence--online {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}
.guest-manager-dock__label {
  display: grid;
  text-align: left;
  line-height: 1.1;
}
.guest-manager-dock__label strong {
  font-size: 0.8rem;
}
.guest-manager-dock__label small {
  margin-top: 0.2rem;
  color: #d6ad60;
  font-size: 0.68rem;
}
.guest-manager-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.guest-manager-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(8px);
}
.guest-manager-modal__card {
  position: relative;
  width: min(100%, 470px);
  border: 1px solid rgba(214, 173, 96, 0.35);
  border-radius: 1.2rem;
  background: radial-gradient(circle at 100% 0, rgba(214, 173, 96, 0.12), transparent 40%), #0b1220;
  color: #e2e8f0;
  padding: 1.35rem;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.6);
}
.guest-manager-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.guest-manager-modal__person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-right: 1.7rem;
}
.guest-manager-modal__avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border: 2px solid rgba(214, 173, 96, 0.55);
  border-radius: 50%;
  padding: 2px;
}
.guest-manager-modal__eyebrow {
  margin: 0 0 0.25rem;
  color: #d6ad60;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guest-manager-modal h2 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}
.guest-manager-modal__status {
  margin: 0.3rem 0 0;
  color: #94a3b8;
  font-size: 0.78rem;
}
.guest-manager-modal__online {
  color: #6ee7b7;
}
.guest-manager-modal__copy {
  margin: 1.15rem 0;
  color: #cbd5e1;
  line-height: 1.6;
}
.guest-manager-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.guest-manager-modal__primary,
.guest-manager-modal__secondary {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.guest-manager-modal__primary {
  border: 0;
  background: #d6ad60;
  color: #0b111e;
}
.guest-manager-modal__secondary {
  border: 1px solid rgba(214, 173, 96, 0.42);
  color: #f1d89d;
}
@media (max-width: 640px) {
  .guest-manager-dock {
    left: 10px;
    bottom: 64px;
    padding: 3px;
  }
  /* Компактнее на телефоне: аватар меньше, лейбл скрыт — плашка не спорит за
     место с контентом и нижней панелью действий. */
  .guest-manager-dock__avatar {
    width: 40px;
    height: 40px;
  }
  .guest-manager-dock__presence {
    width: 10px;
    height: 10px;
  }
  .guest-manager-dock__label {
    display: none;
  }
  .guest-manager-modal__actions {
    grid-template-columns: 1fr;
  }
}

/* Общий ответ на системную настройку «меньше движения». Точечные правила выше
   покрывали только отдельные элементы, а анимации лендинга (подсветки карточек,
   пульсации, въезды секций) крутились у всех. Дизайн не меняется: правило
   действует лишь когда пользователь сам попросил ограничить анимацию. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Меню вложений на телефоне: четыре колонки при иконках 3.25rem и подписи
   «Местоположение» не помещались в 360-пиксельный экран — длинное слово не
   переносилось и растягивало сетку за границу панели. Даём колонкам сжиматься,
   разрешаем перенос слова и уменьшаем иконки на узких экранах. */
.chat-attach-item {
  min-width: 0;
}

.chat-attach-item__label {
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 640px) {
  .chat-attach-menu {
    gap: 0.55rem 0.3rem;
    padding: 0.7rem 0.55rem 0.8rem;
  }

  .chat-attach-item {
    gap: 0.35rem;
  }

  .chat-attach-item__icon {
    width: 2.75rem;
    height: 2.75rem;
  }

  .chat-attach-item__icon-svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  .chat-attach-item__label {
    font-size: 0.62rem;
  }

  /* Панель почти во весь экран: на телефоне поля по 6% съедали ширину,
     из-за чего сетка вложений и композер оставались тесными. */
  .chat-sheet__panel {
    top: 4%;
    left: 2.5%;
    width: 95%;
    height: 90dvh;
    max-height: 90dvh;
  }

  /* Композер и меню прижаты к низу — учитываем зону жестов iPhone. */
  .chat-sheet__composer {
    padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .chat-attach-item__icon {
    width: 2.4rem;
    height: 2.4rem;
  }

  .chat-attach-item__label {
    font-size: 0.58rem;
    line-height: 1.15;
  }
}
