body.simple-edit-mode [data-edit-field] {
	max-width: 100%;
	outline: 1px dashed rgb(var(--n) / 0.3) !important;
	outline-offset: -1px !important;
	cursor: pointer;
}

body.simple-edit-mode [data-edit-field]:hover {
	outline: 1px solid rgb(var(--n) / 1) !important;
	outline-offset: -1px !important;
	background: rgb(var(--b) / 0.08);
}

body.simple-edit-mode .simple-placeholder {
	opacity: 0.5;
	color: rgb(var(--n) / 0.5);
}

body.simple-edit-mode .simple-dt-hotspot {
	position: absolute !important;
	z-index: 999998;
	display: block;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px dashed rgb(var(--n) / 1) !important;
	background: rgb(var(--b) / 0.1) !important;
	color: rgb(var(--b) / 0) !important;
	cursor: pointer;
	pointer-events: auto !important;
	transform: none !important;
}

body.simple-edit-mode .simple-dt-hotspot:hover {
	border: 1px solid rgb(var(--n) / 1) !important;
	background: rgb(var(--b) / 0.25) !important;
}

body.simple-edit-mode .simple-edit-button.is-empty {
	min-width: 2rem;
	min-height: 2rem;
	outline: 1px dashed rgb(var(--n) / 0.5) !important;
	outline-offset: -1px !important;
	opacity: 0.5;
}

body.simple-edit-mode .simple-media-edit-trigger,
.simple-media-edit-trigger {
	position: absolute !important;
	bottom: 1rem !important;
	right: 1rem !important;
	top: auto !important;
	left: auto !important;
	z-index: 99999 !important;
	margin: 0 !important;
	transform: none !important;
}

body.simple-edit-mode .simple-media-edit-trigger:hover {
	background: rgb(var(--n) / 1);
	border-color: rgb(var(--b) / 1);
}

body.simple-edit-mode .block .artxt > dt {
	pointer-events: auto;
}

body.simple-edit-mode .block .artxt > dt .block-dt-base,
body.simple-edit-mode .block .artxt > dt .block-dt-photo,
body.simple-edit-mode .block .artxt > dt .block-dt-real {
	pointer-events: none;
}

.simple-editor-bar {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 2147483500;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem;
	background: rgb(var(--n) / 0.85);
	color: rgb(var(--b) / 1);
	border: 1px solid rgb(var(--b) / 0.2);
	box-sizing: border-box;
}

.simple-editor-bar.is-dragging {
	user-select: none;
}

.simple-editor-bar [hidden] {
	display: none !important;
}

.simple-editor-bar-top {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.simple-editor-bar strong {
	display: block;
	text-transform: uppercase;
}

.simple-editor-bar span {
	display: block;
	opacity: 0.7;
}

.simple-editor-help {
	margin-top: 0.15rem;
	opacity: 0.5;
}

.simple-editor-actions-bar {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.simple-editor-bar a,
.simple-editor-bar button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.75rem;
	border: 1px solid rgb(var(--b) / 0.3);
	background: rgb(var(--b) / 1);
	color: rgb(var(--n) / 1);
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}

.simple-editor-bar a:hover,
.simple-editor-bar button:hover {
	background: rgb(var(--n) / 1);
	color: rgb(var(--b) / 1);
	border-color: rgb(var(--b) / 1);
}

.simple-editor-drag {
	cursor: grab;
	user-select: none;
}

.simple-editor-bar.is-dragging .simple-editor-drag {
	cursor: grabbing;
}

.simple-editor-bar .simple-editor-toggle {
	display: none;
}

.simple-editor-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483600;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgb(var(--n) / 0.6);
	color: rgb(var(--n) / 1);
}

.simple-editor-modal.is-open {
	display: flex;
	pointer-events: auto;
}

.simple-editor-modal:not(.is-open),
.simple-editor-saving:not(.is-active) {
	pointer-events: none;
}

.simple-editor-modal.is-open.is-popup-editing {
	background: rgb(var(--b) / 0);
	pointer-events: none;
	align-items: flex-start;
	justify-content: flex-end;
}

