.openlime {
	position: relative;
	background-color: #000;
	height: 100%;
	touch-action: none;	/* Remove default behavior of the user agent */
}

.openlime>canvas {
	width: 100%;      /* leave this at 100%, it's needed to align annotations correctly */
	height: 100%;
	overflow: hidden; /* this is important, it would cause firefox flickering! */
	padding: 0px;
	display: block;   /* avoid baseline 1px gap under inline canvas */
}

.openlime-overlay, .openlime-svgoverlay {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
}

.openlime-overlay {
	position: absolute;
	top: 0px;
	width: 100%;
	height: 100%;
}

.openlime-scale {
	position: absolute;
	bottom: 25px;
	left: 0px;
	width: 200px;
	height: 40px;
	padding: 15px;
	fill: white;
	z-index: 1000;
}

.openlime-scale>text {
	font-size: 24px;
}

.openlime-scale>line {
	stroke: white;
	stroke-width: 2px;
}

/* DIALOG */

.openlime-dialog-background {
	opacity: 1.0;
	transition: visibility 0s linear 300ms, opacity 300ms;

	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	color: #fff;
	background: rgb(0, 0, 0, 0.5);
	padding: 20px 40px;
	border-radius: 5px;
	cursor: pointer;
}

.openlime-dialog {
	position: absolute;
	top: 10%;
	left: 15%;
	right: 15%;
	bottom: 7%;
	color: #fff;
	font-family: "Open Sans", sans-serif;
	background: rgb(32, 32, 32, 0.9);
	opacity: 0.95;
	padding: 20px 40px;
	border-radius: 5px;
	cursor: auto;
	transition: visibility 0s linear 0s, opacity 300ms;
	overflow-y: auto;
}

.openlime-dialog.openlime-info {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 25%;
	height: fit-content;
	background-color: rgb(20, 20, 20, 0.9);
	padding: 0px 10px;
	color: white;
	border-radius: 3px;
	border: 1px solid rgb(60, 60, 60);
}

.openlime-dialog.fading {
	opacity: 0.0;
}

.openlime-dialog.hidden, .openlime-dialog-background.hidden {
	visibility: hidden;
	opacity: 0.0;
}

.openlime-dialog .openlime-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	cursor: pointer;
}

.openlime-close * {
	stroke: #fff !important;
	fill: #fff !important;
}

.openlime-close:hover * {
	opacity: 70%;
}

/* HELP DIALOG (style "pill/glass" aligne sur le dock Mercurio).
   Cible le help dialog uniquement pour ne pas casser les autres modals OpenLIME. */

.openlime-dialog-background:has(.openlime-help-dialog) {
	background: rgba(0, 0, 0, 0.35);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	padding: 0;
	border-radius: 0;
}

.openlime-dialog.openlime-help-dialog {
	/* Centrage horizontal + marge basse pour ne pas chevaucher le dock
	   (dock = bottom 0.5rem + hauteur ~3rem). */
	position: absolute;
	top: max(5%, 1.25rem);
	left: 50%;
	right: auto;
	bottom: calc(5rem + env(safe-area-inset-bottom, 0));
	transform: translateX(-50%);
	width: min(640px, calc(100vw - 2.5rem));
	max-width: calc(100vw - 2.5rem);

	/* Glass-morphism identique au dock */
	background: rgba(18, 24, 38, 0.42);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	backdrop-filter: blur(28px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 1.25rem;
	box-shadow:
		0 12px 44px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		inset 0 -1px 0 rgba(0, 0, 0, 0.12);
	color: rgba(255, 249, 255, 0.95);
	opacity: 1;
	padding: 1.25rem 1.5rem;
	font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	overflow-y: auto;
	box-sizing: border-box;
}

.openlime-dialog.openlime-help-dialog .openlime-dialog-content {
	padding-right: 2rem;
}

.openlime-dialog.openlime-help-dialog .openlime-close {
	top: 0.65rem;
	right: 0.65rem;
	width: 1.85rem;
	height: 1.85rem;
	padding: 0.3rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.openlime-dialog.openlime-help-dialog .openlime-close:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.32);
}

.openlime-dialog.openlime-help-dialog .openlime-close:hover * {
	opacity: 1;
}

.openlime-dialog.openlime-help-dialog .openlime-close svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* TOOLBAR */

.openlime-toolbar rect[style] {
	fill: rgb(255, 255, 255, 0) !important;
	stroke: none !important;
}

.openlime-toolbar path[style] {
	stroke: #c3cbd8 !important;
	fill: #c3cbd8 !important
}

.openlime-toolbar text {
	stroke: #c3cbd8 !important;
	fill: #c3cbd8 !important
}

.openlime-toolbar {
	position: absolute;
	bottom: 0px;
	right: 0px;
	padding: 5px;
	background-color: transparent;
	display: flex;
}

.openlime-toolbar svg:not(:root) {
	width: auto;
	height: 5vh;
	display: block;
}

.openlime-toolbar .openlime-button:hover {
	cursor: pointer;
	opacity: 100%;
}

.openlime-toolbar .openlime-button:hover path[style],
.openlime-toolbar .openlime-button:hover text {
	stroke: #ffffff !important;
	fill: #ffffff !important;
}

.openlime-toolbar [class*="-active"] .openlime-button:not(.openlime-light) path[style],
.openlime-toolbar [class*="-active"] .openlime-button:not(.openlime-light) text,
.openlime-toolbar .openlime-button[class*="-active"]:not(.openlime-light) path[style],
.openlime-toolbar .openlime-button[class*="-active"]:not(.openlime-light) text {
	stroke: #ffffff !important;
	fill: #ffffff !important;
}

.openlime-light .openlime-bulb path[style] {
	fill: #80808011 !important;
}

.openlime-light-active .openlime-bulb path[style] {
	stroke: #ffcc00 !important;
	fill: #ffcc00 !important;
}

/* MERCURIO DOCK (glass-morphism, style Vivatech) */

.openlime-dock-mode .openlime-toolbar {
	display: none !important;
}

.openlime-dock-scale-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
	pointer-events: none;
}

.openlime-dock-scale-wrap .openlime-scale {
	position: static;
	left: auto;
	bottom: auto;
	width: 200px;
	height: auto;
	padding: 0;
	fill: rgba(255, 255, 255, 0.3);
	z-index: 1;
}

.openlime-dock-scale-wrap .openlime-scale > text {
	fill: rgba(255, 255, 255, 0.3);
	font-size: 0.72rem;
}

.openlime-dock-scale-wrap .openlime-scale > line {
	stroke: rgba(255, 255, 255, 0.3);
	stroke-width: 1.5px;
}

.openlime.openlime-dock-mode > .openlime-scale {
	display: none;
}

