/* openplace legacy overlay / pixel-guide UI */

.opx-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.opx-canvas--active {
	pointer-events: auto;
	touch-action: none;
}

.opx-right-btn {
	flex: 0 0 auto;
	padding: 0;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
	animation: opx-right-btn-in 0.18s ease-out;
}

.opx-right-btn:active {
	transform: scale(0.94);
}

.opx-right-btn[hidden] {
	display: none !important;
}

.opx-right-btn--active {
	animation: opx-right-btn-pop 0.22s ease-out;
}

.opx-right-btn svg {
	width: 1.25rem;
	height: 1.25rem;
}

.opx-right-btn--fallback {
	position: fixed;
	right: 0.75rem;
	top: 18rem;
	z-index: 40;
}

@keyframes opx-right-btn-in {
	from {
		opacity: 0;
		transform: scale(0.85);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes opx-right-btn-pop {
	0% {
		transform: scale(0.9);
	}

	60% {
		transform: scale(1.06);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes opx-panel-in {
	from {
		opacity: 0;
		transform: translate(-50%, -48%) scale(0.96);
	}

	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

@keyframes opx-backdrop-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes opx-panel-out {
	from {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}

	to {
		opacity: 0;
		transform: translate(-50%, -46%) scale(0.97);
	}
}

@keyframes opx-backdrop-out {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

.opx-dialog {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-base-content);
	overflow: hidden;
}

.opx-dialog::backdrop {
	background: rgb(15 23 42 / 0.34);
	backdrop-filter: blur(2px);
}

.opx-dialog[open]::backdrop {
	animation: opx-backdrop-in 0.16s ease-out;
}

.opx-dialog[open] .opx-panel {
	animation: opx-panel-in 0.2s ease-out;
}

.opx-dialog.opx-closing[open] .opx-panel {
	animation: opx-panel-out 0.16s ease-in forwards;
}

.opx-dialog.opx-closing[open]::backdrop {
	animation: opx-backdrop-out 0.16s ease-in forwards;
}

.opx-panel {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	flex-direction: column;
	width: min(940px, calc(100vw - 1.5rem));
	max-height: min(86vh, 720px);
	border: 1px solid var(--color-base-300);
	border-radius: 1rem;
	background: var(--color-base-100);
	color: var(--color-base-content);
	box-shadow: 0 25px 50px -12px rgb(15 23 42 / 0.32), 0 8px 24px rgb(15 23 42 / 0.08);
	transform: translate(-50%, -50%);
	font-size: 0.9rem;
	overflow: hidden;
	transition: width 0.2s ease, max-height 0.2s ease;
}

.opx-dialog--detail .opx-panel {
	width: min(1240px, calc(100vw - 1.5rem));
	max-height: min(92vh, 860px);
}

.opx-header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 22px 18px;
}

.opx-header-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.opx-head-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: color-mix(in oklab, var(--color-base-content) 72%, transparent);
}

.opx-head-icon svg,
.opx-back svg {
	width: 100%;
	height: 100%;
}

.opx-title {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.opx-count {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--color-base-200);
	color: color-mix(in oklab, var(--color-base-content) 68%, transparent);
	font-size: 0.72rem;
	font-weight: 500;
	white-space: nowrap;
}

.opx-back {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: color-mix(in oklab, var(--color-base-content) 78%, transparent);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.opx-back:hover {
	background: var(--color-base-200);
	color: var(--color-base-content);
}

.opx-header-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
}

.opx-detail-header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.opx-detail-header-actions[hidden] {
	display: none;
}

.opx-header-text-btn {
	height: 32px;
	padding: 0 11px;
	border: 1px solid var(--color-base-300);
	border-radius: 999px;
	background: var(--color-base-100);
	color: var(--color-base-content);
	font-size: 0.72rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.opx-header-text-btn:hover {
	border-color: color-mix(in oklab, var(--color-primary) 30%, var(--color-base-300));
	background: var(--color-base-200);
}

.opx-header-text-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.opx-header-text-btn--primary {
	border-color: var(--color-primary);
	background: var(--color-primary);
	color: var(--color-primary-content);
}

.opx-header-text-btn--primary:not(:disabled):hover {
	border-color: color-mix(in oklab, var(--color-primary) 82%, black);
	background: color-mix(in oklab, var(--color-primary) 88%, black);
}

.opx-dialog--detail .opx-storage-pill,
.opx-dialog--detail .opx-header-btn--danger {
	display: none;
}

.opx-storage-pill {
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 5px 10px 5px 8px;
	border: 1px solid var(--color-base-300);
	border-radius: 999px;
	background: var(--color-base-200);
	color: color-mix(in oklab, var(--color-base-content) 72%, transparent);
	font-size: 0.72rem;
	white-space: nowrap;
}

.opx-storage-icon,
.opx-footer-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	color: var(--color-success);
}

.opx-storage-icon svg,
.opx-footer-icon svg {
	width: 100%;
	height: 100%;
}

.opx-header-btn {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: color-mix(in oklab, var(--color-base-content) 65%, transparent);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.opx-header-btn:hover {
	background: var(--color-base-200);
	color: var(--color-base-content);
}

.opx-header-btn--danger {
	color: var(--color-error);
}

.opx-header-btn--danger:hover {
	background: color-mix(in oklab, var(--color-error) 12%, transparent);
	color: var(--color-error);
}

.opx-header-btn:disabled {
	cursor: default;
	opacity: 0.35;
}

.opx-header-btn:disabled:hover {
	background: transparent;
}

.opx-header-btn svg {
	width: 16px;
	height: 16px;
}

.opx-close {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: color-mix(in oklab, var(--color-base-content) 72%, transparent);
	font: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.opx-close:hover {
	background: var(--color-base-200);
	color: var(--color-base-content);
}

.opx-toolbar {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	padding: 16px 18px;
	background: var(--color-base-200);
}

.opx-toolbar[hidden] {
	display: none;
}

.opx-search {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 8px;
	min-width: 0;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--color-base-300);
	border-radius: 10px;
	background: var(--color-base-100);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.opx-search:focus-within {
	border-color: color-mix(in oklab, var(--color-primary) 52%, var(--color-base-300));
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 11%, transparent);
}

.opx-search-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: color-mix(in oklab, var(--color-base-content) 52%, transparent);
}

.opx-search-icon svg {
	width: 100%;
	height: 100%;
}

.opx-search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.82rem;
}

.opx-search input::placeholder {
	color: color-mix(in oklab, var(--color-base-content) 48%, transparent);
}

.opx-search input::-webkit-search-cancel-button {
	display: none;
}

.opx-search-clear {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: color-mix(in oklab, var(--color-base-content) 60%, transparent);
	font: inherit;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.opx-search-clear:hover {
	background: var(--color-base-300);
	color: var(--color-base-content);
}

.opx-search-clear[hidden] {
	display: none;
}

.opx-toolbar-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
}

.opx-dropdown {
	position: relative;
}

.opx-tool-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: color-mix(in oklab, var(--color-base-content) 78%, transparent);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.opx-tool-btn:hover,
.opx-dropdown--open .opx-tool-btn {
	background: var(--color-base-300);
	color: var(--color-base-content);
}

.opx-tool-btn--active {
	background: color-mix(in oklab, var(--color-primary) 8%, transparent);
	color: var(--color-primary);
}

.opx-tool-icon {
	display: inline-flex;
	width: 15px;
	height: 15px;
}

.opx-tool-icon svg {
	width: 100%;
	height: 100%;
}

.opx-chevron {
	display: inline-flex;
	width: 13px;
	height: 13px;
	opacity: 0.55;
}

.opx-chevron svg {
	width: 100%;
	height: 100%;
}

.opx-filter-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--color-primary);
}

