.design-widget {
	width: min(100%, 580px);
	margin-left: auto;
}

.design-widget__card {
	background: #fff;
	border-radius: 16px;
	border: 1px solid #dbeafe;
	box-shadow: 0 12px 48px rgba(30, 64, 175, 0.12);
	height: 520px;
	position: relative;
	overflow: hidden;
}

.design-widget__top-bar {
	height: 4px;
	background: #1d4ed8;
}

.design-widget__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	background: #1d4ed8;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}

.design-widget__panel {
	position: absolute;
	inset: 0;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.38s ease;
}

.design-widget__panel.active {
	opacity: 1;
	pointer-events: auto;
}

.design-widget__eyebrow {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #93c5fd;
}

.design-widget__title {
	font-size: 15px;
	font-weight: 900;
	color: #1e293b;
	letter-spacing: -0.01em;
	margin-top: 2px;
}

.design-widget__sub {
	font-size: 11px;
	color: #64748b;
	margin-top: 1px;
}

.design-widget__style-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.design-widget__style-chip {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 6px;
	border-radius: 12px;
	font-size: 10px;
	font-weight: 700;
	text-align: center;
	animation: designWidgetPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.design-widget__style-chip:nth-child(1) { animation-delay: 0s; }
.design-widget__style-chip:nth-child(2) { animation-delay: 0.08s; }
.design-widget__style-chip:nth-child(3) { animation-delay: 0.16s; }
.design-widget__style-chip:nth-child(4) { animation-delay: 0.24s; }
.design-widget__style-chip:nth-child(5) { animation-delay: 0.32s; }
.design-widget__style-chip:nth-child(6) { animation-delay: 0.4s; }

.design-widget__check-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: designWidgetPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.design-widget__brief-field {
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	animation: designWidgetSlideLeft 0.4s ease both;
}

.design-widget__brief-field:nth-of-type(1) { animation-delay: 0.4s; }
.design-widget__brief-field:nth-of-type(2) { animation-delay: 0.5s; }
.design-widget__brief-field:nth-of-type(3) { animation-delay: 0.6s; }

.design-widget__field-label {
	padding: 8px 12px 2px;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8;
}

.design-widget__field-val {
	padding: 0 12px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #1e293b;
}

.design-widget__cursor-blink {
	display: inline-block;
	width: 2px;
	height: 12px;
	background: #1d4ed8;
	vertical-align: middle;
	margin-left: 2px;
	animation: designWidgetBlink 0.85s step-end infinite;
}

.design-widget__stats-row {
	display: flex;
	gap: 8px;
	animation: designWidgetFadeIn 0.4s ease 0.8s both;
}

.design-widget__stat-chip {
	flex: 1;
	text-align: center;
	padding: 10px 4px;
	border-radius: 10px;
	background: #eff6ff;
	border: 1px solid #dbeafe;
}

.design-widget__stat-val {
	font-size: 14px;
	font-weight: 900;
	color: #1d4ed8;
}

.design-widget__stat-lbl {
	font-size: 9px;
	font-weight: 500;
	color: #64748b;
	margin-top: 1px;
}

.design-widget__cert-canvas,
.design-widget__refine-cert {
	flex: 1;
	position: relative;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 8px 32px rgba(30, 64, 175, 0.1);
	overflow: hidden;
	min-height: 0;
}

.design-widget__cert-canvas {
	animation: designWidgetScaleIn 0.4s ease 0.1s both;
}

.design-widget__refine-cert {
	animation: designWidgetSlideUp 0.4s ease 0.1s both;
}

.design-widget__cert-gold {
	height: 4px;
	background: #f59e0b;
	transform-origin: left;
	animation: designWidgetGrowX 0.6s ease 0.3s both;
}

.design-widget__cert-inner,
.design-widget__refine-inner,
.design-widget__final-inner {
	position: absolute;
	inset: 10px;
	top: 12px;
	border: 2.5px double #bfdbfe;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 14px 14px 12px;
}

.design-widget__corner {
	position: absolute;
	width: 20px;
	height: 20px;
	border-color: #93c5fd;
	animation: designWidgetFadeIn 0.3s ease both;
}

.design-widget__corner--tl { top: 4px; left: 4px; border-top: 2px solid; border-left: 2px solid; animation-delay: 0.5s; }
.design-widget__corner--tr { top: 4px; right: 4px; border-top: 2px solid; border-right: 2px solid; animation-delay: 0.58s; }
.design-widget__corner--bl { bottom: 4px; left: 4px; border-bottom: 2px solid; border-left: 2px solid; animation-delay: 0.66s; }
.design-widget__corner--br { bottom: 4px; right: 4px; border-bottom: 2px solid; border-right: 2px solid; animation-delay: 0.74s; }

.design-widget__seal {
	width: 54px;
	height: 54px;
	border: 2px solid #1d4ed8;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	animation: designWidgetSpringIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s both;
}

.design-widget__seal-mid {
	width: 36px;
	height: 36px;
	background: #dbeafe;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.design-widget__seal-inner {
	width: 22px;
	height: 22px;
	border: 1.5px solid #3b82f6;
	border-radius: 50%;
}

.design-widget__seal-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1.5px solid transparent;
	border-top-color: #60a5fa;
	animation: designWidgetSpin 7s linear infinite;
}

