/* Durak Social Phase 5 — connections / DM hub */
.ds-dm-hub {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 60dvh;
	padding: 0.75rem 1rem 1.25rem;
}
.ds-dm-hub__head {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.ds-dm-hub__title {
	margin: 0;
	font-size: 1.35rem;
}
.ds-dm-hub__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}
.ds-dm-hub__tab {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	cursor: pointer;
	opacity: 0.72;
}
.ds-dm-hub__tab.is-active {
	opacity: 1;
	background: color-mix(in srgb, var(--ds-accent, #e87722) 16%, transparent);
}
.ds-dm-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.ds-dm-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.75rem;
	align-items: center;
	padding: 0.65rem 0.25rem;
	border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
.ds-dm-row__body {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}
.ds-dm-row__name {
	font-size: 0.95rem;
}
.ds-dm-row__handle,
.ds-dm-row__meta {
	font-size: 0.8rem;
	opacity: 0.7;
}
.ds-dm-row__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: flex-end;
}
.ds-badge {
	display: inline-flex;
	min-width: 1.25rem;
	justify-content: center;
	padding: 0.1rem 0.35rem;
	border-radius: 999px;
	background: var(--ds-accent, #e87722);
	color: #fff;
	font-size: 0.7rem;
	margin-inline-start: 0.25rem;
}
.ds-badge--nav {
	position: absolute;
	top: 0.15rem;
	inset-inline-end: 0.55rem;
}
.ds-bottomnav__item {
	position: relative;
}
.ds-dm-view {
	min-height: 70dvh;
	display: flex;
	flex-direction: column;
}
.ds-dm-menu {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.5rem 0.75rem;
	background: color-mix(in srgb, var(--ds-surface, #fff) 92%, #000);
	border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.ds-dm-menu__item {
	appearance: none;
	border: 0;
	background: transparent;
	text-align: start;
	padding: 0.55rem 0.35rem;
	cursor: pointer;
}
.ds-people-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: end;
	margin-bottom: 0.75rem;
}
.ds-dm-requests__heading {
	margin: 1rem 0 0.5rem;
	font-size: 0.85rem;
	opacity: 0.75;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
@media (min-width: 960px) {
	.ds-dm-hub {
		max-width: 42rem;
	}
	.ds-surface--dm .ds-dm-view {
		max-width: 48rem;
		margin-inline: auto;
	}
}

/* Phase 3 — profile card / relationship states */
.ds-dm-hub__hint {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	opacity: 0.78;
	line-height: 1.4;
}
.ds-dm-row__name,
.ds-dm-row__handle,
.ds-dm-row__meta {
	overflow-wrap: anywhere;
	word-break: break-word;
}
.ds-dm-row--incoming {
	border-inline-start: 3px solid var(--ds-accent, #e87722);
	padding-inline-start: 0.55rem;
}
.ds-dm-row--outgoing {
	border-inline-start: 3px solid color-mix(in srgb, currentColor 28%, transparent);
	padding-inline-start: 0.55rem;
}
.ds-profile-dialog__body {
	padding: 0 1rem 1.25rem;
	max-height: min(70dvh, 32rem);
	overflow: auto;
}
.ds-profile-card {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	min-width: 0;
}
.ds-profile-card .ds-mini-profile__name,
.ds-profile-card .ds-mini-profile__handle,
.ds-profile-card .ds-mini-profile__bio {
	overflow-wrap: anywhere;
	word-break: break-word;
	margin: 0;
}
.ds-profile-card__badges,
.ds-profile-card__actions,
.ds-profile-card__safety {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.ds-profile-card__actions .ds-btn,
.ds-profile-card__safety .ds-btn,
.ds-dm-row__actions .ds-btn {
	min-height: 2.75rem;
}
.ds-profile-card__state {
	margin: 0.25rem 0 0;
	font-weight: 600;
}
.ds-profile-card__hint,
.ds-profile-card__shared,
.ds-profile-card__meta,
.ds-profile-card__label {
	margin: 0;
	font-size: 0.85rem;
	opacity: 0.8;
	overflow-wrap: anywhere;
}
.ds-person__btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	text-align: start;
	padding: 0.35rem 0;
	cursor: pointer;
	min-height: 2.75rem;
}
.ds-person__btn:focus-visible,
.ds-rt-msg__name-btn:focus-visible,
.ds-profile-card__actions .ds-btn:focus-visible,
.ds-dm-row__actions .ds-btn:focus-visible {
	outline: 2px solid var(--ds-accent, #e87722);
	outline-offset: 2px;
}
.ds-rt-msg__name-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	padding: 0;
	cursor: pointer;
	text-align: start;
}
@media (max-width: 390px) {
	.ds-dm-row {
		grid-template-columns: auto 1fr;
	}
	.ds-dm-row__actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
	.ds-dm-hub__tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
	}
	.ds-dm-hub__tab {
		white-space: nowrap;
	}
}
[dir='rtl'] .ds-dm-row--incoming,
[dir='rtl'] .ds-dm-row--outgoing {
	border-inline-start-width: 3px;
}
