@font-face {
	font-family: "Yekan";
	src: url("../fonts/yekan/Yekan.eot");
	src:
		url("../fonts/yekan/Yekan.eot?#iefix") format("embedded-opentype"),
		url("../fonts/yekan/Yekan.woff2") format("woff2"),
		url("../fonts/yekan/Yekan.woff") format("woff"),
		url("../fonts/yekan/Yekan.ttf") format("truetype"),
		url("../fonts/yekan/Yekan.svg#Yekan") format("svg");
	font-display: swap;
	font-style: normal;
	font-weight: 400;
}

:root {
	--p440-accent: #d97745;
	--p440-accent-rgb: 217, 119, 69;
	--p440-black: #0a0a0b;
	--p440-surface: #121214;
	--p440-surface-2: #19191c;
	--p440-surface-3: #222226;
	--p440-white: #f7f5f0;
	--p440-muted: #aaa7a1;
	--p440-dim: #73716d;
	--p440-line: rgba(255, 255, 255, 0.1);
	--p440-danger: #e26d6d;
	--p440-success: #56b991;
	--p440-radius-sm: 12px;
	--p440-radius: 20px;
	--p440-radius-lg: 30px;
	--p440-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
	--p440-font: "Yekan", "Vazirmatn", "IRANSansX", Tahoma, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--p440-black);
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body.p440-app {
	min-width: 320px;
	margin: 0;
	background:
		radial-gradient(circle at 12% -10%, rgba(var(--p440-accent-rgb), 0.13), transparent 29rem),
		var(--p440-black);
	color: var(--p440-white);
	font-family: var(--p440-font);
	font-size: 15px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

body.p440-app::before {
	position: fixed;
	z-index: -1;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
	background-size: 42px 42px;
	content: "";
	mask-image: linear-gradient(to bottom, #000, transparent 58%);
	pointer-events: none;
}

body,
button,
input,
select,
textarea {
	font-family: var(--p440-font);
}

button,
input,
select,
textarea {
	font-size: 16px;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

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

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

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	right: 8px;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: var(--p440-white);
	color: var(--p440-black);
	border-radius: 8px;
}

:focus-visible {
	outline: 2px solid var(--p440-accent);
	outline-offset: 3px;
}

::selection {
	background: rgba(var(--p440-accent-rgb), 0.35);
	color: #fff;
}

.p440-site {
	min-height: 100vh;
}

.p440-site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	border-bottom: 1px solid var(--p440-line);
	background: rgba(10, 10, 11, 0.84);
	backdrop-filter: blur(18px) saturate(140%);
}

.p440-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(100% - 32px, 1180px);
	height: 70px;
	margin-inline: auto;
	direction: ltr;
}

.p440-brand {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	justify-content: flex-start;
	max-width: min(58vw, 210px);
	direction: ltr;
}

.p440-header-logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 43px;
	object-fit: contain;
	object-position: left center;
}

.p440-brand-fallback {
	display: inline-flex;
	align-items: baseline;
	color: var(--p440-white);
	font-family: Arial, sans-serif;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.7px;
	line-height: 1;
}

.p440-brand-fallback em {
	color: var(--p440-accent);
	font-style: normal;
}

.p440-desktop-nav,
.p440-user-chip {
	display: none;
}

.p440-notification-center {
	position: relative;
	flex: 0 0 auto;
	direction: rtl;
}

.p440-notification-toggle {
	position: relative;
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface);
	color: var(--p440-muted);
	border-radius: 13px;
	cursor: pointer;
	touch-action: manipulation;
}

.p440-notification-toggle:hover,
.p440-notification-toggle[aria-expanded="true"] {
	border-color: rgba(var(--p440-accent-rgb), 0.5);
	background: rgba(var(--p440-accent-rgb), 0.1);
	color: var(--p440-accent);
}

.p440-notification-toggle svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.p440-notification-toggle > span {
	position: absolute;
	top: -5px;
	right: -5px;
	display: grid;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	place-items: center;
	border: 2px solid var(--p440-black);
	background: var(--p440-accent);
	color: #080808;
	border-radius: 999px;
	direction: ltr;
	font-family: Arial, sans-serif;
	font-size: 9px;
	font-weight: 900;
	line-height: 1;
}

.p440-notification-panel {
	position: fixed;
	z-index: 350;
	top: 78px;
	right: 14px;
	left: 14px;
	max-height: calc(100dvh - 105px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.13);
	background: rgba(18, 18, 20, 0.98);
	border-radius: 20px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
	backdrop-filter: blur(22px) saturate(140%);
	direction: rtl;
	text-align: right;
}

.p440-notification-panel > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 17px 18px 14px;
	border-bottom: 1px solid var(--p440-line);
}

.p440-notification-panel h2 {
	margin: 1px 0 0;
	font-size: 19px;
	line-height: 1.4;
}

.p440-notification-panel [data-p440-notification-close] {
	display: grid;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-2);
	color: var(--p440-muted);
	border-radius: 12px;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
}

.p440-notification-panel [data-p440-notification-close]:hover {
	border-color: rgba(var(--p440-accent-rgb), 0.45);
	color: var(--p440-accent);
}

.p440-notification-list {
	display: grid;
	max-height: min(520px, calc(100dvh - 190px));
	overflow-y: auto;
	padding: 9px;
	overscroll-behavior: contain;
}

.p440-notification-item {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 66px;
	padding: 10px;
	border: 0;
	border-bottom: 1px solid var(--p440-line);
	background: transparent;
	color: var(--p440-white);
	border-radius: 11px;
	cursor: pointer;
	direction: rtl;
	text-align: right;
}

.p440-notification-item:last-child {
	border-bottom: 0;
}

.p440-notification-item:hover,
.p440-notification-item:focus-visible {
	background: rgba(var(--p440-accent-rgb), 0.08);
}

.p440-notification-item > i {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	background: rgba(var(--p440-accent-rgb), 0.12);
	color: var(--p440-accent);
	border-radius: 11px;
	font-size: 15px;
	font-style: normal;
	font-weight: 900;
}

.p440-notification-item > span {
	display: block;
	min-width: 0;
}

.p440-notification-item strong,
.p440-notification-item small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.p440-notification-item strong {
	font-size: 12px;
}

.p440-notification-item small {
	margin-top: 2px;
	color: var(--p440-muted);
	font-size: 9px;
}

.p440-notification-item > b {
	color: var(--p440-dim);
	font-size: 15px;
}

.p440-notification-empty {
	padding: 30px 18px;
	margin: 0;
	color: var(--p440-dim);
	font-size: 11px;
	text-align: center;
}

.p440-content {
	width: min(100% - 28px, 1040px);
	min-height: calc(100vh - 150px);
	margin-inline: auto;
	padding: 28px 0 112px;
}

.p440-page,
.p440-entry-content {
	margin: 0;
}

.p440-view {
	width: 100%;
}