.simple-editor-modal.is-open.is-popup-editing .simple-editor-box {
	pointer-events: auto;
	width: min(420px, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	margin: 1rem 1rem 0 0;
}

.simple-editor-box {
	width: min(720px, 100%);
	max-height: 90dvh;
	overflow: auto;
	background: rgb(var(--b) / 0.95);
	border: 1px solid rgb(var(--n) / 1);
	padding: 1rem;
	box-sizing: border-box;
}

.simple-editor-box.is-media {
	width: min(760px, calc(100vw - 2rem));
	height: calc(100dvh - 2rem);
	max-height: calc(100dvh - 2rem);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.simple-editor-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.simple-editor-head strong {
	text-transform: uppercase;
}

.simple-editor-close {
	width: 2rem;
	height: 2rem;
	border: 1px solid rgb(var(--n) / 1);
	background: rgb(var(--n) / 1);
	color: rgb(var(--b) / 1);
	cursor: pointer;
}

.simple-editor-close:hover {
	background: rgb(var(--b) / 1);
	color: rgb(var(--n) / 1);
}

.simple-editor-field {
	display: grid;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.simple-editor-field label,
.simple-group-fields-wrap .simple-editor-field label {
	font-size: 0.8rem;
	font-weight: 700;
	color: rgb(var(--n) / 1);
	background: rgb(var(--n) / 0.25);
	padding: 0.5rem 0.75rem;
	display: block;
	box-sizing: border-box;
	text-transform: uppercase;
	opacity: 1;
}

.simple-editor-field textarea,
.simple-editor-field input,
.simple-editor-field select {
	width: 100%;
	border: 1px solid rgb(var(--n) / 1);
	padding: 0.5rem;
	box-sizing: border-box;
	background: rgb(var(--b) / 1);
	color: rgb(var(--n) / 1);
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: pre-wrap;
	font-family: inherit;
}

/* --- ESTILOS ESPECÍFICOS DE INPUTS SEGÚN ATRIBUTOS DINÁMICOS DEL JS --- */

/* TÍTULO PRINCIPAL: 2rem, negritas */
.simple-editor-field [data-group-field="titulo_principal"],
.simple-editor-field [data-group-field="poster_titulo_principal"],
.simple-editor-field .group-input-titulo_principal {
	font-size: 2rem !important;
	font-weight: 700 !important;
}

/* SUBTÍTULO: 1.2rem, negritas */
.simple-editor-field [data-group-field="subtitulo"],
.simple-editor-field [data-group-field="poster_subtitulo"],
.simple-editor-field .group-input-subtitulo {
	font-size: 1.2rem !important;
	font-weight: 700 !important;
}

/* TÍTULO INTERNO: negritas */
.simple-editor-field [data-group-field="titulo_interno"],
.simple-editor-field [data-group-field="poster_titulo_interno"],
.simple-editor-field [data-group-field="titulo"],
.simple-editor-field .group-input-titulo_interno {
	font-weight: 700 !important;
}

/* COMENTARIO: 0.8rem, cursiva, 75% negro */
.simple-editor-field [data-group-field="comentario"],
.simple-editor-field [data-group-field="poster_comentario"],
.simple-editor-field .group-input-comentario {
	font-size: 0.8rem !important;
	font-style: italic !important;
	color: rgb(var(--n) / 0.75) !important;
}

.simple-editor-field textarea {
	min-height: 140px;
	resize: vertical;
}

.simple-editor-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 1rem;
}

.simple-editor-actions button {
	padding: 0.5rem 1rem;
	border: 1px solid rgb(var(--n) / 1);
	background: rgb(var(--n) / 1);
	color: rgb(var(--b) / 1);
	cursor: pointer;
}

.simple-editor-actions button.alt {
	background: rgb(var(--b) / 1);
	color: rgb(var(--n) / 1);
}

.simple-editor-actions button:hover {
	background: rgb(var(--n) / 0.8);
}

.simple-editor-actions button.alt:hover {
	background: rgb(var(--n) / 0.1);
}

.simple-media-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.simple-media-tabs button {
	padding: 0.4rem 0.75rem;
	border: 1px solid rgb(var(--n) / 1);
	background: rgb(var(--b) / 1);
	color: rgb(var(--n) / 1);
	cursor: pointer;
}

.simple-media-tabs button.is-active {
	background: rgb(var(--n) / 1);
	color: rgb(var(--b) / 1);
}

.simple-crop-stage {
	position: relative;
	width: min(100%, calc(50dvh * var(--simple-crop-ratio, 1)));
	margin: 0 auto 0.75rem;
	border: 1px solid rgb(var(--n) / 1);
	background: rgb(var(--b) / 0.8);
	overflow: hidden;
	aspect-ratio: var(--simple-crop-ratio, 1);
	cursor: grab;
}

.simple-crop-stage.is-dragging {
	cursor: grabbing;
}

.simple-crop-stage canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.simple-header-media-preview {
	width: 100%;
	height: min(40dvh, 400px);
}

.simple-header-media-preview img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.simple-range-grid {
	display: grid;
	gap: 0.5rem;
	padding: 0.75rem;
	background: rgb(var(--n) / 0.03);
	border: 1px solid rgb(var(--n) / 1);
}

.simple-range-row {
	display: grid;
	grid-template-columns: 60px 1fr 40px;
	gap: 0.5rem;
	align-items: center;
}

.simple-range-row input[type="range"] {
	accent-color: rgb(var(--n) / 1);
}

.simple-editor-note {
	margin-top: 0.4rem;
	opacity: 0.6;
}

.simple-flip {
	padding: 0.4rem;
	border: 1px solid rgb(var(--n) / 1);
	background: rgb(var(--b) / 1);
	color: rgb(var(--n) / 1);
	cursor: pointer;
}

.simple-flip.is-active {
	background: rgb(var(--n) / 1);
	color: rgb(var(--b) / 1);
}

.simple-editor-saving {
	position: fixed;
	inset: 0;
	z-index: 2147483640;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgb(var(--b) / 0.8);
}

.simple-editor-saving.is-active {
	display: flex;
}

.simple-editor-saving-box {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background: rgb(var(--n) / 1);
	color: rgb(var(--b) / 1);
	border: 1px solid rgb(var(--n) / 1);
}

.simple-editor-spinner {
	width: 1rem;
	height: 1rem;
	border: 2px solid rgb(var(--b) / 0.3);
	border-top-color: rgb(var(--b) / 1);
	border-radius: 50%;
	animation: simpleEditorSpin 0.6s linear infinite;
}

@keyframes simpleEditorSpin {
	to {
		transform: rotate(360deg);
	}
}

[data-edit-field="group_text"] {
	position: relative;
}

body.simple-edit-mode .txt-mask .txt-mask-title,
body.simple-edit-mode .txt-mask [data-mask-title] {
	color: rgb(var(--b) / 0) !important;
	-webkit-text-fill-color: rgb(var(--b) / 0) !important;
	-webkit-text-stroke: 0 rgb(var(--b) / 0) !important;
	background: rgb(var(--b) / 0) !important;
	outline: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	opacity: .0000001 !important;
}

body.simple-edit-mode .txt-mask .simple-dt-hotspot {
	border: 1px dashed rgb(var(--n) / 1) !important;
	background: rgb(var(--b) / 0.1) !important;
}

body.simple-edit-mode .txt-mask .simple-dt-hotspot:hover {
	border: 1px solid rgb(var(--n) / 1) !important;
	background: rgb(var(--b) / 0.25) !important;
}

body.simple-edit-mode .poster-simple-viewpoint {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

body.simple-edit-mode .poster-simple-add-trigger {
	position: static !important;
	display: flex;
	align-items: end;
	justify-content: end;
	margin-top: 0.5rem;
	padding: 0.3rem 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
	color: rgb(var(--b) / 1);
	background: rgb(var(--n) / 1);
	border: 1px dashed rgb(var(--b) / 0.6);
	border-radius: 3px;
	cursor: pointer;
	pointer-events: auto;
	transition: all 0.2s ease;
}

body.simple-edit-mode .poster-simple-add-trigger:hover {
	background: rgb(var(--n) / 0.85);
	border-color: rgb(var(--b) / 1);
	transform: scale(1.05);
}

/* Contenedor de la grilla de configuración Matrix (2 columnas) */
.simple-matrix-config-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 1rem;
	padding: 0.75rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
	border: 1px solid rgb(var(--n) / 1);
	background: rgb(var(--n) / 0.03);
}

.simple-matrix-field-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.simple-matrix-field-item label {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	color: rgb(var(--n) / 1);
	white-space: nowrap;
}

.simple-matrix-field-item input {
	width: 70px;
	padding: 0.35rem;
	border: 1px solid rgb(var(--n) / 1);
	background: rgb(var(--b) / 1);
	color: rgb(var(--n) / 1);
	text-align: center;
}

/* Envoltorio genérico para selectores con indicador combo (flecha evidente) */
.simple-select-wrap,
.simple-editor-field select {
	position: relative;
	width: 100%;
}

.simple-editor-modal select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	padding: 0.4rem 2rem 0.4rem 0.5rem;
	border: 1px solid rgb(var(--n) / 1);
	background-color: rgb(var(--b) / 1);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23000000' d='M0 0l6 8 6-8z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 0.6rem center;
	background-size: 10px 6px;
	color: rgb(var(--n) / 1);
	cursor: pointer;
}

.simple-media-tabs {
	display: flex;
	gap: 0;
	width: 100%;
	margin-bottom: 0.75rem;
}

.simple-media-tabs button {
	flex: 1;
	padding: 0.5rem;
	text-align: center;
	font-weight: 700;
	border: 1px solid rgb(var(--n) / 1);
}

.simple-media-tabs button:first-child {
	border-right: none;
}

body.simple-edit-mode .simple-media-edit-trigger,
.simple-media-edit-trigger {
	position: absolute !important;
	bottom: 1rem !important;
	right: 5rem !important;
	top: auto !important;
	left: auto !important;
	z-index: 99999 !important;
	margin: 0 !important;
	transform: none !important;
	background: rgba(134, 134, 134, 0.8) !important;
	color: rgb(var(--n) / 1) !important;
	border-right: 10px solid rgb(var(--c3) / 1) !important;
	box-shadow: 0 4px 12px rgb(var(--n) / 0.5);
	transition: all 0.2s ease;
}

body.simple-edit-mode .simple-media-edit-trigger:hover,
.simple-media-edit-trigger:hover {
	background: rgba(134, 134, 134, 0.9) !important;
	color: rgb(var(--n) / 1) !important;
	border-color: rgb(var(--n) / 1) !important;
	box-shadow: 0 6px 18px rgb(var(--n) / 0.75);
}
/* --- BARRA SUPERIOR TRASLÚCIDA FULL WIDTH --- */
.simple-top-editor-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 2.2rem;
	z-index: 2147483400;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1rem;
	box-sizing: border-box;
	background: rgb(var(--n) / 0.4);
	backdrop-filter: blur(4px);
	border-bottom: 1px solid rgb(var(--b) / 0.1);
	pointer-events: auto;
}

