.ebcpm-history-artwork {
	margin-top: 18px;
	padding: 16px;
	border: 1px solid #d5d9de;
	border-left: 4px solid #1473a5;
	background: #fff;
}

.ebcpm-history-artwork__title {
	margin-bottom: 12px;
	font-weight: 700;
}

.ebcpm-history-artwork__item + .ebcpm-history-artwork__item {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e5e7eb;
}

.ebcpm-history-artwork__item strong {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
}

.ebcpm-history-artwork__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ebcpm-history-artwork__button {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid #1473a5;
	border-radius: 4px;
	color: #fff !important;
	background: #1473a5;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}

.ebcpm-history-artwork__button.is-submitted {
	color: #1f2937 !important;
	border-color: #9ca3af;
	background: #fff;
}

.ebcpm-artwork-page {
	margin: 0;
	color: #1d2327;
	background: #f3f4f6;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 15px;
	line-height: 1.6;
}

.ebcpm-artwork-page * {
	box-sizing: border-box;
}

.ebcpm-artwork-header {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 72px;
	padding: 12px max(20px, calc((100vw - 1240px) / 2));
	color: #fff;
	background: #20242a;
}

.ebcpm-artwork-header a {
	color: #fff;
}

.ebcpm-artwork-header div {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	align-items: baseline;
}

.ebcpm-artwork-header strong {
	font-size: 18px;
}

.ebcpm-artwork-header span {
	color: #cbd5e1;
	font-size: 13px;
}

.ebcpm-artwork-main {
	width: min(1240px, calc(100% - 32px));
	margin: 0 auto;
	padding: 28px 0 48px;
}

.ebcpm-artwork-notice {
	margin-bottom: 18px;
	padding: 13px 16px;
	border-left: 4px solid #078552;
	background: #ecf8f2;
	font-weight: 700;
}

.ebcpm-artwork-summary {
	display: grid;
	grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(130px, 1fr));
	border: 1px solid #cfd4da;
	background: #fff;
}

.ebcpm-artwork-summary > div {
	min-width: 0;
	padding: 13px 16px;
}

.ebcpm-artwork-summary > div + div {
	border-left: 1px solid #e1e4e8;
}

.ebcpm-artwork-summary span,
.ebcpm-artwork-summary strong {
	display: block;
}

.ebcpm-artwork-summary span {
	margin-bottom: 2px;
	color: #667085;
	font-size: 12px;
}

.ebcpm-artwork-summary strong {
	overflow-wrap: anywhere;
	font-size: 14px;
}

.ebcpm-artwork-parts {
	display: flex;
	gap: 0;
	margin-top: 20px;
	border-bottom: 1px solid #aeb4bb;
}

.ebcpm-artwork-parts a {
	min-width: 120px;
	padding: 11px 20px;
	color: #374151;
	border: 1px solid transparent;
	border-bottom: 0;
	text-align: center;
	text-decoration: none;
}

.ebcpm-artwork-parts a.is-current {
	margin-bottom: -1px;
	border-color: #aeb4bb;
	background: #fff;
	font-weight: 700;
}

.ebcpm-artwork-form {
	background: #fff;
}

.ebcpm-artwork-tool {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	min-height: 580px;
	border: 1px solid #aeb4bb;
	border-top: 0;
}

.ebcpm-artwork-sidebar {
	padding: 22px;
	border-right: 1px solid #d5d9de;
	background: #f8f9fa;
}

.ebcpm-file-control span,
.ebcpm-control-group > label,
.ebcpm-color-control {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 700;
}

.ebcpm-file-control input {
	width: 100%;
	font-size: 13px;
}

.ebcpm-file-name {
	min-height: 40px;
	margin: 7px 0 8px;
	color: #667085;
	font-size: 12px;
	overflow-wrap: anywhere;
}

.ebcpm-control-group {
	margin-top: 24px;
}

.ebcpm-control-group label {
	display: flex;
	justify-content: space-between;
}

