@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

.kindred {
	--k-ink: #171126;
	--k-surface: #221934;
	--k-surface-2: #2C2140;
	--k-line: #3A2E52;
	--k-text: #F3EDE4;
	--k-text-dim: #BBAFCF;
	--k-coral: #FF7F5C;
	--k-font-display: 'Fraunces', Georgia, serif;
	--k-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	background: var(--k-ink);
	color: var(--k-text);
	font-family: var(--k-font-body);
	border-radius: 16px;
	padding: 1.5rem;
	max-width: 640px;
	margin: 0 auto;
	box-sizing: border-box;
}

.kindred * {
	box-sizing: border-box;
}

/* ---------- Hardening against the active theme's global styles ---------- */
/* Many WordPress themes apply site-wide rules to every <button>, <input>,
   and checkbox on the page — uppercase button text, white input
   backgrounds, custom circular checkbox skins. These force our own look
   to win regardless of the active theme. Scoped entirely under .kindred
   so nothing outside the plugin's own markup is touched. */

.kindred button,
.kindred .kindred-btn,
.kindred .kindred-auth-tab {
	text-transform: none !important;
	letter-spacing: normal !important;
	font-family: var(--k-font-body) !important;
	box-shadow: none !important;
}

.kindred input[type="text"],
.kindred input[type="email"],
.kindred input[type="password"] {
	background: var(--k-surface-2) !important;
	color: var(--k-text) !important;
	border: 1px solid var(--k-line) !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 10px !important;
}

.kindred input::placeholder {
	color: var(--k-text-dim);
	opacity: 0.65;
}

.kindred input:-webkit-autofill,
.kindred input:-webkit-autofill:hover,
.kindred input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px var(--k-surface-2) inset !important;
	-webkit-text-fill-color: var(--k-text) !important;
	caret-color: var(--k-text);
}

.kindred a {
	text-decoration: none;
}

.kindred label {
	text-transform: none !important;
}

.kindred h1,
.kindred h2,
.kindred h3,
.kindred h4,
.kindred h5 {
	color: var(--k-text) !important;
	font-family: var(--k-font-display) !important;
}

.kindred a.kindred-dash-card {
	color: var(--k-text) !important;
	text-decoration: none !important;
}

.kindred-muted {
	color: var(--k-text-dim);
	font-size: 0.9rem;
}

.kindred-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.7rem;
	color: var(--k-text-dim);
	margin: 0 0 0.5rem;
}

.kindred-heading,
.kindred-prompt {
	font-family: var(--k-font-display);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 1.5rem;
}

.kindred-heading {
	font-size: 1.5rem;
}

.kindred-prompt {
	font-size: 1.4rem;
}

.kindred-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border-radius: 999px;
	padding: 0.65rem 1.3rem;
	font-size: 0.9rem;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
}

.kindred-btn-primary {
	background: var(--k-coral);
	color: var(--k-ink);
}

.kindred-btn-ghost {
	background: transparent;
	border-color: var(--k-line);
	color: var(--k-text-dim);
}

/* ---------- Quiz ---------- */

.kindred-progress {
	display: flex;
	gap: 6px;
	margin-bottom: 2rem;
}

.kindred-progress-seg {
	flex: 1;
	height: 3px;
	border-radius: 2px;
	background: var(--k-line);
}

.kindred-progress-seg.is-active {
	background: var(--k-coral);
}

.kindred-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.kindred-option {
	text-align: left;
	background: var(--k-surface);
	border: 1px solid var(--k-line);
	color: var(--k-text);
	border-radius: 14px;
	padding: 1rem 1.25rem;
	font-size: 0.95rem;
	cursor: pointer;
}

.kindred-option:hover,
.kindred-option:focus-visible {
	border-color: var(--k-coral);
}

.kindred-back {
	background: none;
	border: none;
	color: var(--k-text-dim);
	margin-top: 1.25rem;
	cursor: pointer;
	font-size: 0.85rem;
}

/* ---------- Nav ---------- */

.kindred-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--k-line);
}

