:root {
	--ge-panel-color: #f1f3f4;
	--toolbar-color: #f1f3f4;
	--workspace-color: #ececec;
	--dark-toolbar-color: #1e2022;
	--inactive-color: #e4e4e4;
	--active-color: #c4c4c4;
	--primary-color: #c2e7ff;
	--primary-hover-color: #abcfe7;
	--accent-color: #e1e9f7;
	--accent-hover-color: #d8e5f8;
	--accent-text-color: #0b57d0;
	--border-color: #dadada;
	--highlight-color: #e2e2e2;
	--scrollbar-hover-color: #959798;
	--text-color: #3F3F3F;
	--dark-color: #121212;
	--ge-dark-panel-color: #1B1D1E;
	--dark-border-color: #333333;
	--dark-text-color: #C0C0C0;
	--dark-accent-color: #003555;
	--dark-accent-text-color: #52a5f6;
	--dark-active-accent-color: #004A77;
	--dark-inverse-active-color: #c4c4c4;
	--dark-highlight-color: #000000;
	--dark-header-color: #1B1D1E;
	/* Dialogs, windows and comments */
	--dialog-color: #f0f0f0;
	--dark-dialog-color: #2a2a2a;
	--strong-text-color: #1d1d1f;
	--dark-strong-text-color: #e5e5e7;
	--secondary-text-color: #6e6e73;
	--dark-secondary-text-color: #a0a0a0;
	--faint-text-color: #8e8e93;
	--dark-faint-text-color: #7a7a7e;
	/* Input fields, cards and chips */
	--field-color: #ffffff;
	--dark-field-color: #1c1c1e;
	--field-border-color: #d2d2d7;
	--dark-field-border-color: #48484a;
	--strong-border-color: #b9b9be;
	--dark-strong-border-color: #5a5a5e;
	/* Buttons of dialogs and windows in dark mode */
	--dark-button-border-color: rgba(255, 255, 255, 0.15);
	--card-color: #ffffff;
	--dark-card-color: #2c2c2e;
	--soft-color: whitesmoke;
	--dark-soft-color: #3a3a3c;
	--soft-hover-color: #f0f0f2;
	--dark-soft-hover-color: #3a3a3c;
	/* Accents (selected and focused states) */
	--focus-color: #0071e3;
	--dark-focus-color: #0a84ff;
	--mention-color: #0a4bb0;
	--dark-mention-color: #7eb1ff;
	--mention-background-color: #e8f0fe;
	--dark-mention-background-color: #10325f;
	--selected-color: #d4e4f7;
	--selected-hover-color: #c4d8f0;
	--active-item-color: lightgray;
	--dark-active-item-color: darkgray;
	/* Status */
	--error-color: #b62623;
	--dark-error-color: #ffffff;
	--error-background-color: #eacccc;
	--dark-error-background-color: #a20025;
	/* Misc */
	--scrollbar-color: #e2e2e2;
	--dark-scrollbar-color: #2c2c2c;
	--prop-stripe-color: #fcfcfc;
	--prop-accent-color: #D9E1F2;
	--prop-accent-text-color: #305496;
}

/* System colors (systemColors in Editor.configure): derives the grays from
   the CSS system colors Canvas and CanvasText, which the browser resolves
   for the color scheme where they are used. With the default Canvas and
   CanvasText of Chrome, the mixes give the fixed colors above. Accent,
   selection and status colors are unchanged. Not used with forced colors,
   where high-contrast.css applies. */
@media (forced-colors: none) {
	:root.geSystemColors {
		--ge-panel-color: color-mix(in srgb, CanvasText 5%, Canvas);
		--toolbar-color: color-mix(in srgb, CanvasText 5%, Canvas);
		--workspace-color: color-mix(in srgb, CanvasText 7.5%, Canvas);
		--inactive-color: color-mix(in srgb, CanvasText 10.5%, Canvas);
		--active-color: color-mix(in srgb, CanvasText 23%, Canvas);
		--border-color: color-mix(in srgb, CanvasText 14.5%, Canvas);
		--highlight-color: color-mix(in srgb, CanvasText 11.5%, Canvas);
		--scrollbar-hover-color: color-mix(in srgb, CanvasText 41%, Canvas);
		--text-color: color-mix(in srgb, CanvasText 75%, Canvas);
		--dialog-color: color-mix(in srgb, CanvasText 6%, Canvas);
		--strong-text-color: color-mix(in srgb, CanvasText 88.5%, Canvas);
		--secondary-text-color: color-mix(in srgb, CanvasText 56.5%, Canvas);
		--faint-text-color: color-mix(in srgb, CanvasText 44%, Canvas);
		--field-color: Canvas;
		--field-border-color: color-mix(in srgb, CanvasText 17%, Canvas);
		--strong-border-color: color-mix(in srgb, CanvasText 27%, Canvas);
		--card-color: Canvas;
		--soft-color: color-mix(in srgb, CanvasText 4%, Canvas);
		--soft-hover-color: color-mix(in srgb, CanvasText 5.5%, Canvas);
		--active-item-color: color-mix(in srgb, CanvasText 17%, Canvas);
		--scrollbar-color: color-mix(in srgb, CanvasText 11.5%, Canvas);
		--prop-stripe-color: color-mix(in srgb, CanvasText 1%, Canvas);
		--dark-color: Canvas;
		--dark-toolbar-color: color-mix(in srgb, CanvasText 6%, Canvas);
		--ge-dark-panel-color: color-mix(in srgb, CanvasText 4.5%, Canvas);
		--dark-header-color: color-mix(in srgb, CanvasText 4.5%, Canvas);
		--dark-border-color: color-mix(in srgb, CanvasText 14%, Canvas);
		--dark-text-color: color-mix(in srgb, CanvasText 73%, Canvas);
		--dark-inverse-active-color: color-mix(in srgb, CanvasText 75%, Canvas);
		--dark-dialog-color: color-mix(in srgb, CanvasText 10%, Canvas);
		--dark-strong-text-color: color-mix(in srgb, CanvasText 89%, Canvas);
		--dark-secondary-text-color: color-mix(in srgb, CanvasText 60%, Canvas);
		--dark-faint-text-color: color-mix(in srgb, CanvasText 44%, Canvas);
		--dark-field-color: color-mix(in srgb, CanvasText 4%, Canvas);
		--dark-field-border-color: color-mix(in srgb, CanvasText 23%, Canvas);
		--dark-strong-border-color: color-mix(in srgb, CanvasText 30%, Canvas);
		--dark-button-border-color: color-mix(in srgb, CanvasText 15%, transparent);
		--dark-card-color: color-mix(in srgb, CanvasText 11%, Canvas);
		--dark-soft-color: color-mix(in srgb, CanvasText 17%, Canvas);
		--dark-soft-hover-color: color-mix(in srgb, CanvasText 17%, Canvas);
		--dark-active-item-color: color-mix(in srgb, CanvasText 64%, Canvas);
		--dark-error-color: CanvasText;
		--dark-scrollbar-color: color-mix(in srgb, CanvasText 11%, Canvas);
	}
}

.geEditor * {
	forced-color-adjust: none;
}

.geEditor {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, ui-sans-serif, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	color-scheme: light dark;
	position: absolute;
	overflow: hidden;
	font-size: 14px;
	width: 100%;
	height: 100%;
	margin: 0;
	display: grid;
	grid-template-rows: min-content min-content 1fr min-content;
	grid-template-columns: min-content min-content 1fr min-content;
}

html.geFullscreen,
.geEditor,
.mxWindow,
.geDialogTitle,
.geShapePicker,
.geDialogFooter,
.geSidebarTooltip {
	background-color: light-dark(var(--ge-panel-color), var(--ge-dark-panel-color));
}

.geEditor>svg,
div[id*="dgeMermaidOutput-"] {
	position: absolute;
	margin: -9999px 0 0 -9999px;
	z-index: -1;
}

.geEditor>#geInfo {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
}

.geSimpleMainMenu,
.geEditor>.geMenubarContainer {
	grid-column: 1 / -1;
	grid-row: 1;
	width: 100%;
	height: 60px;
	margin-top: 4px;
}

.geCompactMode .geAppIcon,
.geCompactMode .geFilenameContainer,
.geSimple .geMenubarContainer:not(.geMinimal *),
.geCompactMode .geButtonContainer:not(.geAtlas *, .geEmbed *),
.geSimple>.geToolbarContainer:not(.geSimpleMainMenu, .geSketch *),
.geSketch>.geToolbarContainer:has(.geToolbar) {
	display: none;
}

.geEditor.geAtlas>.geMenubarContainer,
.geEditor.geCompactMode>.geMenubarContainer {
	margin-top: 0;
	height: 30px;
}

.geEditor.geCompactMode>.geToolbarContainer:not(.geSketch *, .geAtlas *) {
	padding-left: 8px;
}

.geEditor.geSimple>.geToolbarContainer:not(.geVerticalToolbar) {
	padding: 0 10px;
	height: 50px;
}

.geEditor.geSketch>.geToolbarContainer:not(.geVerticalToolbar) {
	height: 44px;
}

.geSketchMainMenu {
	left: 10px;
	top: 10px;
}

.geEditor:not(.geSimple) .geSimpleMainMenu {
	display: none;
}

.geEditor.geCompactMode>.geMenubarContainer>.geMenubar {
	padding-left: 4px;
	top: 0;
}

.geToolbarContainer:not(.geVerticalToolbar) {
	height: 38px;
}

.geEditor>.geToolbarContainer:not(.geSketch *) {
	grid-column: 1 / -1;
	grid-row: 2;
	padding: 0 8px 0 16px;
	width: 100%;
}

.geEditor.geClassic>.geToolbarContainer {
	border-top-style: solid;
	border-top-width: 1px;
	border-bottom-style: solid;
	border-bottom-width: 1px;
}

.geEditor>.geSidebarContainer:not(.geFormatContainer) {
	min-height: 0;
	grid-column: 1;
	grid-row: 3;
}

.geEditor>.geSidebarContainer.geFormatContainer {
	min-height: 0;
	grid-column: 4;
	grid-row: 3;
}

.geEditor>.geHsplit {
	grid-column: 2;
	grid-row: 3;
	z-index: 2;
}

.geEditor>.geDiagramContainer {
	min-height: 0;
	margin-left: -10px;
	grid-column: 3;
	grid-row: 3;
}

.geEmbedInline>div.geDiagramContainer {
	margin-left: 0;
}

/* The color window of the inline toolbar stays */
.geInlineNoUi .geToolbarContainer,
.geInlineNoUi .mxWindow:not(.geColorWindow) {
	display: none !important;
}

.geEditor>.geTabContainer {
	grid-column: 1 / -1;
	grid-row: 4;
	width: 100%;
}

.geSmallAppIcon {
	padding: 0 4px 0 8px;
}

.geAtlas .geSmallAppIcon {
	padding-left: 8px;
}

.geAppIcon {
	display: block;
	position: absolute;
	top: 10px;
	left: 16px;
	width: 32px;
	height: 36px;
	border-radius: 4px;
	background-color: rgb(240, 135, 5);
	background-position: center center;
	background-repeat: no-repeat;
	transition: 0.1s linear;
	cursor: pointer;
	background-size: 100%;
	opacity: 0.9;
}

.geMenubar {
	top: 28px;
	width: 100%;
	height: 30px;
	display: flex;
	position: absolute;
	align-items: center;
	box-sizing: border-box;
	padding: 0px 2px 0px 58px;
}

.geFilenameContainer {
	position: absolute;
	right: 260px;
	left: 60px;
	top: 4px;
	height: 26px;
	display: block;
	margin-left: 0px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geFilename {
	padding: 3px 4px;
	display: inline;
	font-size: 18px;
	cursor: pointer;
	white-space: nowrap;
}

.geEditor,
.geEditor tr.mxPopupMenuItemHover,
.geEditor tr.mxPopupMenuItem {
	color: light-dark(var(--text-color), var(--dark-text-color));
}

:where(.geEditor *):not(svg *, .mxCellEditor *, .mxRubberband) {
	border-color: light-dark(var(--border-color), var(--dark-border-color));
}

:where(.geEditor button):not(svg *),
:where(.geEditor select):not(svg *),
:where(.geEditor input):not(svg *),
:where(.geEditor textarea):not(svg *) {
	color: light-dark(var(--text-color), var(--dark-text-color));
	background-color: transparent;
	border: 1px solid;
	border-radius: 4px;
	padding: 2px;
}

.geEditor input:not(svg *, .geButton) {
	background-color: light-dark(var(--field-color), var(--dark-toolbar-color));
}

.geHsplit {
	background: linear-gradient(light-dark(var(--dark-accent-text-color), var(--accent-text-color)), light-dark(var(--dark-accent-text-color), var(--accent-text-color))) no-repeat left/2px 100%;
	transition: opacity 0.1s linear 0.1s;
	cursor: ew-resize;
	width: 10px;
	opacity: 0;
}

.geHsplit:hover {
	opacity: 1;
}

.geDialog .geToolbarContainer,
.geSketch .geToolbarContainer:not(.mxWindow *) {
	position: absolute;
}

.geSketch .geHsplit,
.geSketch .geTabContainer {
	display: none;
}

.geSketch .geToolbarContainer:not(.geDialog *, .mxWindow *),
.geSketch .mxWindow,
.geEditor.geMinimal .mxPopupMenu,
.geMinimal .mxWindow,
.geMinimal .geTabItem {
	background-color: light-dark(var(--toolbar-color), var(--dark-toolbar-color));
}

.geMinimal .geMenubarContainer,
.geToolbar {
	display: flex;
	align-items: center;
	flex-grow: 1;
}

.geMinimal .geMenubarContainer {
	border-bottom-style: solid;
	border-bottom-width: 1px;
	box-sizing: border-box;
	padding: 8px;
	height: 48px;
	margin: 0;
}

.geToolbarContainer,
.geFormatTitleContainer {
	margin: 0;
	display: flex;
	box-sizing: border-box;
	align-items: center;
}

.geFormatTitleContainer {
	justify-content: center;
}

.geButton,
.geHelpIcon:not(.geTitle *),
.mxPopupMenuItem>div:not(:has(img)),
.geTitle,
.geBtnStepper>div {
	position: relative;
}

.geFreehandMode,
.geFreehandMode *,
.gePolygonMode,
.gePolygonMode * {
	cursor: crosshair !important;
}

/* The Hand tool (EditorUi.setPanMode, Simple and Fusion): the canvas shows
   the hand while the tool is on, also over shapes, labels, links, handles and
   folding icons, where a drag pans and a click only selects (their cursors
   stay on their nodes), except in the text editor of a label, which the keys
   start */
.geDiagramContainer.gePanMode {
	cursor: grab !important;
}

.geDiagramContainer.gePanMode:active {
	cursor: grabbing !important;
}

.geDiagramContainer.gePanMode :not(.mxCellEditor, .mxCellEditor *) {
	cursor: inherit !important;
}

/* The editor would inherit the hand of the canvas */
.geDiagramContainer.gePanMode .mxCellEditor {
	cursor: text !important;
}

.geDarkMode .geButton,
.geDarkMode .geHelpIcon:not(.geTitle *),
.geDarkMode .mxPopupMenuItem>div:not(:has(img)),
.geDarkMode .geButtonContainer .geButton.geRoundButton img:not(.geAdaptiveAsset),
.geDarkMode .geAdaptiveAsset,
.geDarkMode .geTitle,
.geDarkMode .geBtnStepper>div,
.geDarkMode .geColorDropper,
.geDarkMode .geStyleMenuItem,
.geDarkMode .gePropHeader>.gePropHeaderCell:first-child,
.geDarkMode .geStyleBtn .geAdaptiveAsset.geArrow,
.geAtlas .geMenubar .geButtonContainer .geButton:empty,
.geAtlas .geMenubar .geButtonContainer .geButton:has(> span.geCommentsBadge:only-child),
.geAtlas .geMenubar .geButtonContainer .geButton .geAdaptiveAsset:not(.geDarkMode *),
.geAtlas .geMenubar .geButtonContainer .geButton img:last-child {
	filter: invert(1);
	outline: none;
}

/* Keyboard focus ring of the inverted controls above: the inverse of the focus
   color shows the focus color, else the color of the control is used. The
   outline shows in forced colors. */
.geDarkMode .geButton:focus-visible,
.geDarkMode .geHelpIcon:not(.geTitle *):focus-visible,
.geDarkMode .geAdaptiveAsset:focus-visible,
.geDarkMode .geTitle:focus-visible,
.geDarkMode .geTitle.geFocusRing,
.geDarkMode .geTitle .geLibraryButton:focus-visible,
.geDarkMode .gePropHeader>.gePropHeaderCell:focus-visible,
.geAtlas .geMenubar .geButtonContainer .geButton:empty:focus-visible,
.geAtlas .geMenubar .geButtonContainer .geButton:has(> span.geCommentsBadge:only-child):focus-visible {
	outline: 2px solid currentColor;
	outline: 2px solid rgb(from var(--dark-focus-color) calc(255 - r) calc(255 - g) calc(255 - b));
}

/* Cancels out the inversion for the badge in the atlas menubar */
.geAtlas .geMenubar .geButtonContainer span.geCommentsBadge {
	filter: invert(1);
}

.geDarkMode .geStyleBtn .geAdaptiveAsset.geArrow {
	color: black;
}

.geDarkMode .geButtonContainer .geButton.geRoundButton img:last-child {
	filter: none;
}

.geMinimal .geButtonContainer .geButton {
	margin: 0;
}

.gePrimaryBtn {
	background-color: light-dark(var(--primary-color), var(--dark-accent-color));
	box-shadow: none;
	border: none;
}

.geFormatTitleContainer {
	height: 34px;
	margin-bottom: 12px;
}

.geFormatTitle {
	background: light-dark(var(--inactive-color), var(--dark-highlight-color));
	border-bottom-style: solid;
	border-left-style: solid;
	border-width: 1px;
	display: inline-flex;
	text-overflow: ellipsis;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	font-size: 13px;
	cursor: pointer;
	height: 100%;
	flex: 1;
}

.geFormatTitle.geActiveFormatTitle {
	background: transparent;
	border-bottom-style: none;
}

.geFormatTitle:first-child {
	border-left-style: none;
}

.geTitle,
.geFormatTitle>div {
	font-weight: 500;
}

.geFormatTitle>div {
	display: inline;
	text-align: center;
	white-space: nowrap;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 6px;
}

.gePageTab>div.geButton {
	width: 20px !important;
}

.gePageTab:hover,
.gePageGroupTab:hover {
	background-color: light-dark(var(--highlight-color), var(--dark-border-color));
	opacity: 1;
}

.geFormatContent {
	margin-left: 12px;
	margin-right: 8px;
}

div.geActivePage {
	background-color: light-dark(var(--accent-color), var(--dark-accent-color));
	color: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
}

div.geActivePage:hover {
	background-color: light-dark(var(--accent-hover-color), var(--dark-active-accent-color));
}

.geGraphStylePreview {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 76px;
	cursor: pointer;
	margin: 2px 6px;
	overflow: hidden;
	border-radius: 8px;
	opacity: 0.7;
}

.geSwitcher {
	display: flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	position: relative;
}

/* The dots are 24px apart, the spacing of small targets in WCAG 2.5.8 */
.geSwitcher>.geSwitcherDot {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	margin-right: 8px;
	border-radius: 3px;
	cursor: pointer;
	border: 1px solid rgb(181, 182, 183);
}

.geGraphStylePreview>div {
	position: relative;
	pointer-events: none;
	width: 60px;
	height: 60px;
}

/* The themes of the Style tab as named tiles in two columns (the feature
   namedThemes, DiagramStylePanel.addNamedGraphStyles) */
.geGraphStyleGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 4px 0 8px 0;
}

/* Wins over the height of the buttons of the Format panel (.geFormatSection button) */
.geGraphStyleGrid>.geGraphStyleTile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 4px 4px 6px 4px;
	border: 1px solid light-dark(#dadce0, #5f6368);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: center;
	cursor: pointer;
}

.geGraphStyleTile:hover {
	border-color: #8ab4f8;
}

.geGraphStyleTile:active {
	opacity: 0.75;
}

.geGraphStyleTile:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

.geGraphStyleThumb {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	overflow: hidden;
	pointer-events: none;
}

.geGraphStylePicture>div {
	position: relative;
	pointer-events: none;
}

.geGraphStyleName {
	margin-top: 2px;
	font-size: 12px;
	line-height: 16px;
	overflow-wrap: anywhere;
}

.mxPopupMenuIcon img,
.geStyleBtn .geAdaptiveAsset,
.geGraphStylePreview:active {
	opacity: 0.75;
}

.geSidebarContainer:has(.geSidebarFooter)>div:first-child {
	position: relative;
	overflow: hidden auto;
	left: 0px;
	top: 0px;
	right: 0px;
	box-sizing: border-box;
	max-height: calc(100% - 44px);
}

.geSidebarFooter {
	position: absolute;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-height: 100%;
	padding-top: 2px;
	height: 44px;
	width: 100%;
}

.geSidebarFooter .gePrimaryBtn {
	padding: 8px 12px;
	margin: 0px;
}

.geSidebarFooter .gePrimaryBtn span {
	font-size: 18px;
	margin-right: 5px;
}

html body.geEditor .gePrimaryBtn:hover:not([disabled]) {
	background-color: light-dark(var(--primary-hover-color), var(--dark-active-accent-color));
	box-shadow: none;
	border: none;
}

.geStatus {
	padding: 4px 8px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geButtonGroup {
	display: inline-flex;
	align-items: center;
	height: 24px;
	border-radius: 6px;
	margin-right: 6px;
	padding: 3px 8px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .11), inset 0 -1px 0 0 rgba(0, 0, 0, .08), 0 1px 2px 0 rgba(0, 0, 0, .04);
}

.geDarkMode .geButtonGroup {
	border-style: solid;
    border-width: 1px;
}

.geButtonGroup .geButton {
	background-size: 22px;
	margin: 0 4px;
}

.geTabItem.geTabZoom {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-right: 16px;
	width: 50px;
	right: 0px;
	bottom: 0px;
	box-sizing: content-box;
	background-position: right 6px center;
	background-repeat: no-repeat;
	background-size: 13px;
	z-index: 1;
	cursor: pointer;
}

.geButton>span {
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 13px;
}

html body.geSimple .mxWindow {
	z-index: 3;
	font-size: 12px;
}

html body.geSimple table.mxWindow {
	font-size: 12px;
}

.geSimple .geStatus>div {
	max-width: 100%;
	box-sizing: border-box;
	text-overflow: ellipsis;
}

.geSimple .geBtn button {
	min-width: 72px !important;
}

.geSimple div.geToolbarContainer a.geButton:not(.geSketch *) {
	margin: 0px;
	padding: 0 2px 4px 2px;
}

html body.geSimple div.geToolbarContainer a.geColorBtn {
	margin: 2px;
}

.geToolbarContainer.geDialogToolbar {
	position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 32px;
    overflow: hidden;
    padding: 3px 4px 4px;
    border-width: 1px 0px 0px;
    border-style: solid;
    white-space: nowrap;
}

.geSimpletable.mxWindow td.mxWindowPane button.geColorBtn {
	padding: 0px;
	box-sizing: border-box;
}

html body.geSimple .geMenuItem {
	font-size: 14px;
	text-decoration: none;
	font-weight: normal;
	padding: 6px 10px 6px 10px;
	border: none;
	border-radius: 5px;
	color: light-dark(var(--text-color), var(--dark-text-color));
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .11), inset 0 -1px 0 0 rgba(0, 0, 0, .08), 0 1px 2px 0 rgba(0, 0, 0, .04);
}

html body div.mxPopupMenu {
	border-radius: 5px;
	border: 1px solid #c0c0c0;
	padding: 5px 0 5px 0;
	box-shadow: 0px 4px 17px -4px rgba(96, 96, 96, 1);
}

html table.mxPopupMenu td.mxPopupMenuItem {
	font-size: 14px;
	padding-top: 4px;
	padding-bottom: 4px;
}

html tr.mxPopupMenuItem,
html td.mxPopupMenuItem {
	transition-property: none !important;
}

/* Menu items with the keyboard focus have the hover style (see
   mxPopupMenu.addItem), the outline shows in forced colors */
table.mxPopupMenu tr:focus {
	outline: 1px solid transparent;
	outline-offset: -1px;
}

html body td.mxWindowTitle {
	padding-right: 14px;
}

/* Dark mode drops the shadows of the editor. Simple Modern keeps the
   hairlines and elevations of its components, which are made for dark mode
   (light-dark tokens): elements with a class of the look (geSm and a capital;
   geSmallBanner and geSmallAppIcon are Classic) and the surfaces it styles
   without one (the selector matches as before without the look). So does
   the inline toolbar of Fusion in the other themes (.geInlineToolbarUi, its
   frame, rings and focus rings). */
html body.geEditor.geDarkMode :where(:not(.geSimpleModern :is([class*="geSm"]:not(.geSmallBanner, .geSmallAppIcon),
	.geFormatContainer, .geSmShell>.geTabContainer, .geSmShell>.geSidebarContainer,
	.geSmFormat .geFormatTitle, .geSmFormat .geColorBtn>div, .geSmFormat .geSmCalmPreview>span,
	.geSmBrowser .geTemplate, .geSmBrowser .geTemplate>img, .geSmAspect .geAspectDlgListItem,
	.geSmLibraryItem>.geFocusLabel, .geSmHome .geHomeThumb, .geSmConfig .tri-toggle button,
	.geSmHostWindow .geToolbarContainer, .geOmnibox), .geInlineToolbarUi [class*="geSm"])),
html body .mxWindow.geDarkMode {
	box-shadow: none !important;
}

html body.geDarkMode .mxCellEditor {
	color: #f0f0f0;
}

html body.geDarkMode.geEditor div.mxPopupMenu {
	border: 1px solid var(--dark-border-color);
	background-color: var(--ge-dark-panel-color);
}

html body.geDarkMode.geEditor div.mxPopupMenu.geToolbarMenu {
	box-shadow: 0px 0px 3px 1px #d1d1d1;
}

.geTabContainer {
	border-left-color: var(--dark-border-color);
	border-right-color: var(--dark-border-color);
}

html body.geDarkMode.geEditor div.mxPopupMenu hr {
	background-color: var(--dark-border-color);
}

.geDragPreview {
	border: 1px dashed light-dark(black, #cccccc);
}

.geEditor .geTemplate {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	position: relative;
	cursor: pointer;
	margin: 5px;
	height: 135px;
	width: 135px;
	font-size: 14pt;
	border-width: 2px;
	border-style: dashed;
	border-color: transparent;
}

.geTemplate.geTemplateSelected {
	border-color: light-dark(var(--dark-accent-text-color), var(--accent-text-color));
}

div.geTemplatePreview {
	position: absolute;
	display: inline-flex;
	background-origin: content-box;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	opacity: 0.7;
	padding: 8px;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

.geTemplate:has(span) .geTemplatePreview {
	opacity: 0.2;
}

.geTemplateSelected .geTemplatePreview {
	opacity: 1 !important;
}

.geTemplate span {
	position: absolute;
	display: inline-block;
	padding: 2px 8px;
	user-select: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.7);
	max-width: 80%;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3em;
	text-align: center;
}

.geGenerateDiagramForm {
	position: absolute;
	width: 100%;
	height: 100%;
}

.geGenerateDiagramDescription {
	position: absolute;
	font-family: sans-serif;
	outline: none;
	inset: 0px 0px 38px;
	resize: none;
	font-size: 12px;
	border: none;
	margin: 8px;
}

.geBtn.geGenerateDiagramButton {
	position: absolute;
	bottom: 0px;
	right: 0px;
	left: 0px;
	margin: 8px;
}

.geTemplateSelected.geTemplateHasPreview span {
	display: none;
}

.geEditor .geTemplate .geButton.geRoundButton {
	position: absolute;
	background: white;
	margin: 0;
	padding: 2px;
	opacity: 1 !important;
	width: 16px;
	height: 16px;
	right: 0px;
	top: 0px;
}

.geTemplate .geGenerateDiagramForm .geButton.geRoundButton {
    margin: -6px -6px 0 0;
    padding: 2px !important;
}

.geDarkMode .geTemplate {
	color: #000000;
}

html body.geDarkMode.geEditor button.geAdaptiveAsset:hover:not([disabled]) {
	background-color: #fff;
}

html body.geDarkMode.geEditor button.geAdaptiveAsset:not([disabled]) {
	border-color: #a2a2a2;
}

.geDarkMode .geInsertTablePicker,
.geDarkMode .geInsertTablePicker * {
	border-color: var(--dark-border-color);
}

html body.geDarkMode .geSketch .geToolbarContainer {
	border-style: solid;
}

body.geDarkMode .geInverseAdaptiveAsset,
.geDarkMode .geCommentUserImg {
	filter: none !important
}

.geAdaptiveAsset {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

html body.geDarkMode .geFooterContainer,
html body.geDarkMode .geFooterContainer td {
	border-color: var(--dark-border-color);
}

html body.geDarkMode .geFooterContainer a {
	background-color: none;
}

html body.geDarkMode .geBigStandardButton {
	border: 1px solid var(--dark-border-color);
}

html body.geDarkMode .geFooterContainer td:hover,
html body.geDarkMode #geFooterItem1:hover,
html body.geDarkMode .geBigStandardButton:hover {
	background-color: var(--dark-highlight-color);
}

html body.geDarkMode.geEditor table.mxPopupMenu tr.mxPopupMenuItemHover {
	background-color: var(--dark-highlight-color);
}

html body.geDarkMode.geEditor .geBaseButton:hover {
	background-color: var(--dark-color);
}

html body.geDarkMode .geToolbarContainer .geSeparator {
	background-color: var(--dark-border-color);
}

html body.geDarkMode table.mxPopupMenu hr {
	border-color: var(--dark-border-color);
	background-color: var(--dark-color);
}

html body.geDarkMode .geDialog,
html body.geDarkMode div.mxWindow,
html body div.mxWindow.geDarkMode {
	background-color: var(--dark-dialog-color);
	border-color: #838383;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Buttons of dialogs and windows have a border that shows on their color, as
   the border color of the editor is almost the color of dialogs and windows.
   Selects with the geBtn class keep the border of fields and its focus color. */
html body.geDarkMode .geDialog .geBtn:not(.gePrimaryBtn, select),
html body.geDarkMode div.mxWindow .geBtn:not(.gePrimaryBtn, select),
html body div.mxWindow.geDarkMode .geBtn:not(.gePrimaryBtn, select) {
	border-color: var(--dark-button-border-color);
}

.mxCellEditor {
	font-family: initial;
}

.geDialog,
html div.mxWindow,
.geSketch .geToolbarContainer:not(.geDialog *, .mxWindow *) {
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.geSketch .geToolbarContainer:not(.geDialog *, .mxWindow *) {
	border-style: solid;
	border-width: 1px;
	padding: 6px;
}

div td.mxWindowTitle {
	border-bottom-style: solid;
	border-bottom-width: 1px;
	font-size: 13px;
	height: 22px;
}

/* The title buttons are 24px targets (WCAG 2.5.8) with the icon in the middle,
   and the margin keeps the height they had with a padding of 4px */
.mxWindowTitle>div>img:not(.geHelpIcon) {
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	margin-top: -3px;
	margin-bottom: -3px;
	object-fit: none;
}

/* Help icons in titles, eg. of the AI window, are 16px with the padding of a
   24px target */
.mxWindowTitle>div>img.geHelpIcon {
	padding: 4px;
}

/* Dock preview overlay shown during window drag */
.geDockPreview {
	position: fixed;
	z-index: 9999;
	background-color: rgba(41, 182, 242, 0.15);
	border: 2px solid rgba(41, 182, 242, 0.6);
	pointer-events: none;
	display: none;
	transition: opacity 0.15s ease-in-out;
	box-sizing: border-box;
}

/* Docked window styles */
html div.mxWindow.mxWindowDocked {
	z-index: 2 !important;
}

.geBackground {
	background-color: light-dark(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.5));
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	opacity: 1;
	backdrop-filter: blur(2px);
}

.geDialog,
.geBackground,
.geEditor .picker-dialog,
.geEditor .picker-dialog-bg {
	z-index: 10002;
}

.geEditor input[type=text]::-ms-clear {
	display: none;
}

.geButtonContainer {
	padding-right: 14px;
	display: inline-flex;
	align-items: center;
	margin-left: auto;
	flex-shrink: 0;
}

.geMenubar .geButtonContainer {
	margin-top: -42px;
}

.geToolbarContainer .geButtonContainer {
	padding-right: 0px;
}

.geButtonContainer .gePrimaryBtn:not(.geEmbedBtn) {
	margin: 0 4px;
	width: auto;
	height: 32px;
}

.geButtonContainer .gePrimaryBtn .geButton {
	background-position: left center;
	padding: 0 2px 0 24px;
	width: auto;
}

.geEditor .geTabItem {
	border-width: 1px;
	border-top-style: solid;
}

.geEditor div.mxTooltip {
	background-color: light-dark(var(--ge-panel-color), var(--ge-dark-panel-color));
	color: light-dark(var(--text-color), var(--dark-text-color));
	box-shadow: 1px 1px 2px 0px #ddd;
	font-size: 11px;
	padding: 6px;
}

.geSimpleMainMenu {
	justify-content: start;
	border-bottom-style: solid;
	border-bottom-width: 1px;
	padding: 0 12px;
	height: 48px;
	gap: 8px;
	top: 0px;
}

.geSimpleMainMenu .geButton:not(.geZoomInput) {
	background-size: 24px;
}

/* The bell of new notifications in the top bar of the simple theme from
   480 px, where the search comes, so that phones keep their tools
   (getSimpleNotificationWidth) */
@media (max-width: 479px) {
	.geSimpleMainMenu .geNotification-box {
		display: none;
	}
}

/* Share of the simple theme on wide windows: the share glyph of Fusion
   left of its label in a primary button like Share of Classic
   (updateSimpleShareButton) */
.geSimpleMainMenu a.geBtn.geSimpleShareBtn {
	flex-shrink: 0;
	max-width: 180px;
	min-width: 0;
	height: 32px;
	margin: 0;
	padding: 0 14px 0 10px;
	border-radius: 6px;
	cursor: pointer;
}

.geSimpleMainMenu a.geBtn.geSimpleShareBtn>.geButton {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	opacity: 1;
}

.geSimpleMainMenu a.geBtn.geSimpleShareBtn>.geButton>span:not(.geMenuGlyph) {
	font-weight: 550;
}

/* The glyphs of Share with the menu of Fusion (Menus.createShareMenuGlyph):
   masks in the color of the text */
.geMenuGlyph {
	display: inline-block;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: var(--ge-menu-glyph) center / contain no-repeat;
	mask: var(--ge-menu-glyph) center / contain no-repeat;
}

/* Share with the menu of Fusion in Simple (and in Classic with the switch
   shareMenu, Menus.addShareMenuItems): the captions Share and Present, each
   item with its glyph and what it does as a second line. The menu keeps the
   frame of the context menu of the theme (a dropdown has the background,
   border, radius and shadow of the context menu of its theme, light and
   dark; bars and toolbars keep theirs): grey in Simple. The glyphs are in
   the gutter of the checkmarks, centered on them, the text after them */
div.mxPopupMenu.geShareMenu table.mxPopupMenu td.mxPopupMenuItem:nth-child(2) {
	padding-left: 40px;
}

div.mxPopupMenu.geShareMenu td.mxPopupMenuIcon {
	position: relative;
}

div.mxPopupMenu.geShareMenu .geMenuGlyph {
	position: absolute;
	top: 50%;
	left: 5px;
	margin-top: -9px;
	opacity: 0.75;
}

div.mxPopupMenu.geShareMenu tr[aria-disabled="true"] .geMenuGlyph {
	opacity: 0.3;
}

div.mxPopupMenu.geShareMenu table.mxPopupMenu tr[data-menu-hint]>td.mxPopupMenuItem {
	padding-top: 6px;
	padding-bottom: 6px;
	line-height: 18px;
}

div.mxPopupMenu.geShareMenu tr[data-menu-hint] .geMenuGlyph {
	top: 6px;
	margin-top: 0;
}

/* The second line is the text color at 80 %, which keeps 4.5:1 on the menu
   and on the row under the pointer, light and dark */
div.mxPopupMenu.geShareMenu .geMenuHint {
	display: block;
	min-width: 220px;
	max-width: 280px;
	white-space: normal;
	font-size: 12px;
	line-height: 16px;
	opacity: 0.8;
}

div.mxPopupMenu.geShareMenu tr.geMenuCaption>td {
	padding: 8px 12px 2px 5px;
	font-size: 11px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: light-dark(var(--text-color), var(--dark-text-color));
	opacity: 0.8;
}

/* File of the simple theme: the label File (createMainMenuForTheme), as high
   as Share and in the font of its label, in the color of the icons of the
   bar (inverted with them in dark mode), as wide as the label up to 120 px,
   a longer translation ends in an ellipsis (the tooltip has it in full).
   Hover, keyboard focus and the open menu show it at full strength, hover
   and the open menu with the background of hovered buttons. */
.geSimple div.geSimpleMainMenu>a.geButton.geSimpleFileBtn:not(.geSketch *) {
	min-width: 0;
	max-width: 120px;
	height: 32px;
	margin: 0;
	padding: 0 8px;
	border-radius: 6px;
	background-image: none;
}

.geSimple div.geSimpleMainMenu>a.geButton.geSimpleFileBtn>span {
	min-width: 0;
	font-size: 14px;
	font-weight: 550;
	line-height: 20px;
	white-space: nowrap;
}

.geSimple div.geSimpleMainMenu>a.geButton.geSimpleFileBtn:is(:hover, [aria-expanded="true"]):not(.mxDisabled, [disabled]) {
	opacity: 1;
	background-color: light-dark(var(--highlight-color), white);
}

.geSketch .geToolbarContainer .geButton:not(.geZoomInput, .gePageMenu, .geFooterToolbar *) {
	background-size: 22px;
}

.geSketch .geFooterToolbar:not(.geEmbedInline *) {
	bottom: 12px;
	right: 12px;
}

.geSketch .geFooterToolbar>* {
	margin: 0;
}

.geSketchMainMenu {
	left: 10px;
	top: 10px;
}

.geEmbed .geMenubarContainer:not(.geMinimal *) {
	padding: 0 28px 0 16px;
}

.geEditor.geClassic .geMenubarContainer {
	padding-left: 4px;
}

.geSidebarContainer a,
.geMenubarContainer a,
.geToolbar a {
	text-decoration: none;
}

.geMenubarContainer,
.geToolbarContainer,
.geDiagramContainer,
.geSidebarContainer {
	overflow: hidden;
	white-space: nowrap;
	position: relative;
}

div.geFormatContainer {
	overflow-y: auto;
	font-size: 12px;
	width: 240px;
}

.geDiagramContainer {
	background-color: light-dark(var(--workspace-color), var(--ge-dark-panel-color));
	font-size: 0px;
	outline: none;
}

/* Diagram that got the focus with the keyboard (see EditorUi.init). A sticky
   overlay as the canvas covers outlines inside of the diagram and the panels
   cover outlines outside of it. The outline shows in forced colors. */
.geDiagramContainer.geFocusVisible::before {
	content: '';
	display: block;
	position: sticky;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: inset 0 0 0 2px light-dark(var(--focus-color), var(--dark-focus-color));
	outline: 2px solid transparent;
	outline-offset: -2px;
	pointer-events: none;
}

/* --ge-ruler-size is the thickness of the ruler (mxRuler.getThickness), which
   grows with rulerFontSize in the configuration */
.geDiagramContainer.geRulerContainer {
	margin: var(--ge-ruler-size, 14px) 0 0 calc(var(--ge-ruler-size, 14px) - 10px);
}

.geSketch .geDiagramContainer.geRulerContainer,
.geMinimal .geDiagramContainer.geRulerContainer {
	margin-left: var(--ge-ruler-size, 14px);
}

.geRuler {
	background: light-dark(#ffffff, var(--dark-color));
}

.geBackgroundPage {
	box-shadow: 0px 0px 3px 0px #a0a0a0;
}

.geEditor .geHint {
	background-color: light-dark(var(--ge-panel-color), var(--ge-dark-panel-color));
	border-color: light-dark(var(--border-color), var(--dark-border-color));
	box-shadow: 1px 1px 2px 0px #ddd;
	border-style: solid;
	border-width: 1px;
	padding: 4px 16px 4px 16px;
	border-radius: 3px;
	opacity: 0.8;
	font-size: 9pt;
}

.geHint img {
	opacity: 0.7;
}

/* The undo toast of Classic, Simple, Sketch and Minimal (UndoToast.js): a
   dark card at the bottom of the canvas, in the middle (left and bottom are
   set by UndoToast.place), in both modes. Without geToastOpen it is an empty
   live region of 1 px for screen readers. Its parts have the dark color
   scheme, not the card itself, whose light-dark() colors follow the page. */
.geEditor .geToast {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	pointer-events: none;
	z-index: 3;
}

.geEditor .geToast.geToastOpen {
	display: flex;
	align-items: center;
	gap: 4px;
	box-sizing: border-box;
	width: max-content;
	height: 40px;
	padding: 4px 4px 4px 16px;
	overflow: visible;
	clip-path: none;
	transform: translateX(-50%);
	border: 1px solid light-dark(transparent, var(--dark-button-border-color));
	border-radius: 6px;
	background: light-dark(#323232, #3a3a3c);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	color: #ffffff;
	font-size: 13px;
	line-height: 20px;
	pointer-events: auto;
}

.geEditor .geToast.geToastOpen > * {
	color-scheme: dark;
}

.geEditor .geToast .geToastText {
	flex: 0 1 auto;
	min-width: 0;
	margin-right: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geEditor .geToast .geToastBtn {
	flex: none;
	height: 32px;
	min-width: 32px;
	margin: 0;
	padding: 0 8px;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: #8ab4f8;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.geEditor .geToast .geToastBtn.geToastClose {
	color: #e0e0e0;
	font-size: 18px;
	font-weight: normal;
}

.geEditor .geToast .geToastBtn:hover {
	background: rgba(255, 255, 255, 0.12);
}

.geEditor .geToast .geToastBtn:focus-visible {
	outline: 2px solid #8ab4f8;
	outline-offset: -2px;
}

.geEditor .geToast .geToastBtn:disabled {
	opacity: 0.5;
	cursor: default;
}

@media (pointer: coarse) {
	.geEditor .geToast.geToastOpen {
		height: 56px;
		padding: 6px 6px 6px 16px;
	}

	.geEditor .geToast .geToastBtn {
		height: 44px;
		min-width: 44px;
	}
}

.geStatus>* {
	overflow: hidden;
	white-space: nowrap;
	vertical-align: middle;
	display: inline-block;
	font-size: 12px;
}

.geStatus {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	min-width: 0;
	height: 100%;
}

.geStatus *[data-action] {
	cursor: pointer;
}

.geStatus img {
	max-width: 16px;
	vertical-align: bottom;
}

.geStatus div {
	border-radius: 4px;
}

.geStatus div+div {
	margin-left: 8px;
}

.geStatus .geStatusBox {
	font-size: 10px;
	padding: 2px 4px;
	border-style: solid;
	border-width: 1px;
}

.geStatus .geStatusAlert {
	padding: 4px 10px;
	background-color: light-dark(var(--error-background-color), var(--dark-error-background-color));
	color: light-dark(var(--error-color), var(--dark-error-color)) !important;
}

.geStatusDiv {
	text-overflow: ellipsis;
	display: inline-block;
	white-space: nowrap;
	overflow: hidden;
	flex-shrink: 0;
}

.geEmbed.geMinimal .geMenubarContainer .geStatusDiv {
	flex-shrink: 1;
	min-width: 0;
}

.geEmbed.geMinimal .geMenubarContainer .geButtonGroup {
	flex-shrink: 1;
	overflow: hidden;
	min-width: 0;
}

/* Embeds of the simple theme: the title of the host shrinks with an ellipsis
   (its tooltip is the whole title) where the top bar has no room for it, the
   buttons of the host keep their width, so that they, … and Format stay in
   the window (see createMenubarForTheme in SimpleClassic.js). A grid, as its
   smallest width is that of its buttons: the column of the title has no
   minimum, the others the width of their button, so the container never gets
   narrower than its buttons (with or without a title), they never lie over
   … and Format, and its width counts them (getSimpleEmbedButtonsWidth) */
.geEmbed .geSimpleMainMenu .geButtonContainer {
	display: inline-grid;
	grid-auto-flow: column;
	grid-auto-columns: max-content;
	align-items: center;
	flex-shrink: 1;
}

.geEmbed .geSimpleMainMenu .geButtonContainer:has(>.geStatusDiv:first-child) {
	grid-template-columns: minmax(0, max-content);
}

.geEmbed .geSimpleMainMenu .geButtonContainer>.geStatusDiv {
	min-width: 0;
}

/* Narrow embeds of the simple theme: the buttons of the host fold into one
   menu button where the bar has no room for their labels
   (updateSimpleEmbedMenu in SimpleClassic.js). The menu button shows only
   in that bar, not after a switch to another look (Fusion moves the
   container into its own top bar) */
.geButtonContainer>.geSimpleEmbedMenu,
.geEmbed .geSimpleMainMenu .geButtonContainer.geSimpleEmbedFolded>.geEmbedBtn {
	display: none;
}

.geEmbed .geSimpleMainMenu .geButtonContainer.geSimpleEmbedFolded>.geSimpleEmbedMenu {
	display: inline-flex;
}

.geEmbed .geSimpleMainMenu .geButtonContainer>.geStatusDiv+.geSimpleEmbedMenu {
	margin-left: 4px;
}

.geEmbed.geAtlas>.geMenubarContainer>.geStatusDiv,
.geClassic.geEmbed.geCompactMode>.geMenubarContainer>.geStatusDiv {
	position: fixed;
    right: 16px;
    top: 6px;
}

.geClassic.geEmbed.geCompactMode>.geMenubarContainer>.geStatusDiv {
    top: 6px;
}

.geEmbed.geAtlas>.geMenubarContainer>.geStatusDiv {
    top: 12px;
}

html body div.geBtn.geSmallBanner {
	border-radius: 20px;
	font-size: inherit;
	padding: 6px 12px 6px 20px;
	display: flex;
	height: auto;
	bottom: 4px;
}

.geSpinnerStatus {
	position: absolute;
    white-space: nowrap;
    border-radius: 6px;
	color: #ffffff;
	background: #4B4243;
	transform: translate(-50%, -50%);
    box-shadow: light-dark(#dddddd, transparent) 2px 2px 3px 0px;
	padding: 6px 10px;
	font-size: 9pt;
    z-index: 2000000000;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
	cursor: default;
}

.geSmallBanner .geLibraryButton {
	background-color: light-dark(var(--primary-hover-color), var(--dark-active-accent-color));
	filter: brightness(0.9);
	margin-left: 6px;
	opacity: 0.5;
}

.geSmallBanner .geLibraryButton:hover {
	background-color: light-dark(var(--primary-hover-color), var(--dark-active-accent-color));
	opacity: 1;
}

.geAlert {
	position: absolute;
	white-space: nowrap;
	padding: 14px;
	background-color: #f2dede;
	border: 1px solid #ebccd1;
	color: #a94442;
	border-radius: 3px;
	-webkit-box-shadow: 2px 2px 3px 0px #ddd;
	-moz-box-shadow: 2px 2px 3px 0px #ddd;
	box-shadow: 2px 2px 3px 0px #ddd;
}

.geColorDropper {
	position: relative;
	cursor: pointer;
	width: auto;
	height: 14px;
	opacity: 0.7;
	right: -20px;
	top: -1px;
}

.geBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 550;
	height: 30px;
	margin: 0 0 0 8px;
	min-width: 72px;
	outline: 0;
	padding: 0 8px;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.geBtn.geBanner {
	display: block;
	position: absolute;
	bottom: 10px;
	left: 50%;
	max-width: 90%;
	white-space: nowrap;
	cursor: pointer;
	font-size: 16px;
	padding: 18px 34px 30px 20px;
	font-weight: bold;
	transform: translate(-50%, 0%);
	transition: 1000ms;
	box-shadow: rgb(221, 221, 221) 1px 1px 2px 0px;
}

.geBtn:hover:not([disabled]),
.geBtn:focus {
	box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
}

/* Keyboard focus ring of buttons, eg. More Shapes and the buttons of dialogs:
   an outline in the focus color that also shows next to primary buttons and in
   dark mode, which removes all shadows, inside of the button so that areas
   that scroll do not clip it, eg. the content of dialogs */
.geBtn:focus-visible,
.geCollapsibleTitle:focus-visible,
.geTab:focus-visible,
.geFormatTitle:focus-visible,
.geGraphStylePreview:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

/* The page tabs clip the ring of their menu button */
.gePageTab .geButton:focus-visible,
.gePageGroupTab .geButton:focus-visible {
	outline-offset: -2px;
}

/* Keyboard focus of a label that stands for its container, which also contains
   other controls, eg. the name of a page tab or of a library (see
   Editor.addFocusRing) */
.geFocusRing {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

.geFocusLabel:focus-visible {
	outline: none;
}

.geShapePicker {
	position: absolute;
	width: 142px;
	border-radius: 10px;
	border-style: solid;
	border-width: 1px;
	padding: 6px 0 8px 0;
	text-align: center;
	box-shadow: 0px 0px 3px 1px #d1d1d1;
	white-space: normal;
}

.geBtnStepper {
	display: inline-block;
	border-radius: 3px;
	border-style: solid;
	border-width: 1px;
}

.geBtnStepper>div {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 18px;
	position: relative;
	padding: 1px 0 0 0;
}

.geBtnStepper>div:active {
	background-color: #4d90fe;
}

.geColorBtn {
	padding: 0px;
}

.geStyleBtn {
	display: inline-flex;
	position: relative;
	box-sizing: border-box;
	border-radius: 4px;
	height: 22px;
	width: 64px;
	border-width: 1px;
	border-style: solid;
	margin: 2px;
	padding: 0;
}

.geStyleBtn>span {
	position: absolute;
	display: block;
	text-align: center;
	top: 3px;
	left: 3px;
	right: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geStyleBtn .geAdaptiveAsset {
	background-size: 18px 18px;
	flex-grow: 1;
}

.geStyleBtn .geAdaptiveAsset>div.gePatternPreview {
	height: 1px;
	border-color: black;
	border-width: 1px;
	margin-left: -6px;
}

.geStyleMenuItem {
	display: flex;
	align-items: center;
	padding: 4px 8px;
}

.geStyleBtn .geAdaptiveAsset>div {
	background-repeat: no-repeat;
	background-position: center;
	position: absolute;
	width: 100%;
	height: 100%;
}

td.mxPopupMenuIcon .geStyleMenuItem {
	margin: auto;
}

td.mxPopupMenuIcon .geStyleMenuItem>div {
	background-position: bottom left;
	background-repeat: repeat-x;
	border-color: black;
	border-width: 1px;
	margin: 8px 0;
	height: 1px;
	width: 100%;
}

.geStyleBtn .geAdaptiveAsset.geArrow {
	width: 100%;
	height: 100%;
	display: flex;
	font-size: 12px;
	padding-right: 8px;
	position: relative;
	align-items: center;
	justify-content: center;
	background-position: right;
	box-sizing: border-box;
}

/* The menus of the line ends that start with their label (Start, End, see
   BaseFormatPanel.addMenuLabel): the label and the marker with the chevron in
   a row (None is the image of the line without a marker, the span is empty) */
.geStyleBtn.geLabelledMenu {
	align-items: center;
}

.geStyleBtn.geLabelledMenu>.geMenuLabel {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 40px;
	padding-left: 4px;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geStyleBtn.geLabelledMenu>span {
	position: static;
	flex: 0 1 auto;
	min-width: 0;
	white-space: nowrap;
}

.geStyleBtn.geLabelledMenu>.geAdaptiveAsset.geArrow {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
}

.geStyleLabel {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 180px;
}

.geFullWidthElement {
	width: 212px;
	/* Keeps 3px for the focus ring where the scrollbar of .geFormatContainer
	   narrows the panel, which would otherwise clip it at the right edge */
	max-width: calc(100% - 3px);
}

.geBtn[disabled],
.geButton[disabled] {
	opacity: 0.3;
}

.geButton.gePageMenu {
	background-position: right center;
	padding: 0 18px 0 10px;
	background-size: 18px;
}

.geButton.gePageMenu>span {
	padding: 0px;
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geSimple .geButton.geZoomInput:not(.geSketch *, .geMinimal *) {
	border-style: solid;
	font-size: 12px;
}

.geButton.geZoomInput {
    cursor: initial;
    font-size: 14px;
    border-style: none;
    border-color: #000000;
    padding: 0px 16px 0px 2px;
    background-position: right 2px center;
    text-align: center;
    height: 28px;
    width: 62px;
}

.geClassic .geZoomInput {
	padding-top: 1px;
}

.geSimple .geButton.geZoomInput {
	height: 20px;
}

.geSketch .geZoomInput {
	border-style: none;
}

.geAlertLink {
	color: #843534;
	font-weight: 700;
	text-decoration: none;
}

.geMenubarContainer .geItem {
	border-radius: 6px;
	padding: 4px 8px;
	cursor: default;
}

.geEditor .geItem:active:not(.mxDisabled, [disabled]):not(.geStatus),
.geEditor .geBtn:active:not([disabled]),
.geEditor .geStatus.geStatusAction:active,
.geEditor .geTitle:active,
.geEditor .geButton:active:not(.mxDisabled, .mxDisabled *, [disabled], .geBtn *),
.geEditor .geHelpIcon:active,
.geEditor button:active:not([disabled], .geBigButton, .geShareBtn),
.geEditor .geFormatTitle:active,
.geEditor .geBtnStepper>div:active,
.geEditor .geTab:active:not(.mxDisabled, [disabled]),
.geDarkMode .mxPopupMenuItem>div:not(:has(img)),
.geTitle,
.geBtnStepper>div,
.geHelpIcon,
.geStatus>div:not(.geStatusAlert) {
	opacity: 0.75;
}

.geEditor .geButton:not(.mxDisabled, .mxDisabled *, [disabled]) {
	opacity: 0.65;
}

/* Shows the keyboard focus ring of buttons at full strength like the hover */
.geEditor .geButton:focus-visible:not(.mxDisabled, .mxDisabled *, [disabled]) {
	opacity: 1;
}

.geItem:hover:not(.mxDisabled, [disabled]),
.geBtn:hover:not([disabled]),
.geBtnStepper>div:hover,
.geHelpIcon:hover,
.geColorDropper:hover,
.geTitle>div>img:hover,
.geFormatTitle.geActiveFormatTitle,
.geHint img:hover,
.geGraphStylePreview:hover,
.geActiveItem:not(.geButton *, .geButton *),
.gePageTab .geButton:hover:not([disabled]),
.geButtonGroup .geButton:hover:not([disabled]),
button:hover:not([disabled], .geBigButton, .geShareBtn),
select:hover:not([disabled]),
.geColorBtn:hover:not([disabled]),
.geStyleBtn:hover:not([disabled]),
table.mxPopupMenu tr.mxPopupMenuItemHover,
.geTitle:hover,
.geButton:hover:not(.mxDisabled, .mxDisabled *, [disabled], .gePageTab *, .geSimpleMainMenu *, .geBtn *, .geButtonGroup *, .geAdaptiveAsset, .gePrimaryBtn) {
	opacity: 1;
}

.gePaletteDragging .geTitle:hover {
	opacity: inherit;
	background-color: inherit;
}

.geTitle.gePaletteDragPlaceholder {
	visibility: hidden;
}

/* The dragged tabs are empty slots where they are dropped, with the lines of
   the group that a page joins (see EditorUi.setTabDragGroup) */
.gePageTab.gePageTabDragPlaceholder>*,
.gePageGroupTab.gePageTabDragPlaceholder>* {
	visibility: hidden;
}

.gePageTab.gePageTabDragPlaceholder,
.gePageGroupTab.gePageTabDragPlaceholder {
	background-color: light-dark(var(--highlight-color), var(--dark-border-color));
}

button:hover:not([disabled], .geBigButton, .geShareBtn),
select:hover:not([disabled]),
.geColorBtn:hover:not([disabled]),
.geStyleBtn:hover:not([disabled]),
table.mxPopupMenu tr.mxPopupMenuItemHover {
	background-color: light-dark(var(--highlight-color), var(--dark-border-color));
}

.geTitle:hover,
.geButton:hover:not(.mxDisabled, .mxDisabled *, [disabled], .gePageTab *, .geSimpleMainMenu *, .geBtn *, .geButtonGroup *, .geAdaptiveAsset, .gePrimaryBtn) {
	background-color: light-dark(var(--highlight-color), white);
}

.geGraphStylePreview:hover,
.geItem:hover:not([disabled]) {
	background-color: light-dark(var(--highlight-color), var(--dark-highlight-color));
}

.geActiveItem:not(.geButton *, .geButton *) {
	background-color: light-dark(var(--active-item-color), var(--dark-active-item-color));
}

.mxDisabled:hover {
	background-color: inherit !important;
}

a.geStatus>div {
	display: inline-flex;
	align-items: center;
}

.geSidebarContainer:not(.geFormatContainer, .mxWindowPane *) {
	border-right-style: solid;
	border-right-width: 1px;
}

.geClassic .geSidebarContainer:not(.geFormatContainer)>div {
	padding: 0 4px;
}

.geFormatContainer:not(.mxWindowPane *) {
	border-left-style: solid;
	border-left-width: 1px;
}

.geSidebarContainer {
	box-sizing: border-box;
}

.geSidebarContainer button {
	text-overflow: ellipsis;
	overflow: hidden;
}

.geToolbarEnd {
	margin-left: 8px;
	flex-grow: 0;
	order: 1;
}

.geToolbarContainer.geVerticalToolbar {
	flex-direction: column;
	max-height: 100%;
	left: 10px;
	top: 50%;
	transition: transform 0.1s ease-out;
}

.geToolbarContainer.geVerticalToolbar:not(.geEmbedInline *) {
	transform: translate(0, -50%);
}

.geVerticalToolbar.geCollapsedToolbar {
	top: auto;
	bottom: 12px;
	transform: none !important;
}

.geToolbarContainer.geVerticalToolbar>* {
	display: flex;
	overflow: visible;
	margin: 2px 0;
}

.geVerticalToolbar.geCollapsedToolbar>* {
	margin: 0;
	width: 24px !important;
}

.geVerticalToolbar>.geButton {
	width: 34px;
	height: 34px;
}

.geVerticalToolbar .geItem {
	position: relative;
	border-radius: 6px;
}

.geShortcutKey {
	position: absolute;
	font-size: 8px;
	opacity: 0.4;
	bottom: -2px;
	right: 1px;
}

.geToolbar {
	height: 100%;
}

.geButton>div:not(.geShortcutKey) {
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
	background-position: left 2px center;
	background-repeat: no-repeat;
	background-size: 18px;
}

.geButton,
.geTitle,
.geItem {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 18px;
	white-space: nowrap;
	z-index: 1;
	padding: 2px;
}

.geItem {
	overflow: hidden;
}

.geButton,
.geTitle {
	color: black;
	border-radius: 6px;
	box-sizing: border-box;
	margin: 2px;
}

.geSidebarText {
	margin: 4px 8px;
	text-align: center;
	font-size: 11px;
	padding: 6px 0px 0px;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	cursor: default;
}

.geButton:not([disabled], .geZoomInput),
.geTitle:not([disabled]),
.geItem:not([disabled]) {
	cursor: pointer;
}

.geButton {
	height: 28px;
	flex-shrink: 0;
	flex-grow: 0;
}

.mxPopupMenuItem:empty:has(+ .mxPopupMenuItem:empty),
.mxPopupMenuItem:empty + .mxPopupMenuItem:empty {
	display: none;
}

.mxPopupMenuIcon>img.geButton:empty {
	width: 22px;
}

.geButton:empty:not(.geVerticalToolbar *, .geZoomInput, .geTemplate *, .geSidebarTooltip *),
.geButton:has(> span.geCommentsBadge:only-child):not(.geVerticalToolbar *, .geZoomInput, .geTemplate *, .geSidebarTooltip *) {
	width: 28px;
}

.geButton[disabled] {
	cursor: default;
}

.geShapePicker>* {
	display: inline-block;
	width: 30px;
	height: 30px;
	padding: 1px;
}

/* The search field of the shape pickers that open with a click, in the look
   of the search of the sidebar, and the note in place of the tiles if nothing
   is found or while the icon service is asked (diagramly/EditorUi.js,
   addShapePickerSearch) */
.geShapePicker>.geShapePickerSearch {
	display: block;
	position: relative;
	box-sizing: border-box;
	width: auto;
	height: auto;
	padding: 0 8px 6px 8px;
}

.geShapePicker>.geShapePickerSearch>input {
	box-sizing: border-box;
	width: 100%;
	border-radius: 18px;
	padding: 5px 24px 5px 10px;
	font-size: 12px;
	outline: none;
}

.geShapePicker>.geShapePickerSearch>input:focus {
	outline: 1px solid transparent;
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
	box-shadow: 0 0 0 3px light-dark(color-mix(in srgb, var(--focus-color) 35%, transparent), color-mix(in srgb, var(--dark-focus-color) 35%, transparent));
}

.geShapePicker>.geShapePickerSearch>img.geAdaptiveAsset {
	position: absolute;
	top: 6px;
	right: 15px;
	width: 16px;
	height: 16px;
	opacity: 0.6;
	pointer-events: none;
}

.geShapePicker>.geShapePickerNote {
	display: block;
	width: auto;
	height: auto;
	padding: 6px 10px;
	font-size: 12px;
	line-height: 16px;
	white-space: normal;
	opacity: 0.75;
}

/* The list of the shapes found by the search of the shape pickers that open
   with a click, which keeps its height and scrolls after More Results, and
   More Results below it while there are more shapes, a button across the
   width of the picker (diagramly/EditorUi.js, addShapePickerSearch) */
.geShapePicker>.geShapePickerResults {
	display: block;
	box-sizing: border-box;
	width: auto;
	height: auto;
	padding: 0;
}

.geShapePicker>.geShapePickerResults>* {
	display: inline-block;
	width: 30px;
	height: 30px;
	padding: 1px;
}

.geShapePicker>.geShapePickerMore {
	display: block;
	width: auto;
	height: auto;
	padding: 6px 8px 0 8px;
}

.geShapePicker>.geShapePickerMore>.geBtn {
	display: flex;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	font-size: 12px;
	cursor: pointer;
}

.geButton.geRoundButton:not(.geEmbed.geCompactMode .geButtonContainer .geButton) {
	background-size: 24px 24px;
	justify-content: center;
	box-sizing: content-box;
	border-radius: 50%;
	padding: 6px;
}

.geSketch .geButton.geRoundButton {
	padding: 4px;
}

.geRoundButton img {
	width: 26px;
	border-radius: 50%;
}

/* Account icon: a div with a background-image (set in App.updateButtonContainer).
   The default silhouette also carries geAdaptiveAsset so it inverts in dark mode
   via the generic .geDarkMode .geAdaptiveAsset rule; a real account picture
   (geUserPhoto) is cover-fitted and never inverted. See #5364. The selector
   outweighs ".geButton > div" (which would stretch the div to width/height 100%). */
.geButton.geRoundButton > .geUserAvatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background-position: center center;
	background-repeat: no-repeat;
	/* Scale the SVG silhouette to fill the box like the original <img> did
	   (.geRoundButton img { width: 26px }); without this it falls back to the
	   image's intrinsic 24px and renders too small. See #5364. */
	background-size: contain;
}

.geButton.geRoundButton > .geUserPhoto {
	background-size: cover;
}

/* In dark mode the parent .geButton already inverts its whole subtree
   (.geDarkMode .geButton), which lightens the default silhouette. So the avatar
   must NOT invert again via geAdaptiveAsset, or it double-inverts back to dark
   (the #5364 bug). A real photo, conversely, must counter the parent invert so it
   is never rendered as a negative. */
.geDarkMode .geUserAvatar.geAdaptiveAsset {
	filter: none;
}

.geDarkMode .geUserPhoto {
	filter: invert(1);
}

.geSeparator {
	display: inline-block;
	background-color: #e5e5e5;
	margin-left: 6px;
	margin-right: 6px;
	height: 20px;
	width: 1px;
}

.geHelpIcon {
	width: 16px;
	margin: 0 4px;
	vertical-align: text-bottom
}

.geFormatSection {
	padding: 6px 0;
	position: relative;
	white-space: nowrap;
	border-top: 1px solid light-dark(var(--border-color), var(--dark-border-color));
}

.geFormatSection:first-child {
	border-top: none;
}

.geFormatSection:last-child {
	padding-bottom: 0;
}

.geFormatSection select {
	position: absolute;
	text-align: center;
	text-overflow: ellipsis;
	height: 24px;
	border-radius: 4px;
}

.geFormatSection table {
	border-collapse: collapse;
	border-spacing: 0;
}

.geFormatSection table td {
	vertical-align: middle;
	max-width: 50%;
	width: 50%;
	padding: 0 0 0 2px;
}

.geFormatSection table td select {
	position: relative;
}

.geFormatSection *:empty:not(input),
.geToolbarContainer *:not(input) {
	-webkit-user-select: none;
	user-select: none;
}

.geFormatSection input:not([type="checkbox"], [type="radio"]),
.geFormatSection button {
	box-sizing: border-box;
	height: 24px;
	border-radius: 4px;
}

.geFormatSection input:not([type="checkbox"], [type="radio"]) {
	text-align: right;
}

.geFormatSectionTitle {
	padding: 0px 0 6px 0;
	white-space: nowrap;
	overflow: hidden;
	width: 210px;
	font-weight: bold;
}

/* Icon that a style rule of the page sets the value of a Format panel entry
   (BaseFormatPanel.addStyleRuleHint), which opens the rules when clicked */
.geStyleRuleHint {
	display: inline-flex;
	align-items: center;
	margin-left: 4px;
	vertical-align: middle;
	flex-shrink: 0;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
}

.geStyleRuleHint[role="button"]:hover {
	color: light-dark(var(--focus-color), var(--dark-focus-color));
}

/* The title has a gap between its children */
.geCollapsibleTitle .geStyleRuleHint {
	margin-left: 0;
}

.geCollapsibleTitle {
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 0;
	font-weight: bold;
	font-size: 12px;
}

.geCollapsibleTitle::before {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 4px 0 4px 6px;
	border-color: transparent transparent transparent light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	transition: transform 0.15s ease;
	flex-shrink: 0;
}

.geCollapsibleTitle.geExpanded::before {
	transform: rotate(90deg);
}

.geCollapsibleContent {
	position: relative;
}

.geCollapsibleContent.geCollapsed {
	display: none;
}

.geFormatEntry {
	display: flex;
	position: relative;
	align-items: center;
	white-space: nowrap;
	/* clip (not hidden) plus a small margin so the focus ring of a left-aligned
	   checkbox is not cut off. The label self-truncates via .geStyleLabel, so
	   this only needs to clip content overflowing to the right; the 2px bleed
	   lands in the 12px .geFormatContent left margin with no layout shift. */
	overflow: clip;
	overflow-clip-margin: 4px;
	min-height: 28px;
}

.geFormatEntry .geColorBtn {
	position: absolute;
	left: 166px;
}

.geFormatEntry input {
	box-sizing: border-box;
}

.geFormatEntry input[type="checkbox"] {
	margin: 0 8px 0 0;
}

/* Shapes in windows and in the shapes panel of the minimal theme without
   windows (windows=0), with room for the library buttons */
.mxWindowPane .geSidebarContainer,
.geEditor>.geSidebarContainer .geSidebarContainer {
	position: absolute;
	width: 100% !important;
	top: 0;
	bottom: 28px;
}

.mxWindowPane .geSidebarContainer.geFormatContainer {
	bottom: 0;
}

.geEditor>div>.geMenubarContainer {
	border-bottom-style: solid;
	border-bottom-width: 1px;
}

.geTabContainer {
	box-sizing: border-box;
	white-space: nowrap;
	overflow: hidden;
	padding: 0 20px 0 12px;
	display: flex;
	height: 32px;
	z-index: 1;
}

.geMinimal .geTabContainer .geZoomInput {
	margin-left: auto;
}

.geTabContainer .geZoomInput {
	margin: auto -16px auto 0;
	font-size: 12px;
	width: 56px;
}

.geTabScroller {
	display: inline-block;
	position: relative;
	white-space: nowrap;
	overflow: hidden;
	overflow-x: auto;
	margin: 0 8px;
	-ms-overflow-style: none;
	scrollbar-width: none;
	left: 0px;
}

.geTab .geButton {
	border-radius: 50%;
	margin-left: 0px;
}

.gePageTab:not(.geActivePage) .geButton {
	display: none;
}

.gePageTab:not(.geActivePage) {
	padding-right: 16px;
}

.gePageTab {
	padding: 0px 0px 0px 16px;
}

/* Page groups (see EditorUi.createTabForPageGroup): the tab of a group and
   the tabs of its pages are underlined and between lines, with a gap to the
   tabs outside of the group, and the groups without the current page are
   darker like the inactive tabs of the Format panel */
.gePageTabGrouped,
.gePageGroupTab {
	box-shadow: inset 0 -2px 0 light-dark(var(--strong-border-color), var(--dark-strong-border-color));
}

.gePageTab.gePageTabCollapsed {
	display: none;
}

.gePageGroupTab {
	vertical-align: top;
	margin-left: 4px;
	padding: 0px 2px 0px 4px;
	font-weight: 600;
	border-left: 1px solid light-dark(var(--strong-border-color), var(--dark-strong-border-color));
}

.gePageGroupEnd {
	margin-right: 4px;
	border-right: 1px solid light-dark(var(--strong-border-color), var(--dark-strong-border-color));
}

.gePageGroupInactive:not(:hover, .geActivePage) {
	background-color: light-dark(var(--inactive-color), var(--dark-highlight-color));
}

.gePageGroupTab>div.geButton {
	width: 20px !important;
}

/* Disclosure triangle of a group like in the collapsible sections of dialogs
   (.geCollapsibleTitle), which is not like the menu button of the tabs */
.gePageGroupExpandedIcon,
.gePageGroupCollapsedIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gePageGroupExpandedIcon::before,
.gePageGroupCollapsedIcon::before {
	content: '';
	border-style: solid;
	border-width: 4px 0 4px 6px;
	border-color: transparent transparent transparent light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
}

.gePageGroupExpandedIcon::before {
	transform: rotate(90deg);
}

/* The group of the current page cannot be collapsed */
.gePageGroupCurrent>.gePageGroupExpandedIcon {
	opacity: 0.4;
}

.gePageGroupTab:not(:hover, :focus-within)>div.geButton:last-child {
	opacity: 0;
}

.geControlTab {
	width: 30px;
	margin: 0 4px;
}

.geTab {
	height: 100%;
	box-sizing: border-box;
	text-overflow: ellipsis;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	cursor: move;
}

.geSidebar {
	transform-origin: top left;
	padding: 4px 6px 8px 14px;
	overflow: hidden;
	white-space: normal;
}

.geEditor .geSearchSidebar {
	box-sizing: border-box;
	padding: 8px 4px 4px 4px;
	width: 100%;
}

.geTitle {
	display: flex;
	font-size: 13px;
	background-repeat: no-repeat;
	background-position: 2px 50%;
	background-size: 20px;
	border-radius: 14px;
	padding: 8px 0px 8px 22px;
	margin: 2px 4px 4px 4px;
	cursor: default;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	justify-content: start;
	align-items: center;
	height: 30px;
}

.geTitle>span {
	flex-grow: 1;
	flex-shrink: 1;
	width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geSidebarContainer .geDropTarget {
	border: 2px dotted currentcolor;
	border-radius: 10px;
	text-align: center;
	font-size: 12px;
	color: light-dark(#5f5f63, #a0a0a0);
	padding: 6px;
	margin: 4px 6px 4px 0;
}

/* The library In This Diagram without shapes (UsedShapes.js) */
.geSidebarContainer .geUsedShapesEmpty {
	font-size: 12px;
	color: light-dark(#5f5f63, #a0a0a0);
	padding: 4px 6px 8px 6px;
}

.geTitle>div {
	display: flex;
	flex-grow: 0;
	padding-right: 4px;
}

.geLibraryButton {
	position: relative;
	border-radius: 50%;
	padding: 5px;
	width: 14px;
	cursor: pointer;
	margin: 0px 1px;
	opacity: 0.75;
}

.geLibraryButton:hover {
	background-color: var(--active-color);
}

/* Keyboard focus ring of the buttons in the titles of libraries */
.geLibraryButton:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	opacity: 1;
}

.geTitle .geButton {
	border: 1px solid transparent;
	padding: 3px;
	border-radius: 2px;
}

.geTitle .geButton:hover {
	border: 1px solid gray;
}

.geSidebar .geItem,
.geShapePicker .geItem {
	overflow: hidden;
	display: inline-block;
	padding: 2px;
	border-radius: 4px;
	transition: transform 100ms ease-out;
	opacity: 0.75;
}

.geSidebar .geItem:active,
.geShapePicker .geItem:active {
	transform: scale(0.8, 0.8);
}

.geSidebarTooltip {
	position: absolute;
	overflow: hidden;
	border-width: 1px;
	border-style: solid;
	box-shadow: 0 2px 6px 2px rgba(60, 64, 67, .15);
	border-radius: 6px;
}

.geSidebarTooltip .geButton {
	position: absolute;
	padding: 2px;
	margin: 0;
	right: 2px;
	top: 2px;
	width: 20px;
	height: 20px;
}

.geDialog {
	position: absolute;
	background-color: light-dark(var(--dialog-color), var(--dark-dialog-color));
	line-height: 1em;
	overflow: hidden;
	padding: 24px;
	border: light-dark(none, 1px solid rgba(255, 255, 255, 0.1));
	left: 50%;
	top: 50%;
	max-height: 100%;
	max-width: 100%;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
}

/* The dialog takes the focus after a tap (EditorUi.focusDialogStart): no
   focus ring around it, as nothing was typed */
.geDialog.geQuietFocus:focus {
	outline: none;
}

/* Tall dialogs: cap the content area to the dialog's content box and let
   it scroll. The close button (.geButton) is a positioned-absolute sibling
   of the content so it stays at the top-right regardless of scroll. */
.geDialog > :first-child {
	max-height: 100%;
	overflow-y: auto;
	box-sizing: border-box;
}

.geDialog > .geButton {
	top: 8px !important;
	right: 8px !important;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-size: 10px;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.5;
	transition: opacity 0.1s ease, background-color 0.1s ease;
}

.geDialog > .geButton:hover {
	opacity: 0.8;
	background-color: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
}

.geDialog input[type="text"],
.geDialog input[type="number"],
.geDialog .geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) input:not([type]),
.geDialog textarea,
.geDialog select {
	border-radius: 6px;
	border: 1px solid light-dark(rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15));
	background-color: light-dark(var(--field-color), var(--dark-field-color));
	padding: 4px 8px;
	font-size: 13px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.geDialog input[type="text"]:focus,
.geDialog input[type="number"]:focus,
.geDialog .geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) input:not([type]):focus,
.geDialog textarea:focus,
.geDialog select:focus {
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
	box-shadow: 0 0 0 3px light-dark(color-mix(in srgb, var(--focus-color) 25%, transparent), color-mix(in srgb, var(--dark-focus-color) 25%, transparent));
}

/* Some dialog selects carry .geBtn for its sizing; keep the button font
   weight off so all selects in a dialog render alike */
.geDialog select {
	font-weight: normal;
}

/* Dialog titles: a plain <h3>, styled centrally - dialogs must not set
   inline title styles. flex-shrink matters for titles in flex columns */
.geDialog h3 {
	width: 100%;
	text-align: center;
	margin: 0 0 16px;
	flex-shrink: 0;
}

/* Dialog form sections and layout */
.geDialogSection {
	background: light-dark(rgba(0, 0, 0, 0.035), rgba(255, 255, 255, 0.05));
	border: 1px solid light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.06));
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 10px;
}

.geDialogSection > input[type="checkbox"],
.geDialogSection > input[type="radio"] {
	margin-top: 6px !important;
}

.geDialogSection > input[type="checkbox"]:first-child,
.geDialogSection > input[type="radio"]:first-child {
	margin-top: 0 !important;
}

.geDialogFormRow {
	display: flex;
	align-items: center;
	min-height: 28px;
	column-gap: 8px;
}

.geDialogFormLabel {
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	min-width: 100px;
	flex-shrink: 0;
}

.geDialogFormRow input[type="text"],
.geDialogFormRow input[type="number"],
.geDialogFormRow select,
.geDialogFormRow textarea {
	flex: 1;
	min-width: 0;
	/* The row's column-gap owns the spacing - class margins (e.g. .geBtn's
	   margin-left) must not shift controls off the label column */
	margin-left: 0;
}

/* Rows whose content spans multiple lines (stacked controls, wrapping
   hint text): top-align the label with the first content line instead
   of centering it against the whole block */
.geDialogFormRowTop {
	align-items: flex-start;
}

.geDialogFormRowTop > .geDialogFormLabel {
	padding-top: 4px;
}

/* Marks a required field of a dialog that is still empty or invalid, like
   the style key of a step in the action dialog (.geAnimationFieldWarn) */
.geDialog .geDialogFieldWarn {
	border-color: light-dark(#e6a700, #ffcc4d) !important;
	box-shadow: 0 0 0 1px light-dark(rgba(230, 167, 0, 0.25), rgba(255, 204, 77, 0.25));
}

/* Explanatory hint text describing what an option does - never for the
   current value of an entry, which stays in the regular text style */
.geDialogHint {
	font-size: 12px;
}

/* Gray text in dialogs with at least 4.5:1 on their background (the secondary
   text color has 4.45:1 on the light dialog color and gray 3.5:1) */
.geDialogHint, .geSecondaryText {
	color: light-dark(#5f5f63, var(--dark-secondary-text-color));
}

/* The Preview template of dialogs in Classic, Simple and the other themes
   (PreviewDialog.js, docs/dialog-style-guide.md "Preview template"): the
   preview on the left, the fields on the right in sections, the footer of
   the dialog below; below 700 px the preview is above the fields. Fusion
   has its own skin in fusion.css */
.gePreviewTemplate {
	display: flex;
	flex-direction: column;
	min-height: 0;
	line-height: normal;
}

/* The Export dialog has one height for every format (PreviewDialog.
   fixExportHeight): the template fills it, a format with fewer options has
   more empty space below them and the options scroll where the window is
   lower */
.geDialogFixedHeight > .gePreviewTemplate {
	height: 100%;
}

.gePreviewHead {
	flex-shrink: 0;
	margin-bottom: 12px;
}

.gePreviewHead > h3 {
	margin-bottom: 4px;
}

.gePreviewSubtitle {
	text-align: center;
}

.gePreviewBody {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	column-gap: 16px;
	row-gap: 12px;
}

.gePreviewPane {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 50%;
	min-width: 0;
	min-height: 200px;
	padding: 12px;
	box-sizing: border-box;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 8px;
	background: light-dark(#ffffff, var(--dark-color));
	overflow: hidden;
}

.gePreviewPane > img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* A checkerboard behind an image with a transparent background */
.gePreviewPane.gePreviewTransparent {
	background-color: light-dark(#ffffff, #2a2a2a);
	background-image: conic-gradient(light-dark(#e6e6e6, #3a3a3a) 25%, transparent 0 50%,
		light-dark(#e6e6e6, #3a3a3a) 0 75%, transparent 0);
	background-size: 16px 16px;
}

.gePreviewEmpty {
	display: none;
	color: light-dark(#5f5f63, var(--dark-secondary-text-color));
}

.gePreviewPane.gePreviewIsEmpty > img {
	display: none;
}

.gePreviewPane.gePreviewIsEmpty > .gePreviewEmpty {
	display: block;
}

.gePreviewOptions {
	flex: 1 1 50%;
	min-width: 0;
	overflow: auto;
}

.gePreviewSectionTitle {
	margin: 0 0 6px;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-weight: 600;
}

/* The control of a row; a message of the field is below it */
.gePreviewControl {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	min-width: 0;
	align-items: center;
	column-gap: 8px;
}

.gePreviewControl > .geDialogFieldError {
	flex-basis: 100%;
}

.gePreviewCheckHint {
	margin-left: 8px;
}

.gePreviewHint {
	margin-top: 6px;
}

.gePreviewTiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 8px;
}

.gePreviewTile {
	display: flex;
	flex-direction: column;
	padding: 6px 8px 8px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 8px;
	background: light-dark(var(--card-color), var(--dark-card-color));
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font: inherit;
	line-height: normal;
	text-align: left;
	cursor: pointer;
}

.gePreviewTile:hover {
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
}

.gePreviewTile:disabled {
	opacity: 0.5;
	cursor: default;
}

/* button. wins over the generic hover of buttons, which would hide the tint */
button.gePreviewTile[aria-checked="true"] {
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
	background: light-dark(color-mix(in srgb, var(--focus-color) 8%, var(--card-color)),
		color-mix(in srgb, var(--dark-focus-color) 14%, var(--dark-card-color)));
}

.gePreviewTile:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

.gePreviewTile > img {
	max-width: 100%;
	height: 64px;
	object-fit: contain;
}

.gePreviewTileName {
	font-weight: 600;
}

.gePreviewTileHint {
	margin-top: 2px;
	font-size: 12px;
	color: light-dark(#5f5f63, var(--dark-secondary-text-color));
}

@media (max-width: 699px) {
	.gePreviewBody {
		flex-direction: column;
	}

	.gePreviewPane {
		flex: 0 0 auto;
		height: 200px;
	}

	.gePreviewOptions {
		flex: 1 1 auto;
	}
}

/* The Export dialog on the Preview template in Classic and Simple
   (EditorUi.createExportLayout in PreviewDialog.js): the row of the formats
   between the head and the body, small tiles of the formats that fit into
   it (createExportFormatRow measures it, the others are in More) and More,
   only while a format has no room, a list of those formats that is tinted
   while one of them is chosen, then the purpose of the format; the fields
   of the format under More options */
.gePreviewFormatBar {
	flex-shrink: 0;
	margin-bottom: 12px;
}

.gePreviewFormatRow {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.gePreviewFormats {
	display: flex;
	flex: 0 0 auto;
	gap: 4px;
}

.gePreviewFormat {
	flex: 0 0 auto;
	min-width: 52px;
	padding: 5px 10px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 6px;
	background: light-dark(var(--card-color), var(--dark-card-color));
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font: inherit;
	line-height: 18px;
	white-space: nowrap;
	cursor: pointer;
}

.gePreviewFormat:hover {
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
}

/* The chosen format is 600: each format reserves the width of its bold name
   (data-label of createExportFormatRow), so choosing one moves no other */
.gePreviewFormat::after {
	content: attr(data-label);
	display: block;
	height: 0;
	overflow: hidden;
	visibility: hidden;
	font-weight: 600;
}

/* button. wins over the generic hover of buttons, which would hide the tint */
button.gePreviewFormat[aria-checked="true"] {
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
	background: light-dark(color-mix(in srgb, var(--focus-color) 8%, var(--card-color)),
		color-mix(in srgb, var(--dark-focus-color) 14%, var(--dark-card-color)));
	font-weight: 600;
}

.gePreviewFormat:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

.geDialog select.gePreviewMoreFormats {
	flex: 0 0 auto;
	width: auto;
	min-width: 80px;
	max-width: 100%;
	margin: 0;
}

.geDialog select.gePreviewMoreFormats.gePreviewFormatOn {
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
	background-color: light-dark(color-mix(in srgb, var(--focus-color) 8%, var(--card-color)),
		color-mix(in srgb, var(--dark-focus-color) 14%, var(--dark-card-color)));
	font-weight: 600;
}

/* The saved presets after More at the end of the row (addExportPresetsSelect
   in PreviewDialog.js), as wide as its longest preset up to 160 and never
   wider than the row */
.geDialog select.gePreviewPresets {
	flex: 0 0 auto;
	width: auto;
	min-width: 80px;
	max-width: min(160px, 100%);
	margin: 0 0 0 auto;
	text-overflow: ellipsis;
}

/* The fields of the format that the options above replace */
.gePreviewReplaced {
	display: none !important;
}

/* Print on the Preview template in Classic and Simple
   (EditorUi.createPrintLayout in PreviewDialog.js): the first sheet of the
   output in its aspect (the paper, or the diagram if it is cropped) with the
   diagram where the output has it, and below it the tiles of the sheets and
   a caption. Sheets are white paper, also in dark mode, unless the page has
   a background color (set by the script) */
.gePrint .gePreviewPane {
	flex-direction: column;
	justify-content: center;
	/* A pane lower than its sheets clips them below, not above (Chrome 115,
	   Firefox 63, Safari 17.6; else centered, the declaration before) */
	justify-content: safe center;
	gap: 12px;
	min-height: 0;
	background: light-dark(#f4f4f5, var(--dark-color));
}

/* The preview is at least 360 high where the window has room for it, but
   shrinks with a lower window, so that only the column of the fields
   scrolls (the driver, 22 November 2026: a second scrollbar appeared next
   to Advanced as the dialog's content scrolled too). The 360 are a strut
   of no width before the pane (its margin takes back the gap of the body):
   the dialog measures its height with it as before (its frame, Advanced),
   and in a frame that the window cuts the body clips it; the pane shrinks
   to the body and clips its sheets (.gePreviewPane). As a min-height of the
   pane the 360 made the body overflow into the content of the dialog,
   which scrolled as well (.geDialog > :first-child) */
.gePrint .gePreviewBody {
	overflow: clip;
}

.gePrint .gePreviewBody::before {
	content: '';
	flex: 0 0 0;
	height: 360px;
	margin-inline-end: -16px;
}

.gePrint .gePreviewPane.gePreviewIsEmpty > .gePrintSheet {
	display: none;
}

/* The radio of Fit to (13 px) on the middle of the first line of its fields:
   the row of the sheets across is 27 px high (the field of 25 px with the
   padding of 1 px of its cell above and below), (27 - 13) / 2 = 7; after the
   margin of the radios of .geDialogCheckRow */
.gePrint .geDialogCheckRow > input.gePrintFitRadio {
	margin-top: 7px;
}

.gePrintSheet {
	position: relative;
	display: block;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: min(100%, calc(280px * var(--ge-sheet-ratio, 0.7071)));
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	outline: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
}

.gePrintSheet.gePrintGrid {
	background-image: linear-gradient(#e6e6e6 1px, transparent 1px),
		linear-gradient(90deg, #e6e6e6 1px, transparent 1px);
	background-size: 10px 10px;
}

/* The area of a sheet that shows the diagram and the image of the diagram
   in it, placed as the output places them */
.gePrintArea {
	position: absolute;
	overflow: hidden;
}

.gePrintArea > img {
	position: absolute;
	display: block;
	max-width: none;
	max-height: none;
}

.gePrintSheets {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: light-dark(#5f5f63, var(--dark-secondary-text-color));
}

.gePrintSheetTile {
	position: relative;
	height: min(48px, calc(200px / var(--ge-sheet-ratio, 0.7071)));
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.gePrintSheetTile.gePrintSheetOn {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: 2px;
}

.gePrintPaper {
	flex: 1 1 auto;
	min-width: 0;
}

@media (max-width: 699px) {
	/* The preview above the fields keeps its height: the content of the
	   dialog scrolls where the window has no room for it (the column of the
	   fields is no higher than 0 then) */
	.gePrint .gePreviewBody {
		overflow: visible;
	}

	.gePrint .gePreviewBody::before {
		display: none;
	}

	.gePrint .gePreviewPane {
		height: auto;
		min-height: 220px;
	}

	.gePrintSheet {
		width: min(100%, calc(150px * var(--ge-sheet-ratio, 0.7071)));
	}
}

/* A button that is busy (PreviewDialog.setBusy): the spinner before its
   text, it keeps its width and ignores clicks */
.geBusy {
	cursor: progress;
}

.geDialogSpinner {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 6px;
	box-sizing: border-box;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -2px;
	animation: geDialogSpin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
	.geDialogSpinner {
		animation: none;
	}
}

/* A field with an error and its message (PreviewDialog.setFieldError) */
.geDialog .geDialogFieldInvalid {
	border-color: light-dark(#c62828, #ff8a80) !important;
}

.geDialogFieldError {
	margin-top: 4px;
	font-size: 12px;
	color: light-dark(#c62828, #ff8a80);
}

/* Rename of Simple: the Message template of prompts in the Classic skin
   (MessageTemplate.js, docs/dialog-style-guide.md "Message template"): the
   headline and what the prompt acts on in the head of the Preview template,
   the field across the dialog (its label is for screen readers), the file
   types and the buttons of the dialog. The colors are those of the dialogs
   of the theme light and dark; the focus ring of the field is an outline, as
   dark mode removes shadows. Fusion has its own skin in fusion.css */
.geMessageTemplate {
	--mt-field-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--mt-field: light-dark(var(--field-color), var(--dark-field-color));
	--mt-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	line-height: normal;
}

.geMessageTemplate .geMessageLabel {
	display: none !important;
}

.geMessageTemplate .geMessageField {
	grid-column: 1 / span 2;
}

.geDialog .geMessageTemplate .geMessageField > input {
	box-sizing: border-box;
	width: 100%;
	height: 32px;
	padding: 4px 8px;
	border: 1px solid var(--mt-field-line);
	border-radius: 6px;
	background: var(--mt-field);
	font-size: 13px;
	outline: none;
}

.geDialog .geMessageTemplate .geMessageField > input:focus {
	border-color: var(--mt-accent);
	outline: 1px solid var(--mt-accent);
}

.geMessageTemplate .geMessageSubtitle {
	overflow-wrap: anywhere;
}

/* Edit Link and Save as of Simple: the Form template in the Classic skin
   (FormTemplate.js, docs/dialog-style-guide.md "Form Template"): the head of
   the Preview template, one card of rows (the kind of a link and the field
   of the chosen kind, the name, the format and the place of a file), the
   footer of the dialog. Fusion has its own skin in fusion.css */
.geFormTemplate {
	display: flex;
	flex-direction: column;
	min-height: 0;
	line-height: normal;
	white-space: normal;
}

.geFormTemplate > .geFormBody {
	flex: 0 0 auto;
	margin-bottom: 0;
}

.geFormReplaced {
	display: none !important;
}

/* The rows of a kind of link are rows of the card, with its spacing */
.geFormPanel {
	display: contents;
}

.geDialogSection > .geFormPanel > .geDialogFormRow,
.geDialogSection > .geFormPanel > .geDialogCheckRow {
	margin-top: 6px;
}

.geDialogSection > .geFormPanel:first-child > :first-child {
	margin-top: 0;
}

/* Reset of the URL: a button of 24 after the field (the cross of the
   dialog, inverted in dark mode as geAdaptiveAsset) */
.geFormLinkReset {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 18px 18px;
	cursor: pointer;
}

.geFormLinkReset:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

/* Dark mode removes the ring of focused fields (a box-shadow, see
   docs/dialog-style-guide.md "Keyboard Focus"): the fields and lists of the
   template show it as an outline */
html body.geDarkMode .geFormTemplate input:not([type="checkbox"]):focus-visible,
html body.geDarkMode .geFormTemplate select:focus-visible {
	outline: 2px solid var(--dark-focus-color);
	outline-offset: -2px;
}

/* The place of a file: the list of the dialog with the logo of the chosen
   storage inside it, the name 8 after it (as the place of New) */
.geFormPlacePick {
	position: relative;
	display: flex;
	flex: 1;
	min-width: 0;
}

.geFormPlacePick > img {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 9px;
	width: 18px;
	height: 18px;
	margin: auto 0;
	object-fit: contain;
	pointer-events: none;
}

.geDialog select.geFormPlaceSelect {
	flex: 1;
	min-width: 0;
	margin: 0;
	text-overflow: ellipsis;
}

.geDialog .geFormPlaceLogo > select.geFormPlaceSelect {
	padding-left: 34px;
}

/* New of Simple: the Browser template in the Classic skin (TemplateBrowser.js) */
.geBrowser {
	--tb-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--tb-field-line: light-dark(#00000026, #ffffff26);
	--tb-card: light-dark(var(--card-color), var(--dark-card-color));
	--tb-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--tb-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	display: flex;
	flex-direction: column;
	height: 100%;
	line-height: normal;
}

.geBrowserReplaced {
	display: none !important;
}

.geBrowser > *, .geBrowserMain > *, .geBrowserCats > * {
	flex: none;
}

.geBrowserBody {
	display: grid;
	flex: auto;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 12px 16px;
	min-height: 0;
}

.geBrowserCats, .geBrowserMain {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.geBrowserCats {
	gap: 2px;
	padding-right: 12px;
	border-right: 1px solid var(--tb-line);
	overflow: auto;
}

button.geBrowserCat {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 30px;
	padding: 0 8px;
	border: none;
	border-radius: 6px;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

button.geBrowserCat:hover, .geBrowserClear:hover {
	background: light-dark(#0000000f, #ffffff14);
}

button.geBrowserCat.geBrowserOn {
	background: color-mix(in srgb, var(--tb-accent) 16%, transparent);
	color: light-dark(var(--accent-text-color), var(--dark-strong-text-color));
	font-weight: 600;
}

button.geBrowserSub {
	padding-left: 32px;
}

/* Before the glyphs */
.geBrowser .geTemplate span {
	position: static;
	max-width: none;
	padding: 0;
	border-radius: 0;
	background: none;
	line-height: normal;
	text-align: left;
	filter: none;
}

.geBrowser span.geBrowserGlyph {
	display: inline-block;
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--ge-browser-glyph) center / contain no-repeat;
	mask: var(--ge-browser-glyph) center / contain no-repeat;
}

.geBrowser :not(.geBrowserOn) > :is(.geBrowserGlyph, .geBrowserCount),
.geBrowserPlace, .geBrowserClear, .geBrowserGrid > :not(.geTemplate) {
	color: var(--tb-text-2);
}

.geBrowserCatName {
	flex: 1;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geBrowserCount {
	font-size: 12px;
	font-weight: normal;
}

.geBrowserSearch {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	margin-bottom: 12px;
	padding: 0 4px 0 10px;
	border: 1px solid var(--tb-field-line);
	border-radius: 6px;
	background: light-dark(var(--field-color), var(--dark-field-color));
}

.geBrowserSearch:focus-within {
	border-color: var(--tb-accent);
}

.geDialog .geBrowserSearch input[type="text"] {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: none;
	background: none;
	box-shadow: none;
}

.geBrowserClear {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: none;
	cursor: pointer;
}

.geBrowserSearch input:placeholder-shown ~ .geBrowserClear {
	display: none;
}

.geBrowserStart, .geBrowserFooter, .geBrowserFile, .geBrowserTabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.geBrowser .geTemplate {
	box-sizing: border-box;
	width: auto;
	height: auto;
	margin: 0;
	border: 1px solid var(--tb-line);
	background: var(--tb-card);
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-size: 13px;
}

.geBrowser .geBrowserStartTile {
	flex: none;
	gap: 6px;
	white-space: nowrap;
	min-height: 30px;
	padding: 4px 11px;
	border-radius: 6px;
}

/* From a template: the chip of the menu with a chevron, pressed while the
   menu is open; the chosen file at the right end of the row, up to 220 wide
   with an ellipsis, and its Remove button */
.geBrowser .geBrowserStartMenu > .geBrowserGlyph:last-child {
	margin: 0 -4px 0 -2px;
}

.geBrowser .geTemplate.geBrowserStartMenu[aria-expanded="true"] {
	border-color: var(--tb-accent);
}

.geBrowser .geTemplate.geBrowserStartFile {
	min-width: 0;
	max-width: 220px;
	margin-left: auto;
}

.geBrowser .geBrowserStartFile > span.geBrowserStartFileName {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geBrowser button.geBrowserStartRemove {
	display: inline-grid;
	flex: none;
	place-items: center;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	margin: 0 -7px 0 -3px;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: none;
	color: var(--tb-text-2);
	cursor: pointer;
}

.geBrowser button.geBrowserStartRemove:hover {
	background: color-mix(in srgb, currentColor 14%, transparent);
}

.geBrowser button.geBrowserStartRemove > span.geBrowserGlyph {
	width: 14px;
	height: 14px;
}

.geBrowser button.geBrowserStartRemove:focus-visible {
	outline: 2px solid var(--tb-accent);
	outline-offset: -2px;
}

.geBrowser .geTemplate:hover, .geBrowser .geTemplate.geTemplateSelected {
	border-color: var(--tb-accent);
}

.geBrowser .geTemplate.geTemplateSelected {
	background: color-mix(in srgb, var(--tb-accent) 10%, var(--tb-card));
}

.geBrowserCat:focus-visible, .geBrowserClear:focus-visible,
.geBrowser .geTemplate:focus-visible, .geBrowser .geTemplate.geFocusRing {
	outline: 2px solid var(--tb-accent);
	outline-offset: -2px;
}

.geBrowserGrid {
	display: grid;
	flex: auto !important;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	align-content: start;
	gap: 12px;
	min-height: 0;
	margin: 4px -4px 0;
	padding: 4px;
	overflow-y: auto;
}

.geBrowserGrid > :not(.geTemplate) {
	grid-column: 1 / -1;
	padding: 0 !important;
}

.geBrowserGrid > .geTemplate {
	flex-direction: column;
	align-items: stretch;
	justify-content: start;
	padding: 6px 6px 8px;
	border-radius: 8px;
}

.geBrowserGrid > .geTemplate > :is(.geTemplatePreview, .geBrowserIcon, img:not(.geButton)),
.geBrowserGenerate > .geTemplatePreview {
	position: static;
	box-sizing: border-box;
	width: 100%;
	height: 110px;
	padding: 10px;
	border-radius: 6px;
	background-color: #fff;
	object-fit: contain;
	opacity: 1;
}

/* The pictures of templates (.geTemplatePreview.geAdaptiveAsset of
   NewDialog) keep the filter of .geDarkMode .geAdaptiveAsset, which inverts
   them with their white paper in dark mode as in the dialog of before; the
   images of hosts (photos) and the glyphs are never inverted */
.geBrowserGrid > .geTemplate > :is(.geBrowserIcon, img:not(.geButton)),
.geBrowserGrid > .geTemplate > .geTemplatePreview:not(.geAdaptiveAsset),
.geBrowserGenerate > .geTemplatePreview:not(.geAdaptiveAsset) {
	filter: none;
}

.geBrowserGrid > .geTemplate > span.geBrowserIcon {
	display: flex;
	align-items: center;
	justify-content: center;
	background: light-dark(var(--soft-color), var(--dark-soft-color));
}

.geBrowserIcon > span.geBrowserGlyph {
	width: 24px;
	height: 24px;
}

.geBrowserGrid > .geTemplate > span:not(.geBrowserIcon) {
	display: block;
	margin-top: 6px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-weight: 600;
}

.geEditor .geBrowserGrid > .geTemplate > img.geButton {
	top: 12px;
	right: 12px;
	padding: 4px;
	border: 1px solid var(--field-border-color);
	border-radius: 50%;
	filter: none;
	visibility: hidden;
}

.geEditor .geBrowserGrid > .geTemplate:is(:hover, .geTemplateSelected) > img.geButton {
	visibility: visible;
}

/* Dark mode: the large preview on the picture of a template inverts with it
   (as .geDarkMode .geButton in the dialog of before), so it is not a white
   disc on the inverted paper; on the image of a host (white paper, never
   inverted) it stays as it is */
.geDarkMode .geBrowserGrid > .geTemplate > .geTemplatePreview.geAdaptiveAsset ~ img.geButton {
	filter: invert(1);
}

.geBrowserGenerate, .geBrowserGenerate > .geGenerateDiagramForm {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 12px;
}

.geBrowserGenerate > .geTemplatePreview {
	width: 160px;
	height: 96px;
}

.geBrowserGenerate :is(.geGenerateDiagramForm, .geGenerateDiagramDescription, .geBtn, img.geButton) {
	position: static;
	margin: 0;
}

.geBrowserGenerate :is(.geGenerateDiagramForm, .geGenerateDiagramDescription) {
	flex: 1;
	box-sizing: border-box;
	height: 72px;
}

.geBrowserFooter {
	justify-content: flex-end;
	margin: 16px 0 0;
}

.geBrowserFooter .geBtn {
	margin: 0;
}

.geBrowserFile {
	flex: 1;
	margin: 0;
}

.geDialog input.geBrowserName {
	box-sizing: border-box;
	flex: 0 1 260px;
	min-width: 120px;
	height: 30px;
	padding: 4px 8px;
	border: 1px solid var(--tb-field-line);
	border-radius: 6px;
	background: light-dark(var(--field-color), var(--dark-field-color));
	outline: none;
}

.geDialog input.geBrowserName:focus {
	border-color: var(--tb-accent);
}

.geDialog select.geBrowserType {
	height: 30px;
	margin: 0;
}

/* The place of the new file: the logo of the storage and its name in a box
   of the height of the fields, with the insets of the list of several
   storages, so both show the logo and the name at the same place; the name
   is trimmed to its capitals (text-box), centered on the axis of the logo */
.geBrowserPlace {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	height: 30px;
	max-width: 100%;
	padding: 0 9px;
	font-size: 13px;
	line-height: 20px;
	white-space: nowrap;
}

.geBrowserPlace > img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.geBrowserPlaceName {
	text-box: trim-both cap alphabetic;
}

/* Several storages: the list of the dialogs with the logo of the chosen
   storage inside it, the name 8 after it */
.geBrowserPlace.geBrowserPlacePick {
	padding: 0;
}

.geBrowserPlacePick > img {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 9px;
	margin: auto 0;
	pointer-events: none;
}

.geDialog select.geBrowserPlaceSelect {
	box-sizing: border-box;
	max-width: 100%;
	height: 30px;
	margin: 0;
	padding-left: 32px;
}

.geBrowserFile > .geBrowserLinkBtn {
	flex: 0 0 auto;
}

@media (max-width: 639px) {
	.geBrowserBody {
		grid-template: auto minmax(0, 1fr) / minmax(0, 1fr);
	}

	.geBrowserCats, .geBrowserStart {
		flex-flow: row nowrap;
		padding: 0 0 6px;
		border: none;
		overflow-x: auto;
	}

	.geBrowserCats > .gePreviewSectionTitle {
		display: none;
	}

	button.geBrowserSub {
		padding-left: 8px;
	}

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

	.geBrowserGrid > .geTemplate > :is(.geTemplatePreview, .geBrowserIcon, img:not(.geButton)) {
		height: 90px;
	}

	.geBrowserFile, .geDialog input.geBrowserName {
		flex: 1 1 100%;
	}
}

/* The start screen of Simple: the storage dialog and the splash dialog on the
   layout of Fusion in the Classic skin (StartScreen.js); Fusion has its own
   skin in fusion.css */
.geStart {
	--st-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--st-card: light-dark(var(--card-color), var(--dark-card-color));
	--st-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--st-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--st-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	display: flex;
	flex-direction: column;
	line-height: normal;
	text-align: left;
}

.geStartReplaced {
	display: none !important;
}

.geStart > * {
	flex: none;
}

.geStartBody {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.geStartTiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

button.geStartTile {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	min-width: 0;
	min-height: 52px;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid var(--st-line);
	border-radius: 8px;
	background: var(--st-card);
	color: var(--st-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

button.geStartTile:hover:not([disabled]), button.geStartTile.geStartOn {
	border-color: var(--st-accent);
}

button.geStartTile.geStartOn {
	background: color-mix(in srgb, var(--st-accent) 12%, var(--st-card));
}

button.geStartTile[disabled] {
	opacity: 0.5;
	cursor: default;
}

.geStartTileIcon, .geStartRowIcon, .geStartCardIcon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--st-text-2);
}

.geStartTileIcon > img, .geStartCardIcon > img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.geStartRowIcon {
	width: 20px;
	height: 20px;
}

.geStartRowIcon > img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.geStart span.geBrowserGlyph {
	display: inline-block;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--ge-browser-glyph) center / contain no-repeat;
	mask: var(--ge-browser-glyph) center / contain no-repeat;
}

.geStartTileText, .geStartCardText {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

/* The name of a tile wraps to two lines, a word longer than the line breaks */
.geStartTileName {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow-wrap: anywhere;
	font-size: 13px;
	font-weight: 600;
}

.geStartTileHint, .geStartRowName, .geStartCardName, .geStartCardMeta {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geStartTileHint {
	font-size: 12px;
	color: var(--st-text-2);
}

/* The recent files: the names are data, one line with an ellipsis (the row
   has the name and the storage as its title) */
.geStartRecent {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.geStartRecent > .gePreviewSectionTitle {
	margin: 0 0 4px;
}

button.geStartRow {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 4px 8px;
	border: none;
	border-radius: 6px;
	background: none;
	color: var(--st-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

button.geStartRow:hover {
	background: color-mix(in srgb, var(--st-text) 7%, transparent);
}

.geStartRowName {
	flex: 1;
	min-width: 0;
}

.geStartRowHint {
	flex: none;
	max-width: 40%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* The storage of the splash dialog as a card with Change Storage */
.geStartCard {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--st-line);
	border-radius: 8px;
	background: var(--st-card);
}

.geStartCardText {
	flex: 1;
}

.geStartCardName {
	color: var(--st-text);
	font-weight: 600;
}

.geStart .geStartCard > .geBtn, .geStartFooter .geBtn {
	flex: none;
	margin: 0;
}

.geStartUser {
	display: flex;
	align-items: center;
	gap: 8px;
}

.geStartUserControl {
	flex: 1;
	min-width: 0;
}

.geStartUserControl > select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

/* The Terms of Use (text and links) and the hint for a missing Google Drive */
.geStart .geStartNotice {
	margin: 0;
	padding: 0;
	font-size: 12px;
	line-height: 16px;
	color: var(--st-text-2);
	white-space: normal;
	text-align: left;
}

.geStart a.geStartNotice, .geStart .geStartNotice a {
	color: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
}

/* Decide Later, the language and Sign out on the left, the buttons of the
   dialog on the right */
.geStartFooter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 24px;
}

.geStartTools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-right: auto;
}

/* The globe of the language menu (desktop app) as a target of 24 */
.geStart .geStartLanguage {
	width: 24px !important;
	height: 24px !important;
	border-radius: 4px;
	background-position: center !important;
	opacity: 0.6;
}

button.geStartTile:focus-visible, button.geStartRow:focus-visible, .geStart .geStartLanguage:focus-visible {
	outline: 2px solid var(--st-accent);
	outline-offset: -2px;
}

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

/* Edit Style on the Code template in the Classic skin (EditStyle.js,
   docs/dialog-style-guide.md "Edit Style"): the code with line numbers and
   colours next to the preview of the shape and the option one property per
   line, Copy Style on the left of the footer; below 640 px the preview is
   below the code. Fusion has its own skin in fusion.css (geSmCode) */
.geEditStyle, .geCodeDialog, .geEmbedResult {
	--es-line: light-dark(#00000026, #ffffff26);
	--es-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--es-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--es-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	--es-key: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
	--es-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	line-height: normal;
}

.geEditStyleHead, .geCodeHead {
	flex-shrink: 0;
	margin-bottom: 12px;
}

.geEditStyleHead > h3, .geCodeHead > h3 {
	margin-bottom: 4px;
}

.geEditStyleSubtitle, .geCodeSubtitle {
	overflow: hidden;
	text-align: center;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geEditStyleBody {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1fr) 208px;
	gap: 12px 16px;
	min-height: 0;
}

.geEditStyleEditor, .geCodeEditor {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	border: 1px solid var(--es-line);
	border-radius: 6px;
	background: light-dark(var(--field-color), var(--dark-field-color));
}

/* The ring of the focus is an outline inside the border, as dark mode
   removes the shadows (body.geDarkMode *) */
.geEditStyleEditor:focus-within, .geCodeEditor:focus-within {
	border-color: var(--es-accent);
	outline: 1px solid var(--es-accent);
	outline-offset: -2px;
}

.geEditStyleGutter, .geCodeGutter {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 40px;
	padding: 8px 8px 8px 0;
	overflow: hidden;
	border-right: 1px solid var(--es-line);
	color: var(--es-text-2);
	font-family: var(--es-mono);
	font-size: 13px;
	line-height: 20px;
	text-align: right;
	white-space: pre;
	user-select: none;
}

.geDialog .geEditStyleEditor > textarea,
.geDialog .geEditStyleEditor > textarea:focus,
.geDialog .geCodeEditor > textarea,
.geDialog .geCodeEditor > textarea:focus {
	flex: 1 1 auto;
	box-sizing: border-box;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 8px 12px 8px 8px;
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--es-text);
	font-family: var(--es-mono);
	font-size: 13px;
	line-height: 20px;
	box-shadow: none;
	outline: none;
}

/* Without line numbers (one line) the text starts at the inset */
.geEditStyleEditor:not(.geEditStyleLines) > .geEditStyleGutter,
.geCodeEditor:not(.geCodeLines) > .geCodeGutter {
	display: none;
}

.geDialog .geEditStyleEditor:not(.geEditStyleLines) > textarea,
.geDialog .geCodeEditor:not(.geCodeLines) > textarea {
	padding-left: 12px;
}

/* The colours of the code (EditStyle.addCodeColors): a layer over the text
   area shows the keys, the separators = and ; and the values, and the text
   of the text area is transparent, so its caret, selection and scrolling
   stay. Colors have swatches of 12 after their line (one property per line)
   or are underlined in their color (one line) */
.geEditStyleLayer, .geCodeLayer {
	display: none;
}

.geEditStyleColored > .geEditStyleLayer, .geCodeColored > .geCodeLayer {
	display: block;
	position: absolute;
	box-sizing: border-box;
	margin: 0;
	overflow: hidden;
	color: var(--es-text);
	pointer-events: none;
}

.geDialog .geEditStyleColored > textarea,
.geDialog .geEditStyleColored > textarea:focus,
.geDialog .geCodeColored > textarea,
.geDialog .geCodeColored > textarea:focus {
	-webkit-text-fill-color: transparent;
	caret-color: var(--es-text);
}

.geDialog .geEditStyleColored > textarea::placeholder,
.geDialog .geCodeColored > textarea::placeholder {
	-webkit-text-fill-color: currentColor;
}

.geEditStyleColored > textarea::selection, .geCodeColored > textarea::selection {
	color: transparent;
	-webkit-text-fill-color: transparent;
	background: color-mix(in srgb, var(--es-accent) 28%, transparent);
}

.geEditStyleKey, .geCodeKey {
	color: var(--es-key);
}

.geEditStyleMark, .geCodeMark, .geCodeComment {
	color: var(--es-text-2);
}

.geEditStyleColor {
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.geEditStyleSwatch {
	display: inline-block;
	position: relative;
	width: 0;
	height: 20px;
	vertical-align: top;
}

.geEditStyleSwatch > span {
	position: absolute;
	top: 4px;
	box-sizing: border-box;
	width: 12px;
	height: 12px;
	border: 1px solid light-dark(#00000040, #ffffff59);
	border-radius: 3px;
}

/* The swatches are buttons that open the color dialog (EditStyle.addSwatchButtons):
   boxes of 20 × the line around the swatches in a layer under the layer of
   the colours, clipped to the text area, whose hover, press and focus show
   around the swatch. A tap neither focuses the text area nor selects text;
   with a coarse pointer the target is 44 wide (the line limits its height) */
.geEditStyleSwatches {
	display: none;
}

.geEditStyleColored > .geEditStyleSwatches {
	display: block;
	position: absolute;
	overflow: hidden;
	overflow: clip;
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.geEditStyleSwatches > div {
	position: absolute;
	top: 0;
	left: 0;
}

.geDialog .geEditStyleSwatches button {
	position: absolute;
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	pointer-events: auto;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.geDialog .geEditStyleSwatches button:hover {
	background: color-mix(in srgb, var(--es-text) 10%, transparent);
}

.geDialog .geEditStyleSwatches button:active {
	background: color-mix(in srgb, var(--es-text) 18%, transparent);
}

.geDialog .geEditStyleSwatches button:focus-visible {
	outline: 2px solid var(--es-accent);
	outline-offset: -2px;
}

@media (pointer: coarse) {
	.geDialog .geEditStyleSwatches button::after {
		content: '';
		position: absolute;
		top: 0;
		right: -20px;
		bottom: 0;
		left: -4px;
	}

	/* A swatch after another one on its line: the target starts at its
	   button, as 4 before it would cover the end of the swatch before */
	.geDialog .geEditStyleSwatches button[data-after-swatch]::after {
		left: 0;
	}
}

/* Forced colors paint the text of the text area */
@media (forced-colors: active) {
	.geEditStyleColored > .geEditStyleLayer, .geCodeColored > .geCodeLayer,
	.geEditStyleColored > .geEditStyleSwatches {
		display: none;
	}

	.geDialog .geEditStyleColored > textarea,
	.geDialog .geEditStyleColored > textarea:focus,
	.geDialog .geCodeColored > textarea,
	.geDialog .geCodeColored > textarea:focus {
		color: CanvasText;
		-webkit-text-fill-color: CanvasText;
	}
}

.geEditStyleSide {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.geEditStylePreview {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 120px;
	padding: 8px;
	overflow: hidden;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 8px;
	background: light-dark(#ffffff, var(--dark-color));
}

.geEditStylePreview > img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.geEditStyleCaption {
	text-align: center;
}

.geEditStyleOption {
	margin-top: 6px;
}

/* Copy Style is on the left of the footer, Cancel and Apply on the right */
.geEditStyle .geBtn.geEditStyleCopy {
	margin: 0 auto 0 0;
}

@media (max-width: 639px) {
	.geEditStyleBody {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(120px, 1fr) auto;
	}

	.geEditStylePreview {
		height: 80px;
	}
}

/* The code dialogs of Classic and Simple (CodeDialogs.js, Edit Diagram and
   Insert > Mermaid, docs/dialog-style-guide.md "Code dialogs"): the head and
   the code field of Edit Style above (CodeField.js shows the line numbers
   and the colours of the lines in view), the options and the note of long
   code below the field. The colours of XML and Mermaid: names of tags and
   types of diagrams, keys (names of attributes, keywords), values (of
   attributes, strings) and marks (< / > = and quotes, arrows, brackets) and
   comments, each at least 4.5:1 on the field light and dark */
.geCodeDialog {
	--es-tag: light-dark(#a3470a, #f5a05f);
	--es-value: light-dark(#18794e, #6cc98f);
	/* The color of the errors of fields (.geDialogFieldError) */
	--es-error: light-dark(#c62828, #ff8a80);
}

.geCodeBody {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
}

.geCodeBody > .geCodeEditor {
	flex: 1 1 auto;
}

.geCodeTag {
	color: var(--es-tag);
}

.geCodeValue {
	color: var(--es-value);
}

.geCodeOptions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	min-height: 20px;
}

/* Without options and with the note hidden (Edit Diagram) no row */
.geCodeOptions:not(:has(> :not([hidden]))) {
	display: none;
}

.geCodeOptions > select {
	min-width: 140px;
}

.geCodeNote[hidden] {
	display: none;
}

.geCodeNote {
	margin-left: auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: normal;
}

/* Help and Preview on the left of the footer, the list of actions, Cancel
   and the primary action on the right */
.geCodeDialog .geCodeFooterStart {
	margin-right: auto;
}

/* Editable of From Text next to the type below the code */
.geCodeOptions > .geCodeCheck {
	min-height: 20px;
}

.geCodeFooter > .geCodeLink {
	font-size: 12px;
}

/* The live preview next to the code (CodeDialogs.js with createCodePreview
   of LayoutCode.js, the examples and the errors of CodeExamples.js; the
   dialogs of Fusion in the Classic skin, docs/dialog-style-guide.md "Code
   dialogs"): the code and its options on the left, the side on the right
   (9 of 20 parts) with the examples as small chips that wrap and the preview
   (the paper of Edit Style: white light, the dark color dark) with its
   caption; below 640 px the side is below the code and the chips scroll
   sideways in one row */
.geCodeBody.geCodeSplit {
	display: grid;
	grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
	gap: 16px;
}

.geCodeMain {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	min-height: 0;
}

.geCodeMain > .geCodeEditor {
	flex: 1 1 auto;
}

.geCodeSide {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
}

.geCodeSideHead {
	color: var(--es-text-2);
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
}

.geCodeExamples {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.geCodeChips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
}

.geCodeChip, .geCodeUndo, .geCodeErrorAction {
	box-sizing: border-box;
	margin: 0;
	font-family: inherit;
	font-size: 12px;
	line-height: 16px;
	cursor: pointer;
}

.geCodeChip {
	min-height: 24px;
	padding: 0 8px;
	border: 1px solid var(--es-line);
	border-radius: 12px;
	background: light-dark(var(--field-color), var(--dark-field-color));
	color: var(--es-text);
	white-space: nowrap;
}

.geCodeChip:hover {
	background: light-dark(var(--soft-hover-color), var(--dark-soft-hover-color));
}

/* The example that is loaded (aria-current) */
.geCodeChip.geCodeOn {
	border-color: var(--es-accent);
	color: var(--es-key);
	font-weight: 600;
}

/* Undo of an example that replaced typed code and the suggestion of an
   error: links in the accent text color */
.geCodeUndo, .geCodeErrorAction {
	min-height: 24px;
	padding: 0 4px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--es-key);
	font-weight: 600;
	text-align: left;
}

.geCodeUndo[hidden] {
	display: none;
}

.geCodeUndo:hover, .geCodeErrorAction:hover {
	text-decoration: underline;
}

.geCodeChip:focus-visible, .geCodeUndo:focus-visible, .geCodeErrorAction:focus-visible,
.geCodePaused:focus-visible {
	outline: 2px solid var(--es-accent);
	outline-offset: -2px;
}

.geCodePane {
	position: relative;
	display: flex;
	flex: 1 1 160px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 96px;
	padding: 8px;
	overflow: hidden;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 8px;
	background: light-dark(#ffffff, var(--dark-color));
}

.geCodePane > img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.geCodePaused {
	cursor: pointer;
}

/* An example in place of the preview while its chip is pointed at or has
   the focus: the edge of the pane in the accent */
.geCodePane.geCodeExample {
	border-color: var(--es-accent);
	outline: 1px solid var(--es-accent);
	outline-offset: -2px;
}

.geCodeCaption {
	flex: none;
	text-align: center;
}

/* Errors of the preview: the last image without an error dimmed (0.32,
   gray), the message in a box at the bottom of the pane (at most 4 lines),
   the line before it in the error color, a suggestion below it */
.geCodePane.geCodeStale > img {
	opacity: 0.32;
	filter: grayscale(1);
}

.geCodeError {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	display: flex;
	box-sizing: border-box;
	max-height: calc(100% - 16px);
	padding: 6px 8px;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--es-error) 45%, transparent);
	border-radius: 6px;
	background: color-mix(in srgb, var(--es-error) 10%, light-dark(var(--field-color), var(--dark-field-color)));
	color: var(--es-text);
	font-size: 12px;
	line-height: 16px;
	text-align: left;
}

.geCodeErrorBody {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.geCodeErrorText {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	white-space: normal;
	overflow-wrap: anywhere;
}

.geCodeErrorAt {
	color: var(--es-error);
	font-weight: 600;
}

.geCodeErrorAction {
	margin-left: -4px;
}

/* The line of the error in the code (CodeField setMarkedLine): a band of the
   error color behind the line and its number, the number in the error
   color */
.geCodeEditor:has(> .geCodeErrorBand) {
	isolation: isolate;
}

.geCodeErrorBand {
	position: absolute;
	left: 0;
	right: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--es-error) 14%, transparent);
	pointer-events: none;
}

.geCodeErrorNumber {
	color: var(--es-error);
	font-weight: 600;
}

@media (forced-colors: active) {
	.geCodeErrorBand {
		outline: 2px solid Highlight;
		outline-offset: -2px;
	}
}

@media (max-width: 639px) {
	/* A short window (eg. 390 × 360) scrolls the code and the preview below
	   it together above the footer: the code needs 120 px and the preview
	   120 px with the examples and the caption, more than the dialog has */
	.geCodeBody.geCodeSplit {
		display: flex;
		flex-direction: column;
		gap: 12px;
		overflow-y: auto;
	}

	.geCodeSplit > .geCodeMain {
		flex: 1 1 auto;
		min-height: 120px;
	}

	.geCodeSplit > .geCodeSide {
		flex: none;
		overflow: visible;
	}

	.geCodeSide > .geCodePane {
		flex: none;
		height: 120px;
		min-height: 0;
	}

	/* One row that scrolls sideways (room for the focus rings) */
	.geCodeChips {
		flex-wrap: nowrap;
		align-self: stretch;
		max-width: none;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.geCodeChip {
		flex: 0 0 auto;
	}
}

/* Publish > Link, Embed > IFrame, Notion, HTML, Image and SVG on the Form
   template in the Classic skin (EmbedLayout.js, docs/dialog-style-guide.md
   "Embed dialogs"): the head of the Preview template, section titles with
   cards of form rows and checkbox rows, More options as the Advanced
   section; the link or the code to embed (EmbedDialog) in a field with the
   colours of the code field, Preview, Export and Email on the left of the
   footer. Fusion has its own skin in fusion.css (geSmPublish, geSmEmbed) */
.geEmbedForm, .geEmbedResult {
	line-height: normal;
}

.geEmbedReplaced {
	display: none !important;
}

.geEmbedFormBody > .geDialogSection:last-child {
	margin-bottom: 0;
}

.geEmbedHead > .gePreviewSubtitle {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geEmbedControl {
	display: flex;
	flex: 1;
	align-items: center;
	min-width: 0;
	column-gap: 8px;
}

.geEmbedControl > select,
.geEmbedControl > input[type="text"],
.geEmbedControl > input[type="number"] {
	flex: 1;
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
}

/* The section title names the only row of the section */
.geEmbedRowGroup > .geDialogFormLabel {
	display: none;
}

.geEmbedColorRow .geEmbedControl > * {
	flex: none;
}

/* The hint of a checkbox below its label */
.geEmbedHint {
	display: block;
	margin-top: 2px;
	cursor: default;
}

.geEmbedForm .geDialogCheckRow:has(.geEmbedHint) {
	align-items: flex-start;
	padding: 2px 0;
}

.geEmbedForm .geDialogCheckRow:has(.geEmbedHint) input {
	margin-top: 2px;
}

/* Edit: the checkbox and what it opens */
.geEmbedEdit > .geDialogFormLabel input {
	margin: 0 8px 0 0;
}

.geEmbedEdit > select {
	margin-left: 8px;
	flex: 1;
	min-width: 0;
	max-width: none !important;
}

/* Dark mode removes the shadows (body.geDarkMode *): the lists and fields of
   the form show the ring of the focus as an outline */
.geDarkMode .geEmbedForm :is(select, input[type="text"], input[type="number"]):focus {
	outline: 1px solid var(--dark-focus-color);
	outline-offset: 0;
}

/* The option below the one before it */
.geDialogCheckRow.geEmbedSub {
	padding-left: 24px;
}

.geEmbedShare {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
}

.geEmbedShare > .geBtn {
	margin: 0;
}

/* The footer: help, the link to the extension of Notion and the actions of
   the result on the left, Cancel and the primary action on the right */
.geEmbedButtons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	row-gap: 8px;
	margin-top: 16px;
	white-space: normal !important;
}

.geEmbedButtons > .geEmbedFooterLink {
	margin-right: auto;
	font-size: 12px;
}

.geEmbedButtons > .geHelpIcon:not(:has(~ .geEmbedFooterLink, ~ .geEmbedTertiary)) {
	margin-right: auto;
}

.geEmbedButtons > .geEmbedTertiary {
	margin-left: 0;
	margin-right: 8px;
}

.geEmbedButtons > .geEmbedTertiary:not(:has(~ .geEmbedTertiary)) {
	margin-right: auto;
}

/* The field of the link or the code takes the rest of the height */
.geEmbedField {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	border: 1px solid var(--es-line);
	border-radius: 6px;
	background: light-dark(var(--field-color), var(--dark-field-color));
}

.geEmbedField:focus-within {
	border-color: var(--es-accent);
	outline: 1px solid var(--es-accent);
	outline-offset: -2px;
}

.geDialog .geEmbedField > textarea,
.geDialog .geEmbedField > textarea:focus {
	flex: 1 1 auto;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 8px 12px;
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--es-text);
	font-family: var(--es-mono);
	font-size: 13px;
	line-height: 20px;
	box-shadow: none;
	outline: none;
}

/* What Copy did, at the bottom of the field */
.geEmbedStatus {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 4px 8px;
	border-radius: 4px;
	background: light-dark(#1f1f1f, #f0f0f0);
	color: light-dark(#ffffff, #1f1f1f);
	font-size: 12px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s;
}

.geEmbedStatus.geEmbedStatusOn {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.geEmbedStatus {
		transition: none;
	}
}

/* Insert › Image and Edit Image of Simple: the layout of Fusion in the Classic
   skin (ImageDialog.createLayout in diagramly/Dialogs.js, the feature
   imageDialog): the drop zone, the URL with Reset, the preview that keeps its
   place and the footer with Crop and Embed on the left. Fusion has its own
   skin in fusion.css */
.geImageDlg {
	--id-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--id-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--id-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	padding-bottom: 10px;
	line-height: normal;
}

.geImageDlgReplaced {
	display: none !important;
}

.geImageDlgDrop {
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	min-height: 64px;
	margin-bottom: 12px;
	padding: 11px 15px;
	border: 1px dashed light-dark(var(--strong-border-color), var(--dark-strong-border-color));
	border-radius: 8px;
	background: light-dark(rgba(0, 0, 0, 0.035), rgba(255, 255, 255, 0.05));
}

.geImageDlgDropIcon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: light-dark(var(--card-color), var(--dark-card-color));
	color: var(--id-text-2);
}

.geImageDlg span.geImageDlgGlyph {
	display: inline-block;
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--ge-image-glyph) center / contain no-repeat;
	mask: var(--ge-image-glyph) center / contain no-repeat;
}

.geImageDlgDropText {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--id-text-2);
}

.geDialog .geImageDlgDrop > .geBtn {
	flex: none;
	margin: 0;
}

.geImageDlgUrl > .geDialogFormLabel {
	min-width: 0;
}

.geImageDlgControl {
	display: flex;
	flex: 1;
	align-items: center;
	min-width: 0;
	column-gap: 4px;
}

.geImageDlgClear {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: none;
	color: var(--id-text-2);
	cursor: pointer;
}

.geImageDlgClear:hover {
	background: light-dark(#0000000f, #ffffff14);
}

.geImageDlgClear:focus-visible {
	outline: 2px solid var(--id-accent);
	outline-offset: -2px;
}

.geImageDlg .geImageDlgClear > span.geImageDlgGlyph {
	width: 16px;
	height: 16px;
}

.geImageDlgPreview {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 160px;
	margin-top: 12px;
	padding: 8px;
	border: 1px solid var(--id-line);
	border-radius: 8px;
	background: light-dark(#ffffff, var(--dark-color));
	overflow: hidden;
}

.geImageDlgPreview > img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.geImageDlgEmpty {
	display: none;
	color: var(--id-text-2);
}

.geImageDlgPreview.geImageDlgIsEmpty > img {
	display: none;
}

.geImageDlgPreview.geImageDlgIsEmpty > .geImageDlgEmpty {
	display: block;
}

.geImageDlgFooter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 34px;
}

.geImageDlgTools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-right: auto;
}

.geDialog .geImageDlgFooter .geBtn {
	margin: 0;
}

/* Crop of Simple (Edit › Crop and the crop step of the image dialog): the
   layout of Fusion in the Classic skin (CropImageDialog.createLayout in
   diagramly/Dialogs.js, the feature cropDialog) on the Preview template
   (.gePreviewTemplate): the picture with the crop handles and its tools on
   the left, Shape, Aspect ratio and Area in cards on the right, Reset on the
   left of the footer. Fusion has its own skin in fusion.css */
.geCropDlg {
	--cd-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--cd-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--cd-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	box-sizing: border-box;
	padding-bottom: 10px;
}

.geCropDlgReplaced {
	display: none !important;
}

/* The picture fills the pane (the editor of the dialog scrolls in it) */
.geCropDlg .gePreviewPane.geCropDlgPane {
	min-height: 320px;
	padding: 0;
}

/* The editor ends above the strip of the tools, so that the tools never
   cover the picture or a handle of the crop (the fit of the dialog fits the
   picture into the editor) */
.geCropDlg .geCropDlgCanvas {
	position: absolute;
	inset: 0 0 42px 0;
	border-radius: 8px 8px 0 0;
}

.geCropDlgCanvas:focus-visible {
	outline: 2px solid var(--cd-accent);
	outline-offset: -2px;
}

/* The tools in the strip under the picture */
.geCropDlgTools {
	position: absolute;
	right: 8px;
	bottom: 4px;
	display: flex;
	gap: 2px;
	padding: 2px;
	border: 1px solid var(--cd-line);
	border-radius: 6px;
	background: light-dark(var(--card-color), var(--dark-card-color));
}

.geCropDlgTool {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: none;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	cursor: pointer;
}

.geCropDlgTool:hover {
	background: light-dark(#0000000f, #ffffff14);
}

.geCropDlgTool:focus-visible {
	outline: 2px solid var(--cd-accent);
	outline-offset: -2px;
}

.geCropDlg span.geCropDlgGlyph {
	display: inline-block;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--ge-crop-glyph) center / contain no-repeat;
	mask: var(--ge-crop-glyph) center / contain no-repeat;
}

/* The corners: the slider of the browser in the accent color */
.geCropDlgSlider {
	flex: 1;
	min-width: 0;
	margin: 0;
	accent-color: var(--cd-accent);
}

.geCropDlgSlider:focus-visible {
	outline: 2px solid var(--cd-accent);
	outline-offset: 2px;
}

/* The corners of a crop that is not rounded */
.geCropDlgDisabled > .geDialogFormLabel {
	opacity: 0.5;
}

.geCropDlgSlider:disabled {
	opacity: 0.5;
}

/* Two fields and their unit in a row (Position, Size) */
.geCropDlg .gePreviewControl {
	flex-wrap: nowrap;
}

.geCropDlg .gePreviewControl > input[type="text"] {
	width: 0;
}

.geCropDlgUnit {
	flex: none;
	color: var(--cd-text-2);
}

.geCropDlgFooter {
	display: flex;
	flex-shrink: 0;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 34px;
}

.geDialog .geCropDlgFooter .geBtn {
	margin: 0;
}

.geDialog .geCropDlgFooter .geCropDlgReset {
	margin-right: auto;
}

@media (max-width: 699px) {
	.geCropDlg .gePreviewPane.geCropDlgPane {
		min-height: 0;
		height: 262px;
	}
}

/* Data Sources of Simple on the layout of Fusion in the Classic skin (DataSourcesLayout.js);
   Fusion has its own skin in fusion.css */
.geDataSources, .geDataSourceForm {
	--ds-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--ds-card: light-dark(var(--card-color), var(--dark-card-color));
	--ds-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--ds-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--ds-tile: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.08));
	--ds-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	line-height: normal;
}

.geDataSourcesReplaced {
	display: none !important;
}

/* The headline and the page (or the file) below it */
.geDataSourcesHead {
	flex: none;
	min-width: 0;
	margin-bottom: 16px;
	text-align: center;
}

.geDialog .geDataSourcesHead > h3 {
	margin: 0 0 4px;
}

.geDataSourcesHead > .geDialogHint {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.geDataSourcesIntro {
	margin: 0 0 12px;
}

/* The sources as rows on the cards of the theme */
.geDataSourcesList {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.geDataSourcesRow {
	box-sizing: border-box;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--ds-line);
	border-radius: 8px;
	background: var(--ds-card);
	color: var(--ds-text);
}

.geDataSourcesItem {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.geDataSourcesIcon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--ds-tile);
	color: var(--ds-text-2);
}

.geDataSourcesIcon > span.geBrowserGlyph {
	display: inline-block;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--ge-browser-glyph) center / contain no-repeat;
	mask: var(--ge-browser-glyph) center / contain no-repeat;
}

.geDataSourcesText {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.geDataSourcesTitle {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}

.geDataSourcesName {
	flex: 0 1 auto;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
	color: var(--ds-text);
}

/* The name selects the shapes of the source (a button with the look of the name) */
.geDataSources button.geDataSourcesSelect {
	box-sizing: border-box;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 2px;
	background: none;
	box-shadow: none;
	font: inherit;
	font-weight: 600;
	line-height: normal;
	text-align: left;
	cursor: pointer;
}

.geDataSources button.geDataSourcesSelect:hover {
	text-decoration: underline;
}

.geDataSources button.geDataSourcesSelect:focus-visible {
	outline: 2px solid var(--ds-accent);
	outline-offset: 2px;
}

.geDataSourcesUrl {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	color: var(--ds-text-2);
}

.geDataSourcesInfo {
	overflow-wrap: anywhere;
}

.geDataSourcesRow .geDataSourcesError {
	color: light-dark(var(--error-color), var(--dark-error-color));
}

/* Refresh, Edit and Delete: the images of before on targets of 28 */
.geDataSourcesActions {
	display: flex;
	flex: none;
	gap: 4px;
}

.geDataSources button.geDataSourcesIconBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 28px;
	min-width: 0;
	height: 28px;
	margin: 0;
	padding: 0;
}

.geDataSourcesIconBtn > img {
	width: 16px;
	height: 16px;
}

.geDataSourcesAdd {
	margin-top: 12px;
}

.geDataSourcesAdd > .geBtn {
	margin: 0;
}

/* The form of a source: the labels in a column, the controls next to them */
.geDataSourceSection {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.geDataSourceSection + .geDataSourceSection {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--ds-line);
}

.geDataSourceRow {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	min-height: 28px;
}

.geDataSourceRowTop {
	align-items: flex-start;
}

.geDataSourceLabel {
	flex: none;
	width: 110px;
	color: var(--ds-text);
}

.geDataSourceRowTop > .geDataSourceLabel {
	padding-top: 6px;
}

.geDataSourceControl {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.geDataSourceControl > input[type="text"], .geDataSourceControl > select {
	flex: 1 1 160px;
	box-sizing: border-box;
	min-width: 0;
	height: 28px;
	margin: 0;
}

.geDataSourceUrlRow > .geBtn {
	flex: none;
	margin: 0;
}

/* The hints of the link line up with the controls */
.geDataSourceSection > .geDataSourceHint {
	margin-left: 122px;
}

.geDataSourceState:empty {
	display: none;
}

.geDataSourceColumns {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 4px 14px;
	min-width: 0;
	padding-top: 6px;
	color: var(--ds-text);
}

.geDataSourceShapes > .geDataSourceCount {
	flex: none;
	margin-left: auto;
	white-space: nowrap;
}

.geDataSourceTemplate {
	box-sizing: border-box;
	width: 100%;
	font-family: monospace;
	font-size: 12px;
	white-space: pre-wrap;
	resize: vertical;
}

.geDataSourceControl .geDataSourceHint {
	margin-top: 4px;
}

.geDataSourceApply {
	gap: 6px;
	margin-top: 6px;
}

/* The first rows of the preview */
.geDataSourceTable {
	max-height: 140px;
	margin-top: 8px;
	overflow: auto;
	border: 1px solid var(--ds-line);
	border-radius: 6px;
	color: var(--ds-text);
}

.geDataSourceTable > table {
	border-collapse: collapse;
	white-space: nowrap;
	font-size: 12px;
}

.geDataSourceTable:focus-visible {
	outline: 2px solid var(--ds-accent);
	outline-offset: -2px;
}

.geDataSourceConsent {
	margin-top: 12px;
}

/* Phones: the link below the name, the labels above the controls */
@media (max-width: 639px) {
	.geDataSourcesTitle {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.geDataSourcesName {
		max-width: none;
	}

	.geDataSourceRow {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.geDataSourceLabel {
		width: auto;
	}

	.geDataSourceRowTop > .geDataSourceLabel {
		padding-top: 0;
	}

	.geDataSourceSection > .geDataSourceHint {
		margin-left: 0;
	}
}


/* Layout Settings and the options of the layouts of Simple on the layout of Fusion in the Classic skin (LayoutForms.js);
   Fusion has its own skin in fusion.css */
/* The options of a layout (.geLayoutForms): the head of the Preview
   template, the sections as cards with a title, the fields in a grid of two
   columns with their labels above, the options of yes or no as checkbox rows
   below; the content of the dialog of before stays hidden (its controls
   moved). Layout Settings (.geLayoutFormsSettings) gets the head. The focus
   rings are outlines, which dark mode keeps (it removes the box shadows) */
.geLayoutFormsReplaced {
	display: none !important;
}

.geLayoutFormsBody {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	line-height: normal;
}

.geLayoutFormsBody > .geDialogSection:last-child {
	margin-bottom: 0;
}

.geLayoutFormsFields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 12px;
	row-gap: 8px;
}

.geLayoutFormsFields + .geDialogCheckRow,
.geDialogCheckRow + .geLayoutFormsFields {
	margin-top: 8px;
}

.geLayoutFormsField {
	display: flex;
	flex-direction: column;
	row-gap: 4px;
	min-width: 0;
}

.geLayoutFormsWide {
	grid-column: 1 / -1;
}

.geLayoutFormsField > label {
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
}

.geDialog .geLayoutFormsField > input,
.geDialog .geLayoutFormsField > select {
	width: 100%;
	min-width: 0;
	height: 28px;
	margin: 0;
	box-sizing: border-box;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
}

.geDialog .geLayoutFormsField > input::placeholder {
	color: light-dark(#5f5f63, var(--dark-secondary-text-color));
	opacity: 1;
}

/* The subtitle of the options of a layout is a name in one line (its title
   has all of it); Layout Settings has a sentence, which wraps */
.geLayoutForms > .geLayoutFormsHead > .gePreviewSubtitle {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.geLayoutFormsSettings .geLayoutFormsHead {
	margin-bottom: 12px;
}

.geDialog .geLayoutForms .geLayoutFormsField > input:focus-visible,
.geDialog .geLayoutForms .geLayoutFormsField > select:focus-visible,
.geDialog .geLayoutFormsSettings .geLayoutForm input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.geDialog .geLayoutFormsSettings .geLayoutForm select:focus-visible,
.geDialog .geLayoutFormsSettings .geLayoutForm textarea:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

.geLayoutForms .geDialogCheckRow > input[type="checkbox"]:focus-visible,
.geLayoutFormsSettings .geLayoutForm input[type="checkbox"]:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: 1px;
}


/* Custom layout and Edit Outline of Simple on the layout of Fusion in the Classic skin (LayoutCode.js);
   Fusion has its own skin in fusion.css */
/* The Code template of the custom layout and Edit Outline
   (docs/dialog-style-guide.md "Custom Layout and Edit Outline"): the head,
   the code with line numbers and its status on the left, the side with the
   layouts to add or the preview and the hints on the right (208), the
   footer of the dialog below; below 600 px the side is below the code */
.geLayoutCode {
	--lc-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--lc-card: light-dark(var(--card-color), var(--dark-card-color));
	--lc-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--lc-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--lc-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	--lc-hover: light-dark(var(--soft-hover-color), var(--dark-soft-hover-color));
	height: 100%;
	box-sizing: border-box;
	padding-bottom: 0 !important;
	line-height: normal;
	text-align: left;
}

.geLayoutCodeReplaced {
	display: none !important;
}

.geLayoutCodeHead {
	flex: none;
	margin-bottom: 12px;
}

.geDialog .geLayoutCodeHead h3 {
	text-align: left;
	margin: 0;
}

.geLayoutCodeSubtitle {
	margin-top: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.geLayoutCodeBody {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 208px;
	gap: 16px;
	flex: 1 1 auto;
	min-height: 0;
}

.geLayoutCodeColumn {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.geLayoutCodeField {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	border: 1px solid var(--lc-line);
	border-radius: 4px;
	background: var(--lc-card);
	overflow: hidden;
}

.geLayoutCodeGutter {
	flex: none;
	width: 40px;
	padding: 8px 8px 8px 0;
	box-sizing: border-box;
	border-right: 1px solid var(--lc-line);
	color: var(--lc-text-2);
	font: 12px/18px monospace;
	text-align: right;
	white-space: pre;
	overflow: hidden;
	user-select: none;
}

.geLayoutCodeField textarea {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 8px;
	box-sizing: border-box;
	border: 0;
	border-radius: 0 4px 4px 0;
	background: transparent;
	color: var(--lc-text);
	font: 12px/18px monospace;
	white-space: pre;
	overflow: auto;
	resize: none;
}

.geLayoutCode textarea:focus-visible, .geLayoutCode select:focus-visible,
.geLayoutCode button:focus-visible, .geLayoutCodePaused:focus-visible,
.geLayoutCodeSide:focus-visible {
	outline: 2px solid var(--lc-accent);
	outline-offset: -2px;
}

.geLayoutCodeStatus {
	flex: none;
	min-height: 16px;
	margin-top: 6px;
	color: light-dark(var(--error-color), var(--dark-error-color));
	font-size: 12px;
	line-height: 16px;
	overflow-wrap: anywhere;
}

.geLayoutCodeSide {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
	overflow-y: auto;
}

.geLayoutCodeSectionHead {
	flex: none;
	color: var(--lc-text-2);
	font-size: 12px;
	font-weight: 600;
}

.geLayoutCodeList {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.geLayoutCodeChoice {
	flex: none;
	min-height: 28px;
	padding: 0 8px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--lc-text);
	font: inherit;
	font-size: 13px;
	text-align: left;
	cursor: pointer;
}

.geLayoutCodeChoice:hover {
	background: var(--lc-hover);
}

.geLayoutCodeChoice.geLayoutCodeOn {
	font-weight: 600;
}

.geLayoutCodeSide > select {
	width: 100%;
}

.geLayoutCodePreviewSide {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: none;
}

.geLayoutCodePane {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 160px;
	padding: 8px;
	box-sizing: border-box;
	border: 1px solid var(--lc-line);
	border-radius: 4px;
	background: var(--lc-card);
	overflow: hidden;
}

.geLayoutCodePane img {
	max-width: 100%;
	max-height: 100%;
}

.geLayoutCodePaused {
	cursor: pointer;
}

.geLayoutCodeCaption, .geLayoutCodeHint {
	color: var(--lc-text-2);
	font-size: 12px;
	line-height: 16px;
}

.geLayoutCodeFooter {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: flex-end;
	margin-top: 16px;
	white-space: nowrap;
}

.geLayoutCodeCopy {
	margin-right: auto !important;
}

@media (max-width: 600px) {
	.geLayoutCodeBody {
		display: flex;
		flex-direction: column;
	}

	.geLayoutCodeColumn {
		flex: 1 1 auto;
		min-height: 120px;
	}

	.geLayoutCodeSide {
		flex: 0 1 auto;
		max-height: 40%;
	}
}

/* Keyboard Shortcuts of Simple on the layout of Fusion in the Classic skin (ShortcutsSheet.js);
   Fusion has its own skin in fusion.css */
.geDialog > .geShortcutsDialog {
	height: 100%;
}

.geShortcuts {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	box-sizing: border-box;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-size: 13px;
	line-height: 1.4;
}

.geDialog .geShortcuts input.geShortcutsSearch {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 100%;
	height: 32px;
	margin: 0 0 12px;
	padding: 0 10px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 6px;
	background-color: light-dark(var(--field-color), var(--dark-field-color));
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-size: 13px;
	outline: none;
}

.geShortcuts input.geShortcutsSearch::placeholder {
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	opacity: 1;
}

.geDialog .geShortcuts input.geShortcutsSearch:focus-visible,
.geShortcutsBody:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

.geShortcutsBody {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.geShortcutsSection + .geShortcutsSection {
	margin-top: 16px;
}

.geShortcutsList {
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 8px;
	background-color: light-dark(var(--card-color), var(--dark-card-color));
	overflow: hidden;
}

.geShortcutRow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 32px;
	padding: 4px 10px;
	box-sizing: border-box;
}

.geShortcutRow + .geShortcutRow {
	border-top: 1px solid light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.08));
}

.geShortcutLabel {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* The keys in a key cap, readable light and dark */
.geShortcutKeys {
	flex: 0 0 auto;
	padding: 1px 6px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 4px;
	background-color: light-dark(var(--soft-color), var(--dark-field-color));
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-size: 12px;
	white-space: nowrap;
}

.geShortcutsEmpty {
	padding: 24px 0;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	text-align: center;
}

/* Drafts and Recovery of Simple on the layout of Fusion in the Classic skin (DraftLayout.js);
   Fusion has its own skin in fusion.css */
.geDraftLayout {
	--dl-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--dl-card: light-dark(var(--card-color), var(--dark-card-color));
	--dl-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--dl-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--dl-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	line-height: normal;
	text-align: left;
	color: var(--dl-text);
}

.geDraftLayoutReplaced {
	display: none !important;
}

.geDraftLayoutHead {
	flex: none;
}

.geDraftLayoutBody {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	min-height: 0;
}

.geDraftLayoutMessage {
	flex: none;
	overflow-wrap: anywhere;
	font-size: 14px;
	line-height: 20px;
	color: var(--dl-text-2);
}

/* The preview: the graph of the dialog or the picture of a candidate below
   the badge Preview (12 + 20 + 8) */
.geDraftLayoutPane {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 0;
	min-height: 0;
	padding: 40px 12px 12px 12px;
	border: 1px solid var(--dl-line);
	border-radius: 8px;
	background: var(--dl-card);
}

.geDraftLayoutPane > .geDraftLayoutGraph {
	inset: 40px 12px 12px 12px;
	overflow: hidden;
	border-radius: 4px;
	outline: 1px solid var(--dl-line);
	outline-offset: -1px;
}

.geDraftLayoutBadge {
	position: absolute;
	top: 12px;
	left: 12px;
	box-sizing: border-box;
	max-width: calc(100% - 24px);
	height: 20px;
	padding: 0 8px;
	overflow: hidden;
	border: 1px solid var(--dl-line);
	border-radius: 999px;
	font-size: 12px;
	line-height: 18px;
	color: var(--dl-text-2);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geDraftLayoutImage {
	max-width: 100%;
	max-height: 100%;
	min-height: 0;
	object-fit: contain;
}

/* A picture of Recovery above the budget of the live previews: the pane is a
   button that draws it */
.geDraftLayoutPanePaused {
	cursor: pointer;
}

.geDraftLayoutPanePaused:focus-visible {
	outline: 2px solid var(--dl-accent);
	outline-offset: -2px;
}

.geDraftLayoutPaused {
	font-size: 12px;
	line-height: 16px;
	color: var(--dl-text-2);
	text-align: center;
}

/* The zoom buttons and the page of the draft below the preview */
.geDraftLayoutTools {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	min-height: 30px;
}

.geDraftLayoutTools > * {
	margin: 0;
}

.geDraftLayoutTools > select {
	max-width: 200px;
}

/* Several drafts and Recovery: the choices 200 wide next to the preview */
.geDraftLayoutSplit {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 16px;
	min-height: 0;
}

.geDraftLayoutMain {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	min-height: 0;
}

/* The choices (a listbox): rows of at least 52, the padding of 4 keeps the
   focus rings inside the scroller */
.geDraftLayoutList {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 0;
	margin: -4px;
	padding: 4px;
	overflow-y: auto;
}

.geDraftLayoutRow {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 52px;
	padding: 7px 11px;
	border: 1px solid var(--dl-line);
	border-radius: 8px;
	background: var(--dl-card);
	color: var(--dl-text);
	cursor: pointer;
}

.geDraftLayoutRow:hover {
	border-color: color-mix(in srgb, var(--dl-accent) 50%, var(--dl-line));
}

.geDraftLayoutRow.geDraftLayoutOn {
	border-color: var(--dl-accent);
	background: color-mix(in srgb, var(--dl-accent) 12%, var(--dl-card));
}

.geDraftLayoutRow:focus-visible {
	outline: 2px solid var(--dl-accent);
	outline-offset: -2px;
}

.geDraftLayoutText {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.geDraftLayoutName {
	overflow-wrap: anywhere;
	font-size: 14px;
	line-height: 20px;
}

.geDraftLayoutOn .geDraftLayoutName {
	font-weight: 600;
}

.geDraftLayoutHint {
	overflow-wrap: anywhere;
	font-size: 12px;
	line-height: 16px;
	color: var(--dl-text-2);
}

.geDraftLayoutRowBadge {
	flex: none;
	padding: 0 6px;
	border: 1px solid var(--dl-line);
	border-radius: 999px;
	font-size: 12px;
	line-height: 18px;
	color: var(--dl-text-2);
}

/* The footer: Discard, Ignore and Delete All on the left, Cancel and the
   primary action on the right */
.geDraftLayoutBody + div {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}

.geDraftLayoutStart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-right: auto;
}

.geDraftLayoutBody + div .geBtn {
	margin: 0;
}

.geDraftLayoutBody + div .geBtn:focus-visible {
	outline: 2px solid var(--dl-accent);
	outline-offset: -2px;
}

/* Small windows: the preview on top, the choices below it, the body scrolls */
@media (max-width: 639px) {
	.geDraftLayoutBody {
		overflow-y: auto;
	}

	.geDraftLayoutSplit {
		display: flex;
		flex: none;
		flex-direction: column;
	}

	.geDraftLayoutSplit > .geDraftLayoutMain,
	.geDraftLayoutSplit > .geDraftLayoutPane {
		order: -1;
	}

	.geDraftLayoutSplit .geDraftLayoutPane,
	.geDraftLayoutBody > .geDraftLayoutPane {
		flex: none;
		min-height: 200px;
	}

	.geDraftLayoutList {
		overflow: visible;
	}
}

/* My diagrams of Google Drive of Simple on the layout of Fusion in the Classic skin (HomeDialog.js);
   Fusion has its own skin in fusion.css */
.geHome.geHomeLayout .geHomeLayoutReplaced {
	display: none;
}

/* The headline of the dialogs with the storage below it */
.geHome.geHomeLayout .geHomeLayoutHead {
	flex: 0 0 auto;
	margin-bottom: 16px;
	text-align: center;
}

.geDialog .geHome.geHomeLayout .geHomeLayoutHead > h3 {
	margin: 0 0 4px;
}

.geHome.geHomeLayout .geHomeLayoutSub {
	font-size: 12px;
	color: light-dark(#5f5f63, var(--dark-secondary-text-color));
}

/* The search with its glyph, Grid or List after it */
.geHome.geHomeLayout .geHomeLayoutSearch {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 8px;
	min-width: 0;
	height: 32px;
	padding: 0 10px;
	box-sizing: border-box;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 6px;
	background: light-dark(var(--field-color), var(--dark-field-color));
	color: light-dark(#5f5f63, var(--dark-secondary-text-color));
}

.geHome.geHomeLayout .geHomeLayoutSearch:focus-within {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

.geHome.geHomeLayout span.geHomeLayoutGlyph {
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--ge-home-glyph) center / contain no-repeat;
	mask: var(--ge-home-glyph) center / contain no-repeat;
}

.geHome.geHomeLayout .geHomeLayoutSearch input.geHomeSearch,
.geHome.geHomeLayout .geHomeLayoutSearch input.geHomeSearch:focus {
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
	height: 100%;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
}

.geHome.geHomeLayout .geHomeLayoutSearch input.geHomeSearch::placeholder {
	color: light-dark(#5f5f63, var(--dark-secondary-text-color));
	opacity: 1;
}

.geDialog .geHome.geHomeLayout select.geHomeLayoutSelect {
	flex: 0 0 auto;
	height: 32px;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
}

.geDialog .geHome.geHomeLayout select.geHomeLayoutSelect:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
	box-shadow: none;
}

/* The views and the diagrams with the focus rings inside */
.geHome.geHomeLayout .geHomeNavItem,
.geHome.geHomeLayout .geHomeCard {
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
}

.geHome.geHomeLayout .geHomeNavItem:focus-visible,
.geHome.geHomeLayout .geHomeCard:focus-visible {
	outline-offset: -2px;
}

/* The rings are inside, so the views need no room around them (it would
   widen the dialog on phones, where they are a row) */
.geHome.geHomeLayout .geHomeNav {
	margin: 0;
	padding: 0;
}

/* Narrow dialogs: the search and Grid or List in one row, the views wrap
   (as the chips of Fusion on phones) */
.geHome.geHomeLayout.geHomeNarrow .geHomeHeader {
	flex-wrap: nowrap;
}

.geHome.geHomeLayout.geHomeNarrow .geHomeLayoutSearch {
	flex-basis: 0;
}

.geHome.geHomeLayout.geHomeNarrow .geHomeNav {
	flex-wrap: wrap;
	overflow-x: visible;
}

.geHome.geHomeLayout .geHomeCard.geHomeAddCard {
	color: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
}

/* The footer: who is signed in on the left, New Diagram on the right */
.geHome.geHomeLayout .geHomeLayoutFooter {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 12px;
	padding-top: 16px;
}

.geHome.geHomeLayout .geHomeLayoutFooter > .geHomeNavFooter {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.geHome.geHomeLayout .geHomeLayoutFooter > .geHomeNewButton {
	margin-left: auto;
}

/* List: the diagrams as rows with a small picture */
.geHome.geHomeLayoutList .geHomeGrid,
.geHome.geHomeLayoutList.geHomeNarrow .geHomeGrid {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.geHome.geHomeLayoutList .geHomeCard {
	flex: 0 0 auto;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 7px 11px 7px 7px;
	border-radius: 8px;
}

.geHome.geHomeLayoutList .geHomeCard.geHomeAddCard {
	justify-content: flex-start;
	min-height: 56px;
	padding-left: 23px;
	text-align: left;
}

.geHome.geHomeLayoutList .geHomeThumb {
	flex: 0 0 auto;
	width: 56px;
	height: 40px;
	border-radius: 4px;
}

.geHome.geHomeLayoutList .geHomeThumb img.geHomePlaceholder {
	width: 24px;
	height: 24px;
}

.geHome.geHomeLayoutList .geHomeCardText {
	flex: 1 1 auto;
	padding: 0;
}

/* The library editor of Fusion in the Classic skin (LibraryLayout.js,
   the row libraryDialog of Editor.featureDefaults) */
.geLibEditor {
	--le-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--le-card: light-dark(var(--card-color), var(--dark-card-color));
	--le-field: light-dark(var(--field-color), var(--dark-field-color));
	--le-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--le-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--le-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	line-height: normal;
	text-align: left;
	color: var(--le-text);
}

.geLibEditorReplaced {
	display: none !important;
}

/* The headline of the dialogs and the storage in gray below it */
.geLibEditorHead {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin-bottom: 16px;
}

.geDialog .geLibEditorHead > h3 {
	margin: 0;
}

.geLibEditorPlace {
	font-size: 12px;
	line-height: 16px;
	color: var(--le-text-2);
}

/* The name and Compressed in a row that wraps */
.geLibEditor .geLibEditorName {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 16px;
	row-gap: 6px;
}

.geLibEditorNameRow {
	display: flex;
	flex: 1 1 320px;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 28px;
}

.geLibEditorLabel {
	flex: none;
	color: var(--le-text);
}

.geLibEditor .geLibEditorNameRow > input[type="text"] {
	flex: 1 1 auto;
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
}

.geLibEditorOption {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 28px;
}

.geLibEditorOption > input[type="checkbox"] {
	margin: 0;
}

/* The hint, Import and Add Images above the grid */
.geLibEditorBar {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0 8px 0;
}

.geLibEditor .geLibEditorBar > .geBtn {
	margin: 0;
}

.geLibEditorHint {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 12px;
	line-height: 16px;
	color: var(--le-text-2);
}

/* The shapes as cards of at least 136 in a grid (gap 10, inset 10) with a
   border, dashed while the library is empty, and its hint over it */
.geLibEditorArea {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
}

.geLibEditor .geLibEditorGrid {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
	align-content: start;
	gap: 10px;
	margin: 0 !important;
	padding: 10px;
	border: 1px solid var(--le-line) !important;
	border-radius: 8px !important;
	background: transparent !important;
}

.geLibEditorArea:has(> .geLibEditorEmpty:not([style*="none"])) > .geLibEditorGrid {
	border-style: dashed !important;
}

/* An entry: the picture of 100, its name, Delete at the top right */
.geLibEditor .geLibEditorGrid > .geLibEditorItem {
	position: relative;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	min-width: 0;
	margin: 0 !important;
	padding: 10px 10px 6px 10px !important;
	border: 1px solid var(--le-line);
	border-radius: 8px;
	background: var(--le-card) !important;
	color: var(--le-text);
}

.geLibEditor .geLibEditorItem > img:not(.geLibEditorReplaced) {
	box-sizing: border-box;
	width: 100px !important;
	height: 100px !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: contain;
}

.geLibEditor .geLibEditorItem > svg,
.geLibEditor .geLibEditorItem > div:not(.geFocusLabel) {
	left: 0 !important;
	top: 0 !important;
	flex: 0 0 auto;
}

.geLibEditor .geLibEditorItem > .geFocusLabel {
	position: static !important;
	box-sizing: border-box;
	width: 100%;
	min-height: 24px;
	padding: 2px 4px;
	border-radius: 4px;
	background: transparent !important;
	line-height: 20px;
}

.geLibEditor .geLibEditorItem > .geFocusLabel:hover {
	background: color-mix(in srgb, var(--le-text) 7%, transparent) !important;
}

.geLibEditor .geLibEditorItem > .geFocusLabel[contenteditable="true"] {
	background: var(--le-field) !important;
	outline: 2px solid var(--le-accent);
	outline-offset: -2px;
}

/* Selected (Shift, Ctrl or Cmd+Click, Space) */
.geLibEditor .geLibEditorItem:has(> .geFocusLabel[aria-pressed="true"]) {
	border-color: var(--le-accent);
	background: color-mix(in srgb, var(--le-accent) 12%, var(--le-card)) !important;
}

.geLibEditor .geLibEditorItem.geFocusRing {
	outline: 2px solid var(--le-accent);
	outline-offset: -2px;
}

/* Delete: the glyph of the trash in the color of the text, a target of 24 */
button.geLibEditorDelete {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: var(--le-text-2);
	cursor: pointer;
}

button.geLibEditorDelete:hover {
	background: color-mix(in srgb, var(--le-text) 10%, transparent);
	color: var(--le-text);
}

button.geLibEditorDelete:focus-visible {
	outline: 2px solid var(--le-accent);
	outline-offset: -2px;
}

.geLibEditorGlyph {
	display: inline-block;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--ge-lib-glyph) center / contain no-repeat;
	mask: var(--ge-lib-glyph) center / contain no-repeat;
}

/* The hint of an empty library, a drop target over the grid */
.geLibEditor .geLibEditorEmpty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-size: 14px;
	line-height: 20px;
	color: var(--le-text-2);
	text-align: center;
}

/* Export and Link on the left, Cancel and Save on the right */
.geLibEditorFooter {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}

.geLibEditorFooter .geBtn {
	margin: 0;
}

.geLibEditorTools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-right: auto;
}

/* Phones: two columns of cards, the name across the dialog */
@media (max-width: 639px) {
	.geLibEditor .geLibEditorGrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.geLibEditorNameRow {
		flex-basis: 100%;
	}
}

/* Plugins, Configuration and the languages available offline of Fusion in
   the Classic skin (SettingsLayouts.js, the rows pluginsDialog, configDialog
   and languageDialog of Editor.featureDefaults) */
.gePlugins, .geLanguages {
	--se-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--se-card: light-dark(var(--card-color), var(--dark-card-color));
	--se-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--se-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--se-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	--se-hover: color-mix(in srgb, var(--se-accent) 8%, transparent);
	line-height: normal;
	text-align: left;
	color: var(--se-text);
}

.gePluginsReplaced, .geLanguagesReplaced {
	display: none !important;
}

/* A glyph of Editor (a data URI in --ge-settings-glyph) as a mask in the color
   of the text, so it follows dark mode */
span.geSettingsGlyph {
	display: inline-block;
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--ge-settings-glyph) center / contain no-repeat;
	mask: var(--ge-settings-glyph) center / contain no-repeat;
}

/* Plugins (createPluginsLayout): the headline with when the changes take
   effect, the built-in plugins as checkboxes in a card, the other plugins as
   rows of a list in a card with Delete, Add Plugin... below */
.gePluginsHead {
	margin-bottom: 16px;
}

.geDialog .gePluginsHead > h3 {
	margin-bottom: 4px;
}

.gePluginsSubtitle {
	text-align: center;
}

.gePluginsBody {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gePluginsBody > .gePreviewSectionTitle:not(:first-child) {
	margin-top: 16px;
}

.gePluginsGroup, .gePluginsList {
	border: 1px solid var(--se-line);
	border-radius: 6px;
	background: var(--se-card);
}

.gePluginsGroup {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 12px;
	padding: 4px 10px;
}

.geSettingsCheck {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 28px;
}

.geSettingsCheck > input[type="checkbox"] {
	flex: none;
	margin: 0;
}

.geSettingsCheck > label {
	display: flex;
	flex: 1 1 auto;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
	cursor: pointer;
}

.geSettingsCheckName {
	flex: none;
}

.geSettingsCheckHint, .gePluginsName {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	min-width: 0;
}

.gePluginsRow {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 0 4px 0 10px;
}

.gePluginsRow + .gePluginsRow {
	border-top: 1px solid var(--se-line);
}

.gePluginsName {
	flex: 1 1 auto;
}

.gePluginsEmpty {
	padding: 8px 10px;
}

button.gePluginsDelete {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: transparent;
	color: var(--se-text-2);
	cursor: pointer;
}

button.gePluginsDelete:hover {
	background: var(--se-hover);
	color: var(--se-text);
}

.gePlugins .geBtn.gePluginsAdd {
	align-self: flex-start;
	margin: 8px 0 0 0;
}

.gePluginsFooter {
	margin-top: 24px;
}

button.gePluginsDelete:focus-visible, .geSettingsCheck > input[type="checkbox"]:focus-visible,
.geLanguagesRow input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--se-accent);
	outline-offset: 1px;
}

button.gePluginsDelete:focus-visible {
	outline-offset: -2px;
}

/* The languages available offline (createLanguagesLayout): the headline, a
   search field, the languages as checkboxes in two columns of a list that
   scrolls, Current in gray after the name, Cancel and Apply */
.geLanguages {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.geLanguages > * {
	flex: none;
}

.geLanguagesSearch {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	margin-bottom: 12px;
	padding: 0 10px;
	box-sizing: border-box;
	border: 1px solid var(--se-line);
	border-radius: 6px;
	background: light-dark(var(--field-color), var(--dark-field-color));
	color: var(--se-text-2);
}

.geLanguagesSearch:focus-within {
	outline: 2px solid var(--se-accent);
	outline-offset: -2px;
}

.geDialog .geLanguagesSearch input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: none;
	outline: none;
	background: none;
	box-shadow: none;
	color: var(--se-text);
	font-size: 14px;
}

.geLanguages > .geLanguagesBox {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	border: 1px solid var(--se-line);
	border-radius: 6px;
	background: var(--se-card);
}

.geLanguagesGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 8px;
	padding: 4px;
}

.geLanguagesRow {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 28px;
	padding: 0 8px;
	border-radius: 4px;
	cursor: pointer;
}

.geLanguagesRow:hover {
	background: var(--se-hover);
}

.geLanguagesRow > span:not(.geLanguagesCheck, .geLanguagesCurrent) {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geLanguagesRow > .geLanguagesCurrent {
	order: 1;
	flex: none;
}

.geLanguagesCheck {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	flex: none;
	width: 16px;
	height: 16px;
}

.geLanguagesCheck > input[type="checkbox"] {
	margin: 0;
}

.geLanguagesEmpty {
	padding: 8px 10px;
}

.geLanguagesFooter {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-top: 16px;
	white-space: nowrap;
}

@media (max-width: 639px) {
	.gePluginsGroup, .geLanguagesGrid {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* End of Plugins and the offline languages */

/* Configuration in the Classic skin (ConfigLayout): the headline with when
   the changes take effect, Editor and JSON as a list, the categories on the
   left as in the New dialog, the search, the settings of the editor
   (ConfigEditor.js) in the colors of the dialogs, the three states of each
   setting as a list and the footer; Fusion has its own skin in fusion.css */
.geCfg {
	--cfg-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--cfg-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--cfg-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--cfg-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	position: absolute;
	top: 24px;
	right: 24px;
	bottom: 24px;
	left: 24px;
	display: flex;
	flex-direction: column;
	color: var(--cfg-text);
	line-height: normal;
	text-align: left;
}

.geCfgReplaced {
	display: none !important;
}

.geCfg > * {
	flex: none;
}

/* The headline and the hint in the middle as in the other dialogs, the view
   on the right */
.geCfgHead {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: start;
	gap: 8px 16px;
	margin-bottom: 16px;
}

.geCfgTitles {
	grid-column: 2;
	min-width: 0;
	text-align: center;
}

.geDialog .geCfgTitles > h3 {
	margin: 0 0 4px;
}

.geCfgView {
	display: flex;
	grid-column: 3;
	justify-self: end;
	align-items: center;
	gap: 8px;
}

.geCfg > .geCfgBody {
	display: grid;
	flex: auto;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 12px 16px;
	min-height: 0;
}

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

.geCfgJson > .geCfgNav, .geCfgJson .geCfgSearch {
	display: none;
}

.geCfgNav, .geCfgMain {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.geCfgNav {
	gap: 2px;
	padding-right: 12px;
	border-right: 1px solid var(--cfg-line);
	overflow: auto;
}

.geCfgNav > * {
	flex: none;
}

button.geCfgCategory {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 30px;
	padding: 5px 8px;
	border: none;
	border-radius: 6px;
	background: none;
	color: inherit;
	font: inherit;
	line-height: 20px;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}

button.geCfgCategory:hover {
	background: light-dark(#0000000f, #ffffff14);
}

button.geCfgCategory.geCfgOn {
	background: color-mix(in srgb, var(--cfg-accent) 16%, transparent);
	color: light-dark(var(--accent-text-color), var(--dark-strong-text-color));
	font-weight: 600;
}

.geCfgMain {
	gap: 12px;
}

.geCfgMain > .geCfgSearch, .geCfgMain > .geCfgText {
	flex: none;
}

.geCfgSearch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

.geDialog .geCfgSearch > input {
	flex: 1 1 auto;
	box-sizing: border-box;
	min-width: 0;
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--cfg-line);
	border-radius: 6px;
	background: light-dark(var(--field-color), var(--dark-field-color));
	color: var(--cfg-text);
	font: inherit;
}

.geCfgSearch > div {
	flex: 1 1 100%;
	color: var(--cfg-text-2);
	font-size: 12px;
}

/* The editor of the settings in the colors of the dialogs of the theme
   (the colors of more contrast of the editor stay as they are); the
   sections keep the gray of the editor (--color-bg, #f0f0f0 and #2a2a2a)
   as in the dialog of before of Classic, Sketch, Minimal and Atlas, only
   Fusion has white sections (fusion.css) */
@media not (prefers-contrast: more) {
	.geCfg .geConfigEditor.geCfgEditor:not(.high-contrast) {
		--color-input: var(--field-color);
		--color-input-dark: var(--dark-field-color);
		--color-text: var(--strong-text-color);
		--color-text-dark: var(--dark-strong-text-color);
		--color-text-secondary: #5f5f63;
		--color-text-secondary-dark: var(--dark-secondary-text-color);
		--color-border: var(--field-border-color);
		--color-border-dark: var(--dark-field-border-color);
		--color-bg-tertiary-dark: #333333;
	}
}

.geCfg .geConfigEditor.geCfgEditor {
	--drawio-blue: var(--cfg-accent);
	--color-border-focus: var(--cfg-accent);
	flex: auto;
	min-height: 0;
	padding: 0 2px;
	background: transparent;
	overflow-y: auto;
}

.geCfg .geConfigEditor .geCfgHidden {
	display: none;
}

.geCfg .geConfigEditor select.geCfgState {
	flex: none;
	width: auto;
	min-width: 104px;
	margin-left: 12px;
}

.geCfg > .geCfgBody .geCfgText {
	flex: auto;
	min-height: 0;
}

.geCfgText > textarea {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 8px 10px;
	border: 1px solid var(--cfg-line);
	border-radius: 6px;
	background: light-dark(var(--field-color), var(--dark-field-color));
	color: var(--cfg-text);
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 12px;
	line-height: 18px;
}

.geCfg > .geCfgFooter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	row-gap: 8px;
	margin-top: 16px;
}

.geCfgFooter > :first-child {
	margin-left: 0;
}

.geCfgFooter > .geCfgFooterStart {
	margin-right: auto;
}

/* Focus rings as outlines inside of the controls, also in dark mode */
.geCfg :is(button, select, input, textarea, a, img):focus-visible,
.geCfg .geConfigEditor :is(button, select, input, textarea):focus-visible {
	outline: 2px solid var(--cfg-accent);
	outline-offset: -2px;
	box-shadow: none;
}

/* Phones: the categories as a row above the settings, one column */
@media (max-width: 639px) {
	.geCfgHead {
		grid-template-columns: minmax(0, 1fr);
	}

	.geCfgTitles, .geCfgView {
		grid-column: 1;
	}

	.geCfgView {
		justify-self: center;
	}

	.geCfg > .geCfgBody {
		grid-template: auto minmax(0, 1fr) / minmax(0, 1fr);
	}

	.geCfg > .geCfgBody.geCfgJson {
		grid-template-rows: minmax(0, 1fr);
	}

	.geCfgNav {
		flex-flow: row nowrap;
		padding: 0 0 6px;
		border: none;
		overflow-x: auto;
	}

	button.geCfgCategory {
		width: auto;
	}

	.geCfg .geConfigEditor .field-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* File › Properties of Fusion in the Classic skin (PropertiesLayout.js, the
   row propertiesDialog of Editor.featureDefaults) */
.geProps {
	--pr-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--pr-card: light-dark(var(--card-color), var(--dark-card-color));
	--pr-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--pr-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	line-height: normal;
	text-align: left;
}

.gePropsReplaced {
	display: none !important;
}

/* The file: the logo of its storage, the name and its size and path, Rename */
.gePropsCard {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	padding: 10px 12px;
	border: 1px solid var(--pr-line);
	border-radius: 8px;
	background: var(--pr-card);
}

.gePropsCardIcon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
}

.gePropsCardIcon > img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.gePropsCardText {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.gePropsCardName, .gePropsCardMeta {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.gePropsCardName {
	color: var(--pr-text);
	font-weight: 600;
}

.geProps .gePropsCard > .geBtn {
	flex: none;
	margin: 0;
}

/* The public link of the diagram below the card */
.gePropsLink {
	margin: -6px 0 16px;
}

.gePropsControl {
	display: flex;
	flex: 1;
	min-width: 0;
}

.gePropsControl > a {
	color: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
}

/* The options: the checkboxes with their hints, the fields of before */
.geProps .gePropsOptions {
	margin-bottom: 0;
}

.geProps .gePropsOptions label {
	color: var(--pr-text);
}

.geProps .gePropsHint {
	display: block;
	margin-top: 2px;
	line-height: 16px;
}

.geProps .gePropsOptions input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--pr-accent);
	outline-offset: 1px;
}

/* Edit Data on the left, Cancel and Apply on the right */
.gePropsFooter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.gePropsFooter > .geBtn {
	margin: 0;
}

.gePropsFooter > .gePropsData {
	margin-right: auto;
}

/* Style Rules on the Rules template of Fusion in the Classic skin
   (RulesLayout.js, the row styleRulesDialog of Editor.featureDefaults) */
.geRules {
	--rl-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--rl-card: light-dark(var(--card-color), var(--dark-card-color));
	--rl-field: light-dark(var(--field-color), var(--dark-field-color));
	--rl-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--rl-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--rl-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	line-height: normal;
	text-align: left;
}

.geRules .geRulesReplaced {
	display: none !important;
}

.geRulesHead {
	flex: 0 0 auto;
}

/* The rules scroll with room for the focus rings, the headline and the
   footer stay */
.geRules > .geRulesBody {
	flex: 1 1 auto;
	min-height: 0;
	margin: -4px;
	padding: 4px;
	scroll-padding: 4px;
}

.geRules > .geRulesBody > div {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.geRules .geRulesIntro {
	margin: 0 0 12px 0;
}

.geRulesList {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.geRules .geRulesLimit {
	margin: 8px 0 0 0;
}

.geRules .geRulesLimit:empty {
	display: none;
}

/* A rule: the row When property is value then style, the style and the
   tags below it when the preview of the style is open (accent border) */
.geRule {
	box-sizing: border-box;
	padding: 7px 11px;
	border: 1px solid var(--rl-line);
	border-radius: 8px;
	background: var(--rl-card);
	color: var(--rl-text);
}

.geRule.geRulesOn {
	border-color: var(--rl-accent);
}

.geRuleRow, .geRuleStyleRow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	min-width: 0;
	min-height: 30px;
}

/* The row of a rule stays on one line (the fields and the preview shrink),
   it wraps on phones */
.geRuleRow {
	flex-wrap: nowrap;
}

.geRuleHandle {
	display: inline-flex;
	flex: 0 0 20px;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 28px;
	border-radius: 4px;
	color: var(--rl-text-2);
	cursor: grab;
}

.geRuleWord {
	flex: 0 0 auto;
	color: var(--rl-text-2);
	white-space: nowrap;
}

.geDialog .geRuleRow > input, .geDialog .geRuleRow > select,
.geDialog .geRuleStyleRow input, .geDialog .geRuleStyleRow select {
	box-sizing: border-box;
	height: 28px;
	margin: 0;
}

.geDialog .geRuleRow > .geRuleProperty {
	flex: 0 1 auto;
	width: 140px;
	min-width: 96px;
}

.geDialog .geRuleRow > .geRuleOp {
	flex: 0 0 auto;
	width: 120px;
}

.geDialog .geRuleRow > .geRuleValue {
	flex: 0 1 auto;
	width: 140px;
	min-width: 80px;
}

/* The preview of the style, which opens the style and the tags */
.geRuleStyle {
	display: inline-flex;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 240px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: none;
	font: inherit;
	cursor: pointer;
}

.geRuleStyleText {
	display: block;
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
	height: 28px;
	padding: 0 10px;
	overflow: hidden;
	border: 1px solid var(--rl-line);
	border-radius: 6px;
	background: var(--rl-field);
	color: var(--rl-text);
	font-size: 12px;
	line-height: 26px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geRules .geRuleCount {
	flex: 0 0 auto;
	margin-left: auto;
	font-size: 12px;
	white-space: nowrap;
}

/* The icons of the dialog of before as buttons of 28 */
.geDialog .geBtn.geRuleRemove, .geDialog .geBtn.geRuleIconBtn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 28px;
	min-width: 0;
	height: 28px;
	margin: 0;
	padding: 0;
}

/* The style of the rule and its tags below the row, at the position of
   When */
.geRuleDetails {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
	padding: 7px 0 0 28px;
	border-top: 1px solid var(--rl-line);
}

.geDialog .geRuleStyleRow > select:first-of-type {
	flex: 0 0 auto;
	width: 160px;
}

.geDialog .geRuleStyleRow input[type="number"] {
	flex: 0 0 auto;
	width: 80px;
}

.geDialog .geRuleStyleRow input[type="url"] {
	flex: 1 1 auto;
	width: 160px;
	min-width: 120px;
	padding: 4px 8px;
	border: 1px solid var(--rl-line);
	border-radius: 6px;
	background: var(--rl-field);
	color: var(--rl-text);
	font-size: 13px;
}

.geRuleStyleRow > span {
	display: inline-flex;
	align-items: center;
	gap: 8px !important;
}

/* The colors of the style and the stops of a color scale */
.geRuleSwatch.geColorBtn {
	box-sizing: border-box;
	width: 40px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--rl-line);
	border-radius: 4px;
	cursor: pointer;
}

.geRuleTags > label {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 160px;
	color: var(--rl-text-2);
}

.geDialog .geRuleTags > input {
	flex: 0 1 auto;
	width: 240px;
	min-width: 96px;
}

/* Bold, Italic, Underline and Strikethrough stay checkboxes */
.geRuleChecks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
}

.geRuleCheck {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}

.geRuleCheck > input, .geRuleStyleRow > input[type="checkbox"] {
	margin: 0;
}

/* Add Rule and the shapes that the rules match */
.geRulesAdd {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 12px;
}

.geRulesAdd > .geBtn {
	flex: none;
	margin: 0;
}

.geRules .geRulesSummary {
	font-size: 12px;
}

/* Edit as JSON: the field takes the height of the dialog */
.geRulesJson {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
}

.geRulesCode {
	display: flex;
	flex: 1 1 auto;
	min-height: 200px;
}

.geDialog .geRulesCode > textarea {
	flex: 1 1 auto;
	box-sizing: border-box;
	width: 100%;
	min-height: 200px;
	margin: 0;
	resize: none;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	line-height: 18px;
	white-space: pre;
}

.geRulesError {
	color: light-dark(var(--error-color), var(--dark-error-color));
	font-size: 12px;
	white-space: pre-wrap;
}

.geRulesError:empty {
	display: none;
}

/* Edit as JSON and Insert Legend on the left, the buttons of the dialog
   on the right, without glyphs */
.geRulesFooter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 24px;
}

.geRulesFooter .geBtn {
	flex: none;
	margin: 0;
}

.geRulesFooter .geRulesFooterStart {
	margin-right: auto;
}

.geRulesJsonBtn.geRulesOn {
	border-color: var(--rl-accent);
	background-color: light-dark(color-mix(in srgb, var(--focus-color) 12%, transparent),
		color-mix(in srgb, var(--dark-focus-color) 20%, transparent));
}

/* Focus rings are outlines (dark mode removes shadows), inside of the
   handle, the preview and the colors, next to the checkboxes; the fields
   have the focus of the fields of the dialogs */
.geRuleHandle:focus-visible, .geRuleStyle:focus-visible,
.geRuleSwatch.geColorBtn:focus-visible {
	outline: 2px solid var(--rl-accent);
	outline-offset: -2px;
}

.geRuleCheck > input:focus-visible,
.geRuleStyleRow > input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--rl-accent);
	outline-offset: 1px;
}

/* Phones: the rows wrap and their fields take the width, the style starts
   at the left, Edit as JSON and Insert Legend share a line above the buttons
   of the dialog */
@media (max-width: 639px) {
	.geRuleRow {
		flex-wrap: wrap;
	}

	.geRulesFooter .geRulesJsonBtn, .geRulesFooter .geRulesFooterStart {
		flex: 1 1 40%;
		margin-right: 0;
	}

	.geDialog .geRuleRow > .geRuleProperty,
	.geDialog .geRuleRow > .geRuleOp,
	.geDialog .geRuleRow > .geRuleValue {
		flex: 1 1 96px;
		width: 96px;
		min-width: 0;
	}

	.geRuleDetails {
		padding-left: 0;
	}

	.geDialog .geRuleStyleRow > select:first-of-type,
	.geRuleTags > label {
		flex: 1 1 100%;
		width: auto;
	}
}

/* The forms of Simple on the layouts of Fusion in the Classic skin
   (FormTemplate.js, docs/dialog-style-guide.md "Form Template"): Edit
   Geometry and the custom font as forms with a head and sections, Edit
   Connection Points, Insert and Edit Polygon as shape editors on the Preview
   template, the color dialog and the color window with sections. The colors
   are those of the other dialogs of the theme; Fusion has its own skin in
   fusion.css */
.geForm, .geFormEditor, .geFormColor {
	--fm-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--fm-card: light-dark(var(--card-color), var(--dark-card-color));
	--fm-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--fm-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--fm-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	--fm-hover: color-mix(in srgb, var(--fm-text) 7%, transparent);
	--fm-on: color-mix(in srgb, var(--fm-accent) 16%, transparent);
}

/* The parts of the dialogs of before that the layouts replace are hidden by
   .geFormReplaced of the Form template of Edit Link and Save as (above) */
.geForm {
	line-height: normal;
	text-align: left;
}

/* The head: the h3 of the dialog and the shapes or the page in gray */
.geFormHead {
	flex-shrink: 0;
	margin-bottom: 12px;
}

.geFormHead > h3 {
	margin-bottom: 4px;
}

.geFormSubtitle {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-align: center;
}

/* The body of the forms (Edit Link and Save as have theirs under
   .geFormTemplate) */
.geForm > .geFormBody {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.geForm > .geFormBody > .geDialogSection:last-child,
.geForm > .geFormBody .geCollapsibleContent > .geDialogSection {
	margin-bottom: 0;
}

/* The unit after a field (pt, %, degrees) */
.geFormUnit {
	flex-shrink: 0;
	min-width: 14px;
}

.geForm:is(.geFormGeometry, .geFormFont) .gePreviewControl > input[type="text"],
.geForm:is(.geFormGeometry, .geFormFont) .gePreviewControl > input[type="number"],
.geFormEditor .gePreviewControl > input[type="text"],
.geFormEditor .gePreviewControl > input[type="number"] {
	flex: 1 1 64px;
	box-sizing: border-box;
	width: 64px;
	min-width: 0;
	margin: 0;
}

.geForm:is(.geFormGeometry, .geFormFont) .gePreviewControl > .geBtn,
.geFormEditor .gePreviewControl > .geBtn {
	margin: 0;
}

/* The buttons of the dialog keep their place below the body */
.geForm > .geFormButtons {
	flex-shrink: 0;
}

/* Shape editors: the canvas of the dialog with its handles fills the pane,
   the tools float over it, the options are on the right (below 700 px
   below the canvas) */
.geFormEditor {
	box-sizing: border-box;
	height: 100%;
	text-align: left;
}

.geFormEditor > .gePreviewBody {
	flex: 1 1 auto;
}

.geFormEditorPane.gePreviewPane {
	display: block;
	padding: 0;
	min-height: 240px;
}

.geFormEditorPane > .geFormCanvas {
	position: absolute !important;
	inset: 0;
	box-sizing: border-box;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	margin: 0;
	border: none !important;
	border-radius: inherit;
	background: transparent !important;
	overflow: hidden;
}

/* The canvas shows the pane (also the page color of dark mode in its SVG) */
.geFormEditorPane > .geFormCanvas > svg {
	background-color: transparent !important;
}

.geFormEditorPane > .geFormEditorTools {
	position: absolute;
	left: 50%;
	bottom: 10px;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--fm-line);
	border-radius: 8px;
	background: var(--fm-card);
	transform: translateX(-50%);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.geFormToolSep {
	flex-shrink: 0;
	width: 1px;
	height: 18px;
	margin: 0 3px;
	background: var(--fm-line);
}

/* Buttons with an image: the tools, the bin of a point */
.geFormIconBtn {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: none;
	color: var(--fm-text);
	cursor: pointer;
}

.geFormIconBtn > img {
	width: 18px;
	height: 18px;
	opacity: 0.7;
	pointer-events: none;
}

.geFormIconBtn:hover:not([disabled]) {
	background: var(--fm-hover);
}

.geFormIconBtn:hover:not([disabled]) > img {
	opacity: 1;
}

.geFormIconBtn.geFormOn {
	background: var(--fm-on);
}

.geFormIconBtn[disabled] {
	opacity: 0.38;
	cursor: default;
}

/* Hints of an empty list */
.geFormEmpty {
	padding: 4px 0;
}

.geFormEditor .gePreviewOptions .geDialogSection + .gePreviewSectionTitle,
.geFormConnectionPoint {
	margin-top: 12px;
}

/* Edit Connection Points: a row of 28 per point with its number and
   position, the bin at the end; about five rows scroll */
.geFormPointList {
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: 158px;
	overflow-y: auto;
}

.geFormPointRow {
	display: flex;
	align-items: center;
	gap: 4px;
}

button.geFormPointChoice {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	box-sizing: border-box;
	min-width: 0;
	min-height: 28px;
	margin: 0;
	padding: 0 8px;
	overflow: hidden;
	border: none;
	border-radius: 6px;
	background: none;
	color: var(--fm-text);
	font: inherit;
	white-space: nowrap;
	text-align: left;
	text-overflow: ellipsis;
	cursor: pointer;
}

button.geFormPointChoice:hover,
.geFormPolygonRow:hover {
	background: var(--fm-hover);
}

button.geFormPointChoice.geFormOn,
.geFormPolygonRow.geFormOn {
	background: var(--fm-on);
}

.geFormPointNumber {
	display: inline-block;
	min-width: 20px;
	margin-right: 8px;
	color: var(--fm-text-2);
	font-variant-numeric: tabular-nums;
}

/* Edit Polygon: the points as rows (handle, number, x, y, curve, Delete) */
.geFormPolygonPoints {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.geFormPolygonRow {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 4px;
	border-radius: 6px;
	color: var(--fm-text);
	cursor: pointer;
}

.geDialog .geFormPolygonRow > input[type="number"] {
	box-sizing: border-box;
	width: 64px;
	margin: 0;
}

.geFormPolygonRow > label,
.geFormPolygonRow > .geFormIconBtn {
	margin-left: auto;
}

.geFormPolygonRow > label + .geFormIconBtn {
	margin-left: 0;
}

/* The footer of the shape editors: help and the other actions on the left,
   Cancel and the primary button on the right */
.geFormFooter {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
}

.geFormEditor .geFormFooter {
	margin-top: 12px;
	white-space: nowrap;
}

.geFormFooter > .geBtn {
	margin: 0;
}

.geFormFooterGap {
	flex: 1 1 auto;
}

/* The custom font: the preview of the name and a sample in the font */
.geFormFontPreview {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	box-sizing: border-box;
	min-height: 88px;
	padding: 12px 16px;
	overflow: hidden;
	border: 1px solid var(--fm-line);
	border-radius: 8px;
	background: light-dark(#ffffff, var(--dark-color));
	color: var(--fm-text);
}

.geFormFontSample, .geFormFontSample2 {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geFormFontSample {
	font-size: 22px;
	line-height: 30px;
}

.geFormFontSample2 {
	font-size: 14px;
	line-height: 20px;
	color: var(--fm-text-2);
}

.geFormFontCaption {
	margin-top: 6px;
	text-align: center;
}

/* Focus rings: outlines inside of the controls */
.geFormIconBtn:focus-visible,
button.geFormPointChoice:focus-visible {
	outline: 2px solid var(--fm-accent);
	outline-offset: -2px;
}

/* The color dialog and the color window: the color, the dark color, Recent
   (hidden while there are no recent colors), Swatches, Custom (the pad of
   the picker) and Inherit, as an order of a column, so the parts of the
   dialog keep their places (the window outlives a switch of the theme). The
   heads are shown only outside of Fusion. Every rule needs .geFormColor,
   which the color window has only while the switch of the dialog is on in
   the current theme (updateColorWindowSections). */
.geFormColorHead {
	display: none;
}

body:not(.geSimpleModern) .geFormColor {
	display: flex;
	flex-direction: column;
	white-space: normal !important;
}

body:not(.geSimpleModern) .geFormColor > .geFormColorCurrent {
	order: 1;
}

body:not(.geSimpleModern) .geFormColor > .geFormColorDark {
	order: 2;
}

/* The dark color is always shown and Advanced, which showed only its field
   and list, is hidden; the dialog hides the row of Swap, Copy and Opacity
   and the dark color for a color without one. The row has no click of its
   own (the dialog toggles the dark color on it), its buttons have. */
body:not(.geSimpleModern) .geFormColor:has(.geFormColorAdvanced:not([style*="display: none"])) > .geFormColorDark {
	display: flex !important;
}

body:not(.geSimpleModern) .geFormColor .geFormColorAdvanced > .geFormColorAdvancedToggle {
	display: none !important;
}

body:not(.geSimpleModern) .geFormColor .geFormColorAdvanced {
	pointer-events: none;
}

body:not(.geSimpleModern) .geFormColor .geFormColorAdvanced > * {
	pointer-events: auto;
}

body:not(.geSimpleModern) .geFormColor > .geFormColorPalettes {
	order: 3;
	justify-content: flex-start !important;
	margin-top: 4px !important;
}

body:not(.geSimpleModern) .geFormColor > .geFormColorPalettes > .geFormColorHead {
	display: block;
	flex: 1 0 100%;
	margin: 8px 0 4px 0;
}

body:not(.geSimpleModern) .geFormColor.geFormColorNoRecent > .geFormColorPalettes > .geFormColorRecentHead,
body:not(.geSimpleModern) .geFormColor.geFormColorNoRecent > .geFormColorPalettes > .geFormColorRecentHead + table {
	display: none;
}

body:not(.geSimpleModern) .geFormColor > .geFormColorHead.geFormColorCustomHead {
	order: 4;
	display: block;
	margin: 8px 0 4px 0;
}

body:not(.geSimpleModern) .geFormColor > .geFormColorPad {
	order: 5;
	margin: 0 !important;
}

body:not(.geSimpleModern) .geFormColor > .geFormColorInherit {
	order: 6;
}

/* The buttons of the modal dialog */
body:not(.geSimpleModern) .geFormColor > .geFormColorInherit ~ * {
	order: 7;
}

/* The modal color dialog (pickColorModal): the name of the color as its h3 */
body:not(.geSimpleModern) .geFormColor.geFormColorDialog > h3 {
	order: 0;
}

@media (max-width: 699px) {
	.geFormEditor .geFormEditorPane.gePreviewPane {
		height: 240px;
	}
}

/* Page Setup, Edit Data and Edit Tooltip and Edit Note of Simple on the Form
   template of Fusion in the Classic skin (FormTemplate.js,
   docs/dialog-style-guide.md "Form Template"): the headline with what the
   dialog acts on, the sections of the Preview template with geDialogSection
   cards, rows of geDialogFormRow, the buttons of the dialog on the right
   (Export of Edit Data on the left). Fusion has its own skin in fusion.css.
   They share .geForm, its colors, .geFormReplaced, the head, the body and
   the footer with the forms above; what differs is under their classes */
.geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) .geFormHead {
	margin-bottom: 16px;
}

.geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) .geFormHead > h3:last-child {
	margin-bottom: 0;
}

/* The sections scroll between the head and the footer (.geForm > .geFormBody
   above) */
.geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) .geDialogFormLabel {
	min-width: 110px;
}

.geForm > .geFormFooter {
	flex-wrap: wrap;
	justify-content: flex-end;
}

.geFormFooter > .geFormFooterStart {
	margin-right: auto;
}

.geFormHint {
	margin-left: 0;
}

/* The Settings dialog of Simple (All settings..., the Classic skin of
   SettingsDialogLayout in SettingsLayouts.js, docs/dialog-style-guide.md):
   the Form template of Page Setup, the rows of each section in a card, the
   toggles as check rows and the commands as buttons of the dialogs. The
   frame is as high as the content (FormTemplate.fitDialog); where the window
   is lower, the sections scroll between the head and Done */
.geForm.geFormSettings {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	min-height: 0;
}

.geFormSettings .geFormHead {
	margin-bottom: 16px;
}

.geFormSettings .geFormHead > h3:last-child {
	margin-bottom: 0;
}

.geFormSettings .geDialogFormLabel {
	min-width: 110px;
}

.geFormSettings .geDialogCheckRow > input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--fm-accent);
	outline-offset: 1px;
}

.geSettingsDialogActions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.geDialogSection > .geSettingsDialogActions:not(:first-child) {
	margin-top: 8px;
}

.geDialog .geSettingsDialogActions > .geBtn.geSettingsDialogAction {
	margin: 0;
}

/* Page Setup: the list of the paper and the custom size in one row */
.geFormPaper {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

/* The lists of the paper and the orientation have the same width */
.geDialogFormRow .geFormPaper select {
	flex: 1 1 auto;
	min-width: 0;
}

/* The line break after the list of the paper would add a gap to its line */
.geFormPaper > br {
	display: none;
}

/* The custom size: the width, the height and the unit in a line under the
   list of the paper that wraps in narrow windows (PageSetupDialog.addPageFormatPanel
   gives it a fixed size) */
.geFormPaper > div:not(.geFormReplaced) {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
	width: auto !important;
	height: auto !important;
}

.geDialogFormRow .geFormPaper > div > select {
	flex: 1 1 0;
	min-width: 96px;
	margin-left: 0 !important;
}

/* The fields of the custom size have no type (PageSetupDialog.addPageFormatPanel) */
.geFormPaper input[type="text"], .geFormPaper input[type="number"], .geFormPaper input:not([type]) {
	width: 72px;
	box-sizing: border-box;
}

/* The color of the page as a swatch, its name and the button of the dialog
   of the background */
.geFormPageBackground {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.geFormSwatch {
	flex: none;
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	border: 1px solid var(--fm-line);
	border-radius: 4px;
}

/* No color: a diagonal line */
.geFormSwatch.geFormNone {
	background: linear-gradient(to top right, transparent 46%, light-dark(var(--error-color),
		var(--dark-error-background-color)) 46%, light-dark(var(--error-color),
		var(--dark-error-background-color)) 54%, transparent 54%);
}

.geFormPageBackgroundText {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.geFormPageBackground > .geBtn {
	margin: 0;
}

/* The initial view and the page actions: their controls in a row that wraps */
.geFormPageView {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.geFormPageView > .geBtn {
	margin: 0;
}

/* Edit Data: the ID with Copy, the properties and the field to add one */
.geFormIdRow .gePreviewControl {
	flex-wrap: nowrap;
}

.geFormId {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	user-select: text;
	/* A double click edits the ID */
	cursor: pointer;
}

.geFormIdRow .geBtn {
	flex: none;
	margin: 0;
}

.geFormEditData .geFormProps {
	flex: 0 1 auto;
}

a.geFormRemove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	box-sizing: border-box;
	border-radius: 4px;
}

.geFormDataAdd .geBtn {
	margin: 0;
}

/* The page data (Edit Data with nothing selected, createPageDataLayout of
   FormTemplate.js, the layout of Fusion): This page or Whole diagram with the
   ID of the page and the name on a card, the head of the properties with the
   hint of the placeholders, the tags of the page as toggle buttons on a card,
   More options (three settings or more, fewer stand inline) and Color by
   Data... after Export */
.geFormPageData .geFormPageDataOff,
.geFormPageData .geFormPageDataHidden,
.geFormPageData .geFormPageDataEmpty {
	display: none !important;
}

/* The content scrolls where the window is lower than the page data */
.geForm.geFormPageData {
	overflow-y: auto;
}

/* Windows too low for the page data: it scrolls, its footer stays in view */
.geForm.geFormPageData > .geFormFooter {
	position: sticky;
	bottom: 0;
	z-index: 1;
	background-color: light-dark(var(--dialog-color), var(--dark-dialog-color));
}

.geFormPageData > .geFormPageDataScope,
.geFormPageData > .geFormPageDataPropsHead,
.geFormPageData > .geFormPageDataTags,
.geFormPageData > .geFormPageDataMoreTitle,
.geFormPageData > .geFormPageDataMore {
	flex: none;
}

.geFormPageDataScopeRow {
	flex-wrap: wrap;
	row-gap: 8px;
}

.geFormPageDataScopeRow > select {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
}

.geFormPageDataScope > .geFormPageDataName {
	margin-top: 8px;
}

.geFormPageDataId {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin-left: auto;
	color: var(--fm-text-2);
}

.geFormPageDataIdValue {
	overflow: hidden;
	max-width: 160px;
	color: var(--fm-text);
	white-space: nowrap;
	text-overflow: ellipsis;
	user-select: text;
	/* A double click edits the ID */
	cursor: pointer;
}

.geFormPageDataId > .geBtn {
	flex: none;
	margin: 0;
}

.geFormPageDataName .gePreviewControl > input {
	flex: 1 1 auto;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	margin: 0;
}

.geFormPageDataPropsHead {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
	margin: 0 0 6px;
}

.geFormPageDataPropsHead > .gePreviewSectionTitle {
	flex: none;
	margin: 0;
}

.geFormPageDataHint {
	overflow: hidden;
	margin-left: auto;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* The rows of the properties keep two rows in low dialogs (EditDataDialog
   sets no minimum), the dialog scrolls */
.geFormPageData .geFormProps {
	min-height: 88px !important;
}

.geFormPageDataChips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.geFormPageDataChips > .geBtn {
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0 12px;
	border-radius: 15px;
}

/* A tag of the page: the color of the choices and a check */
.geFormPageDataChips > .geFormPageDataChipOn {
	background: var(--fm-on);
	box-shadow: inset 0 0 0 1px var(--fm-accent);
	color: var(--fm-text);
}

.geFormPageDataChips > .geFormPageDataChipOn::before {
	content: '\2713';
	margin-right: 6px;
	color: var(--fm-accent);
}

.geFormPageDataChips > input.geFormPageDataTagInput {
	box-sizing: border-box;
	width: 160px;
	height: 30px;
	margin: 0;
	border-radius: 15px;
}

.geFormPageData > .geFormPageDataMoreTitle {
	align-self: flex-start;
	margin: 0 0 6px;
}

/* Fewer than three settings stand inline after the rows of the properties */
.geFormPageDataMore.geFormPageDataInline {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
}

/* Color by Data... after Export pushes the buttons of the dialog right */
.geFormFooter > .geFormPageDataRules {
	margin-left: 8px;
}

.geFormCheckHint {
	margin-left: 8px;
}

/* Edit Tooltip and Edit Note: the toolbar with Formatted and HTML on the
   right, the text in a field that takes the height of the dialog */
.geFormMarkupBar {
	flex-wrap: wrap;
	row-gap: 4px;
}

.geFormMarkupMode {
	margin-left: auto;
}

.geFormMarkupField {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
}

.geFormMarkupField > textarea, .geFormMarkupField > .geMarkupWysiwyg {
	flex: 1 1 auto;
	min-height: 0;
	box-sizing: border-box;
}

/* Keyboard focus as outlines, which dark mode keeps (it removes shadows) */
.geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) input[type="checkbox"]:focus-visible, a.geFormRemove:focus-visible,
.geFormMarkupBar a.geMarkupTbBtn:focus-visible {
	outline: 2px solid var(--fm-accent);
	outline-offset: 1px;
}

a.geFormRemove:focus-visible, .geFormMarkupBar a.geMarkupTbBtn:focus-visible {
	outline-offset: -2px;
}

.geDarkMode .geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) input[type="text"]:focus,
.geDarkMode .geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) input[type="number"]:focus,
.geDarkMode .geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) input:not([type]):focus,
.geDarkMode .geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) textarea:focus, .geDarkMode .geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) select:focus,
.geDarkMode .geForm:is(.geFormPageSetup, .geFormEditData, .geFormMarkup) .geMarkupWysiwyg:focus {
	outline: 2px solid var(--fm-accent);
	outline-offset: -2px;
}

/* Choose Layout and Layout Settings (LayoutPicker.js): tiles with pictures
   of the layouts, toggle buttons and a preview */
.geLayoutPickerTop {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 16px;
	row-gap: 8px;
	margin-bottom: 12px;
	line-height: normal;
}

/* The spacing goes below the hint in narrow dialogs (phones) */
.geLayoutPickerTop > .geDialogHint {
	flex: 1 1 260px;
}

.geLayoutPickerSpacing {
	display: flex;
	align-items: center;
	column-gap: 8px;
	flex-shrink: 0;
	margin-left: auto;
}

.geLayoutPickerGrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 10px;
}

.geLayoutTile {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 6px 6px 8px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 8px;
	background: light-dark(var(--card-color), var(--dark-card-color));
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font: inherit;
	line-height: normal;
	text-align: left;
	cursor: pointer;
}

.geLayoutTile:hover {
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
}

/* Layouts that fail for the diagram show the example */
.geLayoutTile:disabled {
	border-color: light-dark(var(--field-border-color), var(--dark-field-border-color));
	opacity: 0.5;
	cursor: default;
}

.geLayoutTile:focus-visible, .geLayoutSegment:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

/* button. wins over the generic hover of buttons, which would hide the tint */
button.geLayoutTile.geLayoutTileSuggested {
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
	background: light-dark(color-mix(in srgb, var(--focus-color) 6%, var(--card-color)),
		color-mix(in srgb, var(--dark-focus-color) 12%, var(--dark-card-color)));
}

.geLayoutTileThumb, .geLayoutFormPreview {
	position: relative;
	overflow: hidden;
	height: 100px;
	border-radius: 6px;
	background: light-dark(#ffffff, var(--dark-color));
	pointer-events: none;
}

.geLayoutTileName {
	margin-top: 6px;
	font-weight: 600;
}

.geLayoutTile .geDialogHint {
	margin-top: 2px;
}

/* On the border, so the name keeps its line */
.geLayoutTileBadge {
	position: absolute;
	top: -9px;
	right: 10px;
	padding: 1px 6px;
	border-radius: 8px;
	/* The light focus color in both modes: white text needs 4.5:1 (4.7:1;
	   the dark focus color gives 3.6:1) */
	background: var(--focus-color);
	color: #ffffff;
	font-size: 11px;
	font-weight: normal;
	white-space: nowrap;
}

.geLayoutPickerExample {
	margin-top: 10px;
	line-height: normal;
}

/* How Tidy up differs from the layouts, between the hint and the tiles */
.geLayoutPickerTidyNote {
	margin-bottom: 12px;
	line-height: normal;
}

.geLayoutSegments {
	display: inline-flex;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 6px;
	overflow: hidden;
}

.geLayoutSegment {
	min-height: 26px;
	padding: 3px 10px;
	border: none;
	background: light-dark(var(--field-color), var(--dark-field-color));
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font: inherit;
	font-size: 13px;
	line-height: normal;
	cursor: pointer;
}

.geLayoutSegments > .geLayoutSegment + .geLayoutSegment {
	border-left: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
}

.geLayoutSegment[aria-pressed="true"],
button.geLayoutSegment[aria-pressed="true"]:hover {
	background: light-dark(color-mix(in srgb, var(--focus-color) 14%, var(--field-color)),
		color-mix(in srgb, var(--dark-focus-color) 30%, var(--dark-field-color)));
	color: light-dark(var(--focus-color), #ffffff);
}

/* Types of layouts wrap as separate buttons */
.geLayoutSegments.geLayoutTypes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	border: none;
	overflow: visible;
}

.geLayoutSegments.geLayoutTypes > .geLayoutSegment {
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 6px;
}

.geLayoutDirections > .geLayoutSegment {
	min-width: 34px;
	font-size: 15px;
}

/* One column for the long labels of the form */
.geLayoutForm .geDialogFormLabel {
	min-width: 130px;
}

.geLayoutFormNumber {
	display: flex;
	align-items: center;
	column-gap: 6px;
}

.geDialogFormRow .geLayoutFormNumber input[type="number"] {
	flex: 0 0 72px;
}

.geLayoutFormScope, .geLayoutFormJsonHint {
	margin-bottom: 10px;
	line-height: normal;
}

.geLayoutFormPreview {
	height: 200px;
	margin-bottom: 10px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
}

.geLayoutFormJson {
	width: 100%;
	height: 160px;
	box-sizing: border-box;
	font-family: monospace;
	font-size: 12px;
	resize: vertical;
}

.geLayoutFormJsonError {
	margin-top: 4px;
	line-height: normal;
}

/* Arrange my diagram (LayoutPanel in LayoutPicker.js): the layout picker of
   Classic and Simple in the place of the Format panel, after the concept
   mockup, in the look of the theme (Kym, 20 November 2026: the gray of the
   panels, the borders, the text and the dark mode of the theme, not the
   white card of Fusion), the same colors as Style my diagram (.geTidyPanel)
   and the Choose Layout dialog (.geLayoutTile). Fusion hosts it in its own
   panel (fusion.css, .geSmHostedTool) */
/* The same gap of 12px on every side of the card as Style my diagram
   (TidyWindow.prototype.margin), which takes its place (Kym, 20 November
   2026: the background around it was 6px above, 12px at the right, 8px
   below and 4px at the left) */
.geEditor>.geLayoutPanel {
	grid-column: 4;
	grid-row: 3;
	min-height: 0;
	width: min(500px, 50vw);
	box-sizing: border-box;
	display: flex;
	padding: 12px;
}

.geLayoutPanelCard {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 14px 14px 12px;
	border: 1px solid light-dark(var(--border-color), var(--dark-border-color));
	border-radius: 12px;
	background: light-dark(var(--ge-panel-color), var(--ge-dark-panel-color));
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-size: 13px;
	line-height: normal;
}

.geLayoutPanelHeader {
	display: flex;
	align-items: center;
	column-gap: 8px;
	margin-bottom: 4px;
}

.geLayoutPanelTitle {
	font-size: 15px;
	font-weight: 700;
}

.geLayoutPanelCount {
	margin-left: auto;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	font-size: 11px;
	white-space: nowrap;
}

.geLayoutPanelClose {
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: none;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	font-size: 18px;
	line-height: 24px;
	cursor: pointer;
}

.geLayoutPanel .geLayoutPanelClose:hover {
	background: light-dark(var(--highlight-color), var(--dark-soft-hover-color));
}

.geLayoutPanelHint {
	margin-bottom: 10px;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	font-size: 11.5px;
	line-height: 1.25;
}

.geLayoutPanelExample {
	margin: 8px 0 0;
}

.geLayoutPanelGrid {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
	align-content: start;
	gap: 8px 10px;
	padding: 2px;
}

.geLayoutPanelTile {
	display: flex;
	flex-direction: column;
	padding: 6px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 8px;
	background: light-dark(var(--card-color), var(--dark-card-color));
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

/* Wins over the generic hover of buttons */
.geLayoutPanel .geLayoutPanelTile:hover:not(:disabled) {
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
	background: light-dark(var(--card-color), var(--dark-card-color));
}

/* Touch: the tile and its eye, which previews (no chosen tile, a tap applies) */
.geLayoutPanelTileWrap, .geTidyTileWrap {
	position: relative;
	display: flex;
	min-width: 0;
}

.geLayoutPanelTileWrap>.geLayoutPanelTile, .geTidyTileWrap>.geTidyTile {
	flex: 1 1 auto;
	min-width: 0;
}

.geLayoutPanelEye, .geTidyTileEye {
	position: absolute;
	top: 4px;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 50%;
	background: light-dark(var(--card-color), var(--dark-card-color));
	color: inherit;
	cursor: pointer;
}

/* The white icon keeps 4.5:1 as the badge Suggested (85 % of the dark accent) */
.geLayoutPanelEye[aria-pressed="true"], .geTidyTileEye[aria-pressed="true"] {
	border-color: light-dark(var(--focus-color), color-mix(in srgb, var(--dark-focus-color) 85%, black));
	background: light-dark(var(--focus-color), color-mix(in srgb, var(--dark-focus-color) 85%, black));
	color: #ffffff;
}

.geLayoutPanelEye:disabled {
	opacity: 0.5;
	cursor: default;
}

.geLayoutPanelEyeIcon, .geTidyTileEyeIcon {
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: var(--ge-layout-eye, var(--ge-tidy-eye)) center / contain no-repeat;
	mask: var(--ge-layout-eye, var(--ge-tidy-eye)) center / contain no-repeat;
}

.geLayoutPanelTile:disabled {
	border-color: light-dark(var(--field-border-color), var(--dark-field-border-color));
	opacity: 0.5;
	cursor: default;
}

.geLayoutPanel button:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

.geLayoutPanelThumb {
	position: relative;
	overflow: hidden;
	height: 100px;
	border-radius: 6px;
	background: light-dark(#fafafa, #171717);
	pointer-events: none;
}

.geLayoutPanelName {
	margin-top: 5px;
	font-weight: 500;
}

.geLayoutPanelBadge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 8px;
	background: light-dark(var(--focus-color), color-mix(in srgb, var(--dark-focus-color) 85%, black));
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	vertical-align: middle;
}

.geLayoutPanelDesc {
	margin-top: 1px;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	font-size: 11.5px;
	line-height: 1.25;
}

.geLayoutPanelFooter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 6px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid light-dark(var(--border-color), var(--dark-border-color));
}

.geLayoutPanelLabel {
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	font-size: 11.5px;
}

.geLayoutSegments.geLayoutPanelSegments {
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 6px;
}

.geLayoutSegments.geLayoutPanelSegments > .geLayoutSegment {
	min-height: 0;
	padding: 4px 8px;
	background: light-dark(var(--field-color), var(--dark-field-color));
	color: inherit;
	font-size: 12px;
}

.geLayoutSegments.geLayoutPanelSegments > .geLayoutSegment + .geLayoutSegment {
	border-left: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
}

.geLayoutPanel .geLayoutPanelSegments > .geLayoutSegment:hover {
	background: light-dark(var(--soft-hover-color), var(--dark-soft-hover-color));
}

.geLayoutPanel .geLayoutSegments.geLayoutPanelSegments > .geLayoutSegment[aria-pressed="true"] {
	background: light-dark(color-mix(in srgb, var(--focus-color) 14%, var(--field-color)),
		color-mix(in srgb, var(--dark-focus-color) 30%, var(--dark-field-color)));
	color: light-dark(var(--accent-text-color), #ffffff);
	font-weight: 600;
}

.geLayoutPanelButton {
	padding: 5px 9px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 6px;
	background: light-dark(var(--field-color), var(--dark-field-color));
	color: inherit;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

/* Help and More options wrap together */
.geLayoutPanelActions {
	display: flex;
	column-gap: 6px;
	margin-left: auto;
}

.geLayoutPanel .geLayoutPanelButton:hover:not(:disabled) {
	background: light-dark(var(--soft-hover-color), var(--dark-soft-hover-color));
}

.geLayoutPanelButton:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Picture of a layout on the canvas, over the diagram, which gets all
   events (shapes and labels set their own pointer events) */
.geLayoutPanelOverlay {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
}

.geLayoutPanelOverlay, .geLayoutPanelOverlay * {
	pointer-events: none !important;
}

/* Nodes that the picture of a layout on the canvas hides (the cells it
   replaces, the decorator pane, the inline toolbar), with everything in them:
   shapes set visibility: visible on their own node when they are painted
   (mxShape.redrawNode), which a hidden parent does not override. Each preview
   on the canvas has its own class (geSmCompareHidden, geSmVersionHidden in
   fusion.css), as they can overlap and end in any order */
.geLayoutPreviewHidden, .geLayoutPreviewHidden * {
	visibility: hidden !important;
}

/* The overlay pane under the picture: the handles of the selection are
   hidden, the overlays and folding icons of the cells outside the picture
   (geLayoutPreviewKept) are not */
.geLayoutPreviewPane > :not(.geLayoutPreviewKept),
.geLayoutPreviewPane > :not(.geLayoutPreviewKept) * {
	visibility: hidden !important;
}

/* The panel host of Simple (PanelHost.js, the rows layersPanel, tagsPanel
   and textOutlinePanel of Editor.featureDefaults): Layers, Tags and the Text
   Outline in the place of the Format panel, flat like the Format panel, with
   the window of before in the body (the head of the panel replaces its title
   bar); a sheet at the bottom on phones */
.geEditor>.geSidePanel {
	grid-column: 4;
	grid-row: 3;
	min-height: 0;
	width: var(--ge-panel-width, 240px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-left-style: solid;
	border-left-width: 1px;
	background-color: light-dark(var(--ge-panel-color), var(--ge-dark-panel-color));
	font-size: 12px;
	white-space: nowrap;
}

.geEditor>.geSidePanel.geSidePanelSheet {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: auto;
	height: 50%;
	z-index: 4;
	border-left: none;
	border-top-style: solid;
	border-top-width: 1px;
	border-radius: 12px 12px 0 0;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

.geSidePanelHeader {
	flex: none;
	display: flex;
	align-items: center;
	column-gap: 4px;
	height: 40px;
	padding: 0 6px 0 12px;
	box-sizing: border-box;
	border-bottom-style: solid;
	border-bottom-width: 1px;
}

.geSidePanelTitle {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 13px;
	font-weight: 600;
}

.geSidePanelButton {
	flex: none;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: none;
	color: inherit;
	font-size: 18px;
	line-height: 28px;
	cursor: pointer;
}

.geSidePanelHeader>.geSidePanelBack {
	margin-left: -6px;
	font-size: 22px;
}

.geSidePanel .geSidePanelButton:hover {
	background: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.1));
}

.geSidePanel .geSidePanelButton:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

.geSidePanelBody {
	position: relative;
	flex: 1;
	min-height: 0;
}

.geSidePanelBody>div.mxWindow.geSidePanelWindow {
	position: absolute;
	inset: 0;
	z-index: auto;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.geSidePanelWindow td.mxWindowTitle,
.geSidePanelWindow>img {
	display: none;
}

.geSidePanelWindow div.mxWindowPane {
	position: absolute;
	inset: 0;
	width: auto !important;
	height: auto !important;
}

/* The hints wrap in the panel as in the windows of before */
.geSidePanelBody .geTextOutlineEmpty {
	white-space: normal;
}

.geSidePanelEmpty {
	position: absolute;
	left: 12px;
	right: 12px;
	top: 24px;
	z-index: 1;
	color: light-dark(#5f6368, #9aa0a6);
	text-align: center;
	white-space: normal;
	pointer-events: none;
}

/* The width of the right panel (the Format panel and the panels above) can
   be dragged on its left edge (the row panelResize, updatePanelResizer in
   PanelHost.js); the divider shows a line on hover and focus only */
.geEditor.gePanelResizable>div.geFormatContainer {
	width: var(--ge-panel-width, 240px);
}

.geEditor>.gePanelResizer {
	grid-column: 4;
	grid-row: 3;
	justify-self: start;
	position: relative;
	z-index: 3;
	width: 6px;
	margin-left: -3px;
	cursor: col-resize;
	touch-action: none;
	outline: none;
}

.geEditor>.gePanelResizer::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 2px;
	width: 2px;
}

.geEditor>.gePanelResizer:hover::after,
.geEditor>.gePanelResizer:focus-visible::after,
.geEditor>.gePanelResizer.gePanelResizing::after {
	background-color: light-dark(var(--focus-color), var(--dark-focus-color));
}

/* Touch in Simple (TouchSupport.js, the row touchSupport of
   Editor.featureDefaults, .geTouchSupport on the editor while it is on). The
   palettes of the Shapes panel scroll with a finger (their inline
   touch-action: none of Sidebar.addPalette let every swipe drag a shape) */
.geEditor.geTouchSupport .geSidebarContainer .geSidebar {
	touch-action: pan-y !important;
}

/* The sheet of the panels on phones: a grabber above the head, the grabber
   and the head follow the finger (installSidePanelDrag), the sheet snaps to
   half or full height (the top bar stays) or closes */
.geEditor>.geSidePanel.geSidePanelSheet.geSidePanelDraggable {
	transition: height 200ms ease-out;
}

.geEditor>.geSidePanel.geSidePanelSheet.geSidePanelFull {
	height: calc(100% - 56px);
}

.geEditor>.geSidePanel.geSidePanelSheet.geSidePanelDragging {
	transition: none;
}

.geSidePanelDraggable>.geSidePanelHeader {
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

.geSidePanelGrabber {
	flex: none;
	position: relative;
	display: block;
	width: 100%;
	height: 16px;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	cursor: grab;
	touch-action: none;
	-webkit-tap-highlight-color: transparent;
}

.geSidePanelGrabber::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 6px;
	width: 36px;
	height: 4px;
	margin-left: -18px;
	border-radius: 2px;
	background: light-dark(#c4c7c5, #5f6368);
}

.geSidePanelGrabber:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
	.geEditor>.geSidePanel.geSidePanelSheet.geSidePanelDraggable {
		transition: none;
	}
}

/* Hit areas with a coarse pointer, the drawn sizes and places unchanged (a
   transparent ::after): the buttons of the top bar reach 44 px in height and
   half the gap to their neighbours (in Classic, whose bar is 38 px high and
   clips what overflows it, the height of the bar: more would cover the menus
   above and the panels below), the buttons of the head of the panels the
   height of the head, and the divider of the right panel is 24 px wide, 20 px
   of it outside the panel, so it leaves Back and the tabs of the Format panel
   to the panel */
@media (pointer: coarse) {
	.geEditor.geTouchSupport>.geToolbarContainer a.geButton,
	.geEditor.geTouchSupport .geSidePanelHeader>.geSidePanelButton {
		position: relative;
	}

	.geEditor.geTouchSupport>.geToolbarContainer a.geButton::after {
		content: '';
		position: absolute;
		left: -3px;
		right: -3px;
		top: 50%;
		height: 44px;
		margin-top: -22px;
	}

	/* The groups of the top bar of Simple (Undo, Redo and Delete, the tools)
	   are 38 px high and do not shrink below their buttons, so they clip
	   nothing but these hit areas */
	.geEditor.geTouchSupport>.geToolbarContainer>.geToolbarContainer {
		overflow: visible;
	}

	.geEditor.geTouchSupport .geSidePanelHeader>.geSidePanelButton::after {
		content: '';
		position: absolute;
		left: -8px;
		right: -8px;
		top: -6px;
		bottom: -6px;
	}

	.geEditor.geTouchSupport>.gePanelResizer {
		width: 24px;
		margin-left: -20px;
	}

	.geEditor.geTouchSupport>.gePanelResizer::after {
		left: 19px;
	}
}

/* Revision History in the Classic skin (RevisionDialog.createLayout in
   Dialogs.js, the row revisionDialog), docs/dialog-style-guide.md */
/* The headline with the file, the versions as a list on the left, the
   preview of the chosen version with the tools of the dialog below it on the
   right, Open in New Window and Create Revision on the left of the footer;
   below 640 px the preview is above the list. Fusion has its own skin in
   fusion.css */
.geRevisionDlg {
	--rd-line: light-dark(var(--field-border-color), var(--dark-field-border-color));
	--rd-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--rd-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	line-height: normal;
}

.geRevisionDlgReplaced {
	display: none !important;
}

.geRevisionDlg > * {
	flex: none;
}

.geRevisionDlgBody {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 12px 16px;
	min-height: 0;
}

.geRevisionDlgSide, .geRevisionDlgMain {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.geRevisionDlgList {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-height: 0;
	padding: 4px;
	border: 1px solid var(--rd-line);
	border-radius: 8px;
	overflow-y: auto;
}

.geRevisionDlgRow {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 4px 8px;
	box-sizing: border-box;
	border-radius: 6px;
	cursor: pointer;
}

.geRevisionDlgRow:hover {
	background: light-dark(#0000000f, #ffffff14);
}

.geRevisionDlgRow.geRevisionDlgOn {
	background: color-mix(in srgb, var(--rd-accent) 16%, transparent);
	color: light-dark(var(--accent-text-color), var(--dark-strong-text-color));
}

.geRevisionDlgRow:focus-visible {
	outline: 2px solid var(--rd-accent);
	outline-offset: -2px;
}

.geRevisionDlgText {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.geRevisionDlgDate, .geRevisionDlgHint {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geRevisionDlgOn .geRevisionDlgDate {
	font-weight: 600;
}

.geRevisionDlgHint {
	color: var(--rd-text-2);
	font-size: 12px;
}

.geRevisionDlgBadge {
	flex: none;
	padding: 1px 6px;
	border: 1px solid var(--rd-line);
	border-radius: 9px;
	color: var(--rd-text-2);
	font-size: 11px;
	font-weight: normal;
}

/* The versions by day (RevisionDialog.createCompare): the caption of the
   day (Today, Yesterday, the date; 12px, 600, the secondary text) above the
   rows of the day, which show the time */
.geRevisionDlgGroup {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 2px;
}

.geRevisionDlgDay {
	padding: 10px 8px 2px 8px;
	color: var(--rd-text-2);
	font-size: 12px;
	font-weight: 600;
}

.geRevisionDlgGroup:first-child > .geRevisionDlgDay {
	padding-top: 4px;
}

/* Compare with (the current diagram or another version) and the count of
   the differences on the right, between the preview and the tools */
.geRevisionDlgCompare {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	min-height: 28px;
}

.geRevisionDlgCompare > label {
	color: var(--rd-text-2);
}

.geRevisionDlgCompare > select {
	min-width: 0;
	max-width: 240px;
}

.geRevisionDlgCount {
	margin-left: auto;
	color: var(--rd-text-2);
	font-size: 12px;
}

.geRevisionDlgCount.geRevisionDlgError {
	color: light-dark(var(--error-color), var(--dark-error-color));
}

/* The frames of the shapes and connectors that differ, over the preview
   and the compare graph: 2 in the focus color, 4 outside the bounds,
   radius 4, without the pointer */
.geRevisionDlgMarks {
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	overflow: visible;
	pointer-events: none;
}

.geRevisionDlgMark {
	position: absolute;
	box-sizing: border-box;
	border: 2px solid var(--rd-accent);
	border-radius: 4px;
}

.geRevisionDlgMain {
	gap: 8px;
}

/* The graphs of the dialog fill the pane */
.gePreviewPane.geRevisionDlgPane {
	flex: 1 1 auto;
	padding: 0;
}

.geRevisionDlgPane > .geRevisionDlgGraph {
	inset: 0;
}

.geRevisionDlgEmpty {
	padding: 12px;
	color: var(--rd-text-2);
	text-align: center;
}

/* The information of the shown version on the left of the tools */
.geRevisionDlgTools {
	display: flex;
	flex: none;
	align-items: center;
	gap: 4px;
	min-height: 32px;
}

/* A block (not the inline-flex of the dialog) so that a long version ends
   with an ellipsis */
.geRevisionDlgTools > .geDialogHint {
	display: block !important;
	flex: 1 1 0;
	min-width: 0;
	height: auto !important;
}

.geRevisionDlgTools > select {
	max-width: 160px;
}

.geRevisionDlgFooter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}

.geRevisionDlgFooterStart {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-right: auto;
}

.geDialog .geRevisionDlgFooter .geBtn {
	margin: 0;
}

@media (max-width: 639px) {
	.geRevisionDlgBody {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: minmax(200px, 1fr) minmax(120px, auto);
	}

	.geRevisionDlgMain {
		order: -1;
	}

	.geRevisionDlgList {
		max-height: 200px;
	}
}

/* More Shapes in the Classic skin (MoreShapesDialog.createLayout in
   Dialogs.js, the row moreShapesDialog), docs/dialog-style-guide.md */

/* How many libraries are on, centered below the headline */
.geShapesDlg > .geBrowserHead > h3 {
	margin-bottom: 4px;
}

.geShapesDlg > .geBrowserHead > .geBrowserSubtitle {
	margin-bottom: 16px;
	text-align: center;
}

.geShapesDlgGrid {
	display: grid;
	flex: auto !important;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	align-content: start;
	gap: 8px;
	min-height: 0;
	margin: 4px -4px 0;
	padding: 4px;
	overflow-y: auto;
}

.geShapesDlgTile {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	min-width: 0;
	min-height: 56px;
	padding: 6px 10px 6px 6px;
	border: 1px solid var(--tb-line);
	border-radius: 8px;
	background: var(--tb-card);
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-size: 13px;
	cursor: pointer;
}

.geShapesDlgTile:hover {
	border-color: var(--tb-accent);
}

.geShapesDlgTile.geShapesDlgOn {
	background: color-mix(in srgb, var(--tb-accent) 8%, var(--tb-card));
}

/* The top of the preview of the library (its first row of shapes) on white
   paper, as the preview of the dialog of before in both modes */
.geShapesDlgThumb {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 104px;
	height: 42px;
	overflow: hidden;
	border: 1px solid var(--tb-line);
	border-radius: 6px;
	background: #fff;
}

.geShapesDlgThumb > img {
	position: absolute;
	top: -12px;
	left: 0;
	width: 224px;
	height: auto;
	max-width: none;
	filter: none;
}

.geShapesDlgThumb:has(> .geBrowserGlyph) {
	background: light-dark(var(--soft-color), var(--dark-soft-color));
}

.geShapesDlg .geShapesDlgThumb > span.geBrowserGlyph {
	width: 24px;
	height: 24px;
	color: var(--tb-text-2);
}

/* The picture and the name: a button that shows the shapes of the library
   (the whole tile does, except its checkbox) */
.geShapesDlg button.geShapesDlgOpen {
	display: flex;
	flex: auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.geShapesDlgText {
	display: flex;
	flex: auto;
	flex-direction: column;
	min-width: 0;
}

.geShapesDlgName, .geShapesDlgHint {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geShapesDlgName {
	line-height: 18px;
	font-weight: 600;
}

.geShapesDlgHint {
	font-size: 12px;
	line-height: 16px;
	color: var(--tb-text-2);
}

/* In a section its name is not repeated on the tiles */
.geShapesDlgInSection .geShapesDlgSectionHint {
	display: none;
}

.geShapesDlg :is(.geShapesDlgTile, .geShapesDlgDetailHead, .geShapesDlgOption) > input[type="checkbox"] {
	flex: none;
	margin: 0;
	cursor: pointer;
}

/* The preview of a library: back, the name and the checkbox above the
   preview of the dialog */
.geShapesDlgDetail {
	display: flex;
	flex: auto !important;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
}

.geShapesDlgDetailHead {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
}

.geShapesDlgDetailName {
	flex: auto;
	min-width: 0;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-size: 15px;
	line-height: 22px;
}

.geShapesDlg .geBrowserClear.geShapesDlgIconBtn {
	flex: none;
	width: 28px;
	height: 28px;
}

.geShapesDlg .geShapesDlgIconBtn > span.geBrowserGlyph {
	width: 18px;
	height: 18px;
}

.geShapesDlgDetail > .geMoreShapesPreview {
	flex: auto;
	min-height: 0;
	border: 1px solid var(--tb-line);
	border-radius: 8px;
	background: var(--tb-card);
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
}

/* The footer: Labels and Remember this setting on the left */
.geShapesDlgOptions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-right: auto;
}

.geShapesDlgOption {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 28px;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-size: 13px;
	cursor: pointer;
	user-select: none;
}

/* Focus rings in the color of the theme, light and dark */
.geShapesDlg button.geShapesDlgOpen:focus-visible,
.geShapesDlg input[type="checkbox"]:focus-visible,
.geShapesDlgDetail > .geMoreShapesPreview:focus-visible {
	outline: 2px solid var(--tb-accent);
	outline-offset: 2px;
}

.geShapesDlgDetail > .geMoreShapesPreview:focus-visible {
	outline-offset: -2px;
}

@media (max-width: 639px) {
	.geShapesDlgGrid {
		grid-template-columns: minmax(0, 1fr);
	}

	.geShapesDlgThumb {
		width: 64px;
	}

	/* Labels and Remember this setting above Cancel and Apply */
	.geShapesDlgOptions {
		flex: 1 1 100%;
	}
}

/* Create Shape and Edit Shape in the Classic skin
   (EditShapeDialog.createLayout in Dialogs.js, the row editShapeDialog),
   docs/dialog-style-guide.md */
/* On the Preview template (.gePreviewTemplate): the code of the stencil
   on the left with its errors, the live preview of the shape on the right
   (below 700 px above the code), help on the left of the footer. The dialog
   has its size and can be resized, the layout fills it. Fusion has its own
   skin in fusion.css */
.geEditShapeDlg {
	height: 100%;
	box-sizing: border-box;
}

.geEditShapeDlgReplaced {
	display: none !important;
}

.geEditShapeDlg .gePreviewBody {
	align-items: stretch;
}

.geEditShapeDlgCode {
	display: flex;
	flex: 1 1 55%;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	gap: 6px;
}

.geEditShapeDlgField {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
}

.geDialog .geEditShapeDlgField > textarea {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 8px 10px;
	box-sizing: border-box;
	resize: none;
	white-space: pre;
	overflow: auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 12px;
	line-height: 18px;
	tab-size: 4;
}

/* The focus ring of the code is an outline inside the field: dark mode drops
   the shadow of the focused fields of dialogs */
.geDialog .geEditShapeDlgField > textarea:focus {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -1px;
}

/* The errors of the XML (hidden while there are none) */
.geEditShapeDlgStatus {
	flex-shrink: 0;
	font-size: 12px;
	line-height: 16px;
	color: light-dark(#c62828, #ff8a80);
}

.geEditShapeDlgStatus:empty {
	display: none;
}

/* The graph of the dialog fills the pane */
.geEditShapeDlg .gePreviewPane.geEditShapeDlgPane {
	flex: 1 1 45%;
	padding: 0;
}

.geEditShapeDlg .geEditShapeDlgCanvas {
	position: absolute;
	inset: 0;
	border-radius: 8px;
}

.geEditShapeDlgFooter {
	display: flex;
	flex-shrink: 0;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}

.geDialog .geEditShapeDlgFooter .geBtn {
	margin: 0;
}

.geEditShapeDlgFooter .geEditShapeDlgHelp {
	margin-right: auto;
}

@media (max-width: 699px) {
	.geEditShapeDlg .gePreviewPane.geEditShapeDlgPane {
		flex: 0 0 auto;
		order: -1;
		height: 160px;
		min-height: 0;
	}

	.geEditShapeDlgCode {
		flex: 1 1 auto;
		min-height: 120px;
	}
}


/* The background image of the page in the Classic skin
   (BackgroundImageDialog.createLayout in Dialogs.js, the row
   backgroundDialog), docs/dialog-style-guide.md */
.geBackgroundDlg {
	line-height: normal;
}

.geBackgroundDlgReplaced {
	display: none !important;
}

.geBackgroundDlgBody > .gePreviewSectionTitle {
	margin-top: 4px;
}

.geBackgroundDlgControl {
	display: flex;
	flex: 1;
	align-items: center;
	min-width: 0;
	column-gap: 8px;
}

.geDialog .geBackgroundDlgControl > .geBtn {
	flex: none;
	margin: 0;
}

.geBackgroundDlgUnit {
	flex: none;
	min-width: 16px;
}

/* The color buttons of the fill: the ring outside the swatch, which the card
   leaves room for (an inner ring would hide the color) */
.geBackgroundDlg .geColorBtn {
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 4px;
}

.geBackgroundDlg .geColorBtn:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: 2px;
}

.geBackgroundDlgFooter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.geDialog .geBackgroundDlgFooter .geBtn {
	margin: 0;
}

.geDialog .geBackgroundDlgFooter .geBackgroundDlgReset {
	margin-right: auto;
}

/* Home screen (HomeDialog): the Google Drive diagrams draw.io can open */
.geHome {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	line-height: normal;
}

/* Only the nav and the grid scroll: as a scroll container (.geDialog >
   :first-child), Home would clip the focus rings at its edges */
.geDialog > div.geHome {
	overflow: visible;
}

.geHome .geHomeHeader {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	padding-bottom: 16px;
}

.geHome .geHomeTitle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
}

.geHome .geHomeTitle img {
	width: 24px;
	height: 24px;
}

.geHome input.geHomeSearch {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 420px;
	height: 32px;
	margin-left: auto;
	padding: 0 14px;
	box-sizing: border-box;
	border-radius: 16px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	background: light-dark(var(--field-color), var(--dark-field-color));
	color: inherit;
}

/* Same ring as the cards in every browser (Firefox draws a thick outline) */
.geHome input.geHomeSearch:focus {
	outline: 1px solid transparent;
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
	box-shadow: 0 0 0 3px light-dark(color-mix(in srgb, var(--focus-color) 35%, transparent), color-mix(in srgb, var(--dark-focus-color) 35%, transparent));
}

.geHome .geHomeNewButton {
	flex: 0 0 auto;
	margin: 0;
}

.geHome .geHomeBody {
	display: flex;
	flex: 1 1 auto;
	gap: 16px;
	min-height: 0;
}

.geHome .geHomeNav {
	display: flex;
	flex-direction: column;
	flex: 0 0 200px;
	gap: 2px;
	min-height: 0;
	min-width: 0;
	/* Scrolls in short dialogs, with room for the focus rings */
	overflow-y: auto;
	padding: 3px;
	margin: -3px;
}

.geHome .geHomeNavItem {
	flex: 0 0 auto;
	padding: 7px 12px;
	border: none;
	border-radius: 16px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	overflow-wrap: anywhere;
	cursor: pointer;
}

.geHome .geHomeNavItem:hover {
	background: light-dark(var(--soft-hover-color), var(--dark-soft-hover-color));
}

.geHome .geHomeNavItem[aria-current="true"] {
	background: light-dark(var(--selected-color), color-mix(in srgb, var(--dark-focus-color) 20%, transparent));
	font-weight: 600;
}

/* Same ring as buttons (see .geBtn:focus-visible), in the room for the rings
   of the nav and main parts */
.geHome .geHomeNavItem:focus-visible,
.geHome .geHomeCard:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: 1px;
}

.geHome .geHomeNavSeparator {
	margin: 8px 12px;
	border-top: 1px solid light-dark(var(--border-color), var(--dark-border-color));
}

.geHome .geHomeNavFooter {
	margin-top: auto;
	padding: 12px 12px 0 12px;
	overflow-wrap: anywhere;
}

.geHome .geHomeMain {
	flex: 1 1 auto;
	min-width: 0;
	overflow-y: auto;
	padding: 3px;
}

.geHome .geHomeHint {
	margin: 0 0 12px 0;
}

.geHome .geHomeGrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
	gap: 16px;
}

.geHome .geHomeCard {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 12px;
	background: light-dark(var(--card-color), var(--dark-card-color));
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.geHome .geHomeCard:hover {
	border-color: light-dark(var(--strong-border-color), var(--dark-strong-border-color));
}

.geHome .geHomeThumb {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 112px;
	overflow: hidden;
	background: light-dark(var(--soft-color), var(--dark-soft-color));
}

.geHome .geHomeThumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.geHome .geHomeThumb img.geHomePlaceholder {
	width: 40px;
	height: 40px;
	opacity: 0.35;
}

.geHome .geHomeCardText {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	padding: 8px 10px 10px 10px;
}

.geHome .geHomeCardTitle,
.geHome .geHomeCardMeta {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: normal;
}

.geHome .geHomeCardTitle {
	font-weight: 600;
}

.geHome .geHomeCardMeta {
	font-size: 12px;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
}

.geHome .geHomeAddCard {
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 160px;
	padding: 12px;
	border-style: dashed;
	text-align: center;
	color: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
}

.geHome .geHomeAddIcon {
	font-size: 28px;
	line-height: 1;
}

.geHome .geHomeSkeleton {
	pointer-events: none;
}

.geHome .geHomeSkeleton .geHomeThumb,
.geHome .geHomeSkeleton .geHomeCardTitle,
.geHome .geHomeSkeleton .geHomeCardMeta {
	animation: geHomePulse 1.2s ease-in-out infinite;
}

.geHome .geHomeSkeleton .geHomeCardTitle,
.geHome .geHomeSkeleton .geHomeCardMeta {
	height: 12px;
	border-radius: 4px;
	background: light-dark(var(--soft-color), var(--dark-soft-color));
}

.geHome .geHomeSkeleton .geHomeCardTitle {
	width: 70%;
}

.geHome .geHomeSkeleton .geHomeCardMeta {
	width: 40%;
}

@keyframes geHomePulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
	.geHome .geHomeSkeleton .geHomeThumb,
	.geHome .geHomeSkeleton .geHomeCardTitle,
	.geHome .geHomeSkeleton .geHomeCardMeta {
		animation: none;
	}
}

.geHome .geHomeStatus {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 48px 16px;
	text-align: center;
}

.geHome .geHomeStatusTitle {
	font-size: 16px;
	font-weight: 600;
}

.geHome .geHomeMore {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 0 4px 0;
}

/* Narrow dialogs: the nav becomes a scrolling row above the grid */
.geHome.geHomeNarrow .geHomeHeader {
	flex-wrap: wrap;
}

.geHome.geHomeNarrow input.geHomeSearch {
	order: 3;
	flex-basis: 100%;
	max-width: none;
	margin-left: 0;
}

.geHome.geHomeNarrow .geHomeBody {
	flex-direction: column;
	gap: 8px;
}

.geHome.geHomeNarrow .geHomeNav {
	flex: 0 0 auto;
	flex-direction: row;
	overflow-x: auto;
}

.geHome.geHomeNarrow .geHomeNavItem {
	white-space: nowrap;
}

.geHome.geHomeNarrow .geHomeNewButton {
	margin-left: auto;
}

.geHome.geHomeNarrow .geHomeNavSeparator,
.geHome.geHomeNarrow .geHomeNavFooter {
	display: none;
}

.geHome.geHomeNarrow .geHomeGrid {
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

/* Actions shown as links: the Home hint and the Allow access dialog */
.geHomeAccess .geHomeLinks {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 16px;
}

.geHome .geHomeLink,
.geHomeAccess .geHomeLink {
	padding: 0;
	border: none;
	background: none;
	color: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.geHome .geHomeLink:hover,
.geHomeAccess .geHomeLink:hover {
	background: none;
}

/* The sign-in to a storage in the Classic skin (AuthLayout.js,
   docs/dialog-style-guide.md "Sign-in layout"): the Authorize dialog, the end
   of a sign-in and the access to a file of Google Drive as a message with the
   title, the text, Remember Me as a checkbox row, the Terms of Use as a hint
   and the buttons of the theme on the right. The content has 4 on its sides
   inside of the area that scrolls, so the focus rings of its controls are
   not clipped (the dialog has 24) */
.geAuthMessage {
	--auth-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--auth-text-2: light-dark(#5f5f63, var(--dark-secondary-text-color));
	--auth-focus: light-dark(var(--focus-color), var(--dark-focus-color));
	line-height: 20px;
	text-align: left;
}

.geAuthAuthorize,
.geAuthSignedIn {
	padding: 0 4px 10px;
	margin: 0 -4px;
}

.geAuthDriveAccess > div:first-child {
	padding: 0 4px;
	margin: 0 -4px;
}

.geAuthReplaced {
	display: none !important;
}

.geAuthMessage .geAuthText {
	margin: 0;
	color: var(--auth-text);
	white-space: normal;
	overflow-wrap: anywhere;
}

.geAuthMessage h3:has(+ .geAuthSubtitle) {
	margin-bottom: 4px;
}

.geAuthMessage .geAuthSubtitle {
	margin: 0 0 16px;
	font-size: 12px;
	text-align: center;
	color: var(--auth-text-2);
	overflow-wrap: anywhere;
}

.geAuthMessage .geAuthRemember {
	margin-top: 12px;
}

.geAuthMessage .geAuthRemember input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--auth-focus);
	outline-offset: 1px;
}

.geAuthMessage .geAuthNotice {
	margin: 12px 0 0 0;
	color: var(--auth-text-2);
	text-align: left;
}

.geAuthMessage .geAuthNotice a,
.geAuthMessage .geAuthNotice a:visited {
	color: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
}

.geAuthMessage :is(.geAuthNotice a, .geHomeLink):focus-visible {
	outline: 2px solid var(--auth-focus);
	outline-offset: 1px;
	border-radius: 2px;
}

.geAuthMessage .geAuthButtons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	row-gap: 8px;
	margin-top: 34px;
}

/* The logo of the storage in the primary button: 18 with a gap of 8; the
   white logos take the color of the text of the light primary button */
.geAuthMessage .gePrimaryBtn > img.geAuthLogo {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	object-fit: contain;
}

.geAuthMessage .gePrimaryBtn > img.geAuthLogo[src*="-white"] {
	filter: brightness(0) opacity(0.8);
}

.geDarkMode .geAuthMessage .gePrimaryBtn > img.geAuthLogo {
	filter: none;
}

.geDialogCheckRow {
	display: flex;
	align-items: center;
	min-height: 28px;
}

/* Uniform vertical spacing between rows in a section, regardless of row type */
.geDialogSection > .geDialogFormRow,
.geDialogSection > .geDialogCheckRow,
.geDialogSection > .geDialogInlineFields {
	margin-top: 6px;
}

.geDialogSection > .geDialogFormRow:first-child,
.geDialogSection > .geDialogCheckRow:first-child,
.geDialogSection > .geDialogInlineFields:first-child {
	margin-top: 0;
}

.geDialogCheckRow input[type="checkbox"],
.geDialogCheckRow input[type="radio"] {
	margin: 0 8px 0 0;
	flex-shrink: 0;
}

.geDialogCheckRow label {
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	cursor: pointer;
}

.geDialogCheckRow select {
	margin-left: 8px;
	flex: 1;
	min-width: 0;
}

.geDialogInlineFields {
	display: flex;
	gap: 12px;
	align-items: center;
}

.geDialogInlineField {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.geDialog .geCollapsibleTitle {
	margin-top: 4px;
}

/* The title of an Advanced section has the space between sections above and
   below it (see EditorUi.addAdvancedSection) */
.geDialog .geCollapsibleContent {
	margin-top: 10px;
}

.geDialogInlineField label {
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	white-space: nowrap;
}

.geDialogInlineField input[type="text"],
.geDialogInlineField input[type="number"] {
	flex: 1;
	min-width: 0;
}

.geDialog.geInlineDialog {
	padding: 0px;
	left: auto;
	transform: none;
	z-index: 4;
}

.geTransDialog {
	position: absolute;
	overflow: hidden;
}

.geDialogTitle {
	box-sizing: border-box;
	white-space: nowrap;
	border-bottom: 1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
}

.geDialogFooter {
	white-space: nowrap;
	text-align: right;
	box-sizing: border-box;
	border-top: 1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
}

.geMoreShapesSectionHeader {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: light-dark(#5f5f63, var(--dark-secondary-text-color));
	background-color: light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.04));
	padding: 8px 12px 8px 16px;
	border-bottom: 1px solid light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.06));
	user-select: none;
}

.geMoreShapesItem {
	display: flex;
	align-items: center;
	padding: 6px 0 6px 16px;
	cursor: pointer;
	font-size: 13px;
	line-height: normal;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	transition: background-color 0.1s ease;
}

.geMoreShapesItem:hover {
	background-color: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.07));
}

.geMoreShapesItem.geMoreShapesItemSelected {
	background-color: light-dark(var(--selected-color), color-mix(in srgb, var(--dark-focus-color) 20%, transparent));
}

.geMoreShapesItem.geMoreShapesItemSelected:hover {
	background-color: light-dark(var(--selected-hover-color), color-mix(in srgb, var(--dark-focus-color) 25%, transparent));
}

.geMoreShapesItem input[type="checkbox"] {
	margin: 0 8px 0 0;
	flex-shrink: 0;
}

.geMoreShapesItem span {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geMoreShapesPreview {
	border-left: 1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
}

.geMoreShapesPreview img {
	background-color: #ffffff;
}

.geMoreShapesFooterChecks {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	width: 204px;
	flex-shrink: 0;
}

.geMoreShapesFooterCheck {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	cursor: pointer;
	user-select: none;
}

.geMoreShapesFooterCheck input[type="checkbox"] {
	margin: 0;
	flex-shrink: 0;
}

.geEditor .geBaseButton {
	padding: 10px;
	border-radius: 6px;
	cursor: pointer;
	border-width: 1px;
	border-style: solid;
}

.geEditor .geBaseButton:hover {
	background-color: #ececec;
}

.geEditor button.geBigButton {
	color: #ffffff;
	border: none;
	padding: 4px 10px;
	font-size: 14px;
	white-space: nowrap;
	border-radius: 3px;
	background-color: #0052cc;
	cursor: pointer;
	transition: background-color 0.1s ease-out;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geEditor button.geBigButton:hover {
	background-color: #0065ff;
}

.geEditor button.geBigButton:active {
	background-color: #0747a6;
}

html body .geBigStandardButton {
	color: #344563;
	background-color: rgba(9, 30, 66, 0.08);
}

html body .geBigStandardButton:hover {
	background-color: rgba(9, 30, 66, 0.13);
}

html body .geBigStandardButton:active {
	background-color: #F8C382;
	color: #600000;
}

@media print {
	div.geNoPrint {
		display: none !important;
	}
}

html div.mxRubberband {
	border-color: light-dark(#0000DD, white);
	background-color: light-dark(#99ccff, var(--dark-border-color));
}

.geDarkMode div.mxRubberband {
	border-style: dashed;
}

.geEditor div.mxPopupMenu {
	box-shadow: 0px 0px 2px #C0C0C0;
	background-color: var(--ge-panel-color);
	background-image: none;
	border-radius: 4px;
	border-style: solid;
	border-width: 1px;
	border-color: lightgray;
	padding: 3px;
}

.geEditor div.mxPopupMenu.geToolbarMenu {
	border-radius: 10px;
	box-shadow: 0px 0px 3px 1px #d1d1d1;
	padding: 10px 14px 12px 14px;
	background-color: light-dark(var(--ge-panel-color), var(--ge-dark-panel-color));
}

.geToolbarMenu tr.mxPopupMenuItemHover {
	background-color: transparent !important;
}

.geToolbarMenu input[type="checkbox"] {
	margin: 0 6px 0 0;
}

.geToolbarMenu label {
	font-size: 13px;
}

.geSearchSidebar input {
	font-size: 12px;
	box-sizing: border-box;
	border-radius: 18px;
	width: 100%;
	outline: none;
	padding: 6px 20px 6px 10px
}

/* Side panel of Tidy up and Style My Diagram (diagramly/tidy/TidyWindow.js),
   a sibling of the Choose Layout panel: a card at the right of the diagram,
   pictures in two columns, toggles and buttons at the bottom, on the gray of
   the panels of the theme as Arrange my diagram (Kym, 20 November 2026: not
   the white of Fusion, which hosts it in its own panel) */
.geTidyPanel {
	position: fixed;
	z-index: 4;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 14px 14px 12px;
	border: 1px solid light-dark(var(--border-color), var(--dark-border-color));
	border-radius: 12px;
	background: light-dark(var(--ge-panel-color), var(--ge-dark-panel-color));
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-family: inherit;
	font-size: 13px;
	line-height: normal;
	white-space: normal;
}

/* The panel takes the focus when it opens, its controls show theirs */
.geTidyPanel:focus {
	outline: none;
}

.geTidyPanelHeader {
	display: flex;
	align-items: baseline;
	column-gap: 8px;
}

.geTidyPanelTitle {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 16px;
	font-weight: 600;
}

.geTidyPanelCount, .geTidyPanelAbout, .geTidyPanelHint, .geTidyTileHint {
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	font-size: 12px;
}

.geTidyPanelCount {
	flex-shrink: 0;
	white-space: nowrap;
}

.geTidyPanelClose {
	align-self: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	font-size: 18px;
	line-height: 24px;
	cursor: pointer;
}

/* Back to the tiles of Arrange my diagram before the title of the panel
   that its tile Tidy up opened in their place, as Back of the hosts of
   Fusion: the size and colors of the close button, the arrow at the inset
   of the text below */
.geTidyPanelBack {
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin-left: -4px;
	margin-right: -2px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	cursor: pointer;
}

.geTidyPanelBack:hover, .geTidyPanelClose:hover {
	background: light-dark(var(--highlight-color), var(--dark-soft-hover-color));
}

.geTidyPanelAbout, .geTidyPanelHint {
	margin-top: 4px;
}

.geTidyPanelStatus {
	min-height: 16px;
	margin: 8px 0 10px;
	font-size: 12px;
	font-weight: 600;
}

.geTidyPanelTiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: min-content;
	gap: 10px;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 2px;
}

.geTidyPanelBusy .geTidyPanelTiles {
	opacity: 0.5;
}

.geTidyTile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
	padding: 6px 6px 8px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 8px;
	background: light-dark(var(--card-color), var(--dark-card-color));
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.geTidyPanel .geTidyTile:hover {
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
	background: light-dark(var(--card-color), var(--dark-card-color));
}

.geTidyTile:focus-visible, .geTidySegment:focus-visible, .geTidyPanelBack:focus-visible,
.geTidyPanelClose:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

.geTidyTileThumb {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 112px;
	overflow: hidden;
	border-radius: 6px;
	/* The pictures have the colors of dark mode in dark mode (a picture in
	   the colors of light mode sets the color scheme light, TidyWindow.js),
	   the background is the one of the tiles of Arrange my diagram */
	background: light-dark(#f7f7f8, #171717);
	pointer-events: none;
}

.geTidyTileThumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.geTidyTileName {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 6px;
	margin-top: 6px;
	font-size: 13px;
}

.geTidyTileBadge {
	padding: 1px 7px;
	border-radius: 8px;
	background: light-dark(var(--focus-color), var(--dark-focus-color));
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.geTidyTileHint {
	margin-top: 2px;
}

.geTidyPanelFooter {
	display: flex;
	flex-direction: column;
	row-gap: 8px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid light-dark(var(--border-color), var(--dark-border-color));
}

.geTidyPanelRow {
	display: flex;
	align-items: center;
	column-gap: 8px;
}

.geTidyPanelLabel {
	min-width: 64px;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	font-size: 12px;
}

.geTidySegments {
	display: inline-flex;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 6px;
	overflow: hidden;
}

.geTidySegment {
	min-height: 26px;
	padding: 3px 10px;
	border: none;
	background: light-dark(var(--field-color), var(--dark-field-color));
	color: inherit;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.geTidySegments > .geTidySegment + .geTidySegment {
	border-left: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
}

.geTidySegment[aria-pressed="true"] {
	background: light-dark(color-mix(in srgb, var(--focus-color) 14%, var(--field-color)),
		color-mix(in srgb, var(--dark-focus-color) 30%, var(--dark-field-color)));
	color: light-dark(var(--focus-color), #ffffff);
	font-weight: 600;
}

/* A switch: the checkbox stays the control for keyboards and screen readers */
.geTidyToggle {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	column-gap: 8px;
	cursor: pointer;
}

.geTidyPanel .geTidyToggle input[type="checkbox"] {
	position: relative;
	flex-shrink: 0;
	width: 30px;
	height: 18px;
	margin: 0;
	border: none;
	border-radius: 9px;
	background-color: light-dark(#c7c7cc, #5a5a5e);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background-color 0.15s;
}

.geTidyPanel .geTidyToggle input[type="checkbox"]::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	transition: left 0.15s;
}

.geTidyPanel .geTidyToggle input[type="checkbox"]:checked {
	background-color: light-dark(var(--focus-color), var(--dark-focus-color));
}

.geTidyPanel .geTidyToggle input[type="checkbox"]:checked::after {
	left: 14px;
}

.geTidyPanel .geTidyToggle input[type="checkbox"]:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: 2px;
}

.geTidyPanelButtons {
	display: flex;
	justify-content: flex-end;
	column-gap: 8px;
	margin-top: 2px;
}

.geTidyButton {
	min-height: 30px;
	padding: 4px 14px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 6px;
	background: light-dark(var(--field-color), var(--dark-field-color));
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.geTidyButton:hover {
	background: light-dark(var(--soft-hover-color), var(--dark-soft-hover-color));
}

.geTidyButton.geTidyPrimary {
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
	background: light-dark(var(--focus-color), var(--dark-focus-color));
	color: #ffffff;
	font-weight: 600;
}

.geTidyButton.geTidyPrimary:hover {
	background: light-dark(color-mix(in srgb, var(--focus-color) 88%, black),
		color-mix(in srgb, var(--dark-focus-color) 88%, white));
}

.geTidyButton:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: 2px;
}

/* Status messages for screen readers that are not shown (see EditorUi.announce) */
.geLiveRegion {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Cells of the page as a tree (see TextOutlineWindow), with the colors of
   the layers and page tabs. The window collapses the groups itself. */
.geTextOutline {
	position: absolute;
	inset: 0;
	overflow: auto;
	padding: 6px 0;
	box-sizing: border-box;
	font-size: 12px;
	line-height: 16px;
	user-select: none;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
}

.geTextOutline ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.geTextOutline li {
	outline: none;
}

.geTextOutlineItem {
	display: flex;
	align-items: center;
	height: 26px;
	margin: 0 6px;
	padding-right: 8px;
	border-radius: 6px;
	white-space: nowrap;
	cursor: default;
}

.geTextOutlineItem:hover {
	background-color: light-dark(var(--highlight-color), var(--dark-border-color));
}

.geTextOutline li[aria-selected="true"] > .geTextOutlineItem {
	background-color: light-dark(var(--accent-color), var(--dark-accent-color));
	color: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
}

.geTextOutline li[aria-selected="true"] > .geTextOutlineItem:hover {
	background-color: light-dark(var(--accent-hover-color), var(--dark-active-accent-color));
}

.geTextOutline li:focus-visible > .geTextOutlineItem {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

.geTextOutlineToggle {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-right: 2px;
	border-radius: 4px;
}

.geTextOutlineToggle img {
	width: 16px;
	height: 16px;
	opacity: 0.55;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.geTextOutlineToggle:hover img {
	opacity: 1;
}

.geTextOutline li[aria-expanded="false"] > .geTextOutlineItem .geTextOutlineToggle img {
	transform: rotate(-90deg);
}

.geTextOutlineName {
	flex: 0 1 auto;
	min-width: 24px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geTextOutlineLayer > .geTextOutlineItem .geTextOutlineName {
	font-weight: 600;
}

/* Shrinks before the name */
.geTextOutlineKind {
	flex: 0 1000 auto;
	min-width: 0;
	margin-left: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 11px;
}

.geTextOutlineArrow {
	flex: none;
	margin-right: 5px;
}

.geTextOutlineKind,
.geTextOutlineArrow,
.geTextOutlineEmpty {
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
}

.geTextOutline li[aria-selected="true"] > .geTextOutlineItem .geTextOutlineKind,
.geTextOutline li[aria-selected="true"] > .geTextOutlineItem .geTextOutlineArrow {
	color: inherit;
	opacity: 0.75;
}

.geTextOutline > .geBtn {
	display: block;
	margin: 8px auto;
}

.geTextOutlineEmpty {
	padding: 24px 12px;
	text-align: center;
}

/* The Text Outline of Simple on the layout of Fusion's panel in the Classic
   skin (TextOutlineLayout.js, the switch textOutlineWindow): the filter
   above the tree stays at the top while the tree scrolls, a glyph per kind
   in the color of the text, what a connector connects in the secondary
   color, the items around the matches of the filter in the secondary color,
   the field that edits a label in place and the empty state; the rows and
   colors are those of the window above. Fusion has its skin in fusion.css. */
.geTextOutline.geTextOutlineLayout {
	padding-top: 0;
	/* Rows that get the focus scroll out from under the sticky filter
	   (6 + 28 + 2) */
	scroll-padding-top: 36px;
}

.geTextOutlineLayout .geTextOutlineTree {
	padding-top: 6px;
}

.geTextOutlineLayout .geTextOutlineFilter {
	position: sticky;
	top: 0;
	z-index: 1;
	padding: 6px 6px 2px;
	/* The color of the window (table.mxWindow) */
	background-color: light-dark(var(--ge-panel-color), var(--ge-dark-panel-color));
}

.geTextOutlineLayout input.geTextOutlineSearch {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 28px;
	margin: 0;
	padding: 0 8px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 6px;
	background-color: light-dark(var(--field-color), var(--dark-field-color));
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-size: 12px;
	outline: none;
	user-select: text;
}

.geTextOutlineLayout input.geTextOutlineSearch::placeholder {
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	opacity: 1;
}

.geTextOutlineLayout input.geTextOutlineSearch:focus-visible,
.geTextOutlineLayout input.geTextOutlineField:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

.geTextOutlineLayout span.geTextOutlineGlyph,
.geTextOutlineLayout span.geTextOutlineEmptyGlyph {
	display: inline-block;
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--ge-outline-glyph) center / contain no-repeat;
	mask: var(--ge-outline-glyph) center / contain no-repeat;
}

.geTextOutlineLayout span.geTextOutlineGlyph {
	margin-right: 6px;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
}

/* Shrinks before the name */
.geTextOutlineMeta {
	flex: 0 1000 auto;
	min-width: 0;
	margin-left: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 11px;
}

.geTextOutlineMeta,
.geTextOutlineContext > .geTextOutlineItem .geTextOutlineName,
.geTextOutlineNote {
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
}

/* The accent text in full, as the meta of 11 px has 4.5:1 only so */
.geTextOutline li[aria-selected="true"] > .geTextOutlineItem :is(.geTextOutlineMeta, .geTextOutlineGlyph),
.geTextOutline li[aria-selected="true"] > .geTextOutlineItem .geTextOutlineName {
	color: inherit;
}

/* The text keeps 4.5:1 on the hover of a row: the secondary text a little
   darker in light mode, the accent text a little lighter on the hover of a
   selected row in dark mode */
.geTextOutlineLayout li:not([aria-selected="true"]) > .geTextOutlineItem:hover .geTextOutlineMeta,
.geTextOutlineLayout li.geTextOutlineContext:not([aria-selected="true"]) > .geTextOutlineItem:hover .geTextOutlineName {
	color: light-dark(color-mix(in srgb, var(--secondary-text-color) 80%, var(--strong-text-color)),
		var(--dark-secondary-text-color));
}

.geTextOutlineLayout li[aria-selected="true"] > .geTextOutlineItem:hover {
	color: light-dark(var(--accent-text-color), color-mix(in srgb, var(--dark-accent-text-color) 70%, white));
}

.geTextOutlineLayout input.geTextOutlineField {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	height: 22px;
	margin: 0;
	padding: 0 6px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 4px;
	background-color: light-dark(var(--field-color), var(--dark-field-color));
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font: inherit;
	outline: none;
	user-select: text;
}

.geTextOutlineNote {
	padding: 16px 12px;
	text-align: center;
	overflow-wrap: anywhere;
}

.geTextOutlineEmptyState {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.geTextOutlineLayout span.geTextOutlineEmptyGlyph {
	width: 24px;
	height: 24px;
	margin-bottom: 2px;
}

.geTextOutlineEmptyTitle {
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-size: 13px;
	font-weight: 600;
}

.geTextOutlineEmptyHint {
	max-width: 220px;
	line-height: 1.4;
}

/* Same ring as the search of the Home dialog, the outline shows in forced colors */
.geSearchSidebar input:focus {
	outline: 1px solid transparent;
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
	box-shadow: 0 0 0 3px light-dark(color-mix(in srgb, var(--focus-color) 35%, transparent), color-mix(in srgb, var(--dark-focus-color) 35%, transparent));
}

.geSearchSidebar>div {
	margin-bottom: 4px;
}

.geSearchSidebar>div>img.geAdaptiveAsset {
	position: relative;
	top: 4px;
	left: -24px;
	height: 16px;
	opacity: 0.75;
	cursor: pointer;
}

html table.mxPopupMenu {
	border-collapse: collapse;
	margin: 0px;
}

html td.mxPopupMenuItem {
	padding: 7px 30px 7px 30px;
	font-size: 10pt;
}

html td.mxPopupMenuIcon {
	background-color: transparent;
	padding: 0px;
}

table.mxPopupMenu tr {
	font-size: 4pt;
}

table.mxPopupMenu hr {
	color: light-dark(var(--border-color), var(--dark-border-color));
	background-color: light-dark(var(--border-color), var(--dark-border-color));
	border: none;
	height: 1px;
}

html td.mxWindowTitle {
	color: light-dark(var(--text-color), var(--dark-text-color));
	background-image: none;
	padding: 4px;
}

table.geProperties {
	table-layout: fixed;
}

table.geProperties tr td,
table.geProperties tr th {
	height: 21px;
}

.gePropValue {
	width: 100%;
    overflow: hidden;
	white-space: nowrap;
    text-overflow: ellipsis;
}

.gePropHeader,
.gePropRow {
	border: 1px solid light-dark(var(--border-color), var(--dark-border-color));
}

.gePropHeader>.gePropHeaderCell {
	border-top: 0;
	border-bottom: 0;
	text-align: left;
	width: 50%;
}

.gePropHeader>.gePropHeaderCell:first-child {
	border-left: none;
}

.gePropHeader>.gePropHeaderCell:last-child {
	border-right: none;
}

/* The dark mode filter only inverts the text and fold arrow of the header
   cells. Inverting the row would also invert its collapsed borders in Safari,
   whose invert also darkens #e5e5e5 to #0d0d0d instead of #1a1a1a. */
.gePropHeader {
	background-color: light-dark(#e5e5e5, #1a1a1a);
	color: black;
}

/* The second cell has no fold arrow, so its text needs no filter, which
   the contrast checks of assistive tools cannot see (white like the first) */
.geDarkMode .gePropHeader>.gePropHeaderCell:nth-child(2) {
	color: #ffffff;
}

/* Shortcuts in menus with enough contrast on the menu and its highlight */
.geMenuShortcut {
	color: light-dark(#5f5f63, #a0a0a0);
}

.gePropRowCell {
	vertical-align: middle;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 50%;
}

.gePropHeaderCell:nth-child(2),
.gePropRowCell:nth-child(2) {
	border-left: 1px solid light-dark(var(--border-color), var(--dark-border-color));
}

.gePropRow>.gePropRowCell {
	background-color: light-dark(var(--field-color), var(--ge-dark-panel-color));
}

.gePropRowAlt>.gePropRowCell {
	background-color: light-dark(var(--prop-stripe-color), var(--ge-dark-panel-color));
}

.gePropRowDark>.gePropRowCell {
	background-color: light-dark(var(--field-color), var(--ge-dark-panel-color));
	color: light-dark(var(--prop-accent-text-color), var(--dark-text-color));
	font-weight: bold;
}

.gePropRowDarkAlt>.gePropRowCell {
	background-color: light-dark(var(--prop-accent-color), var(--dark-highlight-color));
	color: light-dark(var(--prop-accent-text-color), var(--dark-text-color));
	font-weight: bold;
}

.gePropEditor input:invalid {
	border: 1px solid red;
}

/* Comments CSS */
.geCommentsWin {
	user-select: none;
	height: 100%;
	margin-bottom: 10px;
	overflow: auto;
	font: 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
}

.geCommentsToolbar {
	position: absolute;
	bottom: 0px;
	left: 0px;
	right: 0px;
	overflow: hidden;
	border-width: 1px 0px 0px 0px;
	border-style: solid;
	white-space: nowrap;
}

.geCommentsList {
	position: absolute;
	overflow: auto;
	left: 0px;
	right: 0px;
	top: 0px;
	scroll-behavior: smooth;
}

.geCommentContainer {
	position: relative;
	padding: 10px 12px 8px 12px;
	margin: 7px 8px;
	min-height: 50px;
	display: block;
	background-color: light-dark(var(--card-color), var(--dark-card-color));
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 10px;
	white-space: nowrap;
	box-shadow: 0 1px 3px light-dark(rgba(60, 64, 67, 0.08), rgba(0, 0, 0, 0.25));
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
}

.geCommentHeader {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 32px;
}

.geCommentUserImg {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex: 0 0 auto;
	background-color: light-dark(var(--soft-color), var(--dark-soft-color));
}

.geCommentHeaderTxt {
	overflow: hidden;
	flex: 1 1 auto;
	min-width: 0;
}

.geCommentUsername {
	overflow: hidden;
	white-space: nowrap;
	font-size: 12.5px;
	font-weight: 600;
	text-overflow: ellipsis;
}

.geCommentDate {
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	overflow: hidden;
	white-space: nowrap;
	font-size: 11px;
	text-overflow: ellipsis;
}

.geCommentDate::first-letter {
	text-transform: uppercase;
}

.geCommentTxt {
	font-size: 13px;
	padding-top: 6px;
	white-space: normal;
	min-height: 12px;
	overflow-wrap: break-word;
	user-select: text;
	cursor: text;
}

.geCommentEditTxtArea {
	margin-top: 6px;
	font: inherit;
	font-size: 13px !important;
	min-height: 12px;
	max-width: 100%;
	min-width: 100%;
	width: 100%;
	box-sizing: border-box;
	padding: 6px 8px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 8px;
	background-color: light-dark(var(--field-color), var(--dark-field-color));
	color: inherit;
	outline: none;
	user-select: text;
	transition: border-color .15s, box-shadow .15s;
}

.geCommentEditTxtArea:focus {
	border-color: light-dark(var(--focus-color), var(--dark-focus-color));
	box-shadow: 0 0 0 2px light-dark(color-mix(in srgb, var(--focus-color) 15%, transparent), color-mix(in srgb, var(--dark-focus-color) 25%, transparent));
}

.geCommentEditBtns {
	width: 100%;
	box-sizing: border-box;
	padding-top: 6px;
	display: flex;
	justify-content: flex-end;
	gap: 6px;
}

.geCommentEditBtn {
	padding: 4px 12px !important;
	margin-left: 0;
	border-radius: 6px;
}

.geCommentActions {
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	font-size: 11.5px;
}

.geCommentActionsList {
	list-style-type: none;
	margin: 0px;
	padding: 6px 0 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
}

.geCommentAction {
	display: inline-block;
	padding: 0;
}

.geCommentAction:first-child {
	margin-left: -8px;
}

.geCommentActionLnk {
	cursor: pointer;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	text-decoration: none;
	display: inline-block;
	padding: 3px 8px;
	border-radius: 6px;
	transition: background-color .15s, color .15s;
}

.geCommentActionLnk:hover {
	text-decoration: none;
	background-color: light-dark(var(--soft-hover-color), var(--dark-soft-hover-color));
	color: light-dark(var(--focus-color), var(--dark-focus-color));
}

.geCheckedBtn {
	background-color: #ccc;
	border-top: 1px solid black !important;
	border-left: 1px solid black !important;
}

.geCommentBusyImg {
	position: absolute;
	top: 5px;
	right: 5px;
}

div.geCommentEditTxtArea {
	white-space: pre-wrap;
	overflow-wrap: break-word;
	cursor: text;
}

/* Chip that shows and jumps to the shape a comment is anchored to,
   matching the selector chips in the animation dialog */
.geCommentAnchorRow {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-top: 8px;
	min-width: 0;
}

.geCommentAnchorChip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 22px;
	padding: 1px 10px;
	border-radius: 999px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	background-color: light-dark(var(--soft-color), var(--dark-soft-color));
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	font-size: 11.5px;
	font-weight: 500;
	max-width: 100%;
	min-width: 0;
	white-space: nowrap;
	box-sizing: border-box;
	text-decoration: none;
	cursor: default;
	transition: background-color .15s, border-color .15s, color .15s;
}

.geCommentAnchorChip svg {
	flex: 0 0 auto;
	display: block;
}

.geCommentAnchorChip > span {
	overflow: hidden;
	text-overflow: ellipsis;
}

a.geCommentAnchorChip {
	cursor: pointer;
}

a.geCommentAnchorChip:hover {
	background-color: light-dark(var(--soft-hover-color), var(--dark-field-border-color));
	border-color: light-dark(var(--strong-border-color), var(--dark-strong-border-color));
	color: light-dark(var(--focus-color), var(--dark-focus-color));
	text-decoration: none;
}

.geCommentAnchorChipDeleted {
	border-style: dashed;
	background-color: transparent;
	color: light-dark(var(--faint-text-color), var(--dark-faint-text-color));
	font-style: italic;
}

.geCommentAnchorAttach {
	border-style: dashed;
	background-color: transparent;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
}

a.geCommentAnchorAttach:hover {
	background-color: transparent;
}

/* Disclosure caret on the attach chip (opens the anchor type menu) */
.geCommentAnchorAttach::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-left: 2px;
	border: solid currentColor;
	border-width: 0 1.4px 1.4px 0;
	transform: translateY(-2px) rotate(45deg);
	opacity: .55;
}

.geCommentMentionRow svg {
	vertical-align: middle;
	margin-right: 6px;
}

/* Toolbar and editing area of the small markup editor (notes, tooltips) */
.geMarkupToolbar {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
	margin-bottom: 6px;
}

a.geMarkupTbBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	box-sizing: border-box;
	border-radius: 6px;
	font-size: 12.5px;
	line-height: 1;
	cursor: pointer;
	color: light-dark(var(--text-color), var(--dark-text-color));
	user-select: none;
}

a.geMarkupTbBtn:hover {
	background-color: light-dark(var(--soft-hover-color), var(--dark-soft-hover-color));
}

a.geMarkupTbBtn.geActiveItem {
	background-color: light-dark(var(--mention-background-color), var(--dark-mention-background-color));
	color: light-dark(var(--mention-color), var(--dark-mention-color));
}

a.geMarkupSourceBtn {
	margin-left: auto;
	font-size: 11.5px;
}

/* Overrides the floating note box styles for the WYSIWYG editing area */
.geNoteBox.geMarkupWysiwyg {
	position: static;
	min-width: 0;
	max-width: none;
	max-height: none;
	box-shadow: none;
	z-index: auto;
	overflow: auto;
	background: light-dark(var(--field-color), var(--dark-field-color));
	color: inherit;
	border-color: light-dark(var(--field-border-color), var(--dark-field-border-color));
	cursor: text;
}

.geNoteBox.geMarkupWysiwyg:focus {
	outline: none;
	border-color: light-dark(var(--mention-color), var(--dark-mention-color));
}

/* Dims the diagram while picking a point or area for a comment anchor */
.geCommentAnchorPicking > svg {
	opacity: 0.4;
	transition: opacity .15s ease;
}

/* Shapes carry their own cursor styles so the crosshair is forced on
   everything while picking */
.geCommentAnchorPicking,
.geCommentAnchorPicking * {
	cursor: crosshair !important;
}

/* Rubberband preview while framing an area for a comment anchor */
.geCommentAnchorPickPreview {
	position: absolute;
	border: 1.5px dashed light-dark(var(--focus-color), var(--dark-focus-color));
	background-color: light-dark(color-mix(in srgb, var(--focus-color) 8%, transparent), color-mix(in srgb, var(--dark-focus-color) 12%, transparent));
	border-radius: 2px;
	pointer-events: none;
	z-index: 1;
}

/* Canvas of a client that follows the view of a collaborator */
.geDiagramContainer.geFollowingView {
	box-shadow: inset 0 0 0 2px light-dark(var(--focus-color), var(--dark-focus-color));
}

/* Pulse marker shown after jumping to a point anchor */
.geCommentAnchorMarker {
	position: absolute;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	border-radius: 50%;
	background-color: light-dark(var(--focus-color), var(--dark-focus-color));
	pointer-events: none;
	z-index: 1;
	animation: geCommentAnchorPulse 0.9s ease-out 2;
}

@keyframes geCommentAnchorPulse {
	0% {
		box-shadow: 0 0 0 0 light-dark(color-mix(in srgb, var(--focus-color) 50%, transparent), color-mix(in srgb, var(--dark-focus-color) 60%, transparent));
	}
	100% {
		box-shadow: 0 0 0 18px transparent;
	}
}

.geCommentAnchorRemove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin: 0 -5px 0 1px;
	border-radius: 50%;
	font-size: 13px;
	font-style: normal;
	line-height: 1;
	cursor: pointer;
	color: light-dark(var(--faint-text-color), var(--dark-faint-text-color));
	transition: background-color .15s, color .15s;
}

.geCommentAnchorRemove:hover {
	background-color: light-dark(var(--inactive-color), var(--dark-strong-border-color));
	color: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
}

.geCommentMention {
	color: light-dark(var(--mention-color), var(--dark-mention-color));
	background-color: light-dark(var(--mention-background-color), var(--dark-mention-background-color));
	border-radius: 4px;
	padding: 0px 3px;
	font-weight: 500;
	white-space: nowrap;
}

.geCommentMentionMenu {
	position: absolute;
	z-index: 2;
	max-width: calc(100% - 24px);
	overflow: hidden;
	padding: 4px;
	box-sizing: border-box;
	background-color: light-dark(var(--field-color), var(--dark-field-color));
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.geCommentMentionRow {
	padding: 4px 8px;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 12px;
	border-radius: 6px;
}

.geCommentMentionRow:hover,
.geCommentMentionRowSelected {
	background-color: light-dark(var(--soft-hover-color), var(--dark-soft-hover-color));
}

.geCommentMentionImg {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 6px;
	background-color: light-dark(var(--soft-color), var(--dark-soft-color));
}

/* Inline icon variant of the avatar, eg. for groups without a photo */
span.geCommentMentionImg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
}

span.geCommentMentionImg svg {
	margin: 0;
}

.geCommentMentionGroupTag {
	display: inline-block;
	margin-left: 6px;
	padding: 0px 6px;
	border-radius: 999px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-strong-border-color));
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	font-size: 10px;
	line-height: 14px;
	vertical-align: middle;
}

.geCommentMentionMail {
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	padding-left: 6px;
	font-size: 11px;
}

/* Element+class selector to win over the generic .geButton>span rule */
span.geCommentsBadge {
	position: absolute;
	top: 0px;
	right: 0px;
	min-width: 10px;
	height: 14px;
	line-height: 14px;
	border-radius: 7px;
	padding: 0px 2px;
	background-color: #d74134;
	color: #ffffff;
	font-size: 9px;
	font-weight: bold;
	text-align: center;
	overflow: visible;
	pointer-events: none;
}

/* Cancels out the inversion of the toolbar button in dark mode */
.geDarkMode .geCommentsBadge {
	filter: invert(1);
}

.geAspectDlgListItem {
	width: 120px;
	height: 120px;
	display: inline-block;
	border: 3px solid #F0F0F0;
	border-radius: 5px;
	padding: 5px;
	margin: 2px 2px 20px 2px;
}

.geAspectDlgListItem:hover {
	border: 3px solid #c5c5c5;
}

.geAspectDlgListItemSelected {
	border: 3px solid #3b73af;
}

.geAspectDlgListItemSelected:hover {
	border: 3px solid #405a86;
}

.geAspectDlgListItemText {
	text-overflow: ellipsis;
	max-width: 100%;
	min-height: 2em;
	overflow: hidden;
	text-align: center;
	margin-top: 10px;
}

.geAspectDlgList {
	min-height: 184px;
	white-space: nowrap;
	overflow-x: auto;
}

.geStripedTable {
	border-collapse: collapse;
	width: 100%;
	table-layout: fixed;
}

.geStripedTable td,
.geStripedTable th {
	border: 1px solid #ddd;
	text-align: left;
	padding: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geStripedTable tr:nth-child(odd) {
	background-color: #f2f2f2;
}

.geStripedTable tr:hover {
	background-color: #ddd;
}

.geStripedTable th {
	padding-top: 4px;
	padding-bottom: 4px;
	background-color: #bbb;
}

.geNotification-box {
	display: flex;
	text-align: center;
	position: relative;
	cursor: pointer;
	margin-right: 6px;
	width: 20px;
	order: -1;
}

.geNotification-bell {
	animation: geBellAnim 1s 1s both;
}

.geNotification-bell * {
	display: block;
	margin: 0 auto;
	background-color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
}

.geBell-top {
	width: 2px;
	height: 2px;
	border-radius: 1px 1px 0 0;
}

.geBell-middle {
	width: 12px;
	height: 12px;
	margin-top: -1px;
	border-radius: 7px 7px 0 0;
}

.geBell-bottom {
	position: relative;
	z-index: 0;
	width: 16px;
	height: 1px;
}

.geBell-bottom::before,
.geBell-bottom::after {
	content: '';
	position: absolute;
	top: -4px;
}

.geBell-bottom::before {
	left: 1px;
	border-bottom-width: 4px;
	border-right: 0 solid transparent;
	border-left: 4px solid transparent;
}

.geBell-bottom::after {
	right: 1px;
	border-bottom-width: 4px;
	border-right: 4px solid transparent;
	border-left: 0 solid transparent;
}

.geBell-rad {
	width: 3px;
	height: 2px;
	margin-top: 0.5px;
	border-radius: 0 0 2px 2px;
	animation: geRadAnim 1s 2s both;
}

.geNotification-count {
	position: absolute;
	z-index: 1;
	top: -5px;
	right: -4px;
	width: 13px;
	height: 13px;
	line-height: 13px;
	font-size: 8px;
	border-radius: 50%;
	background-color: #ff4927;
	color: #FFF;
	animation: geZoomAnim 1s 1s both;
}

@keyframes geBellAnim {
	0% {
		transform: rotate(0);
	}

	10% {
		transform: rotate(30deg);
	}

	20% {
		transform: rotate(0);
	}

	80% {
		transform: rotate(0);
	}

	90% {
		transform: rotate(-30deg);
	}

	100% {
		transform: rotate(0);
	}
}

@keyframes geRadAnim {
	0% {
		transform: translateX(0);
	}

	10% {
		transform: translateX(5px);
	}

	20% {
		transform: translateX(0);
	}

	80% {
		transform: translateX(0);
	}

	90% {
		transform: translateX(-5px);
	}

	100% {
		transform: translateX(0);
	}
}

@keyframes geZoomAnim {
	0% {
		opacity: 0;
		transform: scale(0);
	}

	50% {
		opacity: 1;
		transform: scale(1);
	}

	100% {
		opacity: 1;
	}
}

.geNotifPanel {
	height: 300px;
	width: 300px;
	background-color: #fff;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 10px 10px 15px 0 rgba(0, 0, 0, 0.3);
	transition: all .5s ease-in-out;
	position: absolute;
	right: 100px;
	top: 42px;
	z-index: 150;
}

.geNotifPanel .header {
	background-color: light-dark(#cecece, #424242);
	color: light-dark(#707070, #ccc);
	font-size: 15px;
}

.geNotifPanel .header .title {
	display: block;
	text-align: center;
	line-height: 30px;
	font-weight: 600;
}

.geNotifPanel .header .closeBtn {
	position: absolute;
	line-height: 30px;
	cursor: pointer;
	right: 15px;
	top: 0;
}

.geNotifPanel .notifications {
	position: relative;
	background-color: light-dark(transparent, #707070);
	height: 270px;
	overflow-x: hidden;
	overflow-y: auto;
}

.geNotifPanel .notifications .line {
	position: absolute;
	top: 0;
	left: 27px;
	height: 100%;
	width: 3px;
	background-color: #EBEBEB;
}

.geNotifPanel .notifications .notification {
	position: relative;
	z-index: 2;
	margin: 25px 20px 25px 43px;
}

.geNotifPanel .notifications .notification:nth-child(n+1) {
	animation: geHere-am-i 0.5s ease-out 0.4s;
	animation-fill-mode: both;
}

.geNotifPanel .notifications .notification:hover {
	color: #1B95E0;
	cursor: pointer;
}

.geNotifPanel .notifications .notification .circle {
	box-sizing: border-box;
	position: absolute;
	height: 11px;
	width: 11px;
	background-color: #fff;
	border: 2px solid #1B95E0;
	box-shadow: 0 0 0 3px #fff;
	border-radius: 6px;
	top: 0;
	left: -20px;
}

.geNotifPanel .notifications .notification .circle.active {
	background-color: #1B95E0;
}

.geNotifPanel .notifications .notification .time {
	display: block;
	font-size: 11px;
	line-height: 11px;
	margin-bottom: 2px;
}

.geNotifPanel .notifications .notification p {
	font-size: 15px;
	line-height: 20px;
	margin: 0;
}

.geNotifPanel .notifications .notification p b {
	font-weight: 600;
}

@-webkit-keyframes geHere-am-i {
	from {
		transform: translate3d(0, 50px, 0);
		opacity: 0;
	}

	to {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
}

@keyframes geHere-am-i {
	from {
		transform: translate3d(0, 50px, 0);
		opacity: 0;
	}

	to {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
}

.geTempTree {
	margin: 0;
	padding: 0;
}

.geTempTree,
.geTempTreeActive,
.geTempTreeNested {
	list-style-type: none;
	transition: all 0.5s;
}

.geTempTreeCaret {
	box-sizing: border-box;
	cursor: pointer;
	user-select: none;
	padding: 6px;
	width: 100%;
	transition: all 0.5s;
}

.geTempTreeCaret::before {
	content: "\25B6";
	display: inline-block;
	font-size: 10px;
	margin-right: 6px;
}

.geTempTreeCaret-down::before {
	transform: rotate(90deg);
}

.geTempTreeNested {
	height: 0;
	opacity: 0;
}

.geTempTreeActive {
	height: 100%;
	opacity: 1;
}

.geTempTreeActive,
.geTempTreeNested {
	padding-left: 15px;
}

.geTempTreeActive>li,
.geTempTreeNested>li {
	box-sizing: border-box;
	padding: 3px;
	width: 100%;
	cursor: pointer;
	user-select: none;
	transition: all 0.5s;
}

/*Electron Window Controls*/
#geWindow-controls {
	display: grid;
	grid-template-columns: repeat(3, 30px);
	position: absolute;
	top: 2px;
	right: 3px;
	height: 22px;
	-webkit-app-region: no-drag;
}

#geWindow-controls .button {
	grid-row: 1 / span 1;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	user-select: none;
}

#min-button {
	grid-column: 1;
}

#max-button,
#restore-button {
	grid-column: 2;
}

#close-button {
	grid-column: 3;
}

#geWindow-controls .button.dark:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

#geWindow-controls .button.dark:active {
	background-color: rgba(255, 255, 255, 0.2);
}

#geWindow-controls .button.white:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

#geWindow-controls .button.white:active {
	background-color: rgba(0, 0, 0, 0.2);
}

#close-button:hover {
	background-color: #E81123 !important;
}

#close-button:active {
	background-color: #F1707A !important;
}

#restore-button {
	display: none !important;
}

.geMaximized #restore-button {
	display: flex !important;
}

.geMaximized #max-button {
	display: none;
}

.geAtlas .geMenubarContainer:not(.geDarkMode *),
.geAtlas .gePrimaryBtn.geEmbedBtn:not(.geDarkMode *) {
	background-color: #1868db;
	color: #ffffff;
}

.geAtlas .gePrimaryBtn.geEmbedBtn:not(.geDarkMode *) {
	border: black;
}

.geAtlas .gePrimaryBtn.geEmbedBtn:hover:not(.geDarkMode *, [disabled]) {
	background-color: #1558bc !important;
}

.geAtlas .geMenubarContainer .geItem:hover:not(.geDarkMode *) {
	background-color: rgba(9, 30, 66, 0.48) !important;
}

.geAtlas .geMenubar .geButtonContainer {
	margin-top: 0px;
}

.geAtlas .geStatus,
.geAtlas .geStatus>div:not(.geStatusAlert) {
	opacity: 1;
}

.geAtlas .geMenubar .geButtonContainer .geButton {
	margin: 0;
	opacity: 0.85;
}

.geAtlas .geMenubar .geButtonContainer .geButton:hover {
	background-color: transparent;
	opacity: 1 !important;
}

.geEditor.geAtlas>.geMenubarContainer {
	height: 40px;
}

.geEditor.geAtlas>.geMenubarContainer .geMenubar {
	padding-left: 12px;
	height: 100%;
	top: 0;
}

.geAtlas .geMenubarContainer .geItem {
	padding-left: 12px;
	padding-right: 12px;
}

.geEditor *::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

.geEditor *::-webkit-scrollbar-track {
	background-clip: padding-box;
	border: solid transparent;
	border-width: 1px;
}

.geEditor *::-webkit-scrollbar-corner {
	background-color: transparent;
}

.geEditor *::-webkit-scrollbar-thumb {
	background-color: light-dark(var(--scrollbar-color), var(--dark-scrollbar-color));
	background-clip: padding-box;
	border: solid transparent;
	border-radius: 4px;
}

.geEditor *::-webkit-scrollbar-thumb:hover {
	background-color: light-dark(var(--scrollbar-hover-color), var(--dark-border-color));
}

[draggable="true"] {
	transform: translate(0, 0);
	z-index: 0;
}

/* Omnibox: one search for actions, menus and the format of the selection
   (see Omnibox.js), in the layout of the concept of the command palette
   with the gray, the borders, the text and the font of the theme (Kym, 20
   November 2026: not the white of Fusion, whose tokens are in fusion.css).
   Above the menus and the windows, below the dialogs that its entries open
   after it is hidden. */
.geOmniboxBackdrop {
	position: fixed;
	inset: 0;
	z-index: 10007;
	background: light-dark(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.45));
}

.geOmnibox {
	--omnibox-accent: light-dark(var(--focus-color), var(--dark-focus-color));
	--omnibox-accent-text: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
	--omnibox-ring: light-dark(color-mix(in srgb, var(--focus-color) 15%, transparent),
		color-mix(in srgb, var(--dark-focus-color) 25%, transparent));
	--omnibox-active: light-dark(var(--accent-color), var(--dark-accent-color));
	--omnibox-text: light-dark(var(--strong-text-color), var(--dark-strong-text-color));
	--omnibox-heading: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	--omnibox-detail: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	--omnibox-faint: light-dark(var(--faint-text-color), var(--dark-faint-text-color));
	--omnibox-key: light-dark(#5f6368, #bdc1c6);
	--omnibox-key-line: light-dark(#c4c7c5, #5f6368);
	--omnibox-tile: light-dark(var(--inactive-color), var(--dark-soft-color));
	--omnibox-line: light-dark(var(--border-color), var(--dark-border-color));
	--omnibox-row-line: light-dark(var(--inactive-color), var(--dark-border-color));
	--omnibox-field: light-dark(var(--field-color), var(--dark-field-color));
	position: fixed;
	z-index: 10008;
	top: 90px;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	max-width: calc(100% - 32px);
	max-height: calc(100% - 120px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: 14px;
	border-radius: 12px;
	border: 1px solid light-dark(var(--border-color), var(--dark-border-color));
	background: light-dark(var(--ge-panel-color), var(--ge-dark-panel-color));
	color: var(--omnibox-text);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
	font-family: inherit;
	font-size: 13px;
	line-height: normal;
	text-align: left;
	user-select: none;
}

.geOmniboxBar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 9px 12px;
	box-sizing: border-box;
	border-radius: 10px;
	border: 1.5px solid var(--omnibox-accent);
	box-shadow: 0 0 0 3px var(--omnibox-ring);
	background: var(--omnibox-field);
}

.geOmniboxSearchIcon {
	flex: none;
	width: 18px;
	height: 18px;
}

/* Above the fields of the editor (.geEditor input) */
.geOmnibox .geOmniboxBar input:not(.geButton) {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: none;
	outline: none;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 15px;
	line-height: 20px;
	user-select: text;
}

.geOmnibox .geOmniboxBar input::placeholder {
	color: var(--omnibox-faint);
}

/* The key / that opens the omnibox, in a square (the input has no
   placeholder); a click on it hides the omnibox */
.geOmniboxKey {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 20px;
	height: 20px;
	padding: 0 4px;
	border: 1px solid var(--omnibox-key-line);
	border-radius: 4px;
	color: var(--omnibox-key);
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

.geOmniboxScope {
	flex: none;
	padding: 2px 9px;
	border: none;
	border-radius: 10px;
	background: var(--omnibox-active);
	color: var(--omnibox-accent-text);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.geOmniboxScope::after {
	content: '\00d7';
	margin-left: 6px;
	font-weight: normal;
}

/* Under the search field of a toolbar (see Omnibox.getAnchor): the input
   lies over the field and the list drops below it, no dimming */
.geOmniboxBackdropClear {
	background: transparent;
}

.geOmnibox.geOmniboxAnchored {
	transform: none;
	padding: 4px;
}

.geOmnibox.geOmniboxAnchored .geOmniboxFooter {
	display: none;
}

/* The whole window (phones) */
.geOmnibox.geOmniboxFull {
	inset: 0;
	top: 0;
	left: 0;
	width: auto;
	max-width: none;
	max-height: none;
	transform: none;
	border-radius: 0;
	border: none;
}

/* No keys on phones; the bar has a close button */
.geOmnibox.geOmniboxFull .geOmniboxFooter {
	display: none;
}

.geOmniboxClose {
	flex: none;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--omnibox-detail);
	font: inherit;
	font-size: 20px;
	cursor: pointer;
}

.geOmniboxHeading {
	display: flex;
	align-items: baseline;
}

.geOmniboxHeadingTitle {
	overflow: hidden;
	text-overflow: ellipsis;
}

.geOmniboxMatch {
	background: transparent;
	color: inherit;
	font-weight: 700;
}

.geOmniboxList {
	flex: 1 1 auto;
	min-height: 0;
	margin-top: 4px;
	overflow-y: auto;
}

.geOmniboxHeading {
	margin: 12px 4px 6px 4px;
	color: var(--omnibox-heading);
	font-size: 10.5px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.geOmniboxItem {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 8px;
	border-radius: 8px;
	cursor: pointer;
}

.geOmniboxItem.geOmniboxActive {
	background: var(--omnibox-active);
}

.geOmniboxItem.geOmniboxDisabled {
	cursor: default;
}

.geOmniboxItem.geOmniboxDisabled .geOmniboxLabel,
.geOmniboxItem.geOmniboxDisabled .geOmniboxTile {
	opacity: 0.5;
}

.geOmniboxTile {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 7px;
	background: var(--omnibox-tile);
}

.geOmniboxTile img {
	width: 18px;
	height: 18px;
}

.geOmniboxText {
	flex: 1;
	min-width: 0;
}

.geOmniboxLabel,
.geOmniboxDetail,
.geOmniboxShortcut {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geOmniboxLabel {
	font-weight: 500;
}

.geOmniboxDetail {
	margin-top: 1px;
	color: var(--omnibox-detail);
	font-size: 11.5px;
	line-height: 1.25;
}

.geOmniboxSide {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 40%;
	color: var(--omnibox-faint);
	font-size: 11px;
}

.geOmniboxShortcut {
	min-width: 0;
}

.geOmniboxEnter {
	display: none;
	width: 10px;
	text-align: center;
}

.geOmniboxActive:not(.geOmniboxDisabled) .geOmniboxEnter {
	display: block;
}

/* State of an entry that is on or off */
.geOmniboxSwitch {
	position: relative;
	flex: none;
	width: 30px;
	height: 16px;
	box-sizing: border-box;
	border-radius: 8px;
	background: light-dark(#cccccc, #5f6368);
}

.geOmniboxSwitch::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ffffff;
}

.geOmniboxSwitch.geOmniboxOn {
	background: var(--omnibox-accent);
}

.geOmniboxSwitch.geOmniboxOn::after {
	left: auto;
	right: 2px;
	background: light-dark(#ffffff, #202124);
}

.geOmniboxEmpty {
	padding: 12px 8px 4px 8px;
	color: var(--omnibox-detail);
}

.geOmniboxFooter {
	display: flex;
	gap: 14px;
	flex: 0 0 auto;
	margin: 6px 2px 0 2px;
	padding: 8px 6px 0 6px;
	border-top: 1px solid var(--omnibox-line);
	color: var(--omnibox-detail);
	font-size: 11.5px;
}

.geOmniboxHintKey {
	margin-right: 4px;
}

/* Settings of the format scope: rows with lines and no icons */
.geOmniboxScopeFormat .geOmniboxTile {
	display: none;
}

.geOmniboxScopeFormat .geOmniboxItem {
	padding: 7px 6px;
	border-radius: 6px;
	box-shadow: 0 1px 0 var(--omnibox-row-line);
}

@media (forced-colors: active) {
	.geOmniboxItem.geOmniboxActive {
		outline: 2px solid Highlight;
	}

	.geOmniboxSwitch {
		border: 1px solid CanvasText;
	}

	.geOmniboxSwitch.geOmniboxOn::after {
		background: CanvasText;
	}
}

/* Control of the format panel that the omnibox shows */
.geOmniboxHighlight {
	border-radius: 4px;
	animation: geOmniboxHighlight 2.4s ease-out;
}

@keyframes geOmniboxHighlight {
	0%, 50% {
		background-color: light-dark(#fde293, #5c4a00);
		box-shadow: 0 0 0 3px light-dark(#fde293, #5c4a00);
	}
	100% {
		background-color: transparent;
		box-shadow: 0 0 0 3px transparent;
	}
}

/* Without motion the control is marked while the highlight lasts
   (Omnibox.highlightDelay), without the fade */
@media (prefers-reduced-motion: reduce) {
	.geOmniboxHighlight {
		animation: none;
		background-color: light-dark(#fde293, #5c4a00);
		box-shadow: 0 0 0 3px light-dark(#fde293, #5c4a00);
	}
}

/* Search button of the format panel (see Format.createSearchButton) */
.geFormatTitleContainerWithSearch {
	margin-right: 34px;
}

.geFormatSearchButton {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	box-sizing: border-box;
	border-left: 1px solid;
	border-bottom: 1px solid;
	border-color: light-dark(var(--border-color), var(--dark-border-color));
	background: light-dark(var(--inactive-color), var(--dark-highlight-color));
	cursor: pointer;
}

.geFormatSearchButton img {
	width: 18px;
	height: 18px;
	opacity: 0.7;
}

.geFormatSearchButton:hover img {
	opacity: 1;
}

.geFormatSearchButton:focus-visible {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -2px;
}

/* The inline toolbar of Fusion in the other themes (InlineToolbarLook.js sets
   geInlineToolbarUi on the diagram container outside Fusion): the tokens of
   fusion.css with their values (the colors of Fusion in light and dark mode,
   its font, sizes, radii and shadows), so the toolbar looks the same in every
   theme. The token blocks below are copies of the first blocks of fusion.css
   (.geSimpleModern replaced by .geInlineToolbarUi, the test
   inline-toolbar-tokens of test/classic-simple compares them), and the rules
   after them mirror the rules of the toolbar, its popovers and their lists
   in fusion.css; a change there is made here too. */
.geInlineToolbarUi {
	--sm-canvas: light-dark(#F5F6F8, #121418);
	--sm-surface: light-dark(#FFFFFF, #1C1F24);
	--sm-raised: light-dark(#FFFFFF, #1C1F24);
	--sm-surface-2: light-dark(#F2F4F7, #252930);
	--sm-surface-3: light-dark(#E7EAEF, #30353D);
	--sm-field: light-dark(#F2F4F7, #252930);
	--sm-field-border: transparent;
	--sm-border: light-dark(#E3E6EB, #2D3239);
	--sm-border-strong: light-dark(#C9CFD8, #424852);
	--sm-text: light-dark(#1B1F24, #E8EAED);
	--sm-text-2: light-dark(#5A626E, #A8B0BA);
	--sm-text-3: light-dark(#646C79, #8F97A2);
	--sm-accent: light-dark(#1F5FDB, #6A9BFF);
	--sm-accent-hover: light-dark(#184FB8, #86AEFF);
	--sm-accent-soft: light-dark(#E8F0FE, rgba(106, 155, 255, 0.16));
	--sm-on-accent: light-dark(#FFFFFF, #0B1630);
	--sm-new: light-dark(#E8590C, #FF9548);
	--sm-new-soft: light-dark(#FFF0E5, rgba(255, 149, 72, 0.16));
	--sm-new-text: light-dark(#B5470A, #FF9548);
	--sm-success: light-dark(#1E7F3E, #5BC27A);
	--sm-danger: light-dark(#C9302C, #FF7B72);
	--sm-scrim: light-dark(rgba(18, 22, 28, 0.32), rgba(0, 0, 0, 0.55));
	--sm-thumb: light-dark(#FFFFFF, #0B1630);
	--sm-knob: #FFFFFF;
	--sm-logo: #F08705;
	--sm-paper: #FFFFFF;
	--sm-paper-grid: rgba(0, 0, 0, 0.06);
	--sm-swatch-edge: light-dark(rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.16));
	--sm-focus-color: light-dark(rgba(31, 95, 219, 0.35), rgba(106, 155, 255, 0.45));
	--sm-focus: 0 0 0 3px var(--sm-focus-color);
	--sm-hairline: light-dark(transparent, rgba(255, 255, 255, 0.06));
	--sm-e1: 0 1px 2px light-dark(rgba(16, 24, 40, 0.06), rgba(0, 0, 0, 0.4)),
		0 1px 3px light-dark(rgba(16, 24, 40, 0.06), rgba(0, 0, 0, 0));
	--sm-e2: 0 4px 14px light-dark(rgba(16, 24, 40, 0.08), rgba(0, 0, 0, 0.45)),
		0 1px 3px light-dark(rgba(16, 24, 40, 0.06), rgba(0, 0, 0, 0)),
		0 0 0 1px var(--sm-hairline);
	--sm-e3: 0 18px 44px light-dark(rgba(16, 24, 40, 0.18), rgba(0, 0, 0, 0.6)),
		0 3px 8px light-dark(rgba(16, 24, 40, 0.08), rgba(0, 0, 0, 0)),
		0 0 0 1px var(--sm-hairline);
	--sm-e-sheet: 0 -4px 20px light-dark(rgba(16, 24, 40, 0.1), rgba(0, 0, 0, 0.5));
	--sm-knob-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	--sm-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif;
	--sm-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--sm-fs-caption: 11px;
	--sm-fs-hint: 12px;
	--sm-fs-control: 13px;
	--sm-fs-body: 14px;
	--sm-fs-title: 16px;
	--sm-fs-headline: 20px;
	--sm-r-xs: 4px;
	--sm-r-s: 6px;
	--sm-r-m: 8px;
	--sm-r-l: 12px;
	--sm-r-xl: 16px;
	--sm-hit: 36px;
	--sm-row: 36px;
	--sm-ctl: 32px;
	--sm-icon: 20px;
	--sm-s1: 4px;
	--sm-s2: 8px;
	--sm-s3: 12px;
	--sm-s4: 16px;
	--sm-s5: 20px;
	--sm-s6: 24px;
	--sm-s8: 32px;
	--sm-inset: 2px;
	--sm-fast: 120ms;
	--sm-med: 200ms;
	--sm-exit: 90ms;
	--sm-enter: 160ms;
	--sm-rise: 180ms;
	--sm-ease: cubic-bezier(0.2, 0, 0, 1);
}

/* 44 px targets for coarse pointers, no motion if reduced, system colors if
   forced or configured (as in fusion.css) */
@media (pointer: coarse) {
	.geInlineToolbarUi {
		--sm-hit: 44px;
		--sm-row: 48px;
		--sm-ctl: 40px;
		--sm-fs-control: 14px;
		--sm-icon: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.geInlineToolbarUi {
		--sm-fast: 0ms;
		--sm-med: 0ms;
		--sm-exit: 0ms;
		--sm-enter: 0ms;
		--sm-rise: 0ms;
	}
}

@media (forced-colors: active) {
	.geInlineToolbarUi {
		--sm-canvas: Canvas;
		--sm-surface: Canvas;
		--sm-raised: Canvas;
		--sm-surface-2: Canvas;
		--sm-surface-3: Canvas;
		--sm-field: Canvas;
		--sm-border: CanvasText;
		--sm-border-strong: ButtonBorder;
		--sm-text: CanvasText;
		--sm-text-2: CanvasText;
		--sm-text-3: CanvasText;
		--sm-accent: Highlight;
		--sm-accent-hover: Highlight;
		--sm-accent-soft: Canvas;
		--sm-on-accent: HighlightText;
		--sm-new: Highlight;
		--sm-new-soft: Canvas;
		--sm-new-text: CanvasText;
		--sm-success: CanvasText;
		--sm-danger: Highlight;
		--sm-scrim: transparent;
		--sm-thumb: Canvas;
		--sm-knob: Canvas;
		--sm-focus-color: Highlight;
	}
}

@media (forced-colors: none) {
	:root.geSystemColors .geInlineToolbarUi {
		--sm-canvas: light-dark(color-mix(in srgb, CanvasText 3.5%, Canvas), color-mix(in srgb, CanvasText 1%, Canvas));
		--sm-surface: light-dark(Canvas, color-mix(in srgb, CanvasText 5.5%, Canvas));
		--sm-raised: light-dark(Canvas, color-mix(in srgb, CanvasText 5.5%, Canvas));
		--sm-surface-2: light-dark(color-mix(in srgb, CanvasText 4%, Canvas), color-mix(in srgb, CanvasText 10%, Canvas));
		--sm-surface-3: light-dark(color-mix(in srgb, CanvasText 8%, Canvas), color-mix(in srgb, CanvasText 15%, Canvas));
		--sm-field: light-dark(color-mix(in srgb, CanvasText 4%, Canvas), color-mix(in srgb, CanvasText 10%, Canvas));
		--sm-border: light-dark(color-mix(in srgb, CanvasText 9.5%, Canvas), color-mix(in srgb, CanvasText 13.5%, Canvas));
		--sm-border-strong: light-dark(color-mix(in srgb, CanvasText 18.5%, Canvas), color-mix(in srgb, CanvasText 22.5%, Canvas));
		--sm-text: light-dark(color-mix(in srgb, CanvasText 88%, Canvas), color-mix(in srgb, CanvasText 91%, Canvas));
		--sm-text-2: light-dark(color-mix(in srgb, CanvasText 61%, Canvas), color-mix(in srgb, CanvasText 66%, Canvas));
		--sm-text-3: light-dark(color-mix(in srgb, CanvasText 57%, Canvas), color-mix(in srgb, CanvasText 56%, Canvas));
	}
}

@keyframes geInlineToolbarPopIn {
	from {
		opacity: 0;
		scale: 0.98;
	}
}

/* Every dropdown of the inline toolbar has the frame of the context menu of
   the theme (the driver, 17 November 2026: "müsste der Hintergrund nicht
   grau sein beim Shape Inline Dropdown oder muss das so sein wie das
   Kontextmenü?"): the background, border, radius and shadow of
   .geEditor div.mxPopupMenu and its dark mode (#F1F3F4, lightgray, 4 and
   0 0 2px #C0C0C0; #1B1D1E, #333333, 4 and no shadow), which the frame of
   the popovers, their lists and the arrow use instead of Fusion's surface,
   radius 12 and e3; the toolbar keeps its bar (surface-2) with the same
   shadow (test inline-toolbar-menu-frame of test/classic-simple). On the
   grey frame of light mode the fields and hovers of surface-2 are one step
   darker (surface-3), so they keep their edge as on white. Danger-soft is
   the token of fusion.css for the hover of Delete. */
.geEditor .geInlineToolbarUi {
	--ge-menu-surface: var(--ge-panel-color);
	--ge-menu-border: lightgray;
	--ge-menu-radius: 4px;
	--ge-menu-shadow: 0px 0px 2px #C0C0C0;
	--sm-danger-soft: light-dark(#FCEBEA, rgba(255, 123, 114, 0.16));
}

.geEditor.geMinimal .geInlineToolbarUi {
	--ge-menu-surface: light-dark(var(--toolbar-color), var(--dark-toolbar-color));
}

html body.geDarkMode.geEditor .geInlineToolbarUi {
	--ge-menu-surface: var(--ge-dark-panel-color);
	--ge-menu-border: var(--dark-border-color);
	--ge-menu-shadow: none;
}

html body.geEditor:not(.geDarkMode) .geInlineToolbarUi :is(.geSmToolbarPanel, .geSmInlineList) {
	--sm-surface-2: var(--sm-surface-3);
}

@media (forced-colors: active) {
	.geEditor .geInlineToolbarUi {
		--sm-danger-soft: Canvas;
	}
}

/* Mirrors fusion.css: the tool pill, the frame and the sections of the popovers, their rows, controls and lists */

.geInlineToolbarUi div:has(>.geSmToolbarPanel) {
	transform-origin: left top;
	animation: geInlineToolbarPopIn var(--sm-fast) var(--sm-ease);
}

@media (forced-colors: active) {
	.geInlineToolbarUi .geSmSeg>button.geSmOn {
		outline: 2px solid Highlight;
	}
}

.geInlineToolbarUi .geSmIcon {
	display: inline-block;
	flex: 0 0 auto;
	width: var(--sm-icon);
	height: var(--sm-icon);
	background-color: currentColor;
	-webkit-mask: var(--sm-ic) center / contain no-repeat;
	mask: var(--sm-ic) center / contain no-repeat;
}

.geInlineToolbarUi .geSmIconBtn,
.geInlineToolbarUi .geSmSeg>button {
	font-family: var(--sm-font);
	-webkit-tap-highlight-color: transparent;
}

.geInlineToolbarUi .geSmIconBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: var(--sm-hit);
	height: var(--sm-hit);
	margin: 0;
	padding: 0;
	border: none;
	border-radius: var(--sm-r-m);
	background: transparent;
	color: var(--sm-bar-muted, var(--sm-text-2));
	cursor: pointer;
	transition: background-color var(--sm-fast) var(--sm-ease), color var(--sm-fast) var(--sm-ease);
}

.geInlineToolbarUi .geSmIconBtn:hover {
	background: var(--sm-surface-2);
	color: var(--sm-text);
}

.geInlineToolbarUi .geSmIconBtn.geSmOn {
	background: var(--sm-accent-soft);
	color: var(--sm-accent);
}

.geInlineToolbarUi .geSmIconBtn:focus-visible,
.geInlineToolbarUi .geSmSeg>button:focus-visible {
	outline: none;
	box-shadow: var(--sm-focus);
}

.geInlineToolbarUi .geSmSectionHead {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 24px;
	margin: 0;
	font-size: var(--sm-fs-caption);
	line-height: 16px;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sm-text-3);
	white-space: normal;
}

.geInlineToolbarUi .geSmSectionHead .geSmIcon {
	--sm-icon: 16px;
	color: var(--sm-accent);
}

.geInlineToolbarUi .geSmSeg {
	display: inline-flex;
	flex-wrap: wrap;
	box-sizing: border-box;
	max-width: 100%;
	padding: 2px;
	gap: 2px;
	border-radius: var(--sm-r-m);
	background: var(--sm-surface-2);
}

.geInlineToolbarUi .geSmSeg>button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 auto;
	box-sizing: border-box;
	max-width: 100%;
	min-height: calc(var(--sm-ctl) - 4px);
	height: auto;
	margin: 0;
	padding: 0 12px;
	line-height: 20px;
	border: none;
	border-radius: var(--sm-r-s);
	background: transparent;
	color: var(--sm-text-2);
	font-size: var(--sm-fs-control);
	font-weight: 400;
	white-space: normal;
	overflow-wrap: break-word;
	cursor: pointer;
	transition: background-color var(--sm-fast) var(--sm-ease), color var(--sm-fast) var(--sm-ease),
		box-shadow var(--sm-fast) var(--sm-ease);
}

.geInlineToolbarUi .geSmSeg>button:hover:not([disabled]) {
	color: var(--sm-text);
}

.geInlineToolbarUi .geSmSeg>button.geSmOn {
	background: light-dark(var(--sm-raised), var(--sm-surface-3));
	color: var(--sm-text);
	font-weight: 600;
	box-shadow: var(--sm-e1);
}

.geInlineToolbarUi .geSmSeg>button[disabled] {
	opacity: 0.45;
	cursor: default;
}

.geInlineToolbarUi .geSmToolbarPanel {
	box-sizing: border-box;
	padding: 3px !important;
	border: 1px solid var(--ge-menu-border);
	border-radius: var(--ge-menu-radius);
	background: var(--ge-menu-surface);
	box-shadow: var(--ge-menu-shadow);
	color: var(--sm-text);
	font-family: var(--sm-font);
	font-size: var(--sm-fs-body);
	line-height: 20px;
	text-align: left;
	white-space: normal;
}

.geInlineToolbarUi .geSmToolbarPanel.geSmToolbarMore {
	width: 320px;
}

/* The popover of Bundle (ties) is 300 wide, as in Fusion */
.geInlineToolbarUi .geSmToolbarPanel.geSmToolbarBundle {
	width: 300px;
}

/* The sparkle of Suggested (concept 3.9): 16 in the accent, also the
   caption it heads, as in Fusion */
.geInlineToolbarUi .geSmSparkle {
	--sm-icon: 16px;
	flex: none;
	color: var(--sm-accent);
}

.geInlineToolbarUi .geSmSectionHead:has(>.geSmSparkle) {
	color: var(--sm-accent);
}

.geInlineToolbarUi .geSmToolbarArrow {
	background: var(--ge-menu-border);
}

.geInlineToolbarUi .geSmToolbarArrowFill {
	background: var(--ge-menu-surface);
}

.geInlineToolbarUi .geSmToolbarSection+.geSmToolbarSection {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid var(--sm-border);
}

.geInlineToolbarUi .geSmToolbarPanel .geSmSectionHead {
	box-sizing: border-box;
	min-height: 28px;
	padding: 4px 12px;
}

.geInlineToolbarUi .geSmToolbarRow {
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
	min-height: var(--sm-row);
	margin: 0;
	padding: 4px 12px;
	border: none;
	border-radius: var(--sm-r-m);
	background: transparent;
	color: var(--sm-text);
	font-family: var(--sm-font);
	font-size: var(--sm-fs-body);
	line-height: 20px;
	text-align: left;
	cursor: pointer;
	transition: background-color var(--sm-fast) var(--sm-ease);
}

.geInlineToolbarUi .geSmToolbarRow:hover,
.geInlineToolbarUi .geSmToolbarRow:focus-visible {
	background: var(--sm-accent-soft);
}

.geInlineToolbarUi .geSmToolbarRow:focus-visible,
.geInlineToolbarUi .geSmToolbarTile:focus-visible {
	outline: none;
	box-shadow: var(--sm-focus);
}

.geInlineToolbarUi .geSmToolbarRowIcon {
	--sm-icon: 18px;
	color: var(--sm-text-2);
}

.geInlineToolbarUi .geSmToolbarRowText {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.geInlineToolbarUi .geSmToolbarRowTitle {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.geInlineToolbarUi .geSmToolbarRowLabel {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geInlineToolbarUi .geSmToolbarRowHint {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: var(--sm-fs-hint);
	line-height: 16px;
	color: var(--sm-text-2);
}

.geInlineToolbarUi .geSmToolbarPanel .geSmKbd {
	display: inline-flex;
	flex: none;
	justify-content: center;
	box-sizing: border-box;
	min-width: 20px;
	height: 20px;
	padding: 0 3px;
	border: 1px solid var(--sm-border-strong);
	border-radius: var(--sm-r-xs);
	font-family: var(--sm-font);
	font-size: var(--sm-fs-caption);
	line-height: 18px;
	color: var(--sm-text-3);
}

.geInlineToolbarUi .geSmToolbarTiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	padding: 0 12px 8px 12px;
}

.geInlineToolbarUi .geSmToolbarTile {
	display: flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-width: 0;
	min-height: 28px;
	margin: 0;
	padding: 3px 7px;
	border: 1px solid var(--sm-border-strong);
	border-radius: var(--sm-r-m);
	background: var(--sm-raised);
	color: var(--sm-text);
	font-family: var(--sm-font);
	font-size: var(--sm-fs-control);
	line-height: 16px;
	text-align: left;
	cursor: pointer;
	transition: background-color var(--sm-fast) var(--sm-ease);
}

.geInlineToolbarUi .geSmToolbarTile:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

/* A tile whose name does not fit two lines of its column, also in the
   weight of an on tile, takes both columns, and so does a tile that would
   be alone in its row (InlineToolbar.fitSimpleTiles); the groups it fitted
   place their last tile by that rule only */
.geInlineToolbarUi .geSmToolbarTilesFitted>.geSmToolbarTile:last-child:nth-child(odd):not(.geSmToolbarTileWide) {
	grid-column: auto;
}

.geInlineToolbarUi .geSmToolbarTiles>.geSmToolbarTile.geSmToolbarTileWide {
	grid-column: 1 / -1;
}

/* While fitSimpleTiles measures a name, a word that does not fit overflows */
.geInlineToolbarUi .geSmToolbarTileMeasure .geSmToolbarTileLabel {
	overflow-wrap: normal;
}

.geInlineToolbarUi .geSmToolbarTile .geSmIcon {
	--sm-icon: 16px;
	flex: none;
}

/* Only tiles that are off and enabled: an on tile keeps --sm-accent-soft
   under the pointer (as in fusion.css) */
.geInlineToolbarUi .geSmToolbarTile:not(.geSmOn):not(:disabled):hover {
	background: var(--sm-surface-2);
}

.geInlineToolbarUi .geSmToolbarTile.geSmOn {
	border-color: transparent;
	background: var(--sm-accent-soft);
	color: var(--sm-accent);
	font-weight: 600;
}

.geInlineToolbarUi .geSmToolbarTile:disabled {
	opacity: 0.45;
	cursor: default;
}

.geInlineToolbarUi .geSmToolbarTileLabel {
	display: -webkit-box;
	min-width: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow-wrap: break-word;
}

@media (pointer: coarse) {
	.geInlineToolbarUi .geSmToolbarTile {
		min-height: 36px;
	}
}

.geInlineToolbarUi .geSmToolbarDelete,
.geInlineToolbarUi .geSmToolbarDelete .geSmToolbarRowIcon {
	color: var(--sm-danger);
}

.geInlineToolbarUi .geSmToolbarDelete:hover,
.geInlineToolbarUi .geSmToolbarDelete:focus-visible {
	background: var(--sm-danger-soft);
}

.geInlineToolbarUi .geSmToolbarDelete:disabled {
	background: transparent;
	opacity: 0.45;
	cursor: default;
}

.geInlineToolbarUi .geSmToolbarSearch .geSmToolbarRowIcon {
	color: var(--sm-text-3);
}

.geInlineToolbarUi .geSmToolbarControlRow {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	min-height: var(--sm-row);
}

.geInlineToolbarUi .geSmToolbarMore .geSmToolbarControlRow {
	padding: 0 12px;
}

.geInlineToolbarUi .geSmToolbarControlLabel {
	overflow: hidden;
	font-size: var(--sm-fs-control);
	line-height: 20px;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--sm-text-2);
}

.geInlineToolbarUi .geSmToolbarControlRow>.geSmSeg {
	justify-self: start;
}

.geInlineToolbarUi .geSmToolbarSliderGroup {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.geInlineToolbarUi .geSmToolbarValue {
	flex: none;
	font-size: var(--sm-fs-hint);
	line-height: 16px;
	color: var(--sm-text-2);
}

.geInlineToolbarUi .geSmToolbarControlRow .geSmSlider {
	min-width: 0;
}

.geInlineToolbarUi .geSmToolbarPanel.geSmInlinePanel {
	min-width: 272px;
}

.geInlineToolbarUi .geSmInlineRow[style*="display: none"],
.geInlineToolbarUi .geSmInlineFieldGrid[style*="display: none"] {
	display: none !important;
}

.geInlineToolbarUi .geSmInlineRow {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: var(--sm-row);
	margin: 0 !important;
	padding: 2px 12px;
	color: var(--sm-text);
	font-size: var(--sm-fs-control);
	line-height: 20px;
}

.geInlineToolbarUi .geSmToolbarSection>.geSmInlineRow:last-child {
	padding-bottom: 4px;
}

.geInlineToolbarUi .geSmToolbarSection>.geSmInlineRow:first-child {
	padding-top: 4px;
}

.geInlineToolbarUi .geSmInlineRow.geSmInlineIcons {
	flex-wrap: nowrap;
	padding-left: 4px;
	padding-right: 4px;
}

.geInlineToolbarUi .geSmInlineRow.geSmInlineButtons>*,
.geInlineToolbarUi .geSmInlineRow.geSmInlineButtons>div:not([class])>* {
	flex: 1 1 0;
}

.geInlineToolbarUi .geSmInlineRow.geSmInlineButtons>div:not([class]) {
	display: flex !important;
	flex: 1 1 auto;
	gap: 8px !important;
}

.geInlineToolbarUi .geSmInlineWide {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

.geInlineToolbarUi .geSmInlineRow>div:not([class]) {
	gap: 8px !important;
}

.geInlineToolbarUi .geSmInlineFieldGrid {
	display: grid !important;
	grid-template-columns: 72px minmax(0, 1fr) !important;
	align-items: center;
	gap: 4px 8px !important;
	margin: 0 !important;
	padding: 2px 12px 4px 12px;
}

.geInlineToolbarUi .geSmInlinePanel .geSmToolbarControlRow.geSmInlineControl {
	padding: 0 12px;
}

.geInlineToolbarUi .geSmInlineLabel {
	overflow: hidden;
	color: var(--sm-text-2);
	font-size: var(--sm-fs-control);
	line-height: 20px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.geInlineToolbarUi .geSmInlineGroup {
	display: flex;
	align-items: center;
	gap: 8px;
}

.geInlineToolbarUi .geSmInlineSelect,
.geInlineToolbarUi .geSmInlineButton {
	display: flex;
	align-items: center;
	gap: 4px;
	box-sizing: border-box;
	min-width: 0;
	height: var(--sm-ctl) !important;
	padding: 0 7px 0 11px !important;
	border: 1px solid var(--sm-border-strong) !important;
	border-radius: var(--sm-r-m) !important;
	background: var(--sm-raised) !important;
	color: var(--sm-text);
	font-family: var(--sm-font);
	font-size: var(--sm-fs-control);
	line-height: 20px;
	cursor: pointer;
	transition: background-color var(--sm-fast) var(--sm-ease);
}

.geInlineToolbarUi .geSmInlineButton {
	justify-content: center;
	padding: 0 11px !important;
}

.geInlineToolbarUi .geSmInlineSelect:hover,
.geInlineToolbarUi .geSmInlineButton:hover,
.geInlineToolbarUi .geSmInlineSelect[aria-expanded="true"] {
	background: var(--sm-surface-2) !important;
}

.geInlineToolbarUi .geSmInlineSelect .geSmInlineLabel,
.geInlineToolbarUi .geSmInlineButton .geSmInlineLabel {
	color: var(--sm-text);
}

.geInlineToolbarUi .geSmInlineSelect span:not(.geSmIcon):not(.geSmInlineLabel) {
	color: var(--sm-text-2) !important;
	font-size: var(--sm-fs-control) !important;
	line-height: 20px;
}

.geInlineToolbarUi .geSmInlineChevron {
	--sm-icon: 16px;
	color: var(--sm-text-2);
}

.geInlineToolbarUi .geSmInlineField {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	height: var(--sm-ctl) !important;
	border: 1px solid transparent !important;
	border-radius: var(--sm-r-m) !important;
	background: var(--sm-surface-2);
	color: var(--sm-text);
	overflow: hidden;
}

.geInlineToolbarUi .geSmInlineField:focus-within {
	border-color: var(--sm-accent) !important;
}

.geInlineToolbarUi .geSmInlineField>input {
	box-sizing: border-box;
	width: 56px !important;
	height: 100%;
	padding: 0 4px 0 8px !important;
	color: var(--sm-text) !important;
	font-family: var(--sm-font);
	font-size: var(--sm-fs-control) !important;
	text-align: left !important;
}

.geInlineToolbarUi .geSmInlineStepper {
	display: flex;
	flex-direction: column;
	color: var(--sm-text-2);
}

.geInlineToolbarUi .geSmInlineStepper>div {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 12px;
	cursor: pointer;
}

.geInlineToolbarUi .geSmInlineStepper>div:hover {
	color: var(--sm-text);
}

.geInlineToolbarUi .geSmInlineStepper .geSmIcon {
	--sm-icon: 16px;
}

.geInlineToolbarUi .geSmInlineToggle,
.geInlineToolbarUi .geSmInlineItem {
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: var(--sm-hit) !important;
	height: var(--sm-hit) !important;
	border: none !important;
	border-radius: var(--sm-r-m) !important;
	background: transparent !important;
	color: var(--sm-text-2);
	cursor: pointer;
	transition: background-color var(--sm-fast) var(--sm-ease);
}

.geInlineToolbarUi .geSmInlineToggle:hover,
.geInlineToolbarUi .geSmInlineItem:hover {
	background: var(--sm-surface-2) !important;
	color: var(--sm-text);
}

.geInlineToolbarUi .geSmInlineToggle.geSmOn,
.geInlineToolbarUi .geSmInlineItem.geSmOn {
	background: var(--sm-accent-soft) !important;
	color: var(--sm-accent);
}

.geInlineToolbarUi .geSmInlineToggle .geSmIcon,
.geInlineToolbarUi .geSmInlineItem .geSmIcon {
	--sm-icon: 20px;
}

.geInlineToolbarUi .geSmInlineGrid {
	display: grid !important;
	flex: 1 1 auto;
	grid-template-columns: repeat(var(--sm-grid-cols, 6), var(--sm-hit)) !important;
	justify-content: space-between;
	gap: 8px 4px !important;
	min-width: calc(var(--sm-grid-cols, 6) * var(--sm-hit) + (var(--sm-grid-cols, 6) - 1) * 8px);
}

.geInlineToolbarUi .geSmToolbarMore .geSmInlineGrid {
	min-width: 0;
}

.geInlineToolbarUi .geSmInlineGridList>.geSmInlineGrid {
	min-width: 0;
	padding: 4px;
}

.geInlineToolbarUi .geSmInlineSep {
	grid-column: 1 / -1;
	height: 1px;
	margin: 4px 0;
	background: var(--sm-border);
}

.geInlineToolbarUi .geSmInlineThumb {
	width: var(--sm-hit) !important;
	height: var(--sm-hit) !important;
	border-radius: var(--sm-r-m) !important;
	background-color: transparent !important;
	transition: background-color var(--sm-fast) var(--sm-ease);
}

.geInlineToolbarUi .geSmInlineThumb:hover {
	background-color: var(--sm-surface-2) !important;
}

.geInlineToolbarUi .geSmInlineThumb.geSmOn {
	border-color: transparent !important;
	background-color: var(--sm-accent-soft) !important;
	box-shadow: inset 0 0 0 2px var(--sm-accent);
}

/* The shapes start at the top while the search shows fewer of them (the
   popover keeps its height, see showShapeMenu) */
.geInlineToolbarUi .geSmInlineRow.geSmInlineShapes {
	align-content: flex-start;
	align-items: flex-start;
	padding-left: 4px;
	padding-right: 4px;
	padding-bottom: 4px;
}

/* More Results below the shapes found (showShapeMenu): a button across the
   width of the grid, 8 below its last row; the row hides with the button */
.geInlineToolbarUi .geSmInlineRow.geSmInlineMore {
	padding: 4px;
}

/* The search of the shapes (showShapeMenu): a field of the look across the
   width of the grid, 8 from the outer edge of the frame, and the note if it
   finds none (the rules of .geSmField in fusion.css) */
.geInlineToolbarUi .geSmInlineRow.geSmInlineSearchRow {
	padding-left: 4px;
	padding-right: 4px;
}

.geInlineToolbarUi .geSmInlineSearch {
	flex: 1 1 auto;
	min-width: 0;
	cursor: text;
}

.geInlineToolbarUi .geSmInlineEmpty {
	padding: 8px;
	color: var(--sm-text-2);
	font-size: var(--sm-fs-hint);
	line-height: 16px;
}

.geInlineToolbarUi .geSmField {
	display: flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: var(--sm-ctl);
	padding: 0 11px;
	line-height: 20px;
	border: 1px solid transparent;
	border-radius: var(--sm-r-m);
	background: var(--sm-surface-2);
	color: var(--sm-text-3);
}

.geInlineToolbarUi .geSmField:focus-within {
	border-color: var(--sm-accent);
	background: var(--sm-raised);
	box-shadow: var(--sm-focus);
}

.geInlineToolbarUi .geSmField .geSmIcon {
	--sm-icon: 18px;
}

.geInlineToolbarUi .geSmField input {
	flex: 1 1 auto;
	min-width: 0;
	height: var(--sm-ctl);
	margin: -1px 0;
	padding: 0;
	border: none !important;
	outline: none;
	box-shadow: none !important;
	background: transparent !important;
	color: var(--sm-text);
	font-family: var(--sm-font);
	font-size: var(--sm-fs-control);
	text-align: left !important;
}

.geInlineToolbarUi .geSmField input::placeholder {
	color: var(--sm-text-3);
	opacity: 1;
}

/* Fields in a .geSmField reach 2 beyond its frame */
@media (pointer: coarse) {
	.geInlineToolbarUi .geSmField input {
		height: var(--sm-hit);
		margin: -3px 0;
	}
}

.geInlineToolbarUi .geSmInlineSwatch {
	box-sizing: border-box;
	flex: none;
	width: var(--sm-ctl) !important;
	height: var(--sm-ctl) !important;
	border: 4px solid transparent !important;
	border-radius: var(--sm-r-m) !important;
	background-clip: padding-box !important;
	box-shadow: inset 0 0 0 1px var(--sm-swatch-edge);
	cursor: pointer;
}

.geInlineToolbarUi .geSmInlineSwatch.geSmNoColor {
	background: linear-gradient(135deg, var(--sm-raised) 45%, var(--sm-danger) 45%, var(--sm-danger) 55%, var(--sm-raised) 55%) padding-box !important;
}

.geInlineToolbarUi .geSmInlineList {
	box-sizing: border-box;
	padding: 3px !important;
	border: 1px solid var(--ge-menu-border) !important;
	border-radius: var(--ge-menu-radius) !important;
	background: var(--ge-menu-surface) !important;
	box-shadow: var(--ge-menu-shadow) !important;
	color: var(--sm-text);
	font-family: var(--sm-font);
}

.geInlineToolbarUi .geSmInlineListItem {
	position: relative;
	box-sizing: border-box;
	min-height: var(--sm-ctl);
	padding: 0 12px 0 42px !important;
	border-radius: var(--sm-r-m) !important;
	background: transparent !important;
	color: var(--sm-text);
	font-size: var(--sm-fs-body);
	line-height: 20px;
	cursor: pointer;
}

.geInlineToolbarUi .geSmInlineListItem:hover,
.geInlineToolbarUi .geSmInlineListItem:focus-visible {
	background: var(--sm-accent-soft) !important;
}

.geInlineToolbarUi .geSmInlineListItem.geSmOn::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 12px;
	width: 18px;
	height: 18px;
	margin: auto 0;
	background: var(--sm-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.geInlineToolbarUi .geSmInlineListItem span:not(.geSmIcon) {
	color: var(--sm-text) !important;
	font-size: var(--sm-fs-body) !important;
	line-height: 20px;
}

@media (pointer: coarse) {
	.geInlineToolbarUi .geSmInlineListItem {
		min-height: 44px;
	}
}

.geInlineToolbarUi .geSmInlineSelect:focus-visible,
.geInlineToolbarUi .geSmInlineButton:focus-visible,
.geInlineToolbarUi .geSmInlineToggle:focus-visible,
.geInlineToolbarUi .geSmInlineItem:focus-visible,
.geInlineToolbarUi .geSmInlineSwatch:focus-visible,
.geInlineToolbarUi .geSmInlineThumb:focus-visible,
.geInlineToolbarUi .geSmInlineListItem:focus-visible {
	outline: none;
	box-shadow: var(--sm-focus);
}

.geInlineToolbarUi .geSmInlineToolbar {
	padding: 3px !important;
	border: 1px solid var(--sm-border) !important;
	border-radius: var(--sm-r-l) !important;
	background-color: var(--sm-surface-2) !important;
	box-shadow: var(--ge-menu-shadow) !important;
	opacity: 1 !important;
}

.geInlineToolbarUi .geSmInlineToolbar>div {
	position: relative;
	box-sizing: border-box;
	width: 32px !important;
	height: 32px !important;
	padding: 0;
	border-radius: var(--sm-r-m) !important;
	color: var(--sm-text-2);
	transition: background-color var(--sm-fast) var(--sm-ease), color var(--sm-fast) var(--sm-ease);
}

.geInlineToolbarUi .geSmInlineToolbar>div>.geSmIcon {
	position: absolute;
	inset: 0;
	margin: auto;
}

.geInlineToolbarUi .geSmInlineToolbar>div:hover {
	background-color: var(--sm-raised);
	color: var(--sm-text);
}

.geInlineToolbarUi .geSmInlineToolbar>div:active {
	background-color: var(--sm-surface-3);
	color: var(--sm-text);
}

.geInlineToolbarUi .geSmInlineToolbar>div.geSmOn {
	background-color: var(--sm-accent-soft);
	color: var(--sm-accent);
}

@media (pointer: coarse) {
	.geInlineToolbarUi .geSmInlineToolbar>div {
		width: var(--sm-hit) !important;
		height: var(--sm-hit) !important;
	}
}

.geInlineToolbarUi .geSmToolbarPanel .geSmSlider {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 auto;
	min-width: 60px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: none !important;
	border-radius: 0;
	box-shadow: none !important;
	background: transparent !important;
	cursor: pointer;
	--sm-value: 100%;
}

.geInlineToolbarUi .geSmToolbarPanel .geSmSlider::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--sm-accent) var(--sm-value), var(--sm-surface-3) var(--sm-value));
}

.geInlineToolbarUi .geSmToolbarPanel .geSmSlider::-moz-range-track {
	height: 4px;
	border-radius: 999px;
	background: var(--sm-surface-3);
}

.geInlineToolbarUi .geSmToolbarPanel .geSmSlider::-moz-range-progress {
	height: 4px;
	border-radius: 999px;
	background: var(--sm-accent);
}

.geInlineToolbarUi .geSmToolbarPanel .geSmSlider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	margin-top: -6px;
	border: 2px solid var(--sm-accent);
	border-radius: 50%;
	background: var(--sm-raised);
}

.geInlineToolbarUi .geSmToolbarPanel .geSmSlider::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 2px solid var(--sm-accent);
	border-radius: 50%;
	background: var(--sm-raised);
}

@media (pointer: coarse) {
	.geInlineToolbarUi .geSmToolbarPanel .geSmSlider {
		height: 44px;
	}

	.geInlineToolbarUi .geSmToolbarPanel .geSmSlider::-webkit-slider-thumb {
		width: 24px;
		height: 24px;
		margin-top: -10px;
	}
}

.geInlineToolbarUi .geSmToolbarPanel .geSmSlider:focus-visible::-webkit-slider-thumb {
	box-shadow: var(--sm-focus);
}

.geInlineToolbarUi .geSmMaskRing {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	border-radius: var(--sm-r-s);
	line-height: 0;
}

.geInlineToolbarUi .geSmMaskRing>img.geSmMaskImg:focus-visible {
	outline: none;
	box-shadow: none !important;
}

.geInlineToolbarUi .geSmMaskRing:has(>img.geSmMaskImg:focus-visible) {
	box-shadow: var(--sm-focus);
}

@media (forced-colors: active) {
	.geInlineToolbarUi .geSmMaskRing:has(>img.geSmMaskImg:focus-visible) {
		outline: 2px solid Highlight;
	}
}

.geInlineToolbarUi .geSmSeg>button:active:not([disabled], .geSmOn) {
	background: var(--sm-surface-3);
	color: var(--sm-text);
	opacity: 1;
}

.geInlineToolbarUi .geSmSeg>button.geSmOn:active:not([disabled]) {
	opacity: 1;
}

.geInlineToolbarUi .geSmSeg>button.geSmOn:focus-visible {
	box-shadow: var(--sm-focus);
}

.geInlineToolbarUi .geSmIconBtn[disabled] {
	opacity: 0.45;
	cursor: default;
	background: transparent;
	color: var(--sm-bar-muted, var(--sm-text-2));
}

@media (pointer: coarse) {
	.geInlineToolbarUi .geSmSeg>button {
		position: relative;
		overflow-x: clip;
		overflow-y: visible;
	}

	.geInlineToolbarUi .geSmSeg>button::after {
		content: '';
		position: absolute;
		top: min(0px, calc((100% - var(--sm-hit)) / 2));
		bottom: min(0px, calc((100% - var(--sm-hit)) / 2));
		left: min(0px, calc((100% - var(--sm-hit)) / 2));
		right: min(0px, calc((100% - var(--sm-hit)) / 2));
	}

	.geInlineToolbarUi .geSmSeg>button {
		min-width: var(--sm-hit);
	}

	.geInlineToolbarUi .geSmSeg {
		row-gap: 8px;
	}

	.geInlineToolbarUi .geSmToolbarTile {
		position: relative;
		min-height: 36px;
		overflow: visible;
	}

	.geInlineToolbarUi .geSmToolbarTile::before {
		content: '';
		position: absolute;
		top: min(0px, calc((100% - var(--sm-hit)) / 2));
		bottom: min(0px, calc((100% - var(--sm-hit)) / 2));
		left: min(0px, calc((100% - var(--sm-hit)) / 2));
		right: min(0px, calc((100% - var(--sm-hit)) / 2));
	}
}

/* The page overview of the page tabs (PageOverview.js): the pages as a list
   or as tiles with previews over the page tabs, the switch at the top right,
   on the gray of the menus and panels of the theme with its border in
   light and dark mode (Kym, 20 November 2026: not the white of Fusion) */
.gePageOverview {
	position: absolute;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-sizing: border-box;
	width: 400px;
	max-width: calc(100% - 16px);
	max-height: 480px;
	padding: 10px 12px 12px;
	border: 1px solid light-dark(var(--border-color), var(--dark-border-color));
	border-radius: 8px;
	background: light-dark(var(--ge-panel-color), var(--ge-dark-panel-color));
	box-shadow: 0 4px 17px -4px #606060;
	color: light-dark(var(--text-color), var(--dark-text-color));
	text-align: left;
	cursor: default;
}

.gePageOverview.gePageOverviewSheet {
	left: 0;
	right: 0;
	bottom: 0;
	width: auto;
	max-width: none;
	max-height: 70%;
	border-radius: 8px 8px 0 0;
}

.gePageOverviewHead,
.gePageOverviewViews,
.gePageOverviewSearch,
.gePageCardFoot {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.gePageOverviewTitle {
	font-size: 14px;
	font-weight: 600;
}

.gePageOverviewCount {
	flex: 1 1 auto;
}

.gePageOverviewCount,
.gePageCardNumber,
.gePageCardAdd .gePageCardName,
.gePageOverviewSearch>.gePageOverviewIcon {
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.gePageOverviewIcon {
	display: block;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--ge-ic) center / contain no-repeat;
	mask: var(--ge-ic) center / contain no-repeat;
}

.gePageOverview button {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.gePageOverviewBtn,
.gePageOverviewViews>button {
	width: 28px;
	height: 28px;
}

.gePageOverviewViews {
	gap: 2px;
	padding: 2px;
	border-radius: 6px;
	background: light-dark(var(--inactive-color), var(--dark-color));
}

.gePageOverviewViews>button {
	height: 24px;
}

.gePageOverview .gePageOverviewViews>button.geActive {
	background: light-dark(var(--accent-color), var(--dark-accent-color));
	color: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
}

.gePageOverviewSearch {
	gap: 6px;
	height: 28px;
	padding: 0 8px;
	border: 1px solid light-dark(var(--field-border-color), var(--dark-field-border-color));
	border-radius: 4px;
	background: light-dark(var(--field-color), var(--dark-field-color));
}

.geEditor .gePageOverviewSearch>input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	border: none;
	outline: none;
	background: transparent;
	color: inherit;
	font: inherit;
}

.gePageOverviewSearch:focus-within,
.gePageCard:has(>.gePageCardOpen:focus-visible) {
	outline: 2px solid light-dark(var(--focus-color), var(--dark-focus-color));
	outline-offset: -1px;
}

.gePageOverviewGrid {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 8px;
	min-height: 0;
	margin: -4px;
	padding: 4px;
	overflow-y: auto;
}

.gePageCard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding: 4px;
	border: 1px solid light-dark(var(--border-color), var(--dark-border-color));
	border-radius: 6px;
	cursor: pointer;
}

.gePageCard:hover {
	background: light-dark(var(--highlight-color), var(--dark-border-color));
}

.gePageCard.gePageCardCurrent {
	border-color: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
	box-shadow: inset 0 0 0 1px light-dark(var(--accent-text-color), var(--dark-accent-text-color));
}

.gePageCard.gePageCardAdd {
	border-style: dashed;
}

.gePageCard.gePageCardDisabled {
	opacity: 0.45;
}

.gePageOverview .gePageCard>.gePageCardOpen {
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 6px;
	overflow: hidden;
	border-radius: 4px;
	outline: none;
	background: #fff;
	color: light-dark(var(--secondary-text-color), var(--dark-secondary-text-color));
}

.gePageOverview .gePageCard>.gePageCardOpen:has(>.gePageCardEmpty) {
	background: light-dark(var(--inactive-color), var(--dark-color));
}

.gePageCardThumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.gePageCardThumb>img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.gePageCardFoot {
	position: relative;
	flex: 1 1 auto;
	gap: 6px;
	min-height: 24px;
	padding: 0 2px;
}

.gePageCardName {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gePageCardCurrent .gePageCardName {
	color: light-dark(var(--accent-text-color), var(--dark-accent-text-color));
	font-weight: 600;
}

.gePageOverview .gePageCard>.gePageCardMore {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	visibility: hidden;
	background: light-dark(#fff, var(--ge-dark-panel-color));
	box-shadow: 0 1px 3px #00000040;
}

.gePageCard:hover>.gePageCardMore,
.gePageCard:focus-within>.gePageCardMore,
.gePageCard>.gePageCardMore[aria-expanded="true"] {
	visibility: visible !important;
}

/* The list: a row of 28 per page, the button under the name */
.gePageOverviewList .gePageOverviewGrid {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.gePageOverviewList .gePageCard {
	flex-direction: row;
	align-items: center;
	min-height: 28px;
	padding: 0 2px 0 6px;
	border: none;
	border-radius: 4px;
	box-shadow: none;
}

.gePageOverviewList .gePageCard.gePageCardCurrent {
	background: light-dark(var(--accent-color), var(--dark-accent-color));
	box-shadow: none;
}

.gePageOverview.gePageOverviewList .gePageCard>.gePageCardOpen {
	position: absolute;
	inset: 0;
	width: auto;
	aspect-ratio: auto;
	padding: 0;
	background: transparent;
}

.gePageOverview.gePageOverviewList .gePageCard>.gePageCardMore {
	position: relative;
	top: auto;
	right: auto;
	background: transparent;
	box-shadow: none;
}