.opx-filter-dot[hidden] {
	display: none;
}

.opx-new-btn {
	display: flex;
	align-items: center;
	gap: 5px;
	height: 38px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: var(--color-primary);
	color: var(--color-primary-content);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 1px 2px rgb(15 23 42 / 0.1);
	transition: filter 0.15s ease, transform 0.15s ease;
}

.opx-new-btn:hover {
	filter: brightness(0.96);
}

.opx-new-btn:active {
	transform: scale(0.98);
}

.opx-new-icon {
	display: inline-flex;
	width: 15px;
	height: 15px;
}

.opx-new-icon svg {
	width: 100%;
	height: 100%;
}

.opx-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 10;
	display: none;
	min-width: 160px;
	padding: 6px;
	border: 1px solid var(--color-base-300);
	border-radius: 10px;
	background: var(--color-base-100);
	box-shadow: 0 12px 30px -12px rgb(15 23 42 / 0.35);
}

.opx-menu--open {
	display: block;
}

.opx-menu-item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 7px 8px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.8rem;
	text-align: left;
	cursor: pointer;
}

.opx-menu-item:hover {
	background: var(--color-base-200);
}

.opx-menu-item--active {
	background: color-mix(in oklab, var(--color-primary) 8%, transparent);
	color: var(--color-primary);
}

