/* ===== Глобальные стили ===== */
	body {
	 font-family: Arial, sans-serif;
	 background: #f5f5f5;
	 margin: 0;
	 padding: 0;
	 color: #333;
	}
	.model-controls {
	 display: inline-flex; /* выстраивает элементы в строку */
	 align-items: center; /* вертикальное выравнивание */
	 gap: 8px; /* расстояние между чекбоксом и кнопкой */
	}

	.model-controls form {
	 margin: 0; /* убираем возможные отступы формы */
	 display: inline-block; /* безопасно для старых браузеров */
	}
	.control-row {
	 display: flex;
	 align-items: center;
	 gap: 8px;
	}
	.control-row label { white-space: nowrap; }
	.control-row .range { flex: 1; }
	.control-row .value {
	 width: 72px;
	 text-align: center;
	}
	.btn-delete {
	 padding: 4px 8px;
	 line-height: 1;
	 cursor: pointer;
	}
	.container {
	 max-width: 1000px;
	 background: white;
	 margin: 40px auto;
	 padding: 20px;
	 border-radius: 10px;
	 box-shadow: 0 0 15px rgba(0,0,0,0.1);
	 /*text-align: center;*/
	}

	h1 {
	 color: #333;
	 text-align: center;
	 margin-bottom: 20px;
	 padding: 20px 0;
	}

	p {
	 font-size: 16px;
	 color: #555;
	 margin: 8px 0;
	}

	/* ===== Формы ===== */
	label {
	 font-weight: bold;
	 display: block;
	 margin-top: 15px;
	}

	textarea,
	select,
	input[type="file"],
	input[type="text"],
	input[type="password"]{
	 width: 100%;
	 padding: 8px;
	 margin-top: 5px;
	 border-radius: 5px;
	 border: 1px solid #ccc;
	 box-sizing: border-box;
	}
	input[type="password"]:focus,
	input[type="text"]:focus,
	textarea:focus {
	 outline: none;
	 border-color: #4CAF50;
	 box-shadow: 0 0 0 3px rgba(76,175,80,0.08);
	}
	input[type="checkbox"] {
	 margin-right: 5px;
	}
	input:-webkit-autofill,
	input:-webkit-autofill:focus {
	 box-shadow: 0 0 0px 1000px #fff inset;
	 -webkit-text-fill-color: #333 !important;
	}
	input[type="submit"] {
	 background: #4CAF50;
	 color: white;
	 border: none;
	 padding: 12px 20px;
	 margin-top: 20px;
	 border-radius: 5px;
	 cursor: pointer;
	 width: 100%;
	 font-size: 16px;
	}
	input[type="submit"]:hover {
	 background: #45a049;
	}

	.seed-row {
	 display: flex;
	 align-items: center;
	 gap: 8px;
	}

	.seed-row input[type="text"] {
	 flex: 1;
	 margin-top: 0; /* убираем отступ, чтобы выровнять */
	}

	.seed-row button {
	 padding: 6px 12px;
	 font-size: 14px;
	 background-color: #4CAF50;
	 color: white;
	 border: none;
	 border-radius: 5px;
	 cursor: pointer;
	}

	.seed-row button:hover {
	 background-color: #45a049;
	}

	/* ===== Галерея ===== */
	.gallery {
	 display: flex;
	 flex-wrap: wrap;
	 justify-content: center;
	 gap: 15px;
	 padding: 20px;
	}

	.thumb {
	 display: flex;
	 flex-direction: column;
	 align-items: center;
	 justify-content: center;
	 background: #fff;
	 border-radius: 8px;
	 padding: 8px;
	 box-shadow: 0 0 8px rgba(0,0,0,0.1);
	 width: 220px;
	 height: 240px;
	 transition: all 0.2s ease;
	}
	.lora-tooltip {
	 position: absolute;
	 background: #fff;
	 border: 1px solid #999;
	 padding: 5px 10px;
	 border-radius: 4px;
	 box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	 font-size: 14px;
	 z-index: 9999;
	}
	.lora-table {
	 width: 100%;
	 border-collapse: collapse;
	 margin-top: 10px;
	}
	.lora-table th, .lora-table td {
	 border: 1px solid #ddd;
	 padding: 8px;
	 text-align: left;
	}
	.lora-table th {
	 background-color: #f4f4f4;
	 font-weight: bold;
	}
	.details-btn {
	 padding: 5px 10px;
	 background: #4CAF50;
	 color: white;
	 border: none;
	 cursor: pointer;
	 border-radius: 3px;
	}
	.details-btn:hover {
	 background: #45a049;
	}
	.thumb-system {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     background: #fff;
     border-radius: 8px;
     padding: 8px;
     box-shadow: 0 0 8px rgb(0 0 0 / 10%);
     width: 220px;
     height: 79px;
     transition: all 0.2s ease;
	}
	.button-row {
	 display: flex;
	 justify-content: space-between;
	 gap: 8px;
	 margin-top: 5px;
	}
	.button-row form {
	 margin: 0;
	}
	.button-row button {
	 margin-top: 0;
	}	
	.thumb-system span {
	 font-size: 14px;
	 color: #555;
	}

	.thumb-system:hover {
	 transform: translateY(-3px);
	 box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	}
	
	.thumb img {
	 max-width: 200px;
	 max-height: 200px;
	 margin-bottom: 5px;
	 border-radius: 5px;
	}

	.thumb span {
	 font-size: 14px;
	 color: #555;
	}

	.thumb:hover {
	 transform: translateY(-3px);
	 box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	}

	/* ===== Пагинация ===== */
	.pagination {
	 margin: 20px 0;
	 text-align: center;
	}
	.pagination a {
	 margin: 0 5px;
	 color: #4CAF50;
	 text-decoration: none;
	}
	.pagination strong {
	 margin: 0 5px;
	 color: #333;
	}

	/* ===== Прогресс-бар ===== */
	.progress-wrapper {
	 width: 80%;
	 max-width: 500px;
	 margin: 20px auto;
	}

	.progress-container {
	 width: 100%;
	 background-color: #ddd;
	 border-radius: 5px;
	 overflow: hidden;
	 position: relative;
	}

	.progress-bar {
	 height: 30px;
	 background-color: #4CAF50;
	}

	.progress-text {
	 position: absolute;
	 top: 0;
	 left: 50%;
	 transform: translateX(-50%);
	 height: 30px;
	 line-height: 30px;
	 color: white;
	 font-weight: bold;
	 z-index: 1;
	}

	/* ===== Статус-блоки ===== */
	.status-container {
	 display: flex;
	 justify-content: center;
	 flex-wrap: wrap;
	 gap: 20px;
	 margin: 20px;
	}

	.status-card {
	 background: white;
	 padding: 15px 25px;
	 border-radius: 8px;
	 box-shadow: 0 0 8px rgba(0,0,0,0.1);
	 text-align: center;
	 min-width: 150px;
	}

	.status-title {
	 font-weight: bold;
	 margin-bottom: 8px;
	}

	.status-value {
	 font-size: 18px;
	 color: #4CAF50;
	}

	/* ===== Картинки (общие) ===== */
	img {
	 max-width: 768px;
	 max-height: 1024px;
	 border-radius: 10px;
	 box-shadow: 0 0 10px rgba(0,0,0,0.1);
	 margin-top: 15px;
	}
	/* ===== Спинер ===== */
	#submitBtn {
	 display: inline-block;
	 align-items: center;
	 background: #4CAF50;
     color: white;
     border: none;
     padding: 12px 20px;
     margin-top: 20px;
     border-radius: 5px;
     cursor: pointer;
     width: 100%;
     font-size: 16px;
	 align-items: center; /* выравнивание по вертикали */
	 justify-content: center; /* выравнивание по горизонтали */
	 gap: 8px; /* расстояние между текстом и спиннером */
	}
	#submitBtn:hover:not(:disabled) {
	 background-color: #45a049; /* темнее при ховере */
	}

	#submitBtn:active:not(:disabled) {
	 transform: translateY(1px); /* визуальный клик */
	}

	#submitBtn:disabled {
	 opacity: 0.6;
	 cursor: not-allowed;
	}
	.spinner {
	 display: inline-block;
	 width: 16px;
	 height: 16px;
	 border: 2px solid #ccc;
	 border-top: 2px solid #333;
	 border-radius: 50%;
	 animation: spin 0.6s linear infinite;
	 vertical-align: middle;
	}

	@keyframes spin {
	 0% { transform: rotate(0deg); }
	 100% { transform: rotate(360deg); }
	}
	 /* Стили для меню */
	.navbar {
	 background-color: #333;
	 overflow: hidden;
	 display: flex;
	 padding: 0 10px;
	}
	.navbar a {
	 color: white;
	 padding: 14px 20px;
	 text-decoration: none;
	 display: block;
	}
	.navbar a:hover {
	 background-color: #575757;
	}
	.navbar a.active {
	 background-color: #04AA6D;
	 font-weight: bold;
	}
	
