.ii-viewer-backdrop {
	position: fixed;
	inset: 0;
	overflow: hidden;
	background: var(--ii-viewer-scrim);
	backdrop-filter: blur(24px) saturate(1.2);
	-webkit-backdrop-filter: blur(24px) saturate(1.2);
	z-index: 9990;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
	display: none;
}

.ii-viewer-backdrop.is-open {
	opacity: 1;
	pointer-events: all;
}

.ii-viewer-ambient {
	position: absolute;
	inset: -12%;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	filter: blur(60px) saturate(1.4) brightness(0.6);
	opacity: 0.9;
	transform: scale(1.15);
	pointer-events: none;
}

.ii-viewer-container {
	position: fixed;
	inset: 0;
	z-index: 9991;
	display: flex;
	gap: 12px;
	padding: 12px;
	box-sizing: border-box;
	opacity: 0;
	pointer-events: none;
	transform: scale(0.98);
	transition:
		opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
		transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ii-viewer-container.is-open {
	transform: none;
	opacity: 1;
	pointer-events: all;
}

.ii-viewer-left {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.ii-viewer-stage {
	flex: 1;
	min-height: 0;
	position: relative;
	overflow: hidden;
	cursor: grab;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	user-select: none;
	touch-action: none;
}

.ii-viewer-stage.is-dragging {
	cursor: grabbing;
}

.ii-viewer-stage.is-fit {
	cursor: default;
}

.ii-viewer-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 10px;
	transform-origin: center center;
	transition:
		transform 0.22s ease,
		opacity 0.22s ease;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.ii-viewer-img.is-transitioning {
	opacity: 0;
}

.ii-viewer-stage.is-dragging .ii-viewer-img {
	transition: none;
}

.ii-viewer-img-skeleton {
	position: absolute;
	inset: 0;
	border-radius: 10px;
	background: var(--ii-viewer-skeleton-base);
	background-size: 200% 100%;
	animation: iiSkeletonShimmer 1.8s infinite linear;
	display: none;
}

.ii-viewer-img-skeleton.is-visible {
	display: block;
}

.ii-viewer-version-toggle {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	display: inline-flex;
	padding: 3px;
	gap: 2px;
	border: 1px solid var(--ii-viewer-glass-border);
	border-radius: 9999px;
	background: var(--ii-viewer-glass-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	touch-action: manipulation;
}

.ii-viewer-version-toggle.is-hidden {
	display: none;
}

.ii-viewer-version-btn {
	padding: 5px 12px;
	border: 0;
	border-radius: 9999px;
	background: transparent;
	color: var(--ii-viewer-glass-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background 0.15s ease,
		color 0.15s ease;
}

.ii-viewer-version-btn:hover {
	color: #fff;
}

.ii-viewer-version-btn[aria-pressed='true'] {
	background: #fff;
	color: #18181b;
}

.ii-viewer-version-btn:focus-visible {
	outline: 2px solid var(--ii-accent);
	outline-offset: 1px;
}

.ii-viewer-zoom-bar {
	position: absolute;
	left: 50%;
	bottom: 14px;
	z-index: 4;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	border-radius: 12px;
	border: 1px solid var(--ii-viewer-glass-border);
	background: var(--ii-viewer-glass-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.ii-viewer-zoom-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 8px;
	border: none;
	background: transparent;
	color: var(--ii-viewer-glass-text);
	cursor: pointer;
	flex-shrink: 0;
	transition:
		background 0.15s ease,
		color 0.15s ease;
}

.ii-viewer-zoom-btn:hover {
	background: var(--ii-viewer-glass-hover-bg);
	color: #fff;
}

.ii-viewer-zoom-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	background: transparent;
}

.ii-viewer-zoom-btn svg {
	width: 18px;
	height: 18px;
}

.ii-viewer-zoom-pct {
	min-width: 56px;
	height: 32px;
	padding: 0 8px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--ii-viewer-glass-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	transition:
		background 0.15s ease,
		color 0.15s ease;
}

.ii-viewer-zoom-pct:hover {
	background: var(--ii-viewer-glass-hover-bg);
	color: #fff;
}

.ii-viewer-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 9999px;
	border: 1px solid var(--ii-viewer-glass-border);
	background: var(--ii-viewer-glass-bg);
	color: var(--ii-viewer-glass-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	transition:
		background 0.15s ease,
		color 0.15s ease,
		opacity 0.15s ease;
}

.ii-viewer-nav:hover {
	background: var(--ii-viewer-glass-hover-bg);
	color: #fff;
}

.ii-viewer-nav:disabled,
.ii-viewer-nav[disabled] {
	opacity: 0.2;
	cursor: not-allowed;
	pointer-events: none;
}

.ii-viewer-nav svg {
	width: 16px;
	height: 16px;
}

.ii-viewer-nav-prev {
	left: 12px;
}

.ii-viewer-nav-next {
	right: 12px;
}

@media (hover: hover) {
	.ii-viewer-left .ii-viewer-nav,
	.ii-viewer-left .ii-viewer-zoom-bar {
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
	}

	.ii-viewer-left:hover .ii-viewer-nav,
	.ii-viewer-left:hover .ii-viewer-zoom-bar,
	.ii-viewer-left:focus-within .ii-viewer-nav,
	.ii-viewer-left:focus-within .ii-viewer-zoom-bar {
		opacity: 1;
		pointer-events: auto;
	}

	.ii-viewer-left:hover .ii-viewer-nav:disabled {
		opacity: 0.2;
		pointer-events: none;
	}
}

.ii-viewer-sidebar {
	width: 360px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px;
	box-sizing: border-box;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid var(--ii-viewer-border);
	background: var(--ii-viewer-sidebar-bg);
	box-shadow: var(--ii-viewer-shadow);
}

.ii-viewer-sidebar-header {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 0 2px 0 4px;
	flex-shrink: 0;
}

.ii-viewer-close {
	flex-shrink: 0;
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 9999px;
	border: none;
	background: var(--ii-viewer-control-bg);
	color: var(--ii-viewer-control-text);
	cursor: default;
	transition:
		background 0.15s ease,
		color 0.15s ease;
}

.ii-viewer-close:hover {
	background: var(--ii-viewer-control-hover-bg);
	color: var(--ii-viewer-control-hover-text);
}

.ii-viewer-close svg {
	width: 14px;
	height: 14px;
}

.ii-viewer-tabs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 2px;
	padding: 3px;
	flex-shrink: 0;
	border-radius: 11px;
	background: var(--ii-viewer-control-bg);
}

.ii-viewer-tabs.is-single {
	display: none;
}

.ii-viewer-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	height: 32px;
	padding: 0 8px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--ii-viewer-text-secondary);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 500;
	cursor: pointer;
	transition:
		background 0.15s ease,
		color 0.15s ease,
		box-shadow 0.15s ease;
}

.ii-viewer-tab span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ii-viewer-tab svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.ii-viewer-tab:hover {
	color: var(--ii-viewer-text-primary);
}

.ii-viewer-tab[aria-selected='true'] {
	background: var(--ii-viewer-tab-active-bg);
	color: var(--ii-viewer-text-primary);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.ii-viewer-tab:focus-visible {
	outline: 2px solid var(--ii-accent);
	outline-offset: -2px;
}

.ii-viewer-tab.is-hidden {
	display: none;
}

.ii-viewer-sidebar-inner {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
}

.ii-viewer-tab-panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ii-viewer-tab-panel[hidden] {
	display: none;
}

.ii-viewer-card {
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	border: 1px solid var(--ii-viewer-border);
	background: var(--ii-viewer-control-bg);
	overflow: hidden;
}

.ii-viewer-card.is-hidden {
	display: none;
}

.ii-viewer-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 40px;
	padding: 6px 8px 6px 12px;
	box-sizing: border-box;
}

.ii-viewer-card-title {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 500;
	color: var(--ii-viewer-text-secondary);
}

.ii-viewer-card-title svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

.ii-viewer-card-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ii-viewer-card-body {
	margin: 0 6px 6px;
	padding: 10px 12px;
	border-radius: 9px;
	background: var(--ii-viewer-card-body-bg);
}

.ii-viewer-chip-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 26px;
	padding: 0 10px;
	border-radius: 7px;
	border: 1px solid var(--ii-viewer-control-border);
	background: transparent;
	color: var(--ii-viewer-text-primary);
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.155;
	cursor: pointer;
	transition:
		background 0.15s ease,
		border-color 0.15s ease;
}