.opx-menu-check {
	flex: 0 0 auto;
	width: 12px;
	font-size: 0.75rem;
}

.opx-body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 0 18px 22px;
	overflow-y: auto;
}

.opx-dialog--detail .opx-body {
	padding: 0;
}

.opx-body::-webkit-scrollbar {
	width: 8px;
}

.opx-body::-webkit-scrollbar-thumb {
	border: 2px solid var(--color-base-100);
	border-radius: 999px;
	background: var(--color-base-300);
}

.opx-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: 12px;
}

.opx-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--color-base-300);
	border-radius: 13px;
	background: var(--color-base-100);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.opx-card:hover {
	border-color: color-mix(in oklab, var(--color-base-content) 22%, var(--color-base-300));
	box-shadow: 0 8px 20px -12px rgb(15 23 42 / 0.4);
	transform: translateY(-1px);
}

.opx-card:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.opx-card--active {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-primary) 42%, transparent);
}

.opx-card--hidden .opx-card-img {
	opacity: 0.45;
}

.opx-card--unplaced {
	border-style: dashed;
}

.opx-card--unplaced .opx-card-img {
	opacity: 0.35;
}

.opx-card-preview {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	place-items: center;
	height: 116px;
	padding: 10px;
	overflow: hidden;
	background:
		repeating-conic-gradient(color-mix(in oklab, var(--color-base-300) 62%, transparent) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px,
		var(--color-base-100);
}

.opx-card-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	image-rendering: pixelated;
}

.opx-card-placeholder {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	color: color-mix(in oklab, var(--color-base-content) 28%, transparent);
}

.opx-card-placeholder svg {
	width: 100%;
	height: 100%;
}

.opx-card-res {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 2px 6px;
	border-radius: 6px;
	background: color-mix(in oklab, var(--color-base-100) 86%, transparent);
	color: color-mix(in oklab, var(--color-base-content) 72%, transparent);
	font-size: 0.66rem;
	font-variant-numeric: tabular-nums;
	backdrop-filter: blur(4px);
}

.opx-card-badge {
	position: absolute;
	top: 8px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: color-mix(in oklab, var(--color-base-100) 86%, transparent);
	color: color-mix(in oklab, var(--color-base-content) 66%, transparent);
	backdrop-filter: blur(4px);
}

.opx-card-badge--hidden,
.opx-card-badge--unplaced,
.opx-card-badge--unpainted {
	left: 8px;
}

.opx-card-badge--unplaced,
.opx-card-badge--unpainted {
	color: color-mix(in oklab, var(--color-primary) 76%, var(--color-base-content));
}

.opx-card-badge--lock {
	right: 8px;
}

.opx-card-badge svg {
	width: 13px;
	height: 13px;
}

.opx-card-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	padding: 10px 11px 0;
}

.opx-card-name {
	overflow: hidden;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.opx-card-position {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	color: color-mix(in oklab, var(--color-base-content) 58%, transparent);
	font-size: 0.7rem;
}

.opx-card-position span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.opx-card-position-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
}

.opx-card-position-icon svg {
	width: 100%;
	height: 100%;
}

.opx-card-actions {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-top: auto;
	padding: 2px 8px 4px;
	opacity: 0.62;
	transition: opacity 0.15s ease;
}

.opx-card:hover .opx-card-actions,
.opx-card:focus-within .opx-card-actions {
	opacity: 1;
}

.opx-card-action {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: color-mix(in oklab, var(--color-base-content) 68%, transparent);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.opx-card-action:hover {
	background: var(--color-base-200);
	color: var(--color-base-content);
}

.opx-card-action:disabled {
	cursor: default;
	opacity: 0.3;
}

.opx-card-action:disabled:hover {
	background: transparent;
}

.opx-card-action--danger {
	color: var(--color-error);
}

.opx-card-action--danger:hover {
	background: color-mix(in oklab, var(--color-error) 12%, transparent);
	color: var(--color-error);
}

.opx-card-action svg {
	width: 14px;
	height: 14px;
}

.opx-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 240px;
	padding: 24px;
	text-align: center;
}

.opx-empty-icon {
	display: inline-flex;
	width: 48px;
	height: 48px;
	color: color-mix(in oklab, var(--color-base-content) 28%, transparent);
}

