:root {
	--epop-ink: #17202a;
	--epop-muted: #667085;
	--epop-line: #dde3ed;
	--epop-soft: #f4f7fb;
	--epop-panel: #ffffff;
	--epop-brand: #007eb5;
	--epop-brand-dark: #075985;
	--epop-green: #0f766e;
	--epop-yellow: #f59e0b;
	--epop-red: #b42318;
}

.epop-portal {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	min-height: 100vh;
	background:
		linear-gradient(180deg, rgba(0, 126, 181, 0.07), rgba(255, 255, 255, 0) 260px),
		var(--epop-soft);
	color: var(--epop-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
}

.epop-portal * {
	box-sizing: border-box;
}

.epop-sidebar {
	background: #101828;
	color: #fff;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding: 26px 18px;
}

.epop-brand {
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	display: grid;
	gap: 4px;
	margin-bottom: 22px;
	padding: 0 8px 20px;
}

.epop-brand strong {
	font-size: 20px;
	letter-spacing: 0;
}

.epop-brand span {
	color: #b6c2d2;
	font-size: 13px;
}

.epop-sidebar nav {
	display: grid;
	gap: 6px;
}

.epop-sidebar a {
	border-radius: 8px;
	color: #e5e7eb;
	font-weight: 650;
	line-height: 1.2;
	min-height: 42px;
	padding: 12px 14px;
	text-decoration: none;
}

.epop-sidebar a:hover {
	background: #1d2939;
	color: #fff;
}

.epop-logout {
	border: 1px solid rgba(255, 255, 255, 0.16);
	margin-top: auto;
	text-align: center;
}

.epop-content {
	margin: 0 auto;
	max-width: 1220px;
	padding: 34px;
	width: 100%;
}

.epop-content-public {
	align-self: center;
	max-width: 760px;
}

.epop-page-head {
	align-items: center;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 22px;
}

.epop-page-head h1 {
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.03;
	margin: 4px 0 0;
}

.epop-eyebrow {
	color: var(--epop-brand-dark);
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.epop-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	margin: 20px 0 24px;
}

.epop-card,
.epop-row,
.epop-alert,
.epop-message,
.epop-mp-panel,
.epop-form {
	background: var(--epop-panel);
	border: 1px solid var(--epop-line);
	border-radius: 8px;
	box-shadow: 0 16px 34px rgba(16, 24, 40, 0.06);
}

.epop-card {
	min-height: 132px;
	padding: 20px;
}

.epop-card span {
	color: var(--epop-muted);
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 12px;
}

.epop-card strong {
	color: #101828;
	display: block;
	font-size: 28px;
	line-height: 1.1;
}

.epop-alert,
.epop-message {
	margin-bottom: 14px;
	padding: 15px 16px;
}

.epop-alert,
.epop-message-error {
	background: #fff8f6;
	border-color: #f5b5ab;
	color: var(--epop-red);
}

.epop-message-success {
	background: #effaf5;
	border-color: #9edfc2;
	color: #05603a;
}

.epop-muted,
.description {
	color: var(--epop-muted);
	font-size: 13px;
	line-height: 1.45;
}

.epop-form {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 18px 0 30px;
	padding: 24px;
}

.epop-field,
.epop-check,
.epop-ticket-editor,
.epop-ticket-row,
.epop-simulation {
	display: grid;
	gap: 7px;
}

.epop-field span {
	color: #344054;
	font-size: 13px;
	font-weight: 750;
}

.epop-field-wide,
.epop-check,
.epop-ticket-editor,
.epop-ticket-row,
.epop-simulation {
	grid-column: 1 / -1;
}

.epop-ticket-editor h2,
.epop-content h2 {
	font-size: 20px;
	margin: 10px 0 8px;
}

.epop-ticket-head {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 16px;
}

.epop-ticket-head h2 {
	margin-bottom: 4px;
}

.epop-ticket-list {
	display: grid;
	gap: 14px;
}

.epop-ticket-row {
	background: #fbfcfe;
	border: 1px solid var(--epop-line);
	border-radius: 8px;
	gap: 14px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 12px;
	padding: 16px;
}

.epop-ticket-row-head {
	align-items: center;
	display: flex;
	gap: 12px;
	grid-column: 1 / -1;
	justify-content: space-between;
}

.epop-ticket-row-head strong {
	color: #101828;
	font-size: 16px;
}

.epop-ticket-remove {
	background: #fff;
	border: 1px solid #fecdca;
	border-radius: 8px;
	color: #b42318;
	cursor: pointer;
	font-weight: 800;
	min-height: 36px;
	padding: 7px 12px;
}

.epop-ticket-row-deleted {
	display: none;
}

.epop-ticket-row .epop-field-wide,
.epop-ticket-row .epop-check {
	grid-column: 1 / -1;
}

.epop-field input,
.epop-field textarea,
.epop-field select,
.epop-form input,
.epop-form textarea,
.epop-form select {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	color: #101828;
	font: inherit;
	min-height: 44px;
	outline: none;
	padding: 10px 12px;
	width: 100%;
}

.epop-field input:focus,
.epop-field textarea:focus,
.epop-field select:focus {
	border-color: var(--epop-brand);
	box-shadow: 0 0 0 3px rgba(0, 126, 181, 0.13);
}

.epop-field textarea {
	min-height: 126px;
	resize: vertical;
}

.epop-button,
.epop-form button,
.epop-content .button,
.epop-row-link {
	align-items: center;
	appearance: none;
	background: #fff;
	border: 1px solid #b9c3d3;
	border-radius: 8px;
	color: #101828;
	cursor: pointer;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	line-height: 1.1;
	min-height: 44px;
	padding: 10px 16px;
	text-decoration: none;
	white-space: nowrap;
}

.epop-button:hover,
.epop-row-link:hover {
	border-color: var(--epop-brand);
	color: var(--epop-brand-dark);
}

.epop-button-primary,
.epop-form button[name="submit_review"] {
	background: var(--epop-green);
	border-color: var(--epop-green);
	color: #fff;
}

.epop-button-mp {
	background: #00a5df;
	border-color: #00a5df;
	color: #fff;
	width: 100%;
}

.epop-list {
	display: grid;
	gap: 10px;
}

.epop-row {
	align-items: center;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr) auto auto;
	padding: 14px 16px;
}

