body {
	--audio-section-background: var(--gray-tone-2);
	--point-frame-border-color: rgba(0, 0, 0, 2%);
	--highlighted-highlighted-border-color: rgb(120, 120, 120);
	--point-frame-background-color: var(--gray-tone-8);
	--point-frame-border-hover: rgb(210, 210, 250);
	--point-frame-actions-color: var(--point-frame-background-color);
	--point-box-image-background-color: rgb(240, 240, 240);

	--point-box-text-background-color: rgb(255, 255, 255);
	--point-box-border-color: rgb(80, 80, 80);

	--point-frame-ghost-border: rgba(239, 201, 76, 0.99);
	--point-frame-item-border: red;

	--point-frame-actions-button-text-color: rgb(0, 0, 0);
	--point-frame-actions-button-border-color: rgb(0, 0, 0);
	--point-frame-actions-button-background-color: var(--gray-tone-14);

	--point-frame-label-text-color: var(--gray-tone-4);
	--point-frame-label-background-color: rgb(255, 255, 255);

	--point-frame-width: 266px;
	--point-frame-height: 135px;
	--point-frame-padding: 25px 10px 10px 10px;
	--point-frame-gap: 2px;
	--point-frame-border-start: -4px;
	--point-frame-border-width: 6px;
	--point-frame-border-additional-width: 0px;
}


.edit-area note-summary delete-shared-note-button,
.edit-area note-summary-mobile delete-shared-note-button{
	display: none !important;
}

.edit-area treatise-summary delete-treatise-button,
.edit-area treatise-summary-mobile delete-treatise-button {
	display: none !important;
}



/* width */
::-webkit-scrollbar {
	width: 18px !important;
	}
	
	/* Track */
	::-webkit-scrollbar-track {
	background: #f1f1f1;
	width: 20px !important;
	}
	
	/* Handle */
	::-webkit-scrollbar-thumb {
	background: var(--theme-primary-color-anonymous, --theme-primary-color);;
	border-radius: 40px;
	}
	
	/* Handle on hover */
	::-webkit-scrollbar-thumb:hover {
	background: var(--theme-primary-color-anonymous, --theme-primary-color);
	}
	
	/* Buttons */
	::-webkit-scrollbar-button:single-button {
	background: #ffffff;
	display: block;
	border-style: solid;
	height: 14px;
	width: 12px;
	margin-top: 40px;
	position: relative;
	bottom: -10px;
	}
	/* Up */
	::-webkit-scrollbar-button:single-button:vertical:decrement {
	border-width: 0;
	border-color: transparent transparent transparent transparent;
	
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="14" height="12" viewBox="0 0 14 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.0249627 11.7004C0.0744414 11.8819 0.189171 12 0.316578 12L13.6833 11.9998C13.8106 11.9998 13.9254 11.8817 13.9751 11.7002C14.0246 11.5187 13.999 11.3087 13.9103 11.1674L7.22693 0.148465C7.1674 0.0536387 7.08545 3.84329e-07 6.99995 3.76854e-07C6.91444 3.69379e-07 6.83249 0.0536387 6.77296 0.148465L0.0895945 11.1676C0.000842164 11.3092 -0.0245159 11.5189 0.0249627 11.7004Z" fill="%23BFBFBF"/></svg>'); /* Изображение SVG-стрелки для прокрутки вниз */
	background-repeat: no-repeat; /* Отключаем повторение фона */
	background-position: top center;
	}
	
	::-webkit-scrollbar-button:single-button:vertical:decrement:hover {
	border-color: transparent transparent transparent transparent;
	}
	/* Down */
	::-webkit-scrollbar-button:single-button:vertical:increment {
	
	border-width: 0px;
	border-color: transparent transparent transparent transparent;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" viewBox="0 0 14 12" fill="none"><path d="M13.975 0.299565C13.9256 0.118054 13.8108 0 13.6834 0L0.316693 0.000239412C0.18944 0.000239412 0.0745568 0.118294 0.0249235 0.299805C-0.0245552 0.481316 0.000957241 0.691323 0.0897096 0.832605L6.77307 11.8515C6.8326 11.9464 6.91455 12 7.00005 12C7.08556 12 7.16751 11.9464 7.22704 11.8515L13.9104 0.832366C13.9992 0.690844 14.0245 0.481077 13.975 0.299565Z" fill="%23BFBFBF"/></svg>');
	background-size: 14px 12px;
	background-repeat: no-repeat;
	background-position: bottom center;
	padding-bottom: 10px;
	}
	
	::-webkit-scrollbar-button:vertical:single-button:increment:hover {
	border-color: transparent transparent transparent transparent;
	}
	
	
	/* Left */
	::-webkit-scrollbar-button:single-button:horizontal:decrement {
		border-width: 0;
		border-color: transparent transparent transparent transparent;
	
	background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 14"><path d="M11.7004 0.0249624C11.8819 0.074441 12 0.189171 12 0.316578L11.9998 13.6833C11.9998 13.8106 11.8817 13.9254 11.7002 13.9751C11.5187 14.0246 11.3087 13.999 11.1674 13.9103L0.148466 7.22693C0.0536394 7.1674 9.53674e-07 7.08545 9.53674e-07 6.99995C9.53674e-07 6.91444 0.0536394 6.83249 0.148466 6.77296L11.1676 0.0895948C11.3092 0.000842094 11.5189 -0.0245161 11.7004 0.0249624Z" fill="%23BFBFBF"/></svg>');
	
	background-size: 12px 17px; /* размеры SVG */
	
	
	background-repeat: no-repeat; 
		background-position: top center;
	}
	
	::-webkit-scrollbar-button:single-button:horizontal:decrement:hover {
		border-color: transparent transparent transparent transparent;
	}
	/* Right ! */
	::-webkit-scrollbar-button:single-button:horizontal:increment {
	
		border-width: 0px;
		border-color: transparent transparent transparent transparent;
	
	
	background-position: bottom center;
	
	background-image: url("data:image/svg+xml;utf8,<svg width='12' height='14' viewBox='0 0 12 14' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M0.299565 13.975C0.118054 13.9256 0 13.8108 0 13.6834L0.000239412 0.316693C0.000239412 0.18944 0.118294 0.0745568 0.299805 0.0249235C0.481316 -0.0245552 0.691323 0.000957241 0.832605 0.0897096L11.8515 6.77307C11.9464 6.8326 12 6.91455 12 7.00005C12 7.08556 11.9464 7.16751 11.8515 7.22704L0.832366 13.9104C0.690844 13.9992 0.481077 14.0245 0.299565 13.975Z' fill='%23BFBFBF'/></svg>"); 
	background-size: 12px 17px; 
	}
	
	::-webkit-scrollbar-button:vertical:single-button:horizontal:hover {
		border-color: transparent transparent transparent transparent;
	}
	
	
	/* Up */
	::-webkit-scrollbar-button:single-button:vertical:decrement {
		border-width: 0 8px 8px 8px;
		border-color: transparent transparent transparent transparent;
	}
	
	::-webkit-scrollbar-button:single-button:vertical:decrement:hover {
		border-color: transparent transparent transparent transparent;
	}
	/* Down */
	::-webkit-scrollbar-button:single-button:vertical:increment {
		border-width: 8px 8px 0 8px;
		border-color: transparent transparent transparent transparent;
	}
	
	::-webkit-scrollbar-button:vertical:single-button:increment:hover {
		border-color: transparent transparent transparent transparent;
	}