.opx-empty-icon svg {
	width: 100%;
	height: 100%;
}

.opx-empty-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
}

.opx-empty-text {
	max-width: 320px;
	margin: 0;
	color: color-mix(in oklab, var(--color-base-content) 62%, transparent);
	font-size: 0.8rem;
	line-height: 1.45;
}

.opx-empty-action {
	margin-top: 6px;
}

.opx-detail {
	display: grid;
	grid-template-columns: minmax(250px, 0.9fr) minmax(340px, 1.4fr) minmax(230px, 0.8fr);
	align-items: stretch;
	min-height: 0;
}

.opx-detail-side {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 18px;
	border-right: 1px solid var(--color-base-300);
	background: var(--color-base-200);
}

.opx-detail-preview-box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	place-items: center;
	width: 100%;
	height: clamp(220px, 36vh, 340px);
	min-height: 0;
	padding: 12px;
	overflow: hidden;
	border: 1px solid var(--color-base-300);
	border-radius: 12px;
	background:
		repeating-conic-gradient(color-mix(in oklab, var(--color-base-300) 62%, transparent) 0% 25%, transparent 0% 50%) 0 0 / 18px 18px,
		var(--color-base-100);
}

.opx-detail-status {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	padding: 3px 8px;
	border: 1px solid var(--color-base-300);
	border-radius: 999px;
	background: color-mix(in oklab, var(--color-base-100) 88%, transparent);
	color: color-mix(in oklab, var(--color-base-content) 68%, transparent);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	backdrop-filter: blur(4px);
}

.opx-detail-status--unplaced,
.opx-detail-status--unpainted {
	border-color: color-mix(in oklab, var(--color-primary) 32%, var(--color-base-300));
	background: color-mix(in oklab, var(--color-primary) 9%, var(--color-base-100));
	color: color-mix(in oklab, var(--color-primary) 82%, var(--color-base-content));
}

.opx-detail-status--visible {
	border-color: color-mix(in oklab, var(--color-primary) 28%, var(--color-base-300));
	color: color-mix(in oklab, var(--color-primary) 72%, var(--color-base-content));
}

.opx-detail-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	image-rendering: pixelated;
}

.opx-detail-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: color-mix(in oklab, var(--color-base-content) 45%, transparent);
	font-size: 0.75rem;
}

.opx-detail-placeholder svg {
	width: 36px;
	height: 36px;
	opacity: 0.4;
}

.opx-detail-info {
	padding: 12px;
	border: 1px solid var(--color-base-300);
	border-radius: 12px;
	background: var(--color-base-100);
}

.opx-detail-info-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 2px;
	color: color-mix(in oklab, var(--color-base-content) 58%, transparent);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.opx-detail-info-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-top: 1px solid color-mix(in oklab, var(--color-base-300) 72%, transparent);
	color: color-mix(in oklab, var(--color-base-content) 60%, transparent);
	font-size: 0.72rem;
}

.opx-detail-info-title + .opx-detail-info-row {
	border-top: 0;
}

.opx-detail-info-row strong {
	max-width: 62%;
	overflow: hidden;
	color: var(--color-base-content);
	font-weight: 600;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.opx-detail-badge {
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--color-base-200);
	color: color-mix(in oklab, var(--color-base-content) 68%, transparent);
	font-size: 0.66rem;
	letter-spacing: normal;
	text-transform: none;
}

.opx-detail-main {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 18px;
}

.opx-detail-tabs {
	display: flex;
	gap: 22px;
	border-bottom: 1px solid var(--color-base-300);
}

.opx-detail-tab {
	position: relative;
	margin-bottom: -1px;
	padding: 8px 2px 10px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: color-mix(in oklab, var(--color-base-content) 55%, transparent);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.opx-detail-tab:hover {
	color: var(--color-base-content);
}

.opx-detail-tab--active {
	border-bottom-color: var(--color-primary);
	color: var(--color-base-content);
}

.opx-detail-overview {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.opx-detail-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--color-base-300);
	border-radius: 12px;
	background: var(--color-base-100);
}

