.healing-page {
	padding: 0 0 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.healing-header { min-height: 0; margin-bottom: 40px; }
.healing-header .nav-buttons { margin-bottom: 24px; }
.healing-header .nav-btn { display: inline-block; text-decoration: none; }

.healing-corner-logo { position: fixed; top: 18px; left: 22px; z-index: 100; }
.healing-corner-logo img { display: block; width: 74px; height: auto; }

.healing-panel {
	width: min(420px, 90vw);
	text-align: center;
	animation: healing-fade-in 0.25s ease both;
}

.healing-panel[hidden] { display: none; }

.healing-panel h1 {
	margin: 0 0 8px;
	color: #474747;
	font-family: inherit;
	font-size: 30px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.healing-alpha { margin: 12px 0 0; color: #363E85; font-size: 10px; letter-spacing: 3px; }
.healing-panel > p:not(.signed-in-user) { margin: 0 0 28px; color: #777; font-family: inherit; font-size: 14px; }
.healing-heading { margin-bottom: 25px; }
.healing-heading p { margin: 0 0 28px; color: #777; font-family: inherit; font-size: 14px; }
.signed-in-user { margin: -18px 0 18px !important; font-size: 12px !important; }

.login-avatar, .updated-picture {
	width: 150px;
	height: 150px;
	margin: 0 auto 28px;
	border-radius: 50%;
	overflow: hidden;
	background: #eee;
}

.login-avatar img, .updated-picture { width: 100%; height: 100%; object-fit: cover; }

.login-actions { display: grid; gap: 10px; }
.login-actions .healing-button-secondary { margin-top: 0; }
.healing-import-button {
	width: auto;
	justify-self: center;
	height: auto;
	min-width: 0;
	padding: 2px 4px;
	background: transparent;
	box-shadow: none;
	color: #363E85;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: none;
}

.healing-import-button:hover { background: transparent; color: #309EDB; transform: none; }
.visually-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.healing-button {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 20px;
	padding: 0 16px;
	background: #363E85;
	color: #fff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity 0.15s ease;
	display: inline-block;
	box-shadow: 0 4px 12px rgba(54, 62, 133, 0.12);
}

.healing-button:hover { background: #2a3162; transform: translateY(-1px); }
.healing-button:focus-visible { outline: 3px solid rgba(48, 158, 219, 0.35); outline-offset: 3px; }
.healing-button:active { transform: translateY(0); }
.healing-button-secondary { margin-top: 10px; background: #f0f0f0; color: #363E85; }
.healing-button-secondary:hover { background: #e5e5e5; color: #2a3162; }
.healing-error { color: #a12d2d !important; font-size: 13px; }

.profile-editor {
	position: relative;
	width: 320px;
	max-width: 100%;
	aspect-ratio: 1;
	margin: 0 auto 25px;
	overflow: hidden;
	border-radius: 50%;
	background: #f3f3f3;
	touch-action: none;
	user-select: none;
}

.profile-picture {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eyes-layer { position: absolute; inset: 0; }

.eye-object {
	position: absolute;
	width: 135px;
	height: 135px;
	cursor: grab;
	touch-action: none;
	border: 2px solid transparent;
	transform-origin: center;
}

.eye-object.selected { border-color: rgba(54, 62, 133, 0.55); }
.eye-object img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.eye-object:active { cursor: grabbing; }
.eye-handle { position: absolute; width: 12px; height: 12px; border: 2px solid #363E85; border-radius: 50%; background: #fff; opacity: 0; z-index: 2; }
.eye-object.selected .eye-handle { opacity: 1; }
.eye-handle[data-corner="nw"] { top: -7px; left: -7px; cursor: nwse-resize; }
.eye-handle[data-corner="ne"] { top: -7px; right: -7px; cursor: nesw-resize; }
.eye-handle[data-corner="sw"] { bottom: -7px; left: -7px; cursor: nesw-resize; }
.eye-handle[data-corner="se"] { right: -7px; bottom: -7px; cursor: nwse-resize; }

.healing-controls { width: 100%; margin: auto; }
.healing-actions { display: block; margin-top: 20px; }
.healing-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.healing-actions-grid .healing-button-secondary { margin-top: 0; }
#healing-editor-error { margin-top: 16px !important; }
.updated-picture { display: block; aspect-ratio: 1; }

@keyframes healing-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 520px) {
	.healing-page { padding: 0 0 18px; }
	.healing-actions-grid { grid-template-columns: 1fr; }
}