body[data-point-color="default"] .regular{
	--point-frame-background-color: var(--theme-light-color-anonymous, --theme-light-color);
}
body[data-point-color="grayscale"] .regular{
	--point-frame-background-color: inherit;
}	

body[data-point-color="default"] .without-incoming,
body[data-point-color="grayscale"] .without-incoming {
	/* This is an axiomatic point */
	--point-frame-background-color: inherit;
}
body[data-point-color="default"] .without-outgoing {
	--point-frame-background-color: var(--theme-primary-color-anonymous, --theme-primary-color);
}

body[data-point-color="grayscale"] .without-outgoing{
	--point-frame-background-color: inherit;
}

body[data-point-color="default"] .without-incoming.without-outgoing,
body[data-point-color="grayscale"] .without-incoming.without-outgoing {
	--point-frame-background-color: inherit;
}
.is-nested {
	--point-frame-background-color: var(--theme-dark-color-anonymous, --theme-dark-color) !important;
}


body[data-point-color="theme_only"] .regular,
body[data-point-color="theme_only"] .without-incoming,
body[data-point-color="theme_only"] .without-outgoing,
body[data-point-color="theme_only"] .is-nested,
[alias="1"]
{
	--point-frame-background-color: var(--theme-primary-color-anonymous, --theme-primary-color) !important;
}


body[data-point-color="grayscale"] .regular ,
body[data-point-color="grayscale"] .without-incoming,
body[data-point-color="grayscale"] .without-outgoing {
	--point-frame-background-color: var(--gray-tone-8)
}

body[data-point-color="grayscale"] .is-nested
{
	--point-frame-background-color: var(--gray-tone-3) !important;
}

body[data-point-color="grayscale"] [alias="1"] {
    --point-frame-background-color: var(--gray-tone-5) !important;
}

point-frame-canvas[preview="true"] .show-derivation,
.without-incoming .show-derivation {
	display: none;
}

#viewer .pf-actions > .back-to-original {
	display: none;
}

.back-to-original img {
    width: 9px;
}

.has-original:not([preview="true"]) .back-to-original {
	display: inherit;
}

[alias="1"] {
	--point-frame-background-color: var(--gray-tone-5) !important;
}

[alias="1"][x="0"][y="0"] {
	--point-frame-background-color: var(--gray-tone-2) !important;
	cursor: default !important;
}

[alias="1"][x="0"][y="0"] point-frame-border {
	pointer-events: none;
}

/* body[data-point-style="light"] [alias="1"][x="0"][y="0"]::before {
    content: '';
    left: -6px;
    top: -5px;
    position: absolute;
    width: 314px !important;
    height: 216px !important;
    border-right: solid 2px black !important;
    border-bottom: solid 2px black !important;
}

body[data-point-style="light"] [alias="1"][x="0"][y="0"] {
	border-radius: 0;
    border-left: 0;
    border-right: 0;
	border:0;
} */

[alias="1"][x="0"][y="0"]::before {
	content: '';
	left: -6px;
	top: -5px;
	position: absolute;
	width: 300px;
	height: 208px;
	border-right: solid 8px black;
	border-bottom: solid 8px black;
}

body[data-theme="gray"] point-frame:not(.full-screen).selected{
	--point-frame-background-color: var(--gray-tone-13) !important;
}