.ii-viewer-chip-btn:hover {
	background: var(--ii-viewer-control-hover-bg);
	border-color: var(--ii-viewer-control-hover-border);
}

.ii-viewer-chip-btn-icon {
	display: flex;
}

.ii-viewer-chip-btn-icon svg {
	width: 13px;
	height: 13px;
}

.ii-viewer-chip-btn-icon.is-done {
	color: #10b981;
}

.ii-viewer-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border-radius: 7px;
	background: transparent;
	border: none;
	color: var(--ii-viewer-text-faint);
	cursor: pointer;
	transition:
		background 0.15s ease,
		color 0.15s ease;
}

.ii-viewer-icon-btn svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

.ii-viewer-icon-btn:hover {
	background: var(--ii-viewer-control-hover-bg);
	color: var(--ii-viewer-control-hover-text);
}

.ii-viewer-icon-btn.is-hidden {
	display: none;
}

.ii-viewer-prompt-section.is-hidden {
	display: none;
}

.ii-viewer-prompt-text-wrap {
	position: relative;
	min-height: 64px;
}

.ii-viewer-prompt-text {
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--ii-viewer-text-primary);
	margin: 0;
	overflow: hidden;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 8;
	line-clamp: 8;
	-webkit-box-orient: vertical;
}

.ii-viewer-prompt-text.is-expanded {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
}

