.ffh-papyrus-generator {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 28px;
	max-width: 960px;
	margin: 24px 0;
	font-family: inherit;
}

@media (max-width: 720px) {
	.ffh-papyrus-generator {
		grid-template-columns: 1fr;
	}
}

.ffh-pg-controls {
	background: #faf7f0;
	border: 1px solid #e4dcc8;
	border-radius: 10px;
	padding: 18px;
}

.ffh-pg-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}

.ffh-pg-textarea {
	width: 100%;
	box-sizing: border-box;
	resize: vertical;
	min-height: 56px;
	padding: 10px;
	border: 1px solid #cfc4a8;
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
}

.ffh-pg-charcount {
	font-size: 12px;
	color: #8a8069;
	text-align: right;
	margin: 4px 0 14px;
}

.ffh-pg-row {
	display: flex;
	gap: 16px;
	margin-bottom: 14px;
}

.ffh-pg-field {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ffh-pg-field label {
	font-size: 13px;
	font-weight: 600;
	color: #4a4433;
}

.ffh-pg-rangeval {
	font-size: 12px;
	color: #7a7259;
}

.ffh-pg-field input[type="range"] {
	width: 100%;
}

.ffh-pg-field input[type="color"] {
	width: 100%;
	height: 34px;
	border: 1px solid #cfc4a8;
	border-radius: 6px;
	padding: 2px;
	background: #fff;
	cursor: pointer;
}

.ffh-pg-toggles {
	align-items: center;
	flex-wrap: wrap;
}

.ffh-pg-toggle {
	width: 38px;
	height: 34px;
	border: 1px solid #cfc4a8;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 15px;
}

.ffh-pg-toggle[aria-pressed="true"] {
	background: #2b2117;
	color: #fff;
	border-color: #2b2117;
}

.ffh-pg-checkbox {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #4a4433;
	cursor: pointer;
}

.ffh-pg-preview-wrap {
	display: flex;
	flex-direction: column;
}

.ffh-pg-preview {
	position: relative;
	min-height: 220px;
	border-radius: 10px;
	border: 1px solid #e4dcc8;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	overflow: hidden;
	background: #f4ecd8;
}

.ffh-pg-preview #ffhPgPreviewText {
	position: relative;
	z-index: 2;
	font-family: 'Papyrus', 'Papyrus Condensed', 'Herculanum', fantasy, serif;
	text-align: center;
	word-break: break-word;
	white-space: pre-wrap;
	line-height: 1.3;
}

.ffh-pg-texture-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	mix-blend-mode: multiply;
	opacity: 0.35;
}

.ffh-pg-hidden-canvas {
	display: none;
}

.ffh-pg-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.ffh-pg-btn {
	padding: 10px 18px;
	border-radius: 6px;
	border: 1px solid #2b2117;
	background: #fff;
	color: #2b2117;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}

.ffh-pg-btn-primary {
	background: #2b2117;
	color: #fff;
}

.ffh-pg-btn-ghost {
	border-color: #cfc4a8;
	color: #7a7259;
}

.ffh-pg-btn:hover {
	opacity: 0.85;
}

.ffh-pg-status {
	min-height: 20px;
	margin-top: 8px;
	font-size: 13px;
	color: #3f7a4a;
}

.ffh-pg-honesty-note {
	margin-top: 14px;
	font-size: 12px;
	color: #8a8069;
	line-height: 1.5;
}
