.nest-cm-wrap {
	max-width: 1120px;
	margin: 0 auto;
}

.nest-cm-filters {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 170px)) auto;
	gap: 8px;
	align-items: end;
	margin-bottom: 20px;
}

.nest-cm-filters input,
.nest-cm-filters select,
.nest-cm-modal input,
.nest-cm-modal textarea,
.nest-cm-profile-form input,
.nest-cm-profile-form textarea,
.nest-cm-review-form textarea,
.nest-cm-review-form select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font: inherit;
}

.nest-cm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
}

.nest-cm-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.nest-cm-card-image {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	background: #eef2ff;
	text-decoration: none;
}

.nest-cm-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nest-cm-card-body {
	padding: 12px;
}

.nest-cm-card-body h3 {
	margin: 6px 0;
	font-size: 1rem;
}

.nest-cm-card-meta,
.nest-cm-card-tax,
.nest-cm-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.nest-cm-card-meta span,
.nest-cm-card-tax span,
.nest-cm-detail-meta span,
.nest-cm-type {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 4px;
	background: #f3f4f6;
	color: #374151;
	font-size: .8rem;
}

.nest-cm-detail-header {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: start;
	margin-bottom: 16px;
}

.nest-cm-detail-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.nest-cm-owned-notice {
	margin: 0 0 14px;
	padding: 8px 10px;
	border-left: 3px solid #2563eb;
	background: #eff6ff;
	color: #1f2937;
}

.nest-cm-hero img,
.nest-cm-screenshots img,
.nest-cm-banner img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.nest-cm-screenshots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.nest-cm-section {
	margin-top: 24px;
}

.nest-cm-review {
	border-top: 1px solid #e5e7eb;
	padding: 12px 0;
}

.nest-cm-review-form,
.nest-cm-profile-form {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.nest-cm-profile-head {
	display: flex;
	gap: 16px;
	align-items: center;
	margin: 18px 0;
}

.nest-cm-profile-head img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 50%;
}

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

.nest-cm-table-scroll {
	width: 100%;
	overflow-x: auto;
}

.nest-cm-table th,
.nest-cm-table td {
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
	padding: 9px 8px;
	vertical-align: middle;
}

.nest-cm-public-table {
	min-width: 940px;
}

.nest-cm-marketplace-items-table {
	min-width: 860px;
}

.nest-cm-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.nest-cm-row-actions .nest-button {
	white-space: nowrap;
}

.nest-cm-muted {
	display: inline-block;
	margin-left: 6px;
	color: #6b7280;
	font-size: .85rem;
}

.nest-cm-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, .52);
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.nest-cm-modal.active {
	display: flex;
}

.nest-cm-modal-panel {
	position: relative;
	width: min(720px, 100%);
	max-height: 88vh;
	overflow: auto;
	background: #fff;
	border-radius: 8px;
	padding: 22px;
}

.nest-cm-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: none;
	font-size: 1.6rem;
	cursor: pointer;
}

.nest-cm-share-form {
	display: grid;
	gap: 10px;
}

.nest-cm-form-grid,
.nest-cm-modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.nest-cm-modal-actions {
	grid-template-columns: auto auto 1fr;
	align-items: center;
}

.nest-cm-msg {
	color: #2563eb;
}

@media (max-width: 720px) {
	.nest-cm-filters,
	.nest-cm-form-grid,
	.nest-cm-modal-actions,
	.nest-cm-detail-header {
	display: block;
	}

	.nest-cm-filters > *,
	.nest-cm-form-grid > *,
	.nest-cm-modal-actions > * {
	margin-bottom: 8px;
	}
}