.p440-page-heading {
	margin: 0 0 28px;
}

.p440-page-heading h1 {
	max-width: 760px;
	margin: 4px 0 7px;
	font-size: clamp(30px, 9vw, 52px);
	font-weight: 820;
	letter-spacing: -1.6px;
	line-height: 1.25;
}

.p440-page-heading p {
	max-width: 620px;
	margin: 0;
	color: var(--p440-muted);
	font-size: 14px;
}

.p440-eyebrow,
.p440-card-kicker {
	color: var(--p440-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.5px;
}

.p440-card-kicker {
	margin: 0 0 4px;
}

.p440-card,
.p440-class-card,
.p440-vote-card {
	border: 1px solid var(--p440-line);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 55%), var(--p440-surface);
	border-radius: var(--p440-radius);
	box-shadow: var(--p440-shadow);
}

.p440-card {
	padding: 20px;
}

.p440-hero-card {
	position: relative;
	min-height: 420px;
	overflow: hidden;
	border: 1px solid rgba(var(--p440-accent-rgb), 0.38);
	background:
		radial-gradient(circle at 75% 20%, rgba(var(--p440-accent-rgb), 0.38), transparent 22rem),
		linear-gradient(145deg, #1d1511, #0c0c0d 63%);
	border-radius: var(--p440-radius-lg);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.p440-hero-card::after {
	position: absolute;
	bottom: -130px;
	left: -90px;
	width: 310px;
	height: 310px;
	border: 50px solid rgba(255, 255, 255, 0.025);
	border-radius: 50%;
	content: "";
}

.p440-hero-card__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	min-height: 420px;
	padding: 38px 24px 24px;
}

.p440-hero-card h2 {
	max-width: 660px;
	margin: 2px 0 14px;
	font-size: clamp(34px, 11vw, 66px);
	letter-spacing: -1.8px;
	line-height: 1.14;
}

.p440-live-pill {
	position: absolute;
	z-index: 3;
	top: 20px;
	right: 20px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(7, 7, 8, 0.55);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	backdrop-filter: blur(8px);
}

.p440-live-pill i,
.p440-status-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	background: var(--p440-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(var(--p440-accent-rgb), 0.13);
	animation: p440-pulse 1.8s infinite;
}

@keyframes p440-pulse {
	50% { box-shadow: 0 0 0 9px rgba(var(--p440-accent-rgb), 0); }
}

.p440-record-lines {
	position: absolute;
	top: 65px;
	left: -55px;
	display: grid;
	place-items: center;
	width: 255px;
	height: 255px;
	border: 1px solid rgba(255, 255, 255, 0.055);
	border-radius: 50%;
	opacity: 0.75;
}

.p440-record-lines span {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, 0.055);
	border-radius: 50%;
}

.p440-record-lines span:nth-child(1) { inset: 28px; }
.p440-record-lines span:nth-child(2) { inset: 55px; }
.p440-record-lines span:nth-child(3) { inset: 82px; }
.p440-record-lines span:nth-child(4) { inset: 109px; background: var(--p440-accent); border: 0; }

.p440-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 15px;
	color: var(--p440-muted);
	font-size: 12px;
}

.p440-meta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.p440-meta > span {
	color: var(--p440-accent);
	font-size: 16px;
}

.p440-capacity-line {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 26px 0 16px;
}

.p440-capacity-line strong {
	color: var(--p440-accent);
	font-size: 31px;
	line-height: 1;
}

.p440-capacity-line span {
	color: var(--p440-muted);
	font-size: 12px;
}

.p440-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 50px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 14px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.p440-button:hover {
	transform: translateY(-2px);
}

.p440-button:active {
	transform: translateY(0);
}

.p440-button--primary {
	background: var(--p440-accent);
	color: #0a0a0b;
	box-shadow: 0 10px 30px rgba(var(--p440-accent-rgb), 0.18);
}

.p440-button--primary:hover {
	box-shadow: 0 12px 36px rgba(var(--p440-accent-rgb), 0.3);
	filter: brightness(1.08);
}

.p440-button--light {
	background: var(--p440-white);
	color: var(--p440-black);
}

.p440-button--ghost {
	border-color: var(--p440-line);
	background: var(--p440-surface-2);
	color: var(--p440-white);
}

.p440-button--wide {
	width: 100%;
}

.p440-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
	color: var(--p440-muted);
	font-size: 11px;
}

.p440-section-head > div {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--p440-white);
	font-weight: 750;
}

.p440-registration-card {
	padding: 20px;
}

.p440-card__topline,
.p440-class-card > header,
.p440-card-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.p440-card__topline h2,
.p440-class-card h2,
.p440-card-heading h2 {
	margin: 0 0 8px;
	font-size: 23px;
	letter-spacing: -0.6px;
	line-height: 1.4;
}

.p440-date-stamp {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	min-height: 62px;
	padding: 8px;
	border: 1px solid var(--p440-line);
	background: rgba(255, 255, 255, 0.025);
	border-radius: 15px;
	direction: ltr;
}

.p440-date-stamp b {
	font-size: 15px;
}

.p440-date-stamp small {
	color: var(--p440-muted);
	font-size: 9px;
}

.p440-divider {
	height: 1px;
	margin: 21px 0;
	background: var(--p440-line);
}

.p440-balance-inline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	margin-top: 15px;
	border: 1px solid rgba(var(--p440-accent-rgb), 0.28);
	background: rgba(var(--p440-accent-rgb), 0.07);
	border-radius: 10px;
	color: var(--p440-muted);
	font-size: 10px;
}

.p440-balance-inline strong {
	color: var(--p440-accent);
	font-size: 17px;
}

.p440-zero-state {
	display: grid;
	gap: 14px;
	padding: 17px;
	border: 1px solid rgba(226, 109, 109, 0.3);
	background: rgba(226, 109, 109, 0.06);
	border-radius: 14px;
	color: var(--p440-muted);
	font-size: 11px;
}

.p440-zero-state .p440-button {
	width: 100%;
}

.p440-form-intro {
	padding: 12px 14px;
	margin: 0;
	border-right: 3px solid var(--p440-accent);
	background: rgba(var(--p440-accent-rgb), 0.07);
	color: var(--p440-muted);
	border-radius: 10px 0 0 10px;
	font-size: 11px;
}

.p440-form fieldset {
	padding: 0;
	margin: 0;
	border: 0;
}

.p440-form legend {
	width: 100%;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 800;
}

.p440-choice-group {
	display: grid;
	gap: 9px;
}

.p440-choice {
	position: relative;
	cursor: pointer;
}

.p440-choice.is-disabled {
	cursor: not-allowed;
	opacity: 0.48;
}