.openlime-dock {
	position: absolute;
	left: 50%;
	bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	/* width: max-content force le dock a prendre la largeur reelle de son contenu :
	   sans ca, `position: absolute; left: 50%` limite la largeur shrink-to-fit a 50%
	   du conteneur, ce qui coupe les boutons a droite. */
	width: max-content;
	max-width: calc(100vw - 1.25rem);
	pointer-events: none;
	z-index: 50;
	font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.openlime-dock-bar,
.openlime-dock-sliders {
	background: rgba(18, 24, 38, 0.42);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	backdrop-filter: blur(28px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 1.05rem;
	box-shadow:
		0 12px 44px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		inset 0 -1px 0 rgba(0, 0, 0, 0.12);
	color: rgba(255, 249, 255, 0.95);
	pointer-events: auto;
	box-sizing: border-box;
}

.openlime-dock-bar {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.45rem;
	padding: 0.32rem 0.45rem 0.32rem 0.75rem;
}

.openlime-dock-title {
	margin: 0;
	flex: 0 0 auto;
	max-width: min(42vw, 11rem);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: clamp(0.78rem, 1.9vw, 0.92rem);
	font-weight: 720;
	letter-spacing: -0.02em;
	color: #fff;
	line-height: 1.25;
	text-align: left;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.openlime-dock-title:empty {
	display: none;
}

.openlime-dock-sep {
	align-self: stretch;
	width: 1px;
	min-height: 2rem;
	margin: 0 0.35rem 0 0.5rem;
	background: rgba(255, 255, 255, 0.2);
	flex-shrink: 0;
}

.openlime-dock-title:empty + .openlime-dock-sep {
	display: none;
}

.openlime-dock-pills {
	display: inline-flex;
	flex-wrap: nowrap;
	flex-shrink: 0;
	gap: 0.18rem;
	align-items: center;
	padding: 0.12rem 0.14rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.18);
}

.openlime-dock-pills--tool {
	padding: 0.12rem 0.16rem;
}

.openlime-dock-btn {
	font: inherit;
	border: 1px solid transparent;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 249, 255, 0.72);
	padding: 0.38rem 0.48rem;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.openlime-dock-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

.openlime-dock-btn.active {
	color: #fff;
	border-color: rgba(250, 70, 22, 0.55);
	background: rgba(250, 70, 22, 0.22);
}

.openlime-dock-pills--flip {
	margin-right: 0.1rem;
}

.openlime-dock-btn--tool {
	min-width: 2.65rem;
}

.openlime-dock-btn svg {
	display: block;
	width: 22px;
	height: 22px;
}

.openlime-dock-mode-svg {
	display: block;
	flex-shrink: 0;
}

.openlime-dock-pills--modes .openlime-dock-btn {
	min-width: 2.85rem;
	padding: 0.28rem 0.42rem;
}

.openlime-dock-pills--modes .openlime-dock-btn svg {
	width: 28px;
	height: 28px;
}

.openlime-dock-btn-label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 0 0.2rem;
}

.openlime-dock-expand {
	font: inherit;
	border: 1px solid transparent;
	background: transparent;
	color: rgba(255, 249, 255, 0.5);
	padding: 0.3rem;
	border-radius: 0.55rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: 0.1rem;
	opacity: 0.85;
	transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.openlime-dock-expand:hover {
	color: rgba(255, 255, 255, 0.92);
	background: rgba(255, 255, 255, 0.08);
	opacity: 1;
}

.openlime-dock-expand[aria-expanded="true"] {
	color: rgba(255, 255, 255, 0.78);
	background: transparent;
	opacity: 1;
}

.openlime-dock-expand svg {
	display: block;
	width: 18px;
	height: 18px;
	transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.openlime-dock-expand[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Slider rail au-dessus de la barre */

.openlime-dock-sliders[hidden] {
	display: none;
}

.openlime-dock-sliders {
	width: min(20rem, calc(100vw - 2rem));
	padding: 0.5rem 0.78rem;
}

.openlime-dock-slider-rail {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.openlime-dock-slider-rail--stack {
	gap: 0.55rem;
}

.openlime-dock-slider-rail--dstretch {
	gap: 0.48rem;
}

.openlime-dock-slider-roi-row {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding-bottom: 0.35rem;
	margin-bottom: 0.05rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.openlime-dock-slider-roi-hint {
	flex: 1;
	min-width: 0;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: rgba(255, 249, 255, 0.58);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.openlime-dock-slider-field {
	display: grid;
	grid-template-columns: minmax(4.85rem, 5.35rem) minmax(0, 1fr) 2.85rem;
	align-items: center;
	column-gap: 0.55rem;
	font-size: 0.74rem;
	color: rgba(255, 249, 255, 0.88);
}

.openlime-dock-slider-field--no-label {
	grid-template-columns: minmax(0, 1fr) 2.85rem;
}

.openlime-dock-slider-label {
	font-weight: 600;
	font-size: 0.7rem;
	letter-spacing: 0.02em;
	color: rgba(255, 249, 255, 0.72);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.openlime-dock-slider {
	width: 100%;
	min-width: 0;
	height: 1.35rem;
	margin: 0;
	accent-color: #fa4616;
	cursor: pointer;
}

.openlime-dock-slider-value {
	justify-self: end;
	text-align: right;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 249, 255, 0.95);
	font-size: 0.72rem;
	font-weight: 600;
	min-width: 2.75rem;
}

.openlime-dock-roi-trigger {
	font: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 999px;
	padding: 0.32rem;
	min-width: 2rem;
	min-height: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 249, 255, 0.92);
}

.openlime-dock-roi-icon {
	font-size: 22px;
	line-height: 1;
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.openlime-dock-roi-trigger:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.openlime-dock-roi-trigger.active {
	border-color: #fa4616;
	background: rgba(250, 70, 22, 0.22);
	color: #fff;
}

/* Actions etendues (affichees inline quand le dock est expanded).
   Animation 0→auto width via la technique grid-template-columns (0fr → 1fr) :
   imbattable pour eviter tout wrap/saut de ligne. */

.openlime-dock-actions-wrap {
	display: grid;
	grid-template-columns: 0fr;
	overflow: hidden;
	margin-left: 0;
	flex-shrink: 0;
	transition:
		grid-template-columns 320ms cubic-bezier(0.4, 0, 0.2, 1),
		margin-left 280ms ease;
}

.openlime-dock--expanded .openlime-dock-actions-wrap {
	grid-template-columns: 1fr;
	margin-left: 0.15rem;
}

.openlime-dock-pills--actions {
	min-width: 0;
	flex-wrap: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(0.4rem);
	transition:
		opacity 200ms ease,
		transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0s linear 320ms;
}

.openlime-dock--expanded .openlime-dock-pills--actions {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
	transition:
		opacity 200ms ease 80ms,
		transform 240ms cubic-bezier(0.4, 0, 0.2, 1) 60ms,
		visibility 0s linear 0s;
}

.openlime-dock-btn--action {
	padding: 0.36rem 0.42rem;
	flex-shrink: 0;
}

.openlime-dock-btn--action svg {
	width: 20px;
	height: 20px;
}

/* Bouton edit dans le dock (icone seule + tooltip) */

.openlime-dock-edit {
	font: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.42rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 249, 255, 0.92);
	cursor: pointer;
	flex-shrink: 0;
	margin: 0;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.openlime-dock-edit:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

.openlime-dock-edit.active {
	color: #fff;
	background: #fa4616;
	border-color: #fa4616;
}

.openlime-dock-edit.active:hover {
	background: #d33b0f;
	border-color: #d33b0f;
}

.openlime-dock-edit svg {
	flex: 0 0 auto;
	display: block;
	width: 20px;
	height: 20px;
}

/* En mode dock, le label de la toolbar (top-gauche) est redondant avec la pill centrale */
.openlime-dock-mode .openlime-toolbar-label {
	display: none;
}

/* Tool toggle verrouille (ex: mode sketch) */
.openlime-dock-btn--tool:disabled,
.openlime-dock-btn--tool.is-locked {
	opacity: 0.45;
	cursor: not-allowed;
}

.openlime-dock-btn--tool:disabled:hover,
.openlime-dock-btn--tool.is-locked:hover {
	background: transparent;
	color: inherit;
}

/* Lumiere active : l'ampoule s'allume en jaune (currentColor sur le path SVG) */
.openlime-light-active .openlime-dock-pills--tool .openlime-dock-btn--tool:not(:disabled):not(.is-locked) {
	color: #ffd34d;
	background: rgba(255, 211, 77, 0.16);
	border-color: rgba(255, 211, 77, 0.4);
	box-shadow: 0 0 0 1px rgba(255, 211, 77, 0.15), 0 0 12px -2px rgba(255, 211, 77, 0.55);
}

.openlime-light-active .openlime-dock-pills--tool .openlime-dock-btn--tool:not(:disabled):not(.is-locked):hover {
	color: #ffe082;
	background: rgba(255, 211, 77, 0.24);
}

/* Tooltips immediats au hover sur les boutons du dock (data-tooltip) */
.openlime-dock [data-tooltip] {
	position: relative;
}

.openlime-dock [data-tooltip]:hover::after,
.openlime-dock [data-tooltip]:focus-visible::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: rgba(8, 6, 16, 0.94);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 4px 9px;
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
	white-space: nowrap;
	pointer-events: none;
	z-index: 60;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
}

.openlime-dock [data-tooltip]:hover::before,
.openlime-dock [data-tooltip]:focus-visible::before {
	content: '';
	position: absolute;
	bottom: calc(100% + 2px);
	left: 50%;
	transform: translateX(-50%);
	border: 4px solid transparent;
	border-top-color: rgba(8, 6, 16, 0.94);
	pointer-events: none;
	z-index: 60;
}

/* Pill annotation selectionnee (top-center) */

.openlime-selected-anno[hidden] {
	display: none;
}

.openlime-selected-anno {
	position: absolute;
	left: 50%;
	top: calc(0.65rem + env(safe-area-inset-top, 0));
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.32rem 0.32rem 0.32rem 0.85rem;
	max-width: calc(100vw - 1.5rem);
	background: rgba(18, 24, 38, 0.42);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	backdrop-filter: blur(28px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	box-shadow:
		0 12px 44px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		inset 0 -1px 0 rgba(0, 0, 0, 0.12);
	color: #fff;
	font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	font-size: 0.82rem;
	font-weight: 600;
	z-index: 55;
	pointer-events: auto;
}

.openlime-selected-anno-label {
	display: inline-block;
	max-width: min(60vw, 22rem);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	padding-left: 0.45rem;
	margin-left: 0.1rem;
	border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.openlime-selected-anno-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	padding: 0;
	margin-right: 0.35rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: inherit;
	cursor: pointer;
	transition: background-color 140ms ease, color 140ms ease;
}

.openlime-selected-anno-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.openlime-selected-anno-close svg {
	display: block;
	width: 16px;
	height: 16px;
}

/* Pill « annotation sélectionnée » → slot pour les outils de tracé + bouton « panneau ». */

/* Edit-slot (outils de tracé) : visible uniquement en mode édition */
.openlime-selected-anno-edit-slot {
	display: none;
	align-items: center;
	gap: 0.3rem;
	padding-left: 0.55rem;
	margin-left: 0.15rem;
	border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.openlime-selected-anno.is-editing .openlime-selected-anno-edit-slot {
	display: inline-flex;
	padding-right: 0.55rem;
	margin-right: 0.15rem;
	border-right: 1px solid rgba(255, 255, 255, 0.22);
}

/* Boutons d'action : toggle-edit-panel + export visibles dès qu'une annotation est sélectionnée */
.openlime-selected-anno-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: inherit;
	cursor: pointer;
	transition: background-color 140ms ease, color 140ms ease;
}

.openlime-selected-anno-action:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* Bouton dangereux (supprimer) : visible uniquement en mode édition */
.openlime-selected-anno-action--danger {
	display: none;
	color: rgba(255, 180, 180, 0.95);
}

.openlime-selected-anno.is-editing .openlime-selected-anno-action--danger {
	display: inline-flex;
}

.openlime-selected-anno-action--danger:hover {
	background: rgba(255, 80, 80, 0.22);
	color: #ffd0d0;
}

.openlime-selected-anno-action svg {
	display: block;
}

.openlime-selected-anno .openlime-annotation-edit-tools {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.25rem;
}

.openlime-selected-anno .openlime-annotation-edit-tools > * {
	flex-shrink: 0;
}

.openlime-selected-anno .openlime-annotation-edit-tools svg {
	height: 18px;
}

.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	color: inherit;
}

.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn:hover {
	background: rgba(255, 255, 255, 0.15);
}

.openlime-selected-anno .openlime-annotation-edit-tools .openlime-width-slider {
	width: 64px;
}

.openlime-selected-anno .openlime-annotation-edit-tools .openlime-stroke-color-input {
	width: 22px;
	height: 20px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	overflow: hidden;
	-webkit-appearance: none;
	appearance: none;
}

.openlime-selected-anno .openlime-annotation-edit-tools .openlime-stroke-color-input::-webkit-color-swatch-wrapper {
	padding: 0;
	border: none;
	border-radius: 0;
}

.openlime-selected-anno .openlime-annotation-edit-tools .openlime-stroke-color-input::-webkit-color-swatch {
	padding: 0;
	border: none;
	border-radius: 0;
}

.openlime-selected-anno .openlime-annotation-edit-tools .openlime-stroke-color-input::-moz-color-swatch {
	padding: 0;
	border: none;
	border-radius: 0;
}

/* Mini-toolbar polyline (Valider / Annuler) — ancree juste sous la pill `openlime-selected-anno`,
   meme look glass que la pill. */

.openlime-annotation-polyline-controls {
	position: absolute;
	left: 50%;
	top: calc(0.65rem + 2.95rem + env(safe-area-inset-top, 0));
	transform: translateX(-50%);
	display: none;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	padding: 0.28rem 0.4rem;
	background: rgba(18, 24, 38, 0.42);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	backdrop-filter: blur(28px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	box-shadow:
		0 12px 44px rgba(0, 0, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		inset 0 -1px 0 rgba(0, 0, 0, 0.12);
	color: #fff;
	font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	z-index: 56;
	pointer-events: auto;
}

.openlime-annotation-polyline-controls button {
	width: 1.85rem;
	height: 1.85rem;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.openlime-annotation-polyline-controls button svg {
	display: block;
	pointer-events: none;
}

.openlime-annotation-polyline-controls .openlime-polyline-validate {
	color: #4ade80;
}

.openlime-annotation-polyline-controls .openlime-polyline-validate:hover {
	background: rgba(74, 222, 128, 0.22);
	border-color: rgba(74, 222, 128, 0.45);
	color: #86efac;
}

.openlime-annotation-polyline-controls .openlime-polyline-cancel {
	color: #ff8a8a;
}

.openlime-annotation-polyline-controls .openlime-polyline-cancel:hover {
	background: rgba(255, 80, 80, 0.22);
	border-color: rgba(255, 138, 138, 0.45);
	color: #ffd0d0;
}

/* Mode gomme (trait entier / partiel) — barre partagée avec la polyligne */
.openlime-annotation-erase-controls .openlime-erase-mode-whole.is-active,
.openlime-annotation-erase-controls .openlime-erase-mode-partial.is-active {
	background: rgba(250, 70, 22, 0.22);
	border-color: rgba(250, 70, 22, 0.55);
	color: #fa4616;
}

/* Icones d'outils (pen, polyline, eraser, undo, redo, ...) : le skin SVG impose un
   stroke gris (#808080) en style inline. On force en blanc dans la pill pour la lisibilite. */
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn path[style],
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn polyline[style],
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn line[style],
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn circle[style],
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn rect[style] {
	stroke: #ffffff !important;
}

.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn:disabled path[style],
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn:disabled polyline[style],
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn:disabled line[style],
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn:disabled circle[style],
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn:disabled rect[style] {
	stroke: rgba(255, 255, 255, 0.4) !important;
}

/* Outil actif (crayon, polyligne, gomme, polygone booléen) — accent Mercurio */
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn.is-tool-active path[style],
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn.is-tool-active polyline[style],
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn.is-tool-active line[style],
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn.is-tool-active circle[style],
.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn.is-tool-active rect[style] {
	stroke: #fa4616 !important;
}

.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn.is-tool-active .openlime-polyline path {
	stroke: #fa4616 !important;
}

.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn.is-tool-active .openlime-polyline circle {
	fill: #fa4616 !important;
	stroke: #fa4616 !important;
}

.openlime-selected-anno .openlime-annotation-edit-tools .openlime-edit-tool-btn.is-tool-active .openlime-closed-polyline-boolean path {
	stroke: #fa4616 !important;
}

/* Glass modal (réutilisable) — partagé entre SavedViewsPanel et EditorSvgAnnotation */

.openlime-glass-modal {
	position: absolute;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	transition: opacity 160ms ease, visibility 0ms linear 160ms;
	pointer-events: auto;
}
.openlime-glass-modal.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 160ms ease, visibility 0ms linear 0ms;
}
.openlime-glass-modal__card {
	min-width: min(340px, 92vw);
	max-width: min(440px, 92vw);
	background: rgba(18, 24, 38, 0.65);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	backdrop-filter: blur(28px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 1.05rem;
	box-shadow: 0 14px 48px rgba(0, 0, 0, 0.55);
	color: #f2f2f2;
	padding: 18px 20px 16px;
	transform: translateY(8px) scale(0.98);
	transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.openlime-glass-modal.is-open .openlime-glass-modal__card {
	transform: translateY(0) scale(1);
}
.openlime-glass-modal__title {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}
.openlime-glass-modal__message {
	margin: 0 0 14px;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85);
}
.openlime-glass-modal__input {
	width: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 0.9375rem;
	font: inherit;
	line-height: 1.4;
	outline: none;
	transition: border-color 120ms ease, background 120ms ease;
}
.openlime-glass-modal__input:focus {
	border-color: #fa4616;
	background: rgba(255, 255, 255, 0.12);
}
.openlime-glass-modal__error {
	margin: 8px 0 0;
	font-size: 0.8125rem;
	color: #ffb4b4;
	min-height: 1em;
}
.openlime-glass-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}
.openlime-glass-modal__btn {
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.06);
	color: #f2f2f2;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 120ms ease, filter 120ms ease;
}
.openlime-glass-modal__btn:hover {
	background: rgba(255, 255, 255, 0.12);
}
.openlime-glass-modal__btn--primary {
	background: #fa4616;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.18);
}
.openlime-glass-modal__btn--primary:hover {
	filter: brightness(1.08);
	background: #fa4616;
}
.openlime-glass-modal__btn--danger {
	background: rgba(255, 80, 80, 0.22);
	color: #ffd0d0;
	border-color: rgba(255, 120, 120, 0.4);
}
.openlime-glass-modal__btn--danger:hover {
	background: rgba(255, 80, 80, 0.32);
}
.openlime-glass-modal__btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.openlime-lightdir {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 240ms ease, visibility 0s linear 240ms;
}

.openlime-lightdir.openlime-lightdir--visible {
	opacity: 1;
	visibility: visible;
	transition: opacity 240ms ease, visibility 0s linear 0s;
}

.openlime-lightdir line {
	stroke: #ff0;
	opacity: 0.16;
	stroke-width: 1.5px;
	vector-effect: non-scaling-stroke;
}

g.openlime-compact {
	visibility: hidden !important;
}

g.openlime-expand {
	visibility: visible !important;
}

.openlime-fullscreen-active g.openlime-compact {
	visibility: visible !important;
}

.openlime-fullscreen-active g.openlime-expand {
	visibility: hidden !important;
}

.openlime-help-window.shown {
	visibility: visible;
	opacity: 0.95;
	transition: visibility 0s linear 0s, opacity 300ms;

}

.openlime-help-window {

	opacity: 0.0;
	visibility: hidden;
	transition: visibility 0s linear 300ms, opacity 300ms;

	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	color: #fff;
	background: rgb(0, 0, 0, 0.5);
	padding: 20px 40px;
	border-radius: 5px;
	font-family: "Open Sans", sans-serif;
	cursor: pointer;
}

.openlime-help-content {
	position: absolute;
	top: 10%;
	left: 30%;
	right: 30%;
	bottom: 10%;
	color: #fff;
	background: #222;
	opacity: 0.95;
	padding: 20px 40px;
	border-radius: 5px;
	cursor: auto;
}

.openlime-help-window .openlime-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	cursor: pointer;
}

/* ATTRIBUTION */

.openlime-attribution {
	position: absolute;
	left: 20px;
	bottom: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 10px;
	color: white;
	z-index: 1000;
}

/* LAYERS MENU - MODERNIZED */

.openlime-layers-menu {
	position: absolute;
	display: flex;
	flex-direction: column;
	top: 0;
	left: -280px;
	/* Start off-screen */
	height: 100%;
	width: 280px;
	max-width: 280px;
	overflow: hidden;
	transition: left 0.3s ease-in-out;
	font-family: "Open Sans", sans-serif;
	color: #f0f0f0;
	background-color: rgba(40, 40, 40, 0.95);
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
	border-right: 1px solid rgba(255, 255, 255, 0.1);
	z-index: 100;
}

.openlime-layers-menu.open {
	left: 0;
}

.openlime-layers-menu.closing {
	left: -280px;
}

/* Header with title and close button */
.openlime-layers-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 48px;
	padding: 8px 12px;
	background-color: rgba(30, 30, 30, 0.9);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.openlime-layers-header h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
}

.openlime-layers-close-btn {
	background: transparent;
	border: none;
	color: #f0f0f0;
	font-size: 22px;
	cursor: pointer;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s;
}

.openlime-layers-close-btn:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* Content area */
.openlime-layers-content {
	flex: 1;
	overflow-y: auto;
	padding: 8px;
}

/* Section headers */
.openlime-section {
	font-size: 13px;
	font-weight: 500;
	margin: 10px 4px 6px 4px;
	padding-bottom: 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color: #f0f0f0;
}

.openlime-layers-content > .openlime-section:first-child {
	display: none;
}

/* Entry styling */
.openlime-entry {
	display: flex;
	align-items: center;
	margin: 3px 0;
	padding: 7px 9px;
	border-radius: 6px;
	color: #f0f0f0;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
	font-size: 13px;
	cursor: pointer;
	position: relative;
}

/* Layer entries */
.openlime-layer-entry {
	background-color: rgba(60, 60, 60, 0.5);
	font-weight: 500;
}

.openlime-layer-entry:hover {
	background-color: rgba(80, 80, 80, 0.8);
}

.openlime-layer-entry.active {
	background-color: rgba(70, 130, 180, 0.6);
	color: #ffffff;
}

.openlime-layer-icon {
	display: none;
	width: 16px;
	height: 16px;
	margin-right: 10px;
	background-color: currentColor;
	border-radius: 3px;
	opacity: 0.7;
}

.openlime-layer-name {
	flex: 1;
}

.openlime-layer-status {
	font-weight: bold;
	font-size: 13px;
	color: #4CAF50;
}

/* Mode entries */
.openlime-mode-entry {
	padding-left: 16px;
	background-color: rgba(50, 50, 50, 0.3);
	margin-left: 8px;
	font-size: 12px;
}

.openlime-mode-entry:hover {
	background-color: rgba(70, 70, 70, 0.5);
}

.openlime-mode-entry.active {
	background-color: rgba(60, 100, 140, 0.5);
	color: #ffffff;
}

.openlime-mode-icon {
	display: none;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	background-color: currentColor;
	border-radius: 50%;
	opacity: 0.7;
}

/* Lists (for mode groups) */
.openlime-list {
	margin-left: 0;
	display: flex;
	flex-direction: column;
	height: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out;
}

.active+.openlime-list {
	height: auto;
	max-height: 500px;
	/* Large enough to contain content */
	margin-top: 3px;
	margin-bottom: 6px;
}

/* Slider improvements */
.openlime-slider-container {
	display: flex;
	align-items: center;
	padding: 4px 9px 8px 24px;
}

.openlime-slider {
	flex: 1;
	height: 6px;
	-webkit-appearance: none;
	appearance: none;
	background: rgba(255, 255, 255, 0.2);
	outline: none;
	border-radius: 3px;
}

.openlime-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #4CAF50;
	cursor: pointer;
	transition: background 0.2s;
}

.openlime-slider::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #4CAF50;
	cursor: pointer;
	transition: background 0.2s;
	border: none;
}

.openlime-slider::-webkit-slider-thumb:hover {
	background: #5DBE60;
}

.openlime-slider::-moz-range-thumb:hover {
	background: #5DBE60;
}

.openlime-slider-value {
	min-width: 30px;
	text-align: right;
	margin-left: 10px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
}

/* Scrollbar styling */
.openlime-layers-content::-webkit-scrollbar {
	width: 6px;
}

.openlime-layers-content::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.1);
}

.openlime-layers-content::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 6px;
}

