.wpqrg-app {
	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1e1e1e;
	box-sizing: border-box;
}

.wpqrg-app * {
	box-sizing: border-box;
}

.wpqrg-title {
	margin: 0 0 16px;
	font-size: 1.4em;
}

.wpqrg-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.wpqrg-panel {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 20px;
}

.wpqrg-panel-form {
	flex: 1 1 380px;
	min-width: 300px;
}

.wpqrg-panel-preview {
	flex: 0 0 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	position: sticky;
	top: 20px;
	align-self: flex-start;
}

.wpqrg-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 18px;
}

.wpqrg-tab {
	background: #f3f3f4;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 0.85em;
	cursor: pointer;
	color: #3a3a3a;
	transition: background .15s ease, color .15s ease;
}

.wpqrg-tab:hover {
	background: #e8e8ea;
}

.wpqrg-tab.is-active {
	background: #1e1e1e;
	color: #fff;
}

.wpqrg-field-group label {
	display: block;
	font-size: 0.85em;
	font-weight: 600;
	margin-bottom: 12px;
	color: #444;
}

.wpqrg-row {
	display: flex;
	gap: 12px;
}

.wpqrg-row label {
	flex: 1;
}

.wpqrg-input {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 8px 10px;
	border: 1px solid #d4d4d4;
	border-radius: 6px;
	font-size: 0.95em;
	font-family: inherit;
	font-weight: 400;
	color: #1e1e1e;
	background: #fff;
}

.wpqrg-input:focus {
	outline: none;
	border-color: #1e1e1e;
}

textarea.wpqrg-input {
	resize: vertical;
}

.wpqrg-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.wpqrg-checkbox input {
	width: auto;
	margin: 0;
}

.wpqrg-toggle-style {
	margin-top: 6px;
	background: none;
	border: none;
	padding: 6px 0;
	font-size: 0.85em;
	font-weight: 600;
	color: #1e1e1e;
	cursor: pointer;
	text-decoration: underline;
}

.wpqrg-style-options {
	margin-top: 10px;
	padding-top: 14px;
	border-top: 1px dashed #ddd;
}

.wpqrg-style-options .wpqrg-row {
	margin-bottom: 14px;
	align-items: end;
}

.wpqrg-style-options label {
	font-size: 0.8em;
	font-weight: 600;
	color: #444;
	display: block;
}

.wpqrg-range-value {
	font-size: 0.85em;
	font-weight: 400;
	margin-left: 6px;
}

input[type="range"].wpqrg-style-input {
	width: 100%;
	margin-top: 6px;
}

input[type="color"].wpqrg-style-input {
	width: 100%;
	height: 36px;
	padding: 2px;
	margin-top: 6px;
	border: 1px solid #d4d4d4;
	border-radius: 6px;
	cursor: pointer;
}

.wpqrg-clear-logo {
	margin-top: 8px;
	background: none;
	border: 1px solid #d4d4d4;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 0.8em;
	cursor: pointer;
}

.wpqrg-preview-box {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	background: #fafafa;
	border: 1px dashed #ddd;
	border-radius: 8px;
	padding: 12px;
}

.wpqrg-preview-box canvas,
.wpqrg-preview-box img,
.wpqrg-preview-box svg {
	max-width: 100%;
	height: auto;
}

.wpqrg-downloads {
	display: flex;
	gap: 10px;
	width: 100%;
}

.wpqrg-btn {
	flex: 1;
	background: #1e1e1e;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 0.85em;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s ease;
}

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

@media (max-width: 640px) {
	.wpqrg-panel-preview {
		position: static;
		flex-basis: 100%;
	}
}
