* {
	box-sizing: border-box
}

html,
body {
	height: 100%;
	margin: 0;
	font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
}

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px;
}

h1 {
	margin: 0 0 6px;
	font-size: 24px;
}

p.lead {
	margin: 0 0 18px;
	color: var(--muted);
}

.layout {
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 18px;
}
.meta{
	width: 100%;
}
.meta .left-block {
	display: grid;
	gap: 8px;
	    
}

.title-type{
	padding-top: 16px;
	padding-bottom: 8px;
}



input,
textarea,
select {
	width: 100%;
	padding: 10px;
	border-radius: 10px;
	border: 1px solid #2b2c31;
	background: #0e0f10;
	color: var(--text);
}

textarea {
	min-height: 100px;
	resize: vertical;
}

.left-block p,
.right-block p {
	padding: 0 0 0.25rem 0;
	font-weight: 600;
}

.active,
.tags {
	display: flex;
	flex-direction: column;
}

.row {
	display: flex;
	gap: 8px;
}

.col {
	flex: 1;
}

.btnx {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid transparent;
	background: var(--accent-ghost);
	color: var(--text);
	font-weight: 700;
	cursor: pointer;
}

.btnx.primary {
	background: var(--accent);
	color: white;
}

.btnx.ghost {
	background: transparent;
	border: 1px solid #2a2b2f;
}

.switch {
	width: 40px;
	height: 22px;
	background: var(--border);
	border-radius: 50px;
	position: relative;
	cursor: pointer;
	transition: background 0.2s;
}

.switch.on {
	background: var(--accent);
}

.knob {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	background: var(--card);
	border-radius: 50%;
	transition: left 0.2s;
}

.switch.on .knob {
	left: 20px;
}

.switch.on .knob {
	left: 22px;
	background: #fff;
}

.preview {
	width: 100%;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px dashed #2b2c31;
	background: #0b0b0b;
	color: var(--muted);
	overflow: hidden;
}

.preview img,
.preview video {
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
}


.tag {
	background: #1e1f23;
	border: 1px solid #2a2b2f;
	padding: 6px 10px;
	border-radius: 999px;
	color: var(--text);
	font-size: 13px;
}



.helper {
	font-size: 13px;
	color: var(--muted);
	margin-top: 8px;
}

.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 12px;
}

.feature {
	padding: 10px;
	background: #111213;
	border-radius: 10px;
	border: 1px solid #232426;
}

.form-footer {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
	margin-top: 14px;
	padding-top: 3rem;

}

.status-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;

}





.scroll-group {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;

}

.scroll-box-title {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--fg);
}


.scroll-box {
	flex: 1;
	min-height: clamp(10rem, 25vh, 18rem);
	max-height: clamp(15rem, 30vh, 25rem);
	overflow-y: auto;
	border: 1px solid var(--border);
	border-radius: 0.6rem;
	background: var(--card);
	padding: 0.8rem 1rem;
	scrollbar-width: thin;
	scrollbar-color: var(--border) var(--bg);
}




.checkbox-item input:checked {
	background-color: var(--white);
}



.btn__add-server {
	display: none;
}

::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	border-radius: 5px;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(to bottom, #2b2c31, #2b2c31);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(to bottom, #2b2c31, #2b2c31);
}

.right-block {
	background: var(--card);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow);
	flex-direction: column;
	gap: 1rem;
}


.right-block p {
	margin: 0;
	font-weight: 500;
	color: var(--muted);
}


.right-block input[type="text"],
.right-block textarea {
	width: 100%;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	padding: 0.6rem 0.8rem;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.2s ease;
}

.right-block input[type="text"]:focus,
.right-block textarea:focus {
	border-color: var(--accent);
}


.icon,
.banner {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}


.preview {
	background: var(--bg);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	text-align: center;
	padding: 1.2rem;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.preview:hover {
	border-color: var(--accent);
	color: var(--accent);
}


.icon input[type="file"],
.banner input[type="file"] {
	display: none;
}


.btnx.primary {
	background: var(--accent);
	color: var(--accent-fg);
	border: none;
	border-radius: var(--radius);
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

.btnx.primary:hover {
	background: var(--accent-press);
	transform: translateY(-2px);
}

.btnx.primary:active {
	transform: translateY(0);
}


.form-footer {
	display: flex;
	justify-content: center;
	margin-top: 1rem;
}

.no-servers {
	height: 75vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.links .row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.links i {
	font-size: 20px;
	color: var(--muted);
}

.links input {
	flex: 1;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	padding: 0.6rem 0.8rem;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.2s ease;
}

.links input:focus {
	border-color: var(--accent);
}

.required {
	color: var(--accent);
	font-weight: bold;
}

.char-count {
	font-size: 12px;
	color: var(--muted);
	margin-top: 3px;
	text-align: right;
}

.features {
	display: flex;
	gap: 8px;
}

.features textarea {
	flex: 1;
	min-height: 5em;
	/* примерно 5 строк */
	padding: 10px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--text);
	outline: none;
}


.features-counts {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--muted);
	margin-top: 3px;
}

.popup {
	position: fixed;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	background: #222;
	color: white;
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	z-index: 9999;
	transition: top 0.3s ease;
}

.popup.top0 {
	top: 20px;
}

.popup i {
	font-size: 20px;
}

.popup.success {
	background: var(--accent-green);
}

.popup.error {
	background: var(--accent);
}

.popup.info {
	background: hsl(204, 70%, 53%);
}

.may-include {
	color: var(--muted);
	font-size: 0.8rem;
}


.banner,
.icon,
.links {
	padding-top: 1.5rem;
}

.filters {
	display: flex;
	padding: 0.25rem 0px 0.25rem 0px;
}

.filters label {
	display: flex;
	align-items: center;

	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	color: var(--fg);
	margin-bottom: 8px
}

.filters span {
	padding-left: 1rem;
}

.filters input[type="checkbox"] {
	appearance: none;
	margin: 0;
	width: 18px;
	height: 18px;
	border: 2px solid var(--border);
	border-radius: 4px;
	background: var(--card);
	display: grid;
	place-content: center;
	cursor: pointer;
	transition: .2s;
}


.filters span {
	display: flex;
}

.filters input[type="checkbox"]::before {
	content: "";
	width: 12px;
	height: 12px;
	transform: scale(0);
	transition: transform .15s ease-in-out;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
	background: var(--accent)
}

.filters input[type="checkbox"]:checked::before {
	transform: scale(1)
}

.filters input[type="checkbox"]:hover {
	border-color: var(--accent)
}

.logout {
	color: var(--muted)
}

.main-card {
	max-width: 1200px;
	margin: 2rem auto;

}

.file-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.delete-btn {
	border: none;
	background: none;
	color: var(--muted);
	transition: color 0.3s;
}

.delete-btn.active {
	color: var(--accent);
	cursor: pointer;
}


#error-container,
#error-container input.error,
label.error {
	border: 1px solid #e63946;
	background-color: #ffe5e5;
}

.error-message {
	color: #e63946;
	font-size: 13px;
	margin-top: 4px;
}

#versionsContainer.error {
	border: 1px solid #e63946;
	padding: 5px;
	border-radius: 4px;
}

.error-message {
	color: #e63946;
	font-size: 13px;
	margin-top: 4px;
}

@media(max-width:980px) {
	.layout {
		grid-template-columns: 1fr;
	}

	.preview {
		height: 180px;
	}

	.features {
		flex-direction: column;
		gap: 0.5rem;
	}

	.card {
		margin: inherit;
	}
}