:root {
	--content-width: 960px;
	--sidebar-width: 170px;
	--sidebar-gap: 2rem;
	--page-padding: 1.25rem;
	--shell-width: calc(var(--content-width) + var(--sidebar-width) + var(--sidebar-gap));
}

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #f9fafb;
	background-color: #050505;
	background-image: radial-gradient(circle at top, #27272a 0, #09090b 58%, #000 100%);
	background-repeat: no-repeat;
	background-attachment: fixed;
	display: flex;
	flex-direction: column;
	position: relative;
	isolation: isolate;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: radial-gradient(circle at top, #f8fafc 0, #e2e8f0 58%, #cbd5e1 100%);
	opacity: 0;
}

body.app-booting #siteNav,
body.app-booting .page,
body.app-booting .bubble-menu {
	opacity: 0;
}

#siteNav,
.page,
.bubble-menu {
	transition: opacity 0.18s ease;
}

[hidden] {
	display: none !important;
}

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3 {
	margin: 0 0 0.5rem;
}

p {
	margin: 0 0 0.75rem;
	line-height: 1.5;
	font-size: 0.95rem;
}

.muted {
	color: #9ca3af;
	font-size: 0.9rem;
}

.error-text {
	color: #fecaca;
	font-size: 0.85rem;
	margin-top: 0.5rem;
}

.top-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(16px);
	background: linear-gradient(to right, rgba(10,10,11,0.94), rgba(24,24,27,0.9));
	border-bottom: 1px solid rgba(82,82,91,0.42);
}

.top-nav__inner,
.page {
	max-width: calc(var(--content-width) + (var(--page-padding) * 2));
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.top-nav__inner {
	padding: 0.75rem var(--page-padding);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	flex-shrink: 0;
}

.brand__logo {
	width: 2.2rem;
	height: 2.2rem;
	flex-shrink: 0;
	display: block;
}

.brand__copy {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.2rem;
}

.brand__title {
	font-weight: 700;
	letter-spacing: 0.08em;
	font-size: 1.1rem;
	text-transform: uppercase;
	line-height: 1;
}

.brand__subtitle {
	display: none;
}

.brand-link {
	display: inline-flex;
	align-items: center;
}

body.theme-light .brand__logo {
	filter: saturate(0.88) brightness(0.96);
}

.nav-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.25rem;
	align-items: center;
	min-height: 2.25rem;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.85rem;
	min-height: 2.6rem;
	border-radius: 999px;
	font-size: 0.9rem;
	color: #e5e7eb;
	box-sizing: border-box;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav-link:hover {
	background-color: rgba(39,39,42,0.96);
	transform: translateY(-1px);
}

.nav-link--button {
	font: inherit;
	border: 1px solid rgba(82,82,91,0.55);
	background: rgba(24,24,27,0.88);
	cursor: pointer;
}

.nav-link--iconbutton {
	width: 2.6rem;
	height: 2.6rem;
	padding: 0;
	border-radius: 999px;
}

.nav-link__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	line-height: 1;
}

.nav-link__icon-svg {
	width: 1.35rem;
	height: 1.35rem;
	display: block;
}

.nav-link--active {
	background: linear-gradient(to right, #3f3f46, #18181b);
	color: #f9fafb;
}

.bubble-menu {
	width: 100%;
	max-width: calc(var(--content-width) + (var(--page-padding) * 2));
	margin: 1rem auto 0;
	box-sizing: border-box;
	padding: 0 var(--page-padding);
}

.bubble-menu--topicons {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.club-breadcrumb {
	width: 100%;
	max-width: calc(var(--content-width) + (var(--page-padding) * 2));
	margin: 1rem auto 0;
	box-sizing: border-box;
	padding: 0 var(--page-padding);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 1rem;
}

.club-breadcrumb__back,
.club-breadcrumb__club,
.club-breadcrumb__page,
.club-breadcrumb__separator {
	color: #cbd5e1;
}

.club-breadcrumb__back,
.club-breadcrumb__club {
	font-weight: 500;
}

.club-breadcrumb__back:hover,
.club-breadcrumb__club:hover {
	color: #f8fafc;
}

.club-breadcrumb__page {
	font-weight: 700;
	color: #f8fafc;
}

.club-breadcrumb__separator {
	opacity: 0.55;
}

.bubble-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 0.7rem 0.95rem;
	border-radius: 999px;
	background: rgba(24,24,27,0.94);
	border: 1px solid rgba(82,82,91,0.45);
	font-size: 0.82rem;
	font-weight: 600;
	color: #e5e7eb;
	white-space: nowrap;
	transition: transform 0.12s ease, background 0.12s ease;
}

.bubble-link:hover {
	transform: translateY(-1px);
	background: rgba(39,39,42,0.98);
}

.bubble-link--active {
	background: linear-gradient(135deg, #52525b, #18181b);
	color: #f9fafb;
}

.bubble-link--back,
.bubble-link--icon {
	width: 3rem;
	height: 3rem;
	padding: 0;
	border-radius: 1rem;
	flex-shrink: 0;
}

.bubble-link__icon {
	width: calc(100% - 0.3rem);
	height: calc(100% - 0.3rem);
	object-fit: contain;
	display: block;
}

.bubble-link__icon-fallback {
	position: absolute;
	font-size: 0.95rem;
	font-weight: 700;
}

.bubble-link__icon[src=""] {
	display: none;
}

.page {
	margin: 1.5rem auto 2.5rem;
	padding: 0 var(--page-padding);
	display: flex;
	flex-direction: column;
	gap: 1.35rem;
}

.page--admin {
	gap: 1rem;
}

.page-section {
	width: 100%;
	box-sizing: border-box;
}

.page-section--hero h1 {
	font-size: clamp(2.25rem, 4vw, 3rem);
	margin-bottom: 0.75rem;
}

.page-section--stacked {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.unauthorized-card {
	max-width: 100%;
}

.card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.dashboard-kicker {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #93c5fd;
}

.dashboard-hero {
	display: flex;
	align-items: center;
	gap: 1.35rem;
	padding: 1.5rem;
	border-radius: 1.6rem;
	border: 1px solid rgba(148,163,184,0.18);
	background:
		radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 34%),
		linear-gradient(135deg, rgba(15,23,42,0.94), rgba(17,24,39,0.92));
	box-shadow: 0 26px 60px rgba(2,6,23,0.34);
}

.dashboard-hero--compact {
	padding: 1.3rem 1.45rem;
}

.dashboard-hero--club {
	background:
		radial-gradient(circle at top left, var(--club-accent-soft, rgba(59,130,246,0.18)), transparent 34%),
		linear-gradient(135deg, rgba(15,23,42,0.94), rgba(17,24,39,0.92));
}

.dashboard-hero__media {
	flex-shrink: 0;
}

.dashboard-hero__content {
	min-width: 0;
}

.dashboard-roleline {
	margin-bottom: 0;
}

.dashboard-hero__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.profile-avatar {
	width: 5.4rem;
	height: 5.4rem;
	border-radius: 1.35rem;
	object-fit: cover;
	border: 1px solid rgba(148,163,184,0.26);
	box-shadow: 0 18px 36px rgba(2,6,23,0.32);
}

.profile-avatar--fallback,
.club-mark {
	display: grid;
	place-items: center;
	font-size: 1.75rem;
	font-weight: 800;
	color: #eff6ff;
	background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.club-mark {
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 1.5rem;
	flex-shrink: 0;
	box-shadow: 0 18px 36px rgba(2,6,23,0.34);
}

.dashboard-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

#dashboardClubGrid,
#dashboardCatalogGrid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	justify-content: start;
}

.dashboard-card-grid--tools {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1.2rem;
	border-radius: 1.35rem;
	border: 1px solid rgba(148,163,184,0.16);
	background:
		linear-gradient(180deg, var(--club-accent-soft, rgba(59,130,246,0.1)), transparent 45%),
		rgba(15,23,42,0.82);
	box-shadow: 0 18px 42px rgba(2,6,23,0.28);
}

.dashboard-card--catalog {
	background: rgba(15,23,42,0.82);
}

.dashboard-card--join {
	gap: 0.75rem;
	--club-accent-soft: rgba(255,255,255,0.12);
}

.dashboard-card--empty {
	justify-content: center;
	min-height: 220px;
}

.dashboard-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.dashboard-card__header h3 {
	margin-bottom: 0.25rem;
}

.dashboard-card__mark {
	width: 3.2rem;
	height: 3.2rem;
	border-radius: 1rem;
	border: 1px solid rgba(255,255,255,0.12);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
	flex-shrink: 0;
}

.dashboard-card__mark--join {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	font-weight: 700;
}

.dashboard-card__button,
.tool-card__link {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1rem;
	border-radius: 1rem;
	font-size: 0.98rem;
	font-weight: 700;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.08);
	color: #f8fafc;
	transition: transform 0.12s ease, background 0.12s ease;
}

.dashboard-card__button:hover,
.tool-card__link:hover {
	transform: translateY(-1px);
	background: rgba(255,255,255,0.1);
}

.dashboard-card__button--subtle {
	background: rgba(30,41,59,0.82);
}

.tool-card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1.3rem;
	border-radius: 1.5rem;
	border: 1px solid rgba(148,163,184,0.14);
	background: rgba(15,23,42,0.82);
	box-shadow: 0 18px 42px rgba(2,6,23,0.26);
	min-height: 250px;
}

