/* Гид двора Кэри. Scoped. Прячет подвесной чип «Активность».
 * Всплывающие подсказки временно скрыты — советы живут у Кэри. */

html.cotinder-yard-live #cotinder-index-feed-hint,
html.cotinder-yard-live .cotinder-index-feed-hint,
html.cotinder-yard-live #cotinder-coach,
html.cotinder-yard-live .cotinder-coach,
html.cotinder-yard-live .cotinder-coach-on #cotinder-coach,
body:has(#cotinder-yard-guide) #cotinder-index-feed-hint,
body:has(#cotinder-yard-guide) #cotinder-coach,
body:has(#cotinder-yard-guide) .cotinder-coach,
body:has(#cotinder-yard-guide) [data-den-guide] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:has(#cotinder-yard-guide) .cotinder-engage-chip,
body:has(#cotinder-yard-guide) .cotinder-bug-report__fab {
  display: none !important;
}

.cotinder-yard-veil {
  position: fixed;
  inset: 0;
  z-index: 12030;
  pointer-events: none;
}

.cotinder-yard-veil[hidden] {
  display: none !important;
}

.cotinder-yard-veil [data-yard-hole] {
  position: absolute;
  box-sizing: border-box;
  max-width: calc(100vw - 8px);
  max-height: calc(100vh - 8px);
  border-radius: 14px;
  box-shadow: 0 0 0 3px #fd7728, 0 0 0 9999px rgba(18, 22, 28, 0.46);
  pointer-events: none;
}

.cotinder-yard-on {
  position: relative;
  z-index: 12040;
}

.cotinder-yard {
  position: fixed;
  left: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 12050;
  width: auto;
  max-width: min(380px, calc(100vw - 24px));
  pointer-events: none;
  font-family: Inter, system-ui, sans-serif;
}

.cotinder-yard__dock,
.cotinder-yard__card {
  pointer-events: auto;
}

.cotinder-yard.is-open .cotinder-yard__dock {
  display: none;
}

.cotinder-yard__dock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(253, 119, 40, 0.35);
  box-shadow: 0 8px 24px rgba(29, 42, 36, 0.12);
}

.cotinder-yard__facewrap {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: visible;
}

.cotinder-yard__facewrap--sm {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #f7ecd0;
}

.cotinder-yard__face-btn {
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #f7ecd0;
  cursor: pointer;
  position: relative;
}

.cotinder-yard__facewrap--sm .cotinder-yard__face,
.cotinder-yard__facewrap--sm svg.cotinder-yard__face {
  border-radius: 50%;
}

.cotinder-yard__face {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

svg.cotinder-yard__face {
  position: absolute;
  inset: 0;
}

img.cotinder-yard__face--photo {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cotinder-yard:not(.is-open) .cotinder-yard__facewrap {
  animation: cotinder-yard-bob 2.2s ease-in-out infinite;
  transform-origin: 50% 100%;
  will-change: transform;
}

@keyframes cotinder-yard-bob {
  0%,
  100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2.4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cotinder-yard:not(.is-open) .cotinder-yard__facewrap {
    animation: none;
  }
}

.cotinder-yard__hold {
  position: absolute;
  right: -10px;
  bottom: -6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 78px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fd7728;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.cotinder-yard__hold--guest {
  background: #1d2a24;
}

.cotinder-yard__hold:hover,
.cotinder-yard__hold:focus {
  color: #fff !important;
  opacity: 0.92;
}

.cotinder-yard__hold-count:not([hidden]) {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #1d2a24;
  font-size: 10px;
}

.cotinder-yard.is-nudge .cotinder-yard__hold {
  animation: cotinder-yard-hold-pulse 2.2s ease-in-out infinite;
}

@keyframes cotinder-yard-hold-pulse {
  0%,
  100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.cotinder-yard__dock-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  line-height: 1.15;
}

.cotinder-yard__dock-txt strong {
  font-size: 14px;
  color: #222;
}

.cotinder-yard__dock-txt em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #6a5e4e;
  max-width: 168px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cotinder-yard__card {
  overflow: auto;
  max-height: min(72vh, 560px);
  margin-top: 8px;
  border: 1px solid rgba(253, 119, 40, 0.35);
  border-radius: 22px 22px 22px 8px;
  background: #fff;
  color: #222;
  box-shadow: 0 16px 40px rgba(29, 42, 36, 0.16);
}

.cotinder-yard__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 8px;
}

.cotinder-yard__who {
  flex: 1;
  min-width: 0;
}

.cotinder-yard__name {
  display: block;
  font-size: 15px;
}

.cotinder-yard__status {
  display: block;
  font-size: 11px;
  color: #6a5e4e;
}

.cotinder-yard__home[hidden] {
  display: none !important;
}

.cotinder-yard__home {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: #fff4ec;
  color: #c45a12;
  font: 700 12px/1 Inter, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.cotinder-yard__back,
.cotinder-yard__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.cotinder-yard__back {
  font-size: 28px;
  font-weight: 500;
}

.cotinder-yard__bar {
  height: 3px;
  margin: 0 12px 8px;
  border-radius: 99px;
  background: #f3e7dc;
}

.cotinder-yard__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: #fd7728;
}

.cotinder-yard__body {
  padding: 0 14px 14px;
}

.cotinder-yard__say {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.cotinder-yard__resume {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6a5e4e;
}

.cotinder-yard__hub,
.cotinder-yard__chips,
.cotinder-yard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cotinder-yard__hub-btn,
.cotinder-yard__btn,
.cotinder-yard__chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ead9cc;
  background: #fff;
  color: #222;
  text-decoration: none;
  font: 700 13px/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.cotinder-yard__hub-btn--solid,
.cotinder-yard__btn--go {
  background: #fd7728;
  border-color: #fd7728;
  color: #fff;
}

.cotinder-yard__hub-btn--ghost,
.cotinder-yard__btn--ghost {
  font-weight: 600;
  color: #6a5e4e;
}

.cotinder-yard__chip {
  font-weight: 600;
  font-size: 12px;
}

@media (max-width: 1023.98px) {
  .cotinder-yard {
    left: 10px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  body.cotinder-cookie-banner-open .cotinder-yard {
    bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }

  .cotinder-yard__dock-txt em {
    max-width: 140px;
  }
}

@media (max-width: 430px) {
  .cotinder-yard__dock-txt strong {
    font-size: 13px;
  }
}
