html.ark-shell-entry-document,
body.ark-shell-entry-body { min-height: 100%; background: var(--ark-shell-bg); }

body.ark-shell-entry-body { min-height: 100vh; min-height: 100svh; overflow-x: hidden; }
body.ark-shell-entry-body.admin-bar { margin-top: 0 !important; }
body.ark-shell-entry-body #wpadminbar { display: none !important; }

.ark-shell-entry {
	position: relative;
	display: grid;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.78), transparent 42rem),
		linear-gradient(180deg, #f7f4ee 0%, var(--ark-shell-bg) 54%, var(--ark-shell-bg-deep) 100%);
}

.ark-shell-entry::before,
.ark-shell-entry::after {
	position: fixed;
	z-index: -1;
	width: 34rem;
	height: 34rem;
	border: 1px solid rgba(17, 17, 17, 0.035);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}
.ark-shell-entry::before { top: -22rem; left: -16rem; }
.ark-shell-entry::after { right: -19rem; bottom: -23rem; }

.ark-shell-entry__frame {
	display: grid;
	grid-template-rows: 1fr auto;
	width: min(100%, 84rem);
	min-height: 100%;
	margin: 0 auto;
	padding: max(28px, env(safe-area-inset-top)) clamp(22px, 5vw, 72px) max(24px, env(safe-area-inset-bottom));
}

.ark-shell-entry__hero {
	display: grid;
	align-content: center;
	justify-items: center;
	width: min(100%, 42rem);
	margin: auto;
	padding-block: clamp(34px, 8vh, 92px);
	text-align: center;
}

.ark-shell-entry__identity {
	display: grid;
	width: clamp(210px, 30vw, 330px);
	min-height: clamp(210px, 30vw, 330px);
	place-items: center;
	margin-bottom: clamp(28px, 5vh, 52px);
	color: var(--ark-shell-ink);
}

.ark-shell-entry__mark,
.ark-shell-entry__identity .ark-shell-identity-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 330px;
	object-fit: contain;
	user-select: none;
}

.ark-shell-entry__title {
	margin: 0;
	font-size: clamp(2.2rem, 6vw, 4.8rem);
	font-weight: 480;
	letter-spacing: 0.17em;
	line-height: 0.98;
	text-indent: 0.17em;
	text-transform: uppercase;
}

.ark-shell-entry__message {
	max-width: 36rem;
	margin: 20px auto 0;
	color: var(--ark-shell-muted);
	font-size: clamp(0.93rem, 1.6vw, 1.08rem);
	font-weight: 430;
	letter-spacing: 0.035em;
	line-height: 1.65;
	text-transform: uppercase;
}

.ark-shell-entry__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: min(100%, 31rem);
	margin-top: clamp(32px, 5vh, 48px);
}

.ark-shell-entry-button {
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ark-shell-ink);
	border-radius: var(--ark-shell-radius-sm);
	padding: 0 22px;
	background: transparent;
	color: var(--ark-shell-ink);
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 680;
	letter-spacing: 0.15em;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.ark-shell-entry-button:hover { transform: translateY(-1px); }
.ark-shell-entry-button:active { transform: translateY(0); }
.ark-shell-entry-button:focus-visible { outline: 3px solid rgba(17, 17, 17, 0.2); outline-offset: 3px; }
.ark-shell-entry-button--primary { background: var(--ark-shell-ink); color: #fff; box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14); }
.ark-shell-entry-button--secondary { background: rgba(255, 255, 255, 0.32); }
.ark-shell-entry-button--wide { width: 100%; }
.ark-shell-entry-button[disabled] { opacity: 0.48; cursor: not-allowed; transform: none; }

.ark-shell-entry__access-note {
	margin: 18px 0 0;
	color: var(--ark-shell-muted);
	font-size: 0.72rem;
	font-weight: 550;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.ark-shell-entry__noscript {
	max-width: 31rem;
	margin: 18px 0 0;
	color: var(--ark-shell-muted);
	font-size: 0.82rem;
}

.ark-shell-entry__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	border-top: 1px solid rgba(17, 17, 17, 0.08);
	padding-top: 18px;
	color: var(--ark-shell-muted);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
}
.ark-shell-entry__footer p { margin: 0; }
.ark-shell-entry__status { display: inline-flex; align-items: center; gap: 8px; }
.ark-shell-entry__status::before { width: 6px; height: 6px; border-radius: 50%; background: var(--ark-shell-ink); content: ""; opacity: 0.72; }

.ark-shell-dialog {
	width: min(calc(100% - 28px), 31rem);
	max-height: min(88svh, 48rem);
	margin: auto;
	overflow: auto;
	border: 1px solid var(--ark-shell-border);
	border-radius: var(--ark-shell-radius-lg);
	padding: 0;
	background: rgba(248, 246, 241, 0.96);
	color: var(--ark-shell-ink);
	box-shadow: var(--ark-shell-shadow);
	opacity: 0;
	transform: translateY(16px) scale(0.985);
	transition: opacity 180ms ease, transform 180ms ease, overlay 180ms ease allow-discrete, display 180ms ease allow-discrete;
	backdrop-filter: blur(24px) saturate(1.05);
	-webkit-backdrop-filter: blur(24px) saturate(1.05);
}
.ark-shell-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
@starting-style { .ark-shell-dialog[open] { opacity: 0; transform: translateY(16px) scale(0.985); } }

.ark-shell-dialog::backdrop {
	background: rgba(35, 32, 27, 0.34);
	opacity: 0;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	transition: opacity 180ms ease, overlay 180ms ease allow-discrete, display 180ms ease allow-discrete;
}
.ark-shell-dialog[open]::backdrop { opacity: 1; }
@starting-style { .ark-shell-dialog[open]::backdrop { opacity: 0; } }

.ark-shell-dialog__inner { padding: clamp(24px, 5vw, 38px); }
.ark-shell-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.ark-shell-dialog__eyebrow { margin: 0 0 7px; color: var(--ark-shell-muted); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; }
.ark-shell-dialog__header h2 { margin: 0; font-size: clamp(1.45rem, 5vw, 2rem); font-weight: 580; letter-spacing: -0.025em; line-height: 1.1; }
.ark-shell-dialog__close {
	display: inline-grid;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid var(--ark-shell-border);
	border-radius: 50%;
	padding: 0;
	background: rgba(255, 255, 255, 0.42);
	color: var(--ark-shell-ink);
	cursor: pointer;
}
.ark-shell-dialog__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }

