body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 1920px;
	margin: 24px auto;
	background-color: #f3f4f6;
	padding: 0 16px;
}

.body2 {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background-color: #f3f4f6;
	color: #333;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

.card {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card2 {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 28px;
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	width: 100%;
	max-width: 400px;
}

label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #333;
}

input[type=text],
input[type=password] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	margin-bottom: 14px;
	transition: border-color 0.2s;
}

input[type=text]:focus,
input[type=password]:focus {
	outline: none;
	border-color: #2962ff;
}

.button {
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	background: #2962ff;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	transition: background .2s;
}

.button:hover:not(:disabled) {
	background: #1a4ba6;
}

.button:disabled {
	opacity: .6;
	cursor: default;
}

.msg {
	margin-top: 12px;
	line-height: 1.4;
}

.msg.ok {
	color: #1b5e20;
}

.msg.err {
	color: #b71c1c;
}

.link-box {
	margin-top: 12px;
}

.link-box input {
	width: auto;
	min-width: 320px;
	max-width: 100%;
}
/* Скрываем input file, но оставляем его доступным для JS */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.drop-zone {
	border: 2px dashed #bbb;
	border-radius: 8px;
	padding: 28px 16px;
	text-align: center;
	background: #fafafa;
	cursor: pointer;
	transition: all .15s;
	margin-bottom: 12px;
}

.drop-zone:hover {
	border-color: #2962ff;
	background: #f0f7ff;
}

.drop-zone.dragover {
	border-color: #2962ff;
	background: #e3f2fd;
	transform: scale(1.01);
}

.drop-icon {
	font-size: 36px;
	margin-bottom: 8px;
}

#fileLink {
	color: #2962ff;
	text-decoration: underline;
}

table {
	width: 100%;
  /* Растягиваем на всю ширину контейнера */
	border-collapse: collapse;
	table-layout: auto;
  /* Чтобы колонки сами подстроились под контент */
	margin-top: 3px;
  /* Небольшой отступ от заголовка */;
}

th,
td {
	border: 1px solid #e0e0e0;
	padding: 2px 4px;
  /* Отступы внутри ячеек — делают таблицу «воздушной» */
	text-align: left;
	vertical-align: top;
	color: #333;
}

th {
	background-color: #f5f7fa;
	font-weight: 600;
	color: #444;
	white-space: nowrap;
  /* Заголовки не переносятся */;
}
/* Адаптив: на узких экранах уменьшаем отступы и делаем таблицу скроллируемой */
@media (max-width: 768px) {
	.card {
		padding: 16px;
	}

	th,
  td {
		padding: 8px 10px;
		font-size: 13px;
	}

	table {
		display: block;
		overflow-x: auto;
	}
}

.code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	word-break: break-all;
}

.small {
	color: #666;
	font-size: 13px;
}

.del-btn {
	background: #d32f2f;
	padding: 6px 12px;
	font-size: 13px;
}

.del-btn:hover:not(:disabled) {
	background: #900;
}

.btn {
	display: inline-block;
	padding: 8px 15px;
	background-color: #3498db;
	color: #fff;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	font-weight: bold;
	transition: background-color 0.3s ease;
}

.btn:hover,
.btn:active {
	background-color: #2980b9;
}

.btn:focus {
	outline: none;
	box-shadow: 0 0 0 2px #fff;
}