.aipm-wrapper {
	--aipm-accent: #4F46E5;
	max-width: 780px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.aipm-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.aipm-label-inline {
	font-weight: 500;
	margin-right: 8px;
}

.aipm-textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	font-size: 15px;
	resize: vertical;
}

.aipm-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.aipm-controls input[type="number"] {
	width: 64px;
	padding: 6px 8px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
}

.aipm-btn {
	cursor: pointer;
	padding: 10px 18px;
	border-radius: 8px;
	border: 1px solid #d0d5dd;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	transition: opacity .15s ease;
}

.aipm-btn:hover {
	opacity: 0.85;
}

.aipm-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.aipm-btn-primary {
	background: var(--aipm-accent);
	border-color: var(--aipm-accent);
	color: #fff;
	margin-left: auto;
}

.aipm-status {
	margin-top: 10px;
	font-size: 14px;
	color: #555;
	min-height: 20px;
}

.aipm-status.aipm-error {
	color: #c0392b;
}

.aipm-viewer {
	margin-top: 28px;
}

.aipm-slide-frame {
	aspect-ratio: 16 / 9;
	width: 100%;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.aipm-slide-content {
	width: 100%;
	height: 100%;
	padding: 6% 8%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.aipm-slide-content.is-title {
	text-align: center;
	align-items: center;
}

.aipm-slide-title {
	font-size: clamp(20px, 4vw, 34px);
	font-weight: 700;
	color: var(--aipm-accent);
	margin: 0 0 18px 0;
}

.aipm-slide-content:not(.is-title) .aipm-slide-title {
	color: #1a1a1a;
	text-align: left;
}

.aipm-slide-bullets {
	list-style: disc;
	margin: 0;
	padding-left: 22px;
	font-size: clamp(14px, 2vw, 18px);
	color: #333;
	line-height: 1.6;
}

.aipm-slide-content.is-title .aipm-slide-bullets {
	list-style: none;
	padding-left: 0;
	color: #555;
}

.aipm-viewer-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	flex-wrap: wrap;
}

.aipm-slide-counter {
	font-size: 14px;
	color: #666;
	min-width: 110px;
	text-align: center;
}
