/* LOST — модалка полного отзыва (главная + /discussions/) */

body.lost-review-modal-open {
  overflow: hidden;
}

.lost-review-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--lost-z-modal) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--lost-container-pad);
  font-family: var(--lost-font-family);
}
.lost-review-modal[hidden] { display: none; }

.lost-review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--lost-bg-overlay);
  cursor: pointer;
}

.lost-review-modal__panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--lost-bg-card);
  border: 1px solid var(--lost-border-card);
  border-radius: var(--lost-radius-xl);
  box-shadow: 0 24px 60px rgba(8, 4, 12, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  animation: lostReviewModalIn 220ms cubic-bezier(.2,.9,.22,1);
}

@keyframes lostReviewModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lost-review-modal__head {
  display: flex;
  align-items: flex-start;
  gap: var(--lost-space-3);
  padding: var(--lost-space-5);
  border-bottom: 1px solid var(--lost-border-subtle);
  flex-shrink: 0;
}

.lost-review-modal__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lost-avatar-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--lost-fs-small);
  font-weight: var(--lost-fw-semibold);
  overflow: hidden;
  text-decoration: none;
}
.lost-review-modal__avatar img { width: 100%; height: 100%; object-fit: cover; }

.lost-review-modal__meta { flex: 1; min-width: 0; }

.lost-review-modal__name {
  display: block;
  font-weight: var(--lost-fw-semibold);
  font-size: var(--lost-fs-body);
  color: var(--lost-text-primary);
  text-decoration: none;
}
.lost-review-modal__name:hover { color: var(--lost-text-link); }

.lost-review-modal__date {
  display: block;
  margin-top: var(--lost-space-1);
  font-size: var(--lost-fs-small);
  color: var(--lost-text-muted);
}

.lost-review-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--lost-radius-sm);
  background: var(--lost-bg-input);
  color: var(--lost-text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--lost-transition), color var(--lost-transition);
}
.lost-review-modal__close:hover {
  background: var(--lost-bg-card-soft);
  color: var(--lost-text-primary);
}

.lost-review-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--lost-space-5);
  font-size: var(--lost-fs-body);
  line-height: var(--lost-lh-relaxed);
  color: var(--lost-text-secondary);
  word-break: break-word;
}

.lost-review-modal__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lost-space-2);
  padding: 0 var(--lost-space-5) var(--lost-space-5);
  flex-shrink: 0;
}
.lost-review-modal__attachments[hidden] { display: none; }
.lost-review-modal__attachments a {
  display: block;
  overflow: hidden;
  border-radius: var(--lost-radius-md);
  max-width: 100%;
}
.lost-review-modal__attachments img { display: block; max-width: 100%; height: auto; }

.lost-review-modal__footer {
  flex-shrink: 0;
  padding: var(--lost-space-4) var(--lost-space-5) var(--lost-space-5);
  border-top: 1px solid var(--lost-border-subtle);
}
.lost-review-modal__footer .lost-btn { width: 100%; }
