:root {
	--epw-bg: #f4efe6;
	--epw-surface: #fffdfa;
	--epw-surface-soft: #f8f5ef;
	--epw-ink: #16303a;
	--epw-muted: #60727d;
	--epw-line: #d8e0e5;
	--epw-teal: #0f5e5f;
	--epw-teal-deep: #12424c;
	--epw-teal-soft: #4f8f90;
	--epw-orange: #f39232;
	--epw-orange-deep: #db6f1d;
	--epw-preview: #5d9290;
}

.epw-body,
.epw-shortcode-wrap,
.epw-wall-grid {
	font-family: "Segoe UI", Tahoma, sans-serif;
}

.epw-body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(circle at top left, rgba(243, 146, 50, 0.16), transparent 22%),
		linear-gradient(180deg, var(--epw-bg) 0%, #faf8f4 100%);
	color: var(--epw-ink);
}

.epw-shell,
.epw-shortcode-wrap {
	max-width: 920px;
	margin: 0 auto;
	padding: 18px 14px 28px;
}

.epw-form-wrap,
.epw-shortcode-wrap {
	background: transparent;
}

.epw-simple-header {
	margin-bottom: 14px;
}

.epw-simple-header h1 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.4rem, 9vw, 4.5rem);
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: var(--epw-teal-deep);
}

.epw-upload-form {
	display: grid;
	gap: 14px;
}

.epw-studio {
	display: grid;
	gap: 14px;
}

.epw-upload-panel,
.epw-preview-panel,
.epw-submit-card {
	border-radius: 24px;
	box-shadow: 0 12px 30px rgba(18, 45, 55, 0.06);
}

.epw-upload-panel {
	display: grid;
	gap: 14px;
	padding: 16px;
	background: var(--epw-surface);
	border: 1px solid rgba(15, 94, 95, 0.08);
}

.epw-field-group {
	display: grid;
	gap: 8px;
}

.epw-panel-head {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.epw-field-label {
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--epw-ink);
}

.epw-panel-kicker {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 999px;
	background: #e9eff4;
	color: #48606f;
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.epw-text-header {
	justify-content: space-between;
}

.epw-char-count {
	margin-left: auto;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--epw-muted);
}

.epw-file-drop {
	display: grid;
	gap: 7px;
	padding: 16px;
	border: 1px dashed #ccd6dd;
	border-radius: 18px;
	background: var(--epw-surface-soft);
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.epw-file-drop:hover,
.epw-file-drop.epw-has-file {
	border-color: var(--epw-teal-soft);
	background: #f1f7f7;
	transform: translateY(-1px);
}

.epw-file-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	padding: 6px 10px;
	border-radius: 999px;
	background: #f8e1c5;
	color: #8b4f0d;
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.epw-file-drop strong {
	font-size: 1.02rem;
	line-height: 1.3;
	color: var(--epw-ink);
}

.epw-file-meta,
.epw-file-hint,
.epw-inline-help,
.epw-help,
.epw-preview-points {
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--epw-muted);
}

.epw-native-file,
.epw-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.epw-upload-form textarea {
	width: 100%;
	min-height: 120px;
	box-sizing: border-box;
	padding: 14px;
	border: 1px solid #d4dde3;
	border-radius: 18px;
	background: #fff;
	font: inherit;
	line-height: 1.5;
	color: var(--epw-ink);
	resize: vertical;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.epw-upload-form input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	padding: 14px;
	border: 1px solid #d4dde3;
	border-radius: 18px;
	background: #fff;
	font: inherit;
	line-height: 1.4;
	color: var(--epw-ink);
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.epw-upload-form input[type="text"]:focus,
.epw-upload-form textarea:focus,
.epw-file-drop:focus-within {
	outline: none;
	border-color: var(--epw-teal-soft);
	box-shadow: 0 0 0 4px rgba(79, 143, 144, 0.12);
}

.epw-preview-panel {
	padding: 16px;
	background: linear-gradient(180deg, var(--epw-teal-deep) 0%, var(--epw-teal) 100%);
	color: #fff;
}

.epw-preview-head {
	margin-bottom: 12px;
}

.epw-preview-kicker {
	margin: 0 0 4px;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: rgba(255, 255, 255, 0.76);
}

.epw-preview-head h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.7rem, 7vw, 2.5rem);
	line-height: 0.95;
	letter-spacing: -0.03em;
}

.epw-preview-card {
	padding: 12px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.epw-preview-media {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 4 / 5;
	background: var(--epw-preview);
}

.epw-preview-media img {
	display: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.epw-preview-media.epw-has-image img {
	display: block;
}

.epw-preview-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 16px;
	text-align: center;
}

.epw-preview-placeholder span {
	font-size: 0.88rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.82);
}

.epw-preview-content {
	padding: 10px 4px 0;
}

.epw-preview-event {
	margin: 0 0 8px;
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: rgba(255, 255, 255, 0.7);
}

.epw-preview-text {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.15rem;
	line-height: 1.35;
	color: #fff;
}

.epw-preview-name {
	margin: 0 0 8px;
	font-size: 0.88rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.88);
}

