:root {
	--jp-ink: #12263d;
	--jp-muted: #52667b;
	--jp-line: #d9dee3;
	--jp-paper: #f7f5ef;
	--jp-accent: #00a983;
}

/* Keep the wpDiscuz accent rule inside the feedback surface. */
.juicepage-feedback-panel,
.juicepage-feedback-panel #wpdcom,
.juicepage-feedback-panel #wpdcom .wpd-thread-head,
.juicepage-feedback-panel #wpdcom .wpd-thread-filter {
	box-sizing: border-box;
	max-width: 100%;
	overflow: hidden;
}

.juicepage-feedback-panel #wpdcom [style*="background-color"] {
	max-width: 100% !important;
}

.juicepage-feedback-panel { width: min(100%, 960px) !important; margin-left: auto !important; margin-right: auto !important; }

/* Dashboard: listing-style cards with a clearly subordinate editor. */
body:has(.juicepage-author-dashboard) .entry-header .entry-title {
	display: none;
}

.juicepage-author-dashboard {
	max-width: 1080px;
	margin-inline: auto;
}

.juicepage-author-dashboard__header {
	margin-bottom: clamp(2rem, 5vw, 4rem);
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--jp-line);
}

.juicepage-dashboard-eyebrow {
	margin: 0 0 .5rem;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--jp-muted);
}

.juicepage-author-dashboard__header h2 {
	margin: 0 0 .65rem;
	font-size: clamp(2.25rem, 6vw, 4.5rem);
	line-height: 1;
}

.juicepage-author-dashboard__header p:last-child {
	max-width: 42rem;
	color: var(--jp-muted);
}

.juicepage-author-dashboard__item {
	margin-bottom: 3rem;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	background: var(--jp-paper);
	border: 1px solid var(--jp-line);
}

.juicepage-feedback-workspace {
	margin: 0 0 2.5rem;
	padding: clamp(1.25rem, 4vw, 2rem);
	background: #fff;
	border: 1px solid var(--jp-line);
	border-top: 4px solid var(--jp-accent);
}

.juicepage-feedback-workspace h3 {
	margin: 0 0 .75rem;
	font-size: clamp(1.5rem, 4vw, 2rem);
}

.juicepage-assignment {
	margin-top: 1rem;
	padding: 1rem;
	background: var(--jp-paper);
}

.juicepage-submission-header {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.juicepage-submission-cover img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}

.juicepage-submission-header h3 {
	margin: .6rem 0 .5rem;
	font-size: clamp(1.6rem, 4vw, 2.5rem);
	line-height: 1.1;
}

.juicepage-status {
	display: inline-flex;
	padding: .3rem .6rem;
	border-radius: 999px;
	background: #e7ebee;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .04em;
}

.juicepage-status--publish { background: #dcefe8; color: #116449; }
.juicepage-status--pending { background: #f5e8c8; color: #72530a; }

.juicepage-submission-stats {
	display: flex;
	gap: 1rem;
	margin: 1.5rem 0;
	flex-wrap: wrap;
}

.juicepage-submission-stats span {
	padding: .75rem 1rem;
	background: #fff;
	border: 1px solid var(--jp-line);
}

.juicepage-feedback-progress {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	background: #fff;
	border-left: 4px solid var(--jp-accent);
}

.juicepage-submission-editor {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--jp-line);
}

.juicepage-submission-editor h4 {
	margin: 0 0 1.25rem;
	font-size: 1.35rem;
}

.juicepage-submission-editor input[type="text"],
.juicepage-submission-editor textarea {
	width: 100%;
	box-sizing: border-box;
	margin-top: .35rem;
}

.juicepage-editor-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 700px) {
	.juicepage-submission-header {
		grid-template-columns: 82px minmax(0, 1fr);
		gap: 1rem;
	}

	.juicepage-author-dashboard__item {
		margin-inline: -1rem;
		border-right: 0;
		border-left: 0;
	}

	.juicepage-editor-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.juicepage-submission-editor label,
	.juicepage-submission-editor input,
	.juicepage-submission-editor textarea {
		font-size: 1rem;
	}

	.juicepage-feedback-panel #wpdcom {
		min-width: 0;
		width: 100% !important;
	}
	.juicepage-feedback-panel { margin-left: auto !important; margin-right: auto !important; }
}
