/* Doorstep Artwork Studio
 * Brand: blue #27a1ff, green #75be2f, black #010101. Titles in colour, no heavy boxed panels.
 */

/* ---------------------------------------------------------- launcher */
.das-launch {
	margin: 18px 0 16px;
	padding: 14px 0 4px;
	border-top: 1px solid #e6e6e6;
	clear: both;
}
.das-launch-title {
	margin: 0 0 8px !important;
	font-weight: 700;
	font-size: 15px;
	color: #27a1ff;
	letter-spacing: .02em;
}
.das-launch-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}
.das-launch .das-open-btn {
	background: #27a1ff;
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 11px 18px;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
}
.das-launch .das-open-btn:hover,
.das-launch .das-open-btn:focus-visible {
	background: #0b8ae8;
}
.das-launch-status {
	font-size: 13px;
	color: #555;
}
.das-launch.is-approved .das-launch-status {
	color: #4f8a17;
	font-weight: 600;
}
.das-launch.is-warn:not(.is-approved) .das-launch-status {
	color: #b26200;
	font-weight: 600;
}
.das-launch .das-launch-thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin: 12px 0 0;
	max-width: 100%;
}
.das-launch .das-launch-thumbs[hidden] {
	display: none;
}
.das-launch .das-thumb {
	margin: 0 !important;
	padding: 0;
	text-align: center;
	width: auto !important;
}
/* Theme styles make product images full width; keep these small. */
.das-launch .das-launch-thumbs img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 120px !important;
	max-height: 70px !important;
	margin: 0 auto !important;
	border: 1px solid #ddd !important;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
	object-fit: contain;
}
.das-launch .das-thumb figcaption {
	margin-top: 4px;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #888;
}
.das-launch .das-design {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 13px;
	cursor: pointer;
}
.das-launch .das-design input {
	margin: 3px 0 0;
}
.das-design-note {
	margin: 4px 0 0 22px !important;
	font-size: 12px;
	color: #555;
}
.das-launch-error {
	margin: 10px 0 0 !important;
	color: #c62828;
	font-weight: 600;
	font-size: 13px;
}
.das-pulse {
	animation: das-pulse 1.2s ease-out 2;
}
@keyframes das-pulse {
	0% { box-shadow: 0 0 0 0 rgba(117, 190, 47, .7); }
	100% { box-shadow: 0 0 0 14px rgba(117, 190, 47, 0); }
}

/* ------------------------------------------------------------ window */
html.das-lock,
html.das-lock body {
	overflow: hidden !important;
}
.das-studio {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	flex-direction: column;
	background: #f4f5f7;
	color: #010101;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
}
.das-studio.is-open {
	display: flex;
}
.das-studio *,
.das-studio *::before,
.das-studio *::after {
	box-sizing: border-box;
}
.das-studio button {
	font: inherit;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.2;
	box-shadow: none;
	min-height: 0;
}
.das-studio h2,
.das-studio h3,
.das-studio h4,
.das-studio p {
	margin: 0;
	padding: 0;
}

.das-top {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 20px;
	background: #fff;
	border-bottom: 1px solid #e3e5e8;
}
.das-head {
	flex: 1;
	min-width: 0;
}
.das-kicker {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #27a1ff;
}
.das-head h2 {
	font-size: 19px;
	font-weight: 700;
	color: #010101;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.das-sub {
	font-size: 13px;
	color: #666;
}
.das-close {
	background: none;
	border: 0;
	font-size: 34px !important;
	line-height: 1 !important;
	color: #333;
	cursor: pointer;
	padding: 0 4px;
}
.das-close:hover {
	color: #27a1ff;
}

.das-body {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr) 300px;
}