.openlime-layers-content::-webkit-scrollbar-thumb:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

/* Annotations better styling */
.openlime-list.openlime-annotations {
	padding: 3px;
	border-radius: 6px;
	background-color: rgba(40, 40, 40, 0.4);
	margin-top: 4px;
}

/* Uniform UI Controls */

/* Separator between modes and uniforms */
.openlime-uniform-separator {
	margin: 10px 0;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.15);
}

/* Uniforms section header */
.openlime-uniform-section {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	margin: 15px 0 8px 0;
	padding-left: 5px;
	padding-bottom: 5px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Container for uniform item */
.openlime-uniform-container {
	margin: 8px 0;
	padding: 6px 8px;
	background-color: rgba(60, 60, 60, 0.3);
	border-radius: 4px;
}

/* Uniform name */
.openlime-uniform-name {
	font-size: 13px;
	margin-bottom: 5px;
	color: #e0e0e0;
}

/* Wrapper for the actual control */
.openlime-uniform-control-wrapper {
	margin-top: 5px;
	width: 100%;
	/* Assicura che il wrapper prenda tutta la larghezza disponibile */
}

/* Line edit styling */
.openlime-uniform-line-edit {
	width: calc(100% - 18px);
	/* Riduce la larghezza per tenerlo dentro il container */
	background-color: rgba(40, 40, 40, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 3px;
	color: #ffffff;
	padding: 6px 8px;
	font-size: 12px;
	transition: border-color 0.2s, background-color 0.2s;
	box-sizing: border-box;
	/* Assicura che padding non aumenti la dimensione */
}

.openlime-uniform-line-edit:focus {
	background-color: rgba(50, 50, 50, 0.8);
	border-color: rgba(100, 160, 220, 0.6);
	outline: none;
}

/* Slider styling */
.openlime-uniform-slider-container {
	display: flex;
	align-items: center;
	width: 100%;
}

.openlime-uniform-slider {
	flex: 1;
	height: 6px;
	-webkit-appearance: none;
	appearance: none;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
	outline: none;
}

.openlime-uniform-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #4CAF50;
	cursor: pointer;
	transition: background-color 0.2s;
}

.openlime-uniform-slider::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #4CAF50;
	cursor: pointer;
	border: none;
}