.simple-top-bar-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: rgb(var(--b) / 0.9);
	text-transform: uppercase;
}

/* Modo Matrix: Aviso en rojo */
.simple-top-editor-bar.is-matrix .simple-top-bar-label {
	color: rgb(231 76 60 / 1);
}

.simple-top-bar-exit {
	font-size: 1.2rem;
	line-height: 1;
	color: rgb(var(--b) / 0.8);
	text-decoration: none;
	padding: 0.2rem 0.5rem;
	cursor: pointer;
	transition: color 0.2s ease;
}

.simple-top-bar-exit:hover {
	color: rgb(var(--b) / 1);
}

/* --- PANEL DE CONTROL MINIMALISTA (P CONTROL) --- */
.simple-editor-bar {
	position: fixed;
	left: 1rem;
	top: 3.5rem;
	z-index: 2147483500;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0;
	background: transparent;
	border: none;
	box-sizing: border-box;
	pointer-events: auto;
}

/* Botón disparador compact (Pastilla P CONTROL) */
.simple-editor-drag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.8rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: rgb(var(--n) / 0.5);
	color: rgb(var(--c3) / 1);
	border: 1px solid rgb(var(--b) / 0.2);
	box-shadow: 0 4px 12px rgb(var(--n) / 0.3);
	cursor: grab;
	user-select: none;
	backdrop-filter: blur(4px);
	transition: all 0.2s ease;
}

