.xzp-main {
	min-height: 65vh;
	padding: 42px 24px 72px;
	background: linear-gradient(135deg, #f0faf8 0%, #f4f5fb 65%, #f6f1fa 100%);
}

.xzp-profile {
	--xzp-ink: #182739;
	--xzp-muted: #637184;
	--xzp-blue: #2866bf;
	--xzp-border: #e3e9f0;
	width: min(100%, 1040px);
	margin: 0 auto;
	color: var(--xzp-ink);
	font: inherit;
	line-height: 1.65;
}

.xzp-profile *,
.xzp-profile *::before,
.xzp-profile *::after {
	box-sizing: border-box;
}

.xzp-profile [hidden] {
	display: none !important;
}

.xzp-profile a {
	text-decoration: none;
}

.xzp-profile :is(a, button, input):focus-visible {
	outline: 3px solid #527bcb;
	outline-offset: 4px;
}

.xzp-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
	font-size: 14px;
}

.xzp-back,
.xzp-own-link {
	color: #52647a;
}

.xzp-back:hover,
.xzp-own-link:hover {
	color: var(--xzp-blue);
}

.xzp-back span {
	margin-right: 6px;
}

.xzp-card {
	overflow: hidden;
	border: 1px solid rgba(216, 225, 234, .8);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 48px rgba(40, 62, 94, .065);
}

.xzp-cover {
	position: relative;
	height: 240px;
	overflow: hidden;
	background: radial-gradient(ellipse at 85% 15%, #d4d4ef 0, transparent 57%), linear-gradient(120deg, #c9e9e0 0%, #dae8f3 56%, #dce0f3 100%);
}

.xzp-cover::after {
	position: absolute;
	inset: 0;
	border-bottom: 1px solid rgba(44, 68, 89, .05);
	content: "";
	pointer-events: none;
}

.xzp-cover-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.xzp-cover-label {
	position: absolute;
	top: 24px;
	right: 28px;
	z-index: 1;
	padding: 5px 13px;
	border: 1px solid rgba(255, 255, 255, .65);
	border-radius: 999px;
	background: rgba(255, 255, 255, .91);
	color: #465a70;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
}

.xzp-identity {
	position: relative;
	padding: 0 40px 30px;
}

.xzp-avatar {
	position: relative;
	width: 120px;
	height: 120px;
	margin-top: -60px;
	margin-bottom: 16px;
	overflow: hidden;
	border: 5px solid #fff;
	border-radius: 50%;
	background: #e8eff7;
	box-shadow: 0 3px 12px rgba(22, 41, 65, .1);
}

.xzp-avatar-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #43638c;
	font-size: 40px;
	font-weight: 600;
}

.xzp-avatar-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xzp-identity-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.xzp-name-block {
	min-width: 0;
}

.xzp-eyebrow {
	display: block;
	margin-bottom: 5px;
	color: var(--xzp-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .08em;
}

.xzp-profile .xzp-name {
	margin: 0;
	color: var(--xzp-ink);
	font-family: inherit;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 650;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.xzp-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
}

.xzp-profile .xzp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 9px;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

.xzp-profile .xzp-button--primary {
	border-color: var(--xzp-blue);
	background: var(--xzp-blue);
	color: #fff;
}

.xzp-profile .xzp-button--primary:hover {
	border-color: #1f54a0;
	background: #1f54a0;
	color: #fff;
}

.xzp-profile .xzp-button--quiet {
	border-color: var(--xzp-border);
	background: #fff;
	color: #415674;
}

.xzp-profile .xzp-button--quiet:hover {
	border-color: #c8d5e5;
	background: #f5f8fc;
	color: #274e81;
}

.xzp-profile .xzp-button:disabled {
	opacity: .65;
	cursor: wait;
}

.xzp-editor {
	padding: 30px 40px 32px;
	border-top: 1px solid var(--xzp-border);
}

.xzp-editor-heading {
	margin-bottom: 25px;
}

.xzp-editor-heading h2 {
	margin: 0 0 5px;
	color: var(--xzp-ink);
	font-family: inherit;
	font-size: 20px;
	font-weight: 650;
}

.xzp-editor-heading p,
.xzp-help {
	margin: 0;
	color: var(--xzp-muted);
	font-size: 13px;
	line-height: 1.7;
}

.xzp-form {
	margin: 0;
}

.xzp-field > label:not(.xzp-checkbox) {
	display: block;
	margin-bottom: 8px;
	color: #25374d;
	font-size: 14px;
	font-weight: 600;
}

.xzp-required {
	margin-left: 6px;
	color: var(--xzp-muted);
	font-size: 11px;
	font-weight: 400;
}

.xzp-profile input[type="text"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 13px;
	border: 1px solid #cbd6e3;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: var(--xzp-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
}

.xzp-field--name {
	max-width: 520px;
	margin-bottom: 25px;
}

.xzp-field--name .xzp-help {
	margin-top: 7px;
}

.xzp-upload-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.xzp-upload-panel {
	padding: 20px;
	border: 1px solid var(--xzp-border);
	border-radius: 12px;
	background: #fafbfd;
}

.xzp-profile input[type="file"] {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 16px 0 8px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #52647a;
	font-family: inherit;
	font-size: 12px;
	line-height: 2;
}

.xzp-profile input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 8px 12px;
	border: 1px solid #cbd6e3;
	border-radius: 7px;
	background: #fff;
	color: #354e70;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.xzp-profile input[type="file"]::file-selector-button:hover {
	background: #edf3fb;
}