.openlime-uniform-slider::-webkit-slider-thumb:hover {
	background-color: #5DBE60;
}

.openlime-uniform-slider::-moz-range-thumb:hover {
	background-color: #5DBE60;
}

.openlime-uniform-slider-value {
	min-width: 40px;
	text-align: right;
	margin-left: 10px;
	font-size: 12px;
	background-color: rgba(40, 40, 40, 0.6);
	color: rgba(255, 255, 255, 0.8);
	padding: 2px 6px;
	border-radius: 3px;
}

/* Checkbox styling */
.openlime-uniform-checkbox-wrapper {
	display: inline-block;
	position: relative;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.openlime-uniform-checkbox {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.openlime-uniform-checkbox-custom {
	position: relative;
	display: inline-block;
	height: 20px;
	width: 20px;
	background-color: rgba(40, 40, 40, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	transition: background-color 0.2s;
}

.openlime-uniform-checkbox:checked~.openlime-uniform-checkbox-custom {
	background-color: rgba(76, 175, 80, 0.8);
	border-color: rgba(255, 255, 255, 0.4);
}

.openlime-uniform-checkbox-custom:after {
	content: "";
	position: absolute;
	display: none;
	left: 7px;
	top: 3px;
	width: 4px;
	height: 9px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.openlime-uniform-checkbox:checked~.openlime-uniform-checkbox-custom:after {
	display: block;
}

.openlime-uniform-checkbox:focus~.openlime-uniform-checkbox-custom {
	box-shadow: 0 0 0 2px rgba(100, 160, 220, 0.3);
}


/* editor */

.openlime-annotation-edit-container {
	position: absolute;
	inset: 0;
	z-index: 1000;
	pointer-events: none;
}

.openlime-annotation-edit-container > * {
	pointer-events: auto;
}

/* Drawer latéral droit (formulaire d'annotation) — shell commun via MercurioRightDrawers / UIBasic */

.openlime-annotation-edit__header {
	flex-shrink: 0;
}

.openlime-annotation-edit__title-wrap {
	flex: 1;
	margin: 0;
	min-width: 0;
	display: flex;
	align-items: center;
}

.openlime-annotation-edit__title-input {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin: 0;
	padding: 4px 8px;
	background: transparent !important;
	border: none !important;
	border-radius: 6px;
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.3;
	transition: background-color 140ms ease, box-shadow 140ms ease;
}

.openlime-annotation-edit:not(.is-readonly) .openlime-annotation-edit__title-input {
	cursor: text;
}

.openlime-annotation-edit:not(.is-readonly) .openlime-annotation-edit__title-input:hover:not(:focus) {
	background: rgba(255, 255, 255, 0.06) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.openlime-annotation-edit__title-input:focus {
	outline: none;
	border: none !important;
	background: rgba(255, 255, 255, 0.08) !important;
	box-shadow: inset 0 0 0 1px rgba(250, 70, 22, 0.55);
}

.openlime-annotation-edit__title-input::placeholder {
	color: rgba(255, 255, 255, 0.42);
	font-weight: 600;
}

.openlime-annotation-edit__close {
	position: static;
	cursor: pointer;
}

.openlime-annotation-edit__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 8px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 13px;
	line-height: 1.4;
}

.openlime-annotation-edit__publish-block[hidden] {
	display: none !important;
}

.openlime-annotation-edit__publish-block {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.openlime-annotation-edit__publish-block label.openlime-publish-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	cursor: pointer;
	user-select: none;
	transition: border-color 140ms ease, background-color 140ms ease;
}

.openlime-annotation-edit__publish-block label.openlime-publish-row:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.18);
}

.openlime-annotation-edit__publish-block .openlime-publish-icons {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	font-family: "Material Symbols Rounded", "Material Symbols Outlined", sans-serif;
	font-weight: normal;
	font-style: normal;
	font-size: 20px;
	line-height: 1;
	transition: background-color 140ms ease;
}

.openlime-annotation-edit__publish-block .openlime-publish-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.7);
	transition: opacity 140ms ease, color 140ms ease, transform 140ms ease;
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.openlime-annotation-edit__publish-block .openlime-publish-icon--on {
	opacity: 0;
	transform: scale(0.85);
	color: #fa4616;
}

.openlime-annotation-edit__publish-block label.openlime-publish-row:has(input:checked) .openlime-publish-icons {
	background: rgba(250, 70, 22, 0.14);
}

.openlime-annotation-edit__publish-block label.openlime-publish-row:has(input:checked) .openlime-publish-icon--off {
	opacity: 0;
	transform: scale(0.85);
}

.openlime-annotation-edit__publish-block label.openlime-publish-row:has(input:checked) .openlime-publish-icon--on {
	opacity: 1;
	transform: scale(1);
}

.openlime-annotation-edit__publish-block .openlime-publish-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.openlime-annotation-edit__publish-block .openlime-publish-title {
	font-weight: 600;
	font-size: 0.875rem;
	color: #fff;
	letter-spacing: 0.01em;
	line-height: 1.2;
}

.openlime-annotation-edit__publish-block .openlime-publish-hint {
	font-size: 11px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.35;
}

.openlime-annotation-edit__publish-block .openlime-publish-hint--on {
	display: none;
}

.openlime-annotation-edit__publish-block .openlime-publish-hint--off {
	display: block;
}

.openlime-annotation-edit__publish-block label.openlime-publish-row:has(input:checked) .openlime-publish-hint--on {
	display: block;
}

.openlime-annotation-edit__publish-block label.openlime-publish-row:has(input:checked) .openlime-publish-hint--off {
	display: none;
}

.openlime-annotation-edit__publish-block .openlime-publish-switch {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
	flex-shrink: 0;
}

.openlime-annotation-edit__publish-block .openlime-publish-switch input[type="checkbox"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.openlime-annotation-edit__publish-block .openlime-publish-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: background-color 160ms ease, border-color 160ms ease;
	pointer-events: none;
}

.openlime-annotation-edit__publish-block .openlime-publish-switch__thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	transition: transform 160ms ease;
	pointer-events: none;
}