.p440-choice > input,
.p440-inline-choice input,
.p440-color-picker input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.p440-choice > span {
	display: grid;
	grid-template-columns: 42px 1fr;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 12px;
	padding: 11px 13px;
	border: 1px solid var(--p440-line);
	background: rgba(255, 255, 255, 0.02);
	border-radius: 14px;
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.p440-choice i {
	grid-row: 1 / 3;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-3);
	border-radius: 11px;
	color: var(--p440-muted);
	font-family: Georgia, serif;
	font-size: 19px;
	font-style: normal;
}

.p440-choice b {
	font-size: 13px;
}

.p440-choice small {
	color: var(--p440-muted);
	font-size: 10px;
}

.p440-choice > input:checked + span {
	border-color: rgba(var(--p440-accent-rgb), 0.75);
	background: rgba(var(--p440-accent-rgb), 0.1);
}

.p440-choice > input:checked + span i {
	border-color: rgba(var(--p440-accent-rgb), 0.45);
	background: var(--p440-accent);
	color: var(--p440-black);
}

.p440-song-fields {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px dashed var(--p440-line);
}

.p440-field--receipt {
	margin-top: 16px;
}

.p440-form-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	min-width: 0;
}

.p440-field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 7px;
}

.p440-field > span {
	font-size: 12px;
	font-weight: 750;
}

.p440-field em {
	color: var(--p440-accent);
	font-style: normal;
}

.p440-field small,
.p440-field span small {
	color: var(--p440-dim);
	font-size: 10px;
	font-weight: 500;
}

.p440-field input,
.p440-field textarea,
.p440-field select,
.p440-search input {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-2);
	color: var(--p440-white);
	border-radius: 13px;
	outline: none;
	transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.p440-field input,
.p440-field select {
	height: 51px;
	padding: 0 14px;
}

.p440-field textarea {
	min-height: 112px;
	padding: 12px 14px;
	resize: vertical;
}

/* iOS WebKit over-counts horizontal padding on 100%-wide date controls. */
@supports (-webkit-touch-callout: none) {
	.p440-field input[type="date"] {
		padding-inline: 0;
	}
}

.p440-field input:focus,
.p440-field textarea:focus,
.p440-field select:focus,
.p440-search input:focus {
	border-color: var(--p440-accent);
	box-shadow: 0 0 0 3px rgba(var(--p440-accent-rgb), 0.1);
	background: #1d1d20;
}

.p440-field input[type="file"] {
	height: auto;
	padding: 12px;
}

.p440-field input[type="file"]::file-selector-button {
	padding: 8px 12px;
	margin-left: 10px;
	border: 0;
	background: var(--p440-surface-3);
	color: var(--p440-white);
	border-radius: 9px;
	cursor: pointer;
}

.p440-inline-choice {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 17px 0 20px !important;
}

.p440-inline-choice legend {
	flex-basis: 100%;
}

.p440-inline-choice label {
	position: relative;
	cursor: pointer;
}

.p440-inline-choice span {
	display: block;
	min-width: 78px;
	padding: 8px 18px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-2);
	border-radius: 999px;
	text-align: center;
}

.p440-inline-choice input:checked + span {
	border-color: var(--p440-accent);
	background: rgba(var(--p440-accent-rgb), 0.12);
	color: var(--p440-accent);
}

.p440-notice {
	position: relative;
	margin-bottom: 18px;
	padding: 13px 15px 13px 40px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-2);
	border-radius: 13px;
	font-size: 12px;
}

.p440-notice::after {
	position: absolute;
	top: 13px;
	left: 14px;
	font-size: 15px;
}

.p440-notice--success {
	border-color: rgba(86, 185, 145, 0.4);
	background: rgba(86, 185, 145, 0.08);
}

.p440-notice--success::after { content: "✓"; color: var(--p440-success); }
.p440-notice--error { border-color: rgba(226, 109, 109, 0.4); background: rgba(226, 109, 109, 0.08); }
.p440-notice--error::after { content: "!"; color: var(--p440-danger); font-weight: 900; }

.p440-empty-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 330px;
	padding: 38px 22px;
	border: 1px dashed rgba(255, 255, 255, 0.14);
	background: radial-gradient(circle at 50% 20%, rgba(var(--p440-accent-rgb), 0.11), transparent 17rem), var(--p440-surface);
	border-radius: var(--p440-radius);
	text-align: center;
}

.p440-empty-stage__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 18px;
	border: 1px solid rgba(var(--p440-accent-rgb), 0.35);
	background: rgba(var(--p440-accent-rgb), 0.09);
	border-radius: 50%;
	color: var(--p440-accent);
	font-family: Georgia, serif;
	font-size: 32px;
}

.p440-empty-stage h1,
.p440-empty-stage h2 {
	margin: 0 0 6px;
	font-size: 24px;
}

.p440-empty-stage p {
	max-width: 420px;
	margin: 0 0 20px;
	color: var(--p440-muted);
	font-size: 12px;
}

.p440-stat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 12px;
}

.p440-stat-grid article {
	min-width: 0;
	padding: 15px 10px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface);
	border-radius: 14px;
	text-align: center;
}

.p440-stat-grid span,
.p440-stat-grid small {
	display: block;
	overflow: hidden;
	color: var(--p440-muted);
	font-size: 8px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.p440-stat-grid strong {
	display: block;
	margin: 4px 0;
	color: var(--p440-accent);
	font-size: 25px;
}

.p440-text-link,
.p440-back-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 20px;
	color: var(--p440-muted);
	font-size: 12px;
	font-weight: 700;
}

.p440-text-link:hover,
.p440-back-link:hover {
	color: var(--p440-accent);
}

.p440-profile-hero {
	display: flex;
	align-items: center;
	gap: 17px;
	margin-bottom: 16px;
	padding: 19px;
	border: 1px solid var(--p440-line);
	background: linear-gradient(115deg, rgba(var(--p440-accent-rgb), 0.13), transparent 54%), var(--p440-surface);
	border-radius: var(--p440-radius);
}

.p440-avatar {
	flex: 0 0 auto;
	padding: 3px;
	border: 1px solid rgba(var(--p440-accent-rgb), 0.55);
	border-radius: 50%;
}

.p440-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.p440-avatar--large {
	width: 84px;
	height: 84px;
}

.p440-profile-hero h2 {
	margin: 0;
	font-size: 24px;
}

.p440-profile-hero p {
	margin: 2px 0 0;
	color: var(--p440-muted);
	font-size: 11px;
}

.p440-medal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 16px;
}

.p440-medal {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 7px;
	padding: 12px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface);
	border-radius: 14px;
}

.p440-medal > span {
	display: grid;
	grid-row: 1 / 3;
	width: 34px;
	place-items: center;
	font-size: 27px;
}

.p440-medal > span img {
	display: block;
	width: 34px;
	max-width: 100%;
	height: auto;
}

.p440-medal strong {
	font-size: 19px;
	line-height: 1;
}

.p440-medal small {
	color: var(--p440-muted);
	font-size: 9px;
}

