.door-chip-row,
.quick-action-row,
.insight-action-row {
	margin-top: 0.75rem;
}

.door-chip {
	font-weight: 600;
}

.door-chip.active,
.utility-chip.active,
.insight-chip.active {
	background: rgba(59, 130, 246, 0.22);
	border-color: rgba(59, 130, 246, 0.55);
	color: #dbeafe;
	box-shadow: 0 0 14px rgba(59, 130, 246, 0.24);
}

.results-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.ghost-toolbar-btn {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.82);
	border-radius: 999px;
	padding: 0.55rem 1rem;
	font-size: 0.85rem;
	transition: all 0.25s ease;
}

.ghost-toolbar-btn:hover {
	background: rgba(59, 130, 246, 0.18);
	border-color: rgba(59, 130, 246, 0.5);
	color: #fff;
}

.ghost-toolbar-btn.primary-ghost {
	background: rgba(59, 130, 246, 0.18);
	border-color: rgba(59, 130, 246, 0.5);
}

.active-context-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(59, 130, 246, 0.14);
	border: 1px solid rgba(59, 130, 246, 0.35);
	border-radius: 999px;
	padding: 0.45rem 0.9rem;
	color: #dbeafe;
	font-size: 0.8rem;
}

.filter-panel {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	padding: 1rem;
	margin-bottom: 1rem;
}

.filter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.85rem;
}

.filter-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.8rem;
}

.filter-select {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	padding: 0.75rem 0.9rem;
	border-radius: 0.75rem;
	outline: none;
}

.filter-select option {
	color: #0f172a;
}

.filter-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.product-card {
	cursor: pointer;
}

.product-card:focus-within,
.product-card:hover {
	box-shadow: 0 10px 25px rgba(59, 130, 246, 0.24);
}

.detail-overlay,
.workflow-overlay {
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: rgba(2, 6, 23, 0.82);
	backdrop-filter: blur(12px);
	padding: 1.5rem;
	overflow-y: auto;
}

.detail-sheet,
.workflow-sheet {
	position: relative;
	max-width: 1160px;
	margin: 0 auto;
	background: rgba(15, 23, 42, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1.2rem;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.34);
	padding: 1.5rem;
}

.workflow-sheet {
	max-width: 860px;
}

.detail-close {
	position: absolute;
	right: 1rem;
	top: 1rem;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
}

.detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 1.25rem;
}

.detail-preview-pane,
.detail-info-pane,
.detail-section-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 1rem;
	padding: 1rem;
}

.detail-preview {
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 0.85rem;
	overflow: hidden;
}

.detail-preview img,
.detail-preview iframe {
	width: 100%;
	height: 100%;
	min-height: 420px;
	border: none;
	object-fit: contain;
}

.detail-title {
	color: #fff;
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	font-weight: 700;
	margin: 0.65rem 0 0.5rem;
}

.detail-type,
.detail-description {
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.6;
}

.detail-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.detail-meta-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.14);
	border: 1px solid rgba(16, 185, 129, 0.32);
	color: #d1fae5;
	font-size: 0.78rem;
}

.detail-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 0.75rem;
	margin: 1rem 0;
}

.detail-meta-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.85rem;
	padding: 0.8rem 0.9rem;
}

.detail-meta-card span {
	display: block;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 0.3rem;
}

.detail-meta-card strong {
	color: #fff;
	font-size: 0.92rem;
	font-weight: 600;
	word-break: break-word;
}

.detail-action-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.detail-action-row .get-design-btn,
.detail-action-row .ghost-toolbar-btn {
	flex: 1 1 180px;
	width: auto;
	margin-top: 0;
}

.detail-sections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.detail-section-card h3,
.workflow-title {
	color: #fff;
	margin-top: 0;
	margin-bottom: 0.85rem;
}

.detail-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.detail-list-item {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.85rem;
	padding: 0.8rem 0.9rem;
}

.detail-list-item strong {
	display: block;
	color: #fff;
	margin-bottom: 0.25rem;
}

.detail-list-item span {
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.82rem;
}

.detail-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem;
}

.detail-related-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.85rem;
	padding: 0.8rem;
	cursor: pointer;
}

.detail-related-card img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 0.65rem;
	margin-bottom: 0.6rem;
}

.detail-related-card strong {
	display: block;
	color: #fff;
	font-size: 0.9rem;
	margin-bottom: 0.25rem;
}

.detail-related-card span {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.76rem;
}

.workflow-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.workflow-tab {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.76);
	border-radius: 999px;
	padding: 0.6rem 0.9rem;
}

.workflow-tab.active {
	background: rgba(59, 130, 246, 0.2);
	border-color: rgba(59, 130, 246, 0.5);
	color: #fff;
}

.workflow-panel {
	display: none;
}

.workflow-panel.active {
	display: block;
}

.workflow-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.85rem;
}

.workflow-field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.85rem;
	margin-bottom: 0.9rem;
}

.workflow-input,
.workflow-textarea {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	border-radius: 0.85rem;
	padding: 0.9rem 1rem;
}

.workflow-textarea {
	resize: vertical;
}

.workflow-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.workflow-submit {
	max-width: 260px;
}

.workflow-success,
.workflow-status-card {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 0.95rem;
	background: rgba(59, 130, 246, 0.1);
	border: 1px solid rgba(59, 130, 246, 0.3);
	color: #e0f2fe;
}

.workflow-status-card strong {
	display: block;
	color: #fff;
	margin-bottom: 0.4rem;
}

@media (max-width: 960px) {
	.detail-grid,
	.detail-sections {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.detail-overlay,
	.workflow-overlay {
		padding: 0.75rem;
	}

	.detail-sheet,
	.workflow-sheet {
		padding: 1rem;
	}

	.detail-preview,
	.detail-preview img,
	.detail-preview iframe {
		min-height: 280px;
	}
}