.openlime-annotation-edit__publish-block label.openlime-publish-row:has(input:checked) .openlime-publish-switch__track {
	background: #fa4616;
	border-color: rgba(250, 70, 22, 0.5);
}

.openlime-annotation-edit__publish-block label.openlime-publish-row:has(input:checked) .openlime-publish-switch__thumb {
	transform: translateX(16px);
}

.openlime-annotation-edit.is-readonly .openlime-annotation-edit__publish-block label.openlime-publish-row {
	cursor: default;
	opacity: 0.7;
}

.openlime-annotation-edit.is-readonly .openlime-annotation-edit__publish-block label.openlime-publish-row:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
}

.openlime-annotation-edit__description-block[hidden] {
	display: none !important;
}

.openlime-annotation-edit__description-block > label {
	margin-top: 0;
}

.openlime-annotation-edit__actions {
	margin-top: 4px;
}

.openlime-annotation-edit__body::-webkit-scrollbar { width: 6px; }
.openlime-annotation-edit__body::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 6px;
}
.openlime-annotation-edit__body::-webkit-scrollbar-thumb:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

.openlime-annotation-edit label {
	display: block;
	margin-top: 6px;
	font-weight: 600;
	color: #d8d8d8;
}

.openlime-annotation-edit__body input[type="text"],
.openlime-annotation-edit textarea {
	width: 100%;
	box-sizing: border-box;
	margin-top: 2px;
	padding: 6px 8px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 6px;
	color: #ffffff;
	font: inherit;
	resize: vertical;
}

.openlime-annotation-edit__body input[type="text"]:focus,
.openlime-annotation-edit textarea:focus {
	outline: none;
	border-color: #fa4616;
	background: rgba(255, 255, 255, 0.12);
}

.openlime-annotation-edit .openlime-state {
	padding: 6px 14px;
	background: #fa4616;
	border: 0;
	border-radius: 6px;
	color: #ffffff;
	font-weight: 600;
	cursor: pointer;
	margin-right: 8px;
}

.openlime-annotation-edit .openlime-state:hover {
	background: #d33b0f;
}

/* Drawer en mode lecture seule (annotation affichée sans entrer en édition) */
.openlime-annotation-edit.is-readonly .openlime-state { display: none; }
.openlime-annotation-edit.is-readonly .openlime-annotation-edit__body input[type="text"][readonly],
.openlime-annotation-edit.is-readonly textarea[readonly] {
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.85);
	cursor: default;
}
.openlime-annotation-edit.is-readonly .openlime-annotation-edit__body input[type="text"][readonly]:focus,
.openlime-annotation-edit.is-readonly textarea[readonly]:focus {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.04);
}
.openlime-annotation-edit.is-readonly .openlime-annotation-edit__title-input[readonly] {
	background: transparent !important;
	border: none !important;
	color: #fff;
	cursor: default;
}
.openlime-annotation-edit.is-readonly .openlime-annotation-edit__title-input[readonly]:focus {
	border: none !important;
	background: transparent !important;
	box-shadow: none;
}
.openlime-annotation-edit.is-readonly input[type="checkbox"][disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}
.openlime-annotation-edit.is-readonly .openlime-select-menu {
	pointer-events: none;
	opacity: 0.85;
}

/* Unified annotation toolbar : bouton « éditer » actif en mode édition */

.openlime-unified-annotation-toolbar [data-action="edit"].is-active {
	color: #fa4616;
}

.openlime-tools {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.openlime-annotation-edit-tools svg,
.openlime-tools svg {
	height: 25px;
	cursor: pointer;
	margin-right: 0;
}

.openlime-annotation-edit-tools {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.openlime-annotation-edit-tools .openlime-edit-tool-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	color: inherit;
}

.openlime-annotation-edit-tools .openlime-edit-tool-btn:hover {
	background: rgba(255, 255, 255, 0.08);
}

.openlime-annotation-edit-tools .openlime-edit-tool-btn svg {
	margin-right: 0;
	pointer-events: none;
}

.openlime-annotation-edit-tools .openlime-width-slider {
	width: 90px;
}

.openlime-annotation-edit-tools .openlime-stroke-color-input {
	width: 28px;
	height: 24px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	cursor: pointer;
}

.openlime-tool {
	height: 25px;
	width: 25px;
}

.openlime-annotation-edit select,
.openlime-annotation-edit option {
	width: 40px;
}

.openlime-annotation-edit option:hover {
	background: red;
}

.openlime-eye,
.openlime-eye-off {
	height: 14px;
	float: right;
}

.openlime-eye,
.hidden .openlime-eye-off {
	display: block;
}

.openlime-eye-off,
.hidden .openlime-eye {
	display: none;
}

.openlime-eye:hover,
.openlime-eye-off:hover {
	color: #ffa;
}

/*.openlime-annotation-edit-tools .active {  background-color:rgb(80, 80, 80); } */

.openlime-tool.active,
.openlime-tool.active * {
	stroke: #fff !important;
}

.openlime-annotation-edit-tools .active * {
	stroke: #fff !important;
}

.openlime-overlay.erase {
	cursor: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'><circle fill='rgba(255, 255, 255, 0.7)' cx='11' cy='11' r='10'/></svg>") 11 11, pointer;
}

.openlime-overlay.crosshair {
	cursor: crosshair;
}

/* ROI échantillon DStretch Mercurio : le curseur doit gagner sur les enfants (SVG annotations, etc.) */
.openlime-overlay.mercurio-dstretch-roi-armed,
.openlime-overlay.mercurio-dstretch-roi-armed *:not(.mercurio-dstretch-roi-svg):not(.mercurio-dstretch-roi-svg *) {
	cursor: crosshair !important;
}

/* Rectangle de selection DStretch : SVG au-dessus des annotations (Chrome + Safari). */
.mercurio-dstretch-roi-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2147483646;
	overflow: visible;
}

.mercurio-dstretch-roi-rect {
	shape-rendering: geometricPrecision;
	paint-order: stroke fill;
}

/* Editor select */

.openlime-select {
	background: #888;
	position: relative;
	cursor: pointer;
	display: inline-block;
	height: 24px;
	width: 100%;
}

.openlime-select-button {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: #888;
	padding: 2px 15px;
}

.openlime-select-button:after {
	content: "";
	width: 0;
	height: 0;
	border: 7px solid transparent;
	border-color: #fff transparent transparent transparent;
	position: absolute;
	top: 8px;
	right: 10px;
}

.openlime-select-button:hover {
	background-color: #444;
}