.opx-detail-section-label {
	color: color-mix(in oklab, var(--color-base-content) 58%, transparent);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.opx-detail-section-label--spaced {
	margin-top: 6px;
}

.opx-detail-resolution {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.1;
}

.opx-detail-resolution span {
	color: color-mix(in oklab, var(--color-base-content) 58%, transparent);
	font-size: 0.78rem;
	font-weight: 500;
}

.opx-detail-resolution-sub {
	color: color-mix(in oklab, var(--color-base-content) 58%, transparent);
	font-size: 0.72rem;
	font-variant-numeric: tabular-nums;
}

.opx-detail-actions-panel {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-self: start;
	min-width: 0;
	margin: 18px;
	padding: 14px;
	border: 1px solid var(--color-base-300);
	border-radius: 12px;
	background: var(--color-base-200);
}

.opx-action-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid var(--color-base-300);
	border-radius: 9px;
	background: var(--color-base-100);
	color: var(--color-base-content);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.opx-action-row:hover {
	border-color: color-mix(in oklab, var(--color-primary) 32%, var(--color-base-300));
	background: color-mix(in oklab, var(--color-primary) 4%, var(--color-base-100));
}

.opx-action-row:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.opx-action-row:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.opx-action-row--danger {
	border-color: color-mix(in oklab, var(--color-error) 24%, var(--color-base-300));
	color: var(--color-error);
}

.opx-action-row--danger:hover {
	background: color-mix(in oklab, var(--color-error) 7%, var(--color-base-100));
}

.opx-action-row-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: color-mix(in oklab, var(--color-base-content) 62%, transparent);
}

.opx-action-row--danger .opx-action-row-icon {
	color: currentColor;
}

.opx-action-row-icon svg {
	width: 100%;
	height: 100%;
}

.opx-action-row-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.opx-action-row-text > span {
	font-size: 0.78rem;
	font-weight: 600;
}

.opx-action-row-text small {
	color: color-mix(in oklab, var(--color-base-content) 55%, transparent);
	font-size: 0.68rem;
	font-weight: 400;
	line-height: 1.3;
}

.opx-action-row--danger .opx-action-row-text small {
	color: color-mix(in oklab, var(--color-error) 72%, transparent);
}

.opx-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.opx-field-label {
	font-size: 0.76rem;
	font-weight: 600;
}

.opx-field-hint {
	color: color-mix(in oklab, var(--color-base-content) 55%, transparent);
	font-size: 0.68rem;
	line-height: 1.4;
}

.opx-input {
	width: 100%;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--color-base-300);
	border-radius: 8px;
	outline: none;
	background: var(--color-base-100);
	color: inherit;
	font: inherit;
	font-size: 0.8rem;
}

.opx-input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 11%, transparent);
}

.opx-range {
	width: 100%;
	height: 1.25rem;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	accent-color: var(--color-primary);
	cursor: pointer;
}

.opx-range::-webkit-slider-runnable-track {
	height: 0.35rem;
	border-radius: 999px;
	background: var(--color-base-300);
}

.opx-range::-webkit-slider-thumb {
	width: 1rem;
	height: 1rem;
	margin-top: -0.325rem;
	border: 2px solid var(--color-base-100);
	border-radius: 999px;
	background: var(--color-primary);
	box-shadow: 0 1px 2px rgb(15 23 42 / 0.3);
	-webkit-appearance: none;
}

.opx-range::-moz-range-track {
	height: 0.35rem;
	border-radius: 999px;
	background: var(--color-base-300);
}

.opx-range::-moz-range-thumb {
	width: 0.75rem;
	height: 0.75rem;
	border: 2px solid var(--color-base-100);
	border-radius: 999px;
	background: var(--color-primary);
	box-shadow: 0 1px 2px rgb(15 23 42 / 0.3);
}

.opx-range:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.opx-range:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.opx-toggles {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 2px 0;
}

.opx-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	cursor: pointer;
}

.opx-toggle input {
	accent-color: var(--color-primary);
}

.opx-toggle--disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.opx-toggle--disabled input {
	cursor: not-allowed;
}

.opx-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.opx-action-btn {
	flex: 1 1 auto;
	min-width: max-content;
}

.opx-footer {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 18px;
	border-top: 1px solid var(--color-base-300);
	background: var(--color-base-200);
	color: color-mix(in oklab, var(--color-base-content) 62%, transparent);
	font-size: 0.72rem;
}