.xzp-format {
	font-size: 11px;
}

.xzp-profile .xzp-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 30px;
	margin: 14px 0 0;
	color: #52647a;
	font-size: 12px;
	font-weight: 400;
	cursor: pointer;
}

.xzp-checkbox input[type="checkbox"] {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--xzp-blue);
}

.xzp-form-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 28px;
}

.xzp-form-status,
.xzp-copy-status {
	margin: 8px 0 0;
	color: #466a58;
	font-size: 12px;
}

.xzp-form-status:empty,
.xzp-copy-status:empty {
	display: none;
}

.xzp-copy-label {
	display: block;
	margin-top: 20px;
	color: var(--xzp-muted);
	font-size: 12px;
}

.xzp-profile .xzp-copy-fallback {
	margin-top: 5px;
	font-size: 12px;
}

.xzp-notice {
	margin-bottom: 20px;
	padding: 14px 18px;
	border: 1px solid;
	border-radius: 10px;
	font-size: 14px;
}

.xzp-notice--success {
	border-color: #bfdfce;
	background: #edf8f1;
	color: #26583e;
}

.xzp-notice--error {
	border-color: #edc6c4;
	background: #fff3f2;
	color: #923c36;
}

.xzp-notice p {
	margin: 0;
}

.xzp-notice ul {
	margin: 6px 0 0;
	padding-left: 20px;
}

.xzp-empty {
	padding: 64px 30px;
	border: 1px solid var(--xzp-border);
	border-radius: 20px;
	background: #fff;
	text-align: center;
}

.xzp-empty .xzp-empty-title {
	margin: 10px 0;
	color: var(--xzp-ink);
	font-family: inherit;
	font-size: 28px;
}

.xzp-empty p {
	margin: 0 0 26px;
	color: var(--xzp-muted);
	font-size: 14px;
}

@media (max-width: 680px) {
	.xzp-main {
		padding: 24px 16px 44px;
	}

	.xzp-topline {
		margin-bottom: 16px;
		font-size: 13px;
	}

	.xzp-card {
		border-radius: 15px;
	}

	.xzp-cover {
		height: 180px;
	}

	.xzp-cover-label {
		top: 17px;
		right: 18px;
	}

	.xzp-identity {
		padding: 0 22px 24px;
	}

	.xzp-avatar {
		width: 100px;
		height: 100px;
		margin-top: -50px;
		margin-bottom: 13px;
	}

	.xzp-identity-body {
		align-items: flex-start;
		flex-direction: column;
		gap: 22px;
	}

	.xzp-actions {
		flex-wrap: wrap;
	}

	.xzp-profile .xzp-button {
		padding-right: 16px;
		padding-left: 16px;
		font-size: 13px;
	}

	.xzp-editor {
		padding: 25px 22px;
	}

	.xzp-upload-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.xzp-upload-panel {
		padding: 17px;
	}

	.xzp-form-footer {
		align-items: stretch;
		flex-direction: column;
		gap: 15px;
	}

	.xzp-form-footer .xzp-actions {
		justify-content: flex-end;
	}

	.xzp-empty {
		padding: 45px 22px;
	}

	.xzp-empty .xzp-empty-title {
		font-size: 23px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.xzp-profile .xzp-button {
		transition: none;
	}
}