/* left: slots */
.das-left {
	background: #fff;
	border-right: 1px solid #e3e5e8;
	padding: 16px;
	overflow-y: auto;
}
.das-count strong {
	display: block;
	font-size: 13px;
	margin-bottom: 6px;
}
.das-bar {
	display: block;
	height: 4px;
	background: #e9ecef;
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 16px;
}
.das-bar i {
	display: block;
	height: 100%;
	width: 0;
	background: #75be2f;
	transition: width .3s;
}
.das-slots {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 12px;
}
.das-slot {
	position: relative;
	min-width: 0;
}
.das-slot-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #27a1ff;
	margin-bottom: 5px;
}
.das-slot.is-active .das-slot-label {
	color: #010101;
}
.das-drop {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #fafbfc;
	border: 1px dashed #b9c2cc;
	border-radius: 4px;
	color: #27a1ff;
	font-size: 12px !important;
	font-weight: 600;
	padding: 6px;
	cursor: pointer;
	overflow: hidden;
}
.das-slot.is-active .das-drop {
	border: 1px solid #010101;
}
.das-slot.has-file .das-drop {
	border-style: solid;
	background: #fff;
}
.das-slot.is-drag .das-drop,
.das-drop:hover {
	border-color: #27a1ff;
	background: #f0f8ff;
}
.das-drop img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.das-up {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e6f4ff;
	color: #27a1ff;
	font-size: 15px;
	font-weight: 700;
}
.das-slot-status {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 5px;
	font-size: 11.5px;
	color: #555;
	min-height: 16px;
}
.das-fname {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.das-ok {
	color: #4f8a17;
	font-weight: 700;
}
.das-req {
	color: #888;
}
.das-err {
	color: #c62828;
	font-weight: 600;
}
.das-prog {
	flex: 1;
	height: 4px;
	background: #e9ecef;
	border-radius: 2px;
	overflow: hidden;
}
.das-prog i {
	display: block;
	height: 100%;
	background: #27a1ff;
	transition: width .2s;
}
.das-x {
	position: absolute;
	top: 18px;
	right: -6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid #d0d5db;
	background: #fff;
	color: #333;
	font-size: 15px !important;
	line-height: 18px !important;
	padding: 0;
	cursor: pointer;
}
.das-x:hover {
	border-color: #c62828;
	color: #c62828;
}
.das-replace {
	background: none;
	border: 0;
	padding: 2px 0 0;
	color: #27a1ff;
	font-size: 11.5px !important;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}
.das-hint,
.das-accept {
	margin-top: 16px !important;
	font-size: 12px;
	color: #666;
}
.das-accept {
	margin-top: 6px !important;
	color: #888;
}

/* centre: proof */
.das-center {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}
.das-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px 8px;
}
.das-toolbar > button,
.das-zoom button {
	background: #fff;
	border: 1px solid #d6dbe1;
	border-radius: 4px;
	padding: 7px 12px;
	font-size: 12.5px !important;
	color: #222;
	cursor: pointer;
}
.das-toolbar > button:hover:not(:disabled),
.das-zoom button:hover {
	border-color: #27a1ff;
	color: #27a1ff;
}
.das-toolbar > button[aria-pressed="true"] {
	border-color: #27a1ff;
	color: #27a1ff;
	background: #f0f8ff;
}
.das-toolbar > button:disabled {
	opacity: .45;
	cursor: default;
}
.das-mask-tool {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
}
.das-mask-tool[hidden] {
	display: none;
}
.das-zoom {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 6px;
}
.das-zoom button {
	width: 30px;
	padding: 6px 0;
	text-align: center;
}
.das-zval {
	min-width: 44px;
	text-align: center;
	font-size: 12px;
	color: #555;
}
.das-tabsrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 28px;
	padding: 0 16px 8px;
}
.das-tabs {
	display: inline-flex;
	border: 1px solid #d6dbe1;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}
.das-tab {
	background: #fff;
	border: 0;
	border-right: 1px solid #d6dbe1;
	padding: 8px 18px;
	font-size: 13px !important;
	font-weight: 600;
	color: #27a1ff;
	cursor: pointer;
}
.das-tab:last-child {
	border-right: 0;
}
.das-tab.is-on {
	background: #27a1ff;
	color: #fff;
}
.das-tab:disabled {
	color: #aab4bf;
	cursor: default;
}
.das-legend {
	display: flex;
	gap: 16px;
	font-size: 12.5px;
}
.das-legend span::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: 1px;
}
.lg-safe { color: #1f6fff; }
.lg-safe::before { background: #1f6fff; }
.lg-cut { color: #e5232a; }
.lg-cut::before { background: #e5232a; }
.lg-bleed { color: #010101; }
.lg-bleed::before { background: #010101; }

.das-stage {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.das-stage.is-drag {
	outline: 2px dashed #27a1ff;
	outline-offset: -10px;
}
.das-proof-wrap {
	position: relative;
	margin: auto;
	line-height: 0;
}
.das-plain {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 220px;
}
.das-plain img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	background: #fff;
	transform-origin: center;
}
.das-plain .das-dropzone {
	position: static;
	border: 1px dashed #b9c2cc;
	border-radius: 4px;
	background: #fff;
	padding: 40px 24px;
}
.das-proof {
	display: block;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	background: #fff;
}
.das-dropzone {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px;
	text-align: center;
	line-height: 1.35;
	font-size: 13px;
	color: #555;
}
.das-dropzone strong {
	font-size: 15px;
	color: #010101;
}
.das-nopreview {
	background: rgba(255, 255, 255, .9);
}
.das-browse {
	background: #27a1ff;
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 8px 16px;
	font-weight: 600;
	font-size: 13px !important;
	cursor: pointer;
}
.das-empty {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	text-align: center;
	color: #555;
}
.das-empty strong {
	color: #010101;
	font-size: 15px;
}

/* 3D */
.das-stage.is-3d {
	overflow: hidden;
	cursor: grab;
	background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #eef0f3 70%);
}
.das-3d {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	perspective: 1600px;
	touch-action: none;
	user-select: none;
	--das-sheen: 30%;
}
.das-card3d {
	position: relative;
	transform-style: preserve-3d;
}
.das-shadow {
	position: absolute;
	top: 50%;
	left: 50%;
	height: 40px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, 0) 70%);
	pointer-events: none;
}
.das-layer,
.das-face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}
.das-layer {
	backface-visibility: visible;
	-webkit-backface-visibility: visible;
	filter: brightness(.86);
}
.das-face {
	overflow: hidden;
	background: #fff;
	box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08);
}
.das-face img,
.das-gloss {
	position: absolute;
	max-width: none !important;
	transform-origin: 50% 50%;
	pointer-events: none;
}
.das-gloss {
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	background: linear-gradient(115deg, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, .15) calc(var(--das-sheen) - 18%), rgba(255, 255, 255, .95) var(--das-sheen), rgba(190, 225, 255, .35) calc(var(--das-sheen) + 14%), rgba(255, 255, 255, .15) 100%);
	mix-blend-mode: screen;
}
.das-sheen {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0) calc(var(--das-sheen) - 30%), rgba(255, 255, 255, .22) var(--das-sheen), rgba(255, 255, 255, 0) calc(var(--das-sheen) + 30%));
}
.das-face-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
	font-size: 12px;
}
.das-3d-ctl {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #e0e3e7;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 12px;
	color: #666;
	white-space: nowrap;
}
.das-3d-ctl button {
	background: #fff;
	border: 1px solid #d6dbe1;
	border-radius: 4px;
	padding: 5px 12px;
	font-size: 12px !important;
	font-weight: 600;
	color: #27a1ff;
	cursor: pointer;
}

