.zn-verification {
	max-width: none;
	margin: 0 0 2rem;
	color: var(--text-color, #3e342c);
}

.zn-verification__back {
	display: inline-block;
	margin-bottom: 1rem;
}

.zn-verification__title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
}

.zn-verification__lead {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
}

.zn-verification__sub,
.zn-verification__hint,
.zn-verification__instruction,
.zn-verification__progress {
	margin: 0 0 1rem;
	line-height: 1.45;
}

.zn-verification__facts {
	margin: 0 0 1.25rem;
	padding-left: 1.2rem;
	line-height: 1.5;
}

.zn-verification__facts li + li {
	margin-top: 0.6rem;
}

.zn-verification__consent {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	margin: 0 0 1.25rem;
	cursor: pointer;
}

.zn-verification__consent input {
	margin-top: 0.25rem;
}

.zn-verification a.zn-verification__store-link::before,
.zn-verification a.zn-verification__store-link::after,
.zn-verification a.zn-verification__btn::before,
.zn-verification a.zn-verification__btn::after,
.zn-verification a.zn-verification__back::before,
.zn-verification a.zn-verification__back::after {
	content: none !important;
	display: none !important;
}

button.zn-verification__btn,
a.zn-verification__btn,
.zn-verification a.zn-verification__btn,
.zn-verification__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0.65em 1.2em;
	border: 0;
	border-radius: 8px;
	background: var(--link-color, #5d4037);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.zn-verification a.zn-verification__btn:link,
.zn-verification a.zn-verification__btn:visited,
.zn-verification a.zn-verification__btn:hover,
.zn-verification a.zn-verification__btn:active {
	color: #fff;
	text-decoration: none;
	background: var(--link-color, #5d4037);
}

.zn-verification__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.zn-verification__btn--ghost {
	background: transparent;
	color: var(--link-color, #5d4037);
	border: 1px solid var(--link-color, #5d4037);
}

.zn-verification__stage {
	position: relative;
	width: min(100%, 22rem);
	aspect-ratio: 3 / 4;
	margin: 0 auto 1rem;
	overflow: hidden;
	border-radius: 12px;
	background: #111;
}

.zn-verification__stage video,
.zn-verification__stage canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scaleX(-1);
}

.zn-verification__oval {
	position: absolute;
	inset: 12% 18%;
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	pointer-events: none;
	box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
}

.zn-verification__actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.zn-verification__gallery-note {
	margin: 0 0 0.75rem;
	line-height: 1.45;
}

.zn-verification__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 8px;
	margin: 0 0 1.25rem;
}

.zn-verification__thumb {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 6px;
	background: #eee;
}

.zn-verification__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zn-verification__thumb.is-mismatch:after {
	content: 'Скрыто от других';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2px 4px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 10px;
	line-height: 1.2;
}

.zn-verification__boot {
	text-align: center;
	padding: 2rem 0;
}

.zn-verified-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	margin-right: 5px;
	vertical-align: middle;
	color: var(--link-color, #5d4037);
	line-height: 0;
	text-decoration: none;
	flex-shrink: 0;
}

.zn-verified-badge__icon {
	display: block;
	width: 100%;
	height: 100%;
}

.zn-verified-badge.is-pending {
	color: var(--text-color-muted, #8a7d70);
}

.profile-main-info h1.profile-name,
h1.profile-name {
	display: flex;
	align-items: center;
	gap: 0;
	line-height: 1;
}

.profile-name .zn-verified-badge,
.profile-card .zn-verified-badge,
.profile-card .name .zn-verified-badge {
	width: 0.95em;
	height: 0.95em;
	margin-right: 5px;
	position: relative;
	top: 2px;
}

h1.profile-name .onliner {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	margin-left: 8px;
	margin-bottom: -7px;
	align-self: center;
	position: static;
	top: auto;
	flex-shrink: 0;
}

.profile-card .name {
	display: inline-flex;
	align-items: center;
	gap: 0;
}

.profile-actions .zn-verification-action,
.profile-actions-bottom .zn-verification-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.profile-actions .zn-verification-action .zn-verified-badge__icon,
.profile-actions-bottom .zn-verification-action .zn-verified-badge__icon {
	display: block;
	width: 20px;
	height: 20px;
}

.profile-photo-item,
.upa-photo {
	position: relative;
}

.zn-verification__thumb.is-mismatch {
	outline: 2px solid var(--accent-color, #c62828);
}

.zn-photo-mismatch-btn {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 38px;
	padding: 7px 5px;
	border: 0;
	border-radius: 0 0 5px 5px;
	background: #f6f0e7;
	color: #795b40;
	cursor: pointer;
	box-shadow: none;
	font: 600 12px/1.3 system-ui, sans-serif;
}

.profile-photo-item.is-mismatch {
	aspect-ratio: auto;
	align-self: flex-start;
	overflow: visible;
}
.profile-photo-item.is-mismatch:only-child { display: block; }
.profile-photo-item.is-mismatch > img { height: 70px; border-radius: 5px; }
.profile-photo-item.is-mismatch > .profile-photo-count { top: 50px; bottom: auto; }
.profile-photo-item.is-mismatch:hover { transform: none; box-shadow: none; }
.profile-photo-item .zn-photo-mismatch-btn {
	box-sizing: border-box;
	gap: 4px;
	font: 600 12px/1.3 system-ui, sans-serif;
	white-space: nowrap;
}
.profile-photo-item .zn-photo-mismatch-btn .zn-verified-badge__icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}
.zn-photo-mismatch-btn:hover { background: #eee3d4; color: #5d4037; }
.zn-photo-mismatch-btn:focus-visible { outline: 2px solid #795b40; outline-offset: 2px; }

/* The album row includes both the image and its status caption. */
.upa-photos-container > .upa-photo.is-mismatch {
	align-self: start;
	height: auto;
}
.upa-photos-container > .upa-photo.is-mismatch > img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}
.upa-photos-container > .upa-photo.is-mismatch.current-avatar::after {
	bottom: 43px;
}
.upa-photos-container:has(> .upa-photo.is-mismatch) {
	margin-bottom: 1rem;
}

.zn-photo-mismatch-btn .zn-verified-badge__icon {
	width: 22px;
	height: 22px;
}

.zn-photo-mismatch-dialog {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(40, 32, 24, 0.45);
}

.zn-photo-mismatch-dialog__card {
	position: relative;
	box-sizing: border-box;
	width: min(100%, 420px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	padding: 32px;
	border-radius: 22px;
	background: #fff;
	color: var(--text-color, #3e342c);
	box-shadow: 0 24px 80px rgba(40, 32, 24, 0.25);
}

.zn-photo-mismatch-dialog__emblem { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 20px; border-radius: 18px; background: #f6f0e7; color: #795b40; }
.zn-photo-mismatch-dialog__emblem svg { width: 30px; height: 30px; }
.zn-photo-mismatch-dialog__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f6f3ef; color: #796b60; font: 24px/1 sans-serif; cursor: pointer; }
.zn-photo-mismatch-dialog__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.zn-photo-mismatch-dialog__delete { width: 100%; min-height: 44px; border: 1px solid #ebd5ce; border-radius: 10px; padding: 10px 14px; background: #fff; color: #a24636; font: 500 14px/1.4 system-ui, sans-serif; cursor: pointer; }
.zn-photo-mismatch-dialog__delete:hover { background: #fff6f3; }
.zn-photo-mismatch-dialog__error { color: #a24636; font-size: 14px; }
.zn-photo-mismatch-dialog button:disabled { opacity: .55; cursor: wait; }
.zn-photo-mismatch-dialog button:focus-visible { outline: 2px solid #795b40; outline-offset: 3px; }

.zn-photo-mismatch-dialog__title {
	margin: 0 0 0.55rem;
	font-size: 1.4rem;
	font-weight: 700;
}

.zn-photo-mismatch-dialog__text {
	margin: 0 0 1.1rem;
	line-height: 1.65;
	color: #776b62;
}

.zn-photo-mismatch-dialog__ok {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 7rem;
	min-height: 44px;
	padding: 0.55em 1.1em;
	border: 0;
	border-radius: 10px;
	background: var(--link-color, #5d4037);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

/* The write gate shares the hidden-photo card, with native modal focus handling. */
dialog.zn-write-gate-dialog {
	position: fixed;
	inset: 0;
	margin: auto;
	width: min(420px, calc(100% - 32px));
	max-height: calc(100dvh - 40px);
	border: 0;
	font: 16px/1.5 system-ui, sans-serif;
}
.zn-write-gate-dialog::backdrop { background: rgba(40, 32, 24, 0.45); }
.zn-write-gate-dialog .zn-photo-mismatch-dialog__title { font: 700 22px/1.3 system-ui, sans-serif; }
.zn-write-gate-dialog__heading { display: flex; align-items: center; gap: 12px; padding-right: 22px; margin-bottom: 18px; }
.zn-write-gate-dialog__heading .zn-photo-mismatch-dialog__emblem { width: 40px; height: 40px; border-radius: 12px; margin: 0; flex-shrink: 0; }
.zn-write-gate-dialog__heading .zn-photo-mismatch-dialog__emblem svg { width: 26px; height: 26px; }
.zn-write-gate-dialog__heading .zn-photo-mismatch-dialog__title { margin: 0; }
.zn-write-gate-dialog__content { font-size: 15px; }
.zn-write-gate-dialog__content .zn-verification-requirements > strong { display: none; }
.zn-write-gate-dialog .zn-verification-requirements ul { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.zn-write-gate-dialog .zn-verification-requirements li { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px; border-radius: 12px; background: #f6f3ef; }
.zn-write-gate-dialog .zn-verification-requirements li::marker { content: ''; }
.zn-write-gate-dialog .zn-verification-requirements a { color: #795b40; text-decoration: none; }
.zn-write-gate-dialog .zn-verification-requirements a:hover { text-decoration: underline; }
.zn-verification-requirements__status { flex-shrink: 0; color: #957657; }
.is-complete > .zn-verification-requirements__status { color: #4c7b55; }
.zn-write-gate-dialog .zn-photo-mismatch-dialog__ok,
.zn-write-gate-dialog__secondary { box-sizing: border-box; width: 100%; min-height: 44px; font: 600 14px/1.4 system-ui, sans-serif; text-decoration: none; text-align: center; }
.zn-write-gate-dialog .zn-photo-mismatch-dialog__ok:hover { background: #795b40; color: #fff; }
dialog.zn-write-gate-dialog .zn-photo-mismatch-dialog__actions .zn-photo-mismatch-dialog__ok,
dialog.zn-write-gate-dialog .zn-photo-mismatch-dialog__actions .zn-photo-mismatch-dialog__ok:link,
dialog.zn-write-gate-dialog .zn-photo-mismatch-dialog__actions .zn-photo-mismatch-dialog__ok:visited { color: #fff !important; -webkit-text-fill-color: #fff; }
.zn-chat-access-page { box-sizing: border-box; min-height: 100vh; min-height: 100dvh; margin: 0; padding: 24px 16px; display: grid; place-items: center; background: #e6e2dd; font: 16px/1.5 system-ui, sans-serif; }
.zn-chat-access-page .zn-write-gate-dialog { width: min(100%, 420px); max-height: none; }
.zn-chat-access-page .zn-photo-mismatch-dialog__ok:link,
.zn-chat-access-page .zn-photo-mismatch-dialog__ok:visited { color: #fff; }
.zn-write-gate-dialog__secondary { padding: 10px 14px; border: 1px solid #e9e1d8; border-radius: 10px; background: #fff; color: #796b60; cursor: pointer; }
.zn-write-gate-dialog__secondary:hover { background: #f6f3ef; }
.zn-write-gate-dialog :is(button, a):focus-visible { outline: 2px solid #795b40; outline-offset: 3px; }
@media (max-width: 480px) {
	dialog.zn-write-gate-dialog { padding: 24px; }
}
