/* Poor Man's Cron — Trapper Keeper era, clean layout */

:root {
	--pmc-bg: #1a0a2e;
	--pmc-pink: #ff6ec7;
	--pmc-purple: #b967ff;
	--pmc-cyan: #7df9ff;
	--pmc-yellow: #ffe66d;
	--pmc-orange: #ff9f43;
	--pmc-teal: #2dd4bf;
	--pmc-win-gray: #c0c0c0;
	--pmc-win-gray-dark: #808080;
	--pmc-win-gray-light: #dfdfdf;
	--pmc-win-white: #ffffff;
	--pmc-titlebar: #5b21b6;
	--pmc-text: #1a1025;
	--pmc-text-muted: #4a3f55;
	--pmc-text-on-dark: #f8f4ff;
	--pmc-text-dim: #c4b8d8;
	--pmc-font-ui: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
	--pmc-font-logo: "Orbitron", Tahoma, sans-serif;
	--pmc-app-width: 480px;
	--pmc-content-width: 720px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--pmc-font-ui);
	font-size: 15px;
	line-height: 1.55;
	color: var(--pmc-text);
	background: var(--pmc-bg);
}

/* ---- Trapper Keeper background ---- */
.pmc-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: #12061f;
}

.pmc-bg__split {
	position: absolute;
	inset: -10%;
}

.pmc-bg__split--left {
	background:
		linear-gradient(145deg, #ff2d95 0%, #9b30ff 45%, transparent 70%);
	clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%);
	opacity: 0.85;
}

.pmc-bg__split--right {
	background:
		linear-gradient(215deg, #00e5ff 0%, #3b82f6 40%, transparent 72%);
	clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%);
	opacity: 0.8;
}

.pmc-bg__stripes {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		-55deg,
		transparent,
		transparent 28px,
		rgba(255, 255, 255, 0.04) 28px,
		rgba(255, 255, 255, 0.04) 56px
	);
}

.pmc-bg__squiggles {
	position: absolute;
	inset: -10%;
	background-image: url("../img/trapper-pattern.svg");
	background-size: 480px 480px;
	background-position: center;
	opacity: 0.7;
	mix-blend-mode: overlay;
	animation: pmc-bg-drift 90s linear infinite;
}

.pmc-bg__glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 50% at 50% 20%, rgba(255, 230, 109, 0.18), transparent 60%),
		radial-gradient(ellipse 50% 40% at 80% 80%, rgba(255, 45, 149, 0.2), transparent 55%),
		radial-gradient(ellipse 40% 35% at 10% 70%, rgba(0, 229, 255, 0.15), transparent 50%);
	pointer-events: none;
}

@keyframes pmc-bg-drift {
	to { background-position: 480px 480px; }
}

/* ---- Layout ---- */
.pmc-site {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 20px 48px;
	min-height: 100vh;
}

/* ---- Hero / header ---- */
.pmc-header {
	width: 100%;
	max-width: var(--pmc-content-width);
	margin-bottom: 24px;
	text-align: center;
}

.pmc-logo {
	margin: 0 0 16px;
	font-family: var(--pmc-font-logo);
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.pmc-logo-small {
	display: block;
	font-size: clamp(1rem, 3vw, 1.35rem);
	font-weight: 500;
	color: var(--pmc-cyan);
	letter-spacing: 0.35em;
	margin-bottom: 0.35em;
}

.pmc-logo-big {
	display: block;
	font-size: clamp(3.25rem, 12vw, 5.5rem);
	font-weight: 900;
	color: var(--pmc-win-white);
	text-shadow:
		0 0 24px rgba(125, 249, 255, 0.35),
		2px 2px 0 var(--pmc-purple);
}

/* ---- Dancing baby (peak 90s) ---- */
.pmc-dancing-baby {
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 65;
	height: clamp(288px, 52vw, 330px);
	width: auto;
	pointer-events: none;
	user-select: none;
	filter: drop-shadow(0 2px 8px rgba(91, 33, 182, 0.45));
}

/* ---- Draggable app shell ---- */
.pmc-app-shell {
	position: fixed;
	z-index: 50;
	width: max-content;
	max-width: calc(100vw - 20px);
}

/* ---- App window ---- */
.pmc-window {
	width: var(--pmc-app-width);
	max-width: 100%;
	background: var(--pmc-win-gray);
	border: 2px solid;
	border-color: var(--pmc-win-gray-light) var(--pmc-win-gray-dark) var(--pmc-win-gray-dark) var(--pmc-win-gray-light);
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.45),
		0 0 0 4px rgba(255, 110, 199, 0.15);
}