.epop-status {
	background: #eef4ff;
	border: 1px solid #c7d7fe;
	border-radius: 999px;
	color: #3538cd;
	display: inline-flex;
	font-size: 12px;
	font-weight: 850;
	justify-content: center;
	line-height: 1;
	min-width: 104px;
	padding: 8px 10px;
	text-transform: uppercase;
}

.epop-status-connected,
.epop-status-published,
.epop-status-live {
	background: #ecfdf3;
	border-color: #abefc6;
	color: #067647;
}

.epop-status-disconnected,
.epop-status-rejected {
	background: #fef3f2;
	border-color: #fecdca;
	color: #b42318;
}

.epop-status-pending_review,
.epop-status-upcoming {
	background: #fffaeb;
	border-color: #fedf89;
	color: #b54708;
}

.epop-mp-panel {
	align-items: center;
	display: grid;
	gap: 26px;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
	padding: 28px;
}

.epop-mp-panel h2 {
	font-size: 28px;
	margin: 14px 0 8px;
}

.epop-mp-panel p {
	color: var(--epop-muted);
	line-height: 1.55;
	margin: 0 0 12px;
}

.epop-mp-action {
	background: #f8fafc;
	border: 1px solid var(--epop-line);
	border-radius: 8px;
	padding: 18px;
}

@media (max-width: 860px) {
	.epop-portal {
		display: block;
	}

	.epop-sidebar {
		min-height: 0;
		padding: 14px;
	}

	.epop-brand {
		margin-bottom: 12px;
		padding-bottom: 12px;
	}

	.epop-sidebar nav {
		display: flex;
		overflow-x: auto;
	}

	.epop-logout {
		margin-top: 10px;
	}

	.epop-content {
		padding: 20px;
	}

	.epop-page-head,
	.epop-ticket-head,
	.epop-mp-panel {
		align-items: stretch;
		display: grid;
		grid-template-columns: 1fr;
	}

	.epop-form,
	.epop-ticket-row,
	.epop-row {
		grid-template-columns: 1fr;
	}
}