.ark-shell-entry-form { position: relative; display: grid; gap: 18px; }
.ark-shell-field { display: grid; gap: 8px; }
.ark-shell-label,
.ark-shell-wp-login-form label { color: var(--ark-shell-muted); font-size: 0.7rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }

.ark-shell-input,
.ark-shell-wp-login-form input[type="text"],
.ark-shell-wp-login-form input[type="password"] {
	width: 100%;
	min-height: 54px;
	margin: 8px 0 0;
	border: 1px solid var(--ark-shell-border-strong);
	border-radius: var(--ark-shell-radius-sm);
	padding: 0 16px;
	background: rgba(255, 255, 255, 0.56);
	color: var(--ark-shell-ink);
	font-size: 1rem;
	outline: none;
	box-shadow: none;
	transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.ark-shell-input::placeholder,
.ark-shell-wp-login-form input::placeholder { color: #8a8781; }
.ark-shell-input:focus,
.ark-shell-wp-login-form input[type="text"]:focus,
.ark-shell-wp-login-form input[type="password"]:focus { border-color: var(--ark-shell-ink); background: rgba(255, 255, 255, 0.82); box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06); }
.ark-shell-input--code { font-variant-numeric: tabular-nums; font-weight: 620; letter-spacing: 0.12em; text-transform: uppercase; }

.ark-shell-help { margin: -6px 0 0; color: var(--ark-shell-muted); font-size: 0.82rem; line-height: 1.5; }
.ark-shell-form-message { margin: 0; border: 1px solid var(--ark-shell-border); border-radius: var(--ark-shell-radius-sm); padding: 12px 14px; background: rgba(255, 255, 255, 0.46); font-size: 0.84rem; line-height: 1.5; }
.ark-shell-form-message.is-error { border-color: rgba(145, 37, 32, 0.28); color: #7f211d; }
.ark-shell-form-message.is-info { color: var(--ark-shell-ink); }

.ark-shell-form-switch { margin: 0; color: var(--ark-shell-muted); font-size: 0.8rem; text-align: center; }
.ark-shell-form-switch button { border: 0; padding: 4px; background: none; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(17, 17, 17, 0.28); text-underline-offset: 4px; }

.ark-shell-wp-login-form form { display: grid; gap: 18px; }
.ark-shell-wp-login-form form p { margin: 0; }
.ark-shell-wp-login-form .login-password { position: relative; }
.ark-shell-wp-login-form .login-password input { padding-right: 54px; }
.ark-shell-wp-login-form .login-remember label { display: inline-flex; align-items: center; gap: 9px; color: var(--ark-shell-muted); font-size: 0.82rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.ark-shell-wp-login-form input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--ark-shell-ink); }
.ark-shell-wp-login-form .login-submit input {
	width: 100%;
	min-height: 52px;
	border: 1px solid var(--ark-shell-ink);
	border-radius: var(--ark-shell-radius-sm);
	padding: 0 22px;
	background: var(--ark-shell-ink);
	color: #fff;
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 680;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.ark-shell-password-toggle {
	display: none;
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	padding: 0;
	background: transparent;
	color: var(--ark-shell-muted);
	cursor: pointer;
}
.ark-shell-wp-login-form .login-password .ark-shell-password-toggle { display: grid; }
.ark-shell-password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ark-shell-login-links { margin-top: -4px; text-align: center; }
.ark-shell-login-links a,
.ark-shell-text-link { color: var(--ark-shell-muted); font-size: 0.8rem; }
.ark-shell-entry-session { text-align: center; }
.ark-shell-entry-session p { margin: 0; }

@media (max-width: 620px) {
	.ark-shell-entry__frame { padding-inline: 18px; }
	.ark-shell-entry__hero { padding-block: 36px; }
	.ark-shell-entry__identity { width: min(68vw, 250px); min-height: min(68vw, 250px); margin-bottom: 30px; }
	.ark-shell-entry__title { font-size: clamp(2rem, 12vw, 3.15rem); letter-spacing: 0.12em; text-indent: 0.12em; }
	.ark-shell-entry__actions { grid-template-columns: 1fr; }
	.ark-shell-entry__footer { align-items: flex-start; flex-direction: column; gap: 8px; }
	.ark-shell-input,
	.ark-shell-wp-login-form input[type="text"],
	.ark-shell-wp-login-form input[type="password"] { font-size: 16px; }
}
