/* © 2025 Mark Kats. Все права защищены. Копирование и переработка запрещены. */
@font-face {
	font-family: "IBM Plex Sans Condensed";
	src: url("/fonts/IBMPlexSans_Condensed-Medium.woff2") format('woff2');
}
@font-face {
	font-family: "Fira Mono";
	src: url("/fonts/FiraMono-Regular.woff2") format('woff2');
}
@font-face {
	font-family: "Artifakt Element";
	src: url("/fonts/artifaktelement-regular.woff2") format('woff2');
}
html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}
body {
	min-height: 100svh;
	position: relative;
	background-color: #000;
	color: rgb(228,228,228);
	font-family: "Artifakt Element", monospace;
	z-index: 1;
}
html::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image: url("/grafics/screen.svg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: -2;
	filter: blur(12px) brightness(0.4);
	pointer-events: none;
}
main {
	text-align: center;
	max-width: 400px;
	box-sizing: border-box;
}
.center-container {
	display: grid;
	place-items: center;
	min-height: 100svh;
	box-sizing: border-box;
	overflow: visible;
	padding: calc(env(safe-area-inset-top, 0px) + 12px) calc(env(safe-area-inset-right, 0px) + 16px) calc(env(safe-area-inset-bottom, 0px) + 16px) calc(env(safe-area-inset-left, 0px) + 16px);
	margin: 0;
}
@supports not (min-height: 100svh) {
	.center-container {
		min-height: 100dvh;
	}
}
@supports not (min-height: 100dvh) {
	.center-container {
		min-height: 100vh;
	}
}
@media screen and (orientation: landscape) and (hover: none) and (max-width: 768px) {
	html, body {
		overflow-y: auto !important;
		position: relative !important;
		height: auto !important;
		touch-action: auto !important;
	}
	.center-container {
		display: grid !important;
		place-items: center !important;
		min-height: 100svh !important;
		padding-top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
		padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
	}
}
.container {
	background: rgba(255, 255, 255, 0.03);
	padding: 2em;
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.1);
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	backdrop-filter: blur(8px);
}
h1 {
	font-family: "IBM Plex Sans Condensed", sans-serif;
	font-size: 1.3em;
	color: #fff;
	margin-top: 0;
}
p {
	font-size: 0.9em;
	color: rgb(220, 220, 220);
}
a {
	display: inline-block;
	padding: 6px 10px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-radius: 5px;
	text-decoration: none;
	font-size: 0.8em;
	transition: background 0.3s;
	margin-top: 0.5em;
	border: 1px solid rgba(255, 255, 255, 0.3);
}
a:hover {
	background: rgba(255, 255, 255, 0.2);
}
a.login {
	display: inline-block;
	padding: 8px 15px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-radius: 5px;
	text-decoration: none;
	font-size: 0.9em;
	transition: background 0.3s;
	cursor: pointer;
	border: none;
	width: 200px;
	margin-top: 0.9em;
}
a.login:hover {
	background: rgba(255, 255, 255, 0.2);
}
.contact-block {
	margin-bottom: 1.5em;
	line-height: 1.6;
}
@media screen and (max-width: 600px) {
	.container {
		width: 90%;
		max-width: 100%;
		margin: 1em auto;
		box-sizing: border-box;
	}
	h1 {
		font-size: 1.3em;
	}
	p {
		font-size: 0.95em;
	}
}
ul {
	list-style-type: none;
	padding-left: 0;
	margin: 0;
	text-align: center;
}
li {
	margin: 0.5em 0;
}
.cookie-accept-btn {
	display: inline-block;
	padding: 0px 10px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-radius: 5px;
	text-decoration: none;
	font-size: 0.9em;
	transition: background 0.3s;
	cursor: pointer;
	border: none;
	width: 200px;
	margin-top: 0.4em;
}
.cookie-accept-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}
form {
	position: relative;
	z-index: 1;
	background: rgba(0, 0, 0, 0.2);
	padding: 1em;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.37);
	backdrop-filter: blur(8px);
	min-width: 280px;
}
label {
	display: block;
	margin-top: 1em;
	font-size: 0.9em;
	color: rgb(230,230,230);
	text-align: left;
}
input {
	padding: 0.5em;
	height: 40px;
	margin-top: 0.3em;
	border-radius: 5px;
	border: none;
	background: #555;
	color: #ccc;
	box-sizing: border-box;
	font-family: "Fira Mono", monospace;
	font-size: 0.9em;
}
input[type=submit] {
	display: inline-block;
	padding: 8px 15px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-radius: 5px;
	text-decoration: none;
	font-size: 0.9em;
	transition: background 0.3s;
	margin-top: 2em;
	cursor: pointer;
}
input[type=submit]:hover {
	background: rgba(255, 255, 255, 0.2);
}
.passkey .btn {
	width: auto;
	text-align: center;
}
.password-wrapper {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 8px;
	position: relative;
}
.password-wrapper input {
	padding-right: 0;
}
.toggle-password {
	position: static;
	height: 40px;
	width: 40px;
	display: inline-grid;
	place-items: center;
	background: none;
	border: none;
	color: #ccc;
	font-size: 1.1em;
	cursor: pointer;
	padding: 0;
	margin: 0;
}
.btn-login--topbar {
	height: 36px;
	min-width: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.10);
	color: #fff;
	font-family: "Artifakt Element", monospace;
	padding: 6px 14px;
	border: 1px solid rgba(255,255,255,.30);
	border-radius: 6px;
	text-decoration: none;
	font-size: .9em;
	box-sizing: border-box;
	margin: 5px 0 0 0 !important;
	transition: background-color .2s, transform .15s ease;
}
.btn-login--topbar:hover {
	background: rgba(80,60,120,.30);
	text-decoration: none;
}
.btn-login--topbar:active {
	transform: translateY(1px);
}
.btn-login--topbar:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(180,180,255,.35);
}
@media (max-width: 420px) {
	.btn-login--topbar {
		min-width: 100%;
	}
}
a.login {
	all: unset;
}
.btn-login--topbar,
.btn-login--topbar:hover,
.btn-login--topbar:focus,
.btn-login--topbar:active,
.btn-login--topbar:visited {
	text-decoration: none !important;
}
.passkey-or {
	font-size: 0.9em;
	color: rgb(230, 230, 230);
	text-align: center;
}
.badge {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 32px;
	height: 32px;
	padding: 0 10px;
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
	border: 1px solid rgba(255,255,255,.22);
	font-family: "IBM Plex Sans Condensed", sans-serif;
	font-weight: 800;
	letter-spacing: .6px;
	color: #fff;
	font-size: 1rem;
	line-height: 1;
	white-space: nowrap;
	text-wrap: nowrap;
}
.project-label {
	display: inline-grid;
	place-items: center;
	padding: 2px 8px;
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,.25);
	background: rgba(255,255,255,.06);
	font-family: "IBM Plex Sans Condensed", sans-serif;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	text-wrap: nowrap;
}
.icon-btn {
	all: unset;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,.22);
	color: #fff;
	cursor: pointer;
	line-height: 1;
	transition: background .12s ease, border-color .12s ease, transform .08s ease;
}
.icon-btn:active {
	transform: translateY(1px);
}
.icon-btn[disabled] {
	opacity: .5;
	pointer-events: none;
}
.icon-btn.trash,
.icon-btn.pk-del,
.icon-btn.svg-del-btn {
	background: rgba(255,0,0,.20);
	border-color: rgba(255,0,0,.35);
}
.icon-btn.trash:hover,
.icon-btn.pk-del:hover,
.icon-btn.svg-del-btn:hover {
	background: rgba(255,0,0,.34);
}

.tz-badge{
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(255,255,255,.10);
	border: 1px solid rgba(255,255,255,.25);
	font-size: .70rem;
	line-height: 1;
	color: #f1f1f1;
	white-space: nowrap;
	user-select: none;
	font-family: "Artifakt Element", monospace;
}

.tile .tz-badge{
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	opacity: .95;
}

@keyframes dotPulse {
	0%{
		filter:brightness(.85)
	}
	50%{
		filter:brightness(1.25)
	}
	100%{
		filter:brightness(.85)
	}
}
.online-dots {
	display:flex;
	gap:2px;
	align-items:center;
}
.tile .online-dots {
	position:absolute;
	right:8px;
	top:35px;
	z-index:2;
}
.dot {
	width:10px;
	height:10px;
	border-radius:50%;
	box-shadow:0 0 0 1px rgba(0,0,0,.45) inset, 0 0 8px rgba(0,0,0,.35);
	animation: dotPulse 2s ease-in-out infinite;
}
.dot--green {
	background:#1fbf6b;
}
.dot--red {
	background:#ff4d4f;
}