#deal-won-projects a {
	position: relative;
}

.deal-won-badge {
	position: absolute;
	top: -4px;
	right: -9px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: linear-gradient(135deg, #FFD873, #C97F1B);
	border: 1.5px solid #fff;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.deal-won-pulse {
	animation: dealWonIconPulse 2s ease-in-out infinite;
}

@keyframes dealWonIconPulse {
	0%, 100% {
		filter: drop-shadow(0 0 0 rgba(232, 163, 61, 0));
	}
	50% {
		filter: drop-shadow(0 0 6px rgba(232, 163, 61, 0.8));
	}
}

.deal-won-shake {
	animation: dealWonShake 0.3s ease-in-out;
}

@keyframes dealWonShake {
	0%, 100% {
		transform: translateX(0);
	}
	20% {
		transform: translateX(-3px);
	}
	40% {
		transform: translateX(3px);
	}
	60% {
		transform: translateX(-2px);
	}
	80% {
		transform: translateX(2px);
	}
}

.deal-won-panel {
	position: absolute;
	z-index: 1000;
	width: min(400px, 90vw);
	max-height: 440px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	font-family: Arial, Helvetica, sans-serif;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.deal-won-panel-open {
	opacity: 1;
	transform: translateY(0);
}

.deal-won-panel-title {
	padding: 14px 16px 10px;
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	border-bottom: 1px solid #eee;
}

.deal-won-panel-section {
	padding: 12px 16px;
}

.deal-won-panel-section + .deal-won-panel-section {
	border-top: 1px solid #eee;
}

.deal-won-panel-heading {
	font-size: 13px;
	font-weight: 700;
	color: #333;
	margin-bottom: 8px;
}

.deal-won-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.deal-won-row {
	padding: 6px 8px;
	border-radius: 6px;
	border-left: 3px solid transparent;
	cursor: default;
	transition: background-color 0.12s ease, border-left-color 0.12s ease;
}

.deal-won-row-fresh {
	background: rgba(232, 163, 61, 0.08);
	border-left-color: #E8A33D;
}

.deal-won-row-fresh:hover {
	background: rgba(232, 163, 61, 0.16);
	border-left-color: #C97F1B;
}

.deal-won-row-history {
	background: rgba(100, 116, 139, 0.06);
	border-left-color: #94A3B8;
}

.deal-won-row-history:hover {
	background: rgba(100, 116, 139, 0.12);
	border-left-color: #64748B;
}

.deal-won-row-main {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.deal-won-row-number {
	font-family: monospace;
	font-size: 11px;
	color: #999;
}

.deal-won-row-name {
	font-weight: 600;
	color: #222;
	font-size: 13px;
}

.deal-won-row-meta {
	display: flex;
	justify-content: space-between;
	margin-top: 2px;
	font-size: 11px;
	color: #888;
}

.deal-won-muted {
	color: #888;
	font-size: 12px;
	font-style: italic;
}

.deal-won-history-sentinel {
	min-height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
	font-size: 11px;
	font-style: italic;
	color: #999;
}

.deal-won-history-retry {
	display: block;
	margin: 6px auto 0;
	padding: 4px 10px;
	border: none;
	background: none;
	color: #C97F1B;
	font-size: 11px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.deal-won-history-retry:hover {
	color: #7A4A12;
}

@media print {
	.deal-won-panel,
	.deal-won-badge {
		display: none !important;
	}
}