point-frame:not(.full-screen).selected {
	/*border-color: var(--theme-dark-color);
	border-style: double !important;*/

	/* border-style: solid !important;
	border-style: double !important;
	border-color: black;
	border-color: white;
	border-width: 8px; */

	-webkit-box-shadow: 0px 0px 10px 10px rgba(75,75,75,1);
-moz-box-shadow: 0px 0px 10px 10px rgba(75,75,75,1);
/* box-shadow: 0px 0px 10px 10px rgba(75,75,75,1); */

box-shadow: 0px 0px 10px 10px var(--gray-tone-14), 0px 0px  19px 19px var(--theme-primary-color) !important;
animation: none !important;
}



body[data-theme="gray"] point-frame:not(.full-screen.selected) {
	
	box-shadow: 0px 0px 10px 10px var(--gray-tone-14), 0px 0px 19px 19px var(--gray-tone-7) !important;
	--point-frame-background-color: var(--gray-tone-13) !important;
}


body[data-theme="gray"] point-frame:not(.full-screen).selected {
	--selected-pointframe-border: rgb(255, 173, 66);
	box-shadow: 0px 0px 10px 10px var(--gray-tone-14), 0px 0px  19px 19px var(--selected-pointframe-border) !important;
	--point-frame-background-color: var(--gray-tone-13) !important;
}


body[data-theme="gray"] point-frame .label{
	color: var(--gray-tone-7) !important;
	border: 2px solid var(--gray-tone-7) !important;
}


point-frame-connector.selected {
	/* filter: var(--theme-icon-filter); */
}

/* 
.view-point .fill {
	fill: var(--gray-tone-4);
}

.view-point .fillStroke {
	fill: var(--gray-tone-4);
	stroke: var(--gray-tone-4);
}

.view-point .stroke {
	stroke: var(--gray-tone-4);
} */

/*.without-incoming.selected {
	border-color: var(--theme-dark-color);
}
.without-outgoing.selected {
	border-color: var(--theme-dark-color);
}
.is-nested.selected {
	border-color: var(--theme-light-color);
}
.without-incoming.without-outgoing.selected {
	border-color: var(--theme-dark-color)
}
[alias="1"].selected {
	border-color: var(--theme-light-color);
}
[alias="1"][x="0"][y="0"].selected {
	border-color: var(--theme-light-color);
}*/




/*
body {
    font-family: Verdana, serif;
	margin: 0;
	padding: 0;
}

body {
	display: grid;
	grid-template-areas: 'levels levels' 'options canvas';
	grid-template-columns: 80px 1fr;
	grid-template-rows: min-content 1fr;
}
*/
.full-screen-mode body {
	grid-template-areas: 'main';
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}

#full-screen-view {

}
#chart-options {
	grid-area: options;
}
#chart-options [disabled] {
	pointer-events: none;
}

#chart-levels a > img,
#chart-options a > img,
#chart-levels button > img,
#chart-options button > img {
	pointer-events: none;
}

#chart-levels a > img {
	/*filter: invert(35%) sepia(5%) saturate(185%) hue-rotate(71deg) brightness(93%) contrast(86%);*/
}
#chart-options a:not([disabled]):hover > img,
#chart-levels a:not([disabled]):hover > img {
	filter: var(--theme-icon-filter);
}
#chart-options a[disabled],
#chart-levels a[disabled] {
	cursor: default;
}
#chart-levels a[disabled] > img {
}




#viewer #breadcrumb,
#editor #breadcrumb {
	grid-area: breadcrumb;
	display: none !important;
}
#chart-levels {
	grid-area: levels;
}
point-frame-canvas {
	grid-area: canvas;
}

point-frame-canvas {
	user-select: none;
}
#chart-options {
	display: flex;
	flex-direction: column;
}
#chart-levels {
	display: flex;
}

#full-screen-view {
	display: none;
}
.full-screen-mode {
	--point-frame-width: auto;
	--point-frame-height: auto;
}
/*
.full-screen-mode #full-screen-view {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 4;
}

.full-screen-mode #chart-options,
.full-screen-mode #chart-levels,*/
.full-screen-mode point-frame-canvas >  #container > *:not(.full-screen) {
	display: none !important;
}


[data-current-action="selection"] point-frame-canvas {
	cursor: crosshair, copy;
}
[data-current-action="p-plus"] point-frame-canvas {
	cursor: url(../icons/p-plus.svg), copy;
}
[data-current-action="g-plus"] point-frame-canvas {
	cursor: url(../icons/g-plus.svg), alias;
}
[data-current-action="center-on-point"] point-frame-canvas {
	cursor: url(../pm/icons/target-icon.png), crosshair;
}
[data-current-action="insert-nested-content"] point-frame-canvas {
	cursor: url(../icons/insert-nested-plus.svg), alias;
}
[data-current-action="p-plus"] point-box-text,
[data-current-action="selection"] point-box-text,
[data-current-action="center-on-point"] point-box-text {
	pointer-events: none;
}


[data-current-action="center-on-point"] point-frame:hover,
[data-current-action="view-point"] point-frame:hover {
	/*filter: brightness(125%);*/
	outline-width: 4px;
}

.full-screen-mode point-frame-canvas {
	background: none !important;
	overflow-x: hidden !important;
	overflow-y: hidden !important;
}

