* {
	box-sizing: border-box;
}
body {
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	background: #f0f2f5;
	margin: 0;
	padding: 20px 16px 80px 16px;
	color: #1c1e21;
}
.container {
	max-width: 800px;
	margin: 0 auto;
}
.card {
	background: white;
	border-radius: 20px;
	padding: 20px 18px;
	margin-bottom: 24px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
h2 {
	font-size: 1.4rem;
	margin-top: 0;
	margin-bottom: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}
.form-group {
	margin-bottom: 18px;
}
label {
	font-weight: 500;
	display: block;
	margin-bottom: 8px;
	font-size: 0.9rem;
	color: #2c3e44;
}
select, button, textarea {
	width: 100%;
	padding: 14px 12px;
	font-size: 1rem;
	border-radius: 14px;
	border: 1px solid #ccd0d5;
	background: white;
	font-family: inherit;
}
textarea {
	resize: vertical;
	min-height: 80px;
}
.checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}
.checkbox-item {
	display: flex;
	margin: 0;
	align-items: center;
	gap: 8px;
	background: #f7f8fa;
	padding: 8px 14px;
	border-radius: 40px;
}
.checkbox-item input {
	width: 20px;
	height: 20px;
	margin: 0;
	cursor: pointer;
}
.info-badge {
	background: #e9ecef;
	border-radius: 14px;
	padding: 10px;
	font-size: 0.85rem;
	margin-top: 12px;
	text-align: center;
}
.watermark-preview {
	background: #f8f9fa;
	border-radius: 14px;
	padding: 12px;
	font-size: 0.8rem;
	margin-top: 12px;
	border-left: 4px solid #ff6b35;
}
.photos-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	margin-top: 16px;
	padding: 8px 4px;
	-webkit-overflow-scrolling: touch;
}
.photos-grid {
	display: inline-flex;
	gap: 12px;
	white-space: nowrap;
}
.photo-card {
	display: inline-block;
	width: 130px;
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	position: relative;
	vertical-align: top;
	white-space: normal;
}
.photo-card img {
	/*width: 100%;
	height: 130px;*/
	object-fit: contain;
	display: block;
}
.photo-info {
	padding: 8px;
	font-size: 0.65rem;
	background: #f8f9fa;
	word-break: break-word;
	white-space: normal;
}
.photo-filename {
	font-weight: bold;
	margin-bottom: 4px;
	font-size: 0.6rem;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.photo-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: rgba(0,0,0,0.7);
	color: white;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.7rem;
	font-weight: bold;
}
.delete-photo {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(220,53,69,0.9);
	color: white;
	border: none;
	border-radius: 20px;
	padding: 4px 10px;
	font-size: 0.7rem;
	cursor: pointer;
	width: auto;
}
.success-message {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
.error-message {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}
.group-title {
	background: #e9ecef;
	padding: 10px;
	margin-top: 15px;
	margin-bottom: 10px;
	font-weight: bold;
	border-radius: 10px;
}
.record-item {
	padding: 8px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.record-text {
	flex: 1;
	font-size: 0.8rem;
}
.delete-record {
	background: #dc3545;
	color: white;
	border: none;
	padding: 4px 10px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.7rem;
	width: auto;
}
.record-count {
	background: #1877f2;
	color: white;
	padding: 4px 8px;
	border-radius: 20px;
	display: inline-block;
	margin-left: 8px;
	font-size: 0.8rem;
}
.loading {
	text-align: center;
	padding: 20px;
	color: #666;
}

/* Плавающая кнопка камеры */
.floating-camera-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: #ff6b35;
	color: white;
	border: none;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	font-size: 32px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	transition: all 0.3s ease;
}
.floating-camera-btn:active {
	transform: scale(0.95);
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Гамбургер меню */
.menu-btn {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #1877f2;
	color: white;
	border: none;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1001;
	transition: all 0.3s ease;
}
.menu-btn:active {
	transform: scale(0.95);
}

.menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 1002;
	display: none;
	backdrop-filter: blur(2px);
}

.menu-panel {
	position: fixed;
	top: 0;
	right: -300px;
	width: 280px;
	height: 100%;
	background: white;
	box-shadow: -2px 0 12px rgba(0,0,0,0.15);
	z-index: 1003;
	transition: right 0.3s ease;
	display: flex;
	flex-direction: column;
	padding: 20px;
}

.menu-panel.open {
	right: 0;
}

.menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 20px;
}

.menu-header h3 {
	margin: 0;
	font-size: 1.2rem;
}

.close-menu {
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	width: auto;
	padding: 0;
	color: #666;
}

.menu-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.menu-buttons button {
	width: 100%;
	padding: 14px;
	text-align: left;
	background: #f8f9fa;
	color: #1c1e21;
	border: 1px solid #e0e0e0;
}

.menu-buttons button:active {
	transform: scale(0.98);
}

.menu-buttons .btn-danger {
	background: #dc3545;
	color: white;
}

.menu-buttons .btn-success {
	background: #28a745;
	color: white;
}

.menu-buttons .btn-zip {
	background: #6f42c1;
	color: white;
}

@media (max-width: 600px) {
	body { padding: 20px 12px 80px 12px; }
	.photo-card { width: 110px; }
	.photo-card img { height: 110px; }
	.floating-camera-btn {
		width: 60px;
		height: 60px;
		font-size: 28px;
		bottom: 15px;
		right: 15px;
	}
	.menu-btn {
		width: 45px;
		height: 45px;
		font-size: 22px;
		top: 15px;
		right: 15px;
	}
	.menu-panel {
		width: 260px;
	}
}