.ii-viewer-prompt-text .ii-mention-pill {
	white-space: nowrap;
	vertical-align: middle;
	position: relative;
	top: -1px;
}

.ii-viewer-prompt-show-all {
	display: none;
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 1;
	align-items: flex-end;
	justify-content: center;
	min-height: 50px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ii-viewer-text-secondary);
	background: linear-gradient(to bottom, transparent, var(--ii-viewer-sidebar-bg) 72%);
	border: none;
	border-radius: var(--ii-radius-md);
	padding: 0 12px 6px;
	cursor: pointer;
	font-family: inherit;
}

.ii-viewer-prompt-show-all.is-visible {
	display: flex;
}

.ii-viewer-prompt-text.is-expanded + .ii-viewer-prompt-show-all {
	position: static;
	width: 100%;
	min-height: 0;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
}

.ii-viewer-prompt-assets {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
}

.ii-viewer-prompt-assets.is-hidden {
	display: none;
}

.ii-viewer-prompt-asset {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	padding: 0;
	border: none;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ii-viewer-control-bg);
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.ii-viewer-prompt-asset:hover {
	opacity: 0.85;
}

.ii-viewer-prompt-asset:focus-visible {
	outline: 2px solid var(--ii-accent);
	outline-offset: -2px;
}

.ii-viewer-prompt-asset img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.ii-viewer-details-toggle {
	width: 100%;
	border: none;
	background: transparent;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.ii-viewer-details-toggle:focus-visible {
	outline: 2px solid var(--ii-accent);
	outline-offset: -2px;
	border-radius: 12px;
}

.ii-viewer-details-chevron {
	display: flex;
	padding-right: 4px;
	color: var(--ii-viewer-text-faint);
	transform: rotate(180deg);
	transition: transform 0.2s ease;
}

.ii-viewer-details-chevron svg {
	width: 14px;
	height: 14px;
}

.ii-viewer-details.is-collapsed .ii-viewer-details-chevron {
	transform: none;
}

.ii-viewer-details.is-collapsed .ii-viewer-details-list {
	display: none;
}

.ii-viewer-details-list {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.ii-viewer-details-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 12.5px;
	line-height: 1.3;
}

.ii-viewer-details-row.is-hidden {
	display: none;
}

.ii-viewer-details-row dt {
	flex-shrink: 0;
	color: var(--ii-viewer-text-secondary);
}

.ii-viewer-details-row dd {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	margin: 0;
	color: var(--ii-viewer-text-primary);
	font-weight: 500;
	text-align: right;
}

.ii-viewer-details-row dd > span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ii-viewer-details-icon {
	display: flex;
	flex-shrink: 0;
}

.ii-viewer-details-icon svg {
	width: 14px;
	height: 14px;
}

.ii-viewer-section-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	font-weight: 500;
	color: var(--ii-viewer-text-secondary);
}

.ii-viewer-variants {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.ii-viewer-variant-thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	overflow: hidden;
	border-radius: 10px;
	border: 2px solid transparent;
	background: var(--ii-viewer-control-bg);
	cursor: pointer;
	opacity: 0.7;
	transition:
		border-color 0.16s ease,
		opacity 0.16s ease;
}

.ii-viewer-variant-thumb:hover {
	opacity: 0.92;
}

.ii-viewer-variant-thumb.is-active {
	border-color: var(--ii-accent);
	opacity: 1;
}

.ii-viewer-variant-thumb:focus-visible {
	outline: 2px solid var(--ii-accent);
	outline-offset: 2px;
}

.ii-viewer-variant-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.ii-viewer-variant-thumb .ii-variant-label {
	position: absolute;
	left: 6px;
	bottom: 6px;
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	pointer-events: none;
}