.full-screen {
	position: fixed;
	/*left: 0 !important;
	width: calc(100vw - 60px) !important;
	top: 0 !important;
	height: 450px !important;*/
	/*height: calc(100vh - 80px) !important;*/
	box-sizing: border-box;
}

.full-screen-mode point-frame .pf-actions > button.go-deeper,
.full-screen-mode point-frame .pf-actions > button.view-point,
.full-screen-mode point-frame .pf-actions > button.remove-frame,
point-frame .pf-actions > button.back-to-screen {
	display: none;
}
.full-screen-mode point-frame .pf-actions > button.back-to-screen {
	display: inherit;
}

point-frame:not([preview="true"]) {
	/*transition: outline-color 0.75s ease;*/
	outline: solid 4px transparent;
	cursor: move;
}
point-frame > * {
	/*cursor: default;*/
}
/* uncomment to bring back the highlight
.highlighted {
	outline-color: var(--highlighted-frame-color);
}
*/

point-frame[alias="1"]:not([preview="true"]),
.label:not([preview="true"]) {
	cursor: move;
}

[data-current-source-point-frame] point-frame-canvas {
	cursor: crosshair;
}
/*.source-point-frame {
	filter: brightness(125%);
}*/

point-frame-canvas {
	height: calc(100vh - 155px);

	display: block;
	overflow: auto;
	background: var(--gray-tone-13);
}

.full-screen-mode #viewer #draft-note,
.full-screen-mode #viewer #draft-answer,
.full-screen-mode #viewer #draft-question,
.full-screen-mode #viewer #draft-treatise,
.full-screen-mode .preview {
	display: none;
}
.full-screen-mode body {
	--point-frame-width: auto;
	--point-frame-height: auto;
}


[data-expanded-view] point-frame-canvas {
	/*height: calc(100vh - 150px);*/
	height: calc(100vh - 190px);
}

.published-draft-treatise,
.published-draft-answer{
	height: calc(100vh - 245px) !important;
}

.published-draft-note{
	height: calc(100vh - 258px) !important;
}

.published-draft-question, .published-draft-image-question{
	height: calc(100vh - 241px) !important;
}

.edit-answer-draft{
	height: calc(100vh - 190px) !important;
}
/* 
body:has([draft="0"]) #viewer point-frame-canvas{
	height: calc(100vh - 194px) !important;
} */

body[data-theme="gray"] point-frame-canvas{
   height: calc(100vh - 222px) !important;
}

/* .full-screen-mode point-frame-canvas {
	height: 100vh;
} */

#viewer #chart-levels .nested-content,
#editor #chart-levels .nested-content ,
#editor #chart-levels-mobile .nested-content,
#editor #chart-levels-mobile-quick-preview .nested-content {
	display: flex;
	border: solid 1px  var(--input-border-color);
	border-radius: 0;
	height: 36px;
}

#editor #chart-levels-mobile .nested-content,
#editor #chart-levels-mobile-quick-preview .nested-content{
	height: 30px !important;
}
.nested-content input {
	border: none;
	background: none;
}

.name-point {
    width: 36px;
	display: flex !important;
    align-items: center;
    justify-content: center;
    border-right: solid 1px var(--input-border-color);
	font-family: 'californian fb';
    font-size: 28px;
	color: var(--gray-tone-4);
	font-weight: bold;
	margin: 0 !important;
}

/*input:focus + .name-point{*/
.no-match .name-point{
	color: var(--gray-tone-8);
}

.derivation-mode point-frame:not(.derivation-node) {
	opacity: 0.1;
}

.derivation-mode point-frame-connector:not(.derivation-node) {
	/*filter: blur(2px);*/
	opacity: 0.25;
}


.derivation-mode point-frame.selected .show-derivation .stroke {
	fill: var(--theme-primary-color);
}

.derivation-mode point-frame.selected .show-derivation .icon-sm_small .stroke {
	fill: none;
	stroke: var(--theme-primary-color);
}

.derivation-mode point-frame.selected .show-derivation .icon-sm_small .fillStroke {
	fill: var(--theme-primary-color);
	stroke: var(--theme-primary-color);
}

.derivation-mode point-frame.selected .show-derivation .icon-sm_small .fill {
	fill: var(--theme-primary-color);
}

.derivation-mode point-frame-connector.derivation-node {
	filter: var(--theme-icon-filter);
}

.derivation-mode point-frame-connector.derivation-node .connector-remove-area {
	display: none !important;
}


.nested-content input {
	max-width: 170px;
}

.nested-content input {
	line-height: 36px;
    height: 36px;
    color: var(--gray-tone-2);
	padding: 0px 5px 0px 7px;
}
.nested-content input:focus {
    outline: none;
    border: none;
}
.nested-content a {
	line-height: 36px;
	height: 36px;
}
#chart-levels .nested-content a > img {
	height: 32px;
	margin: 2px 1px;
}


point-frame {
	position: relative;
	border-radius: 10px;

	display: block;  
	padding-bottom:4px !important;
	width: var(--point-frame-width);
	grid-template-columns: min-content 50px auto;
	/* grid-template-rows: 15px auto 20px; */
	grid-template-rows: 5px auto 20px;
	/*grid-template-areas: 'req req req' 'label content content' 'stats stats buttons';*/
	grid-template-areas: 'label req req' 'content content content' 'stats stats buttons';
	background: var(--point-frame-background-color);
	padding: var(--point-frame-padding);
	border-style: solid;
	border-width: var(--point-frame-border-width);
	border-color: var(--point-frame-border-color);
	/*box-shadow: #000 3px 3px 6px;*/
	x-outline: solid 2px var(--point-box-border-color);

	margin: 0 360px 240px 0;

	/*transition: border-color 0.75s ease;*/
	user-select: none;
}