.tool-card--muted {
	opacity: 0.72;
}

.tool-card__icon {
	width: 3.3rem;
	height: 3.3rem;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 1rem;
	background: rgba(255,255,255,0.08);
	padding: 0.45rem;
	box-sizing: border-box;
}

.tool-card__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.tool-card__link {
	justify-content: flex-start;
	padding: 0;
	border: none;
	background: transparent;
}

.tool-card__link--disabled {
	color: #94a3b8;
	pointer-events: none;
}

.form {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(192px, 1fr));
	gap: 0.9rem 1rem;
}

.dashboard-join-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.dashboard-join-form .dashboard-card__button {
	width: 100%;
	margin-top: 0;
}

.dashboard-join-status {
	min-height: 0;
	margin: 0;
}

.dynamic-form-fields,
.form-builder {
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
}

.form-builder__item {
	border: 1px solid rgba(148,163,184,0.24);
	border-radius: 1rem;
	padding: 1rem;
	background: rgba(15,23,42,0.34);
}

.dynamic-field {
	display: flex;
	flex-direction: column;
}

.is-hidden {
	display: none !important;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.85rem;
}

.form-field span {
	color: #e5e7eb;
}

.form-field--checkbox input[type="checkbox"] {
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.35rem;
}

.form-field--full {
	grid-column: 1 / -1;
}

input,
select,
textarea {
	border-radius: 0.5rem;
	border: 1px solid rgba(148,163,184,0.7);
	background-color: rgba(15,23,42,0.85);
	color: #f9fafb;
	padding: 0.5rem 0.75rem;
	font: inherit;
	box-sizing: border-box;
}

input[type="color"] {
	width: 4.25rem;
	height: 2.1rem;
	padding: 0.12rem;
	background: rgba(15,23,42,0.96);
	border-radius: 0.7rem;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
	justify-self: start;
}

input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}

input[type="color"]::-webkit-color-swatch {
	border: none;
	border-radius: 0.52rem;
}

input[type="color"]::-moz-color-swatch {
	border: none;
	border-radius: 0.52rem;
}

textarea {
	resize: none;
	min-height: 7.5rem;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(113,113,122,0.82) rgba(24,24,27,0.82);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), inset 0 -18px 24px rgba(2,6,23,0.18);
}

textarea::-webkit-scrollbar {
	width: 12px;
}

textarea::-webkit-scrollbar-track {
	background: rgba(24,24,27,0.82);
	border-radius: 999px;
}

textarea::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(113,113,122,0.95), rgba(63,63,70,0.82));
	border: 3px solid rgba(24,24,27,0.82);
	border-radius: 999px;
}

textarea::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(161,161,170,0.98), rgba(82,82,91,0.9));
}

input:focus,
select:focus,
textarea:focus {
	outline: 2px solid #4f46e5;
	outline-offset: 1px;
}

.is-locked,
input[readonly],
input:disabled,
select:disabled {
	cursor: not-allowed;
	opacity: 0.78;
}

.form-fieldset {
	border: 1px solid rgba(148,163,184,0.45);
	border-radius: 0.75rem;
	padding: 0.75rem 0.9rem 0.85rem;
	margin: 0.25rem 0 0.5rem;
}

.form-fieldset legend {
	padding: 0 0.35rem;
	font-size: 0.8rem;
	color: #e5e7eb;
}

.form-actions {
	margin-top: 0.25rem;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
}

.google-auth-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.1rem;
	margin-top: 1rem;
	border-radius: 1rem;
	border: 1px solid rgba(148,163,184,0.35);
	background: rgba(15,23,42,0.78);
}

.google-auth-card h3 {
	margin-bottom: 0.35rem;
}

.google-auth-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.account-summary {
	display: grid;
	gap: 0.85rem;
}

.account-summary__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border-radius: 0.9rem;
	background: rgba(15,23,42,0.7);
	border: 1px solid rgba(148,163,184,0.25);
}

.dashboard-pairings {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}

.dashboard-pairings--single {
	grid-template-columns: 1fr;
}