.pmc-window-titlebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 4px 4px 10px;
	background: linear-gradient(90deg, var(--pmc-titlebar), #7c3aed);
	color: var(--pmc-win-white);
	font-size: 13px;
	font-weight: 700;
	cursor: move;
	user-select: none;
	touch-action: none;
}

.pmc-window-titlebar.is-dragging {
	cursor: grabbing;
}

.pmc-window-titlebar-text {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	pointer-events: none;
}

.pmc-win-controls {
	display: flex;
	flex-shrink: 0;
	gap: 2px;
}

.pmc-win-ctrl {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 14px;
	padding: 0;
	border: 1px solid;
	border-color: var(--pmc-win-gray-light) var(--pmc-win-gray-dark) var(--pmc-win-gray-dark) var(--pmc-win-gray-light);
	background: var(--pmc-win-gray);
	color: var(--pmc-text);
	font-family: var(--pmc-font-ui);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.pmc-win-ctrl:hover {
	background: var(--pmc-win-gray-light);
}

.pmc-win-ctrl:active {
	border-color: var(--pmc-win-gray-dark) var(--pmc-win-gray-light) var(--pmc-win-gray-light) var(--pmc-win-gray-dark);
}

.pmc-win-ctrl--close {
	font-size: 12px;
}

/* Window shell states */
.pmc-app-shell {
	transition:
		left 0.28s ease,
		top 0.28s ease,
		right 0.28s ease,
		bottom 0.28s ease,
		width 0.28s ease,
		height 0.28s ease,
		transform 0.28s ease;
}

.pmc-app-shell.is-dragging {
	transition: none !important;
}

/* Minimized — title bar only, bottom-right */
.pmc-app-shell.is-minimized {
	top: auto !important;
	bottom: 12px;
	left: auto !important;
	right: 12px !important;
	width: auto !important;
	max-width: min(280px, calc(100vw - 24px));
	transform: none !important;
	z-index: 60;
}

.pmc-app-shell.is-minimized .pmc-window {
	width: 100%;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.pmc-app-shell.is-minimized .pmc-window-body {
	display: none;
}

.pmc-app-shell.is-minimized .pmc-window-titlebar {
	cursor: pointer;
	touch-action: manipulation;
}

/* Maximized — full screen */
.pmc-app-shell.is-maximized {
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	padding: 8px;
	transform: none !important;
}

.pmc-app-shell.is-maximized .pmc-window {
	width: 100% !important;
	max-width: none;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.pmc-app-shell.is-maximized .pmc-window-body {
	flex: 1;
	overflow: auto;
	min-height: 0;
}

.pmc-app-shell.is-maximized .pmc-log-wrap {
	max-height: none;
	flex: 1;
}

.pmc-window-body {
	padding: 16px;
}

/* Tabs */
.pmc-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--pmc-win-gray-dark);
}

.pmc-tab {
	flex: 1;
	padding: 8px 12px;
	border: 2px solid;
	border-color: var(--pmc-win-gray-light) var(--pmc-win-gray-dark) var(--pmc-win-gray-dark) var(--pmc-win-gray-light);
	background: var(--pmc-win-gray);
	font-family: var(--pmc-font-ui);
	font-size: 13px;
	font-weight: 600;
	color: var(--pmc-text);
	cursor: pointer;
}

.pmc-tab:hover {
	background: var(--pmc-win-gray-light);
}

.pmc-tab.is-active {
	border-color: var(--pmc-win-gray-dark) var(--pmc-win-gray-light) var(--pmc-win-gray-light) var(--pmc-win-gray-dark);
	background: var(--pmc-win-white);
	box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.12);
}

.pmc-tab:focus-visible {
	outline: 2px solid var(--pmc-titlebar);
	outline-offset: 2px;
}

.pmc-panel {
	display: none;
}

.pmc-panel.is-active {
	display: block;
}

/* Form */
.pmc-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pmc-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.pmc-label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 600;
}

.pmc-input,
.pmc-select {
	display: block;
	width: 100%;
	padding: 7px 8px;
	border: 2px inset var(--pmc-win-gray-dark);
	background: var(--pmc-win-white);
	font-family: var(--pmc-font-ui);
	font-size: 14px;
	color: var(--pmc-text);
}

.pmc-input:focus,
.pmc-select:focus {
	outline: 2px solid var(--pmc-titlebar);
	outline-offset: 0;
}

.pmc-input--mono {
	font-family: "Courier New", Courier, monospace;
	font-size: 13px;
}