.epw-preview-points {
	margin: 12px 0 0;
	padding-left: 18px;
	color: rgba(255, 255, 255, 0.8);
}

.epw-preview-points li + li {
	margin-top: 6px;
}

.epw-submit-card {
	display: grid;
	gap: 12px;
	padding: 16px;
	background: linear-gradient(180deg, #2b343b 0%, #394147 100%);
	color: #fff;
}

.epw-submit-title {
	margin: 0 0 4px;
	font-size: 0.95rem;
	font-weight: 800;
}

.epw-submit-copy .epw-help {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
}

.epw-submit {
	width: 100%;
	border: 0;
	border-radius: 999px;
	padding: 15px 18px;
	background: linear-gradient(180deg, var(--epw-orange) 0%, var(--epw-orange-deep) 100%);
	color: #1f252a;
	font-size: 0.98rem;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(219, 111, 29, 0.24);
}

.epw-submit:hover,
.epw-submit:focus {
	filter: brightness(1.02);
}

.epw-submit-secondary {
	background: linear-gradient(180deg, #d7dde2 0%, #bcc7cf 100%);
	color: #1f252a;
	box-shadow: none;
}

.epw-notice {
	margin-bottom: 14px;
	padding: 13px 14px;
	border-radius: 16px;
	font-size: 0.9rem;
	font-weight: 700;
	border: 1px solid transparent;
}

.epw-notice-success {
	background: #def7ec;
	color: #03543f;
	border-color: rgba(3, 84, 63, 0.12);
}

.epw-notice-error {
	background: #fde8e8;
	color: #9b1c1c;
	border-color: rgba(155, 28, 28, 0.1);
}

.epw-wall-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	align-items: start;
	max-width: 1240px;
	margin: 0 auto;
}

.epw-wall-card {
	background: linear-gradient(180deg, #ffffff 0%, #f7f4ee 100%);
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
}

.epw-wall-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: contain;
	background: #f4efe6;
}

.epw-wall-copy {
	padding: 16px;
}

.epw-wall-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 12px;
	margin-bottom: 10px;
}

.epw-wall-name {
	font-size: 0.96rem;
	font-weight: 800;
	color: var(--epw-teal-deep);
}

.epw-wall-date {
	font-size: 0.8rem;
	color: var(--epw-muted);
}

.epw-wall-actions {
	margin-top: 14px;
}

.epw-like-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid #d8e0e5;
	border-radius: 999px;
	background: #fff;
	color: var(--epw-teal-deep);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.epw-like-button:hover,
.epw-like-button:focus {
	transform: translateY(-1px);
	border-color: var(--epw-teal-soft);
	box-shadow: 0 8px 18px rgba(18, 66, 76, 0.08);
}

.epw-like-button.is-liked {
	background: rgba(243, 146, 50, 0.14);
	border-color: rgba(243, 146, 50, 0.42);
	color: #8c4b0d;
}

.epw-like-button:disabled {
	opacity: 0.72;
	cursor: wait;
}

.epw-like-icon {
	font-size: 1rem;
	line-height: 1;
}

.epw-like-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: rgba(18, 66, 76, 0.08);
	color: inherit;
	font-size: 0.82rem;
}

.epw-moderation-wrap {
	background: transparent;
}

.epw-moderation-toolbar {
	display: grid;
	gap: 12px;
}

.epw-moderation-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.epw-moderation-badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(18, 66, 76, 0.08);
	color: var(--epw-teal-deep);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.epw-moderation-badge-live {
	background: rgba(243, 146, 50, 0.18);
	color: #8c4b0d;
}

.epw-moderation-badge-hidden {
	display: none;
}

.epw-moderation-badge-visible {
	display: inline-flex;
	background: #def7ec;
	color: #03543f;
}

.epw-moderation-list {
	display: grid;
	gap: 14px;
}

.epw-moderation-card {
	display: grid;
	gap: 12px;
	padding: 14px;
	border-radius: 24px;
	background: var(--epw-surface);
	border: 1px solid rgba(15, 94, 95, 0.08);
	box-shadow: 0 12px 30px rgba(18, 45, 55, 0.06);
}

.epw-moderation-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
	border-radius: 18px;
	background: #f4efe6;
}

.epw-moderation-name {
	margin: 6px 0 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--epw-teal-deep);
}

.epw-moderation-message {
	margin: 0;
	font-size: 0.96rem;
	line-height: 1.5;
	color: var(--epw-ink);
}

.epw-moderation-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 14px;
}

.epw-moderation-actions form {
	margin: 0;
}

.epw-moderation-empty {
	box-shadow: 0 12px 30px rgba(18, 45, 55, 0.06);
}

@media (min-width: 900px) {
	.epw-shell,
	.epw-shortcode-wrap {
		padding: 28px;
	}

	.epw-studio {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
		align-items: start;
	}

	.epw-submit-card {
		grid-template-columns: minmax(0, 1fr) 280px;
		align-items: center;
	}

	.epw-moderation-card {
		grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
		align-items: start;
	}

	.epw-wall-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 600px) and (max-width: 899px) {
	.epw-wall-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 899px) {
	.epw-moderation-sound-toggle {
		max-width: none;
	}
}