.opx-footer-storage {
	display: flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

@media (hover: none) {
	.opx-card-actions {
		opacity: 1;
	}
}

@media (max-width: 1080px) {
	.opx-detail {
		grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
	}

	.opx-detail-actions-panel {
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin: 0 18px 18px;
	}

	.opx-detail-actions-panel .opx-detail-section-label {
		grid-column: 1 / -1;
	}

	.opx-detail-actions-panel .opx-detail-section-label--spaced {
		margin-top: 0;
	}
}

@media (max-width: 760px) {
	.opx-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.opx-detail {
		grid-template-columns: minmax(0, 1fr);
	}

	.opx-detail-side {
		border-right: 0;
		border-bottom: 1px solid var(--color-base-300);
	}

	.opx-detail-main {
		padding: 16px;
	}

	.opx-detail-preview-box {
		height: 240px;
	}

	.opx-detail-actions-panel {
		grid-column: auto;
		grid-template-columns: minmax(0, 1fr);
		margin: 0 16px 16px;
	}
}

@media (max-width: 639px) {
	.opx-panel,
	.opx-dialog--detail .opx-panel {
		width: calc(100vw - 1rem);
		max-height: calc(100vh - 1rem);
		border-radius: 0.9rem;
	}

	.opx-header {
		padding: 12px 14px;
	}

	.opx-header-text-btn {
		padding: 0 8px;
		font-size: 0.68rem;
	}

	.opx-detail-header-actions {
		gap: 4px;
	}

	.opx-dialog--detail .opx-count {
		display: none;
	}

	.opx-detail-side,
	.opx-detail-main {
		padding: 14px;
	}

	.opx-detail-actions-panel {
		margin: 0 14px 14px;
		padding: 12px;
	}

	.opx-toolbar {
		flex-wrap: wrap;
		padding: 2px 14px 12px;
	}

	.opx-search {
		flex-basis: 100%;
	}

	.opx-toolbar-actions {
		width: 100%;
		justify-content: flex-end;
	}

	.opx-body {
		padding: 0 14px 14px;
	}

	.opx-gallery {
		grid-template-columns: minmax(0, 1fr);
	}

	.opx-storage-pill span:last-child {
		display: none;
	}

	.opx-storage-pill {
		padding: 7px;
	}

	.opx-footer {
		padding: 9px 14px;
	}
}

@media (max-width: 420px) {
	.opx-header {
		gap: 0.5rem;
	}

	.opx-header-text-btn {
		padding: 0 6px;
		font-size: 0.64rem;
	}
}

/* --------------------------------------------------------------------------
   Placement inspector
   The map stays live underneath this panel so the overlay can be dragged and
   resized with the eight handles while every setting updates in real time.
   -------------------------------------------------------------------------- */

.opx-placement {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 55;
	display: flex;
	flex-direction: column;
	width: clamp(360px, 42vw, 560px);
	height: 100vh;
	overflow: hidden;
	border-left: 1px solid var(--color-base-300);
	background: var(--color-base-100);
	color: var(--color-base-content);
	box-shadow: -24px 0 48px -34px rgb(15 23 42 / 0.45);
	font-size: 0.9rem;
	animation: opx-placement-in 0.18s ease-out;
}

.opx-placement[hidden] {
	display: none !important;
}

@keyframes opx-placement-in {
	from {
		opacity: 0;
		transform: translateX(18px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.opx-placement-header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid color-mix(in oklab, var(--color-base-300) 72%, transparent);
}

.opx-placement-file {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.opx-placement-thumb {
	display: block;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-base-300);
	border-radius: 9px;
	background-color: var(--color-base-200);
	background-image:
		linear-gradient(45deg, color-mix(in oklab, var(--color-base-content) 8%, transparent) 25%, transparent 25%),
		linear-gradient(-45deg, color-mix(in oklab, var(--color-base-content) 8%, transparent) 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, color-mix(in oklab, var(--color-base-content) 8%, transparent) 75%),
		linear-gradient(-45deg, transparent 75%, color-mix(in oklab, var(--color-base-content) 8%, transparent) 75%);
	background-position: 0 0, 0 4px, 4px -4px, -4px 0;
	background-size: 8px 8px;
	image-rendering: pixelated;
	object-fit: contain;
}

.opx-placement-file-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.opx-placement-name {
	overflow: hidden;
	color: var(--color-base-content);
	font-size: 0.82rem;
	font-weight: 650;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.opx-placement-meta {
	overflow: hidden;
	color: color-mix(in oklab, var(--color-base-content) 54%, transparent);
	font-size: 0.68rem;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.opx-placement-header-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 2px;
}

.opx-placement-history,
.opx-placement-collapse {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 32px;
	padding: 0 7px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: color-mix(in oklab, var(--color-base-content) 74%, transparent);
	font: inherit;
	font-size: 0.7rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.opx-placement-history svg,
.opx-placement-collapse svg {
	width: 15px;
	height: 15px;
}

.opx-placement-history:hover:not(:disabled),
.opx-placement-collapse:hover {
	background: var(--color-base-200);
	color: var(--color-base-content);
}

.opx-placement-history:disabled {
	cursor: default;
	opacity: 0.34;
}

.opx-placement-collapse {
	width: 32px;
	padding: 0;
}

.opx-placement-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 22px;
	min-height: 0;
	overflow-y: auto;
	padding: 18px;
}

.opx-placement--collapsed {
	height: auto;
	max-height: 100vh;
}

.opx-placement--collapsed .opx-placement-body,
.opx-placement--collapsed .opx-placement-footer {
	display: none;
}

.opx-placement--collapsed .opx-placement-collapse svg {
	transform: rotate(180deg);
}

.opx-placement-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.opx-placement-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.opx-placement-value {
	color: color-mix(in oklab, var(--color-base-content) 70%, transparent);
	font-size: 0.78rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

.opx-placement-body .opx-range {
	width: 100%;
}

.opx-placement-size-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.opx-placement-number {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	gap: 6px;
	min-width: 0;
	height: 38px;
	padding: 0 9px;
	border: 1px solid var(--color-base-300);
	border-radius: 8px;
	background: var(--color-base-100);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.opx-placement-number:focus-within {
	border-color: color-mix(in oklab, var(--color-primary) 64%, var(--color-base-300));
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-primary) 11%, transparent);
}

.opx-placement-number > span {
	flex: 0 0 auto;
	color: color-mix(in oklab, var(--color-base-content) 48%, transparent);
	font-size: 0.68rem;
	font-weight: 700;
}

.opx-placement-number input {
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--color-base-content);
	font: inherit;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
}

.opx-placement-lock {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--color-primary);
	border-radius: 8px;
	background: var(--color-primary);
	color: var(--color-primary-content);
	cursor: default;
}

.opx-placement-lock:disabled {
	opacity: 1;
}

.opx-placement-lock svg {
	width: 16px;
	height: 16px;
}

.opx-placement-unit {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--color-base-300);
	border-radius: 8px;
	color: color-mix(in oklab, var(--color-base-content) 58%, transparent);
	font-size: 0.68rem;
	font-weight: 650;
}

.opx-placement-presets {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
}

.opx-placement-presets button {
	height: 34px;
	padding: 0 4px;
	border: 1px solid var(--color-base-300);
	border-radius: 8px;
	background: var(--color-base-100);
	color: var(--color-base-content);
	font: inherit;
	font-size: 0.7rem;
	font-weight: 650;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.opx-placement-presets button:hover {
	border-color: color-mix(in oklab, var(--color-primary) 38%, var(--color-base-300));
	background: var(--color-base-200);
}

.opx-placement-preset--active {
	border-color: var(--color-primary) !important;
	background: var(--color-primary) !important;
	color: var(--color-primary-content) !important;
}

.opx-placement-hint {
	display: flex;
	align-items: center;
	gap: 6px;
	color: color-mix(in oklab, var(--color-base-content) 50%, transparent);
	font-size: 0.68rem;
	line-height: 1.35;
}

.opx-placement-hint svg {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

.opx-placement-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.opx-placement-field-label {
	color: color-mix(in oklab, var(--color-base-content) 68%, transparent);
	font-size: 0.7rem;
	font-weight: 650;
}

.opx-placement-dropdown {
	position: relative;
}

.opx-placement-select {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--color-base-300);
	border-radius: 8px;
	background: var(--color-base-100);
	color: var(--color-base-content);
	font: inherit;
	font-size: 0.78rem;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.opx-placement-select:hover,
.opx-placement-dropdown--open .opx-placement-select {
	border-color: color-mix(in oklab, var(--color-primary) 44%, var(--color-base-300));
	background: var(--color-base-200);
}

.opx-placement-select-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: color-mix(in oklab, var(--color-base-content) 56%, transparent);
}

.opx-placement-select-icon svg {
	width: 100%;
	height: 100%;
}

.opx-placement-select-label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.opx-placement-chevron {
	display: inline-flex;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	opacity: 0.5;
}

.opx-placement-chevron svg {
	width: 100%;
	height: 100%;
}

.opx-placement-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	z-index: 20;
	display: none;
	padding: 6px;
	border: 1px solid var(--color-base-300);
	border-radius: 10px;
	background: var(--color-base-100);
	box-shadow: 0 16px 36px -18px rgb(15 23 42 / 0.4);
}

.opx-placement-dropdown--open .opx-placement-menu {
	display: block;
}

.opx-placement-menu-item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 8px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--color-base-content);
	font: inherit;
	font-size: 0.76rem;
	text-align: left;
	cursor: pointer;
}