.kindred-nav-brand {
	font-family: var(--k-font-display);
	font-weight: 600;
	color: var(--k-text);
	text-decoration: none;
	font-size: 1.1rem;
}

.kindred-nav-links {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.kindred-nav-links a {
	color: var(--k-text-dim);
	text-decoration: none;
	font-size: 0.88rem;
}

.kindred-nav-links a.is-active {
	color: var(--k-coral);
	font-weight: 600;
}

.kindred-nav-logout {
	color: var(--k-text-dim) !important;
	opacity: 0.7;
}

/* ---------- Full-bleed page backgrounds ---------- */
/* Breaks the hero/dashboard/auth pages out of the theme's boxed content
   column so they fill the browser width instead of floating in a sea
   of white — this is what makes them feel like actual pages, not a
   small card dropped onto an empty page. */

.kindred-full-bleed {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
	padding: 3rem 1.5rem 4rem;
	background:
		radial-gradient(circle at 12% 18%, rgba(255, 127, 92, 0.16), transparent 42%),
		radial-gradient(circle at 88% 82%, rgba(79, 209, 174, 0.14), transparent 42%),
		radial-gradient(circle at 85% 15%, rgba(185, 155, 255, 0.10), transparent 38%),
		#171126;
}

.kindred-full-bleed-center {
	min-height: 78vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 480px) {
	.kindred-full-bleed {
		padding: 2.25rem 1rem 2.5rem;
	}
	.kindred-full-bleed-center {
		min-height: auto;
	}
}

/* ---------- Landing / hero ---------- */

.kindred-landing {
	max-width: 960px;
	width: 100%;
	background: transparent;
	border-radius: 0;
	padding: 0;
	margin: 0 auto;
}

.kindred-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
	padding: 2rem 0 1rem;
}

.kindred-hero-copy {
	text-align: center;
}

.kindred-hero-title {
	font-family: var(--k-font-display);
	font-weight: 600;
	font-size: clamp(1.7rem, 4vw, 2.3rem);
	line-height: 1.15;
	margin: 0 0 1rem;
}

.kindred-hero-sub {
	color: var(--k-text-dim);
	max-width: 46ch;
	margin: 0 auto;
	font-size: 0.95rem;
}

.kindred-hero-cta-row {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 1.75rem;
}

.kindred-hero-cta-row .kindred-btn {
	flex: 0 0 auto;
}

.kindred-hero-visual {
	display: flex;
	align-items: center;
	justify-content: center;
}

.kindred-hero-ring-wrap {
	position: relative;
	width: min(220px, 55vw);
	height: min(220px, 55vw);
	display: flex;
	align-items: center;
	justify-content: center;
}

.kindred-ring,
svg.kindred-ring {
	max-width: 100%;
	height: auto;
	display: block;
}

.kindred-hero-ring-label {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.kindred-hero-ring-number {
	font-weight: 600;
	font-size: 2.1rem;
}

.kindred-hero-ring-caption {
	color: var(--k-text-dim);
	font-size: 0.75rem;
}

.kindred-hero-legend {
	display: flex;
	justify-content: center;
	gap: 1.75rem;
	flex-wrap: wrap;
	margin: 1.5rem 0 2.5rem;
}

.kindred-legend-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.78rem;
	color: var(--k-text-dim);
}

.kindred-legend-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	display: inline-block;
}

@media (min-width: 640px) {
	.kindred-hero {
		grid-template-columns: 1.1fr 1fr;
		text-align: left;
	}
	.kindred-hero-copy {
		text-align: left;
	}
	.kindred-hero-sub {
		margin: 0;
	}
	.kindred-hero-cta-row {
		justify-content: flex-start;
	}
	.kindred-hero-legend {
		justify-content: flex-start;
	}
}

/* ---------- How it works ---------- */

.kindred-how-it-works {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.25rem;
	margin-top: 1rem;
}

.kindred-how-card {
	background: var(--k-surface);
	border: 1px solid var(--k-line);
	border-radius: 16px;
	padding: 1.5rem;
}

.kindred-how-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--k-coral);
	color: var(--k-ink);
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 0.85rem;
}

