/**
 * Build-time Tailwind for JOC Blockora Morph admin.
 * Compiled into build/admin.css — no CDN, WordPress.org safe.
 *
 * Design tokens + component CSS are imported from admin/index.js.
 */

@tailwind base;
@tailwind components;
@tailwind utilities;

/*
 * Beat wp-admin button chrome. Keep outside @layer so it wins the cascade.
 * Do not force line-height/height on icon-only controls — that squeezes Dashicons.
 * Do not clear background-image on primary/danger — gradients live there.
 */
.joc-blockora-morph-app button:not(.bm-icon-picker__item):not(.bm-welcome__cta):not(.bm-btn--primary):not(.bm-btn--danger):not(.bm-list-filters__clear):not(.bm-fill-field__gradient-swatch):not(.components-color-palette__custom-color-button):not(.bm-media-field__thumb):not(.bm-shell-foot__cta):not(.bm-nav-link.is-active):not(.bm-styled-select__toggle):not(.bm-preview-nav__arrow):not(.bm-preview-canvas-btn):not(.bm-preview-modal__sidebar-close):not(.bm-preview-modal__icon-btn):not(.bm-format-toolbar__btn):not(.bm-box-sides-pad__cell):not(.components-circular-option-picker__option):not(.components-tab-panel__tabs-item):not(.components-custom-gradient-picker__control-point-button):not(.components-custom-gradient-picker__insert-point-dropdown),
.joc-blockora-morph-app .bm-btn:not(.bm-btn--primary):not(.bm-btn--danger):not(.bm-preview-modal__icon-btn),
.joc-blockora-morph-app .bm-tw-btn:not(.bm-tw-btn--primary):not(.bm-tw-btn--danger),
.joc-blockora-morph-app .bm-nav-link:not(.is-active),
.joc-blockora-morph-app .bm-cat-link {
	appearance: none !important;
	-webkit-appearance: none !important;
	box-sizing: border-box !important;
	font-family: inherit !important;
	line-height: 1.25 !important;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	background-image: none !important;
	margin: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	vertical-align: middle;
}

/* Keep WP custom-color swatch clickable (empty button relies on fixed height). */
.joc-blockora-morph-app button.components-color-palette__custom-color-button,
.components-popover button.components-color-palette__custom-color-button {
	height: 64px !important;
	min-height: 64px !important;
	width: 100% !important;
	cursor: pointer !important;
}

/* Shared chrome for filled buttons (without wiping their gradient). */
.joc-blockora-morph-app .bm-btn.bm-btn--primary,
.joc-blockora-morph-app .bm-btn.bm-btn--danger,
.joc-blockora-morph-app .bm-tw-btn.bm-tw-btn--primary,
.joc-blockora-morph-app .bm-tw-btn.bm-tw-btn--danger,
.joc-blockora-morph-app button.bm-btn--primary,
.joc-blockora-morph-app button.bm-btn--danger {
	appearance: none !important;
	-webkit-appearance: none !important;
	box-sizing: border-box !important;
	font-family: inherit !important;
	line-height: 1.25 !important;
	text-decoration: none !important;
	text-shadow: none !important;
	margin: 0 !important;
	height: auto !important;
	vertical-align: middle;
}

/* Dashicons need equal box + line-height:1 or they look squeezed. */
.joc-blockora-morph-app .bm-dashicon,
.joc-blockora-morph-app .bm-icon-picker .dashicons {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	speak: never;
	line-height: 1 !important;
	vertical-align: middle;
}

.joc-blockora-morph-app .bm-dashicon--title {
	width: 24px !important;
	height: 24px !important;
	font-size: 24px !important;
}

.joc-blockora-morph-app .bm-dashicon--tile {
	width: 20px !important;
	height: 20px !important;
	font-size: 20px !important;
}

.joc-blockora-morph-app .bm-icon-picker__item {
	line-height: 1 !important;
	height: 44px !important;
	min-height: 44px !important;
	width: 44px !important;
	min-width: 44px !important;
	padding: 0 !important;
}

.joc-blockora-morph-app button:focus,
.joc-blockora-morph-app button:focus-visible,
.joc-blockora-morph-app .bm-btn:focus,
.joc-blockora-morph-app .bm-tw-btn:focus {
	outline: none !important;
	box-shadow: none !important;
}