.pmc-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--pmc-text-muted);
}

.pmc-btn {
	align-self: flex-start;
	padding: 8px 20px;
	border: 2px solid;
	border-color: var(--pmc-win-gray-light) var(--pmc-win-gray-dark) var(--pmc-win-gray-dark) var(--pmc-win-gray-light);
	background: var(--pmc-win-gray);
	font-family: var(--pmc-font-ui);
	font-size: 13px;
	font-weight: 700;
	color: var(--pmc-text);
	cursor: pointer;
}

.pmc-btn:hover {
	background: var(--pmc-win-gray-light);
}

.pmc-btn:active {
	border-color: var(--pmc-win-gray-dark) var(--pmc-win-gray-light) var(--pmc-win-gray-light) var(--pmc-win-gray-dark);
	transform: translate(1px, 1px);
}

.pmc-btn--primary {
	background: linear-gradient(180deg, #fdf2ff 0%, #e9d5ff 100%);
}

.pmc-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.pmc-form-actions--right {
	justify-content: flex-end;
}

.pmc-form-actions .pmc-btn {
	align-self: auto;
}

.pmc-notes {
	margin: 0;
	padding: 0 0 0 18px;
	font-size: 13px;
	color: var(--pmc-text-muted);
	line-height: 1.55;
}

.pmc-help-intro {
	padding: 16px 20px;
	background: #f3e8ff;
	border-bottom: 2px solid #e9d5ff;
}

.pmc-help-intro .pmc-notes {
	color: var(--pmc-text);
}

/* Dashboard & success views */
.pmc-view-alt {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pmc-view-alt[hidden] {
	display: none !important;
}

#pmc-view-forms[hidden] {
	display: none !important;
}

.pmc-alert {
	margin: 0;
	padding: 10px 12px;
	font-size: 13px;
	border: 2px inset var(--pmc-win-gray-dark);
}

.pmc-alert--success {
	background: #e8fff0;
	color: #14532d;
}

.pmc-btn--small {
	padding: 4px 12px;
	font-size: 12px;
	margin-top: 6px;
}

.pmc-btn--danger {
	color: #7f1d1d;
}

.pmc-form-actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pmc-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	cursor: pointer;
}

.pmc-dash-meta {
	padding: 10px 12px;
	background: var(--pmc-win-white);
	border: 2px inset var(--pmc-win-gray-dark);
	font-size: 12px;
}

.pmc-dash-meta p {
	margin: 0 0 6px;
}

.pmc-dash-meta p:last-child {
	margin-bottom: 0;
}

.pmc-log-title {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 700;
}

.pmc-log-wrap {
	overflow-x: auto;
	max-height: 220px;
	border: 2px inset var(--pmc-win-gray-dark);
	background: var(--pmc-win-white);
}

.pmc-log {
	width: 100%;
	border-collapse: collapse;
	font-size: 11px;
}

.pmc-log th,
.pmc-log td {
	padding: 6px 8px;
	text-align: left;
	border-bottom: 1px solid #ddd;
	vertical-align: top;
}

.pmc-log th {
	background: #eee;
	font-weight: 700;
	position: sticky;
	top: 0;
}

.pmc-log--ok td:nth-child(2) {
	color: #15803d;
	font-weight: 700;
}

.pmc-log--fail td:nth-child(2) {
	color: #b91c1c;
	font-weight: 700;
}

.pmc-log td:last-child {
	max-width: 160px;
	word-break: break-word;
}

/* ---- Boot screen ---- */
.pmc-boot {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #12061f;
	color: var(--pmc-text-on-dark);
	font-family: var(--pmc-font-ui);
	overflow: hidden;
}

.pmc-boot-bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(145deg, rgba(255, 45, 149, 0.35) 0%, transparent 45%),
		linear-gradient(215deg, rgba(0, 229, 255, 0.3) 0%, transparent 50%),
		linear-gradient(160deg, #2d1b4e 0%, #12061f 55%, #1a0a2e 100%);
}

.pmc-boot-inner {
	position: relative;
	width: min(440px, 92vw);
	padding: 32px 28px 28px;
	text-align: center;
	background: var(--pmc-win-gray);
	border: 2px solid;
	border-color: var(--pmc-win-gray-light) var(--pmc-win-gray-dark) var(--pmc-win-gray-dark) var(--pmc-win-gray-light);
	box-shadow:
		0 16px 48px rgba(0, 0, 0, 0.5),
		0 0 0 4px rgba(255, 110, 199, 0.12);
}

