.jpe-wrap {
    width: 100%;
	/*max-width: 960px;*/
	margin: 0px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.jpe-title-input {
	width: 100%;
	box-sizing: border-box;
	padding: 16px;
	font-size: 20px;
	color: #333;
	border: 1px solid #e2e2e2;
	background: #fafbfc;
	border-radius: 3px 3px 0 0;
	margin-bottom: 0;
}

.jpe-title-input:focus {
	outline: none;
	border-color: #c0392b;
}

.jpe-tabs {
	display: flex;
	gap: 2px;
	margin: 10px 0 0;
}

.jpe-tab {
	padding: 10px 24px;
	font-weight: 600;
	font-size: 14px;
	border: none;
	background: #e2e2e2;
	color: #555;
	cursor: pointer;
	border-radius: 4px 4px 0 0;
}

.jpe-tab.active {
	background: #c20025;
	color: #fff;
}

#jpe-editor-container {
	border: 1px solid #e2e2e2;
	border-top: none;
}

#jpe-quill {
	min-height: 500px;
	background: #fff;
	font-size: 15px;
}

.jpe-html-source {
	width: 100%;
	box-sizing: border-box;
	min-height: 500px;
	border: 1px solid #e2e2e2;
	border-top: none;
	padding: 16px;
	font-family: Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.5;
	resize: vertical;
}

.jpe-actions {
	margin-top: 20px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.jpe-btn {
	display: inline-block;
	padding: 12px 28px;
	background: #c20025;
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	text-decoration: none;
}

.jpe-btn:hover {
	background: #c20025;
	color: #fff;
}

.jpe-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.jpe-status {
	font-size: 14px;
}

.jpe-status-success { color: #2e7d32; }
.jpe-status-error { color: #c0392b; }

.jpe-auth-hint {
	margin-top: 12px;
	font-size: 13px;
	color: #888;
}

/* Login / Sign up modal */
.jpe-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jpe-modal {
	background: #fff;
	border-radius: 6px;
	padding: 32px;
	width: 100%;
	max-width: 360px;
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.jpe-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}

.jpe-modal-tabs {
	display: flex;
	gap: 2px;
	margin-bottom: 20px;
}

.jpe-modal-tab {
	flex: 1;
	padding: 10px;
	font-weight: 600;
	font-size: 14px;
	border: none;
	background: #e2e2e2;
	color: #555;
	cursor: pointer;
	border-radius: 4px 4px 0 0;
}

.jpe-modal-tab.active {
	background: #1c2b36;
	color: #fff;
}

.jpe-modal-form input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	margin-bottom: 12px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 14px;
}

.jpe-modal-submit {
	width: 100%;
	text-align: center;
}

.jpe-modal-error {
	color: #c0392b;
	font-size: 13px;
	margin: 10px 0 0;
	min-height: 1em;
}

.jpe-modal-link {
	display: block;
	margin-top: 12px;
	font-size: 13px;
	text-align: center;
	color: #888;
}

.jpe-login-notice {
	max-width: 960px;
	margin: 40px auto;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Quill toolbar tweaks so it reads closer to the reference design */
.ql-toolbar.ql-snow {
	border-color: #e2e2e2;
	background: #f7f7f7;
}

.ql-container.ql-snow {
	border-color: #e2e2e2;
}