.active .openlime-select-button {
	background-color: #888;
}

.active .openlime-select-button:after {
	top: 1px;
	border-color: transparent transparent #fff transparent;

}

.openlime-select-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 999;
	margin: 0;
	padding: 0;
	list-style: none;
}

.active .openlime-select-menu {
	display: block;
}

.openlime-select-menu li {
	margin: 0;
	padding: 2px 0;
	text-indent: 15px;
	/* border-top: 1px solid darken($select-background, 10); */
	/*	@include transition(all 0.15s ease-in); */
}

.openlime-select-menu li:hover {
	color: #fff;
	border: 1px #aaa;
}

/* Mercurio: liste d'annotations rendue inline (toujours visible, pas en dropdown).
   Specificite renforcee (.openlime-annotations-menu.openlime-annotations-menu--inline)
   pour battre la regle legacy `.openlime-annotations-menu { display: none }`
   declaree plus loin dans la feuille. */
.openlime-annotations-menu.openlime-annotations-menu--inline {
	display: block;
	position: static;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	list-style: none;
}

.openlime-annotations-list-shell {
	width: 100%;
	margin-top: 2px;
}

.openlime-annotations-menu--inline > li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 3px 7px;
	margin: 0;
	text-indent: 0;
	border-radius: 4px;
	cursor: pointer;
}

.openlime-annotations-menu--inline > li.openlime-annotations-search-container {
	cursor: text;
	padding: 3px 7px;
}

.openlime-annotations-menu--inline .openlime-annotations-search-input {
	width: 100%;
	padding: 3px 7px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	color: inherit;
	font: inherit;
	box-sizing: border-box;
}

.openlime-annotations-menu--inline .openlime-annotations-group-header {
	cursor: default;
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.7;
	padding: 5px 7px 2px;
}

.openlime-annotations-menu--inline .openlime-annotations-option {
	transition: background-color 120ms ease;
}

.openlime-annotations-menu--inline .openlime-annotations-option:hover {
	background: rgba(255, 255, 255, 0.08);
}

.openlime-annotations-menu--inline .openlime-annotations-option.selected {
	background: rgba(250, 70, 22, 0.25);
}

.openlime-annotations-menu--inline .openlime-annotations-text {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.openlime-annotations-menu--inline .openlime-annotations-visibility,
.openlime-annotations-menu--inline .openlime-annotations-group-visibility {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	cursor: pointer;
}

/*****************************************************/
/* LensDashboard */

.openlime-lens-dashboard {
	/* -webkit-animation: fadein 1s linear forwards;
	animation: fadein 1s linear forwards; */
	visibility: visible !important;
	/* background-color: rgb(200, 0, 0, 0.8) !important; */
}

.openlime-lens-dashboard.closed .openlime-lens-dashboard-annoswitch-bar {
	visibility: hidden !important;
}

.openlime-lens-dashboard.closed {
	/* -webkit-animation: fadeout 1s linear forwards;
	animation: fadeout 1s linear forwards; */
	visibility: hidden !important;
}

.openlime-lens-dashboard-button-bkg {
	fill: #333 !important;
	pointer-events: none;
}

.openlime-lens-dashboard-button.enabled {
	pointer-events: auto;
	cursor: pointer;
}

.enabled .openlime-lens-dashboard-button-bkg {
	fill: #aaa !important;
}

.openlime-lens-dashboard-button:hover .openlime-lens-dashboard-button-bkg {
	fill: #ccc !important;
}

.openlime-lens-dashboard-camera-active .openlime-lens-dashboard-button-bkg {
	fill: #fff !important;
}

.openlime-lens-dashboard-light-active .openlime-lens-dashboard-button-bkg {
	fill: #fff !important;
}


/*****************************************************/
/* Ruler */

.openlime-ruler {
	width: 100%;
	height: 100%;
}

.openlime-ruler path,
.openlime-ruler line {
	stroke: yellow;
	stroke-width: 2px;
	vector-effect: non-scaling-stroke;
}

.openlime-ruler text {
	fill: yellow;
}

.openlime-button.openlime-ruler-active path[style] {
	fill: yellow !important;
	stroke: yellow !important;
}

.openlime-overlaymsg {
	background: white;
	opacity: 80%;
	position: absolute;
	top: 0px;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;

	animation: fadeOut 3s;
}

@keyframes fadeOut {
	0% {
		opacity: 0.8;
	}

	33% {
		opacity: 0.8;
	}

	66% {
		opacity: 0;
	}

	100% {
		opacity: 0;
	}
}

/* ANNOTATIONS DROPDOWN STYLING */

/* Fix for dropdown overflow - modify container when dropdown is open */
.openlime-layers-content.dropdown-open {
    overflow: visible !important;
}

.openlime-annotations-select {
    background: rgba(60, 60, 60, 0.5);
    position: relative;
    cursor: pointer;
    display: block;
    width: 100%;
    margin: 5px 0;
    border-radius: 6px;
}

.openlime-annotations-button {
    position: relative;
    background-color: rgba(60, 60, 60, 0.5);
    padding: 8px 30px 8px 12px;
    color: #f0f0f0;
    font-size: 14px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.openlime-annotations-button:hover {
    background-color: rgba(80, 80, 80, 0.8);
}

.openlime-annotations-button:after {
    content: "";
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #f0f0f0 transparent transparent transparent;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    transition: transform 0.2s;
}

.openlime-annotations-select.active .openlime-annotations-button {
    background-color: rgba(70, 130, 180, 0.6);
    border-radius: 6px 6px 0 0;
}

.openlime-annotations-select.active .openlime-annotations-button:after {
    transform: translateY(-50%) rotate(180deg);
}

.openlime-annotations-selected-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 40px);
}

/* Dropdown menu with fixed position, limited to 10 items max */
.openlime-annotations-menu {
    display: none;
    position: fixed;
    z-index: 10000;
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: rgba(50, 50, 50, 0.95);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    /* Height for maximum 10 items (each item ~18px high) */
    max-height: 180px;
    overflow-y: auto;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none; /* Remove top border to connect with button */
}

.openlime-annotations-select.active .openlime-annotations-menu {
    display: block;
}

.openlime-annotations-option {
    margin: 0;
    padding: 8px 12px;
    color: #f0f0f0;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 18px; /* Consistent height for calculation */
}

.openlime-annotations-option:last-child {
    border-bottom: none;
    border-radius: 0 0 6px 6px;
}

.openlime-annotations-option:hover {
    background-color: rgba(70, 70, 70, 0.8);
}

.openlime-annotations-option.selected {
    background-color: rgba(70, 130, 180, 0.6);
    color: #ffffff;
}

.openlime-annotations-option.selected:hover {
    background-color: rgba(80, 140, 190, 0.8);
}