.pmc-boot-eyebrow {
	margin: 0 0 8px;
	font-family: var(--pmc-font-logo);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--pmc-purple);
}

.pmc-boot-title {
	margin: 0 0 6px;
	font-family: var(--pmc-font-logo);
	font-size: 1.65rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pmc-titlebar);
	text-shadow: 0 0 20px rgba(185, 103, 255, 0.35);
}

.pmc-boot-version {
	margin: 0 0 24px;
	font-size: 12px;
	color: var(--pmc-text-muted);
}

.pmc-boot-progress {
	height: 22px;
	padding: 3px;
	border: 2px solid;
	border-color: var(--pmc-win-gray-dark) var(--pmc-win-gray-light) var(--pmc-win-gray-light) var(--pmc-win-gray-dark);
	background: var(--pmc-win-white);
	overflow: hidden;
}

.pmc-boot-progress-fill {
	height: 100%;
	width: 0;
	background: linear-gradient(
		90deg,
		var(--pmc-pink) 0%,
		var(--pmc-purple) 35%,
		var(--pmc-cyan) 70%,
		var(--pmc-pink) 100%
	);
	background-size: 200% 100%;
	animation: pmc-boot-bar-shimmer 1.4s linear infinite;
	transition: width 0.2s ease-out;
}

@keyframes pmc-boot-bar-shimmer {
	to { background-position: 200% 0; }
}

.pmc-boot-status {
	margin: 14px 0 0;
	font-size: 13px;
	min-height: 1.4em;
	color: var(--pmc-text);
}

.pmc-boot--hide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0.45s ease;
	pointer-events: none;
}

body.pmc-booting {
	overflow: hidden;
}

body.pmc-ready .pmc-boot {
	display: none;
}

/* ---- CRT viewport & overlay ---- */
.pmc-crt-viewport {
	position: relative;
	min-height: 100vh;
	filter: contrast(1.1) saturate(1.08) brightness(1.03);
	transform: translateZ(0);
}

.pmc-crt {
	position: fixed;
	inset: 0;
	z-index: 9000;
	pointer-events: none;
	overflow: hidden;
}

.pmc-crt__scanlines {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.14) 0,
		rgba(0, 0, 0, 0.14) 1px,
		transparent 1px,
		transparent 3px
	);
	opacity: 0.45;
}

.pmc-crt__vignette {
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.55);
}

.pmc-crt__glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 20, 40, 0.25) 100%);
}

.pmc-crt__noise {
	position: absolute;
	inset: -50%;
	opacity: 0.04;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 180px 180px;
	animation: pmc-crt-flicker 0.12s steps(2) infinite;
}

@keyframes pmc-crt-flicker {
	50% { opacity: 0.035; }
}

/* ---- Help lightbox ---- */
.pmc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.pmc-lightbox[hidden] {
	display: none !important;
}

.pmc-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	animation: pmc-fade-in 0.3s ease forwards;
}