.dashboard-pairings__column {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.chip-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.55rem;
	margin-top: 0.25rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	gap: 0.35rem;
	border-radius: 0.85rem;
	padding: 0.5rem 0.75rem;
	background-color: rgba(24,24,27,0.94);
	border: 1px solid rgba(82,82,91,0.62);
	font-size: 0.8rem;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.chip input[type="checkbox"] {
	flex-shrink: 0;
	accent-color: #71717a;
}

.chip span {
	flex: 1 1 auto;
	min-width: 0;
}

.chip:has(input[type="checkbox"]:checked) {
	border-color: rgba(161,161,170,0.78);
	background: rgba(39,39,42,0.96);
}

.chip:has(input[type="checkbox"]:not(:disabled)):hover {
	transform: translateY(-1px);
	border-color: rgba(113,113,122,0.88);
	background: rgba(39,39,42,0.98);
}

.chip input[type="checkbox"]:disabled,
.chip input[type="checkbox"]:disabled + span,
.chip:has(input[type="checkbox"]:disabled) {
	cursor: not-allowed;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 0.45rem 1rem;
	font-size: 0.9rem;
	border: none;
	cursor: pointer;
	background: rgba(15,23,42,0.9);
	color: #f9fafb;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
	white-space: nowrap;
}

.button--primary {
	background: linear-gradient(135deg, #4f46e5, #22c55e);
	box-shadow: 0 10px 30px rgba(88,80,236,0.5);
}

.button--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(88,80,236,0.65);
}

.button--secondary {
	background: rgba(15,23,42,0.95);
	border: 1px solid rgba(148,163,184,0.7);
}

.button--secondary:hover {
	background: rgba(15,23,42,1);
}

.button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.button--danger,
.button--signout {
	background: rgba(127,29,29,0.98);
	border: 1px solid rgba(248,113,113,0.45);
	color: #fee2e2;
}

.button--signout:hover {
	background: rgba(153,27,27,1);
}

.admin-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.admin-layout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1rem;
	margin-top: 0.75rem;
}

.manual-layout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
}

.signup-page {
	gap: 0.9rem;
}

.signup-page > .card__header {
	margin-bottom: -0.1rem;
}

.signup-page__content {
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
}

.signup-page__content .dashboard-pairings {
	margin: 0;
}

.signup-page__content .dashboard-pairings__column {
	gap: 0.55rem;
}

.signup-page__content .form {
	gap: 0.95rem;
}

.signup-page__content .form-grid {
	gap: 0.8rem 1rem;
}

.signup-page__content .form-fieldset {
	margin: 0;
	padding: 0.7rem 0.9rem 0.85rem;
}

.signup-page__content .form-fieldset legend {
	margin-bottom: 0.2rem;
}

.signup-page__content .form-actions {
	margin-top: 0.1rem;
}

.collapse-card {
	border: 1px solid rgba(148,163,184,0.28);
	border-radius: 1rem;
	background: rgba(15,23,42,0.72);
	padding: 0.1rem 1rem 0.4rem;
	transition: padding 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.collapse-card summary {
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	padding: 0.85rem 0 0.55rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.collapse-card summary::-webkit-details-marker {
	display: none;
}

.collapse-card summary::after {
	content: ">";
	font-size: 0.95rem;
	color: #93c5fd;
	transform: rotate(90deg);
	transition: transform 0.16s ease, color 0.16s ease;
}

.collapse-card[open] {
	padding-bottom: 1rem;
	background: rgba(15,23,42,0.78);
	border-color: rgba(96,165,250,0.4);
}

.collapse-card[open] summary {
	padding-bottom: 0.75rem;
}

.collapse-card[open] summary::after {
	transform: rotate(270deg);
	color: #bfdbfe;
}

.collapse-card__content {
	padding-top: 0.25rem;
}

.admin-column__title {
	font-size: 0.95rem;
	margin-bottom: 0.25rem;
}

.pair-list {
	margin-top: 0.75rem;
	border-radius: 0.9rem;
	border: 1px solid rgba(148,163,184,0.35);
	background: rgba(15,23,42,0.9);
	max-height: 420px;
	overflow: auto;
	padding: 0.5rem;
}

.pair-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.65rem 0.75rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(55,65,81,0.9);
	background: radial-gradient(circle at top left, rgba(30,64,175,0.45), rgba(17,24,39,0.95));
	margin-bottom: 0.45rem;
}

.pair-header {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	align-items: baseline;
}

.pair-names {
	font-weight: 600;
	font-size: 0.95rem;
}

.pair-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	font-size: 0.8rem;
	color: #cbd5f5;
}

.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
	font-size: 0.75rem;
	background-color: rgba(15,23,42,0.9);
	border: 1px solid rgba(148,163,184,0.6);
	color: #e5e7eb;
}

.badge--score {
	background: rgba(22,163,74,0.12);
	border-color: rgba(22,163,74,0.7);
	color: #bbf7d0;
}

.pair-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.2rem;
}

.pairs-browser {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0;
	border-radius: 1.6rem;
	border: 1px solid rgba(63,63,70,0.42);
	background: #171717;
	box-shadow: 0 24px 56px rgba(0,0,0,0.3);
}

.pairs-browser__header,
.pairs-browser__toolbar,
.pairs-browser__filters,
.pairs-browser__footer {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-wrap: wrap;
}

.pairs-browser__header {
	justify-content: space-between;
	padding: 1.4rem 1.5rem 1.2rem;
	border-bottom: 1px solid rgba(63,63,70,0.35);
}

.pairs-browser__toolbar .form-field,
.pairs-browser__filters .form-field {
	margin: 0;
}

.pairs-browser__toolbar,
.pairs-browser__filters,
.pairs-browser__footer {
	padding-inline: 1.5rem;
}

.pairs-browser__toolbar {
	padding-top: 0.3rem;
}

.pairs-browser__search {
	flex: 1 1 24rem;
	min-width: min(100%, 20rem);
}

.pairs-browser__results {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 0 1.5rem 1.5rem;
}

.pairs-browser__pagination {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin-left: auto;
	flex-wrap: wrap;
}

.pair-item--current {
	margin: 0;
	border-radius: 1rem;
	border: 1px solid rgba(63,63,70,0.48);
	background: #1c1c1c;
	overflow: hidden;
}

.pair-disclosure {
	display: block;
}

.pair-disclosure summary {
	list-style: none;
}

.pair-disclosure summary::-webkit-details-marker {
	display: none;
}

.pair-summary,
.pair-summary__main,
.pair-body {
	display: flex;
}

.pair-summary {
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.1rem;
	cursor: pointer;
}

.pair-summary__main {
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.pair-arrow {
	opacity: 0.65;
}

.pair-summary__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #a1a1aa;
	flex-shrink: 0;
}

.pair-summary__toggle::after {
	content: ">";
	display: inline-block;
	transform: rotate(90deg);
	transition: transform 0.18s ease;
}

.pair-disclosure[open] .pair-summary__toggle {
	color: #f4f4f5;
}

.pair-disclosure[open] .pair-summary__toggle::after {
	transform: rotate(270deg);
}

.pair-timestamp {
	font-size: 0.78rem;
	color: #a1a1aa;
}

.pair-body {
	gap: 1rem;
	flex-wrap: wrap;
	padding: 0 1.1rem 1.05rem;
	border-top: 1px solid rgba(63,63,70,0.35);
}