.opx-placement-menu-item:hover {
	background: var(--color-base-200);
}

.opx-placement-menu-item--active {
	background: color-mix(in oklab, var(--color-primary) 10%, transparent);
	color: var(--color-primary);
}

.opx-placement-menu-check {
	flex: 0 0 auto;
	width: 12px;
	font-size: 0.72rem;
}

.opx-placement-swatches {
	display: flex;
	flex: 0 0 auto;
	gap: 2px;
}

.opx-placement-swatch {
	width: 9px;
	height: 16px;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
}

.opx-placement-toggle-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding-top: 2px;
}

.opx-placement-switch {
	position: relative;
	flex: 0 0 auto;
	width: 38px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--color-base-300);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.opx-placement-switch-knob {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgb(15 23 42 / 0.24);
	transition: transform 0.15s ease;
}

.opx-placement-switch--on {
	background: var(--color-primary);
}

.opx-placement-switch--on .opx-placement-switch-knob {
	transform: translateX(16px);
}

.opx-placement-toggle-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.opx-placement-toggle-text > span {
	font-size: 0.78rem;
	font-weight: 550;
}

.opx-placement-toggle-text small {
	color: color-mix(in oklab, var(--color-base-content) 50%, transparent);
	font-size: 0.68rem;
	line-height: 1.35;
}

