/* Просмотр чужого профиля: оверлей + тот же каркас, что profile.html */

.user-profile-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 14px 32px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.user-profile-sheet-overlay[hidden] {
  display: none !important;
}

.user-profile-sheet-scroll-inner {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}

.user-profile-sheet-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0 14px;
  margin-bottom: 0;
  pointer-events: none;
}

.user-profile-sheet-toolbar > * {
  pointer-events: auto;
}

.ups-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(22, 22, 26, 0.88);
  color: #e8e8ec;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ups-toolbar-btn:hover:not(:disabled) {
  border-color: rgba(100, 181, 246, 0.5);
  color: #fff;
}

.ups-toolbar-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.ups-toolbar-btn--active {
  border-color: rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}

.ups-toolbar-btn--danger:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.ups-toolbar-btn--close:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.35);
}

.ups-toolbar-ic {
  display: block;
  flex-shrink: 0;
}

.user-profile-sheet-panel {
  position: relative;
  width: 100%;
}

/* Кликабельный ник на сайте (без подчёркивания) */
.user-profile-nick-trigger {
  cursor: pointer;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.user-profile-nick-trigger:hover {
  color: #93c5fd;
}

.user-profile-nick-trigger:focus-visible {
  outline: 2px solid rgba(100, 181, 246, 0.65);
  outline-offset: 2px;
  border-radius: 4px;
}

/* В превью нет режима редактирования — только просмотр */
.profile-board--public-preview .profile-edit-only,
.profile-board--public-preview .profile-hero-edit-btn,
.profile-board--public-preview .profile-security-block,
.profile-board--public-preview .profile-cosmetics-block,
.profile-board--public-preview .profile-actions-bar {
  display: none !important;
}

.profile-board--public-preview .match-hist-row .mh-actions {
  display: none !important;
}

.profile-board--public-preview .match-hist-row--public-preview .mh-you {
  display: none !important;
}
