/* Separate, accessible targets: a photo opens the profile, the row text opens its chat. */
.match-row--split { gap: 12px; }
.match-row__chat { min-width: 0; min-height: 60px; flex: 1; display: flex; align-items: center; gap: 8px; }
.match-row__chat .match-row__top { flex-wrap: wrap; gap: 1px 7px; }
.match-row__chat .match-row__top strong { flex: 1 1 0%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-row__chat .match-row__top time { flex: 0 0 auto; white-space: nowrap; }
.match-row__profile:focus-visible, .match-row__chat:focus-visible,
.chat-profile-link:focus-visible, .chat-profile-name:focus-visible,
.matched-profile a:focus-visible, .matched-profile button:focus-visible,
.matched-gallery:focus-visible, .unmatch-button:focus-visible {
    outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 10px;
}

.chat-header--matched { flex-wrap: wrap; row-gap: 2px; }
.chat-profile-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chat-profile-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-header--matched > .chat-header__match-actions { flex: 0 0 100%; display: flex; justify-content: flex-end; }
.chat-header__match-actions form { margin: 0; }
.unmatch-button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; color: #a42644; background: transparent; cursor: pointer; font-weight: 750; font-size: .8rem; }
.unmatch-button:hover { background: #fff0f3; }

.matched-profile { max-width: 540px; }
.matched-profile__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; font-size: .86rem; font-weight: 800; }
.matched-profile__nav a { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; }
.matched-profile__chat-link { color: var(--purple); text-align: right; }
.matched-gallery { position: relative; isolation: isolate; width: 100%; min-height: 380px; height: clamp(380px, 64dvh, 630px); overflow: hidden; border-radius: 26px; color: #fff; background: var(--ink); box-shadow: var(--shadow); touch-action: pan-y; }
.matched-gallery__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.matched-gallery__shade { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10,8,28,.96)); pointer-events: none; }
.matched-gallery__identity { position: absolute; left: 20px; right: 20px; bottom: 18px; pointer-events: none; overflow-wrap: anywhere; }
.matched-gallery__identity h1 { margin: 0; font-size: clamp(1.6rem, 7vw, 2.25rem); line-height: 1.12; }
.matched-gallery__identity p { margin: 6px 0 0; color: #ffffffde; font-size: .92rem; font-weight: 700; }
.matched-gallery__dots { position: absolute; z-index: 2; left: 12px; right: 12px; top: 0; display: flex; gap: 4px; }
.matched-gallery__dots button { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.matched-gallery__dots span { display: block; width: 100%; height: 4px; border-radius: 4px; background: #ffffff70; }
.matched-gallery__dots [aria-current="true"] span { background: #fff; }
.matched-gallery__arrow { position: absolute; z-index: 2; top: 42%; width: 44px; height: 48px; display: grid; place-items: center; padding: 0 0 3px; border: 1px solid #ffffff52; border-radius: 14px; color: #fff; background: #17152b94; font-size: 2.25rem; line-height: 1; cursor: pointer; }
.matched-gallery__arrow--previous { left: 10px; }
.matched-gallery__arrow--next { right: 10px; }
.matched-gallery .matched-gallery__arrow:focus-visible, .matched-gallery .matched-gallery__dots button:focus-visible { outline-color: var(--yellow); outline-offset: -3px; }
.matched-gallery__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; background: radial-gradient(circle at 65% 30%, #654986, var(--ink) 78%); }
.matched-gallery__empty p { margin: 0 0 65px; font-size: .86rem; font-weight: 700; }
.matched-gallery__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.matched-profile__actions { margin: 18px 0; display: flex; align-items: stretch; gap: 10px; }
.matched-profile__actions .button { flex: 1; min-width: 0; }
.matched-profile__report { flex: 0 0 48px; min-height: 48px; align-self: stretch; font-size: 1.4rem; font-weight: 900; }
.matched-profile__details { padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-small); }
.matched-profile__details h2 { font-size: 1.03rem; }
.matched-profile__bio { margin: 0 0 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.matched-profile__bio:last-child { margin-bottom: 0; }
.matched-profile__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.matched-profile__tags li { max-width: 100%; padding: 6px 10px; border-radius: 999px; color: var(--ink); background: color-mix(in srgb, var(--purple) 11%, white); font-size: .8rem; font-weight: 800; overflow-wrap: anywhere; }
.matched-profile__bot-notice { margin: 16px 0 0; }
.matched-profile__unmatch { margin: 20px 0 0; text-align: center; }
