/* Загрузчик фото (js/photo_uploader.js) */
.pu { margin: 5px 0 10px 0; border-radius: 8px; }
.pu.pu-drop { outline: 2px dashed #3b8fd0; outline-offset: 4px; }
.pu-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pu-tile, .pu-add {
	position: relative;
	width: 120px; height: 120px;
	border-radius: 8px;
	overflow: hidden;
	background: #f0f0f0;
	flex: 0 0 auto;
	-webkit-user-select: none; user-select: none;
	-webkit-touch-callout: none;
}
.pu-tile img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.pu-tile.pu-wait { opacity: .5; pointer-events: none; }
.pu-tile.pu-placeholder { opacity: .3; }
.pu-ghost {
	position: fixed; z-index: 100001; pointer-events: none;
	box-shadow: 0 6px 20px rgba(0,0,0,.35); transform: scale(1.05); opacity: .9;
}
.pu-main {
	position: absolute; left: 6px; bottom: 6px;
	background: rgba(0,0,0,.6); color: #fff; font-size: 11px;
	padding: 2px 6px; border-radius: 4px; pointer-events: none;
}
.pu-btn {
	position: absolute; top: 5px;
	width: 28px; height: 28px; line-height: 27px; text-align: center;
	border-radius: 50%;
	background: rgba(0,0,0,.6); color: #fff; font-size: 18px;
	cursor: pointer;
}
.pu-btn:hover { background: rgba(0,0,0,.85); }
.pu-rot { left: 5px; font-size: 17px; }
.pu-del { right: 5px; font-size: 22px; }
.pu-uploading img { opacity: .6; }
.pu-bar {
	position: absolute; left: 8px; right: 8px; bottom: 10px;
	height: 6px; border-radius: 3px; background: rgba(255,255,255,.8); overflow: hidden;
}
.pu-bar i { display: block; height: 100%; width: 0; background: #3b8fd0; transition: width .2s; }
.pu-add {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	border: 2px dashed #c8c8c8; background: #fafafa; box-sizing: border-box;
	cursor: pointer; color: #666; text-align: center;
}
.pu-add:hover { border-color: #3b8fd0; color: #3b8fd0; }
.pu-add input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pu-plus { font-size: 40px; line-height: 40px; }
.pu-add-text { font-size: 13px; margin-top: 4px; }
.pu-info { font-size: 12px; color: #777; margin-top: 6px; }
.pu-error { display: none; font-size: 13px; color: #c00; background: #fff2f2; padding: 6px 10px; border-radius: 5px; margin-top: 6px; }
@media (max-width: 600px) {
	.pu-grid { gap: 6px; }
	.pu-tile, .pu-add { width: calc(33.333% - 4px); height: auto; aspect-ratio: 1 / 1; }
}