.ii-viewer-footer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
}

.ii-viewer-footer-row {
	display: flex;
	gap: 8px;
}

.ii-viewer-footer-row.is-hidden {
	display: none;
}

.ii-viewer-footer-btn {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px;
	box-sizing: border-box;
	border-radius: 10px;
	border: 1px solid var(--ii-viewer-control-border);
	background: var(--ii-viewer-control-bg);
	color: var(--ii-viewer-text-primary);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.155;
	text-decoration: none;
	cursor: pointer;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease,
		filter 0.15s ease;
}

.ii-viewer-footer-btn > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ii-viewer-footer-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.ii-viewer-footer-btn:hover,
.ii-viewer-footer-btn.is-popper-open {
	background: var(--ii-viewer-control-hover-bg);
	border-color: var(--ii-viewer-control-hover-border);
}

.ii-viewer-footer-btn:focus-visible {
	outline: 2px solid var(--ii-accent);
	outline-offset: 1px;
}

.ii-viewer-footer-btn.is-hidden {
	display: none;
}

.ii-viewer-footer-btn--primary {
	flex: none;
	height: 44px;
	border-color: transparent;
	background: var(--primary);
	color: var(--primary-foreground);
	font-weight: 600;
}

.ii-viewer-footer-btn--primary:hover {
	background: var(--primary);
	border-color: transparent;
	filter: brightness(0.92);
}

.ii-viewer-footer-icon-btn {
	flex: 0 0 40px;
	padding: 0;
}

.ii-viewer-find-products-btn svg {
	width: 20px;
	height: 20px;
}

.ii-viewer-download-btn {
	flex: 1 1 auto;
}

.ii-viewer-footer-btn.is-done {
	color: #10b981;
	border-color: rgba(16, 185, 129, 0.5);
	background: rgba(16, 185, 129, 0.08);
}

.ii-viewer-star-btn.is-hidden {
	display: none;
}

.ii-viewer-star-btn.is-starred {
	color: #f59e0b;
}

.ii-viewer-sidebar-skeleton {
	flex: 1;
	flex-direction: column;
	gap: 10px;
}

.ii-viewer-skel-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 12px;
	border-radius: 12px;
	border: 1px solid var(--ii-viewer-border);
}

.ii-viewer-skel-line {
	height: 12px;
	border-radius: 6px;
	background: var(--ii-viewer-sidebar-skeleton-base);
	background-size: 200% 100%;
	animation: iiSkeletonShimmer 1.8s infinite linear;
}

.ii-viewer-sidebar.is-loading .ii-viewer-sidebar-inner,
.ii-viewer-sidebar.is-loading .ii-viewer-footer,
.ii-viewer-sidebar.is-loading .ii-viewer-tabs {
	display: none;
}

.ii-viewer-sidebar.is-loading .ii-viewer-sidebar-skeleton {
	display: flex;
}

.ii-viewer-sidebar:not(.is-loading) .ii-viewer-sidebar-skeleton {
	display: none;
}

.ii-viewer-used-assets {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ii-viewer-used-assets.is-hidden {
	display: none;
}

.ii-viewer-skill-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ii-viewer-skill-item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	padding: 9px 10px;
	border: 1px solid var(--ii-viewer-border);
	border-radius: 9px;
	background: var(--ii-viewer-control-bg);
	color: var(--ii-viewer-text-primary);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition:
		background 0.15s ease,
		border-color 0.15s ease;
}

.ii-viewer-skill-item:hover {
	background: var(--ii-viewer-control-hover-bg);
	border-color: var(--ii-viewer-control-hover-border);
}

.ii-viewer-skill-item:focus-visible {
	outline: 2px solid var(--ii-accent);
	outline-offset: 1px;
}

.ii-viewer-skill-item.is-missing {
	color: var(--ii-viewer-text-faint);
	font-style: italic;
	cursor: default;
}

.ii-viewer-skill-icon {
	display: flex;
	flex-shrink: 0;
	color: var(--ii-viewer-text-secondary);
}

.ii-viewer-skill-name {
	flex: 1;
	min-width: 0;
	line-height: 1.155;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ii-viewer-skill-item > svg {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	color: var(--ii-viewer-text-faint);
}

.ii-viewer-asset-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
}

.ii-viewer-asset-item {
	display: flex;
	align-items: center;
	position: relative;
	flex-direction: column;
	width: 100%;
	gap: 3px;
	border-radius: 9px;
	border: 1px solid var(--ii-viewer-border);
	background: var(--ii-viewer-control-bg);
	text-decoration: none;
	cursor: pointer;
	transition:
		background 0.15s ease,
		border-color 0.15s ease;
}