.kindred-how-title {
	font-weight: 600;
	font-size: 1rem;
	margin: 0 0 0.5rem;
}

/* ---------- Dashboard (logged-in landing) ---------- */

.kindred-dashboard {
	max-width: 640px;
	width: 100%;
	margin: 0 auto;
	background: var(--k-surface);
	border: 1px solid var(--k-line);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.kindred-dashboard-sub {
	margin: 0 0 1.5rem;
}

.kindred-dash-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1rem;
}

.kindred-dash-card {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	background: var(--k-surface-2);
	border: 1px solid var(--k-line);
	border-radius: 14px;
	padding: 1.25rem;
	text-decoration: none;
	color: var(--k-text);
	transition: border-color 0.2s;
}

.kindred-dash-card:hover,
.kindred-dash-card:focus-visible {
	border-color: var(--k-coral);
}

.kindred-dash-card-value {
	font-size: 1.6rem;
	font-weight: 600;
}

.kindred-dash-card-label {
	font-size: 0.8rem;
	color: var(--k-text-dim);
}

/* ---------- Dedicated auth page ---------- */

.kindred-auth-split {
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	background: var(--k-surface);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
	border: 1px solid var(--k-line);
	padding: 0;
}

/* Left panel: brand story + compatibility ring. Hidden below 900px so
   the form gets full attention on smaller screens instead of scrolling
   past a big illustration to reach it. */
.kindred-auth-visual {
	display: none;
	position: relative;
	padding: 3rem 2.5rem;
	background:
		radial-gradient(circle at 20% 15%, rgba(255, 127, 92, 0.30), transparent 45%),
		radial-gradient(circle at 85% 75%, rgba(79, 209, 174, 0.25), transparent 45%),
		radial-gradient(circle at 75% 10%, rgba(185, 155, 255, 0.18), transparent 40%),
		#1D1530;
}

.kindred-auth-visual-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.kindred-auth-brand-onvisual {
	margin-bottom: auto;
}

.kindred-auth-ring-wrap {
	width: 176px;
	height: 176px;
	margin: 1rem 0 1.75rem;
}

.kindred-auth-visual-title {
	font-family: var(--k-font-display);
	font-weight: 600;
	font-size: 1.7rem;
	line-height: 1.2;
	margin: 0 0 0.75rem;
	max-width: 22ch;
}

.kindred-auth-visual-sub {
	color: var(--k-text-dim);
	font-size: 0.9rem;
	max-width: 32ch;
	line-height: 1.5;
	margin: 0 0 1.75rem;
}

.kindred-auth-visual-legend {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.kindred-auth-brand-mobile {
	display: block;
	text-align: center;
	color: var(--k-text);
	text-decoration: none;
	font-family: var(--k-font-display);
	font-weight: 600;
	font-size: 1.2rem;
	margin-bottom: 1.75rem;
}

.kindred-auth-form-panel {
	padding: 2.5rem 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.kindred-auth-card {
	max-width: 380px;
	width: 100%;
	margin: 0 auto;
	padding: 0;
}

.kindred-auth-card-title {
	font-family: var(--k-font-display);
	font-weight: 600;
	font-size: 1.5rem;
	margin: 0 0 1.5rem;
	text-align: center;
}

.kindred-auth-page {
	max-width: 420px;
	width: 100%;
	margin: 0 auto;
	background: transparent;
	padding: 0;
	border-radius: 0;
}

.kindred-auth-brand {
	display: block;
	text-align: center;
	color: var(--k-text);
	text-decoration: none;
	font-family: var(--k-font-display);
	font-weight: 600;
	font-size: 1.15rem;
	margin-bottom: 1.5rem;
}

.kindred-auth-card-simple {
	background: var(--k-surface);
	border: 1px solid var(--k-line);
	border-radius: 20px;
	padding: 1.5rem;
	text-align: center;
}

@media (min-width: 900px) {
	.kindred-auth-split {
		grid-template-columns: 1fr 1fr;
	}
	.kindred-auth-visual {
		display: block;
	}
	.kindred-auth-brand-mobile {
		display: none;
	}
	.kindred-auth-form-panel {
		padding: 3.5rem 3rem;
	}
}

@media (max-width: 480px) {
	.kindred-dashboard {
		border-radius: 0;
	}
	.kindred-how-it-works {
		grid-template-columns: 1fr;
	}
}

.kindred-auth-card {
	max-width: 380px;
	margin: 2rem auto 0;
	background: var(--k-surface);
	border: 1px solid var(--k-line);
	border-radius: 16px;
	padding: 1.5rem;
}

.kindred-auth-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	position: relative;
}

.kindred-auth-tab {
	flex: 1;
	background: none;
	border: 1px solid var(--k-line);
	color: var(--k-text-dim);
	border-radius: 999px;
	padding: 0.5rem 0;
	font-size: 0.85rem;
	cursor: pointer;
	position: relative;
	z-index: 1;
	transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.kindred-auth-tab.is-active {
	background: var(--k-coral);
	color: var(--k-ink);
	border-color: var(--k-coral);
	font-weight: 600;
}

.kindred-auth-tab-indicator {
	display: none;
}

.kindred-consent {
	background: var(--k-surface-2);
	border: 1px solid var(--k-line);
	border-radius: 10px;
	padding: 0.85rem 1rem;
	margin-bottom: 1.25rem;
}

.kindred-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--k-text-dim);
	cursor: pointer;
}