.p440-profile-note {
	margin: 0 0 16px;
	padding: 15px 17px;
	border: 0;
	border-right: 3px solid var(--p440-accent);
	background: rgba(var(--p440-accent-rgb), 0.07);
	border-radius: 11px 0 0 11px;
	color: var(--p440-muted);
	font-size: 12px;
}

.p440-stage-balance {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 15px;
	padding: 17px;
	margin-bottom: 16px;
	border: 1px solid rgba(var(--p440-accent-rgb), 0.28);
	background: linear-gradient(115deg, rgba(var(--p440-accent-rgb), 0.11), transparent 62%), var(--p440-surface);
	border-radius: var(--p440-radius);
}

.p440-stage-balance span,
.p440-stage-balance strong {
	display: block;
}

.p440-stage-balance span {
	color: var(--p440-muted);
	font-size: 10px;
}

.p440-stage-balance strong {
	margin-top: 2px;
	color: var(--p440-accent);
	font-size: 27px;
	line-height: 1.2;
}

.p440-stage-balance .p440-button {
	min-height: 43px;
	padding: 9px 14px;
}

.p440-video-sample,
.p440-profile-video {
	padding: 17px;
	margin-bottom: 16px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface);
	border-radius: var(--p440-radius);
}

.p440-video-sample h2,
.p440-profile-video h2 {
	margin: 0 0 12px;
	font-size: 15px;
}

.p440-video-sample video,
.p440-profile-video video {
	display: block;
	width: 100%;
	max-height: 430px;
	background: #050506;
	border-radius: 13px;
}

.p440-recharge-template,
template[data-p440-recharge-template] {
	display: none;
}

.p440-recharge-form h2 {
	margin-top: 0;
}