/* Tabs: чисто, компактно, с акцентом на активную вкладку */
.tabs {
 display: flex;
 gap: 8px;
 align-items: center;
 padding: 8px;
 background: var(--tabs-bg, #f4f6fb);
 border-radius: 10px;
 box-shadow: inset 0 -1px 0 rgba(16,24,40,0.03);
 -webkit-overflow-scrolling: touch;
}

.tabs a {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 8px 14px;
 color: var(--tab-color, #4b5563);
 background: transparent;
 text-decoration: none;
 border-radius: 8px;
 border: 1px solid transparent;
 font-weight: 600;
 font-size: 14px;
 transition: background .14s ease, color .14s ease, transform .08s ease, box-shadow .14s ease;
 white-space: nowrap;
}

.tabs a:hover {
 background: rgba(99,102,241,0.06); /* лёгкий hover */
 color: var(--tab-hover-color, #111827);
 transform: translateY(-1px);
 box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

/* Активная вкладка */
.tabs a.active {
 background: var(--tab-active-bg, #ffffff);
 color: var(--tab-active-color, #0f172a);
 border-color: var(--tab-active-border, #e6edf8);
 box-shadow: 0 8px 24px rgba(2,6,23,0.06);
 position: relative;
}

/* Акцентная полоса под активной вкладкой */
.tabs a.active::after {
 content: "";
 position: absolute;
 left: 12px;
 right: 12px;
 bottom: -10px;
 height: 4px;
 border-radius: 4px;
 background: linear-gradient(90deg, var(--tab-accent-start, #7c3aed), var(--tab-accent-end, #4f46e5));
 box-shadow: 0 6px 14px rgba(79,70,229,0.18);
}

/* Доступность: видимая фокусировка */
.tabs a:focus {
 outline: none;
 box-shadow: 0 0 0 3px rgba(99,102,241,0.14);
}

/* Малые экраны — уменьшаем отступы */
@media (max-width: 520px) {
 .tabs a { padding: 6px 10px; font-size: 13px; }
 .tabs a.active::after { left: 8px; right: 8px; bottom: -8px; height: 3px; }
}