:root {
	color-scheme: light;
	--ink: #1d2340;
	--muted: #65708b;
	--brand: #6941c6;
	--brand-dark: #4b2c9b;
	--accent: #ff6f91;
	--surface: #ffffff;
	--surface-soft: #f5f6fb;
	--border: #e4e7f0;
	--shadow: 0 16px 42px rgba(37, 31, 74, .10);
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	background: #f4f5fb;
	scroll-behavior: smooth;
}

body,
body.orange,
body.blue,
body.green,
body.solidorange {
	margin: 0;
	padding: 0;
	background: #f4f5fb;
	color: var(--ink);
	font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-align: left;
}

a {
	color: var(--brand);
	text-decoration-thickness: .08em;
	text-underline-offset: .16em;
}

a:hover {
	color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(105, 65, 198, .35);
	outline-offset: 2px;
}

#base,
#main {
	background: transparent;
}

#container {
	width: min(1200px, calc(100% - 40px));
	max-width: 1200px;
	min-width: 0;
	margin: 22px auto 40px;
	overflow: visible;
	border: 1px solid rgba(228, 231, 240, .9);
	border-radius: 22px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

#header {
	position: relative;
	z-index: 1;
	border-radius: 21px 21px 0 0;
	background: linear-gradient(115deg, #4b2c9b, #7350d4 68%, #9870eb);
	color: #fff;
}

#header .content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
	padding: 14px 28px;
}

#header h1 {
	margin: 0;
	font-size: 1.65rem;
	letter-spacing: -.04em;
}

#header h1 a,
#header #navBar a {
	color: #fff;
	text-decoration: none;
}

#navBar,
#header ul.navbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#navBar li {
	float: none;
	margin: 0;
}

#navBar a {
	display: block;
	padding: 8px 13px;
	border-radius: 999px;
	font-size: .92rem;
	font-weight: 650;
}

#navBar a:hover,
#navBar .active a {
	background: rgba(255, 255, 255, .18);
}

#outer {
	padding: 24px 28px 32px;
}

#main {
	display: block;
}

#sidebar {
	float: left;
	width: 220px;
	margin: 0 24px 20px 0;
	padding: 0;
}

#sidebar ul.nav,
#sidebar ul.nav ul,
#sidebar .toplinks {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

#sidebar .nav > li > a,
#sidebar .toplinks > li > a {
	display: block;
	margin: 0 0 8px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--surface-soft);
	color: var(--ink);
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
}

#sidebar .nav li ul a,
#sidebar .toplinks ul li a {
	display: block;
	width: auto;
	height: auto;
	padding: 7px 12px 7px 20px;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-size: .88rem;
	text-decoration: none;
}

#sidebar .nav li ul a:hover,
#sidebar .toplinks ul li a:hover {
	color: var(--brand);
}

#banner,
#sidebar iframe {
	max-width: 100%;
}

#content {
	min-width: 0;
	margin: 0 0 0 244px;
	padding: 0;
}

.panel {
	margin: 0 0 22px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface);
	box-shadow: 0 6px 20px rgba(37, 31, 74, .045);
	color: var(--ink);
}

.safety-actions,
.safety-center,
.moderation,
.moderation-report,
.reported-message {
	margin: 20px 0;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
}

.safety-actions form,
.moderation-report form {
	display: grid;
	gap: 10px;
	max-width: 680px;
	margin: 16px 0;
}

.safety-actions button,
.moderation button,
.moderation-report button {
	width: fit-content;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.safety-actions select,
.safety-actions textarea,
.moderation select,
.moderation textarea {
	width: min(100%, 680px);
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 9px;
	font: inherit;
}

.safety-report-status {
	padding-left: 20px;
}

.interest-action,
.matches-page > section {
	margin: 20px 0;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
}

.interest-action form,
.matches-page form {
	margin: 12px 0 0;
}

.interest-action button,
.matches-page button,
.matches-page .button {
	display: inline-block;
	width: fit-content;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.interest-action button:hover,
.matches-page button:hover,
.matches-page .button:hover {
	background: var(--brand-dark);
	color: #fff;
}

.match-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.match-list li {
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface-soft);
}

.match-list h3 {
	margin: 0 0 8px;
}

.date-planner,
.dates-page {
	margin: 20px 0;
	padding: 22px;
}

.date-planner form,
.date-plan-actions form {
	display: grid;
	gap: 10px;
	max-width: 560px;
	margin: 16px 0;
}

.date-planner input,
.date-planner select,
.date-plan-actions input {
	width: min(100%, 560px);
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 9px;
	font: inherit;
}

.profile-prompts-editor {
	margin-top: 26px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface-soft);
}