.p440-file-name {
	display: block;
	margin-top: 7px;
	overflow: hidden;
	color: var(--p440-accent) !important;
	direction: ltr;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.p440-card-heading {
	margin-bottom: 19px;
}

.p440-card-heading > span {
	color: var(--p440-accent);
	font-size: 23px;
}

.p440-color-picker {
	margin: 20px 0 !important;
}

.p440-color-picker > div {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 7px;
}

.p440-color-picker label {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

.p440-color-picker label > span {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid transparent;
	border-radius: 50%;
}

.p440-color-picker label i {
	display: block;
	width: 30px;
	height: 30px;
	background: var(--swatch);
	border-radius: 50%;
}

.p440-color-picker input:checked + span {
	border-color: var(--swatch);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.p440-color-picker input:checked + span::after {
	position: absolute;
	color: #080808;
	content: "✓";
	font-size: 12px;
	font-weight: 900;
}

.p440-color-picker small {
	width: 100%;
	overflow: hidden;
	color: var(--p440-dim);
	font-size: 7px;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.p440-readonly-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 16px;
}

.p440-readonly-grid div {
	padding: 13px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface);
	border-radius: 12px;
}

.p440-readonly-grid span,
.p440-readonly-grid strong {
	display: block;
}

.p440-readonly-grid span {
	color: var(--p440-dim);
	font-size: 9px;
}

.p440-readonly-grid strong {
	overflow: hidden;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.p440-soft-note {
	color: var(--p440-dim);
	font-size: 10px;
}

.p440-search {
	position: relative;
	display: block;
	width: 100%;
}

.p440-search > span[aria-hidden] {
	position: absolute;
	z-index: 1;
	top: 50%;
	right: 15px;
	color: var(--p440-dim);
	font-size: 23px;
	line-height: 1;
	transform: translateY(-50%);
}

.p440-search input {
	height: 52px;
	padding: 0 46px 0 15px;
}

.p440-search input::placeholder,
.p440-field input::placeholder,
.p440-field textarea::placeholder {
	color: #66645f;
}

.p440-list,
.p440-song-list {
	display: grid;
	gap: 13px;
	min-width: 0;
	margin-top: 17px;
}

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

.p440-class-card {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding: 18px;
	box-shadow: none;
}

.p440-class-card > header {
	margin-bottom: 15px;
}

.p440-class-card > header > div {
	min-width: 0;
}

.p440-class-card h2 {
	overflow-wrap: anywhere;
}

.p440-class-card header p {
	margin: 0;
	color: var(--p440-muted);
	font-size: 10px;
}

.p440-class-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.p440-class-title-row h2 {
	margin: 0;
}

.p440-feedback-link {
	padding: 4px 8px;
	border: 1px solid rgba(var(--p440-accent-rgb), 0.3);
	background: rgba(var(--p440-accent-rgb), 0.07);
	color: var(--p440-accent);
	border-radius: 999px;
	cursor: pointer;
	font-size: 9px;
	font-weight: 700;
	touch-action: manipulation;
}

.p440-feedback-link:hover {
	border-color: rgba(var(--p440-accent-rgb), 0.55);
	background: rgba(var(--p440-accent-rgb), 0.13);
}

.p440-status {
	display: inline-flex;
	padding: 4px 8px;
	margin-bottom: 8px;
	border: 1px solid var(--p440-line);
	border-radius: 999px;
	color: var(--p440-muted);
	font-size: 8px;
	font-weight: 800;
}

.p440-status--started {
	border-color: rgba(var(--p440-accent-rgb), 0.4);
	background: rgba(var(--p440-accent-rgb), 0.1);
	color: var(--p440-accent);
}

.p440-status--open {
	border-color: rgba(86, 185, 145, 0.35);
	background: rgba(86, 185, 145, 0.08);
	color: var(--p440-success);
}

.p440-status--student_closed {
	border-color: rgba(217, 151, 69, 0.38);
	background: rgba(217, 151, 69, 0.09);
	color: #e0a25c;
}

.p440-status--final_closed {
	border-color: rgba(154, 114, 223, 0.35);
	background: rgba(154, 114, 223, 0.09);
	color: #b79ae9;
}

.p440-status--closed {
	border-color: var(--p440-line);
	background: rgba(255, 255, 255, 0.025);
	color: var(--p440-dim);
}

.p440-performer-strip {
	display: grid;
	grid-auto-columns: min(88%, 410px);
	grid-auto-flow: column;
	gap: 9px;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: var(--p440-surface-3) transparent;
}

.p440-performance-mini {
	display: grid;
	grid-template-columns: 50px minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	min-width: 0;
	padding: 11px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-2);
	border-radius: 14px;
	scroll-snap-align: start;
}

.p440-performance-mini > img,
.p440-profile-trigger,
.p440-profile-trigger img,
.p440-avatar-button,
.p440-avatar-button img {
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	object-fit: cover;
	border-radius: 12px;
}

.p440-profile-trigger {
	display: block;
	overflow: hidden;
	background: transparent;
	cursor: pointer;
	touch-action: manipulation;
}

.p440-avatar-button {
	display: block;
	overflow: hidden;
	background: transparent;
	cursor: pointer;
	touch-action: manipulation;
}

.p440-profile-trigger img,
.p440-avatar-button img {
	display: block;
	transition: filter 160ms ease, transform 160ms ease;
}

.p440-profile-trigger:hover img,
.p440-profile-trigger:focus-visible img,
.p440-avatar-button:hover img,
.p440-avatar-button:focus-visible img {
	filter: brightness(1.12);
	transform: scale(1.04);
}

.p440-performance-mini > div {
	min-width: 0;
}

.p440-performance-mini strong,
.p440-performance-mini span,
.p440-performance-mini small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.p440-performance-mini strong { font-size: 12px; }
.p440-performance-mini span { font-size: 10px; color: var(--p440-accent); }
.p440-performance-mini small { font-size: 8px; color: var(--p440-dim); }

.p440-score {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 3px;
	color: var(--p440-white);
	direction: ltr;
}

button.p440-score,
.p440-score-button,
.p440-score--button {
	padding: 3px;
	border: 0;
	background: transparent;
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	touch-action: manipulation;
}

button.p440-score:hover,
.p440-score-button:hover,
.p440-score--button:hover {
	background: rgba(var(--p440-accent-rgb), 0.08);
}

.p440-score strong {
	font-size: 16px;
}

.p440-score small {
	color: var(--p440-dim);
	font-size: 7px;
}

.p440-score > span { display: inline-flex; width: 22px; align-items: center; justify-content: center; font-size: 20px; }
.p440-score > span img { display: block; width: 22px; max-width: 100%; height: auto; }
.p440-score--pending { max-width: 64px; color: var(--p440-dim); font-size: 8px; line-height: 1.35; text-align: left; white-space: normal; }
.p440-score--gold strong { color: #e5bc56; }
.p440-score--silver strong { color: #c7cbd1; }
.p440-score--bronze strong { color: #bd8058; }

.p440-toolbar {
	display: grid;
	gap: 10px;
}

.p440-segmented {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 4px;
	background: var(--p440-surface-2);
	border-radius: 12px;
}

.p440-segmented button {
	min-height: 40px;
	border: 0;
	background: transparent;
	color: var(--p440-muted);
	border-radius: 9px;
	cursor: pointer;
	font-size: 11px;
	font-weight: 750;
}

.p440-segmented button.is-active {
	background: var(--p440-surface-3);
	color: var(--p440-white);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.p440-song-row {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface);
	border-radius: 15px;
}

.p440-song-art {
	position: relative;
	display: grid;
	place-items: center;
	width: 52px;
	height: 58px;
	overflow: hidden;
	background: linear-gradient(145deg, rgba(var(--p440-accent-rgb), 0.33), rgba(var(--p440-accent-rgb), 0.04));
	border-radius: 11px;
	color: var(--p440-accent);
	font-family: Georgia, serif;
	font-size: 23px;
}

.p440-song-art::before,
.p440-song-art::after {
	position: absolute;
	width: 70px;
	height: 1px;
	background: rgba(255, 255, 255, 0.09);
	content: "";
	transform: rotate(-32deg);
}

.p440-song-art::after { transform: rotate(32deg); }

.p440-song-row__main {
	min-width: 0;
}

.p440-song-row__main h2,
.p440-song-row__main p {
	overflow: hidden;
	margin: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.p440-song-row__main h2 { font-size: 13px; }
.p440-song-row__main > p { color: var(--p440-accent); font-size: 9px; }
.p440-song-row__main > div { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--p440-muted); font-size: 8px; }
.p440-song-row__main img { width: 18px; height: 18px; object-fit: cover; border-radius: 50%; }
.p440-song-row__main .p440-avatar-button--small { width: 22px; height: 22px; padding: 2px; border: 1px solid rgba(var(--p440-accent-rgb),.35); border-radius: 50%; }
.p440-song-row__main .p440-avatar-button--small img { width: 16px; height: 16px; border-radius: 50%; }
.p440-song-row__main small { padding-right: 5px; border-right: 1px solid var(--p440-line); color: var(--p440-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.p440-empty-inline {
	padding: 28px 18px;
	border: 1px dashed var(--p440-line);
	border-radius: 14px;
	color: var(--p440-muted);
	font-size: 12px;
	text-align: center;
}

.p440-back-link {
	margin: 0 0 12px;
}

.p440-vote-progress {
	margin: -12px 0 19px;
	padding: 13px 15px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface);
	border-radius: 13px;
}

.p440-vote-progress > div {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 10px;
}

.p440-vote-progress span { color: var(--p440-muted); }
.p440-vote-progress progress { display: block; width: 100%; height: 5px; overflow: hidden; border: 0; background: var(--p440-surface-3); border-radius: 99px; }
.p440-vote-progress progress::-webkit-progress-bar { background: var(--p440-surface-3); }
.p440-vote-progress progress::-webkit-progress-value { background: var(--p440-accent); border-radius: 99px; }
.p440-vote-progress progress::-moz-progress-bar { background: var(--p440-accent); border-radius: 99px; }

.p440-performer-tabs {
	display: flex;
	gap: 11px;
	overflow-x: auto;
	padding: 3px 2px 13px;
	margin-bottom: 3px;
	scrollbar-width: none;
}

.p440-performer-tabs::-webkit-scrollbar { display: none; }

.p440-performer-tabs button {
	position: relative;
	display: flex;
	flex: 0 0 68px;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--p440-muted);
	cursor: pointer;
	font-size: 9px;
}

.p440-performer-tabs img {
	width: 55px;
	height: 55px;
	padding: 3px;
	border: 1px solid var(--p440-line);
	object-fit: cover;
	border-radius: 50%;
	filter: saturate(0.45) brightness(0.75);
	transition: border-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.p440-performer-tabs button.is-active { color: var(--p440-white); }
.p440-performer-tabs button.is-active img { border-color: var(--p440-accent); filter: none; transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(var(--p440-accent-rgb), 0.1); }
.p440-performer-tabs i { position: absolute; top: 37px; right: 7px; display: grid; place-items: center; width: 17px; height: 17px; background: var(--p440-success); color: #07130f; border: 2px solid var(--p440-black); border-radius: 50%; font-size: 8px; font-style: normal; font-weight: 900; }

.p440-vote-card {
	overflow: hidden;
	box-shadow: none;
}

.p440-performance-hero {
	position: relative;
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	align-items: center;
	gap: 15px;
	overflow: hidden;
	padding: 17px;
	background: linear-gradient(110deg, rgba(var(--p440-accent-rgb), 0.17), transparent 62%);
}

.p440-performance-hero::after {
	position: absolute;
	top: -42px;
	left: -42px;
	width: 130px;
	height: 130px;
	border: 1px solid rgba(var(--p440-accent-rgb), 0.16);
	border-radius: 50%;
	content: "";
}

.p440-performance-hero img {
	position: relative;
	z-index: 1;
	width: 92px;
	height: 110px;
	object-fit: cover;
	border-radius: 16px;
	filter: saturate(0.75) contrast(1.05);
}

.p440-performance-hero > div { min-width: 0; }
.p440-performance-hero span { color: var(--p440-accent); font-size: 9px; font-weight: 800; }
.p440-performance-hero h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.4; }
.p440-performance-hero strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.p440-performance-hero p { margin: 1px 0 0; color: var(--p440-muted); font-size: 9px; }

.p440-vote-form {
	padding: 20px;
}

.p440-factor-list {
	display: grid;
	gap: 23px;
	margin-bottom: 24px;
}

.p440-range-field {
	display: block;
}

.p440-range-field > span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.p440-factor-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.p440-factor-head > span,
.p440-factor-head > div {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 7px;
}

.p440-factor-help,
[data-p440-factor-help] {
	display: inline-grid;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(var(--p440-accent-rgb), 0.4);
	background: rgba(var(--p440-accent-rgb), 0.08);
	color: var(--p440-accent);
	border-radius: 50%;
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	touch-action: manipulation;
}

.p440-factor-help:hover,
[data-p440-factor-help]:hover {
	background: rgba(var(--p440-accent-rgb), 0.16);
}

.p440-range-field b { font-size: 12px; }
.p440-range-field output { display: grid; place-items: center; width: 31px; height: 31px; background: rgba(var(--p440-accent-rgb), 0.13); color: var(--p440-accent); border-radius: 9px; direction: ltr; font-size: 13px; font-weight: 900; }

.p440-range-field input[type="range"] {
	width: 100%;
	height: 5px;
	margin: 0;
	background: linear-gradient(to left, var(--p440-accent) var(--p440-range-fill, 44.44%), var(--p440-surface-3) var(--p440-range-fill, 44.44%));
	border-radius: 99px;
	outline: 0;
	appearance: none;
}

.p440-range-field input[type="range"]::-webkit-slider-thumb {
	width: 21px;
	height: 21px;
	border: 4px solid var(--p440-black);
	background: var(--p440-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--p440-accent), 0 4px 14px rgba(0, 0, 0, 0.5);
	cursor: grab;
	appearance: none;
}

.p440-range-field input[type="range"]::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 4px solid var(--p440-black);
	background: var(--p440-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--p440-accent);
	cursor: grab;
}

.p440-range-field > small {
	display: flex;
	justify-content: space-between;
	margin-top: 7px;
	color: var(--p440-dim);
	direction: rtl;
	font-size: 8px;
}

.p440-range-field small i { font-style: normal; }

.p440-live-score {
	direction: rtl;
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

body.p440-dialog-open {
	overflow: hidden;
}

.p440-dialog {
	width: calc(100vw - 24px);
	width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
	max-width: 600px;
	max-height: calc(100vh - 24px);
	max-height: calc(100dvh - 24px);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--p440-white);
	overflow: visible;
}

.p440-dialog:not([open]) {
	display: none;
}

.p440-dialog[open] {
	position: fixed;
	z-index: 500;
	inset: 50% auto auto 50%;
	margin: 0;
	transform: translate(-50%, -50%);
}

.p440-dialog::backdrop {
	background: rgba(2, 2, 3, 0.78);
	backdrop-filter: blur(8px);
}

.p440-dialog__shell {
	position: relative;
	width: 100%;
	max-width: 100%;
	max-height: min(88vh, 780px);
	max-height: min(88dvh, 780px);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 54px 20px 22px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: linear-gradient(145deg, rgba(var(--p440-accent-rgb), 0.07), transparent 34%), var(--p440-surface);
	border-radius: 23px;
	box-shadow: 0 34px 100px rgba(0, 0, 0, 0.7);
	direction: rtl;
	overscroll-behavior: contain;
	text-align: right;
}

.p440-dialog__close {
	position: absolute;
	z-index: 2;
	top: 11px;
	left: 11px;
	display: grid;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--p440-line);
	background: rgba(25, 25, 28, 0.96);
	color: var(--p440-muted);
	border-radius: 12px;
	cursor: pointer;
	font-size: 25px;
	line-height: 1;
	touch-action: manipulation;
}

.p440-dialog__close:hover {
	border-color: rgba(var(--p440-accent-rgb), 0.48);
	color: var(--p440-accent);
}

.p440-dialog__status {
	margin: 0;
	color: var(--p440-muted);
	font-size: 12px;
	text-align: center;
}

.p440-dialog__status:empty {
	display: none;
}

.p440-dialog__content {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.p440-dialog__content > *,
.p440-dialog-profile,
.p440-dialog-stats,
.p440-medal-grid--compact,
.p440-dialog-section,
.p440-factor-results,
.p440-feedback-list,
.p440-message-content,
.p440-roster-list,
.p440-instruction-dialog,
.p440-recharge-form {
	min-width: 0;
	max-width: 100%;
}

.p440-dialog input,
.p440-dialog select,
.p440-dialog textarea,
.p440-dialog video {
	min-width: 0;
	max-width: 100%;
}

.p440-dialog__content h2 {
	padding-left: 44px;
	margin: 2px 0 8px;
	font-size: clamp(22px, 7vw, 31px);
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.p440-dialog__error {
	padding: 16px;
	border: 1px solid rgba(226, 109, 109, 0.36);
	background: rgba(226, 109, 109, 0.08);
	color: #f0b1b1;
	border-radius: 13px;
	font-size: 12px;
	overflow-wrap: anywhere;
}

.p440-dialog-lead {
	margin: 0 0 18px;
	color: var(--p440-muted);
	font-size: 11px;
	overflow-wrap: anywhere;
}

.p440-dialog-profile {
	text-align: center;
}

.p440-dialog-profile__avatar {
	display: block;
	width: 132px;
	height: 132px;
	margin: 0 auto 16px;
	padding: 4px;
	border: 1px solid rgba(var(--p440-accent-rgb), 0.55);
	background: var(--p440-surface-2);
	object-fit: cover;
	border-radius: 28px;
}

.p440-dialog-profile h2 {
	padding: 0 44px;
	margin-top: 3px;
}

.p440-dialog-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 17px 0 10px;
}

.p440-dialog-stats > div {
	padding: 13px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-2);
	border-radius: 13px;
}

.p440-dialog-stats strong,
.p440-dialog-stats span {
	display: block;
}

.p440-dialog-stats strong {
	color: var(--p440-accent);
	font-size: 23px;
}

.p440-dialog-stats span {
	color: var(--p440-muted);
	font-size: 9px;
}

.p440-medal-grid--compact {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 10px;
}

.p440-medal-grid--compact .p440-medal {
	min-width: 0;
	padding: 9px;
	text-align: right;
}

.p440-medal-grid--compact .p440-medal > span {
	width: 30px;
	font-size: 23px;
}

.p440-medal-grid--compact .p440-medal > span img {
	width: 30px;
}

.p440-dialog-section {
	padding: 15px;
	margin-top: 10px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-2);
	border-radius: 14px;
	text-align: right;
}

.p440-dialog-section h3 {
	margin: 0 0 7px;
	font-size: 13px;
}

.p440-dialog-section p {
	margin: 0;
	color: var(--p440-muted);
	font-size: 11px;
	line-height: 2;
	overflow-wrap: anywhere;
}

.p440-dialog-section video {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	max-height: 440px;
	margin-top: 9px;
	background: #050506;
	border-radius: 12px;
}

.p440-factor-results {
	display: grid;
	gap: 7px;
	margin-top: 18px;
}

.p440-factor-results > div,
.p440-dialog-total {
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 12px 13px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-2);
	border-radius: 12px;
	font-size: 11px;
}

.p440-factor-results > div > span,
.p440-dialog-total > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.p440-factor-results strong,
.p440-dialog-total strong {
	flex: 0 0 auto;
	color: var(--p440-accent);
	font-size: 13px;
}

.p440-dialog-total {
	margin-top: 12px;
	border-color: rgba(var(--p440-accent-rgb), 0.38);
	background: rgba(var(--p440-accent-rgb), 0.09);
	font-weight: 800;
}

.p440-feedback-list {
	display: grid;
	gap: 9px;
	margin-top: 18px;
}

.p440-feedback-list blockquote {
	padding: 14px 16px;
	margin: 0;
	border: 0;
	border-right: 3px solid var(--p440-accent);
	background: var(--p440-surface-2);
	color: var(--p440-muted);
	border-radius: 11px 0 0 11px;
	font-size: 11px;
	line-height: 2;
	overflow-wrap: anywhere;
}

.p440-message-content {
	padding: 15px;
	margin-top: 17px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-2);
	border-radius: 14px;
	color: var(--p440-muted);
	font-size: 12px;
	line-height: 2;
	overflow-wrap: anywhere;
}

.p440-message-content > :first-child {
	margin-top: 0;
}

.p440-message-content > :last-child {
	margin-bottom: 0;
}

.p440-message-content pre,
.p440-message-content table {
	max-width: 100%;
	overflow-x: auto;
}

.p440-message-content table {
	display: block;
}

.p440-roster-list {
	display: grid;
	gap: 8px;
	margin-top: 18px;
}

.p440-roster-list article {
	display: grid;
	grid-template-columns: 24px 47px minmax(0, 1fr);
	align-items: center;
	gap: 9px;
	padding: 10px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-2);
	border-radius: 13px;
}

