
.sep-team-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--team-columns, 4), 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width:1024px) {
	.sep-team-grid {
		grid-template-columns: repeat(var(--team-columns-tablet, 2), 1fr);
	}
}

@media (max-width:768px) {
	.sep-team-grid {
		grid-template-columns: repeat(var(--team-columns-mobile, 1), 1fr);
	}
}

.sep-team-grid--center {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.sep-team-grid--center .sep-team-member-card {
	width: calc(( 100% - ( var(--team-columns, 4) - 1 ) * 24px ) / var(--team-columns, 4));
}

@media (max-width:1024px) {
	.sep-team-grid--center .sep-team-member-card {
		width: calc(( 100% - ( var(--team-columns-tablet, 2) - 1 ) * 24px ) / var(--team-columns-tablet, 2));
	}
}

@media (max-width:768px) {
	.sep-team-grid--center .sep-team-member-card {
		width: calc(( 100% - ( var(--team-columns-mobile, 1) - 1 ) * 24px ) / var(--team-columns-mobile, 1));
	}
}

.sep-team-member-card {
	background: var(--surface-surface, inherit);
	border-radius: var(--core-styles-border-radius-card-grid, 8px);
	box-shadow: inset 0 0 0 var(--border-weight-initial, 1px) var(--surface-surface-border, #bccef5);
	box-sizing: border-box;
	color: inherit;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	padding: var(--core-styles-object-padding-med, 24px);
	position: relative;
	text-decoration: none;
	transition: all .3s ease;
}

.sep-team-member-card:hover {
	box-shadow: inset 0 0 0 var(--border-weight-hover, 1px) var(--surface-surface-border-on-hover, #36569b);
}

.sep-team-member-image {
	aspect-ratio: 1;
	margin-bottom: 20px;
	overflow: hidden;
}

.sep-team-member-image img {
	display: block;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	width: 100%;
}

.sep-team-member-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	position: relative;
}

.sep-team-member-name {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 8px;
}

.sep-team-member-role {
	font-size: 14px;
	line-height: 1.4;
	margin: 0 0 16px;
}

.sep-team-member-arrow {
	display: inline-block;
	display: flex;
	font-size: 20px;
	justify-self: flex-end;
	margin-left: auto;
	margin-top: auto;
	transition: transform .3s ease;
}

.sep-team-editor {
	background: #fafafa;
	border: 2px dashed #e0e0e0;
	border-radius: 8px;
	padding: 24px;
}

.sep-team-editor .sep-team-preview {
	min-height: 200px;
	position: relative;
}

.sep-team-editor .sep-team-placeholder {
	padding: 60px 20px;
	text-align: center;
}

.sep-team-editor .sep-team-placeholder p:first-child {
	font-size: 48px;
	margin: 0 0 16px;
}

.sep-team-editor .sep-team-placeholder p:last-child {
	font-size: 16px;
	margin: 0;
}

.sep-team-editor .sep-team-count {
	font-size: 14px;
	font-style: italic;
	margin-top: 24px;
	text-align: center;
}

.sep-team-editor .sep-team-mode-badge {
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	position: absolute;
	right: -12px;
	top: -12px;
	z-index: 10;
}

.team-sortable-list {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	max-height: 400px;
	overflow-y: auto;
}

.team-sortable-item {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
	cursor: move;
	display: flex;
	gap: 12px;
	padding: 12px;
	position: relative;
	transition: background .2s ease;
}

.team-sortable-item:last-child {
	border-bottom: none;
}

.team-sortable-item:hover {
	background: #f8f9fa;
}

.team-sortable-item.is-dragging {
	background: #e3f2fd;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
	z-index: 9999;
}

.team-drag-handle {
	color: #999;
	cursor: grab;
	flex-shrink: 0;
	font-size: 18px;
}

.team-drag-handle:hover {
	color: #666;
}

.team-drag-handle:active {
	cursor: grabbing;
}

.team-sortable-thumb {
	border-radius: 4px;
	flex-shrink: 0;
	height: 40px;
	-o-object-fit: cover;
	object-fit: cover;
	width: 40px;
}

.team-sortable-name {
	color: #1a1a1a;
	flex: 1;
	font-size: 14px;
	font-weight: 600;
}

.team-sortable-role {
	color: #666;
	flex-shrink: 0;
	font-size: 12px;
}

.team-sortable-badge {
	background: #4a5fdc;
	border-radius: 4px;
	color: #fff;
	flex-shrink: 0;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 8px;
	text-transform: uppercase;
}

.team-member-picker {
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 12px;
	margin-top: 12px;
	max-height: 400px;
	overflow-y: auto;
}

.team-member-picker-item {
	border-bottom: 1px solid #f0f0f0;
	padding: 8px 12px;
	transition: background .2s ease;
}

.team-member-picker-item:last-child {
	border-bottom: none;
}

.team-member-picker-item:hover {
	background: #f8f9fa;
}

.team-member-picker-item .components-base-control__field {
	margin: 0;
}

.team-member-picker-item .components-checkbox-control__label {
	align-items: center;
	display: flex;
	gap: 12px;
	width: 100%;
}

.team-member-picker-label {
	align-items: center;
	display: flex;
	flex: 1;
	gap: 12px;
}

.team-member-picker-label img {
	border-radius: 4px;
	flex-shrink: 0;
	height: 36px;
	-o-object-fit: cover;
	object-fit: cover;
	width: 36px;
}

.team-member-picker-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
}

.team-member-picker-info strong {
	color: #1a1a1a;
	font-size: 14px;
	font-weight: 600;
}

.team-member-picker-info span {
	color: #666;
	font-size: 12px;
}

.team-member-picker+.components-notice {
	margin-top: 0;
}

.components-radio-control__option {
	margin-bottom: 8px;
}