.simple-editor-bar:hover .simple-editor-drag,
.simple-editor-bar.is-touch-open .simple-editor-drag {
	background: rgb(var(--n) / 0.6);
	color: rgb(var(--n) / 1);
	box-shadow: 0 6px 18px rgb(var(--n) / 0.5);
}

.simple-editor-bar.is-dragging .simple-editor-drag {
	cursor: grabbing;
}

/* Acciones en columna */
.simple-editor-actions-bar {
	display: none;
	flex-direction: column;
	gap: 0.35rem;
	width: max-content;
	min-width: 160px;
	padding: 0.5rem;
	background: rgb(var(--n) / 0.85);
	border: 1px solid rgb(var(--b) / 0.2);
	backdrop-filter: blur(6px);
	box-shadow: 0 8px 24px rgb(var(--n) / 0.4);
}

/* --- PANEL DE CONTROL MINIMALISTA (P CONTROL) --- */
.simple-editor-bar {
	position: fixed;
	left: 50vw;
	top: 50vh;
	transform: translate(-50%, -50%);
	z-index: 2147483500;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0;
	background: transparent;
	border: none;
	box-sizing: border-box;
	pointer-events: auto;
}

/* Despliegue con Hover (Desktop) o Tap (Móvil) */
.simple-editor-bar:hover .simple-editor-actions-bar,
.simple-editor-bar.is-touch-open .simple-editor-actions-bar {
	display: flex;
}