/* Custom checkbox, built from scratch — the native checkbox is visually
   hidden so an active theme's own checkbox skin (a common source of
   oversized circular checkmarks) can never leak through. */
.kindred-checkbox-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.kindred-checkbox-box {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 0.1rem;
	border-radius: 5px;
	border: 1.5px solid var(--k-line);
	background: var(--k-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	color: transparent;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.kindred-checkbox-input:checked ~ .kindred-checkbox-box {
	background: var(--k-coral);
	border-color: var(--k-coral);
	color: var(--k-ink);
}

.kindred-checkbox-input:focus-visible ~ .kindred-checkbox-box {
	outline: 2px solid var(--k-coral);
	outline-offset: 2px;
}

.kindred-consent-text a {
	color: var(--k-text);
	white-space: nowrap;
}

.kindred-social-row {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin-bottom: 1.25rem;
}

.kindred-btn-social {
	width: 100%;
	justify-content: center;
	background: var(--k-surface-2);
	border: 1px solid var(--k-line);
	color: var(--k-text);
	position: relative;
	gap: 0.6rem;
}

.kindred-btn-social:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.kindred-btn-google {
	background: #ffffff;
	color: #3c4043;
	border-color: #dadce0;
}

.kindred-btn-google:hover:not(:disabled) {
	background: #f8f9fa;
}

.kindred-btn-facebook {
	background: #1877F2;
	color: #ffffff;
	border-color: #1877F2;
}

.kindred-btn-facebook:hover:not(:disabled) {
	background: #166fe0;
}

.kindred-social-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.kindred-social-btn-label {
	flex: 1;
	text-align: center;
}

/* ---------- Button loading spinner ---------- */

.kindred-btn-spinner {
	display: none;
	width: 15px;
	height: 15px;
	border-radius: 999px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	opacity: 0.7;
	animation: kindred-spin 0.7s linear infinite;
}

.kindred-btn.is-loading .kindred-btn-label,
.kindred-btn.is-loading .kindred-social-btn-label,
.kindred-btn.is-loading .kindred-social-icon {
	visibility: hidden;
}

.kindred-btn.is-loading {
	position: relative;
	cursor: wait;
}

.kindred-btn.is-loading .kindred-btn-spinner {
	display: inline-block;
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -8px 0 0 -8px;
}

@keyframes kindred-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Password visibility toggle ---------- */

.kindred-input-with-icon {
	position: relative;
}

.kindred-input-with-icon input {
	padding-left: 2.75rem;
}

.kindred-input-icon {
	position: absolute;
	left: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	margin-top: -0.5rem;
	color: var(--k-text-dim);
	display: flex;
	pointer-events: none;
}

.kindred-input-with-toggle input {
	padding-right: 3.2rem;
}

.kindred-pass-toggle {
	position: absolute;
	right: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	margin-top: -0.5rem;
	background: none;
	border: none;
	color: var(--k-text-dim);
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0.25rem;
}

.kindred-pass-toggle:hover {
	color: var(--k-text);
}

.kindred-divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	color: var(--k-text-dim);
	font-size: 0.75rem;
}

.kindred-divider::before,
.kindred-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--k-line);
}