.design-widget__cert-title {
	font-family: Georgia, serif;
	font-size: 14px;
	color: #1e3a8a;
	letter-spacing: 0.04em;
	text-align: center;
	animation: designWidgetFadeUp 0.4s ease 0.8s both;
}

.design-widget__cert-sub {
	font-size: 8px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #60a5fa;
	margin-top: 3px;
	text-align: center;
	animation: designWidgetFadeUp 0.4s ease 0.95s both;
}

.design-widget__body-name {
	font-family: Georgia, serif;
	font-size: 13px;
	color: #1e293b;
	font-weight: 600;
	margin: 4px 0;
	animation: designWidgetFadeUp 0.4s ease 1.1s both;
}

.design-widget__body-small {
	font-size: 9px;
	color: #64748b;
	animation: designWidgetFadeIn 0.4s ease 1.1s both;
}

.design-widget__body-lines {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	animation: designWidgetFadeIn 0.4s ease 1.2s both;
}

.design-widget__bline {
	height: 1.5px;
	background: #e2e8f0;
	border-radius: 1px;
}

.design-widget__sigs {
	display: flex;
	justify-content: space-around;
	width: 100%;
	animation: designWidgetFadeIn 0.4s ease 1.6s both;
}

.design-widget__sig-line {
	width: 52px;
	height: 1px;
	background: #94a3b8;
	margin: 0 auto 3px;
}

.design-widget__sig-lbl {
	font-size: 8px;
	color: #94a3b8;
	text-align: center;
}

.design-widget__guide-h,
.design-widget__guide-v {
	position: absolute;
	background: rgba(99, 102, 241, 0.14);
	animation: designWidgetFadeIn 0.3s ease 0.6s both;
}

.design-widget__guide-h {
	left: 0;
	right: 0;
	height: 1px;
	top: 50%;
}

.design-widget__guide-v {
	top: 0;
	bottom: 0;
	width: 1px;
	left: 50%;
}

.design-widget__toolbar {
	display: flex;
	gap: 6px;
	animation: designWidgetFadeUp 0.4s ease 0.4s both;
}

.design-widget__tool-btn {
	flex: 1;
	text-align: center;
	padding: 8px 0;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
}

.design-widget__tool-btn.is-active {
	background: #1d4ed8;
	color: #fff;
}

.design-widget__tool-btn:not(.is-active) {
	background: #f1f5f9;
	color: #64748b;
}

.design-widget__rev-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #1d4ed8;
	animation: designWidgetPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
	z-index: 5;
}

.design-widget__rev-badge span {
	color: #fff;
	font-size: 9px;
	font-weight: 700;
}

.design-widget__ann {
	position: absolute;
	right: 8px;
	display: flex;
	align-items: center;
	gap: 5px;
	pointer-events: none;
	animation: designWidgetSlideRight 0.4s ease both;
}

.design-widget__ann-line {
	height: 1px;
	width: 24px;
	border-top: 1.5px dashed;
}

.design-widget__ann-tag {
	padding: 3px 7px;
	border-radius: 6px;
	font-size: 8px;
	font-weight: 700;
	white-space: nowrap;
}

.design-widget__change-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	animation: designWidgetSlideLeft 0.4s ease both;
}

