.epu-upload-box {
	margin: 1.5em 0;
	padding: 1em 1.25em;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fafafa;
}

.epu-upload-box .epu-quota {
	font-weight: 600;
	margin-top: 0;
}

.epu-upload-box .epu-notice {
	padding: 0.6em 0.9em;
	border-radius: 4px;
	margin: 0 0 1em;
}

.epu-upload-box .epu-notice-success {
	background: #d4edda;
	color: #155724;
}

.epu-upload-box .epu-notice-error {
	background: #f8d7da;
	color: #721c24;
}

.epu-upload-box .epu-notice-info {
	background: #d1ecf1;
	color: #0c5460;
}

.epu-notice-links {
	list-style: none;
	margin: -0.5em 0 1em;
	padding: 0;
	font-size: 0.9em;
}

.epu-upload-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em;
}

.epu-upload-form button {
	cursor: pointer;
}

.epu-upload-form .epu-form-hint {
	flex-basis: 100%;
	margin: 0;
	font-size: 0.85em;
	color: #666;
}

.epu-upload-form .epu-form-warning {
	flex-basis: 100%;
	margin: 0;
}

.epu-form-warning-slot {
	flex-basis: 100%;
	margin: 0;
}

.epu-form-warning-slot:empty {
	display: none;
}

.epu-upload-rows {
	flex-basis: 100%;
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.epu-upload-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0.75em;
	padding: 0.75em;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}

.epu-upload-row-file,
.epu-upload-row-field {
	display: flex;
	flex-direction: column;
	gap: 0.3em;
}

.epu-upload-row label {
	font-size: 0.8em;
	font-weight: 600;
	color: #444;
}

.epu-upload-row input[type="text"],
.epu-upload-row textarea,
.epu-upload-row input[type="file"] {
	width: 100%;
	box-sizing: border-box;
}

.epu-upload-row textarea {
	resize: vertical;
}

@media ( max-width: 700px ) {
	.epu-upload-row {
		grid-template-columns: 1fr;
	}
}

.epu-upload-form button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.epu-upload-progress {
	flex-basis: 100%;
	margin: 0;
}

.epu-upload-progress-bar {
	width: 100%;
	height: 0.9em;
	border-radius: 999px;
	background: #e2e2e2;
	overflow: hidden;
}

.epu-upload-progress-fill {
	height: 100%;
	width: 0;
	background: #2271b1;
	transition: width 0.15s ease-out;
}

.epu-upload-progress-text {
	margin: 0.35em 0 0;
	font-size: 0.85em;
	color: #666;
}

/* Server-side resize + Drive round trip has no real progress to report, so
   the fill sweeps back and forth instead of sitting frozen — visibly still
   working rather than looking hung. */
.epu-upload-progress-indeterminate .epu-upload-progress-fill {
	width: 40% !important;
	animation: epu-upload-indeterminate 1.2s ease-in-out infinite;
}

@keyframes epu-upload-indeterminate {
	0% {
		margin-left: 0%;
	}
	50% {
		margin-left: 60%;
	}
	100% {
		margin-left: 0%;
	}
}