/* Dirección de apertura (Columna hacia Arriba o hacia Abajo) */
.simple-editor-bar.expand-down {
	flex-direction: column;
}

.simple-editor-bar.expand-down .simple-editor-actions-bar {
	margin-top: 0.35rem;
}

.simple-editor-bar.expand-up {
	flex-direction: column-reverse;
}

.simple-editor-bar.expand-up .simple-editor-actions-bar {
	margin-bottom: 0.35rem;
}

/* Botones de acción del panel */
.simple-editor-actions-bar a,
.simple-editor-actions-bar button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.4rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	border: 1px solid rgb(var(--b) / 0.3);
	background: rgb(var(--b) / 1);
	color: rgb(var(--n) / 1);
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.simple-editor-actions-bar a:hover,
.simple-editor-actions-bar button:hover {
	background: rgb(var(--n) / 1);
	color: rgb(var(--b) / 1);
	border-color: rgb(var(--b) / 1);
}
/* --- BARRA TRASLÚCIDA SUPERIOR (FULL WIDTH) --- */
.simple-top-editor-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 2.2rem;
	z-index: 2147483400;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1rem;
	box-sizing: border-box;
	background: rgb(var(--n) / 0.4);
	backdrop-filter: blur(4px);
	border-bottom: 1px solid rgb(var(--b) / 0.1);
	pointer-events: auto;
}

.simple-top-bar-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: rgb(var(--b) / 0.9);
	text-transform: uppercase;
}

.simple-top-editor-bar.is-matrix .simple-top-bar-label {
	color: rgb(231 76 60 / 1);
}

.simple-top-bar-exit {
	font-size: 1.2rem;
	line-height: 1;
	color: rgb(var(--b) / 0.8);
	text-decoration: none;
	padding: 0.2rem 0.5rem;
	cursor: pointer;
	transition: color 0.2s ease;
}

.simple-top-bar-exit:hover {
	color: rgb(var(--b) / 1);
}