point-frame::after {
	/* content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	bottom: calc(var(--point-frame-height) / 2 - 50vh);
	right: calc(var(--point-frame-width) / 2 - 50vw); */
}
point-frame .pf-actions {
	/*order: 3;
	grid-column: 2;*/
	/* grid-area: buttons; */

	display: flex;
	justify-content: end;
	/*background: var(--point-frame-background-color);*/
	align-items: center;
	border-top: solid var(--point-frame-padding) var(--point-frame-background-color);
	font-size: 10px;
	/* margin-top: 8px; */
	position: relative;
	left: 7px;
}

point-frame[preview="true"] .pf-actions {
	flex-direction: row-reverse;
	display: none;
}

.pf-actions .annotation-preview {
	display: none;
	flex: 1 0 0;
	margin-right: auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

[data-toggle-annotations="1"] .pf-actions .annotation-preview {
	display: inline-block;
}

point-frame .pf-actions > div:hover,
point-frame .pf-actions > button:hover {
	filter: brightness(120%);
}
point-frame .pf-actions > div,
point-frame .pf-actions > button {
	color: var(--point-frame-actions-button-text-color);
	border: solid 0 var(--point-frame-actions-button-border-color);
	background: var(--point-frame-actions-button-background-color);
	border-radius: 3px !important;
	/* padding: 2px 1px 3px; */
	box-sizing: border-box;
	height: 16px;
	width: 16px;
	text-align: center;
	vertical-align: middle;
	margin-right: 6px;
	/*cursor: pointer;*/
    align-items: center;
	padding: 0;
	justify-content: center;
}
x.pf-actions > div:not([hidden]),
x.pf-actions > button:not([hidden]),
point-frame .pf-actions > button {
	display: flex;
}
point-frame .pf-actions > button[hidden] {
	display: none;
}

point-frame .pf-actions > button > img {
	display: inline-block;
	margin: 0 auto;
}

point-frame .pf-actions button:last-of-type{
	margin-right: 0;
}

.main-menu li {
	display: flex;
    align-items: center;
}

/*point-frame .pf-actions > button > img {
	filter: invert(35%) sepia(5%) saturate(185%) hue-rotate(71deg) brightness(93%) contrast(86%);
}*/
point-frame .pf-actions > button:hover > img {
	filter: var(--theme-icon-filter);
}
point-frame .pf-actions > button[disabled] > img {
	filter: invert(5%) sepia(0%) saturate(5508%) hue-rotate(220deg) brightness(125%) contrast(87%);
	/*filter: invert(93%) sepia(6%) saturate(57%) hue-rotate(71deg) brightness(95%) contrast(92%);*/
}

point-frame .pf-actions > button[disabled] > svg {
	fill: #595B59;
	opacity: 36%;
}

point-frame .pf-actions > .properties[disabled]:hover ,
point-frame .pf-actions > .set-link[disabled]:hover  {
	opacity: 1 !important;
	filter: none !important;
}

point-frame .pf-actions .center-on-point img,
point-frame .pf-actions .view-point img,
point-frame .pf-actions .properties img,
point-frame .pf-actions .set-link img,
point-frame .pf-actions .add-media img,
point-frame .pf-actions .view-original img,
point-frame .pf-actions .remove-frame img,
point-frame .pf-actions .go-deeper img {
	max-width: 100%;
	max-height: 100%;
}

point-frame .pf-actions .center-on-point,
[title="Download PDF"] {
 display: none !important;
}

.view-original img{
	height: 11px;
	position: relative;
	right: -0.5px;
}

point-frame .pf-actions .remove-frame img {
	width: 8px;
}

point-frame .pf-actions .add-media img {
	width: 11px;
}

point-frame .pf-actions .view-point img {
	width: 12px;
	position: relative;
	bottom: -0.5px;
}

point-frame .pf-actions .go-deeper img {
	width: 9px;
}

point-frame .pf-actions .properties img ,
point-frame .pf-actions .set-link img {
	width: 9px;
}

point-frame .pf-actions .properties svg,
point-frame .pf-actions .set-link svg {
	width: 9px;
	height: 12px;
    position: relative;
    top: -0.5px;
}

point-frame .req {
	position: relative;
	/* grid-area: req; */
	/*pointer-events: none;*/

	margin-left:3px;
	color: var(--theme-text-color);
	font-size: 12px;
	margin-top: -20px;
	text-overflow: ellipsis;
	max-width: calc(40px + var(--point-frame-width));
	overflow: hidden;
	white-space: nowrap;

	/*display: flex;*/
    align-items: center;
    margin-bottom: 5px;
	gap: 5px;
}

point-frame  .label {
	color: var(--theme-text-color);
	font-size: 10px;
	margin-top: -25px;
	text-overflow: ellipsis;
	max-width: calc(40px + var(--point-frame-width));
	/* overflow: hidden; */
	white-space: nowrap;

	display: flex;
    align-items: center;
    margin-bottom: 5px;
	gap: 5px;
}

point-frame  .label{
    font-size: 14px !important;
    font-weight: bold;
    border: 2px solid white !important;
    padding: 4px !important;
    line-height: 1;
    margin-right: 5px !important;
    /* padding-bottom: 0; */
    color: white !important;
    background: transparent !important;
}

.circleEr {
	margin-top: 6px !important;
}

point-frame .stats {
	grid-area: stats;
	color: var(--theme-text-color);
	font-size: 12px;
	/* margin-top: 6px; */
}

point-frame .label {
	/*order: 1;*/
	/* grid-area: label; */
    position: relative;
	font-size: 20px;
	padding: 4px;
	color: var(--point-frame-label-text-color);
	background: var(--point-frame-label-background-color);
	display: flex;
	border-right: solid var(--point-frame-padding) var(--point-frame-background-color);
	justify-content: center;
	align-items: center;
	text-align: center;
}

/*button[disabled] img {
	filter: contrast(20%) brightness(150%);
}*/

q {
	background: rgb(51, 144, 255);
	color: white;
}
q::before, q::after {
	content: none;
}

/* .nested-content input:focus {
	border: 2px solid var(--action-button-color) !important;
} */


.nested-content:focus-within {
	border: 2px solid var(--action-button-color) !important;
}

.nested-content:focus-within .name-point{
	color: var(--gray-tone-4);
}

/*
point-frame[alias="1"] {
	border: solid var(--point-frame-padding) var(--point-frame-ghost-border);
	background: red;
}
point-frame[alias="1"] .label {
	color: coral;
	border-right: solid var(--point-frame-padding) var(--point-frame-ghost-border);
}
point-frame[alias="1"] .pf-actions {
	border: solid var(--point-frame-padding) var(--point-frame-ghost-border);
}
*/

point-box {
	/*order: 2;*/
	grid-area: content;

	margin-top:6px;
	margin-bottom: 0px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto 14px;
	width: var(--point-frame-width);
	height: var(--point-frame-height);
	/*border: solid var(--point-frame-gap) var(--point-box-border-color);*/

	box-sizing: border-box;
	justify-content: center;

	width: 100%;
}

point-frame:not([preview]) point-box.horizontal:has(point-box-audio) {
	grid-template-columns : 1fr;
	grid-template-rows: 1fr 14px 1fr !important;
}

point-frame:has([preview]) point-box.horizontal:has(point-box-audio):not(:has(point-box-text)) {
	grid-template-columns : 1fr;
	grid-template-rows: 1fr 14px !important;
}

point-frame:has([preview]) point-box.horizontal:has(point-box-audio):has(point-box-text) {
	grid-template-columns : 1fr;
	grid-template-rows: 1fr 14px 1fr !important;
}

point-box.horizontal:not(.horizontal-custom):not(:has(point-box-audio)) {
	grid-template-columns : 1fr;
	grid-template-rows: 1fr 1fr !important;
}

point-box.horizontal > point-box-image:nth-last-child(2) {
    grid-row: 1;
	grid-column:span 2;
}

point-box.horizontal:has(point-box-audio) > point-box-text{
    grid-row: 3;
	grid-column: span 2;
}

point-box.horizontal:not(:has(point-box-audio)) > point-box-text{
	grid-row: 2;
	grid-column: span 2;
}

point-box.horizontal > point-box-image ~ point-box-text{
	border-top: solid 1px var(--point-box-border-color);
	border-left: 0px !important;
}

point-box.horizontal > point-box-image{
	border-bottom: solid 1px var(--point-box-border-color);
	border-right:0px !important;
}

point-box.horizontal > point-box-text{
	grid-column: span 2;
}

point-box.horizontal > point-box-audio:nth-last-child(3){
	grid-column: span 2;
    grid-row: 2;
}

.pf-footer{
	margin-top: 7px;
    display: grid;
    grid-template-columns: 1fr 1fr;
	min-height: 18px;
}

.pf-header{
	position: absolute;
    top: 25px;
    display: flex;
	max-width: 96%;
}

point-frame[alias="1"] point-box {
	pointer-events: none;
}

point-frame[alias="1"]  .pf-footer > .pf-actions > .add-media{
	display: none;
}

/* layouts */
point-box-image {
	grid-row: span 2;
	grid-column: span 2;
}
point-box-audio + point-box-image {
	grid-row: 1;
}
point-box-image:nth-last-child(2) {
	grid-column: 1;
}

point-box-audio {
	grid-row: 2;
	grid-column: span 2;
}
point-box-audio:only-child {
	grid-row: span 2;
}
point-box-audio:nth-last-child(3) {
	/* grid-column: 1; */
}
point-box-text {
	grid-row: span 2;
	grid-column: span 2;
}
point-box-audio + point-box-text {
	grid-row: 1;
}
point-box-image + point-box-text {
	grid-column: 2;
}

point-box-text.empty:not([preview="true"])::before {
	content: 'Point Text';
	color: #888;
}

point-box-image, point-box-image-dragging {
	background: var(--point-box-image-background-color);
	display: flex;
	/*
	align-items: center;
	justify-items: center;
	object-fit: contain;
	*/
	border-right: solid 1px var(--point-box-border-color);
	max-height: var(--point-frame-height);
	position: relative;
	overflow: hidden;
}

point-box-image .remove-image {
	position: absolute;
	right: 0;
	top: 0;
	height: 10px;
	line-height: 10px;
	cursor: pointer;
}

point-box-image img, point-box-image-dragging img {
	margin: auto;
	max-width: 100%;
	/*max-height: calc(var(--point-frame-height) - 2 * var(--point-frame-gap));*/
	max-height: 100%;
}

point-box-image img:hover{
	cursor: grab;
}

point-box.drag img:hover{
	cursor: copy !important;
}

point-frame:has(.dragging),
point-box.dragging > point-box-text,
point-box.dragging > point-box-image img{
	cursor: grabbing  !important;
}

point-box.drag.horizontal,
point-box.drag.vertical{
	cursor: copy !important;
}

point-box-image-dragging img{
	opacity: 0.5;
}
point-box-audio {
	background: var(--audio-section-background);
	border-top: solid 2px var(--point-box-border-color);
	position: relative;
	display: flex;
}
point-box-audio .play-button,
point-box-audio .pause-button {
	height: 10px;
	line-height: 10px;
	align-items: center;
	margin: 0 2px;
	cursor: default;
}
point-box-audio .play-button:not([hidden]),
point-box-audio .pause-button:not([hidden]) {
	display: inline-flex;
}
point-box-audio .play-button:hover,
point-box-audio .pause-button:hover {
	filter: drop-shadow(2px 2px 3px black);
}

point-box-audio .play-button img,
point-box-audio .pause-button img {
	max-height: 100%;
}
point-box-audio .remove-audio {
    position: absolute;
    right: 0;
    top: 0;
    height: 10px;
    line-height: 10px;
    cursor: default;
    transform: translate(-40%, 10%);
}


point-box-text {
	color: var(--gray-tone-1);
	background: var(--point-box-text-background-color);

	flex: 1;
	width: 100%;
	height: 100%;
	overflow: hidden;
	font-size: 13px;
	padding: 2px;
	box-sizing: border-box;
	grid-row: 1;
	word-wrap: break-word;
	user-select: text;
}

point-box:not(:has(point-box-audio)) point-box-text{
	grid-row:span 2 !important;
}

point-box-text:focus-visible {
	outline: none;
}
point-box-text:focus {
	outline: none;
}

point-box-text:not([preview="true"]):not([alias="1"]) {
	cursor: text;
}
point-box-image ~ point-box-audio {
	border-right: solid 1px blue;
}
point-box-image ~ point-box-text {
	border-left: solid 1px var(--point-box-border-color);
}

point-frame-border {
	position: absolute;
	/*background: rgba(255, 0, 0, 0.75);*/
	cursor: crosshair;
}
point-frame-border:hover {
	/*background: var(--point-frame-border-hover);*/
	cursor: crosshair;
}

point-frame-canvas[preview="true"] point-frame-border {
	cursor: default;
}

point-frame-border[position="left"] { left: var(--point-frame-border-start); }
point-frame-border[position="right"] { right: var(--point-frame-border-start); }
point-frame-border[position="top"] {
	height: calc(var(--point-frame-border-width) + var(--point-frame-border-additional-width));;
	top: var(--point-frame-border-start);
}
point-frame-border[position="bottom"] {
	height: var(--point-frame-border-width);
	bottom: var(--point-frame-border-start);
}
point-frame-border[position="left"], point-frame-border[position="right"] {
	width: calc(var(--point-frame-border-width) + var(--point-frame-border-additional-width));
	top: 0;
	height: 100%;
}
point-frame-border[position="top"], point-frame-border[position="bottom"] {
	left: 0;
	width: 100%;
}


body:has(text-properties:not([hidden])) header,
body:has(text-properties:not([hidden])) aside,
body:has(text-properties:not([hidden])) #editor,
body:has(text-properties:not([hidden])) .edit-area > div:first-child {
	filter: blur(2px);
	pointer-events: none;
}

/* body:has(popup-ghost-cant-nested:not([hidden])) header,
body:has(popup-ghost-cant-nested:not([hidden])) aside,
body:has(popup-ghost-cant-nested:not([hidden])) #editor,
body:has(popup-ghost-cant-nested:not([hidden])) .edit-area > div:first-child {
	filter: blur(2px);
	pointer-events: none;
} */

text-properties {
	position: fixed;
	top: calc(50% - 90px);
	left: calc(50% - 150px);
	/* width: 320px;
	height: 220px; */
	width: 384px;
    height: 226px;
	box-sizing: border-box;
	z-index: 100;
	background: white;
}

 link-popup {
	position: fixed;
	top: calc(50% - 90px);
	left: calc(50% - 150px);
	/* width: 320px;
	height: 220px; */
	width: 384px;
    height: 120px;
	box-sizing: border-box;
	z-index: 100;
	background: white;
}
text-properties::before , link-popup::before {
	content: '';
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100vw;
	height: 100vw;
	backdrop-filter: blur(2px);
	z-index: -2;
}
text-properties::after {
	content: '';
	position: fixed;
	top: calc(50% - 90px);
	left: calc(50% - 150px);
	width: 384px;
    height: 226px;
	box-sizing: border-box;
	z-index: -1;
	border: solid 2px var(--gray-tone-9);
}



link-popup::after {
	content: '';
	position: fixed;
	top: calc(50% - 90px);
	left: calc(50% - 150px);
	width: 384px;
    height: 120px;
	box-sizing: border-box;
	z-index: -1;
	border: solid 2px var(--gray-tone-9);
}



/* popup-ghost-cant-nested {
	position: fixed;
	top: calc(50% - 90px);
	left: calc(50% - 150px);
	/* width: 320px;
	height: 220px; */
	width: 384px;
    height: 206px;
	box-sizing: border-box;
	z-index: 100;
	background: white;
}
popup-ghost-cant-nested::before {
	content: '';
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100vw;
	height: 100vw;
	backdrop-filter: blur(2px);
	z-index: -2;
}
popup-ghost-cant-nested::after {
	content: '';
	position: fixed;
	top: calc(50% - 90px);
	left: calc(50% - 150px);
	width: 384px;
    height: 206px;
	box-sizing: border-box;
	z-index: -1;
	border: solid 2px var(--gray-tone-9);
} */