@layer components {
	.bm-glass {
		border-bottom: 1px solid rgba(193, 199, 210, 0.3);
		box-shadow: 0 1px 2px rgba(53, 37, 205, 0.04);
		background: rgba(234, 238, 246, 0.8);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
	}

	/*
	 * Stitch bento-card motion:
	 * hover → translateY(-4px) + soft shadow
	 * press → scale(0.98) translateY(-2px)
	 */
	.bm-bento,
	.bento-card {
		display: flex;
		flex-direction: column;
		width: 100%;
		margin: 0;
		padding: 0 !important;
		overflow: hidden;
		border-radius: 1.125rem;
		border: 1px solid rgba(193, 199, 209, 0.3);
		background: #ffffff;
		box-shadow: 0 1px 2px rgba(53, 37, 205, 0.04);
		transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease;
		will-change: transform;
		cursor: pointer;
		appearance: none;
		-webkit-appearance: none;
		text-align: left;
		color: inherit;
		font: inherit;
		line-height: inherit;
	}

	.bm-bento:hover,
	.bento-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 10px 25px -5px rgba(53, 37, 205, 0.08);
	}

	.bm-bento:active,
	.bento-card:active,
	.bm-bento.is-pressed,
	.bento-card.is-pressed {
		transform: scale(0.98) translateY(-2px);
	}

	.bm-bento__media-wrap {
		position: relative;
		width: 100%;
		aspect-ratio: 16 / 9;
		overflow: hidden;
		background: var(--bm-color-surface-low, #f2f3ff);
		border-radius: 0;
	}

	.bm-bento__scrim {
		background: linear-gradient(
			180deg,
			rgba(15, 23, 42, 0.42) 0%,
			rgba(15, 23, 42, 0.16) 38%,
			transparent 70%
		);
	}

	.bm-bento__thumb-frame {
		display: block;
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		border: 0;
		pointer-events: none;
		background: #fff;
		transform-origin: top left;
	}

	.bm-bento__media {
		transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
	}

	.group:hover .bm-bento__media,
	.group:hover .bm-bento__thumb-frame {
		transform: scale(1.04);
	}

	.group:hover .bm-bento__thumb-frame {
		transform-origin: center center;
	}

	.bm-bento__overlay {
		opacity: 0;
		background: rgba(15, 23, 42, 0.28);
		backdrop-filter: blur(2px);
		transition: opacity 0.2s ease;
	}

	.group:hover .bm-bento__overlay {
		opacity: 1;
	}

	/* Primary nav styles live outside @layer (.bm-shell .bm-nav-link) */

	.bm-cat-link {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		border-radius: 0.5rem;
		padding: 0.5rem 1rem;
		text-align: left;
		font-size: 13px;
		background: transparent !important;
		color: #464555 !important;
		border: 0 !important;
		cursor: pointer;
		transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
	}

	.bm-cat-link.is-nested {
		padding-left: 2.25rem;
		font-size: 12px;
	}

	.bm-cat-link:hover {
		background: #f2f3ff !important;
	}

	.bm-cat-link.is-active {
		background: #f2f3ff !important;
		color: #3525cd !important;
		font-weight: 600;
	}

	.bm-cat-label {
		display: inline-flex;
		align-items: center;
		gap: 0.35rem;
		min-width: 0;
	}

	.bm-cat-pro {
		font-style: normal;
		font-size: 9px;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		padding: 0.1rem 0.3rem;
		border-radius: 0.25rem;
		background: rgba(53, 37, 205, 0.1);
		color: #3525cd;
	}

	.bm-cat-count {
		border-radius: 0.25rem;
		padding: 0.125rem 0.375rem;
		font-size: 10px;
		font-weight: 600;
		font-style: normal;
		background: #eaedff;
		color: #464555;
		flex-shrink: 0;
	}

	.bm-cat-link.is-active .bm-cat-count {
		background: rgba(53, 37, 205, 0.1);
		color: #3525cd;
	}

	.bm-cat-group {
		margin-top: 0.15rem;
	}

	.bm-cat-group__row {
		display: flex;
		align-items: center;
		gap: 0;
	}

	.bm-cat-group__row .bm-cat-link {
		flex: 1;
		min-width: 0;
		padding-left: 0.35rem;
	}

	.bm-cat-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 1.5rem;
		height: 1.5rem;
		margin-left: 0.35rem;
		flex-shrink: 0;
		border: 0;
		border-radius: 0.35rem;
		background: transparent;
		color: #717784;
		cursor: pointer;
	}

	.bm-cat-toggle--spacer {
		visibility: hidden;
		pointer-events: none;
	}

	.bm-cat-toggle:hover {
		background: #f2f3ff;
		color: #3525cd;
	}

	.bm-cat-toggle .dashicons {
		font-size: 14px;
		width: 14px;
		height: 14px;
	}

	/* Buttons / fields / badges / cards / empty → components/*.css */

	/* WordPress component style fields inside Blockora Morph panels */
	.bm-style-field {
		margin-bottom: 0.25rem;
	}

	.bm-style-field .components-base-control__label,
	.bm-style-field .components-input-control__label {
		font-size: 11px !important;
		font-weight: 600 !important;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: #464555 !important;
	}

	.bm-style-field .components-circular-option-picker__option-wrapper {
		margin: 0;
	}

	.bm-style-field .components-font-size-picker__controls {
		margin-bottom: 0;
	}

	.bm-style-field .components-color-palette {
		width: 100%;
	}

	.bm-style-field--spacing {
		margin-bottom: 0.25rem;
	}

	.bm-style-field__spacing-row {
		display: grid;
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		gap: 0.5rem;
		align-items: flex-start;
	}

	.bm-style-field__spacing-col .components-base-control,
	.bm-style-field__spacing-col .components-base-control__field {
		margin-bottom: 0 !important;
	}

	.bm-style-field__spacing-col .components-base-control__label,
	.bm-style-field__spacing-col .components-input-control__label {
		display: none !important;
	}

	.bm-style-field__spacing-col--preset .bm-searchable-select,
	.bm-style-field__spacing-col--unit .components-input-control__container {
		min-height: 40px !important;
	}

	.bm-style-field__spacing-col--unit .components-unit-control-wrapper,
	.bm-style-field__spacing-col--unit .components-input-control {
		width: 100%;
	}

	.bm-style-field--box-spacing .components-base-control__label {
		font-size: 11px !important;
		font-weight: 500 !important;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.bm-box-spacing {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
	}

	.bm-box-spacing__toolbar {
		display: flex;
		justify-content: flex-end;
		margin-top: -1.75rem;
		margin-bottom: -0.25rem;
	}

	.bm-box-spacing__link {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		min-width: 28px !important;
		width: 28px !important;
		height: 28px !important;
		padding: 0 !important;
		color: var(--bm-color-outline, #646970) !important;
	}

	.bm-box-spacing__link.is-linked,
	.bm-box-spacing__link.is-axial,
	.bm-box-spacing__link.is-sides,
	.bm-box-spacing__link[aria-pressed='true'] {
		color: var(--wp-admin-theme-color, #007cba) !important;
	}

	.bm-box-spacing__link .dashicons {
		width: 16px;
		height: 16px;
		font-size: 16px;
		line-height: 1;
	}

	.bm-box-spacing__row {
		display: grid;
		grid-template-columns: 28px minmax(0, 1fr);
		gap: 0.5rem;
		align-items: center;
	}

	.bm-box-spacing__row .bm-style-field__spacing-row {
		min-width: 0;
	}

	.bm-box-spacing__axis-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 40px;
		min-height: 40px;
		color: var(--bm-color-on-surface-variant, #50575e);
	}

	.bm-box-spacing__axis-icon svg {
		display: block;
	}

	.bm-box-spacing__row .components-unit-control-wrapper,
	.bm-box-spacing__row .components-input-control {
		width: 100%;
	}

	.bm-segment {
		display: inline-flex;
		padding: 4px;
		border-radius: 12px;
		background: var(--bm-color-surface-container, #eaedff);
		border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 70%, transparent);
		gap: 4px;
	}

	.bm-segment__btn {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 5px !important;
		min-height: 34px !important;
		border: 0 !important;
		background: transparent !important;
		color: var(--bm-color-on-surface-variant, #464555) !important;
		border-radius: 9px !important;
		padding: 6px 12px !important;
		font-size: 12px !important;
		font-weight: 600 !important;
		line-height: 1.2 !important;
		cursor: pointer;
		transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
		box-shadow: none !important;
	}

	.bm-segment__btn:hover {
		color: var(--bm-color-on-surface, #131b2e) !important;
		background: color-mix(in srgb, #fff 70%, transparent) !important;
	}

	.bm-segment__btn:active {
		transform: scale(0.97);
	}

	.bm-segment__btn.is-active {
		background: var(--bm-color-primary, #3525cd) !important;
		color: var(--bm-color-on-primary, #fff) !important;
		font-weight: 600 !important;
		box-shadow: 0 3px 10px color-mix(in srgb, var(--bm-color-primary, #3525cd) 26%, transparent) !important;
	}

	.bm-stat-card {
		border-radius: 0.75rem;
		border: 1px solid rgba(193, 199, 209, 0.3);
		background: #ffffff;
		padding: 1.25rem 1.35rem;
		box-shadow: 0 1px 2px rgba(53, 37, 205, 0.04);
		transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease;
		will-change: transform;
	}

	.bm-stat-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 10px 25px -5px rgba(53, 37, 205, 0.08);
	}

	.bm-stat-card:active {
		transform: scale(0.98) translateY(-2px);
	}

	.bm-stat-icon {
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		border-radius: 0.5rem;
		background: rgba(53, 37, 205, 0.1);
		color: #3525cd;
		margin-bottom: 0.85rem;
	}

	/* Page / modal entrance — soft rise */
	.bm-rise {
		animation: bm-stitch-rise 0.35s cubic-bezier(0.2, 0, 0, 1) both;
	}

	.bm-fade {
		animation: bm-stitch-fade 0.2s ease both;
	}

	.bm-chevron-bounce {
		transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
	}

	.group:hover .bm-chevron-bounce {
		transform: translateY(4px);
	}
}

@keyframes bm-stitch-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes bm-stitch-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/*
 * Color picker toggle + popover (outside @layer so Tailwind won't purge,
 * and so portaled popovers still get panel styles).
 */
.joc-blockora-morph-app .bm-color-dropdown {
	display: block;
	width: 100%;
}

.joc-blockora-morph-app .bm-color-dropdown__toggle {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	gap: 0.65rem;
	width: 100% !important;
	min-height: 40px !important;
	padding: 0.35rem 0.75rem !important;
	border: 1px solid #c7c4d8 !important;
	border-radius: 0.5rem !important;
	background: #fff !important;
	box-shadow: none !important;
	text-align: left;
}

.joc-blockora-morph-app .bm-color-dropdown__toggle:hover,
.joc-blockora-morph-app .bm-color-dropdown__toggle:focus {
	border-color: #3525cd !important;
	color: #131b2e !important;
}

.joc-blockora-morph-app .bm-color-dropdown__indicator {
	display: inline-block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 50%;
}

.joc-blockora-morph-app .bm-color-dropdown__label {
	font-size: 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: #131b2e;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bm-color-dropdown__content .bm-color-dropdown__panel,
.components-popover .bm-color-dropdown__panel {
	min-width: 260px;
	max-width: 280px;
	padding: 4px 0;
}

.bm-color-dropdown__content .components-circular-option-picker,
.components-popover .bm-color-dropdown__panel .components-circular-option-picker {
	width: 100%;
}

.bm-color-dropdown__content .components-color-palette__custom-color-wrapper,
.components-popover .bm-color-dropdown__panel .components-color-palette__custom-color-wrapper {
	margin-top: 8px;
}

/* ---------- Block editor shell ---------- */
.joc-blockora-morph-app .bm-editor-shell {
	background:
		radial-gradient(1200px 480px at 10% -10%, rgba(0, 88, 145, 0.08), transparent 60%),
		radial-gradient(900px 420px at 100% 0%, rgba(53, 37, 205, 0.06), transparent 55%),
		#faf8ff;
}

.joc-blockora-morph-app .bm-editor-topbar {
	z-index: 20;
	border-bottom: 1px solid rgba(193, 199, 209, 0.35);
}

.joc-blockora-morph-app .bm-editor-topbar__start {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-shrink: 0;
	min-width: 0;
}

.joc-blockora-morph-app .bm-editor-topbar__brand {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	cursor: pointer;
	line-height: 0;
}

.joc-blockora-morph-app .bm-editor-topbar__brand:hover,
.joc-blockora-morph-app .bm-editor-topbar__brand:focus-visible {
	background: none !important;
	box-shadow: none !important;
	opacity: 0.88;
}

.joc-blockora-morph-app .bm-editor-topbar__brand:focus-visible {
	outline: 2px solid var(--bm-color-primary, #3525cd);
	outline-offset: 3px;
}

.joc-blockora-morph-app .bm-editor-topbar__title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	min-width: 0;
}

.joc-blockora-morph-app .bm-editor-topbar__back {
	display: inline-flex !important;
	align-items: center;
	gap: 0.2rem;
	margin: 0.1rem 0 0 !important;
	padding: 0.1rem 0.2rem 0.1rem 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--bm-color-on-surface-variant, #434654) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	cursor: pointer;
}

.joc-blockora-morph-app .bm-editor-topbar__back .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
}

.joc-blockora-morph-app .bm-editor-topbar__back:hover,
.joc-blockora-morph-app .bm-editor-topbar__back:focus-visible {
	background: none !important;
	box-shadow: none !important;
	color: var(--bm-color-primary, #3525cd) !important;
}

.joc-blockora-morph-app .bm-editor-topbar__back:focus-visible {
	outline: 2px solid var(--bm-color-primary, #3525cd);
	outline-offset: 2px;
}

.joc-blockora-morph-app .bm-editor-topbar__logo {
	display: block;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	padding: 0;
	box-sizing: border-box;
	border-radius: 0;
	object-fit: contain;
	background: none;
	border: 0;
	box-shadow: none;
}

.joc-blockora-morph-app .bm-editor-pos {
	min-width: 132px;
}

.joc-blockora-morph-app .bm-editor-pos .bm-seg-tab {
	min-height: 32px !important;
	padding: 6px 8px !important;
}

.joc-blockora-morph-app .bm-editor-body {
	display: flex;
	min-height: 0;
	flex: 1;
}

.joc-blockora-morph-app .bm-editor-body.is-right {
	flex-direction: row;
}

.joc-blockora-morph-app .bm-editor-body.is-left {
	flex-direction: row-reverse;
}

.joc-blockora-morph-app .bm-editor-body.is-bottom {
	flex-direction: column;
}

.joc-blockora-morph-app .bm-editor-save-fab {
	position: absolute;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 30;
	display: inline-flex !important;
	align-items: center;
	gap: 0.5rem;
	min-height: 48px !important;
	padding: 0.75rem 1.25rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #3525cd !important;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	box-shadow:
		0 10px 28px -8px rgba(53, 37, 205, 0.55),
		0 2px 6px rgba(53, 37, 205, 0.2) !important;
	cursor: pointer;
	transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease,
		background 0.2s ease;
}

.joc-blockora-morph-app .bm-editor-save-fab:hover:not(:disabled) {
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow:
		0 14px 32px -8px rgba(53, 37, 205, 0.6),
		0 4px 10px rgba(53, 37, 205, 0.22) !important;
}

.joc-blockora-morph-app .bm-editor-save-fab:active:not(:disabled) {
	transform: scale(0.97);
}

.joc-blockora-morph-app .bm-editor-save-fab:disabled {
	opacity: 0.7;
	cursor: wait;
}

.joc-blockora-morph-app .bm-editor-save-fab.is-saved {
	background: #15803d !important;
}

.joc-blockora-morph-app .bm-editor-save-fab .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.joc-blockora-morph-app .bm-editor-resizer {
	flex-shrink: 0;
	background: rgba(193, 199, 209, 0.35);
	transition: background 0.15s ease;
}

.joc-blockora-morph-app .bm-editor-resizer:hover {
	background: rgba(53, 37, 205, 0.35);
}

.joc-blockora-morph-app .bm-editor-resizer.is-vertical {
	width: 5px;
	cursor: col-resize;
}

.joc-blockora-morph-app .bm-editor-resizer.is-horizontal {
	height: 5px;
	cursor: row-resize;
}

.joc-blockora-morph-app .bm-editor-panel {
	background: rgba(255, 255, 255, 0.92);
	box-shadow: -8px 0 24px -16px rgba(53, 37, 205, 0.18);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.joc-blockora-morph-app .bm-editor-body.is-left .bm-editor-panel {
	box-shadow: 8px 0 24px -16px rgba(53, 37, 205, 0.18);
}

.joc-blockora-morph-app .bm-editor-body.is-bottom .bm-editor-panel {
	box-shadow: 0 -8px 24px -16px rgba(53, 37, 205, 0.18);
}

.joc-blockora-morph-app .bm-editor-body.is-right .bm-editor-panel,
.joc-blockora-morph-app .bm-editor-body.is-left .bm-editor-panel {
	border-left: 1px solid rgba(193, 199, 209, 0.35);
}

.joc-blockora-morph-app .bm-editor-body.is-left .bm-editor-panel {
	border-left: 0;
	border-right: 1px solid rgba(193, 199, 209, 0.35);
}

.joc-blockora-morph-app .bm-editor-body.is-bottom .bm-editor-panel {
	border-top: 1px solid rgba(193, 199, 209, 0.35);
}

/* Editor panel tabs: see components/seg-tabs.css */

.joc-blockora-morph-app .bm-editor-panel__body {
	padding: 1.1rem 1rem 1.5rem;
	min-width: 0;
	max-width: 100%;
	overflow-x: clip;
	box-sizing: border-box;
}

/* Keep WP field controls inside the editor panel width. */
.joc-blockora-morph-app .bm-editor-panel__body .bm-field,
.joc-blockora-morph-app .bm-editor-panel__body .bm-field-wrap,
.joc-blockora-morph-app .bm-editor-panel__body .bm-inspector-stack,
.joc-blockora-morph-app .bm-editor-panel__body .bm-inspector-card,
.joc-blockora-morph-app .bm-editor-panel__body .components-base-control,
.joc-blockora-morph-app .bm-editor-panel__body .components-base-control__field,
.joc-blockora-morph-app .bm-editor-panel__body .components-text-control__input,
.joc-blockora-morph-app .bm-editor-panel__body .components-textarea-control__input,
.joc-blockora-morph-app .bm-editor-panel__body .components-input-control,
.joc-blockora-morph-app .bm-editor-panel__body .components-input-control__container,
.joc-blockora-morph-app .bm-editor-panel__body .components-input-control__input,
.joc-blockora-morph-app .bm-editor-panel__body .components-toggle-control,
.joc-blockora-morph-app .bm-editor-panel__body .bm-link-field,
.joc-blockora-morph-app .bm-editor-panel__body .bm-media-field,
.joc-blockora-morph-app .bm-editor-panel__body .bm-repeater,
.joc-blockora-morph-app .bm-editor-panel__body .bm-text-wysiwyg {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.joc-blockora-morph-app .bm-editor-panel__body .components-text-control__input,
.joc-blockora-morph-app .bm-editor-panel__body .components-textarea-control__input,
.joc-blockora-morph-app .bm-editor-panel__body .components-input-control__input {
	width: 100% !important;
}

.joc-blockora-morph-app .bm-editor-hint {
	padding: 0.65rem 0.75rem;
	border-radius: 0.5rem;
	background: rgba(53, 37, 205, 0.06);
	border: 1px solid rgba(53, 37, 205, 0.08);
	font-size: 12px;
	line-height: 1.45;
	color: #464555;
}

/* Global settings sub-navigation — segmented (see also seg-tabs.css) */
.joc-blockora-morph-app .bm-settings-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	margin: 0 0 1.5rem;
	padding: 4px;
	width: 100%;
	max-width: 360px;
	border-radius: 12px;
	background: var(--bm-color-surface-container, #eaedff);
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 70%, transparent);
}

.joc-blockora-morph-app .bm-settings-tab {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 36px !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 8px 12px !important;
	border: 0 !important;
	border-radius: 9px !important;
	background: transparent !important;
	color: var(--bm-color-on-surface-variant) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	box-shadow: none !important;
}

.joc-blockora-morph-app .bm-settings-tab:hover {
	color: var(--bm-color-on-surface) !important;
	background: color-mix(in srgb, #fff 55%, transparent) !important;
}

.joc-blockora-morph-app .bm-settings-tab.is-active {
	background: var(--bm-color-primary) !important;
	color: var(--bm-color-on-primary, #fff) !important;
	box-shadow: 0 4px 12px color-mix(in srgb, var(--bm-color-primary) 28%, transparent) !important;
}

/* General → Brand / Icons secondary nav */
.joc-blockora-morph-app .bm-general-shell {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: stretch;
}

.joc-blockora-morph-app .bm-general-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0.45rem;
	border-radius: 16px;
	background:
		linear-gradient(
			145deg,
			color-mix(in srgb, var(--bm-color-surface-container, #eaedff) 88%, #fff) 0%,
			var(--bm-color-surface-lowest, #fff) 100%
		);
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 55%, transparent);
	box-shadow: var(--bm-shadow-sm, 0 1px 2px rgba(19, 27, 46, 0.04));
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.joc-blockora-morph-app .bm-general-nav__item {
	display: flex !important;
	align-items: center !important;
	gap: 0.75rem !important;
	flex: 1 1 0;
	min-width: 10.5rem;
	margin: 0 !important;
	padding: 0.7rem 0.85rem !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: transparent !important;
	color: var(--bm-color-on-surface-variant) !important;
	text-align: left !important;
	cursor: pointer;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
	box-shadow: none !important;
}

@media (max-width: 639px) {
	.joc-blockora-morph-app .bm-general-nav {
		flex-wrap: nowrap;
		gap: 0.4rem;
		padding: 0.35rem;
	}

	.joc-blockora-morph-app .bm-general-nav__item {
		flex: 1 1 auto;
		min-width: 8.5rem;
		padding: 0.55rem 0.65rem !important;
		gap: 0.5rem !important;
	}

	.joc-blockora-morph-app .bm-general-nav__icon {
		width: 1.9rem;
		height: 1.9rem;
		border-radius: 0.55rem;
	}

	.joc-blockora-morph-app .bm-general-nav__label {
		font-size: 0.84rem;
	}

	.joc-blockora-morph-app .bm-general-nav__hint {
		display: none;
	}
}

.joc-blockora-morph-app .bm-general-nav__item:hover {
	background: color-mix(in srgb, #fff 70%, transparent) !important;
	color: var(--bm-color-on-surface) !important;
}

.joc-blockora-morph-app .bm-general-nav__item.is-active {
	background: var(--bm-color-primary) !important;
	color: var(--bm-color-on-primary, #fff) !important;
	box-shadow: 0 8px 20px color-mix(in srgb, var(--bm-color-primary) 28%, transparent) !important;
}

.joc-blockora-morph-app .bm-general-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	flex-shrink: 0;
	border-radius: 10px;
	background: color-mix(in srgb, var(--bm-color-primary) 10%, #fff);
	color: var(--bm-color-primary);
}

.joc-blockora-morph-app .bm-general-nav__item.is-active .bm-general-nav__icon {
	background: color-mix(in srgb, #fff 22%, transparent);
	color: inherit;
}

.joc-blockora-morph-app .bm-general-nav__icon .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

.joc-blockora-morph-app .bm-general-nav__copy {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.joc-blockora-morph-app .bm-general-nav__label {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.joc-blockora-morph-app .bm-general-nav__hint {
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.3;
	opacity: 0.72;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.joc-blockora-morph-app .bm-general-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.joc-blockora-morph-app .bm-general-main__header {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1rem;
}

@media (min-width: 640px) {
	.joc-blockora-morph-app .bm-general-main__header {
		flex-direction: row;
		align-items: flex-start;
	}
}

.joc-blockora-morph-app .bm-general-main__heading {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.joc-blockora-morph-app .bm-general-nav__cats {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.35rem;
	width: 100%;
	margin-top: 0.15rem;
	padding-top: 0.55rem;
	border-top: 1px solid
		color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 45%, transparent);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.joc-blockora-morph-app .bm-general-nav__cats-label {
	display: none;
}

.joc-blockora-morph-app .bm-general-nav__cats .bm-cat-link {
	flex: 0 0 auto;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: space-between;
	gap: 0.4rem !important;
	padding: 0.4rem 0.65rem !important;
	border-radius: 999px !important;
	background: color-mix(in srgb, #fff 70%, transparent) !important;
	color: var(--bm-color-on-surface-variant, #464555) !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	white-space: nowrap;
}

.joc-blockora-morph-app .bm-general-nav__cats .bm-cat-link:hover {
	background: color-mix(in srgb, var(--bm-color-primary) 8%, #fff) !important;
	color: var(--bm-color-primary) !important;
}

.joc-blockora-morph-app .bm-general-nav__cats .bm-cat-link.is-active {
	background: color-mix(in srgb, var(--bm-color-primary) 14%, #fff) !important;
	color: var(--bm-color-primary) !important;
}

.joc-blockora-morph-app .bm-general-nav__cats .bm-cat-count {
	min-width: 1.25rem;
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bm-color-primary) 12%, #fff);
	color: var(--bm-color-primary);
	font-size: 0.68rem;
	font-style: normal;
	font-weight: 700;
	text-align: center;
	line-height: 1.3;
}

.joc-blockora-morph-app .bm-general-nav__cats .bm-cat-link.is-active .bm-cat-count {
	background: var(--bm-color-primary);
	color: var(--bm-color-on-primary, #fff);
}

@media (min-width: 900px) {
	.joc-blockora-morph-app .bm-general-shell {
		display: grid;
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 1.5rem;
		align-items: start;
	}

	.joc-blockora-morph-app .bm-general-nav {
		flex-direction: column;
		position: sticky;
		top: 2rem;
		overflow: visible;
	}

	.joc-blockora-morph-app .bm-general-nav__item {
		flex: 0 0 auto;
		min-width: 0;
		width: 100%;
	}

	.joc-blockora-morph-app .bm-general-nav__cats {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
		gap: 0.2rem;
		margin-top: 0.85rem;
		padding-top: 0.85rem;
		overflow: visible;
	}

	.joc-blockora-morph-app .bm-general-nav__cats-label {
		display: block;
		margin: 0 0 0.35rem;
		padding: 0 0.35rem;
		font-size: 0.68rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--bm-color-on-surface-variant, #464555);
	}

	.joc-blockora-morph-app .bm-general-nav__cats .bm-cat-link {
		width: 100%;
		padding: 0.55rem 0.7rem !important;
		border-radius: 10px !important;
		background: color-mix(in srgb, #fff 55%, transparent) !important;
		color: var(--bm-color-on-surface, #131b2e) !important;
		font-size: 0.8125rem !important;
	}

	.joc-blockora-morph-app .bm-general-nav__cats .bm-cat-link.is-active {
		box-shadow: inset 0 0 0 1px
			color-mix(in srgb, var(--bm-color-primary) 28%, transparent) !important;
	}

	.joc-blockora-morph-app .bm-general-nav__cats .bm-cat-count {
		min-width: 1.5rem;
		padding: 0.12rem 0.45rem;
		font-size: 0.7rem;
	}
}

.joc-blockora-morph-app .bm-system-panel {
	padding: 0;
	overflow: hidden;
}

.joc-blockora-morph-app .bm-system-feature {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: 1.35rem 1.4rem 1.4rem;
	border-bottom: 1px solid color-mix(in srgb, var(--bm-color-outline) 28%, transparent);
	background: #fff;
}

.joc-blockora-morph-app .bm-system-feature__copy {
	flex: 1 1 16rem;
	min-width: 0;
}

.joc-blockora-morph-app .bm-system-feature__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--bm-color-on-surface);
}

.joc-blockora-morph-app .bm-system-feature__text {
	margin: 0;
	max-width: 36rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--bm-color-on-surface-variant);
}

.joc-blockora-morph-app .bm-system-feature .components-toggle-control {
	margin: 0;
	flex: 0 0 auto;
}

.joc-blockora-morph-app .bm-system-danger {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.35rem 1.4rem 1.5rem;
	background:
		linear-gradient(
			135deg,
			color-mix(in srgb, var(--bm-color-danger-soft) 80%, #fff) 0%,
			#fff 55%
		);
	border: 1px solid color-mix(in srgb, var(--bm-color-danger) 18%, transparent);
	border-radius: inherit;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.joc-blockora-morph-app .bm-system-danger__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.85);
	color: var(--bm-color-danger);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bm-color-danger) 16%, transparent);
}

.joc-blockora-morph-app .bm-system-danger__icon .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
}

.joc-blockora-morph-app .bm-system-danger__copy {
	min-width: 0;
	flex: 1;
}

.joc-blockora-morph-app .bm-system-danger__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--bm-color-on-surface);
}

.joc-blockora-morph-app .bm-system-danger__text {
	margin: 0.45rem 0 0;
	max-width: 54ch;
	font-size: 13px;
	line-height: 1.5;
	color: var(--bm-color-on-surface-variant);
}

.joc-blockora-morph-app .bm-system-danger__list {
	margin: 0.85rem 0 1.1rem;
	padding-left: 1.15rem;
	font-size: 13px;
	line-height: 1.55;
	color: var(--bm-color-on-surface-variant);
}

.joc-blockora-morph-app .bm-system-danger__list li {
	margin: 0.15rem 0;
}

@media (max-width: 640px) {
	.joc-blockora-morph-app .bm-system-danger {
		flex-direction: column;
	}

	.joc-blockora-morph-app .bm-settings-tabs {
		max-width: none;
	}
}

/* Layout-only notice (Block Editor canvas) */
.joc-blockora-morph-app .bm-layout-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0;
	padding: 0.7rem 1rem 0.75rem;
	border-bottom: 1px solid #f5e0a3;
	background: linear-gradient(105deg, #fff8e1 0%, #fffbeb 55%, #fffdf5 100%);
	animation: bm-layout-notice-in 0.35s var(--bm-ease) both;
}

.joc-blockora-morph-app .bm-layout-notice__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	margin-top: 0.05rem;
	border-radius: 0.55rem;
	background: rgba(255, 255, 255, 0.85);
	color: #b45309;
	box-shadow:
		inset 0 0 0 1px rgba(217, 119, 6, 0.18),
		0 1px 2px rgba(180, 83, 9, 0.06);
}

.joc-blockora-morph-app .bm-layout-notice__icon .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
}

.joc-blockora-morph-app .bm-layout-notice__copy {
	min-width: 0;
}

.joc-blockora-morph-app .bm-layout-notice__title {
	display: block;
	margin: 0;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: #92400e;
}

.joc-blockora-morph-app .bm-layout-notice__text {
	margin: 0.2rem 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #78350f;
	opacity: 0.85;
}

@keyframes bm-layout-notice-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Viewport editing awareness banner */
.joc-blockora-morph-app .bm-viewport-banner {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: -0.15rem 0 0.15rem;
	padding: 0.85rem 0.9rem;
	border: 1px solid transparent;
	border-radius: 0.75rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.joc-blockora-morph-app .bm-viewport-banner__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	flex-shrink: 0;
	border-radius: 0.65rem;
	background: rgba(255, 255, 255, 0.72);
}

.joc-blockora-morph-app .bm-viewport-banner__icon .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

.joc-blockora-morph-app .bm-viewport-banner__copy {
	min-width: 0;
}

.joc-blockora-morph-app .bm-viewport-banner__eyebrow {
	margin: 0;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.2;
}

.joc-blockora-morph-app .bm-viewport-banner__title {
	margin: 0.2rem 0 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.joc-blockora-morph-app .bm-viewport-banner__detail {
	margin: 0.2rem 0 0;
	font-size: 12px;
	line-height: 1.4;
	opacity: 0.9;
}

.joc-blockora-morph-app .bm-viewport-banner--desktop {
	background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
	border-color: #93c5fd;
	color: #1e3a8a;
}

.joc-blockora-morph-app .bm-viewport-banner--desktop .bm-viewport-banner__icon {
	color: #1d4ed8;
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.joc-blockora-morph-app .bm-viewport-banner--tablet {
	background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
	border-color: #fcd34d;
	color: #78350f;
}

.joc-blockora-morph-app .bm-viewport-banner--tablet .bm-viewport-banner__icon {
	color: #b45309;
	box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.2);
}

.joc-blockora-morph-app .bm-viewport-banner--mobile {
	background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
	border-color: #c4b5fd;
	color: #4c1d95;
}

.joc-blockora-morph-app .bm-viewport-banner--mobile .bm-viewport-banner__icon {
	color: #6d28d9;
	box-shadow: inset 0 0 0 1px rgba(109, 40, 217, 0.18);
}

/* ---------- Dashboard clarity ---------- */
.joc-blockora-morph-app .bm-flow {
	padding: 1.1rem 1.25rem;
	border-radius: 0.85rem;
	border: 1px solid rgba(193, 199, 209, 0.35);
	background: rgba(255, 255, 255, 0.72);
}

.joc-blockora-morph-app .bm-flow__label {
	margin: 0 0 0.85rem;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #777587;
}

.joc-blockora-morph-app .bm-flow__steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.joc-blockora-morph-app .bm-flow__steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

.joc-blockora-morph-app .bm-flow__steps > li {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.joc-blockora-morph-app .bm-flow__num {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 999px;
	background: rgba(53, 37, 205, 0.1);
	color: #3525cd;
	font-size: 12px;
	font-weight: 700;
}

.joc-blockora-morph-app .bm-flow__steps strong {
	display: block;
	margin-bottom: 0.15rem;
	font-size: 13px;
	color: #131b2e;
}

.joc-blockora-morph-app .bm-flow__steps p {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #777587;
}

.joc-blockora-morph-app .bm-path-card {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1.35rem 1.4rem;
	border-radius: 0.9rem;
	border: 1px solid rgba(193, 199, 209, 0.35);
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(53, 37, 205, 0.04);
	min-height: 100%;
}

.joc-blockora-morph-app .bm-path-card--primary {
	border-color: rgba(53, 37, 205, 0.22);
	background:
		linear-gradient(180deg, rgba(53, 37, 205, 0.05), transparent 42%),
		#ffffff;
}

.joc-blockora-morph-app .bm-path-card--link {
	width: 100%;
	text-align: left;
	cursor: pointer;
	appearance: none;
	font: inherit;
	transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.joc-blockora-morph-app .bm-path-card--link:hover {
	transform: translateY(-3px);
	border-color: rgba(53, 37, 205, 0.35);
	box-shadow: 0 12px 28px -14px rgba(53, 37, 205, 0.28);
}

.joc-blockora-morph-app .bm-path-card--link:active {
	transform: scale(0.99) translateY(-1px);
}

.joc-blockora-morph-app .bm-path-card--secondary.is-locked {
	opacity: 0.78;
}

.joc-blockora-morph-app .bm-shell__aside {
	position: relative;
	display: flex;
	flex-direction: column;
	align-self: stretch;
	height: 100%;
	max-height: 100%;
	overflow: hidden;
	padding: 0;
	border-right: 1px solid color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 45%, transparent);
	background:
		linear-gradient(180deg, #ffffff 0%, #f7f8ff 48%, #f3f4ff 100%);
	box-shadow: 6px 0 28px -18px rgba(53, 37, 205, 0.28);
}

.joc-blockora-morph-app .bm-shell-backdrop {
	display: none;
}

.joc-blockora-morph-app .bm-shell-brand__close {
	display: none;
}

.joc-blockora-morph-app .bm-shell-header {
	justify-content: flex-start;
}

.joc-blockora-morph-app .bm-shell-header__menu {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.45rem 0.7rem;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 55%, transparent);
	border-radius: 0.75rem;
	background: #fff;
	color: var(--bm-color-on-surface, #131b2e);
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(19, 27, 46, 0.04);
}

.joc-blockora-morph-app .bm-shell-header__menu .dashicons {
	width: 1.1rem;
	height: 1.1rem;
	font-size: 1.1rem;
	line-height: 1;
}

.joc-blockora-morph-app .bm-shell-header__brand {
	display: none;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--bm-color-on-surface, #131b2e);
}

.joc-blockora-morph-app .bm-shell-header__brand img {
	width: 1.85rem;
	height: 1.85rem;
	object-fit: contain;
	flex-shrink: 0;
}

.joc-blockora-morph-app .bm-shell-header__brand em {
	font-style: normal;
	color: var(--bm-color-primary, #3525cd);
}

.joc-blockora-morph-app .bm-shell-header__wp {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 45%, transparent);
	border-radius: 999px;
	background: #fff !important;
	background-image: none !important;
	color: var(--bm-color-on-surface, #131b2e) !important;
	box-shadow: 0 1px 2px rgba(19, 27, 46, 0.06);
	text-decoration: none !important;
	transition:
		color 0.15s ease,
		box-shadow 0.15s ease,
		border-color 0.15s ease,
		transform 0.12s ease;
}

.joc-blockora-morph-app .bm-shell-header__wp:hover {
	color: var(--bm-color-primary, #3525cd) !important;
	border-color: color-mix(in srgb, var(--bm-color-primary, #3525cd) 28%, transparent);
	box-shadow: 0 4px 12px -6px rgba(53, 37, 205, 0.35);
}

.joc-blockora-morph-app .bm-shell-header__wp:active {
	transform: scale(0.96);
}

.joc-blockora-morph-app .bm-shell-header__wp .dashicons {
	width: 32px !important;
    height: 32px !important;
    font-size: 32px !important;
	line-height: 1 !important;
}

@media (max-width: 767px) {
	.joc-blockora-morph-app .bm-shell-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 35;
		margin: 0;
		padding: 0;
		border: 0;
		background: color-mix(in srgb, var(--bm-color-on-surface, #131b2e) 42%, transparent);
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);
		cursor: pointer;
	}

	.joc-blockora-morph-app .bm-shell__aside {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 40;
		width: min(19.5rem, 88vw) !important;
		max-width: 19.5rem;
		transform: translateX(-105%);
		transition: transform 0.24s cubic-bezier(0.2, 0, 0, 1);
		box-shadow: 16px 0 40px -18px rgba(19, 27, 46, 0.45);
		pointer-events: none;
		visibility: hidden;
	}

	.joc-blockora-morph-app .bm-shell__aside.is-open {
		transform: translateX(0);
		pointer-events: auto;
		visibility: visible;
	}

	.joc-blockora-morph-app .bm-shell-brand__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2rem;
		height: 2rem;
		margin-left: auto;
		padding: 0;
		border: 0;
		border-radius: 0.6rem;
		background: color-mix(in srgb, var(--bm-color-surface-container, #eaedff) 80%, #fff);
		color: var(--bm-color-on-surface-variant, #464555);
		cursor: pointer;
		flex-shrink: 0;
	}

	.joc-blockora-morph-app .bm-shell-brand__close .dashicons {
		width: 1.1rem;
		height: 1.1rem;
		font-size: 1.1rem;
		line-height: 1;
	}

	.joc-blockora-morph-app .bm-shell-header {
		height: 3.5rem;
		gap: 0.65rem;
	}

	.joc-blockora-morph-app .bm-shell-header__menu {
		display: inline-flex;
	}

	.joc-blockora-morph-app .bm-shell-header__brand {
		display: inline-flex;
	}
}

@media (min-width: 768px) {
	.joc-blockora-morph-app .bm-shell-header__menu,
	.joc-blockora-morph-app .bm-shell-header__brand,
	.joc-blockora-morph-app .bm-shell-brand__close,
	.joc-blockora-morph-app .bm-shell-backdrop {
		display: none !important;
	}

	.joc-blockora-morph-app .bm-shell-header {
		justify-content: flex-end;
	}
}

.joc-blockora-morph-app .bm-shell-brand {
	position: relative;
	isolation: isolate;
	flex-shrink: 0;
	margin: 0.85rem 0.85rem 0.35rem;
	padding: 1rem 1rem 0.95rem;
	border-radius: 1.15rem;
	border: 1px solid color-mix(in srgb, var(--bm-color-primary, #3525cd) 12%, transparent);
	background:
		linear-gradient(
			155deg,
			rgba(255, 255, 255, 0.96) 0%,
			rgba(242, 243, 255, 0.92) 55%,
			rgba(234, 237, 255, 0.9) 100%
		);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.85) inset,
		0 12px 28px -20px rgba(53, 37, 205, 0.4);
	overflow: hidden;
}

.joc-blockora-morph-app .bm-shell-brand__atmosphere {
	position: absolute;
	inset: -30% -20% auto auto;
	width: 9rem;
	height: 9rem;
	border-radius: 50%;
	background:
		radial-gradient(
			circle at center,
			rgba(79, 70, 229, 0.22) 0%,
			rgba(53, 37, 205, 0.08) 42%,
			transparent 70%
		);
	pointer-events: none;
	z-index: 0;
}

.joc-blockora-morph-app .bm-shell-brand__row {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.joc-blockora-morph-app .bm-shell-brand__mark {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.joc-blockora-morph-app .bm-shell-brand__logo {
	display: block;
	width: 60px;
	height: 60px;
	object-fit: contain;
	border-radius: 0;
}

.joc-blockora-morph-app .bm-shell-brand__copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.joc-blockora-morph-app .bm-shell-brand__eyebrow {
	margin: 0 0 0.1rem;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--bm-color-primary, #3525cd) 70%, #777587);
}

.joc-blockora-morph-app .bm-shell-brand__name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.15;
	color: var(--bm-color-on-surface, #131b2e);
}

.joc-blockora-morph-app .bm-shell-brand__accent {
	color: var(--bm-color-primary, #3525cd);
}

.joc-blockora-morph-app .bm-shell-brand__badge {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.35rem;
	padding: 0.22rem 0.5rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--bm-color-primary, #3525cd);
	background: color-mix(in srgb, var(--bm-color-primary, #3525cd) 8%, #fff);
	border: 1px solid color-mix(in srgb, var(--bm-color-primary, #3525cd) 14%, transparent);
}

.joc-blockora-morph-app .bm-shell-brand__badge em {
	font-style: normal;
	font-weight: 600;
	color: var(--bm-color-outline, #777587);
}

.joc-blockora-morph-app .bm-shell-nav {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1 1 auto;
	min-height: 0;
	padding: 0.65rem 0.85rem 1rem;
}

.joc-blockora-morph-app .bm-shell-nav__label {
	margin: 0.35rem 0.35rem 0.45rem;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bm-color-outline, #777587);
}

.joc-blockora-morph-app .bm-shell-nav__list {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.joc-blockora-morph-app .bm-shell-nav__cats {
	margin-top: 1.1rem;
	padding-top: 0.85rem;
	border-top: 1px solid color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 45%, transparent);
}

.joc-blockora-morph-app .bm-shell-foot {
	flex-shrink: 0;
	margin-top: auto;
	padding: 0.85rem;
	border-top: 1px solid color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 40%, transparent);
	background: linear-gradient(180deg, transparent, rgba(234, 237, 255, 0.45));
}

.joc-blockora-morph-app .bm-shell-foot__cta {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.45rem !important;
	width: 100%;
	margin: 0 0 0.55rem !important;
	padding: 0.72rem 0.9rem !important;
	border: 0 !important;
	border-radius: 0.85rem !important;
	background: linear-gradient(145deg, #4f46e5, #3525cd) !important;
	color: #fff !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
	cursor: pointer;
	box-shadow: 0 12px 22px -12px rgba(53, 37, 205, 0.7) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.joc-blockora-morph-app .bm-shell-foot__cta:hover {
	filter: brightness(1.04);
	transform: translateY(-1px);
	box-shadow: 0 14px 26px -12px rgba(53, 37, 205, 0.78) !important;
}

.joc-blockora-morph-app .bm-shell-foot__cta .dashicons {
	font-size: 1rem;
	width: 1rem;
	height: 1rem;
	line-height: 1;
}

/* Shell nav links — outside @layer so brand treatments win wp-admin resets */
.joc-blockora-morph-app .bm-shell .bm-nav-link {
	display: flex !important;
	width: 100%;
	align-items: center !important;
	gap: 0.7rem !important;
	padding: 0.4rem 0.45rem 0.4rem 0.4rem !important;
	text-align: left !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	letter-spacing: -0.01em;
	border-radius: 0.85rem !important;
	background: transparent !important;
	color: var(--bm-color-on-surface-variant, #464555) !important;
	border: 0 !important;
	cursor: pointer;
	text-decoration: none !important;
	transition:
		background 0.18s cubic-bezier(0.2, 0, 0, 1),
		color 0.18s ease,
		box-shadow 0.18s ease;
}

.joc-blockora-morph-app .bm-shell .bm-nav-link:hover {
	background: color-mix(in srgb, var(--bm-color-surface-container, #eaedff) 75%, #fff) !important;
	color: var(--bm-color-on-surface, #131b2e) !important;
}

.joc-blockora-morph-app .bm-shell .bm-nav-link.is-active {
	background:
		linear-gradient(
			135deg,
			color-mix(in srgb, var(--bm-color-primary, #3525cd) 12%, #fff) 0%,
			color-mix(in srgb, var(--bm-color-primary-container, #4f46e5) 10%, #fff) 100%
		) !important;
	color: var(--bm-color-primary, #3525cd) !important;
	box-shadow:
		inset 0 0 0 1px color-mix(in srgb, var(--bm-color-primary, #3525cd) 16%, transparent),
		0 8px 18px -14px rgba(53, 37, 205, 0.45) !important;
	font-weight: 700 !important;
}

.joc-blockora-morph-app .bm-shell .bm-nav-link__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	border-radius: 0.65rem;
	background: color-mix(in srgb, var(--bm-color-surface-container, #eaedff) 80%, #fff);
	color: var(--bm-color-outline, #777587);
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.joc-blockora-morph-app .bm-shell .bm-nav-link:hover .bm-nav-link__icon {
	background: #fff;
	color: var(--bm-color-primary, #3525cd);
}

.joc-blockora-morph-app .bm-shell .bm-nav-link.is-active .bm-nav-link__icon {
	background: linear-gradient(145deg, #4f46e5, #3525cd);
	color: #fff;
	box-shadow: 0 8px 14px -8px rgba(53, 37, 205, 0.65);
}

.joc-blockora-morph-app .bm-shell .bm-nav-link .dashicons,
.joc-blockora-morph-app .bm-shell .bm-nav-link__icon .dashicons {
	font-size: 1.05rem;
	width: 1.05rem;
	height: 1.05rem;
	line-height: 1;
	color: inherit;
}

.joc-blockora-morph-app .bm-shell .bm-nav-link__text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.joc-blockora-morph-app .bm-shell .bm-nav-link--quiet {
	opacity: 0.88;
	font-weight: 550 !important;
}

.joc-blockora-morph-app .bm-shell .bm-nav-link--quiet .bm-nav-link__icon {
	background: transparent;
}

.joc-blockora-morph-app .bm-path-card__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 0.65rem;
	background: rgba(53, 37, 205, 0.1);
	color: #3525cd;
}

.joc-blockora-morph-app .bm-path-card__icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.joc-blockora-morph-app .bm-path-card__eyebrow {
	margin: 0.35rem 0 0;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #777587;
}

.joc-blockora-morph-app .bm-path-card__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #131b2e;
}

.joc-blockora-morph-app .bm-path-card__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #464555;
}

.joc-blockora-morph-app .bm-path-card__bullets {
	margin: 0.25rem 0 0;
	padding: 0 0 0 1.1rem;
	font-size: 12px;
	line-height: 1.55;
	color: #777587;
}

.joc-blockora-morph-app .bm-path-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.75rem;
	font-size: 12px;
	font-weight: 600;
	color: #3525cd;
}

.joc-blockora-morph-app .bm-help {
	margin: 0;
	padding: 0.9rem 1.25rem;
	border-bottom: 1px solid rgba(193, 199, 209, 0.2);
	background: linear-gradient(180deg, #f2f3ff, #ffffff);
}

.joc-blockora-morph-app .bm-help__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1rem;
}

.joc-blockora-morph-app .bm-help__toggle {
	flex: 1 1 12rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: left;
	cursor: pointer;
	font-family: var(--bm-font-sans) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0;
	line-height: 1.35 !important;
	color: var(--bm-color-primary, #3525cd) !important;
}

.joc-blockora-morph-app .bm-help__toggle:hover,
.joc-blockora-morph-app .bm-help__toggle:focus-visible {
	color: var(--bm-color-primary-container, #4f46e5) !important;
	background: transparent !important;
}

.joc-blockora-morph-app .bm-help__toggle[aria-expanded='true']::after {
	content: '';
	display: inline-block;
	margin-left: 0.4rem;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-bottom: 5px solid currentColor;
	vertical-align: 0.15em;
}

.joc-blockora-morph-app .bm-help__toggle[aria-expanded='false']::after {
	content: '';
	display: inline-block;
	margin-left: 0.4rem;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	vertical-align: 0.1em;
}

.joc-blockora-morph-app .bm-help__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto;
}

.joc-blockora-morph-app .bm-help__actions .bm-btn,
.joc-blockora-morph-app .bm-help__actions .bm-help__select-all {
	min-height: 32px !important;
	height: 32px;
	box-sizing: border-box;
}

.joc-blockora-morph-app .bm-help__actions .bm-help__select-all {
	gap: 0.4rem;
	cursor: pointer;
	margin: 0;
}

.joc-blockora-morph-app .bm-help__actions .bm-help__select-all input {
	margin: 0;
	width: 14px;
	height: 14px;
	accent-color: var(--bm-color-primary, #3525cd);
}

.joc-blockora-morph-app .bm-help__list {
	margin: 0.75rem 0 0.15rem;
	padding-left: 1.2rem;
	font-size: 12px;
	line-height: 1.55;
	color: #464555;
}

.joc-blockora-morph-app .bm-shortcode-create {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1.15rem 1.25rem;
	border-bottom: 1px solid rgba(193, 199, 209, 0.2);
	background: #faf8ff;
}

.joc-blockora-morph-app .bm-pick-block-row {
	display: flex !important;
	width: 100% !important;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1.15rem !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: inherit !important;
	text-align: left !important;
	cursor: pointer;
	transition: background 0.15s ease;
}

.joc-blockora-morph-app .bm-pick-block-row:hover:not(:disabled) {
	background: rgba(248, 249, 255, 0.95) !important;
}

.joc-blockora-morph-app .bm-pick-block-row.is-selected {
	background: var(--bm-color-primary-soft, #e2dfff) !important;
}

.joc-blockora-morph-app .bm-pick-block-row:disabled {
	opacity: 0.65;
	cursor: wait;
}

.joc-blockora-morph-app .bm-pick-block-row__icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2.25rem !important;
	height: 2.25rem !important;
	flex-shrink: 0;
	border-radius: 0.65rem;
	background: var(--bm-color-surface-container, #eef0f6);
	color: var(--bm-color-primary, #3525cd);
	font-size: 1.15rem !important;
	line-height: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
	.joc-blockora-morph-app *,
	.joc-blockora-morph-app *::before,
	.joc-blockora-morph-app *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.bm-bento:hover,
	.bento-card:hover,
	.bm-stat-card:hover,
	.bm-bento:active,
	.bento-card:active,
	.bm-stat-card:active,
	.bm-btn:active:not(:disabled),
	.bm-tw-btn:active:not(:disabled) {
		transform: none !important;
	}

	.bm-editor-save-fab:hover:not(:disabled),
	.bm-editor-save-fab:active:not(:disabled) {
		transform: none !important;
	}
}

/* Thin sidebar scrollbar */
.joc-blockora-morph-app .custom-scrollbar::-webkit-scrollbar {
	width: 4px;
}

.joc-blockora-morph-app .custom-scrollbar::-webkit-scrollbar-track {
	background: transparent;
}

.joc-blockora-morph-app .custom-scrollbar::-webkit-scrollbar-thumb {
	background: #c7c4d8;
	border-radius: 10px;
}

/*
 * Global Settings / Theme config — sidebar fields + large live preview.
 */
.joc-blockora-morph-app .bm-theme-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.joc-blockora-morph-app .bm-theme-layout {
		grid-template-columns: minmax(380px, 440px) minmax(0, 1fr);
		gap: 1.5rem;
	}
}

.joc-blockora-morph-app .bm-theme-sidebar {
	display: flex;
	flex-direction: column;
	gap: 0;
	overflow: visible;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 35%, transparent);
	border-radius: var(--bm-radius-xl);
	background: var(--bm-color-surface-lowest);
	box-shadow: var(--bm-shadow-sm);
}

.joc-blockora-morph-app .bm-theme-section {
	padding: 1.15rem 1.25rem 1.35rem;
	border-bottom: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 28%, transparent);
}

.joc-blockora-morph-app .bm-theme-section:last-child {
	border-bottom: none;
}

.joc-blockora-morph-app .bm-theme-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.9rem;
}

.joc-blockora-morph-app .bm-theme-section__title {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bm-color-outline);
}

.joc-blockora-morph-app .bm-theme-item {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.85rem;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 40%, transparent);
	border-radius: var(--bm-radius);
	background: var(--bm-color-surface-low);
}

.joc-blockora-morph-app .bm-theme-item.is-previewing {
	border-color: color-mix(in srgb, var(--bm-color-primary) 45%, transparent);
	box-shadow: inset 3px 0 0 var(--bm-color-primary);
}

.joc-blockora-morph-app .bm-theme-item .bm-style-field,
.joc-blockora-morph-app .bm-theme-item .components-base-control {
	margin-bottom: 0;
}

.joc-blockora-morph-app .bm-theme-color-row {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 36px;
	gap: 0.5rem;
	align-items: center;
	padding: 0.35rem 0.4rem 0.35rem 0.35rem;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 40%, transparent);
	border-radius: var(--bm-radius);
	background: var(--bm-color-surface-low);
}

.joc-blockora-morph-app .bm-theme-color-row__name .components-base-control {
	margin-bottom: 0;
}

.joc-blockora-morph-app .bm-theme-color-row__name .components-text-control__input,
.joc-blockora-morph-app .bm-theme-color-row__name input {
	min-height: 36px !important;
}

.joc-blockora-morph-app .bm-theme-color-swatch {
	display: block;
}

.joc-blockora-morph-app .bm-theme-color-swatch__toggle {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	min-width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	border-radius: var(--bm-radius) !important;
}

.joc-blockora-morph-app .bm-theme-color-swatch__indicator {
	width: 22px !important;
	height: 22px !important;
}

.joc-blockora-morph-app .bm-theme-color-row__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--bm-radius);
	background: transparent;
	color: var(--bm-color-outline);
	cursor: pointer;
	transition: color var(--bm-duration) ease, background var(--bm-duration) ease;
}

.joc-blockora-morph-app .bm-theme-color-row__remove:hover:not(:disabled) {
	background: var(--bm-color-danger-soft);
	color: var(--bm-color-danger);
}

.joc-blockora-morph-app .bm-theme-color-row__remove:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.joc-blockora-morph-app .bm-theme-color-row__remove .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.joc-blockora-morph-app .bm-theme-font-table-wrap {
	overflow-x: auto;
	margin: 0 -0.15rem;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 40%, transparent);
	border-radius: var(--bm-radius);
	background: var(--bm-color-surface-low);
}

.joc-blockora-morph-app .bm-theme-font-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.joc-blockora-morph-app .bm-theme-font-table th,
.joc-blockora-morph-app .bm-theme-font-table td {
	padding: 0.55rem 0.55rem;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 28%, transparent);
	white-space: nowrap;
}

.joc-blockora-morph-app .bm-theme-font-table th {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bm-color-outline);
	background: color-mix(in srgb, var(--bm-color-surface-lowest) 80%, transparent);
}

.joc-blockora-morph-app .bm-theme-font-table tbody tr:last-child td {
	border-bottom: none;
}

.joc-blockora-morph-app .bm-theme-font-table tbody tr.is-previewing td {
	background: color-mix(in srgb, var(--bm-color-primary) 8%, transparent);
}

.joc-blockora-morph-app .bm-theme-font-table tbody tr.is-previewing td:first-child {
	box-shadow: inset 3px 0 0 var(--bm-color-primary);
}

.joc-blockora-morph-app .bm-theme-font-table tbody tr {
	cursor: default;
}

.joc-blockora-morph-app .bm-theme-section:first-child .bm-theme-font-table tbody tr {
	cursor: pointer;
}

.joc-blockora-morph-app .bm-theme-font-table__name {
	font-weight: 600;
	color: var(--bm-color-on-surface);
	max-width: 14rem;
}

.joc-blockora-morph-app .bm-theme-font-table__face {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.35;
	vertical-align: middle;
}

.joc-blockora-morph-app .bm-theme-section__hint {
	margin: 0 0 0.75rem;
	font-size: 12px;
	line-height: 1.45;
	color: var(--bm-color-on-surface-variant, #464555);
}

.joc-blockora-morph-app .bm-theme-section__head .bm-theme-font-table__badge {
	margin-left: auto;
}

.joc-blockora-morph-app .bm-theme-font-table__badge {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.08rem 0.4rem;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--bm-color-outline, #777587);
	background: color-mix(in srgb, var(--bm-color-outline, #777587) 14%, transparent);
	vertical-align: middle;
}

.joc-blockora-morph-app .bm-theme-font-table__locked {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--bm-color-outline, #777587);
}

.joc-blockora-morph-app .bm-theme-font-table__locked .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.joc-blockora-morph-app .bm-theme-font-table__source {
	display: inline-block;
	max-width: 9rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

.joc-blockora-morph-app .bm-theme-font-table__swatch {
	width: 1%;
	padding-right: 0.35rem !important;
}

.joc-blockora-morph-app .bm-theme-table-swatch {
	display: block;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 55%, transparent);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.joc-blockora-morph-app .bm-theme-color-editor__swatch-row {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
}

.joc-blockora-morph-app .bm-theme-color-editor__hex {
	flex: 1;
	min-width: 0;
}

.joc-blockora-morph-app .bm-theme-font-table code {
	font-size: 11px;
	font-weight: 500;
	color: var(--bm-color-on-surface-variant);
	background: transparent;
}

.joc-blockora-morph-app .bm-theme-font-table__actions {
	width: 1%;
	white-space: nowrap;
	text-align: right !important;
}

.joc-blockora-morph-app .bm-theme-font-table__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0 0 0 0.15rem;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--bm-radius);
	background: transparent;
	color: var(--bm-color-outline);
	cursor: pointer;
	transition: color var(--bm-duration) ease, background var(--bm-duration) ease;
}

.joc-blockora-morph-app .bm-theme-font-table__btn:hover:not(:disabled) {
	background: var(--bm-color-surface-lowest);
	color: var(--bm-color-on-surface);
}

.joc-blockora-morph-app .bm-theme-font-table__btn.is-danger:hover:not(:disabled) {
	background: var(--bm-color-danger-soft);
	color: var(--bm-color-danger);
}

.joc-blockora-morph-app .bm-theme-font-table__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.joc-blockora-morph-app .bm-theme-font-table__btn .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.joc-blockora-morph-app .bm-theme-font-editor .bm-style-field,
.joc-blockora-morph-app .bm-theme-font-editor .components-base-control {
	margin-bottom: 0;
}

.joc-blockora-morph-app .bm-theme-preview {
	display: flex;
	flex-direction: column;
	min-height: min(72vh, 820px);
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 35%, transparent);
	border-radius: var(--bm-radius-xl);
	background: var(--bm-color-surface-lowest);
	box-shadow: var(--bm-shadow-section);
}

.joc-blockora-morph-app .bm-theme-preview__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
	flex-shrink: 0;
	padding: 1.15rem 1.35rem 1rem;
	border-bottom: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 28%, transparent);
}

.joc-blockora-morph-app .bm-theme-preview__head-copy {
	min-width: min(100%, 16rem);
	flex: 1 1 12rem;
}

.joc-blockora-morph-app .bm-theme-preview__font {
	flex: 0 1 16rem;
	min-width: min(100%, 12rem);
	max-width: 18rem;
}

.joc-blockora-morph-app .bm-theme-preview__font .bm-searchable-select {
	width: 100%;
}

.joc-blockora-morph-app .bm-theme-preview__stage {
	display: flex;
	flex: 1;
	min-height: 0;
	background: var(--bm-color-surface-low);
}

.joc-blockora-morph-app .bm-theme-preview__frame {
	min-height: 100%;
}

.joc-blockora-morph-app .bm-theme-preview__frame .bm-preview-frame__stage {
	min-height: 100%;
	padding: 1.25rem 1.5rem;
}

.joc-blockora-morph-app .bm-theme-preview__frame .bm-preview-frame__device {
	min-height: calc(100% - 0.5rem);
	max-height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	border-radius: var(--bm-radius-lg);
}

.joc-blockora-morph-app .bm-theme-preview__sample {
	padding: 0.5rem 0.25rem 1rem;
}

/*
 * Modal overlay must cover the viewport. Portaled to #joc-blockora-morph-app
 * (outside .max-w-canvas / .bm-rise transform ancestors).
 */
.joc-blockora-morph-app > .bm-modal-root {
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	margin: 0 !important;
}

/* Solid dimmer — do not use Tailwind /opacity on CSS-var colors (they break). */
.joc-blockora-morph-app .bm-modal-backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--bm-color-on-surface) 45%, transparent);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

/* Library preview: arrows straddle popup edges (half in / half out) */
.joc-blockora-morph-app .bm-preview-modal {
	isolation: isolate;
	overflow: visible;
}

.joc-blockora-morph-app .bm-preview-modal--fullscreen {
	height: 100dvh;
	max-width: none;
}

.joc-blockora-morph-app .bm-preview-modal--fullscreen .bm-preview-modal__body {
	border-radius: 0;
	border-left: 0;
	border-right: 0;
}

.joc-blockora-morph-app .bm-preview-modal__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
}

.joc-blockora-morph-app .bm-preview-modal__body > .bm-preview-modal__stage {
	flex: 1 1 auto;
	min-width: 0;
	transition: flex-basis 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.joc-blockora-morph-app .bm-preview-modal__sidebar {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	width: 100%;
	max-height: 0;
	min-height: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	border-top: 0 solid color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 35%, transparent);
	background: var(--bm-color-surface-lowest, #fff);
	transform: translateY(0.75rem);
	transition:
		max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.28s ease,
		transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.28s ease,
		visibility 0s linear 0.38s;
}

.joc-blockora-morph-app .bm-preview-modal__sidebar.is-open {
	max-height: min(48%, 28rem);
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	border-top-width: 1px;
	transform: translateY(0);
	transition:
		max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.28s ease 0.05s,
		transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.28s ease,
		visibility 0s linear 0s;
}

.joc-blockora-morph-app .bm-preview-modal__sidebar-inner {
	min-height: 0;
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.joc-blockora-morph-app .bm-preview-modal__body {
		flex-direction: row;
	}

	.joc-blockora-morph-app .bm-preview-modal__sidebar {
		width: 0;
		max-width: 0;
		max-height: none;
		min-height: 0;
		align-self: stretch;
		border-top: 0;
		border-left: 0 solid color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 35%, transparent);
		transform: translateX(1.25rem);
		transition:
			width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
			max-width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
			opacity 0.28s ease,
			transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
			border-color 0.28s ease,
			visibility 0s linear 0.42s;
	}

	.joc-blockora-morph-app .bm-preview-modal__sidebar.is-open {
		width: 360px;
		max-width: 360px;
		max-height: none;
		opacity: 1;
		border-left-width: 1px;
		transform: translateX(0);
		transition:
			width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
			max-width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
			opacity 0.3s ease 0.04s,
			transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
			border-color 0.28s ease,
			visibility 0s linear 0s;
	}

	.joc-blockora-morph-app .bm-preview-modal__sidebar-inner {
		max-height: none !important;
		width: 360px;
		min-width: 360px;
	}
}

.joc-blockora-morph-app .bm-preview-modal__body.is-sidebar-open .bm-preview-modal__sidebar-inner {
	animation: bm-preview-sidebar-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bm-preview-sidebar-in {
	from {
		opacity: 0.35;
		transform: translateX(0.5rem);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (max-width: 767px) {
	@keyframes bm-preview-sidebar-in {
		from {
			opacity: 0.35;
			transform: translateY(0.5rem);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
}

.joc-blockora-morph-app .bm-preview-frame__stage-actions {
	position: absolute;
	right: 0.85rem;
	bottom: 0.85rem;
	z-index: 20;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	pointer-events: none;
}

.joc-blockora-morph-app .bm-preview-canvas-btn {
	pointer-events: auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.5rem !important;
	margin: 0;
	padding: 0.45rem 0.75rem !important;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 55%, transparent) !important;
	border-radius: 999px !important;
	background: color-mix(in srgb, var(--bm-color-surface-lowest, #fff) 88%, transparent) !important;
	color: var(--bm-color-on-surface, #131b2e) !important;
	box-shadow: 0 8px 22px rgba(19, 27, 46, 0.14) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: pointer;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	line-height: 1 !important;
	transition:
		background 0.15s ease,
		box-shadow 0.15s ease,
		transform 0.15s ease,
		border-color 0.15s ease;
}

.joc-blockora-morph-app .bm-preview-canvas-btn:hover,
.joc-blockora-morph-app .bm-preview-canvas-btn:focus-visible {
	background: var(--bm-color-surface-lowest, #fff) !important;
	box-shadow: 0 10px 26px rgba(53, 37, 205, 0.2) !important;
	outline: none;
	transform: translateY(-1px);
}

.joc-blockora-morph-app .bm-preview-canvas-btn.is-active {
	border-color: color-mix(in srgb, var(--bm-color-primary, #3525cd) 45%, transparent) !important;
	color: var(--bm-color-primary, #3525cd) !important;
}

.joc-blockora-morph-app .bm-preview-canvas-btn .dashicons {
	width: 1.15rem;
	height: 1.15rem;
	font-size: 1.15rem;
	line-height: 1;
}

.joc-blockora-morph-app .bm-preview-canvas-btn__label {
	white-space: nowrap;
}

@media (max-width: 640px) {
	.joc-blockora-morph-app .bm-preview-canvas-btn__label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.joc-blockora-morph-app .bm-preview-canvas-btn {
		width: 2.5rem !important;
		height: 2.5rem !important;
		min-width: 2.5rem !important;
		padding: 0 !important;
	}
}

.joc-blockora-morph-app .bm-preview-modal__sidebar-close {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2rem !important;
	height: 2rem !important;
	min-height: 2rem !important;
	margin: -0.25rem -0.25rem 0 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--bm-color-on-surface-variant, #464555) !important;
	cursor: pointer;
	box-shadow: none !important;
}

.joc-blockora-morph-app .bm-preview-modal__sidebar-close:hover,
.joc-blockora-morph-app .bm-preview-modal__sidebar-close:focus-visible {
	background: var(--bm-color-surface-low, #f2f3ff) !important;
	color: var(--bm-color-on-surface, #131b2e) !important;
	outline: none;
}

.joc-blockora-morph-app .bm-preview-modal__sidebar-close .dashicons {
	width: 1.25rem;
	height: 1.25rem;
	font-size: 1.25rem;
	line-height: 1;
}

.joc-blockora-morph-app .bm-preview-modal__header-actions {
	align-self: center;
}

.joc-blockora-morph-app
	button.bm-btn.bm-btn--lg.bm-preview-modal__icon-btn {
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 48px !important;
	min-width: 48px !important;
	max-width: 48px !important;
	height: 48px !important;
	min-height: 48px !important;
	max-height: 48px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 12px !important;
	line-height: 1 !important;
}

.joc-blockora-morph-app
	button.bm-btn.bm-btn--lg.bm-preview-modal__icon-btn
	.dashicons {
	width: 1.5rem;
	height: 1.5rem;
	font-size: 1.5rem;
	line-height: 1;
}

.joc-blockora-morph-app
	button.bm-btn.bm-btn--lg.bm-preview-modal__icon-btn.is-active {
	color: var(--bm-color-primary, #3525cd) !important;
	background: color-mix(
		in srgb,
		var(--bm-color-primary, #3525cd) 10%,
		transparent
	) !important;
}

.joc-blockora-morph-app
	.bm-preview-modal__sidebar-close.bm-preview-modal__sidebar-close--header {
	box-sizing: border-box !important;
	width: 48px !important;
	height: 48px !important;
	min-width: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	border-radius: 12px !important;
}

.joc-blockora-morph-app .bm-preview-nav__arrow {
	position: absolute;
	top: 50%;
	z-index: 30;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 4.25rem !important;
	height: 4.25rem !important;
	min-height: 4.25rem !important;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bm-color-surface-lowest, #fff) 72%, transparent);
	color: var(--bm-color-on-surface, #131b2e);
	box-shadow: 0 10px 28px rgba(19, 27, 46, 0.14);
	cursor: pointer;
	opacity: 0.28;
	transition:
		opacity 0.18s ease,
		background 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.joc-blockora-morph-app .bm-preview-nav__arrow:hover:not(:disabled),
.joc-blockora-morph-app .bm-preview-nav__arrow:focus-visible:not(:disabled) {
	opacity: 1;
	background: var(--bm-color-surface-lowest, #fff);
	box-shadow: 0 12px 32px rgba(53, 37, 205, 0.24);
	outline: none;
}

.joc-blockora-morph-app .bm-preview-nav__arrow:disabled {
	cursor: not-allowed;
	opacity: 0.15;
}

.joc-blockora-morph-app .bm-preview-nav__arrow .dashicons {
	width: 2.5rem;
	height: 2.5rem;
	font-size: 2.5rem;
	line-height: 1;
}

.joc-blockora-morph-app .bm-preview-nav__arrow--prev {
	left: 0;
	transform: translate(-50%, -50%);
}

.joc-blockora-morph-app .bm-preview-nav__arrow--next {
	right: 0;
	transform: translate(50%, -50%);
}

.joc-blockora-morph-app .bm-preview-nav__arrow--prev:hover:not(:disabled),
.joc-blockora-morph-app .bm-preview-nav__arrow--prev:focus-visible:not(:disabled) {
	transform: translate(-50%, -50%) scale(1.06);
}

.joc-blockora-morph-app .bm-preview-nav__arrow--next:hover:not(:disabled),
.joc-blockora-morph-app .bm-preview-nav__arrow--next:focus-visible:not(:disabled) {
	transform: translate(50%, -50%) scale(1.06);
}

@media (min-width: 768px) {
	.joc-blockora-morph-app .bm-preview-nav__arrow {
		width: 5rem !important;
		height: 5rem !important;
		min-height: 5rem !important;
	}

	.joc-blockora-morph-app .bm-preview-nav__arrow .dashicons {
		width: 2.85rem;
		height: 2.85rem;
		font-size: 2.85rem;
	}
}

.joc-blockora-morph-app .bm-preview-nav__count {
	position: absolute;
	left: 50%;
	bottom: 0.85rem;
	z-index: 30;
	transform: translateX(-50%);
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bm-color-surface-lowest, #fff) 78%, transparent);
	color: var(--bm-color-on-surface-variant, #464555);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.18s ease;
}

.joc-blockora-morph-app .bm-preview-modal:hover .bm-preview-nav__count {
	opacity: 0.9;
}

/* Owner variant strip — bottom drawer with centered show/hide toggle */
.joc-blockora-morph-app .bm-preview-modal__stage {
	position: relative;
}

.joc-blockora-morph-app .bm-preview-layers {
	--bm-layer-size: 120px;
	--bm-layers-toggle-h: 2.25rem;
	--bm-layers-sheet: rgba(15, 23, 42, 0.7);
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 25;
	display: flex;
	flex-direction: column;
	align-items: center;
	pointer-events: none;
}

/* Toggle + variants move as one sheet */
.joc-blockora-morph-app .bm-preview-layers__shell {
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	transform: translate3d(0, 0, 0);
	transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.joc-blockora-morph-app .bm-preview-layers.is-closed .bm-preview-layers__shell {
	/* Leave the toggle tab peeking; drawer slides away with it */
	transform: translate3d(0, calc(100% - var(--bm-layers-toggle-h)), 0);
}

.joc-blockora-morph-app .bm-preview-layers.is-closed .bm-preview-layers__drawer {
	pointer-events: none;
}

.joc-blockora-morph-app .bm-preview-layers__toggle {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	height: var(--bm-layers-toggle-h);
	margin: 0;
	padding: 0 0.85rem;
	border: 1px solid color-mix(in srgb, #fff 18%, transparent);
	border-bottom: 0;
	border-radius: 0.75rem 0.75rem 0 0;
	background: var(--bm-layers-sheet);
	color: #f8fafc;
	cursor: pointer;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.18);
	transition: background-color 0.2s ease;
}

.joc-blockora-morph-app .bm-preview-layers__toggle:hover,
.joc-blockora-morph-app .bm-preview-layers__toggle:focus-visible {
	background: rgba(15, 23, 42, 0.85);
	outline: none;
}

.joc-blockora-morph-app .bm-preview-layers__toggle .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
}

.joc-blockora-morph-app .bm-preview-layers__toggle-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.28rem;
	border-radius: 999px;
	background: color-mix(in srgb, #fff 18%, transparent);
	font-size: 10px;
	font-variant-numeric: tabular-nums;
}

.joc-blockora-morph-app .bm-preview-layers__drawer {
	width: 100%;
	background: var(--bm-layers-sheet);
}

.joc-blockora-morph-app .bm-preview-layers__drawer-inner {
	padding: 0.75rem 1rem 0.9rem;
}

.joc-blockora-morph-app .bm-preview-layers__track {
	display: flex;
	align-items: stretch;
	gap: 0.65rem;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0.4rem 0.35rem 0.55rem;
	scrollbar-width: thin;
}

.joc-blockora-morph-app .bm-preview-layers__card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.35rem;
	flex: 0 0 auto;
	width: var(--bm-layer-size);
	margin: 0;
	padding: 0.35rem;
	border: 1px solid color-mix(in srgb, #fff 16%, transparent);
	border-radius: 0.65rem;
	background: color-mix(in srgb, #fff 92%, transparent);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	text-align: left;
	overflow: hidden;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.joc-blockora-morph-app .bm-preview-layers__card:hover,
.joc-blockora-morph-app .bm-preview-layers__card:focus-visible {
	border-color: color-mix(in srgb, #fff 55%, transparent);
	transform: translateY(-2px);
}

.joc-blockora-morph-app .bm-preview-layers__card.is-selected {
	border-color: #60a5fa;
	outline: 3px solid #60a5fa;
	outline-offset: -3px;
	transform: translateY(-2px) scale(1.025);
	box-shadow:
		0 0 0 2px color-mix(in srgb, #dbeafe 95%, transparent),
		0 0 22px color-mix(in srgb, #60a5fa 48%, transparent),
		0 8px 20px rgba(0, 0, 0, 0.28);
	animation: bm-preview-layer-selected 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bm-preview-layer-selected {
	0% {
		transform: translateY(1px) scale(0.96);
		filter: brightness(0.92);
	}
	55% {
		transform: translateY(-3px) scale(1.045);
		filter: brightness(1.08);
	}
	100% {
		transform: translateY(-2px) scale(1.025);
		filter: brightness(1);
	}
}

/* Main canvas reveal when a different variant is selected. */
.joc-blockora-morph-app .bm-preview-variant-enter {
	animation: bm-preview-variant-enter 0.38s cubic-bezier(0.22, 1, 0.36, 1);
	transform-origin: center top;
}

@keyframes bm-preview-variant-enter {
	0% {
		opacity: 0;
		transform: translateY(8px) scale(0.985);
		filter: saturate(0.75) blur(2px);
	}
	65% {
		opacity: 1;
		transform: translateY(-1px) scale(1.002);
		filter: saturate(1.05) blur(0);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: saturate(1) blur(0);
	}
}

.joc-blockora-morph-app .bm-preview-layers__frame {
	display: block;
	position: relative;
	width: 100%;
	height: 80px;
	overflow: hidden;
	border-radius: 0.4rem;
	background: #fff;
}

.joc-blockora-morph-app .bm-preview-layers__scaler {
	display: block;
	transform-origin: top left;
	will-change: transform;
}

.joc-blockora-morph-app .bm-preview-layers__iframe {
	display: block;
	width: 1280px;
	max-width: none;
	border: 0;
	background: #fff;
	pointer-events: none;
}

.joc-blockora-morph-app .bm-preview-layers__label {
	display: block;
	max-width: 100%;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
	.joc-blockora-morph-app .bm-preview-layers__shell,
	.joc-blockora-morph-app .bm-preview-layers__card,
	.joc-blockora-morph-app .bm-preview-variant-enter {
		transition: none !important;
		animation: none !important;
	}
}

/* Preview viewport switcher (Desktop / Tablet / Mobile) — segmented */
.bm-preview-frame__viewports {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
	padding: 4px;
	border-radius: 12px;
	background: var(--bm-color-surface-low, #f2f3ff);
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant, #c7c4d8) 70%, transparent);
}

.bm-viewport-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 34px !important;
	border: 0 !important;
	border-radius: 9px !important;
	background: transparent !important;
	color: var(--bm-color-on-surface-variant, #464555) !important;
	padding: 6px 8px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: 0;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	box-shadow: none !important;
}

.bm-viewport-btn .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: inherit;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

.bm-viewport-btn:hover {
	color: var(--bm-color-on-surface, #131b2e) !important;
	background: color-mix(in srgb, #fff 70%, transparent) !important;
}

.bm-viewport-btn:hover .dashicons {
	opacity: 1;
}

.bm-viewport-btn.is-active {
	background: var(--bm-color-primary, #3525cd) !important;
	color: var(--bm-color-on-primary, #fff) !important;
	box-shadow: 0 3px 10px color-mix(in srgb, var(--bm-color-primary, #3525cd) 26%, transparent) !important;
}

.bm-viewport-btn.is-active .dashicons {
	opacity: 1;
	color: inherit;
}

.bm-viewport-btn:active {
	transform: scale(0.97);
}

.bm-preview-frame__device[data-viewport='tablet'],
.bm-preview-frame__device[data-viewport='mobile'] {
	box-shadow: 0 10px 25px -5px rgba(53, 37, 205, 0.1);
}