.kindred-lost-password {
	display: block;
	text-align: center;
	margin-top: 1rem;
	font-size: 0.8rem;
}

.kindred-auth-form input {
	width: 100%;
	background: var(--k-surface-2);
	border: 1px solid var(--k-line);
	color: var(--k-text);
	border-radius: 10px;
	padding: 0.6rem 0.85rem;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.kindred-auth-form input:focus {
	outline: 2px solid var(--k-coral);
	outline-offset: 1px;
}

.kindred-field-hint {
	margin: -0.6rem 0 1rem;
	font-size: 0.75rem;
}

.kindred-btn-block {
	display: flex;
	width: 100%;
	justify-content: center;
}

.kindred-form-error {
	color: #FF9B85;
	font-size: 0.82rem;
	margin: -0.4rem 0 1rem;
}

/* ---------- Avatars ---------- */

.kindred-avatar {
	border-radius: 999px;
	background: var(--k-surface-2);
	color: var(--k-coral);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	flex-shrink: 0;
}

.kindred-avatar-img {
	border-radius: 999px;
	object-fit: cover;
	flex-shrink: 0;
}

/* ---------- Discover ---------- */

.kindred-match-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.kindred-match-card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	background: var(--k-surface);
	border: 1px solid var(--k-line);
	border-radius: 16px;
	padding: 1.25rem;
	transition: opacity 0.2s;
}

.kindred-ring-wrap {
	position: relative;
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
}

.kindred-ring-wrap-small {
	width: 56px;
	height: 56px;
}

.kindred-ring-score {
	position: absolute;
	font-weight: 600;
	font-size: 0.85rem;
}

.kindred-ring-score-small {
	font-size: 0.7rem;
}

.kindred-match-body {
	flex: 1;
	min-width: 0;
}

.kindred-match-name-row {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.kindred-match-name {
	font-weight: 600;
	font-size: 1.05rem;
}

.kindred-match-bio {
	color: var(--k-text-dim);
	font-size: 0.88rem;
	margin: 0.4rem 0 0;
}

.kindred-chip-row {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin-top: 0.75rem;
}

.kindred-chip {
	font-size: 0.72rem;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
}

.kindred-chip-neutral {
	background: var(--k-surface-2);
	color: var(--k-text-dim);
}

.kindred-match-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.kindred-match-banner {
	position: sticky;
	bottom: 1rem;
	margin-top: 1.5rem;
	background: var(--k-surface-2);
	border: 1px solid var(--k-coral);
	border-radius: 16px;
	padding: 1.25rem;
	text-align: center;
}

.kindred-match-banner-title {
	font-weight: 600;
	font-size: 1.2rem;
	margin: 0 0 0.25rem;
}

.kindred-match-banner .kindred-btn {
	margin: 0.75rem 0.25rem 0;
}

/* ---------- Matches grid ---------- */

.kindred-match-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 1rem;
}

.kindred-match-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--k-text);
	background: var(--k-surface);
	border: 1px solid var(--k-line);
	border-radius: 14px;
	padding: 1rem;
	text-align: center;
}

.kindred-match-tile-name {
	font-size: 0.85rem;
	font-weight: 500;
}

/* ---------- Profile editor ---------- */

.kindred-photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.kindred-photo-slot {
	position: relative;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
	background: var(--k-surface);
	border: 1px solid var(--k-line);
}

.kindred-photo-slot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kindred-photo-upload {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--k-text-dim);
	font-size: 0.8rem;
	text-align: center;
	border-style: dashed;
}

.kindred-photo-uploading {
	opacity: 0.5;
	pointer-events: none;
}