/* right: preflight + approve */
.das-right {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-left: 1px solid #e3e5e8;
	min-height: 0;
}
.das-right h3 {
	padding: 16px 18px 4px;
	font-size: 16px;
	font-weight: 700;
	color: #27a1ff;
}
.das-pf {
	flex: 1;
	overflow-y: auto;
	padding: 4px 18px 12px;
}
.das-pf-side {
	padding: 10px 0;
	border-bottom: 1px solid #eef0f2;
}
.das-pf-side h4 {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
}
.das-pf ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.das-pf li {
	display: flex;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 12.5px;
	line-height: 1.4;
	color: #333;
}
.pf-ic {
	flex: 0 0 16px;
	height: 16px;
	border-radius: 50%;
	margin-top: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
}
.pf-ok .pf-ic { background: #75be2f; }
.pf-ok .pf-ic::before { content: "✓"; }
.pf-warn .pf-ic { background: #f0a020; }
.pf-warn .pf-ic::before { content: "!"; }
.pf-bad .pf-ic { background: #e5232a; }
.pf-bad .pf-ic::before { content: "×"; }
.pf-info .pf-ic { background: #9aa6b2; }
.pf-info .pf-ic::before { content: "i"; font-style: italic; }
.pf-warn { color: #7a4a00 !important; }
.pf-bad { color: #a01818 !important; font-weight: 600; }

.das-approve {
	border-top: 1px solid #e3e5e8;
	padding: 14px 18px 16px;
	background: #fff;
}
.das-bleedfix {
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eef0f2;
}
.das-bleedfix[hidden] {
	display: none;
}
.das-bleedfix label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #27a1ff;
	margin-bottom: 5px;
}
.das-bleedfix select {
	width: 100%;
	height: auto;
	padding: 8px 10px;
	border: 1px solid #c9d0d8;
	border-radius: 4px;
	background: #fff;
	font: inherit;
	font-size: 13px;
	color: #010101;
}
.das-bleedfix.is-suggested select {
	border-color: #f0a020;
	box-shadow: 0 0 0 2px rgba(240, 160, 32, .18);
}
.das-bleedfix-help {
	margin-top: 5px !important;
	font-size: 11.5px;
	color: #666;
}
.das-check {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
	cursor: pointer;
	margin-bottom: 12px;
}
.das-check input {
	margin: 2px 0 0;
	width: 16px;
	height: 16px;
}
.das-save {
	width: 100%;
	background: #75be2f;
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 12px;
	font-size: 15px !important;
	font-weight: 700;
	cursor: pointer;
}
.das-save:hover:not(:disabled) {
	background: #63a523;
}
.das-save:disabled {
	background: #c9d3c0;
	cursor: default;
}
.das-save.is-done {
	background: #4f8a17;
}
.das-msg {
	margin-top: 8px !important;
	min-height: 16px;
	font-size: 12px;
	color: #b26200;
}

/* ------------------------------------------------------- tablet/phone */
@media (max-width: 1100px) {
	.das-body {
		grid-template-columns: 230px minmax(0, 1fr) 260px;
	}
}
@media (max-width: 900px) {
	.das-studio {
		overflow-y: auto;
	}
	.das-top {
		position: sticky;
		top: 0;
		z-index: 3;
		padding: 10px 14px;
	}
	.das-head h2 {
		font-size: 16px;
	}
	.das-body {
		display: flex;
		flex-direction: column;
		flex: none;
	}
	.das-left {
		border-right: 0;
		border-bottom: 1px solid #e3e5e8;
		padding: 12px 14px;
		overflow: visible;
	}
	.das-slots {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		padding: 0 4px 4px 0;
	}
	.das-slot {
		flex: 0 0 112px;
	}
	.das-x {
		right: 0;
	}
	.das-center {
		min-height: 0;
	}
	.das-toolbar {
		gap: 6px;
		padding: 10px 10px 6px;
	}
	.das-toolbar > button {
		padding: 6px 9px;
		font-size: 12px !important;
	}
	.das-legend {
		gap: 10px;
		font-size: 11.5px;
	}
	.das-stage {
		flex: none;
		height: 62vw;
		min-height: 240px;
		max-height: 420px;
		padding: 14px;
	}
	.das-right {
		border-left: 0;
		border-top: 1px solid #e3e5e8;
	}
	.das-pf {
		overflow: visible;
	}
	.das-approve {
		position: sticky;
		bottom: 0;
		box-shadow: 0 -4px 12px rgba(0, 0, 0, .06);
	}
}
.lg-fold { color: #3f9e1c; }
.lg-fold::before { background: #3f9e1c; }
.lg-fold[hidden] { display: none !important; }