.openlime-annotations-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.openlime-annotations-visibility {
    display: flex;
    align-items: center;
    padding: 2px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.openlime-annotations-visibility:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Visibility icons styling */
.openlime-annotations-option .openlime-eye,
.openlime-annotations-option.hidden .openlime-eye-off {
    display: block;
}

.openlime-annotations-option .openlime-eye-off,
.openlime-annotations-option.hidden .openlime-eye {
    display: none;
}

.openlime-annotations-option.hidden {
    opacity: 0.5;
}

.openlime-annotations-option.hidden .openlime-annotations-text {
    text-decoration: line-through;
}

/* Scrollbar for dropdown menu - thinner and more subtle */
.openlime-annotations-menu::-webkit-scrollbar {
    width: 4px;
}

.openlime-annotations-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.openlime-annotations-menu::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.openlime-annotations-menu::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Mercurio: focus clavier visible sur les controles OpenLIME */
.openlime :is(
	button,
	input,
	select,
	textarea,
	[role="button"],
	.openlime-toolbar-btn,
	.openlime-glass-modal__btn
):focus-visible {
	outline: 2px solid #fa4616;
	outline-offset: 2px;
}

/* ---- Visites virtuelles RTI ---- */

.openlime.openlime-tour-active .openlime-dock {
	display: none;
}

.openlime.openlime-tour-active.openlime-tour-exploring .openlime-dock,
.openlime.openlime-tour-active.openlime-tour-manual .openlime-dock,
.openlime.openlime-tour-active.openlime-tour-paused:not(.openlime-tour-kiosk) .openlime-dock {
	display: flex;
}

.openlime-tour-topbar {
	position: absolute;
	top: calc(0.5rem + env(safe-area-inset-top, 0));
	left: 0;
	right: 0;
	margin-inline: auto;
	width: min(56rem, calc(100% - 1rem));
	max-width: calc(100% - 1rem);
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.45rem 0.55rem;
	background: rgba(12, 14, 18, 0.72);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	backdrop-filter: blur(24px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
	color: rgba(255, 249, 255, 0.95);
	pointer-events: auto;
	z-index: 1000;
	font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	box-sizing: border-box;
	transition:
		background-color 360ms cubic-bezier(0.4, 0, 0.2, 1),
		border-color 360ms cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 360ms cubic-bezier(0.4, 0, 0.2, 1),
		-webkit-backdrop-filter 360ms cubic-bezier(0.4, 0, 0.2, 1),
		backdrop-filter 360ms cubic-bezier(0.4, 0, 0.2, 1),
		padding 380ms cubic-bezier(0.4, 0, 0.2, 1),
		border-radius 380ms cubic-bezier(0.4, 0, 0.2, 1),
		width 400ms cubic-bezier(0.4, 0, 0.2, 1),
		max-width 400ms cubic-bezier(0.4, 0, 0.2, 1),
		gap 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

.openlime-tour-topbar--idle {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
}

.openlime-tour-topbar--with-head.openlime-tour-topbar--idle {
	border-radius: 999px;
	padding-inline: 0.35rem;
}

.openlime-tour-topbar[hidden] {
	display: none !important;
}

.openlime-tour-topbar--with-head {
	flex-direction: column;
	align-items: stretch;
	gap: 0.3rem;
	border-radius: 1rem;
	padding: 0.5rem 0.6rem 0.45rem;
	width: 100%;
	max-width: min(56rem, calc(100% - 1rem));
}

.openlime-tour-topbar--manual.openlime-tour-topbar--with-head,
.openlime-tour-topbar--paused.openlime-tour-topbar--with-head {
	align-items: center;
	border-radius: 999px;
	padding: 0.45rem 0.55rem;
	gap: 0;
	width: 100%;
	max-width: min(18rem, calc(100% - 1rem));
}

.openlime-tour-topbar__head {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
	max-height: 3rem;
	overflow: hidden;
	opacity: 1;
	transition:
		opacity 320ms cubic-bezier(0.4, 0, 0.2, 1) 70ms,
		max-height 380ms cubic-bezier(0.4, 0, 0.2, 1) 40ms,
		margin 380ms cubic-bezier(0.4, 0, 0.2, 1) 40ms;
}

.openlime-tour-topbar--idle .openlime-tour-topbar__head,
.openlime-tour-topbar--manual.openlime-tour-topbar--with-head .openlime-tour-topbar__head,
.openlime-tour-topbar--paused.openlime-tour-topbar--with-head .openlime-tour-topbar__head {
	opacity: 0;
	max-height: 0;
	margin: 0;
	pointer-events: none;
	transition:
		opacity 220ms cubic-bezier(0.4, 0, 0.2, 1),
		max-height 320ms cubic-bezier(0.4, 0, 0.2, 1),
		margin 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.openlime-tour-topbar__back {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	color: rgba(255, 249, 255, 0.88);
	text-decoration: none;
	transition: background-color 140ms ease, color 140ms ease;
}

.openlime-tour-topbar__back .material-symbols-rounded {
	font-size: 1.2rem;
	line-height: 1;
}

.openlime-tour-topbar__back:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.openlime-tour-topbar__meta {
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
	min-width: 0;
}

.openlime-tour-topbar__title {
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.2;
	color: rgba(255, 249, 255, 0.98);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.openlime-tour-topbar__subtitle {
	font-size: 0.72rem;
	line-height: 1.25;
	color: rgba(255, 249, 255, 0.62);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.openlime-tour-topbar__controls {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	transition: gap 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

.openlime-tour-topbar--manual.openlime-tour-topbar--with-head .openlime-tour-topbar__controls,
.openlime-tour-topbar--paused.openlime-tour-topbar--with-head .openlime-tour-topbar__controls {
	justify-content: center;
	gap: 0;
}

.openlime-tour-topbar__progress {
	flex: 1;
	min-width: 0;
	max-width: 100%;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	overflow: hidden;
	opacity: 1;
	transition:
		flex 380ms cubic-bezier(0.4, 0, 0.2, 1) 90ms,
		max-width 380ms cubic-bezier(0.4, 0, 0.2, 1) 90ms,
		width 380ms cubic-bezier(0.4, 0, 0.2, 1) 90ms,
		opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 120ms,
		gap 360ms cubic-bezier(0.4, 0, 0.2, 1) 90ms,
		margin 360ms cubic-bezier(0.4, 0, 0.2, 1) 90ms;
}

.openlime-tour-topbar--manual.openlime-tour-topbar--with-head .openlime-tour-topbar__progress,
.openlime-tour-topbar--paused.openlime-tour-topbar--with-head .openlime-tour-topbar__progress {
	flex: 0 0 0;
	width: 0;
	min-width: 0;
	max-width: 0;
	opacity: 0;
	gap: 0;
	margin: 0;
	overflow: hidden;
	pointer-events: none;
	transition:
		flex 320ms cubic-bezier(0.4, 0, 0.2, 1),
		max-width 320ms cubic-bezier(0.4, 0, 0.2, 1),
		width 320ms cubic-bezier(0.4, 0, 0.2, 1),
		opacity 220ms cubic-bezier(0.4, 0, 0.2, 1),
		gap 320ms cubic-bezier(0.4, 0, 0.2, 1),
		margin 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.openlime-tour-topbar--manual.openlime-tour-topbar--with-head .openlime-tour-topbar__counter,
.openlime-tour-topbar--manual.openlime-tour-topbar--with-head .openlime-tour-topbar__timeline,
.openlime-tour-topbar--paused.openlime-tour-topbar--with-head .openlime-tour-topbar__counter,
.openlime-tour-topbar--paused.openlime-tour-topbar--with-head .openlime-tour-topbar__timeline {
	flex: 0 0 0;
	width: 0;
	min-width: 0;
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.openlime-tour-topbar__counter {
	flex-shrink: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #f93822;
	min-width: 2.5rem;
}

.openlime-tour-topbar__step-title {
	min-width: 0;
	padding: 0 0.5rem;
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.005em;
	color: rgba(255, 249, 255, 0.88);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
	box-sizing: border-box;
	transition:
		text-shadow 220ms ease,
		color 220ms ease,
		opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 130ms,
		transform 380ms cubic-bezier(0.4, 0, 0.2, 1) 110ms,
		visibility 300ms cubic-bezier(0.4, 0, 0.2, 1) 130ms,
		max-height 320ms cubic-bezier(0.4, 0, 0.2, 1),
		margin 320ms cubic-bezier(0.4, 0, 0.2, 1),
		padding 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.openlime-tour-topbar--with-head .openlime-tour-topbar__step-title:not([hidden]) {
	position: fixed;
	top: calc(0.62rem + env(safe-area-inset-top, 0));
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	max-width: min(40rem, calc(100vw - 12rem));
	z-index: 1001;
	pointer-events: none;
}

.openlime-tour-topbar__step-title[hidden] {
	display: none;
}

.openlime-tour-topbar--idle .openlime-tour-topbar__step-title {
	color: #fafaf8;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.openlime-tour-topbar--manual.openlime-tour-topbar--with-head .openlime-tour-topbar__step-title,
.openlime-tour-topbar--paused.openlime-tour-topbar--with-head .openlime-tour-topbar__step-title {
	opacity: 0;
	visibility: hidden;
	max-height: 0;
	margin: 0;
	padding-block: 0;
	overflow: hidden;
	transform: translateX(-50%) translateY(-0.3rem);
	pointer-events: none;
	transition:
		opacity 200ms cubic-bezier(0.4, 0, 0.2, 1),
		transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
		visibility 200ms cubic-bezier(0.4, 0, 0.2, 1),
		max-height 280ms cubic-bezier(0.4, 0, 0.2, 1),
		margin 280ms cubic-bezier(0.4, 0, 0.2, 1),
		padding 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.openlime-tour-topbar__timeline {
	position: relative;
	flex: 1;
	min-width: 0;
	height: 1.35rem;
	overflow: hidden;
}

.openlime-tour-topbar__line-bg,
.openlime-tour-topbar__line-fill,
.openlime-tour-topbar__step-fill {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 0.22rem;
	border-radius: 999px;
}

.openlime-tour-topbar__line-bg {
	width: 100%;
	background: rgba(255, 255, 255, 0.16);
}

.openlime-tour-topbar__line-fill {
	width: 0;
	background: rgba(249, 56, 34, 0.45);
	transition: width 80ms linear;
	z-index: 1;
}

.openlime-tour-topbar__step-fill {
	width: 0;
	background: linear-gradient(90deg, #f93822, rgba(249, 56, 34, 0.75));
	transition: width 80ms linear, left 120ms ease;
	z-index: 2;
}

.openlime-tour-topbar__dots {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 3;
}

.openlime-tour-topbar__dot {
	width: 0.72rem;
	height: 0.72rem;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: rgba(18, 20, 24, 0.9);
	cursor: pointer;
	transition: border-color 140ms ease, background-color 140ms ease, transform 120ms ease;
}

.openlime-tour-topbar__dot:hover {
	border-color: rgba(249, 56, 34, 0.7);
	transform: scale(1.08);
}

.openlime-tour-topbar__dot.is-complete {
	border-color: rgba(249, 56, 34, 0.55);
	background: rgba(249, 56, 34, 0.35);
}

.openlime-tour-topbar__dot.is-active {
	border-color: #f93822;
	background: #f93822;
	box-shadow: 0 0 0 3px rgba(249, 56, 34, 0.25);
}

.openlime-tour-topbar__dot--end {
	width: 0.55rem;
	height: 0.55rem;
	border-style: dashed;
	cursor: default;
	pointer-events: none;
}

.openlime-tour-topbar__dot--end.is-active {
	border-style: solid;
}

.openlime-tour-topbar__pill {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.18rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.openlime-tour-topbar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 249, 255, 0.92);
	cursor: pointer;
	transition: background-color 140ms ease, color 140ms ease, opacity 140ms ease;
}

.openlime-tour-topbar__btn .material-symbols-rounded {
	font-size: 1.35rem;
	line-height: 1;
}

.openlime-tour-topbar__btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.openlime-tour-topbar__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.openlime-tour-topbar__btn--primary {
	background: rgba(249, 56, 34, 0.18);
	color: #fff;
}

.openlime-tour-topbar__btn--primary:hover:not(:disabled) {
	background: rgba(249, 56, 34, 0.32);
}

.openlime-tour-topbar__btn.is-loop-active {
	color: #f93822;
}

.openlime-tour-topbar__btn--narration.is-off {
	opacity: 0.55;
}

.openlime-tour-topbar--kiosk .openlime-tour-topbar__head {
	display: none;
}

.openlime-tour-narration {
	position: absolute;
	z-index: 40;
	max-width: min(22rem, calc(100vw - 2rem));
	padding: 0.85rem 1rem 0.75rem;
	border-radius: 0.85rem;
	background: rgba(18, 24, 38, 0.62);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: rgba(255, 249, 255, 0.95);
	font-size: 0.92rem;
	line-height: 1.45;
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
	pointer-events: auto;
}

.openlime-tour-narration__text {
	white-space: pre-wrap;
	padding-right: 0.25rem;
}

.openlime-tour-narration__close {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.25);
	color: rgba(255, 249, 255, 0.85);
	cursor: pointer;
	opacity: 0;
	transition: opacity 140ms ease, background-color 140ms ease;
}

.openlime-tour-narration:hover .openlime-tour-narration__close,
.openlime-tour-narration__close:focus-visible {
	opacity: 1;
}

.openlime-tour-narration__close:hover {
	background: rgba(249, 56, 34, 0.35);
	color: #fff;
}

.openlime-tour-narration__close .material-symbols-rounded {
	font-size: 1rem;
	line-height: 1;
}

.openlime-tour-narration[hidden] {
	display: none !important;
}

.openlime-tour-narration--top-left {
	top: calc(4.85rem + env(safe-area-inset-top, 0));
	left: calc(0.65rem + env(safe-area-inset-left, 0));
	transition: top 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

.openlime-tour-active:has(.openlime-tour-topbar--with-head.openlime-tour-topbar--idle) .openlime-tour-narration--top-left {
	top: calc(5.35rem + env(safe-area-inset-top, 0));
}

.openlime-tour-active:has(.openlime-tour-topbar--with-head:not(.openlime-tour-topbar--idle)) .openlime-tour-narration--top-left {
	top: calc(8rem + env(safe-area-inset-top, 0));
}

.openlime-tour-active.openlime-tour-paused:has(.openlime-tour-topbar--with-head:not(.openlime-tour-topbar--paused):not(.openlime-tour-topbar--manual)) .openlime-tour-narration--top-left {
	top: calc(8.5rem + env(safe-area-inset-top, 0));
}

.openlime-tour-active.openlime-tour-paused:has(.openlime-tour-topbar--with-head.openlime-tour-topbar--paused) .openlime-tour-narration--top-left,
.openlime-tour-active.openlime-tour-paused:has(.openlime-tour-topbar--with-head.openlime-tour-topbar--manual) .openlime-tour-narration--top-left {
	top: calc(5.35rem + env(safe-area-inset-top, 0));
}

.openlime-tour-narration--top-center {
	top: calc(4.85rem + env(safe-area-inset-top, 0));
	left: 50%;
	transform: translateX(-50%);
	transition: top 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

.openlime-tour-active:has(.openlime-tour-topbar--with-head.openlime-tour-topbar--idle) .openlime-tour-narration--top-center {
	top: calc(5.35rem + env(safe-area-inset-top, 0));
}

.openlime-tour-active:has(.openlime-tour-topbar--with-head:not(.openlime-tour-topbar--idle)) .openlime-tour-narration--top-center {
	top: calc(8rem + env(safe-area-inset-top, 0));
}

.openlime-tour-active.openlime-tour-paused:has(.openlime-tour-topbar--with-head:not(.openlime-tour-topbar--paused):not(.openlime-tour-topbar--manual)) .openlime-tour-narration--top-center {
	top: calc(8.5rem + env(safe-area-inset-top, 0));
}

.openlime-tour-active.openlime-tour-paused:has(.openlime-tour-topbar--with-head.openlime-tour-topbar--paused) .openlime-tour-narration--top-center,
.openlime-tour-active.openlime-tour-paused:has(.openlime-tour-topbar--with-head.openlime-tour-topbar--manual) .openlime-tour-narration--top-center {
	top: calc(5.35rem + env(safe-area-inset-top, 0));
}

.openlime-tour-narration--top-right {
	top: calc(4.85rem + env(safe-area-inset-top, 0));
	right: calc(0.65rem + env(safe-area-inset-right, 0));
	transition: top 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

.openlime-tour-active:has(.openlime-tour-topbar--with-head.openlime-tour-topbar--idle) .openlime-tour-narration--top-right {
	top: calc(5.35rem + env(safe-area-inset-top, 0));
}

.openlime-tour-active:has(.openlime-tour-topbar--with-head:not(.openlime-tour-topbar--idle)) .openlime-tour-narration--top-right {
	top: calc(8rem + env(safe-area-inset-top, 0));
}

.openlime-tour-active.openlime-tour-paused:has(.openlime-tour-topbar--with-head:not(.openlime-tour-topbar--paused):not(.openlime-tour-topbar--manual)) .openlime-tour-narration--top-right {
	top: calc(8.5rem + env(safe-area-inset-top, 0));
}

.openlime-tour-active.openlime-tour-paused:has(.openlime-tour-topbar--with-head.openlime-tour-topbar--paused) .openlime-tour-narration--top-right,
.openlime-tour-active.openlime-tour-paused:has(.openlime-tour-topbar--with-head.openlime-tour-topbar--manual) .openlime-tour-narration--top-right {
	top: calc(5.35rem + env(safe-area-inset-top, 0));
}

.openlime-tour-narration--center-left {
	top: 50%;
	left: calc(0.65rem + env(safe-area-inset-left, 0));
	transform: translateY(-50%);
}

.openlime-tour-narration--center {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.openlime-tour-narration--center-right {
	top: 50%;
	right: calc(0.65rem + env(safe-area-inset-right, 0));
	transform: translateY(-50%);
}

.openlime-tour-narration--bottom-left {
	bottom: calc(5rem + env(safe-area-inset-bottom, 0));
	left: calc(0.65rem + env(safe-area-inset-left, 0));
}

.openlime-tour-narration--bottom-center {
	bottom: calc(5rem + env(safe-area-inset-bottom, 0));
	left: 50%;
	transform: translateX(-50%);
}

.openlime-tour-narration--bottom-right {
	bottom: calc(5rem + env(safe-area-inset-bottom, 0));
	right: calc(0.65rem + env(safe-area-inset-right, 0));
}

.openlime.openlime-tour-manual .openlime-tour-narration--bottom-left,
.openlime.openlime-tour-manual .openlime-tour-narration--bottom-center,
.openlime.openlime-tour-manual .openlime-tour-narration--bottom-right {
	bottom: calc(6.5rem + env(safe-area-inset-bottom, 0));
}

.openlime-dock-virtualtours-icon {
	font-size: 1.25rem;
	line-height: 1;
}

/* Dock minimal en mode manuel visite : home + lumiere/pan + modes RTI */
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-title,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-sep,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-edit,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-pills--flip,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-sep--compact-modes,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-expand,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-more,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-btn--fullscreen,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-sliders,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-ruler-tools,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-scale-wrap,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-actions-wrap .openlime-dock-btn--action:not([data-action="home"]) {
	display: none !important;
}

.openlime-dock.openlime-dock--tour-minimal .openlime-dock-actions-wrap,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-pills--tool,
.openlime-dock.openlime-dock--tour-minimal .openlime-dock-pills--modes {
	display: inline-flex !important;
}

@media (max-width: 640px) {
	.openlime-tour-topbar {
		flex-direction: column;
		align-items: stretch;
		border-radius: 1rem;
		padding: 0.55rem 0.65rem;
	}

	.openlime-tour-topbar--manual.openlime-tour-topbar--with-head,
	.openlime-tour-topbar--paused.openlime-tour-topbar--with-head {
		align-items: center;
		border-radius: 999px;
		padding: 0.45rem 0.55rem;
		max-width: min(18rem, calc(100% - 1rem));
	}

	.openlime-tour-topbar--with-head .openlime-tour-topbar__step-title:not([hidden]) {
		max-width: min(40rem, calc(100vw - 6rem));
	}

	.openlime-tour-topbar__controls {
		flex-direction: column;
		align-items: stretch;
		gap: 0.45rem;
	}

	.openlime-tour-topbar__pill {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.openlime-tour-topbar,
	.openlime-tour-topbar__head,
	.openlime-tour-topbar__step-title,
	.openlime-tour-topbar__progress,
	.openlime-tour-topbar__controls,
	.openlime-tour-narration--top-left,
	.openlime-tour-narration--top-center,
	.openlime-tour-narration--top-right {
		transition: none;
	}

	.openlime-tour-topbar__line-fill,
	.openlime-tour-topbar__step-fill,
	.openlime-tour-topbar__dot,
	.openlime-tour-topbar__btn,
	.openlime-tour-narration__close {
		transition: none;
	}
}