.pair-column {
	flex: 1 1 16rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.pair-column h3 {
	font-size: 0.85rem;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #d4d4d8;
}

.pair-unpair-button {
	padding-inline: 0.85rem;
}

.pair-actions--details {
	width: 100%;
	justify-content: flex-end;
	margin-top: 0.35rem;
}

.pairs-browser__filter-label {
	font-size: 0.88rem;
	font-weight: 600;
}

.button--confirm {
	background: linear-gradient(135deg, #22c55e, #4ade80);
}

.button--deny {
	background: rgba(127,29,29,0.98);
}

.callout {
	padding: 0.85rem 1rem;
	border-radius: 0.9rem;
	border: 1px solid rgba(148,163,184,0.25);
	background: rgba(15,23,42,0.7);
	color: #e5e7eb;
}

.badge--club {
	background: var(--badge-accent-soft, rgba(59,130,246,0.22));
	border-color: var(--badge-accent, rgba(96,165,250,0.7));
	color: var(--badge-text, #f8fafc);
}

.callout--warning {
	border-color: rgba(250,204,21,0.45);
	background: rgba(113,63,18,0.25);
}

.tab-bar {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.tab-button {
	border: 1px solid rgba(148,163,184,0.35);
	background: rgba(15,23,42,0.8);
	color: #e5e7eb;
	border-radius: 999px;
	padding: 0.55rem 0.9rem;
	font: inherit;
	cursor: pointer;
}

.tab-button--active {
	background: linear-gradient(135deg, #4f46e5, #22c55e);
	border-color: transparent;
}

.selectable-card {
	cursor: pointer;
}

.selectable-card--active {
	border-color: rgba(74,222,128,0.9);
	box-shadow: 0 0 0 1px rgba(74,222,128,0.5);
}

.empty-state {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	text-align: center;
}

.tag-input {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.tag-input__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	min-height: 3rem;
	padding: 0.45rem 0.55rem;
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 0.9rem;
	background: rgba(15,23,42,0.62);
}

.tag-input__bubbles {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
}

.tag-input__bubble {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(148,163,184,0.28);
	font-size: 0.95rem;
	line-height: 1.2;
}

.tag-input__bubble-remove {
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	padding: 0;
	opacity: 0.75;
}

.tag-input__bubble-remove:hover {
	opacity: 1;
}

.tag-input__field {
	flex: 1 1 10rem;
	min-width: 10rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	padding: 0.35rem 0.1rem;
	outline: none;
}

.tag-input__error {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
}

.button--success {
	background: #16a34a;
	border: 1px solid #16a34a;
	color: #f8fafc;
}

.button--success:hover {
	background: #22c55e;
	border-color: #22c55e;
}

.button--small {
	padding: 0.45rem 0.8rem;
	font-size: 0.92rem;
}

.manage-page {
	padding-bottom: 7rem;
}

.manage-inline-code {
	margin-top: 0.5rem;
	font-size: 0.95rem;
}

.manage-section,
.manage-editor-card,
.manage-editor-stack {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.field-pill-row,
.manage-editor-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.field-pill {
	border: 1px solid rgba(148,163,184,0.3);
	background: rgba(71,85,105,0.92);
	color: #f8fafc;
	border-radius: 999px;
	padding: 0.7rem 1.2rem;
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
}

.field-pill--active {
	background: rgba(59,130,246,0.24);
	border-color: rgba(96,165,250,0.65);
}

.field-pill--add {
	width: 3rem;
	padding-inline: 0;
	font-size: 1.25rem;
	justify-content: center;
}

.manage-editor-card {
	border-radius: 1.2rem;
	border: 1px solid rgba(148,163,184,0.25);
	background: rgba(15,23,42,0.82);
	padding: 1.25rem;
}

.manage-editor-card__header {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.manage-editor-card__header h3,
.manage-label,
.manage-inline-select span,
.unsaved-banner strong {
	font-size: 0.95rem;
}

.manage-inline-select {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.manage-inline-select select {
	min-width: 11rem;
}

.manage-inline-button {
	font-size: 0.95rem;
}

.toggle-chip {
	border: 1px solid rgba(96,165,250,0.3);
	background: rgba(15,23,42,0.85);
	color: #e5e7eb;
	border-radius: 999px;
	padding: 0.7rem 1.1rem;
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
}

.toggle-chip--active {
	background: rgba(37,99,235,0.22);
	border-color: rgba(96,165,250,0.7);
}

.manage-owner-text,
.static-value {
	padding: 0.85rem 0.95rem;
	border-radius: 0.85rem;
	border: 1px solid rgba(148,163,184,0.2);
	background: rgba(255,255,255,0.04);
	font-size: 0.95rem;
}

.static-value {
	min-height: 3rem;
	display: flex;
	align-items: center;
}

.stacked-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.stacked-list__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 0.95rem;
	border-radius: 0.85rem;
	border: 1px solid rgba(148,163,184,0.2);
	background: rgba(255,255,255,0.04);
}

.stacked-list__item--actions {
	align-items: flex-start;
}

.modal--wide {
	max-width: 46rem;
	width: min(46rem, calc(100vw - 2rem));
}

.modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.modal__close {
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.unsaved-banner {
	position: fixed;
	left: 50%;
	bottom: 1.2rem;
	transform: translateX(-50%);
	width: min(92vw, 68rem);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-radius: 1.1rem;
	border: 1px solid rgba(96,165,250,0.26);
	background: rgba(15,23,42,0.96);
	box-shadow: 0 22px 48px rgba(0,0,0,0.32);
	z-index: 50;
}

.unsaved-banner__copy,
.unsaved-banner__actions {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	flex-wrap: wrap;
}

.unsaved-banner__copy {
	min-width: 0;
}

.unsaved-banner__reset {
	border: 0;
	background: transparent;
	color: #f8fafc;
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
	padding: 0;
}

.unsaved-banner--alert {
	box-shadow: 0 0 0 1px rgba(96,165,250,0.45), 0 0 32px rgba(96,165,250,0.22), 0 22px 48px rgba(0,0,0,0.32);
}

.option-tabs__nav {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
}

.option-tabs__tab {
	border: 1px solid rgba(255,255,255,0.12);
	background: rgba(255,255,255,0.04);
	color: inherit;
	border-radius: 999px;
	padding: 0.35rem 0.9rem;
	cursor: pointer;
	font: inherit;
}

.option-tabs__tab--active {
	background: rgba(59,130,246,0.22);
	border-color: rgba(59,130,246,0.45);
}

.modal-backdrop {
	position: fixed;
	inset: 0;
	background-color: rgba(0,0,0,0);
	backdrop-filter: blur(0px) saturate(0.9) brightness(1);
	display: grid;
	place-items: center;
	padding: 1rem;
	z-index: 30;
	opacity: 0;
	pointer-events: none;
	transition:
		background-color 320ms ease,
		backdrop-filter 320ms ease,
		opacity 320ms ease;
}

.modal-backdrop.is-visible {
	background-color: rgba(0,0,0,0.82);
	backdrop-filter: blur(12px) saturate(0.4) brightness(0.58);
	opacity: 1;
	pointer-events: auto;
}

.modal {
	width: min(420px, 100%);
	background: rgba(18,18,20,0.96);
	border: 1px solid rgba(82,82,91,0.42);
	border-radius: 1rem;
	padding: 1.25rem;
	box-shadow: 0 24px 54px rgba(0,0,0,0.58);
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition:
		opacity 280ms ease,
		transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
		background-color 320ms ease,
		border-color 320ms ease,
		box-shadow 320ms ease;
}

.modal-backdrop.is-visible .modal {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.modal-actions {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

.settings-modal {
	width: min(520px, 100%);
}

.settings-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin-top: 0.5rem;
}

.settings-option {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.95rem 1rem;
	border-radius: 0.9rem;
	border: 1px solid rgba(148,163,184,0.28);
	background: rgba(15,23,42,0.78);
}

.settings-option__title {
	display: block;
	font-weight: 700;
	margin-bottom: 0.2rem;
}

.settings-option input[type="checkbox"] {
	margin-top: 0.15rem;
	width: 1.1rem;
	height: 1.1rem;
	accent-color: #4f46e5;
}

body.accessibility-enhanced {
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.accessibility-enhanced a {
	text-underline-offset: 0.2em;
}

body.accessibility-enhanced h1,
body.accessibility-enhanced h2,
body.accessibility-enhanced h3 {
	line-height: 1.15;
}

body.accessibility-enhanced p {
	margin: 0 0 0.9rem;
	line-height: 1.65;
	font-size: 1rem;
}

body.accessibility-enhanced .muted {
	color: #cbd5e1;
	font-size: 0.95rem;
}

body.accessibility-enhanced .error-text {
	color: #fee2e2;
	font-size: 0.92rem;
	font-weight: 600;
}

body.accessibility-enhanced .nav-link {
	padding: 0.55rem 0.95rem;
	font-size: 0.95rem;
	font-weight: 600;
}

body.accessibility-enhanced .bubble-link {
	padding: 0.78rem 1rem;
	font-size: 0.88rem;
}

body.accessibility-enhanced .page {
	gap: 1.55rem;
}

body.accessibility-enhanced .page-section--stacked {
	gap: 1.35rem;
}

body.accessibility-enhanced .unauthorized-card {
	padding: 1.3rem;
	border-radius: 1.1rem;
	border: 1px solid rgba(248,113,113,0.28);
	background: linear-gradient(180deg, rgba(127,29,29,0.16), rgba(15,23,42,0.84));
}

body.accessibility-enhanced .card__header {
	align-items: flex-start;
	gap: 1.1rem;
}

body.accessibility-enhanced .dashboard-hero {
	gap: 1.55rem;
	padding: 1.7rem;
}

body.accessibility-enhanced .dashboard-card,
body.accessibility-enhanced .tool-card {
	gap: 0.95rem;
}

body.accessibility-enhanced .dashboard-card {
	padding: 1.3rem;
}

body.accessibility-enhanced .tool-card {
	padding: 1.4rem;
}

body.accessibility-enhanced .dashboard-card__button,
body.accessibility-enhanced .tool-card__link {
	padding: 0.92rem 1.05rem;
	font-size: 1rem;
}

body.accessibility-enhanced .form {
	gap: 1rem;
}

body.accessibility-enhanced .form-grid,
body.accessibility-enhanced .signup-page__content .form-grid {
	gap: 1rem 1.1rem;
}

body.accessibility-enhanced .form-field {
	gap: 0.42rem;
	font-size: 0.92rem;
}

body.accessibility-enhanced .form-field span,
body.accessibility-enhanced .form-fieldset legend {
	font-weight: 600;
}

body.accessibility-enhanced input,
body.accessibility-enhanced select,
body.accessibility-enhanced textarea {
	border: 1px solid rgba(148,163,184,0.78);
	background-color: rgba(15,23,42,0.92);
	padding: 0.7rem 0.85rem;
	min-height: 2.9rem;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

body.accessibility-enhanced input:focus,
body.accessibility-enhanced select:focus,
body.accessibility-enhanced textarea:focus {
	outline: none;
	border-color: #7dd3fc;
	box-shadow: 0 0 0 3px rgba(125,211,252,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}

body.accessibility-enhanced .form-fieldset {
	border: 1px solid rgba(148,163,184,0.5);
	border-radius: 0.9rem;
	padding: 0.9rem 1rem 1rem;
	margin: 0.3rem 0 0.55rem;
	background: rgba(15,23,42,0.52);
}

body.accessibility-enhanced .google-auth-card {
	padding: 1.2rem 1.25rem;
}

body.accessibility-enhanced .dashboard-pairings__column {
	gap: 0.85rem;
}

body.accessibility-enhanced .chip {
	font-size: 0.88rem;
}

body.accessibility-enhanced .button {
	padding: 0.68rem 1.05rem;
	min-height: 2.8rem;
	font-size: 0.95rem;
	font-weight: 700;
}

body.accessibility-enhanced .pair-list {
	border-radius: 1rem;
	border: 1px solid rgba(148,163,184,0.42);
	background: rgba(15,23,42,0.92);
	padding: 0.65rem;
}

body.accessibility-enhanced .pair-item {
	gap: 0.6rem;
	padding: 0.85rem 0.9rem;
	border-radius: 0.9rem;
}

body.accessibility-enhanced .pair-names {
	font-size: 1.02rem;
	line-height: 1.35;
}

body.accessibility-enhanced .pair-meta {
	gap: 0.42rem 0.8rem;
	font-size: 0.9rem;
	color: #dbe7ff;
	line-height: 1.55;
}

body.accessibility-enhanced .badge {
	padding: 0.22rem 0.7rem;
	font-size: 0.8rem;
	font-weight: 700;
}

body.accessibility-enhanced .callout {
	padding: 1rem 1.1rem;
	border-radius: 1rem;
	border: 1px solid rgba(148,163,184,0.3);
	background: rgba(15,23,42,0.8);
	color: #f8fafc;
	line-height: 1.6;
}

body.accessibility-enhanced .tab-button {
	padding: 0.65rem 1rem;
}

body.accessibility-enhanced .empty-state {
	min-height: 140px;
}

body.accessibility-enhanced .modal {
	padding: 1.4rem;
}

body.accessibility-enhanced .pair-list::-webkit-scrollbar {
	width: 12px;
}

body.accessibility-enhanced .pair-list::-webkit-scrollbar-track {
	background: rgba(24,24,27,0.82);
	border-radius: 999px;
}

body.accessibility-enhanced .pair-list::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(113,113,122,0.95), rgba(63,63,70,0.84));
	border: 3px solid rgba(24,24,27,0.82);
	border-radius: 999px;
}

body.accessibility-enhanced .pair-list::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(161,161,170,0.98), rgba(82,82,91,0.9));
}

body.accessibility-enhanced a:focus-visible,
body.accessibility-enhanced button:focus-visible,
body.accessibility-enhanced input:focus-visible,
body.accessibility-enhanced select:focus-visible,
body.accessibility-enhanced textarea:focus-visible,
body.accessibility-enhanced summary:focus-visible,
body.accessibility-enhanced .nav-link:focus-visible,
body.accessibility-enhanced .bubble-link:focus-visible,
body.accessibility-enhanced .tab-button:focus-visible,
body.accessibility-enhanced .chip:has(input:focus-visible) {
	outline: 3px solid #7dd3fc;
	outline-offset: 3px;
	box-shadow: 0 0 0 4px rgba(125,211,252,0.3);
}

body.theme-switching,
body.theme-switching::before,
body.theme-switching .top-nav,
body.theme-switching .nav-link,
body.theme-switching .bubble-link,
body.theme-switching .club-breadcrumb,
body.theme-switching .button,
body.theme-switching .dashboard-hero,
body.theme-switching .dashboard-hero--club,
body.theme-switching .google-auth-card,
body.theme-switching .unauthorized-card,
body.theme-switching .dashboard-card,
body.theme-switching .tool-card,
body.theme-switching .form-fieldset,
body.theme-switching .account-summary__row,
body.theme-switching .pair-list,
body.theme-switching .pair-item,
body.theme-switching .pairs-browser,
body.theme-switching .callout,
body.theme-switching .collapse-card,
body.theme-switching .tab-button,
body.theme-switching .modal-backdrop,
body.theme-switching .modal,
body.theme-switching .settings-option,
body.theme-switching .dashboard-card__button,
body.theme-switching .tool-card__link,
body.theme-switching .tool-card__icon,
body.theme-switching .dashboard-card__mark,
body.theme-switching .badge,
body.theme-switching .profile-avatar,
body.theme-switching input,
body.theme-switching select,
body.theme-switching textarea,
body.theme-switching .bubble-link__icon,
body.theme-switching .tool-card__icon img,
body.theme-switching .nav-link__icon-svg {
	transition:
		background-color 2000ms ease,
		background-image 2000ms ease,
		color 2000ms ease,
		border-color 2000ms ease,
		box-shadow 2000ms ease,
		opacity 2000ms ease,
		filter 2000ms ease,
		backdrop-filter 2000ms ease !important;
}

body.theme-light::before {
	opacity: 1;
}

body.theme-light {
	color: #0f172a;
	background-image: none;
	background-color: #f8fafc;
}

body.theme-light .top-nav {
	background: linear-gradient(to right, rgba(248,250,252,0.94), rgba(219,234,254,0.92));
	border-bottom-color: rgba(148,163,184,0.45);
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light label,
body.theme-light legend,
body.theme-light .brand__title,
body.theme-light .dashboard-roleline,
body.theme-light .pair-names,
body.theme-light .admin-column__title,
body.theme-light .settings-option__title,
body.theme-light .form-field span,
body.theme-light .dashboard-card__header h3,
body.theme-light .tool-card h3 {
	color: #0f172a;
}

body.theme-light .brand__subtitle,
body.theme-light .muted,
body.theme-light .pair-meta,
body.theme-light .pair-timestamp,
body.theme-light .error-text,
body.theme-light .dashboard-kicker,
body.theme-light .tool-card__link--disabled,
body.theme-light .settings-option p,
body.theme-light .empty-state,
body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
	color: #475569;
}

body.theme-light .nav-link,
body.theme-light .bubble-link,
body.theme-light .button,
body.theme-light .tab-button,
body.theme-light .badge,
body.theme-light .dashboard-card__button,
body.theme-light .tool-card__link {
	color: #0f172a;
}

body.theme-light .dashboard-hero,
body.theme-light .dashboard-hero--club,
body.theme-light .google-auth-card,
body.theme-light .unauthorized-card,
body.theme-light .tool-card,
body.theme-light .pairs-browser,
body.theme-light .form-fieldset,
body.theme-light .account-summary__row,
body.theme-light .pair-list,
body.theme-light .pair-item,
body.theme-light .callout,
body.theme-light .collapse-card,
body.theme-light .collapse-card[open],
body.theme-light .tab-button,
body.theme-light .modal,
body.theme-light .settings-option,
body.theme-light .dashboard-card__button,
body.theme-light .dashboard-card__button--subtle,
body.theme-light .tool-card__icon,
body.theme-light .badge,
body.theme-light .profile-avatar,
body.theme-light .dashboard-card__mark {
	background: rgba(255,255,255,0.88);
	color: #0f172a;
	border-color: rgba(148,163,184,0.4);
}

body.theme-light .top-nav__inner {
	background: transparent;
}

body.theme-light .dashboard-card,
body.theme-light .dashboard-card--catalog,
body.theme-light .dashboard-card--join {
	background:
		linear-gradient(180deg, var(--club-accent-soft, rgba(148,163,184,0.12)), transparent 45%),
		rgba(255,255,255,0.88);
}

body.theme-light .dashboard-card--join {
	--club-accent-soft: rgba(255,255,255,0.55);
}

body.theme-light .dashboard-hero,
body.theme-light .dashboard-hero--club {
	background:
		radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 36%),
		linear-gradient(135deg, rgba(255,255,255,0.94), rgba(241,245,249,0.94));
	box-shadow: 0 24px 56px rgba(148,163,184,0.24);
}

body.theme-light .profile-avatar--fallback,
body.theme-light .club-mark {
	color: #0f172a;
	background: linear-gradient(135deg, rgba(147,197,253,0.92), rgba(103,232,249,0.9));
	box-shadow: 0 18px 36px rgba(148,163,184,0.28);
}

body.theme-light .tool-card__icon,
body.theme-light .dashboard-card__mark {
	background: rgba(241,245,249,0.95);
	box-shadow: inset 0 0 0 1px rgba(148,163,184,0.25);
}

body.theme-light .club-breadcrumb__back,
body.theme-light .club-breadcrumb__club,
body.theme-light .club-breadcrumb__page,
body.theme-light .club-breadcrumb__separator,
body.theme-light .pair-column h3 {
	color: #0f172a;
}

body.theme-light .pair-item--current {
	background: rgba(255,255,255,0.94);
	border-color: rgba(148,163,184,0.42);
}

body:not(.theme-light) .club-breadcrumb__back,
body:not(.theme-light) .club-breadcrumb__club {
	color: #a1a1aa;
}

body:not(.theme-light) .club-breadcrumb__page {
	color: #fafafa;
}

body:not(.theme-light) .club-breadcrumb__separator,
body:not(.theme-light) .pairs-browser__filter-label,
body:not(.theme-light) .pair-meta,
body:not(.theme-light) .pair-timestamp,
body:not(.theme-light) .pairs-count,
body:not(.theme-light) #pairsCount,
body:not(.theme-light) #pairsPageLabel,
body:not(.theme-light) #pairsStatus {
	color: #a1a1aa;
}

body:not(.theme-light) .pairs-browser input,
body:not(.theme-light) .pairs-browser select,
body:not(.theme-light) .pairs-browser textarea {
	background: #242424;
	border-color: rgba(82,82,91,0.62);
	color: #f5f5f5;
}

body:not(.theme-light) .pairs-browser input::placeholder {
	color: #71717a;
}

body:not(.theme-light) .pairs-browser .button--secondary {
	background: #262626;
	border-color: rgba(82,82,91,0.72);
	color: #f4f4f5;
}

body:not(.theme-light) .pairs-browser .button--secondary:hover {
	background: #303030;
}

body.theme-light .tool-card__icon img,
body.theme-light .dashboard-card__mark img {
	filter: brightness(0) saturate(100%) invert(11%) sepia(14%) saturate(1107%) hue-rotate(183deg) brightness(94%) contrast(91%);
}

body.theme-light input,
body.theme-light select,
body.theme-light textarea {
	background: rgba(255,255,255,0.96);
	color: #0f172a;
	border-color: rgba(148,163,184,0.7);
}

body.theme-light input[type="color"] {
	background: #ffffff;
}

body.theme-light .nav-link:hover,
body.theme-light .bubble-link:hover,
body.theme-light .button--secondary:hover,
body.theme-light .dashboard-card__button:hover,
body.theme-light .tool-card__link:hover,
body.theme-light .tab-button:hover,
body.theme-light .chip:has(input[type="checkbox"]:not(:disabled)):hover {
	background: rgba(226,232,240,0.96);
}

body.theme-light .bubble-link {
	background: rgba(241,245,249,0.96);
	border-color: rgba(148,163,184,0.52);
	box-shadow: 0 10px 24px rgba(148,163,184,0.18);
}

body.theme-light .nav-link--button,
body.theme-light .button--secondary {
	background: rgba(241,245,249,0.96);
	border-color: rgba(148,163,184,0.58);
	color: #0f172a;
	box-shadow: 0 10px 24px rgba(148,163,184,0.14);
}

body.theme-light .bubble-link__icon {
	filter: brightness(0) saturate(100%) invert(11%) sepia(14%) saturate(1107%) hue-rotate(183deg) brightness(94%) contrast(91%);
}

body.theme-light .nav-link--active,
body.theme-light .bubble-link--active,
body.theme-light .tab-button--active {
	background: linear-gradient(135deg, rgba(191,219,254,0.96), rgba(167,243,208,0.96));
	border-color: rgba(96,165,250,0.55);
	color: #0f172a;
}

body.theme-light .bubble-link--active .bubble-link__icon {
	filter: brightness(0) saturate(100%) invert(11%) sepia(14%) saturate(1107%) hue-rotate(183deg) brightness(94%) contrast(91%);
}

body:not(.theme-light) .top-nav {
	background: linear-gradient(to right, rgba(7,7,8,0.96), rgba(23,23,26,0.92));
	border-bottom-color: rgba(82,82,91,0.4);
}

body:not(.theme-light) .dashboard-hero,
body:not(.theme-light) .dashboard-hero--club {
	background:
		radial-gradient(circle at top left, rgba(82,82,91,0.2), transparent 34%),
		linear-gradient(135deg, rgba(18,18,20,0.96), rgba(10,10,12,0.94));
	box-shadow: 0 26px 60px rgba(0,0,0,0.42);
}

body:not(.theme-light) .dashboard-card,
body:not(.theme-light) .dashboard-card--catalog {
	background:
		linear-gradient(180deg, var(--club-accent-soft, rgba(255,255,255,0.04)), transparent 42%),
		rgba(18,18,20,0.9);
	border-color: rgba(63,63,70,0.42);
	box-shadow: 0 18px 42px rgba(0,0,0,0.34);
}

body:not(.theme-light) .tool-card,
body:not(.theme-light) .google-auth-card,
body:not(.theme-light) .unauthorized-card,
body:not(.theme-light) .form-fieldset,
body:not(.theme-light) .account-summary__row,
body:not(.theme-light) .collapse-card,
body:not(.theme-light) .collapse-card[open],
body:not(.theme-light) .modal,
body:not(.theme-light) .settings-option,
body:not(.theme-light) .dashboard-card__button,
body:not(.theme-light) .dashboard-card__button--subtle,
body:not(.theme-light) .badge,
body:not(.theme-light) .profile-avatar,
body:not(.theme-light) .dashboard-card__mark,
body:not(.theme-light) .tool-card__icon,
body:not(.theme-light) .tab-button,
body:not(.theme-light) .callout,
body:not(.theme-light) .pair-list {
	background-color: rgba(18,18,20,0.9);
	border-color: rgba(63,63,70,0.42);
}

body:not(.theme-light) .modal {
	background: rgba(18,18,20,0.96);
	box-shadow: 0 24px 54px rgba(0,0,0,0.58);
}

body:not(.theme-light) .modal-backdrop {
	background-color: rgba(0,0,0,0.82);
	backdrop-filter: blur(12px) saturate(0.4) brightness(0.58);
}

body:not(.theme-light) .modal-backdrop:not(.is-visible) {
	background-color: rgba(0,0,0,0);
	backdrop-filter: blur(0px) saturate(0.9) brightness(1);
}

body:not(.theme-light) .tool-card__icon,
body:not(.theme-light) .dashboard-card__mark {
	background: rgba(39,39,42,0.9);
	box-shadow: inset 0 0 0 1px rgba(82,82,91,0.38);
}

body:not(.theme-light) .button--secondary,
body:not(.theme-light) input,
body:not(.theme-light) select,
body:not(.theme-light) textarea {
	background: rgba(15,15,17,0.94);
	border-color: rgba(82,82,91,0.7);
}

body:not(.theme-light) .pair-item {
	background: radial-gradient(circle at top left, rgba(63,63,70,0.32), rgba(10,10,12,0.96));
	border-color: rgba(63,63,70,0.55);
}

body:not(.theme-light) .nav-link--active,
body:not(.theme-light) .bubble-link--active,
body:not(.theme-light) .tab-button--active,
body:not(.theme-light) .button--primary {
	background: linear-gradient(135deg, rgba(82,82,91,0.96), rgba(23,23,26,0.96));
	border-color: rgba(113,113,122,0.58);
	box-shadow: 0 14px 30px rgba(0,0,0,0.32);
}

body.theme-light .button--primary {
	background: linear-gradient(135deg, rgba(191,219,254,0.98), rgba(167,243,208,0.98));
	color: #0f172a;
	border-color: rgba(96,165,250,0.45);
	box-shadow: 0 14px 32px rgba(148,163,184,0.28);
}

body.theme-light .button--primary:hover {
	box-shadow: 0 16px 34px rgba(148,163,184,0.34);
}

body.theme-light .button--confirm {
	background: linear-gradient(135deg, rgba(187,247,208,0.98), rgba(134,239,172,0.98));
	color: #14532d;
}

body.theme-light .button--success {
	background: #16a34a;
	border-color: #16a34a;
	color: #f8fafc;
	box-shadow: none;
}

body.theme-light .button--success:hover {
	background: #22c55e;
	border-color: #22c55e;
}

body.theme-light .button--danger,
body.theme-light .button--signout,
body.theme-light .button--deny {
	background: linear-gradient(135deg, rgba(254,226,226,0.98), rgba(254,202,202,0.98));
	color: #7f1d1d;
	border-color: rgba(248,113,113,0.42);
}

body.theme-light .button--danger:hover,
body.theme-light .button--signout:hover,
body.theme-light .button--deny:hover {
	background: linear-gradient(135deg, rgba(254,242,242,1), rgba(254,205,211,1));
}

body.theme-light .chip {
	background: rgba(255,255,255,0.94);
	border-color: rgba(148,163,184,0.45);
	color: #0f172a;
}

body.theme-light .chip:has(input[type="checkbox"]:checked) {
	background: rgba(219,234,254,0.96);
	border-color: rgba(96,165,250,0.75);
}

body.theme-light .chip input[type="checkbox"] {
	accent-color: #475569;
}

body.theme-light .pair-list {
	background: rgba(248,250,252,0.92);
}

body.theme-light .pair-item {
	background: radial-gradient(circle at top left, rgba(191,219,254,0.68), rgba(255,255,255,0.96));
	border-color: rgba(148,163,184,0.45);
}

body.theme-light .badge {
	background-color: rgba(241,245,249,0.96);
	border-color: rgba(148,163,184,0.55);
	color: #1e293b;
}

body.theme-light .badge--score {
	background: rgba(187,247,208,0.85);
	border-color: rgba(34,197,94,0.45);
	color: #14532d;
}

body.theme-light .badge--club {
	color: #0f172a;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}

body.theme-light .callout {
	background: rgba(255,255,255,0.9);
	color: #0f172a;
}

body.theme-light .callout--warning {
	background: rgba(254,240,138,0.28);
	border-color: rgba(234,179,8,0.55);
	color: #713f12;
}

body.theme-light .manage-editor-card,
body.theme-light .unsaved-banner {
	background: rgba(236,242,255,0.97);
	border-color: rgba(148,163,184,0.34);
	box-shadow: 0 20px 48px rgba(148,163,184,0.22);
}

body.theme-light .field-pill {
	background: rgba(71,85,105,0.92);
	border-color: rgba(100,116,139,0.42);
	color: #f8fafc;
}

body.theme-light .field-pill--active {
	background: rgba(191,219,254,0.98);
	border-color: rgba(96,165,250,0.74);
	color: #1e293b;
}

body.theme-light .toggle-chip {
	background: rgba(255,255,255,0.95);
	border-color: rgba(148,163,184,0.45);
	color: #0f172a;
}

body.theme-light .toggle-chip--active {
	background: rgba(191,219,254,0.98);
	border-color: rgba(96,165,250,0.74);
}

body.theme-light .manage-owner-text,
body.theme-light .static-value,
body.theme-light .stacked-list__item,
body.theme-light .tag-input__inner {
	background: rgba(255,255,255,0.98);
	border-color: rgba(148,163,184,0.32);
}

body.theme-light .tag-input__bubble {
	background: rgba(219,234,254,0.96);
	border-color: rgba(147,197,253,0.92);
	color: #1e3a8a;
}

body.theme-light .unsaved-banner__reset {
	color: #334155;
}

body.theme-light .unsaved-banner--alert {
	box-shadow: 0 0 0 1px rgba(96,165,250,0.46), 0 0 32px rgba(96,165,250,0.18), 0 20px 48px rgba(148,163,184,0.22);
}

body.theme-light .selectable-card--active {
	border-color: rgba(59,130,246,0.65);
	box-shadow: 0 0 0 1px rgba(59,130,246,0.32);
}

body.theme-light .collapse-card summary::after {
	color: #334155;
}

body.theme-light .modal-backdrop {
	background-color: rgba(226,232,240,0.72);
	backdrop-filter: blur(14px) saturate(0.78) brightness(1.02);
}

body.theme-light .modal-backdrop:not(.is-visible) {
	background-color: rgba(226,232,240,0);
	backdrop-filter: blur(0px) saturate(1) brightness(1);
}

body.theme-light .pair-list::-webkit-scrollbar-track {
	background: rgba(226,232,240,0.92);
}

body.theme-light .pair-list::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(148,163,184,0.95), rgba(100,116,139,0.82));
	border: 3px solid rgba(226,232,240,0.92);
}

body.theme-light .pair-list::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(100,116,139,0.98), rgba(71,85,105,0.88));
}

body.theme-light textarea {
	scrollbar-color: rgba(148,163,184,0.92) rgba(226,232,240,0.92);
}

body.theme-light textarea::-webkit-scrollbar-track {
	background: rgba(226,232,240,0.92);
}

body.theme-light textarea::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(148,163,184,0.95), rgba(100,116,139,0.82));
	border: 3px solid rgba(226,232,240,0.92);
	border-radius: 999px;
}

body.theme-light textarea::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(100,116,139,0.98), rgba(71,85,105,0.88));
}

