.dv-container {
	display: grid;
	grid-template-columns: 320px 1fr;
	height: calc(100vh - 72px);
	gap: 0;
}

.dv-sidebar {
	border-right: 1px solid #e1e5e9;
	padding: 12px;
	overflow-y: auto;
}

.dv-panel h3 {
	margin: 6px 0 12px 0;
}

.dv-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
}

.dv-accordion > summary {
	cursor: pointer;
	font-weight: 600;
	margin: 8px 0;
}

.dv-main {
	display: flex;
	flex-direction: column;
	padding: 12px;
	overflow: hidden;
}

.dv-canvas-wrap {
	background: #fff;
	border: 1px solid #e1e5e9;
	border-radius: 6px;
	padding: 8px;
	height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.dv-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-top: 8px;
}

.dv-legend .item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.dv-legend .swatch {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	border: 1px solid rgba(0,0,0,.08);
}

.dv-table {
	margin-top: 8px;
	overflow: auto;
	max-height: 240px;
}

.dv-table table {
	width: 100%;
	border-collapse: collapse;
}

.dv-table th, .dv-table td {
	border-bottom: 1px solid #eef2f6;
	padding: 6px 8px;
	font-size: 12px;
}

.dv-table-details { margin-top: 8px; }
.dv-table-details > summary { cursor: pointer; color: #1f2937; }
.legend-gradient {
	flex: 1 1 auto;
	height: 12px;
	min-width: 140px;
	background: linear-gradient(90deg, hsla(340, 30%, 80%, 1) 0%, hsla(340, 45%, 65%, 1) 25%, hsla(340, 60%, 50%, 1) 50%, hsla(340, 75%, 40%, 1) 75%, hsla(340, 85%, 30%, 1) 100%);
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 4px;
}

.legend-steps { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 6px 16px; margin-top: 6px; }
.legend-step-row { display: flex; align-items: center; gap: 8px; }
.legend-step-box { width: 18px; height: 14px; border: 1px solid rgba(0,0,0,.08); border-radius: 3px; }
.legend-step-label { font-size: 12px; color: #111827; }

@media (max-width: 1000px) {
	.dv-container { grid-template-columns: 1fr; height: auto; }
	.dv-sidebar { border-right: none; border-bottom: 1px solid #e1e5e9; }
	.dv-canvas-wrap { height: 50vh; }
}