.profile-prompts-editor > p {
	color: var(--muted);
}

.profile-prompt-field {
	display: grid;
	gap: 8px;
	margin: 16px 0;
}

.profile-prompt-field label {
	font-weight: 700;
}

.profile-prompt-field select,
.profile-prompt-field textarea {
	width: min(100%, 720px);
	padding: 11px 12px;
	border: 1px solid var(--border);
	border-radius: 9px;
	font: inherit;
}

.profile-prompt-answers {
	padding: 18px 22px;
}

.profile-prompt-answer {
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}

.profile-prompt-answer:last-child {
	border-bottom: 0;
}

.profile-prompt-answer h2 {
	margin: 0 0 8px;
	color: var(--brand-dark);
	font-size: 1.05rem;
}

.profile-prompt-answer p {
	margin: 0;
	white-space: normal;
}

.date-planner button,
.date-plan-actions button {
	width: fit-content;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.date-plan-list {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.date-plan-list > li {
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
}

.date-plan-list h2 {
	margin-top: 0;
	font-size: 1.2rem;
}

.discovery-page {
	margin: 20px 0;
	padding: 22px;
}

.discovery-list {
	display: grid;
	grid-template-columns: minmax(0, 460px);
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.discovery-list.swipe-ready > .discovery-card:not(:first-child) {
	display: none;
}

.discovery-end-state {
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: linear-gradient(145deg, #fff, var(--surface-soft));
}

.discovery-card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 22px;
	background: var(--surface);
	box-shadow: 0 18px 44px rgba(37, 31, 74, .14);
	transform: translateX(0) rotate(0);
	transition: transform .24s ease, opacity .24s ease;
	touch-action: pan-y;
	user-select: none;
}

.discovery-card.swiping-left {
	opacity: 0;
	transform: translateX(-120%) rotate(-12deg);
}

.discovery-card.swiping-right {
	opacity: 0;
	transform: translateX(120%) rotate(12deg);
}

.discovery-card-photo {
	position: relative;
	height: clamp(280px, 48vw, 430px);
	overflow: hidden;
	background: linear-gradient(145deg, #ece7fa, #f8dce4);
}

.discovery-card-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.swipe-stamp {
	position: absolute;
	top: 24px;
	padding: 6px 12px;
	border: 3px solid currentColor;
	border-radius: 8px;
	font-size: 1.6rem;
	font-weight: 900;
	letter-spacing: .08em;
	opacity: 0;
	transform: rotate(-12deg);
}

.like-stamp {
	left: 20px;
	color: #16865a;
}

.pass-stamp {
	right: 20px;
	color: #d0445c;
	transform: rotate(12deg);
}

.discovery-card.swiping-right .like-stamp,
.discovery-card.swiping-left .pass-stamp {
	opacity: 1;
}

.discovery-card-body {
	padding: 22px 24px 12px;
}

.discovery-card h2 {
	margin: 0 0 10px;
	font-size: 1.65rem;
	letter-spacing: -.03em;
}

.discovery-tagline {
	margin: 0;
	color: var(--muted);
	font-size: 1.05rem;
}

.discovery-opening-move {
	display: grid;
	gap: 5px;
	margin: 18px 0;
	padding: 14px 16px;
	border-left: 4px solid var(--accent);
	border-radius: 0 12px 12px 0;
	background: #fff5f7;
}

.discovery-opening-move > strong {
	color: var(--brand-dark);
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.discovery-opening-move > span {
	font-weight: 750;
}

.discovery-opening-move p {
	margin: 0;
}

.discovery-card .why-match {
	margin: 16px 0 12px;
	border-left-width: 2px;
	font-size: .88rem;
}

.discovery-profile-link {
	display: inline-block;
	margin-bottom: 4px;
	font-weight: 700;
}

.why-match {
	padding: 10px 12px;
	border-left: 3px solid var(--brand);
	background: rgba(105, 65, 198, .06);
	color: var(--muted);
}

.discovery-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 8px 22px 22px;
}

.discovery-actions form {
	margin: 0;
}

.discovery-actions button {
	width: 100%;
	min-height: 54px;
	padding: 10px 14px;
	border: 1px solid var(--brand);
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 800;
	cursor: pointer;
}

.discovery-actions button.secondary {
	border: 1px solid var(--border);
	background: #fff;
	color: var(--ink);
}

.discovery-actions button:hover {
	background: var(--brand-dark);
	color: #fff;
}

.discovery-actions button.secondary {
	border-color: var(--border);
}

.discovery-swipe-help {
	margin: 12px 0 0;
	color: var(--muted);
	text-align: center;
	font-size: .9rem;
}

@media (prefers-reduced-motion: reduce) {
	.discovery-card {
		transition: none;
	}
}

@media (max-width: 600px) {
	.discovery-page {
		padding: 16px;
	}

	.discovery-card {
		border-radius: 16px;
	}

	.discovery-card-body {
		padding: 18px 18px 10px;
	}

	.discovery-actions {
		padding: 8px 18px 18px;
	}
}

.notice {
	padding: 12px 16px;
	border-left: 4px solid var(--brand);
	border-radius: 6px;
	background: var(--surface-soft);
}

.panel .header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--border);
	background: linear-gradient(110deg, #fbfaff, #fff);
	color: var(--ink);
}

.panel .header h1,
.panel .header h2,
.panel .header h3,
.panel .header h4 {
	margin: 0;
	color: var(--ink);
	font-size: 1.14rem;
	line-height: 1.35;
}

.panel .header h2 {
	color: var(--muted);
	font-size: .85rem;
	font-weight: 500;
}

.panel .content {
	padding: 22px;
	color: var(--ink);
}

.panel p {
	margin: 0 0 1em;
}

.panel p:last-child {
	margin-bottom: 0;
}

fieldset {
	min-width: 0;
	border: 0;
}

label {
	float: none;
	display: block;
	width: auto;
	height: auto;
	margin: 0 0 5px;
	padding: 0;
	color: #454d68;
	font: inherit;
	font-size: .9rem;
	font-weight: 650;
	text-align: left;
}

input.text,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	max-width: 100%;
	min-height: 44px;
	padding: 10px 13px;
	border: 1px solid #d6dae7;
	border-radius: 9px;
	background: #fff;
	color: var(--ink);
	font: inherit;
}

input.text {
	width: min(100%, 360px);
	height: auto;
	background-image: none;
}

textarea {
	width: min(100%, 680px);
}

form .row {
	display: block;
	margin: 0 0 16px;
}

input[type="submit"],
input[type="button"],
button,
.button {
	min-height: 42px;
	padding: 9px 17px;
	border: 0;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
	background: var(--brand-dark);
	color: #fff;
}

.profile,
.pic,
.pictureframe {
	max-width: 100%;
}

img {
	max-width: 100%;
	height: auto;
}

#footer {
	clear: both;
	padding: 18px 26px 24px;
	border-top: 1px solid var(--border);
	border-radius: 0 0 21px 21px;
	background: #fbfaff;
	color: var(--muted);
	font-size: .85rem;
	text-align: center;
}

#footer .content {
	display: none;
}

#footer .links {
	display: flex;
	justify-content: center;
	gap: 18px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

#footer a {
	color: var(--brand);
}

@media (max-width: 760px) {
	#container {
		width: calc(100% - 20px);
		margin: 10px auto 20px;
		border-radius: 16px;
	}

	#header .content {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		padding: 16px 18px;
	}

	#navBar {
		gap: 2px;
	}

	#navBar a {
		padding: 7px 10px;
	}

	#outer {
		padding: 16px 14px 24px;
	}

	#sidebar {
		float: none;
		width: 100%;
		margin: 0 0 16px;
	}

	#sidebar .nav > li > a {
		margin-bottom: 3px;
	}

	#sidebar .nav li ul {
		display: flex;
		flex-wrap: wrap;
		gap: 2px 8px;
		padding: 0 8px 8px;
	}

	#sidebar .nav li ul a {
		padding: 5px;
	}

	#banner,
	#sidebar iframe,
	#sidebar .toplinks {
		display: none;
	}

	#content {
		margin: 0;
	}

	.panel .header,
	.panel .content {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