body:not(.theme-light) .manage-editor-card,
body:not(.theme-light) .unsaved-banner {
	background: rgba(15,23,42,0.96);
	border-color: rgba(96,165,250,0.22);
}

@keyframes fadeInCard {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.pair-item,
.google-auth-card,
.form-fieldset,
.account-summary__row,
.callout {
	animation: fadeInCard 0.35s ease-out;
}

@media (max-width: 980px) {
	.dashboard-card-grid,
	#dashboardClubGrid,
	#dashboardCatalogGrid,
	.dashboard-card-grid--tools {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bubble-menu {
		position: static;
		margin: 1rem auto 0;
		width: fit-content;
		flex-direction: row;
		flex-wrap: wrap;
		border-radius: 1rem;
	}
}

@media (max-width: 640px) {
	.dashboard-card-grid,
	#dashboardClubGrid,
	#dashboardCatalogGrid,
	.dashboard-card-grid--tools {
		grid-template-columns: minmax(0, 1fr);
	}

	.dashboard-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.dashboard-card__header {
		flex-direction: column;
	}

	.form-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.chip-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.top-nav__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.nav-list {
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.page {
		padding-inline: 1rem;
	}

	.google-auth-card,
	.card__header,
	.pairs-browser__header,
	.pairs-browser__toolbar,
	.pairs-browser__filters,
	.pairs-browser__footer,
	.modal-actions,
	.dashboard-hero__actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.pairs-browser__pagination {
		margin-left: 0;
	}
}