.p440-roster-list article > span {
	display: grid;
	width: 23px;
	height: 23px;
	place-items: center;
	background: rgba(var(--p440-accent-rgb), 0.1);
	color: var(--p440-accent);
	border-radius: 50%;
	direction: ltr;
	font-size: 9px;
	font-weight: 800;
}

.p440-roster-list img {
	width: 47px;
	height: 47px;
	object-fit: cover;
	border-radius: 11px;
}

.p440-roster-list article > div {
	min-width: 0;
}

.p440-roster-list strong,
.p440-roster-list b,
.p440-roster-list small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.p440-roster-list strong {
	font-size: 12px;
}

.p440-roster-list b {
	color: var(--p440-accent);
	font-size: 10px;
}

.p440-roster-list small {
	color: var(--p440-dim);
	font-size: 8px;
}

.p440-instruction-dialog p {
	padding: 15px;
	margin: 16px 0 0;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-2);
	color: var(--p440-muted);
	border-radius: 14px;
	font-size: 12px;
	line-height: 2.1;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.p440-bottom-nav {
	position: fixed;
	z-index: 200;
	right: 0;
	bottom: 0;
	left: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	min-height: 72px;
	padding: 7px 10px max(7px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--p440-line);
	background: rgba(13, 13, 15, 0.94);
	backdrop-filter: blur(20px) saturate(150%);
}