point-frame-canvas:not([preview="true"]) .annotate,
point-frame-canvas[preview="true"] .go-deeper,
point-frame-canvas[preview="true"] .view-original,
point-frame-canvas[preview="true"] .view-point,
point-frame-canvas[preview="true"] .properties,
point-frame-canvas[preview="true"] .set-link,
point-frame-canvas[preview="true"] .add-media,
point-frame-canvas[preview="true"] .go-deeper:not(.nested),
point-frame[alias="1"] .add-media,
point-frame[alias="1"]:not([preview="true"]) .properties,
point-frame[alias="1"]:not([preview="true"]) .set-link,
point-frame[alias="1"]:not([preview="true"]) .back-to-original,
point-frame[alias="1"]:not([preview="true"]) .go-deeper,
point-frame-canvas[preview="true"] .remove-frame {
	display: none;
}

/* So when there is nested point inside ghost original point this ghost point should also show the down arrow for the write chart too */
point-frame[alias="1"]:not([preview="true"]) .go-deeper.nested{
	display:flex;
}

point-frame[alias="1"]:not([preview="true"]) .go-deeper.nested:hover{
	opacity: 1 !important;
	filter: none !important;
}

point-frame[alias="1"][x="0"][y="0"] .properties,
point-frame[alias="1"][x="0"][y="0"] .set-link {
    display: none !important;
}