.kindred-photo-primary-badge {
	position: absolute;
	bottom: 6px;
	left: 6px;
	background: var(--k-coral);
	color: var(--k-ink);
	font-size: 0.65rem;
	font-weight: 600;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
}

.kindred-photo-make-primary {
	position: absolute;
	bottom: 6px;
	left: 6px;
	right: 6px;
	background: rgba(23, 17, 38, 0.85);
	color: var(--k-text);
	font-size: 0.65rem;
	border: none;
	border-radius: 999px;
	padding: 0.15rem 0;
	cursor: pointer;
}

.kindred-photo-delete {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	border: none;
	background: rgba(23, 17, 38, 0.85);
	color: var(--k-text);
	cursor: pointer;
	line-height: 1;
	font-size: 0.9rem;
}

.kindred-photo-hint {
	margin: 0 0 1.5rem;
	font-size: 0.78rem;
}

.kindred-field-label {
	display: block;
	font-size: 0.85rem;
	color: var(--k-text-dim);
	margin-bottom: 0.4rem;
}

.kindred-bio-form textarea {
	width: 100%;
	background: var(--k-surface);
	border: 1px solid var(--k-line);
	color: var(--k-text);
	border-radius: 12px;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	resize: vertical;
	font-family: inherit;
}

.kindred-save-status {
	margin-left: 0.75rem;
	font-size: 0.8rem;
	color: var(--k-text-dim);
}

.kindred-profile-footer {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--k-line);
}

.kindred-muted-link {
	color: var(--k-text-dim);
	font-size: 0.85rem;
}

/* ---------- Chat ---------- */

.kindred-chat {
	display: flex;
	flex-direction: column;
	height: 520px;
	padding: 0;
	overflow: hidden;
}

.kindred-chat-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--k-line);
	position: relative;
}

.kindred-chat-header-info {
	flex: 1;
}

.kindred-chat-name {
	font-weight: 600;
	margin: 0;
}

.kindred-chat-score {
	color: var(--k-text-dim);
	font-size: 0.8rem;
	margin: 0;
}

.kindred-chat-header-actions {
	position: relative;
}

.kindred-chat-menu-toggle {
	background: none;
	border: none;
	color: var(--k-text-dim);
	font-size: 1.3rem;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
}

.kindred-chat-menu {
	position: absolute;
	right: 0;
	top: 100%;
	background: var(--k-surface-2);
	border: 1px solid var(--k-line);
	border-radius: 10px;
	overflow: hidden;
	z-index: 5;
	min-width: 120px;
}

.kindred-chat-menu button {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	color: var(--k-text);
	padding: 0.6rem 1rem;
	font-size: 0.85rem;
	cursor: pointer;
}

.kindred-chat-menu button:hover {
	background: var(--k-surface);
}

.kindred-chat-thread {
	flex: 1;
	overflow-y: auto;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.kindred-msg {
	max-width: 78%;
	padding: 0.6rem 1rem;
	border-radius: 16px;
	font-size: 0.9rem;
	line-height: 1.4;
}

.kindred-msg-me {
	align-self: flex-end;
	background: var(--k-coral);
	color: var(--k-ink);
}

.kindred-msg-them {
	align-self: flex-start;
	background: var(--k-surface);
	border: 1px solid var(--k-line);
}

.kindred-chat-form {
	display: flex;
	gap: 0.5rem;
	padding: 1rem 1.25rem;
	border-top: 1px solid var(--k-line);
}

.kindred-chat-form input {
	flex: 1;
	background: var(--k-surface);
	border: 1px solid var(--k-line);
	color: var(--k-text);
	border-radius: 999px;
	padding: 0.6rem 1rem;
	font-size: 0.9rem;
}

.kindred-chat-form input:focus {
	outline: 2px solid var(--k-coral);
	outline-offset: 1px;
}

@media (max-width: 480px) {
	.kindred {
		padding: 1rem;
		border-radius: 0;
	}
	.kindred-match-card {
		flex-wrap: wrap;
	}
	.kindred-ring-wrap {
		margin-left: 0;
	}
}