/* --- PANEL DE CONTROL MINIMALISTA --- */
.simple-editor-bar {
	position: fixed;
	left: 50vw;
	top: 50vh;
	transform: translate(-50%, -50%);
	z-index: 2147483500;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0;
	background: transparent;
	border: none;
	box-sizing: border-box;
	pointer-events: auto;
}

.simple-editor-drag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.9rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: rgb(var(--n) / 0.5);
	color: rgb(var(--c3) / 1);
	border: 1px solid rgb(var(--b) / 0.2);
	box-shadow: 0 4px 12px rgb(var(--n) / 0.3);
	cursor: grab;
	user-select: none;
	backdrop-filter: blur(4px);
	transition: all 0.2s ease;
	white-space: nowrap;
}

.simple-editor-bar:hover .simple-editor-drag,
.simple-editor-bar.is-touch-open .simple-editor-drag {
	background: rgb(var(--n) / 0.6);
	color: rgb(var(--n) / 1);
	box-shadow: 0 6px 18px rgb(var(--n) / 0.5);
}

.simple-editor-bar.is-dragging .simple-editor-drag {
	cursor: grabbing;
}

.simple-editor-actions-bar {
	display: none;
	flex-direction: column;
	gap: 0.35rem;
	width: max-content;
	min-width: 160px;
	padding: 0.5rem;
	background: rgb(var(--n) / 0.85);
	border: 1px solid rgb(var(--b) / 0.2);
	backdrop-filter: blur(6px);
	box-shadow: 0 8px 24px rgb(var(--n) / 0.4);
}

.simple-editor-bar:hover .simple-editor-actions-bar,
.simple-editor-bar.is-touch-open .simple-editor-actions-bar {
	display: flex;
}

.simple-editor-bar.expand-down {
	flex-direction: column;
}

.simple-editor-bar.expand-down .simple-editor-actions-bar {
	margin-top: 0.35rem;
}

.simple-editor-bar.expand-up {
	flex-direction: column-reverse;
}

.simple-editor-bar.expand-up .simple-editor-actions-bar {
	margin-bottom: 0.35rem;
}

@media (max-width: 767px) {
	.simple-editor-bar {
		width: calc(100vw - 2rem);
		flex-direction: column;
	}

	.simple-editor-bar-top {
		width: 100%;
		justify-content: space-between;
	}

	.simple-editor-bar .simple-editor-toggle {
		display: inline-flex;
	}

	.simple-editor-actions-bar {
		display: none;
		width: 100%;
		flex-direction: column;
	}

	.simple-editor-bar.is-tools-open .simple-editor-actions-bar {
		display: flex;
	}

	.simple-editor-box {
		width: calc(100vw - 1rem);
		max-height: calc(100dvh - 1rem);
	}

	.simple-editor-actions {
		flex-direction: column;
	}

	.simple-editor-actions button {
		width: 100%;
	}
	.simple-editor-actions-bar {
		max-height: 60vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	/* Modal a pantalla completa aprovechando todo el alto */
	.simple-editor-box.is-media {
		width: calc(100vw - 1rem) !important;
		height: calc(100dvh - 2rem) !important;
		max-height: calc(100dvh - 2rem) !important;
		padding: 0.75rem !important;
		overflow-y: auto !important;
		display: block !important;
	}
	
	/* ÁREA DE LA IMAGEN: Forzamos tamaño visible y grande */
	.simple-crop-stage {
		width: 100% !important;
		height: auto !important;
		min-height: 220px !important;
		max-height: 40dvh !important;
		margin: 0.75rem auto !important;
		border: 1px solid rgb(var(--n) / 1) !important;
	}
	
	/* Ajuste de controles de recorte */
	.simple-range-grid {
		padding: 0.5rem !important;
		gap: 0.35rem !important;
	}
	
	.simple-range-row {
		gap: 0.25rem !important;
	}
	
	/* Pestañas compactas */
	.simple-media-tabs button {
		padding: 0.4rem 0.2rem !important;
		font-size: 0.7rem !important;
	}
}