point-frame[alias="1"][x="0"][y="0"] .add-media {
    display: none !important;
}

/* If you opened the nested level by clicking on ghost point, should not allow to remove that poijt */
point-frame-canvas[pmodel="ghost"]:not([preview="true"]) .remove-frame{
	display:none;
}

/* the main sample of ghost point to the nested point frame should not appear down button arrow! */
point-frame-canvas#canvas point-frame[alias="1"][x="0"][y="0"] .go-deeper.nested {
    display: none !important;
}


point-frame-canvas[pmodel="ghost"] point-frame[alias="1"]:not([preview="true"]),point-frame-canvas[pmodel="ghost"] .label:not([preview="true"]){
	cursor: default !important;
}

point-frame-canvas[pmodel="ghost"] point-frame-border{
	cursor: default !important;
}

point-frame .view-original svg {
	pointer-events: none;
}

point-frame-canvas[preview="true"] point-frame .label {
	cursor: default;
}
point-frame-canvas[preview="true"] point-frame-border:hover {
	background: rgba(255, 0, 0, 0.05);
	cursor: default;
}

point-frame-canvas[preview="true"] point-box-audio:only-child,
point-frame-canvas[preview="true"] point-box-audio:last-child {
	border-top: none;
	justify-content: center;
	align-items: center;
}