.p440-bottom-nav a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	color: var(--p440-dim);
	font-size: 9px;
	font-weight: 700;
}

.p440-bottom-nav svg,
.p440-desktop-nav svg,
.p440-logout svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.65;
}

.p440-bottom-nav a.is-current {
	color: var(--p440-accent);
}

.p440-bottom-nav a.is-current::before {
	position: absolute;
	top: -7px;
	width: 24px;
	height: 2px;
	background: var(--p440-accent);
	border-radius: 0 0 5px 5px;
	content: "";
}

.p440-site-footer {
	display: none;
}

/* Core WordPress login: retained for password tools and 2FA compatibility. */
body.login {
	display: flex;
	min-height: 100vh;
	align-items: center;
	justify-content: center;
	padding: 30px 16px;
	background:
		radial-gradient(circle at 75% 10%, rgba(var(--p440-accent-rgb), 0.22), transparent 26rem),
		linear-gradient(155deg, #111113, #070708 66%);
	color: var(--p440-white);
	font-family: var(--p440-font);
	direction: rtl;
}

body.login::before,
body.login::after {
	position: fixed;
	z-index: 0;
	border: 1px solid rgba(255, 255, 255, 0.035);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

body.login::before { top: -180px; left: -160px; width: 450px; height: 450px; box-shadow: inset 0 0 0 55px rgba(255,255,255,.012), inset 0 0 0 110px rgba(255,255,255,.01); }
body.login::after { right: -90px; bottom: -150px; width: 320px; height: 320px; box-shadow: inset 0 0 0 38px rgba(var(--p440-accent-rgb),.018), inset 0 0 0 85px rgba(var(--p440-accent-rgb),.014); }

body.login #login {
	position: relative;
	z-index: 1;
	width: min(100%, 390px);
	padding: 0;
}

body.login h1 a {
	width: auto;
	height: auto;
	margin: 0 auto 20px;
	background: none;
	color: var(--p440-white);
	font-size: 25px;
	font-weight: 850;
	line-height: 1;
	text-indent: 0;
}

body.login h1 a::after {
	color: var(--p440-accent);
	content: " · 440Hz";
	font-size: 12px;
	font-weight: 700;
}

.p440-login-intro {
	margin-bottom: 18px;
	text-align: right;
}

.p440-login-intro span {
	color: var(--p440-accent);
	font-size: 10px;
	font-weight: 800;
}

.p440-login-intro h1 {
	margin: 3px 0 5px;
	font-size: clamp(26px, 8vw, 37px);
	letter-spacing: -1.1px;
	line-height: 1.35;
}

.p440-login-intro p {
	margin: 0;
	color: var(--p440-muted);
	font-size: 11px;
}

body.login form {
	padding: 23px;
	border: 1px solid var(--p440-line);
	background: rgba(22, 22, 24, 0.88);
	border-radius: 20px;
	box-shadow: var(--p440-shadow);
	backdrop-filter: blur(16px);
}

body.login label {
	color: var(--p440-muted);
	font-size: 11px;
}

body.login form .input,
body.login input[type="text"] {
	height: 52px;
	padding: 0 13px;
	margin: 5px 0 14px;
	border: 1px solid var(--p440-line);
	background: var(--p440-surface-2);
	box-shadow: none;
	color: var(--p440-white);
	border-radius: 12px;
	font-size: 16px;
	direction: ltr;
}

body.login form .input:focus,
body.login input[type="text"]:focus {
	border-color: var(--p440-accent);
	box-shadow: 0 0 0 3px rgba(var(--p440-accent-rgb), 0.12);
}

body.login .button.wp-hide-pw { color: var(--p440-muted); }
body.login .button.wp-hide-pw:focus { border-color: transparent; box-shadow: none; }
body.login .forgetmenot { float: right; }
body.login .submit { clear: both; padding-top: 16px; }

body.login .button-primary {
	float: none;
	width: 100%;
	min-height: 48px;
	border: 0;
	background: var(--p440-accent);
	box-shadow: none;
	color: var(--p440-black);
	border-radius: 12px;
	font-weight: 800;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
	background: var(--p440-accent);
	box-shadow: 0 0 0 3px rgba(var(--p440-accent-rgb), 0.18);
	filter: brightness(1.08);
}

body.login #nav,
body.login #backtoblog {
	padding: 0;
	text-align: center;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
	color: var(--p440-muted);
	font-size: 11px;
}