.ii-viewer-asset-item:hover {
	background: var(--ii-viewer-control-hover-bg);
	border-color: var(--ii-viewer-control-hover-border);
}

.ii-viewer-asset-item.is-custom {
	cursor: default;
}

.ii-viewer-asset-thumb {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--ii-bg-primary);
}

.ii-viewer-asset-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.ii-viewer-asset-item .ii-viewer-asset-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0);
	transition: background 0.18s ease;
	pointer-events: none;
}

.ii-viewer-asset-item:hover .ii-viewer-asset-thumb::after {
	background: rgba(0, 0, 0, 0.25);
}

.dark .ii-viewer-asset-item:hover .ii-viewer-asset-thumb::after {
	background: rgba(0, 0, 0, 0.45);
}

.ii-viewer-asset-item .ii-asset-view-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.85);
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	cursor: pointer;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	opacity: 0;
	z-index: 5;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	transition:
		opacity 0.18s ease,
		transform 0.18s ease,
		background 0.15s ease;
}

.ii-viewer-asset-item:hover .ii-asset-view-btn {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.ii-viewer-asset-item .ii-asset-view-btn:hover {
	background: rgba(0, 0, 0, 0.8);
}

.ii-viewer-asset-item .ii-asset-view-btn svg {
	width: 16px;
	height: 16px;
}

.ii-viewer-asset-item .ii-asset-options-btn {
	position: absolute;
	top: 2px;
	right: 2px;
	z-index: 6;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	cursor: pointer;
	border-radius: var(--ii-radius-rounded, 999px);
	background: rgba(0, 0, 0, 0.48);
	color: #fff;
	opacity: 0;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition:
		background 0.15s ease,
		opacity 0.15s ease;
}

.ii-viewer-asset-item:hover .ii-asset-options-btn,
.ii-viewer-asset-item .ii-asset-options-btn.is-popper-open {
	opacity: 1;
}

.ii-viewer-asset-item .ii-asset-options-btn:hover {
	background: rgba(0, 0, 0, 0.72);
}


.ii-viewer-author {
	flex: 1;
	min-width: 0;
}

.ii-viewer-author.is-hidden {
	display: none;
}

.ii-viewer-author-card {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	text-decoration: none;
}

.ii-viewer-author-card-external {
	flex-shrink: 0;
	color: var(--ii-viewer-text-faint);
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.15s ease,
		visibility 0.15s ease;
}

.ii-viewer-author-card:hover .ii-viewer-author-card-external,
.ii-viewer-author-card:focus-visible .ii-viewer-author-card-external {
	opacity: 1;
	visibility: visible;
}

.ii-viewer-author-card-external svg {
	width: 14px;
	height: 14px;
}

.ii-viewer-author-avatar-wrap {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 9999px;
	overflow: hidden;
	background: var(--ii-viewer-author-avatar-bg);
	border: 1px solid var(--ii-viewer-author-avatar-border);
}

.ii-viewer-author-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ii-viewer-author-avatar-icon {
	display: none;
	color: var(--ii-viewer-author-avatar-icon);
	pointer-events: none;
}

.ii-viewer-author-avatar-wrap.has-fallback .ii-viewer-author-avatar {
	display: none;
}

.ii-viewer-author-avatar-wrap.has-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ii-viewer-author-avatar-wrap.has-fallback .ii-viewer-author-avatar-icon {
	display: block;
}

.ii-viewer-author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ii-viewer-author-name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ii-viewer-text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.ii-viewer-author-username {
	font-size: 11.5px;
	color: var(--ii-viewer-text-faint);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 900px) {
	.ii-viewer-container {
		flex-direction: column;
		gap: 0;
		padding: 0;
	}

	.ii-viewer-nav {
		width: 36px;
		height: 36px;
	}

	.ii-viewer-nav-prev {
		left: 8px;
	}

	.ii-viewer-nav-next {
		right: 8px;
	}

	.ii-viewer-sidebar {
		width: 100%;
		max-height: 52svh;
		border-radius: 18px 18px 0 0;
		border-bottom: none;
		padding-bottom: max(10px, env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.ii-viewer-container,
	.ii-viewer-backdrop,
	.ii-viewer-version-btn,
	.ii-viewer-variant-thumb,
	.ii-viewer-details-chevron,
	.ii-viewer-tab {
		transition: none;
	}
}