.opx-placement-transform {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
}

.opx-placement-transform button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 64px;
	padding: 8px 4px;
	border: 1px solid var(--color-base-300);
	border-radius: 8px;
	background: var(--color-base-100);
	color: var(--color-base-content);
	font: inherit;
	font-size: 0.62rem;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.opx-placement-transform button:hover {
	border-color: color-mix(in oklab, var(--color-primary) 38%, var(--color-base-300));
	background: var(--color-base-200);
}

.opx-placement-transform button[aria-pressed="true"],
.opx-placement-transform--active {
	border-color: var(--color-primary);
	background: color-mix(in oklab, var(--color-primary) 10%, var(--color-base-100));
	color: var(--color-primary);
}

.opx-placement-transform button svg {
	width: 17px;
	height: 17px;
}

.opx-placement-footer {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px;
	border-top: 1px solid var(--color-base-300);
	background: var(--color-base-100);
}

.opx-placement-cancel,
.opx-placement-apply {
	height: 38px;
	padding: 0 18px;
	border-radius: 8px;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 650;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.opx-placement-cancel {
	border: 1px solid var(--color-base-300);
	background: var(--color-base-100);
	color: var(--color-base-content);
}

.opx-placement-cancel:hover {
	background: var(--color-base-200);
}

.opx-placement-apply {
	min-width: 96px;
	border: 1px solid var(--color-primary);
	background: var(--color-primary);
	color: var(--color-primary-content);
}

.opx-placement-apply:hover {
	filter: brightness(0.96);
}

body.opx-placement-open .opx-right-btn {
	display: none !important;
}

@media (max-width: 900px) {
	.opx-placement {
		width: min(440px, 52vw);
	}

	.opx-placement-header {
		padding: 13px 14px;
	}

	.opx-placement-body {
		padding: 14px;
		gap: 19px;
	}

	.opx-placement-footer {
		padding: 12px 14px;
	}
}

@media (max-width: 760px) {
	.opx-placement {
		top: auto;
		bottom: 0;
		width: 100%;
		height: min(72vh, 620px);
		border-top: 1px solid var(--color-base-300);
		border-left: 0;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -24px 48px -34px rgb(15 23 42 / 0.45);
		animation: opx-placement-in-bottom 0.18s ease-out;
	}

	.opx-placement--collapsed {
		height: auto;
	}

	.opx-placement-history span {
		display: none;
	}

	.opx-placement-history {
		width: 32px;
		padding: 0;
	}

	.opx-placement-transform button {
		min-height: 58px;
		font-size: 0.58rem;
	}
}

@keyframes opx-placement-in-bottom {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}