.design-widget__change-row:nth-of-type(1) { animation-delay: 0.55s; }
.design-widget__change-row:nth-of-type(2) { animation-delay: 0.7s; }
.design-widget__change-row:nth-of-type(3) { animation-delay: 0.85s; }

.design-widget__change-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.design-widget__change-text {
	font-size: 11px;
	font-weight: 500;
	color: #334155;
	flex: 1;
}

.design-widget__done-icon,
.design-widget__fmt-check {
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	animation: designWidgetPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.design-widget__done-icon {
	width: 20px;
	height: 20px;
	background: #dcfce7;
	border: 1.5px solid #86efac;
}

.design-widget__change-row:nth-of-type(1) .design-widget__done-icon { animation-delay: 0.9s; }
.design-widget__change-row:nth-of-type(2) .design-widget__done-icon { animation-delay: 1.05s; }
.design-widget__change-row:nth-of-type(3) .design-widget__done-icon { animation-delay: 1.2s; }

.design-widget__final-cert {
	position: relative;
	height: 185px;
	flex-shrink: 0;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 12px 40px rgba(30, 64, 175, 0.14);
	overflow: hidden;
	animation: designWidgetScaleIn 0.5s ease 0.1s both;
}

.design-widget__approved-stamp {
	position: absolute;
	bottom: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #dcfce7;
	border: 1.5px solid #86efac;
	animation: designWidgetStampIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s both;
}

.design-widget__approved-stamp span {
	font-size: 9px;
	font-weight: 900;
	color: #16a34a;
}

.design-widget__fmt-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.design-widget__fmt-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	animation: designWidgetPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.design-widget__fmt-item:nth-child(1) { animation-delay: 0.4s; }
.design-widget__fmt-item:nth-child(2) { animation-delay: 0.5s; }
.design-widget__fmt-item:nth-child(3) { animation-delay: 0.6s; }
.design-widget__fmt-item:nth-child(4) { animation-delay: 0.7s; }

.design-widget__fmt-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 900;
	color: #fff;
	flex-shrink: 0;
}

.design-widget__fmt-name {
	font-size: 10px;
	font-weight: 700;
	color: #1e293b;
}

.design-widget__fmt-desc {
	font-size: 9px;
	color: #94a3b8;
}

.design-widget__fmt-check {
	width: 16px;
	height: 16px;
	margin-left: auto;
}

.design-widget__download-btn {
	border-radius: 12px;
	padding: 12px;
	background: #1d4ed8;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	animation: designWidgetFadeUp 0.4s ease 0.9s both;
}

.design-widget__download-btn span {
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.design-widget__dots {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	margin-top: 16px;
}

.design-widget__dot-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.design-widget__dot {
	height: 6px;
	border-radius: 999px;
	background: #bfdbfe;
	transition: width 0.3s, background 0.3s;
	width: 6px;
}

.design-widget__dot.active {
	width: 28px;
	background: #1d4ed8;
}

.design-widget__dot-label {
	font-size: 9px;
	font-weight: 600;
	color: #bfdbfe;
	transition: color 0.3s;
}

.design-widget__dot-label.active {
	color: #1d4ed8;
}

@keyframes designWidgetFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes designWidgetFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes designWidgetSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes designWidgetSlideLeft { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes designWidgetSlideRight { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes designWidgetScaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes designWidgetSpringIn { from { opacity: 0; transform: scale(0) rotate(-120deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes designWidgetPopIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes designWidgetStampIn { from { opacity: 0; transform: scale(0) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(-8deg); } }
@keyframes designWidgetSpin { to { transform: rotate(360deg); } }
@keyframes designWidgetBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes designWidgetGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes designWidgetGrowW { from { width: 0; } }

@media (max-width: 921px) {
	.design-widget {
		width: min(100%, 520px);
		margin: 0 auto;
	}

	.design-widget__card {
		height: 430px;
	}
}

@media (max-width: 640px) {
	.design-widget {
		width: 100%;
	}

	.design-widget__card {
		height: 408px;
	}

	.design-widget__panel {
		padding: 16px;
		gap: 12px;
	}

	.design-widget__style-grid,
	.design-widget__fmt-grid {
		grid-template-columns: 1fr 1fr;
	}

	.design-widget__dots {
		gap: 10px;
	}
}
