/**
 * PSDM Designer Layers polish — card rows, thumbnails, hover-revealed
 * actions, selected-row highlight. Vendor DOM untouched structurally; the
 * JS only adds .psdm-ly-* hooks. Scoped under ul.psdm-ly-on so the raw
 * vendor list never half-styles.
 */

#tab-layer ul.menu-layer.psdm-ly-on {
	padding: 10px;
	display: block;
}

#tab-layer ul.psdm-ly-on > li.psdm-ly-row {
	display: flex;
	align-items: center;
	gap: 4px;
	background: #fff;
	border: 1px solid var(--ax-gray-200, #e8eaee);
	border-radius: 10px;
	padding: 8px 10px;
	margin: 0 0 8px;
	cursor: pointer;
	transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

#tab-layer ul.psdm-ly-on > li.psdm-ly-row:hover {
	border-color: var(--ax-gray-300, #d5d8de);
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

/* Selected on canvas: green edge + tint. */
#tab-layer ul.psdm-ly-on > li.psdm-ly-row.psdm-ly-active {
	border-color: var(--ax-accent, #0b6623);
	box-shadow: 0 0 0 1px var(--ax-accent, #0b6623) inset;
	background: #f4faf5;
}

#tab-layer ul.psdm-ly-on > li.psdm-ly-row .item-layer-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-width: 0;
}

/* Type icon: rows WITH a thumbnail drop it (the thumb is the identity);
   icon-only rows (text) upgrade it into a tile matching the thumb size so
   every row shares one anatomy: [tile] [name] [actions]. */
#tab-layer ul.psdm-ly-on > li.psdm-ly-row.psdm-ly-hasthumb .item-left {
	display: none !important;
}

#tab-layer ul.psdm-ly-on > li.psdm-ly-row .item-left {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 7px;
	border: 1px solid var(--ax-gray-200, #e8eaee);
	background: var(--ax-gray-100, #eef0f3);
	color: var(--ax-gray-600, #5c6270);
	opacity: 1;
	margin: 0;
}

#tab-layer ul.psdm-ly-on > li.psdm-ly-row .item-left svg {
	width: 16px;
	height: 16px;
	display: block;
}

/* Object thumbnail on a checkerboard (transparency reads correctly). */
#tab-layer ul.psdm-ly-on .psdm-ly-thumb {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 7px;
	border: 1px solid var(--ax-gray-200, #e8eaee);
	background-image: none;
	/* Solid light ground: white artwork silhouettes stay visible; padding
	   via origin keeps renders off the tile edge. */
	background-color: var(--ax-gray-100, #eef0f3);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

#tab-layer ul.psdm-ly-on .psdm-ly-thumb.is-empty { display: none; }

/* Name field: quiet until hover/focus. */
#tab-layer ul.psdm-ly-on > li.psdm-ly-row .item-center {
	flex: 1 1 auto;
	min-width: 0;
}

#tab-layer ul.psdm-ly-on > li.psdm-ly-row .item-center input {
	width: 100%;
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	padding: 5px 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ax-gray-900, #17181d);
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: none;
}

#tab-layer ul.psdm-ly-on > li.psdm-ly-row .item-center input:hover {
	border-color: var(--ax-gray-200, #e8eaee);
	background: #fff;
}

#tab-layer ul.psdm-ly-on > li.psdm-ly-row .item-center input:focus {
	border-color: var(--ax-accent, #0b6623);
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 3px var(--ax-accent-ring, rgba(11, 102, 35, 0.18));
}

/* Actions: always present but muted, brighten on row hover (the mockup
   keeps them visible; state icons must never hide anyway). */
#tab-layer ul.psdm-ly-on > li.psdm-ly-row .item-right {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

#tab-layer ul.psdm-ly-on > li.psdm-ly-row .item-right .icon-nbd {
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 7px;
	color: var(--ax-gray-400, #b6bcc4);
	transition: background 0.12s ease, color 0.12s ease;
}

#tab-layer ul.psdm-ly-on > li.psdm-ly-row:hover .item-right .icon-nbd {
	color: var(--ax-gray-600, #5c6270);
}

#tab-layer ul.psdm-ly-on > li.psdm-ly-row .item-right .icon-nbd:hover {
	background: var(--ax-gray-100, #f2f3f6);
	color: var(--ax-gray-900, #17181d);
}

#tab-layer ul.psdm-ly-on > li.psdm-ly-row .item-right .icon-close:hover {
	color: #b42318;
	background: #fdf1f0;
}

/* The vendor marks the active row itself (activeLayer) with a teal ring —
   unify to the brand green regardless of which side flags it. */
#tab-layer ul.psdm-ly-on > li.psdm-ly-row.active,
#tab-layer ul.psdm-ly-on > li.psdm-ly-row.item-active {
	border-color: var(--ax-accent, #0b6623) !important;
	box-shadow: 0 0 0 1px var(--ax-accent, #0b6623) inset !important;
	background: #f4faf5 !important;
	outline: none !important;
}