point-frame-canvas[preview="true"] point-box-audio:only-child .play-button,
point-frame-canvas[preview="true"] point-box-audio:last-child .play-button,
point-frame-canvas[preview="true"] point-box-audio:only-child .pause-button,
point-frame-canvas[preview="true"] point-box-audio:last-child .pause-button {
	height: 100%;
	max-height: 100%;
}

audio {
	max-height: 100%;
	max-width: calc(var(--point-frame-width) - 18px);
}
point-box-audio:nth-last-child(3) audio {
	max-width: calc(var(--point-frame-width) / 2 - 18px);
}
point-frame-canvas[preview="true"] audio,
[alias="1"] audio {
	max-width: calc(var(--point-frame-width));
}
point-frame-canvas[preview="true"] point-box-audio:nth-last-child(3) audio,
[alias="1"] point-box-audio:nth-last-child(3) audio {
	max-width: calc(var(--point-frame-width) / 2);
}


#breadcrumb {
	display: flex;
	margin: 0;
}
#breadcrumb li {
	list-style-type: none;
}
#breadcrumb li + li::before {
	display: inline-block;
	margin: 0 5px;
	content: '\2192';
}


text-properties, link-popup {
	padding: 10px;
	border: solid 2px var(--gray-tone-9);
}
text-properties h3 {
	text-align: center;
	margin: 10px 0;
}
text-properties div , link-popup div {
	margin: 10px 0;
}
text-properties div:last-child,
link-popup div:last-child {
	display: grid;
	grid-template-columns: auto auto;
	align-content: space-between;
	justify-content: center;
	margin-top:20px;
}

link-popup input{
	width: 100%;
}

#warnings {
	margin: 5px;
	padding: 0;
}
#warnings li {
	list-style-type: none;
	text-align: center;
}
#warnings li::before {
	display: inline-block;
	font-size: 1.3em;
	margin-right: 8px;
	content: '!';
	color: red;