.pmc-lightbox__dialog {
	position: relative;
	width: min(720px, 100%);
	max-height: min(85vh, 720px);
	display: flex;
	flex-direction: column;
	background: var(--pmc-win-gray);
	border: 2px solid;
	border-color: var(--pmc-win-gray-light) var(--pmc-win-gray-dark) var(--pmc-win-gray-dark) var(--pmc-win-gray-light);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
	opacity: 0;
	transform: scale(0.92) translateY(12px);
	animation: pmc-lightbox-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

@keyframes pmc-fade-in {
	to { opacity: 1; }
}

@keyframes pmc-lightbox-in {
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.pmc-lightbox__titlebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 4px 4px 10px;
	background: linear-gradient(90deg, var(--pmc-titlebar), #7c3aed);
	color: var(--pmc-win-white);
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

.pmc-lightbox__body {
	overflow: auto;
	padding: 0;
	background: var(--pmc-win-white);
	max-height: calc(85vh - 40px);
}

.pmc-lightbox .pmc-seo {
	margin: 0;
	max-width: none;
	border: none;
	box-shadow: none;
	background: transparent;
}

.pmc-lightbox .pmc-seo::before {
	display: none;
}

/* ---- SEO content (lightbox) ---- */
.pmc-seo {
	width: 100%;
	max-width: var(--pmc-content-width);
	margin-bottom: 32px;
	position: relative;
	background: rgba(255, 255, 255, 0.96);
	border: 3px solid var(--pmc-win-white);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.pmc-seo::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 8px;
	background: linear-gradient(
		180deg,
		var(--pmc-pink),
		var(--pmc-purple),
		var(--pmc-cyan),
		var(--pmc-yellow)
	);
}

.pmc-seo-header {
	padding: 24px 28px 0;
}

.pmc-seo-title {
	margin: 0;
	font-family: var(--pmc-font-ui);
	font-size: clamp(1.2rem, 3vw, 1.5rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--pmc-titlebar);
}

.pmc-seo-body {
	padding: 16px 28px 28px;
	color: var(--pmc-text);
}

.pmc-seo-body > *:first-child {
	margin-top: 0;
}

.pmc-seo-body h3 {
	margin: 1.75em 0 0.6em;
	font-family: var(--pmc-font-ui);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--pmc-titlebar);
}

.pmc-seo-body p,
.pmc-seo-body li {
	color: var(--pmc-text-muted);
}

.pmc-seo-body strong {
	color: var(--pmc-text);
}

.pmc-seo-body code {
	padding: 1px 5px;
	background: #f3e8ff;
	border-radius: 3px;
	font-size: 0.9em;
	color: #6b21a8;
}

.pmc-seo-body ul,
.pmc-seo-body ol {
	margin: 0.5em 0 1em;
	padding-left: 1.4em;
}

.pmc-seo-body li {
	margin-bottom: 0.4em;
}

.pmc-seo--custom .pmc-seo-body {
	padding-top: 24px;
}

/* FAQ */
.pmc-faq {
	margin-top: 1em;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pmc-faq-item {
	border: 2px solid #e9d5ff;
	background: #faf5ff;
}

.pmc-faq-item summary {
	padding: 12px 14px;
	font-weight: 700;
	font-size: 14px;
	color: var(--pmc-text);
	cursor: pointer;
	list-style: none;
}

.pmc-faq-item summary::-webkit-details-marker {
	display: none;
}

.pmc-faq-item summary::before {
	content: "▸ ";
	color: var(--pmc-purple);
}

.pmc-faq-item[open] summary::before {
	content: "▾ ";
}

.pmc-faq-item p {
	margin: 0;
	padding: 0 14px 14px;
	font-size: 14px;
}

/* Footer */
.pmc-footer {
	position: relative;
	z-index: 1;
	padding: 12px 20px 24px;
	text-align: center;
}

.pmc-footer p {
	margin: 0;
	font-size: 11px;
	color: var(--pmc-text-dim);
}

body.pmc-maximized-open {
	overflow: hidden;
}

body.pmc-lightbox-open {
	overflow: hidden;
}

/* Toast */
.pmc-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(12px);
	z-index: 9500;
	max-width: 90vw;
	padding: 10px 16px;
	background: var(--pmc-win-gray);
	border: 2px solid;
	border-color: var(--pmc-win-gray-light) var(--pmc-win-gray-dark) var(--pmc-win-gray-dark) var(--pmc-win-gray-light);
	font-size: 13px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s, transform 0.25s;
}

.pmc-toast--visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px), (hover: none) {
	.pmc-win-ctrl {
		width: 28px;
		height: 24px;
		font-size: 12px;
	}

	.pmc-app-shell:not(.is-minimized):not(.is-maximized) {
		left: 50% !important;
		right: auto !important;
		transform: translateX(-50%);
		width: calc(100vw - 20px) !important;
		max-width: var(--pmc-app-width);
	}

	.pmc-app-shell.is-minimized {
		right: 10px !important;
		bottom: 10px;
		max-width: calc(100vw - 20px);
	}

	.pmc-app-shell.is-maximized {
		padding: 4px;
		transform: none !important;
	}

	.pmc-field-row {
		grid-template-columns: 1fr;
	}

	.pmc-form-actions--right {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.pmc-form-actions--right .pmc-btn {
		width: 100%;
		text-align: center;
	}

	.pmc-lightbox {
		padding: 10px;
	}

	.pmc-lightbox__dialog {
		max-height: 92vh;
	}
}

@media (max-width: 480px) {
	.pmc-field-row {
		grid-template-columns: 1fr;
	}

	.pmc-seo-header,
	.pmc-seo-body {
		padding-left: 18px;
		padding-right: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pmc-dancing-baby {
		display: none;
	}

	.pmc-bg__squiggles {
		animation: none;
	}

	.pmc-toast {
		transition: none;
	}

	.pmc-app-shell {
		transition: none;
	}

	.pmc-boot-progress-fill {
		transition: none;
	}

	.pmc-lightbox__backdrop,
	.pmc-lightbox__dialog {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.pmc-crt__noise {
		animation: none;
	}
}

::selection {
	background: var(--pmc-pink);
	color: var(--pmc-win-white);
}