body.login #nav a:hover,
body.login #backtoblog a:hover { color: var(--p440-accent); }
body.login .language-switcher { display: none; }
body.login .message,
body.login #login_error,
body.login .success { border: 1px solid var(--p440-line); border-right: 3px solid var(--p440-accent); background: var(--p440-surface-2); box-shadow: none; color: var(--p440-white); border-radius: 10px; font-size: 11px; }
body.login #login_error { border-right-color: var(--p440-danger); }

@media (min-width: 560px) {
	.p440-content {
		width: min(100% - 48px, 1040px);
		padding-top: 38px;
	}

	.p440-card,
	.p440-registration-card { padding: 28px; }

	.p440-choice-group {
		grid-template-columns: repeat(3, 1fr);
	}

	.p440-choice > span {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		justify-items: center;
		min-height: 128px;
		padding: 15px 9px;
		text-align: center;
	}

	.p440-choice i {
		grid-row: auto;
		margin-bottom: 5px;
	}

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

	.p440-field--full { grid-column: 1 / -1; }
	.p440-toolbar { grid-template-columns: 1fr auto; align-items: center; }
	.p440-segmented { width: 190px; }
	.p440-song-row { padding: 15px; }
	.p440-song-art { width: 60px; height: 66px; }
	.p440-performance-hero { grid-template-columns: 125px minmax(0, 1fr); padding: 24px; }
	.p440-performance-hero img { width: 125px; height: 145px; }
	.p440-vote-form { padding: 27px; }
}

@media (min-width: 820px) {
	.p440-header-inner {
		width: min(100% - 48px, 1180px);
		height: 82px;
		direction: rtl;
	}

	.p440-header-logo { max-height: 50px; }

	.p440-notification-panel {
		position: absolute;
		top: calc(100% + 14px);
		right: auto;
		left: 0;
		width: min(370px, calc(100vw - 48px));
		max-height: min(590px, calc(100dvh - 115px));
	}

	.p440-notification-list {
		max-height: min(505px, calc(100dvh - 205px));
	}

	.p440-desktop-nav {
		display: flex;
		align-items: center;
		gap: 3px;
	}

	.p440-desktop-nav a {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 8px 12px;
		color: var(--p440-muted);
		border-radius: 10px;
		font-size: 11px;
		font-weight: 700;
	}

	.p440-desktop-nav a:hover { background: var(--p440-surface-2); color: var(--p440-white); }
	.p440-desktop-nav a.is-current { background: rgba(var(--p440-accent-rgb), 0.1); color: var(--p440-accent); }
	.p440-desktop-nav svg { width: 17px; height: 17px; }

	.p440-user-chip {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.p440-user-chip > a:first-child {
		display: flex;
		align-items: center;
		gap: 8px;
		color: var(--p440-muted);
		font-size: 10px;
	}

	.p440-user-chip img { width: 33px; height: 33px; object-fit: cover; border: 1px solid rgba(var(--p440-accent-rgb),.4); border-radius: 50%; }
	.p440-logout { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--p440-line); border-radius: 10px; color: var(--p440-dim); }
	.p440-logout:hover { color: var(--p440-accent); border-color: rgba(var(--p440-accent-rgb),.4); }
	.p440-logout svg { width: 16px; height: 16px; }

	.p440-content {
		min-height: calc(100vh - 150px);
		padding: 55px 0 60px;
	}

	.p440-bottom-nav { display: none; }
	.p440-site-footer { display: block; padding: 20px; border-top: 1px solid var(--p440-line); color: var(--p440-dim); font-size: 9px; text-align: center; }
	.p440-page-heading { margin-bottom: 38px; }
	.p440-hero-card__content { padding: 55px 50px 45px; }
	.p440-live-pill { top: 30px; right: 30px; }
	.p440-registration-card { padding: 34px; }
	.p440-readonly-grid { grid-template-columns: repeat(4, 1fr); }
	.p440-profile-hero { padding: 25px; }
	.p440-avatar--large { width: 105px; height: 105px; }
	.p440-medal { padding: 18px 20px; }
	.p440-medal > span { width: 44px; font-size: 35px; }
	.p440-medal > span img { width: 44px; }
	.p440-class-card { padding: 25px; }
	.p440-performer-strip { grid-auto-columns: min(48%, 430px); }
	.p440-song-row { grid-template-columns: 70px minmax(0, 1fr) auto; }
	.p440-song-art { width: 70px; height: 74px; }
	.p440-song-row__main h2 { font-size: 16px; }
	.p440-performance-mini { padding: 14px; }
	.p440-vote-card { max-width: 760px; margin-inline: auto; }
	.p440-performer-tabs { max-width: 760px; margin-inline: auto; }
	.p440-vote-progress { max-width: 760px; margin-inline: auto; margin-bottom: 23px; }
	.p440-vote-view > .p440-page-heading,
	.p440-vote-view > .p440-back-link { max-width: 760px; margin-right: auto; margin-left: auto; }
	.p440-dialog__shell { padding: 62px 30px 30px; }
	.p440-dialog-profile__avatar { width: 154px; height: 154px; }
}

@media (min-width: 1060px) {
	.p440-hero-card { min-height: 480px; }
	.p440-hero-card__content { min-height: 480px; }
	.p440-record-lines { width: 350px; height: 350px; left: -30px; top: 50px; }
	.p440-record-lines span:nth-child(1) { inset: 40px; }
	.p440-record-lines span:nth-child(2) { inset: 80px; }
	.p440-record-lines span:nth-child(3) { inset: 120px; }
	.p440-record-lines span:nth-child(4) { inset: 158px; }
	.p440-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.p440-class-card:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