.ebcpm-control-group input[type="range"] {
	width: 100%;
}

.ebcpm-command-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 18px;
}

.ebcpm-command-grid button {
	min-height: 40px;
	padding: 7px 8px;
	border: 1px solid #9ca3af;
	border-radius: 4px;
	color: #1f2937;
	background: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
}

.ebcpm-command-grid button:disabled {
	opacity: .45;
	cursor: default;
}

.ebcpm-command-grid [data-ebcpm-trim-fit],
.ebcpm-command-grid [data-ebcpm-rotate] {
	grid-column: 1 / -1;
}

.ebcpm-command-grid [data-ebcpm-trim-fit] {
	border-color: #2271b1;
	color: #0a4b78;
	background: #f0f6fc;
}

.ebcpm-color-control {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 20px;
}

.ebcpm-color-control input {
	width: 44px;
	height: 32px;
	padding: 2px;
	border: 1px solid #9ca3af;
	background: #fff;
}

.ebcpm-quality {
	margin-top: 20px;
	padding: 11px 12px;
	border-left: 4px solid #9ca3af;
	background: #fff;
	font-size: 12px;
}

.ebcpm-quality strong,
.ebcpm-quality span {
	display: block;
}

.ebcpm-quality[data-state="ok"] { border-color: #078552; background: #ecf8f2; }
.ebcpm-quality[data-state="warning"] { border-color: #b7791f; background: #fff8e8; }
.ebcpm-quality[data-state="error"] { border-color: #d63638; background: #fff1f1; }

.ebcpm-artwork-stage-column {
	display: flex;
	min-width: 0;
	padding: 24px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #e4e7eb;
	background-image: linear-gradient(45deg, #d9dde2 25%, transparent 25%), linear-gradient(-45deg, #d9dde2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #d9dde2 75%), linear-gradient(-45deg, transparent 75%, #d9dde2 75%);
	background-position: 0 0, 0 8px, 8px -8px, -8px 0;
	background-size: 16px 16px;
}

.ebcpm-artwork-stage {
	position: relative;
	display: grid;
	width: min(100%, 1000px);
	aspect-ratio: var(--ebcpm-stage-ratio, 1 / 1);
	place-items: center;
	box-shadow: 0 2px 14px rgba(17, 24, 39, .18);
	background: #fff;
}

.ebcpm-artwork-stage canvas {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
	cursor: move;
}

.ebcpm-stage-empty {
	position: absolute;
	inset: 0;
	display: grid;
	padding: 20px;
	place-items: center;
	color: #4b5563;
	background: rgba(255, 255, 255, .92);
	text-align: center;
}

.ebcpm-stage-empty[hidden] {
	display: none;
}

.ebcpm-guide-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 14px;
	padding: 7px 10px;
	background: rgba(255, 255, 255, .9);
	font-size: 12px;
}

.ebcpm-guide-legend span::before {
	display: inline-block;
	width: 18px;
	margin-right: 6px;
	border-top: 2px solid;
	content: "";
	vertical-align: middle;
}

.ebcpm-guide-legend .is-bleed::before { border-color: #d63638; border-top-style: dashed; }
.ebcpm-guide-legend .is-cut::before { border-color: #111827; }
.ebcpm-guide-legend .is-safe::before { border-color: #078552; border-top-style: dashed; }

.ebcpm-stage-status {
	min-height: 24px;
	margin: 10px 0 0;
	padding: 4px 8px;
	background: rgba(255, 255, 255, .86);
	font-size: 12px;
	text-align: center;
}

.ebcpm-artwork-approval {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: flex-end;
	padding: 18px 22px;
	border: 1px solid #aeb4bb;
	border-top: 0;
}

.ebcpm-artwork-approval label {
	margin-right: auto;
	font-weight: 700;
}

.ebcpm-artwork-approval button {
	min-height: 44px;
	padding: 0 22px;
	border: 1px solid #1473a5;
	border-radius: 4px;
	color: #fff;
	background: #1473a5;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ebcpm-artwork-approval button:disabled {
	border-color: #9ca3af;
	background: #9ca3af;
	cursor: default;
}

.ebcpm-artwork-approval p {
	flex-basis: 100%;
	margin: 0;
	color: #475467;
	font-size: 12px;
	text-align: right;
}

.ebcpm-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.ebcpm-review-main {
	width: min(100% - 40px, 1180px);
}

.ebcpm-review-main .ebcpm-artwork-summary {
	grid-template-columns: repeat(3, 1fr);
}

.ebcpm-review-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 18px;
}

.ebcpm-review-artwork {
	padding: 14px;
	border: 1px solid #aeb4bb;
	background: #fff;
}

.ebcpm-review-artwork h2 {
	margin: 0 0 10px;
	font-size: 16px;
}

.ebcpm-review-artwork iframe {
	display: block;
	width: 100%;
	height: min(68vh, 660px);
	margin-bottom: 10px;
	border: 1px solid #d5d9de;
	background: #f6f7f7;
}

.ebcpm-review-artwork a {
	color: #0a5e8a;
	font-weight: 700;
}

.ebcpm-review-response,
.ebcpm-review-result {
	margin-top: 20px;
	padding: 20px;
	border: 1px solid #8c8f94;
	background: #fff;
}

.ebcpm-review-response {
	display: grid;
	gap: 16px;
}

.ebcpm-review-response > label:not(.ebcpm-review-confirm) {
	display: grid;
	gap: 6px;
	font-weight: 700;
}

.ebcpm-review-response textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #8c8f94;
	font: inherit;
}

.ebcpm-review-confirm {
	font-weight: 700;
}

.ebcpm-review-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ebcpm-review-actions button {
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #6b7280;
	border-radius: 4px;
	color: #1f2937;
	background: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ebcpm-review-actions .is-primary {
	border-color: #1473a5;
	color: #fff;
	background: #1473a5;
}

.ebcpm-review-result h2 {
	margin-top: 0;
}

@media (max-width: 900px) {
	.ebcpm-review-grid {
		grid-template-columns: 1fr;
	}

	.ebcpm-artwork-summary {
		grid-template-columns: 1fr 1fr;
	}

	.ebcpm-artwork-summary > div + div {
		border-left: 0;
	}

	.ebcpm-artwork-summary > div:nth-child(even) {
		border-left: 1px solid #e1e4e8;
	}

	.ebcpm-artwork-summary > div:nth-child(n+3) {
		border-top: 1px solid #e1e4e8;
	}

	.ebcpm-artwork-tool {
		grid-template-columns: 1fr;
	}

	.ebcpm-artwork-sidebar {
		border-right: 0;
		border-bottom: 1px solid #d5d9de;
	}

	.ebcpm-command-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.ebcpm-artwork-stage-column {
		min-height: 420px;
	}
}

@media (max-width: 600px) {
	.ebcpm-review-main .ebcpm-artwork-summary {
		grid-template-columns: 1fr;
	}

	.ebcpm-review-actions {
		flex-direction: column;
	}

	.ebcpm-review-actions button {
		width: 100%;
	}

	.ebcpm-artwork-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.ebcpm-artwork-main {
		width: min(100% - 20px, 1240px);
		padding-top: 14px;
	}

	.ebcpm-artwork-summary {
		grid-template-columns: 1fr;
	}

	.ebcpm-artwork-summary > div:nth-child(even) {
		border-left: 0;
	}

	.ebcpm-artwork-summary > div + div {
		border-top: 1px solid #e1e4e8;
	}

	.ebcpm-artwork-parts a {
		min-width: 50%;
	}

	.ebcpm-command-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ebcpm-artwork-stage-column {
		min-height: 300px;
		padding: 12px;
	}

	.ebcpm-artwork-approval {
		align-items: stretch;
		flex-direction: column;
	}

	.ebcpm-artwork-approval button {
		width: 100%;
	}
}
