:root {
	--color-text: #e2daf9;
	--color-text-dark-1: #b3aec4;
	--color-bg: #252637;
	--color-popup: #3a2b63;
	--color-overlay: rgb(0 0 0 / 40%);
	--color-close-btn: #d12b4a;
	--code-font-size: 16px;
	--color-button: #e3ba26;
	--color-focus-outline: #d3a447;
	--color-form-control-bg: #2c214b;

	--color-heading: #fff;
	--color-text-light: #b0a5d6;
	--color-text-lightest-final: #787090;
	--clr-brand: purple;
	--clr-brand-2: #e3ba26;

	--color-pro-1: #1fffb3;
	--color-pro-2: #f2ff00;

	--color-btn-hover-1: hsl(53.35deg 100% 50%);
	--color-btn-hover-2: hsl(38.96deg 100% 50%);

	--footer-height: 37px;
	--console-height: 32px;

	--duration-modal-show: 0.3s;
	--duration-modal-overlay-show: 0.2s;

	--zindex-modal-overlay: 5;
	--zindex-footer: 6;
	--zindex-modal: 2000;
}

html {
	font-size: 1em;
}
body {
	margin: 0;
	padding: 0;
	background: rgba(0, 0, 0, 0.5);
	background: var(--color-bg);
	color: rgba(255, 255, 255, 0.9);
	min-height: 100vh;
	/* speocifically for mobile when keyboard is open */
	position: relative;
	font-weight: 500;

	/* setting fontsize because chrome extension has a font-size:75% on body
	as injected style */
	font-size: 1em;

	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial,
		sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol';
	-webkit-font-smoothing: antialiased;
}

h1 {
	margin-top: 0;
}

select,
input,
textarea {
	font-size: inherit;
	color: var(--color-text);
	background: var(--color-form-control-bg);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-bottom-color: rgba(255, 255, 255, 0.17);
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
	border-radius: 3px;
	padding: 5px 10px;
	box-sizing: border-box;
	max-width: 100%;
}
input,
textarea {
	font-weight: 500;
}
code {
	font-size: 1.2em;
}

[role='button'] {
	cursor: pointer;
}

a {
	text-decoration: none;
	color: #f7ae2d;
	cursor: pointer;
}

a:hover {
	text-decoration: underline;
}

p {
	line-height: 1.65;
}

button {
	font-family: inherit;
	font-size: 100%;
	cursor: pointer;
}

.hide {
	display: none !important;
}

.d-i {
	display: inline;
}

.d-b {
	display: block;
}
.flex {
	display: flex;
}
.d-f {
	display: flex;
}
.fxw-w {
	flex-wrap: wrap;
}
.ov-h {
	overflow: hidden;
}
.flex-grow {
	flex-grow: 1;
}

.flex-v-center {
	align-items: center;
}
.ai-c {
	align-items: center;
}
.flex-h-center,
.jc-c {
	justify-content: center;
}

.flex-h-end,
.jc-fe {
	justify-content: flex-end;
}

.flex-shrink-0 {
	flex-shrink: 0;
}
.jc-sb {
	justify-content: space-between;
}
.fxd-c {
	flex-direction: column;
}
.fxw-w {
	flex-wrap: wrap;
}

.fr {
	float: right;
}

.relative {
	position: relative;
}

.tac {
	text-align: center;
}

.tar {
	text-align: right;
}

.va-m {
	vertical-align: middle;
}

.full-width {
	width: 100%;
}

.opacity--30 {
	opacity: 0.3;
}

.opacity--70 {
	opacity: 0.7;
}

.pointer-none {
	pointer-events: none;
}

.ml-1 {
	margin-left: 1rem;
}

.ml-2 {
	margin-left: 2rem;
}

.mb-1 {
	margin-bottom: 1rem;
}

.mb-2 {
	margin-bottom: 2rem;
}

.mt-1 {
	margin-top: 1rem;
}

.mt-2 {
	margin-top: 2rem;
}

.mb-0 {
	margin-bottom: 0;
}

.mt-0 {
	margin-top: 0;
}

.support-link {
	color: #f7ae2d;
}

.para {
	max-width: 60ch;
}

@media screen and (max-width: 600px) {
	.block--mobile {
		display: block;
	}

	.ml-0--mobile {
		margin-left: 0rem;
	}

	.hide-on-mobile {
		display: none !important;
	}
}

@media screen and (min-width: 601px) {
	.show-on-mobile {
		display: none;
	}

	.flex--desk {
		display: flex;
	}
}

hr {
	background: 0;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	margin: 20px 0;
}

label {
	cursor: pointer;
}
.divider {
	margin: 1rem;
	height: 1px;
	background: rgba(255, 255, 255, 0.15);
}
.divider--vertical {
	width: 1px;
	height: 100%;
}
[class*='hint--']:after,
[class*='hint--']:before {
	background-color: #000;
	border-radius: 0 4px 0 0;
}
[class*='hint--']:after {
	text-transform: none;
	font-weight: normal;
	letter-spacing: 0.5px;
	font-size: 14px;
	border-radius: 4px;
}

.line {
	/* display: block; */
	margin-bottom: 1em;
	display: flex;
	justify-content: space-between;
}

.caret {
	display: inline-block;
	width: 0;
	height: 0;
	border: 6px solid transparent;
	border-top-color: currentColor;
	position: relative;
	top: 5px;
	margin-left: 8px;
}

a > svg {
	fill: rgba(255, 255, 255, 0.35);
}

.hidden-select {
	opacity: 0;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

.check-switch {
	display: block;
	overflow: hidden;
	position: relative;

	/* breathing space for outline */
	padding: 2px 0;
}

.check-switch:hover {
	background: rgba(0, 0, 0, 0.1);
}

.check-switch .check-switch__toggle {
	position: relative;
	margin: 0 5px;
}
.check-switch .check-switch__toggle:after {
	background: #fff;
	position: absolute;
	border-radius: 100%;
	width: 1.1em;
	height: 1.1em;
	top: 3px;
	right: 1.5em;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
	transition: right 0.1825s ease-in-out;
}

.check-switch .check-switch__toggle:before,
.check-switch .check-switch__toggle:after {
	content: '';
	display: block;
}

.check-switch .check-switch__toggle:before {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 1.75em;
	width: 2.75em;
	height: 1.45em;
	right: 0.25em;
	transition: background 0.2s ease-in-out;
}

.check-switch input:not([role='button']) {
	pointer-events: none;
}

.check-switch input {
	top: 0;
	left: 0;
	opacity: 0.0001;
	position: absolute;
}

.check-switch__status {
	text-transform: uppercase;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
}

.check-switch input:focus + * .check-switch__toggle:before {
	outline: 2px solid;
	outline-color: var(--color-focus-outline);
}

.check-switch input:checked + * .check-switch__toggle:after {
	right: 0.15em;
	left: auto;
}

.check-switch input:checked + * .check-switch__toggle:before {
	background: #61ad1c;
}
.check-switch__toggle-wrap {
	float: right;
	display: flex;
	align-items: center;
	margin-inline-start: 2rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	color: var(--color-button);
	font-size: inherit;
	background: transparent;
	border: 3px solid var(--color-button);
	border-radius: 2rem;
	padding: 9px 15px;
	cursor: pointer;
	letter-spacing: 0.2px;
	line-height: 1;
	white-space: nowrap;
	text-align: center;
	box-sizing: border-box;
	transition: box-shadow 0.2s ease;
}

.btn--primary {
	--black-mix: 70%;
	background: linear-gradient(
		180deg,
		var(--color-button),
		color-mix(in lch, var(--color-button), black)
	);
	color: black;
	font-weight: 600;
	border: 1px solid
		color-mix(in lch, var(--color-button), black var(--black-mix));
	box-shadow: inset 0 1px 0px 0 rgba(255, 255, 255, 0.15);
}

.btn--big {
	padding: 15px 30px;
	border-radius: 0.5rem;
}

.btn-icon {
	display: inline-flex;
	align-items: center;
}

.btn--small {
	padding: 0.2rem 0.5rem;
	text-transform: uppercase;
	/* border-radius: 3px; */
	font-size: 0.8rem;
}

.btn:hover {
	--black-mix: 90%;
	text-decoration: none;
	box-shadow:
		rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
		rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}

.btn:disabled {
	opacity: 0.5;
	pointer-events: none;
	cursor: not-allowed;
}
*:focus {
	outline-width: 3px;
	outline-color: var(--color-button);
	outline-style: solid;
	outline-offset: 1px;
}

.btn-icon > svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	vertical-align: middle;
	margin-right: 8px;
}

.btn--big > svg {
	width: 2rem;
	height: 2rem;
	margin-right: 1rem;
}

@property --angle {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}
.btn--pro {
	background: linear-gradient(
		var(--angle),
		var(--color-pro-1),
		var(--color-pro-2)
	);
	color: #222;
	border: 0;
	font-weight: 700;
	animation: gradient_move 3s linear infinite;
}
@keyframes gradient_move {
	from {
		--angle: 0deg;
	}
	to {
		--angle: 360deg;
	}
}

.btn-loader {
	display: none;
}

.is-loading > svg {
	display: none;
}

.is-loading .btn-loader {
	display: block;
}

.star:after {
	content: '★';
	color: currentColor;
}

/* used to show keyboard specific content when something is keyboard focused */

.show-when-selected {
	display: none;
}

.selected .show-when-selected {
	display: inline-block;
}

.main-container {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: 0.25s ease;
	will-change: filter, transform;
}

body:not(.light-version).overlay-visible .main-container {
	transition-duration: 0.5s;
	transform: scale(0.98);
}

.content-wrap {
	/* HACK:  */
	height: 1px;
	/* HACK: 70px is approx header+footer. This is required to because
	on FF the content-wrap goes beyond the flex parent otherwise. */
	max-height: calc(100% - 75px);
}

.code-side,
.demo-side {
	flex-basis: inherit;
	position: relative;
	width: 50%;
}

.layout-3 .content-wrap {
	flex-direction: row-reverse;
}

.code-side {
	display: flex;
	flex-direction: column;
}

.layout-2 .content-wrap {
	flex-direction: column;
}

.layout-2 .code-side {
	flex-direction: row;
	width: auto;
}

.layout-2 .demo-side {
	width: auto;
}

.is-file-mode .content-wrap {
	flex-direction: row;
}

/* All vertical layout */

.layout-5 .code-side {
	flex-direction: row;
	width: auto;
}

.layout-5 .code-wrap {
	height: auto;
}

/* Fullscreen layout */

.layout-4 .code-side {
	display: none;
}

.layout-4 .code-side + .gutter {
	display: none;
}

.layout-4 .demo-side {
	width: 100% !important;
}

.is-detached-mode .demo-side {
	/* display: none; */
	width: 0px !important;
	height: 0px !important;
}

.is-detached-mode .code-side {
	width: 100% !important;
}

.is-detached-mode.layout-2 .code-side {
	height: 100% !important;
}

.code-wrap {
	display: flex;
	flex-direction: column;
	flex-basis: inherit;
	height: 33%;
	overflow: hidden;
	position: relative;
	background: var(--color-bg);
	transition:
		height 0.3s ease,
		width 0.3s ease;
	will-change: height;
}

.layout-2 .code-wrap.is-minimized,
.layout-5 .code-wrap.is-minimized {
	flex-direction: row;
}

.is-dragging .code-wrap {
	transition: none;
}

.layout-2 .code-wrap {
	height: auto;
	width: 33%;
}
.is-file-mode .code-wrap {
	flex-basis: 100%;
}

.code-wrap__header {
	display: flex;
	flex-shrink: 0;
	justify-content: space-between;
	align-items: center;
	padding: 5px 10px;
	background: rgba(0, 0, 0, 0.2);
	color: #888;
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
	font-weight: 600;
	user-select: none;
}

.code-wrap__header-label {
	/*transform: translate(0px) scale(1.2);*/
	display: inline-block;
	font-size: 1.1em;
	/*transform-origin: left center;*/
}

.layout-2 .code-side .is-minimized .code-wrap__header,
.layout-5 .code-side .is-minimized .code-wrap__header {
	writing-mode: vertical-lr;
	padding: 10px 5px;
}

.code-wrap__header .caret {
	transition: 0.2s ease;
}

.is-minimized .code-wrap__header .caret {
	opacity: 0;
}

.code-wrap__header-btn {
	display: inline-block;
	vertical-align: top;
	margin-left: 8px;
}

.code-wrap__header-btn,
.code-wrap__header-btn > svg {
	width: 18px;
	height: 18px;
}

.code-wrap__header-right-options {
	position: relative;
	/* bring over mode select boxes */
	z-index: 1;
	display: flex;
	align-items: center;
}

.code-wrap__collapse-btn:before {
	/* maximize icon */
	content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" style="width:18px;height:18px" viewBox="0 0 24 24"><path fill="rgba(255,255,255,0.35)" d="M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z" /></svg>');
}

.is-maximized .code-wrap__collapse-btn:before {
	/* minimize icon */
	content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" style="width:18px;height:18px" viewBox="0 0 24 24"><path fill="rgba(255,255,255,0.35)" d="M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z" /></svg>');
}

@keyframes pop-in {
	from {
		transform: scale(0.9);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* Codemirror */

.CodeMirror {
	width: 100%;
	height: calc(100% - 25px);
	/* 25px for header */
	font-size: var(--code-font-size);
}

/* TODO: Check why? */

.layout-2 .is-minimized .Codemirror,
.layout-5 .is-minimized .Codemirror {
	height: calc(100%);
}

.CodeMirror pre {
	font-variant-ligatures: contextual;
}

.cm-s-monokai .CodeMirror-linenumber {
	color: rgba(255, 255, 255, 0.2);
}

.cm-s-monokai.CodeMirror,
.cm-s-monokai .CodeMirror-gutters {
	background: var(--color-bg);
}

.cm-s-monokai .CodeMirror-guttermarker-subtle {
	opacity: 0.4;
}

.cm-s-monokai .CodeMirror-activeline-background,
.cm-s-monokai .CodeMirror-activeline-gutter {
	background: rgba(0, 0, 0, 0.1) !important;
}

.CodeMirror-guttermarker-subtle {
	/*visibility: hidden !important;*/
}

.CodeMirror-gutter-wrapper:hover .CodeMirror-guttermarker-subtle {
	/*visibility: visible;*/
}

.CodeMirror-hints {
	font-size: var(--code-font-size);
	border: 0;
	background: #1e1e2c;
}

.CodeMirror-hint {
	color: #bbb;
	padding: 2px 4px;
}

li.CodeMirror-hint-active {
	background: #5b429d;
	/*color: white;*/
}

[data-type='css'] .cm-error {
	background: inherit !important;
}

#demo-frame {
	border: 0;
	width: 100%;
	height: calc(100% - var(--console-height));
	/*  minus minimized console height */
	position: absolute;
	z-index: 1;
	background: white;
}

/* When demo frame is in detached window */

body > #demo-frame {
	height: 100%;
	/* Because console is no more here */
}

.main-header,
.footer {
	padding: 5px 10px;
	background-color: rgb(18, 19, 27);
	color: rgba(255, 255, 255, 0.45);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	/*line-height: 20px;*/
}

.footer {
	display: flex;
	justify-content: space-between;
	/* Because .console is 6 */
	z-index: var(--zindex-footer);
}

.main-header {
	display: flex;
	flex-wrap: nowrap;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.btn--dark,
.main-header__btn-wrap > button {
	--clr-1: hsl(0, 0%, 25%);
	--clr-2: hsl(0, 0%, 13%);
	box-sizing: content-box;
	/* text-transform: uppercase; */
	/* font-size: 0.875rem; */
	font-weight: 500;
	line-height: 20px;
	height: 20px;
	letter-spacing: 0.6px;
	white-space: nowrap;
	color: #bbbfd3;
	border-radius: 3px;
	margin-left: 10px;
	padding: 3px 8px;
	border: 1px solid rgba(0, 0, 0, 0.9);
	border-radius: 5px;
	background: linear-gradient(180deg, var(--clr-1) 0, var(--clr-2) 100%);
	box-shadow: inset 0 1px 0px 0 rgba(255, 255, 255, 0.15);
}

.btn--dark > svg {
	fill: #9297b3;
	width: 20px;
	height: 20px;
}
.btn--dark > svg:not(:last-child) {
	margin-right: 4px;
}

.main-header__btn-wrap > .is-marked > svg {
	fill: crimson;
}

.btn--dark:hover {
	/* --clr-1: #6844ad; */

	--clr-1: hsl(53.35deg 100% 50%);
	--clr-2: hsl(38.96deg 100% 50%);
	color: #111;
	/* border-color: rgba(146, 151, 179, 0.5); */
}
.btn--dark:hover > svg {
	fill: #111;
}
.btn--dark.btn--active {
	background: linear-gradient(0deg, hsl(0, 0%, 25%) 0, hsl(0, 0%, 13%) 100%);
	box-shadow: inset 0 -1px 0px 0 rgba(255, 255, 255, 0.15);
}
.btn--chromeless {
	box-shadow: none;
	background: transparent;
	border: 0;
	padding: 1px;
}
.main-header__btn-wrap > .is-loading {
	pointer-events: none;
	opacity: 0.4;
}

.main-header__avatar-img,
.profile-modal__avatar-img {
	border-radius: 50%;
}

.logo {
	display: inline-block;
	height: 25px;
	width: 48px;
	margin-right: 5px;
	background: url(icon-48.png) 0px -12px;
	background-repeat: no-repeat;
	vertical-align: middle;
	-webkit-filter: grayscale(0.9);
	filter: grayscale(0.9);
	transition: 0.4s ease;
	opacity: 0.3;
	will-change: opacity, filter;
}

.footer:hover .logo {
	-webkit-filter: grayscale(0);
	filter: grayscale(0);
	opacity: 1;
}

.footer__right {
	font-size: 0;
	line-height: 0;
}

.footer__separator {
	display: inline-block;
	height: 24px;
	margin: 0 10px 0 20px;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.mode-btn {
	background: transparent;
	border: 0;
	padding: 0;
	margin-left: 10px;
	display: inline-block;
}

.footer__link:first-of-type {
	margin-left: 5px;
}

.footer__link {
	display: inline-block;
	background: transparent;
	border: 0;
	padding: 0;
	margin-right: 5px;
	position: relative;
	top: 2px;
}

.footer a > svg,
.footer button > svg {
	transition: 0.3s ease;
	fill: rgba(255, 255, 255, 0.35);
}

.footer a:hover svg,
.footer button:hover svg {
	fill: rgba(255, 255, 255, 0.6);
}
.footer a,
.footer button {
	cursor: pointer;
}

.mode-btn svg {
	width: 24px;
	height: 24px;
}

.mode-btn.selected svg {
	fill: rgba(255, 255, 255, 0.6);
}

.gutter {
	background: rgba(255, 255, 255, 0.05);
	flex-shrink: 0;
}

.gutter-horizontal {
	cursor: ew-resize;
}

.gutter-vertical {
	cursor: ns-resize;
}

.item-title-input {
	background: none;
	border: 0 !important;
	color: rgba(255, 255, 255, 0.6);
	flex: 1;
	padding: 3px 5px !important;
}

.search-input {
	/* background: rgba(255, 255, 255, 0.1); */
	/* padding: 10px 20px; */
	/* border: 0; */
	width: 100%;
	font-size: 16px;
	/* color: white; */
	/* border-radius: 4px; */
}

.dialog__close-btn {
	display: flex;
	position: absolute;
	border: none;
	background: var(--color-close-btn);
	background: linear-gradient(
		to bottom,
		var(--color-close-btn),
		color-mix(in lch, var(--color-close-btn), black)
	);
	color: white;
	border-radius: 0.3rem;
	padding: 0.4rem 0.5rem;
}
.dialog__close-btn > svg {
	width: 1.2rem;
	aspect-ratio: 1;
}
.dialog__close-btn:hover {
	--color-close-btn: var(--color-btn-hover-1);
	color: #111;
}

.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	overflow-y: auto;
	align-items: center;
	display: flex;
	align-items: baseline;
	justify-content: center;
	z-index: var(--zindex-modal);
	visibility: hidden;
	/* To prevent scroll repaint inside modal */

	z-index: var(--zindex-modal-overlay);
	/* opacity: 0; */
	will-change: opacity;
	background: var(--color-overlay);
	transition: opacity var(--duration-modal-overlay-show);

	will-change: transform;
}
body:not(.light-version) .modal {
	backdrop-filter: blur(5px) grayscale(1);
}

.modal--no-overlay {
	background: none;
	backdrop-filter: none;
}

@keyframes anim-modal-overlay {
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.modal__close-btn:hover {
	--color-close-btn: var(--color-btn-hover-1);
	color: #111;
}
.modal__close-btn:hover > svg {
	fill: #111;
}

.modal__close-btn {
	right: 0rem;
	bottom: calc(100% + 0.2rem);
	transition: 0.25s ease;
}
.popup,
.modal__content {
	--opaque: 68%;
	background: var(--color-popup);

	/* fix me */
	background: linear-gradient(45deg, rgb(45 6 60 / var(--opaque)), #3a2b63);
	box-shadow:
		inset 1px -1px 0 0 #ffffff17,
		0 20px 31px 0 #0000008a;

	color: var(--color-text);
	position: relative;
	border-radius: 5px;
	opacity: 0;
	padding: 3em;
	font-size: 1.1em;
	line-height: 1.4;
	max-width: 85vw;
	margin: 4rem auto 2rem;
	box-sizing: border-box;
	/* overflow-y: auto; */
	pointer-events: auto;
	transform: scale(0.98);
	animation: anim-modal var(--duration-modal-show) cubic-bezier(0.4, 0, 0.2, 1)
		forwards;
	/* animation-delay: 150ms; */
}
body.light-version .modal__content {
	--opaque: 100%;
}

@keyframes anim-modal {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media screen and (max-width: 900px) {
	.modal__content {
		max-width: 95vw;
	}
}

.is-modal-visible {
	visibility: visible;
}

body:not(.light-version).is-modal-visible .modal__content {
	backdrop-filter: blur(3px);
}

.modal-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: var(--zindex-modal-overlay);
	opacity: 0;
	will-change: opacity;
	/* background: var(--color-overlay); */
	transition: opacity var(--duration-modal-overlay-show);
}
body:not(.light-version) .modal-overlay {
	backdrop-filter: blur(5px) grayscale(1);
}

/* Make settings modal smaller */

@media screen and (min-width: 850px) {
	.modal--settings > .modal__content {
		width: 850px;
	}
	.modal--command-palette > .modal__content {
		width: 600px;
	}
}

.pledge-modal .modal__content,
.ask-to-import-modal .modal__content,
.modal--small .modal__content {
	max-width: 800px;
}

.login-modal .modal__content {
	overflow-y: initial;
}

.saved-items-pane {
	position: fixed;
	right: 0;
	top: 0;
	bottom: 0;
	width: 35vw;
	min-width: 40ch;
	max-width: 60ch;
	padding: 20px 30px;
	z-index: 6;
	visibility: hidden; /* prevents tabbing */
	background: var(--color-popup);
	transition: 0.3s cubic-bezier(1, 0.13, 0.21, 0.87);
	transition-property: transform;
	will-change: transform;
	transform: translateX(100%);
}

.saved-items-pane.is-open {
	visibility: visible;
	transition-duration: 0.4s;
	transform: translateX(0);
}

.overlay-visible .modal-overlay,
.is-modal-visible ~ .modal-overlay,
.saved-items-pane.is-open ~ .modal-overlay {
	opacity: 1;
	visibility: visible;
}

.saved-items-pane__close-btn {
	left: -18px;
	top: 24px;
	opacity: 0;
	visibility: hidden;
	transform: scale(0);
	will-change: transform, opacity;
	transition: 0.3s ease;
	transition-property: transform, opacity;
	transition-delay: 0;
}
.saved-items-pane.is-open .saved-items-pane__close-btn {
	opacity: 1;
	transition-delay: 0.4s;
	transform: scale(1);
	visibility: visible;
}

.saved-item-tile {
	padding: 20px;
	background-color: rgba(255, 255, 255, 0.06);
	position: relative;
	display: block;
	border-radius: 4px;
	cursor: pointer;
	/* opacity: 0; */
	/* transform: translateX(50px); */
	/* will-change: opacity, transform; */
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
	/* animation: slide-left 0.35s ease forwards; */
}
.saved-item-tile + .saved-item-tile {
	margin-top: 1rem;
}

.saved-item-tile--inline {
	display: inline-block;
	margin-left: 10px;
	margin-right: 10px;
}
.saved-item-tile:nth-child(1) {
	animation-delay: 0.2s;
}

.saved-item-tile:nth-child(2) {
	animation-delay: 0.25s;
}

.saved-item-tile:nth-child(3) {
	animation-delay: 0.3s;
}

.saved-item-tile:nth-child(4) {
	animation-delay: 0.35s;
}

.saved-item-tile:nth-child(5) {
	animation-delay: 0.4s;
}

.saved-item-tile:nth-child(6) {
	animation-delay: 0.45s;
}

.saved-item-tile:nth-child(7) {
	animation-delay: 0.5s;
}

.saved-item-tile:nth-child(8) {
	animation-delay: 0.55s;
}

.saved-item-tile:nth-child(9) {
	animation-delay: 0.6s;
}

.saved-item-tile:nth-child(10) {
	animation-delay: 0.65s;
}

.saved-item-tile:nth-child(11) {
	animation-delay: 0.7s;
}

.saved-item-tile:nth-child(12) {
	animation-delay: 0.75s;
}

.saved-item-tile:nth-child(n + 12) {
	animation-delay: 0.8s;
}

@keyframes slide-left {
	from {
		opacity: 0;
		transform: translateX(50px);
	}

	to {
		opacity: 1;
		transform: translateX(0px);
	}
}

.saved-item-tile:hover,
.saved-item-tile.selected {
	background: rgba(255, 255, 255, 0.1);
}

.saved-item-tile__btns {
	position: absolute;
	top: 6px;
	display: flex;
	align-items: center;
	z-index: 1;
	right: 8px;
	opacity: 0;
	pointer-events: none;
	transition: 0.25s ease;
}

.saved-item-tile.selected .saved-item-tile__btns,
.saved-item-tile:hover .saved-item-tile__btns {
	opacity: 1;
	pointer-events: auto;
}

.saved-item-tile__img {
	margin-right: 10px;
}

.saved-item-tile__btn {
	display: inline-flex;
	padding: 7px 10px;
	color: white;
	border: 0;
	border-radius: 1in;
	font-size: 0.8rem;
	font-weight: 700;
	margin-left: 2px;
	background: rgba(255, 255, 255, 0.1);
	text-transform: uppercase;
}
.saved-item-tile__btn > svg {
	width: 1rem;
	aspect-ratio: 1;
}

.saved-item-tile__btn:hover {
	background: rgba(255, 255, 255, 0.8);
	color: #555;
}

.saved-item-tile__title {
	pointer-events: none;
	font-size: 1.4em;
	margin: 0;
	opacity: 0.8;
}

.saved-item-tile__meta {
	margin-top: 8px;
	pointer-events: none;
	opacity: 0.6;
}

.saved-items-pane__container {
	overflow-y: auto;
	overflow-x: hidden;
	max-height: calc(100vh - 130px);
	margin-top: 1rem;
	padding-inline: 1rem;
	scroll-behavior: smooth;
}

.notifications-btn {
	position: relative;
}

@keyframes shake {
	2%,
	22% {
		transform: translate3d(-1px, 0, 0);
	}

	5%,
	20% {
		transform: translate3d(2px, 0, 0);
	}

	7%,
	12%,
	17% {
		transform: translate3d(-4px, 0, 0);
	}

	10%,
	15% {
		transform: translate3d(4px, 0, 0);
	}
}

.notifications-btn.has-new {
	animation: shake 7s linear infinite;
	transform-origin: 50% 10px;
}

.notifications-btn__dot {
	position: absolute;
	right: 1;
	top: -2px;
	background: #31fe45;
	border-radius: 50%;
	width: 12px;
	height: 12px;
	display: none;
}

.has-new .notifications-btn__dot {
	display: block;
}

.notification {
	/* border: 1px solid #f1f1f1; */
	border-radius: 5px;
	padding: 20px;
	background: rgba(248, 246, 249, 0.05);
	position: relative;
}

.notification:not(:last-child) {
	margin-bottom: 10px;
}

.notification li:not(:last-child) {
	margin-bottom: 10px;
}

.notification__version {
	background: #af6204;
	color: white;
	padding: 3px;
	border-radius: 5px;
	position: absolute;
	top: 2px;
	left: 2px;
}

.loader,
.loader:after {
	border-radius: 50%;
	width: 3em;
	height: 3em;
}

.loader {
	font-size: 5px;
	position: relative;
	text-indent: -9999em;
	border-top: 1.1em solid rgba(118, 57, 229, 0.2);
	border-right: 1.1em solid rgba(118, 57, 229, 0.2);
	border-bottom: 1.1em solid rgba(118, 57, 229, 0.2);
	border-left: 1.1em solid #7639e5;
	transform: translateZ(0);
	animation: load8 1.1s infinite linear;
}

@keyframes load8 {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.btn-group {
	position: relative;
	cursor: pointer;
}

.dropdown__menu {
	position: absolute;
	top: 100%;
	left: 0;
	padding: 0;
	margin: 0;
	min-width: 200px;
	display: block;
	font-size: 0.88rem;
	list-style: none;
	border-radius: 4px;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: transform 0.25s ease;
	transform: translateY(10px);
	z-index: 5;
	background: white;
}

.dropdown__menu > li > a {
	display: block;
	padding: 6px 15px;
	color: #333;
	cursor: pointer;
}

.dropdown__menu > li.selected > a,
.dropdown__menu > li > a:hover {
	background: var(--color-popup);
	color: white;
}

.dropdown__menu > li:not(:last-child) {
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.open > .dropdown__menu,
.dropdown__menu.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.alerts-container {
	position: fixed;
	will-change: transform;
	left: 50%;
	top: -5px;
	padding: 10px;
	background: white;
	border: 1px solid #eee;
	color: #333;
	box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
	/*color: #333;*/
	font-size: 1rem;
	border-radius: 3px;
	z-index: 6;
	transform: translateX(-50%) translateY(-100%);
	transition: 0.3s ease;
}

.alerts-container.is-active {
	transform: translateX(-50%) translateY(0);
}

.error-gutter {
	width: 8px;
}

.gutter-error-marker {
	width: 8px;
	height: 20px;
	background: red;
	border-radius: 0;
	position: relative;
	top: 0;
	left: 1px;
}

.gutter-error-marker:after {
	content: attr(data-title);
	background: red;
	color: white;
	padding: 4px;
	opacity: 0;
	visibility: hidden;
	position: absolute;
	top: 14px;
	left: 0px;
	width: 300px;
	/* ideally shud be equal to pane width */
	transform: translateX(-10px);
	will-change: transform;
	transition: 0.2s ease;
}

.gutter-error-marker:hover:after {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.count-label {
	color: #333;
	background: rgba(255, 255, 255, 0.53);
	border-radius: 5px;
	padding: 0px 6px;
	font-weight: 600;
	margin-left: 0.5rem;
}

.onboard-step {
	margin: 0.5rem;
	padding: 1rem;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 0.8rem;
	box-shadow: 0 16px 22px rgba(0, 0, 0, 0.1);
	flex: 1;
}
.onboard-step--full-width {
	grid-column: 1 / -1;
}

.onboard-step__icon {
	fill: rgba(255, 255, 255, 0.3);
	stroke-width: 0.5px;
	stroke: rgba(0, 0, 0, 0.4);
	width: 80px;
	height: 80px;
}

.autocomplete-dropdown {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	right: 0;
	max-height: 200px;
	overflow-y: auto;
	border: 1px solid rgba(0, 0, 0, 0.5);
	z-index: 2001;
}

.autocomplete__loader {
	position: absolute;
	right: 3px;
	bottom: 1px;
}

@keyframes wobble {
	from {
		transform: none;
	}

	15% {
		transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
	}

	30% {
		transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
	}

	45% {
		transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
	}

	60% {
		transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
	}

	75% {
		transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
	}

	to {
		transform: none;
	}
}

.animated {
	animation-duration: 1s;
	animation-fill-mode: both;
}

.wobble {
	animation-name: wobble;
}

.console {
	background: var(--color-bg);
	z-index: 6;
	/* bring above iframe & codemirror and also scrollbar in codemirror */
	position: absolute;
	bottom: 0;
	min-height: 80px;
	height: 35vh;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	transform: translateY(0);
	transition: transform 0.4s cubic-bezier(0.76, 0.01, 0.13, 0.9);
}

.console.is-minimized {
	transform: translateY(calc(100% - var(--console-height)));
}

.console__log {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.console-exec-input {
	padding: 5px;
	font-size: 1.3em;
	flex: 1;
	background: rgba(0, 0, 0, 0.3);
	color: white;
	border: 0;
}

.console:not(.is-minimized) .code-wrap__header {
	cursor: ns-resize;
}
.console__items {
	padding: 0;
	margin: 0;
	overflow: auto;
	flex-grow: 1;
	/* flex-basis of 0 to trigger overflow https://stackoverflow.com/a/52489012/891962 */
	flex-basis: 0;
}
.console__items li {
	font-size: var(--code-font-size) !important;
	line-height: inherit !important;
	padding: 5px 10px !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Detached mode */

.is-detached-mode .console,
.is-detached-mode .footer {
	z-index: 4;
}

.is-detached-mode .console {
	position: fixed;
	bottom: var(--footer-height);
}

.is-detached-mode .content-wrap {
	/* So that there is space for console */
	padding-bottom: var(--console-height);
}

.kbd-shortcut__keys {
	background: rgba(0, 0, 0, 0.3);
	border-radius: 3px;
	padding: 3px 8px;
	margin-right: 5px;
	display: inline-block;
	font-size: 0.9rem;
	font-weight: bold;
}

.kbd-shortcut__details {
	display: inline-block;
}

.web-maker-with-tag {
	position: relative;
	display: inline-block;
}

.is-extension .web-maker-with-tag:after {
	display: none;
}

.social-login-btn {
	background: white;
	border: 2px solid currentColor;
	color: black;
}

.social-login-btn--github {
}

.social-login-btn--google {
}

body.is-logged-in .hide-on-login,
body:not(.is-logged-in) .hide-on-logout,
body:not(.is-extension) .show-when-extension,
body:not(.is-app) .show-when-app {
	display: none;
}

.onboard-selection {
	padding: 10px;
	margin: 0 40px;
	border-radius: 5px;
	transition: 0.25s ease;
	position: relative;
	border: 1px solid transparent;
}

.onboard-selection:hover {
	cursor: pointer;
	transform: scale(1.15);
}

.onboard-selection.selected:after {
	content: '';
	position: absolute;
	right: -20px;
	bottom: 40px;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background-color: white;
	/* background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width:32px;height:32px" viewBox="0 0 24 24"><path fill="limegreen" d="M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z" /></svg>'); */
}

.bookmarklet {
	display: inline-flex;
	align-items: center;
	border: 1px #aaa solid;
	padding: 0 5px;
	border-style: dashed;
	color: #f7f7f7;
}

.help-text {
	font-size: 0.9em;
	color: var(--color-text-dark-1);
	margin: 5px 0;
}

.social-login-btn:after,
.social-login-btn:before,
.social-login-btn:hover:before,
.social-login-btn:hover:after {
	visibility: hidden;
}

.last-login-github .social-login-btn--github:before,
.last-login-github .social-login-btn--github:after {
	visibility: visible;
}

.last-login-facebook .social-login-btn--facebook:before,
.last-login-facebook .social-login-btn--facebook:after {
	visibility: visible;
}

.last-login-google .social-login-btn--google:before,
.last-login-google .social-login-btn--google:after {
	visibility: visible;
}

.footer__js13k-days-left {
	padding: 1px 9px;
	font-size: 0.8em;
	text-transform: uppercase;
	background: #b12a34;
	color: white;
	border-radius: 3px;
	letter-spacing: 0.7px;
}

.footer__js13k-code-size {
	margin-left: 1rem;
}

.js13k__dropdown {
	position: fixed;
	display: inline-block;
	background: var(--color-popup);
	color: var(--color-text);
	bottom: 35px;
	padding: 16px;
	border-radius: 4px;
	box-shadow: 0 -7px 13px 2px rgba(0, 0, 0, 0.2);
	left: 50%;
	margin-left: -115px;
}

.sidebar {
	background-color: #1e1e2c;
	height: 100%;
}

.sidebar__file {
	color: #bbb;
	background: transparent;
	border: none;
	width: 100%;
	text-align: left;
	display: flex;
	padding: 7px 10px;
	align-items: center;
	justify-content: space-between;
	position: relative;
	cursor: pointer;
}
/* 1st level nesting */
.sidebar__folder-wrap .sidebar__file {
	padding-left: 2rem;
}
/* 2nd level nesting */
.sidebar__folder-wrap .sidebar__folder-wrap .sidebar__file {
	padding-left: 2rem;
}
/* 3rd level nesting */
.sidebar__folder-wrap
	.sidebar__folder-wrap
	.sidebar__folder-wrap
	.sidebar__file {
	padding-left: 3rem;
}

.sidebar__file:hover,
.sidebar__file:focus {
	background-color: rgba(255, 255, 255, 0.05);
}
.sidebar__file.selected {
	color: white;
	background-color: rgba(255, 255, 255, 0.1);
}

.sidebar__file-icon {
	width: 20px;
	height: 20px;
	margin-right: 8px;
	flex-shrink: 0;
}
.sidebar__file-name {
	overflow: hidden;
	text-overflow: ellipsis;
}
.sidebar__file-options {
	white-space: nowrap;
	visibility: hidden;
}
.sidebar__file:hover .sidebar__file-options,
.sidebar__file:focus .sidebar__file-options,
.sidebar__file:focus-within .sidebar__file-options {
	visibility: visible;
}

.sidebar__folder-wrap[data-collapsed='true'] {
	display: none;
}

.is-file-mode .hide-in-file-mode {
	display: none !important;
}

/* Codemirror themes basic bg styles. This is here so that there is no big FOUC
while the theme CSS file is loading */

.cm-s-paraiso-dark.CodeMirror {
	background: #2f1e2e;
	color: #b9b6b0;
}

.cm-s-paraiso-dark .CodeMirror-gutters {
	background: #2f1e2e;
	border-right: 0px;
}

.cm-s-paraiso-dark .CodeMirror-activeline-background {
	background: #4d344a;
}

.cm-s-monokai.CodeMirror {
	background: #272822;
	color: #f8f8f2;
}

.cm-s-monokai .CodeMirror-gutters {
	background: #272822;
	border-right: 0px;
}

.cm-s-monokai .CodeMirror-activeline-background {
	background: #373831;
}

.cm-s-3024-day.CodeMirror {
	background: #f7f7f7;
	color: #3a3432;
}

.cm-s-3024-day .CodeMirror-gutters {
	background: #f7f7f7;
	border-right: 0px;
}

.cm-s-3024-day .CodeMirror-activeline-background {
	background: #e8f2ff;
}

.cm-s-material.CodeMirror {
	background-color: #263238;
	color: rgba(233, 237, 237, 1);
}

.cm-s-material .CodeMirror-gutters {
	background: #263238;
	color: rgb(83, 127, 126);
}

.cm-s-material .CodeMirror-activeline-background {
	background: rgba(0, 0, 0, 0);
}

.cm-s-dracula.CodeMirror,
.cm-s-dracula .CodeMirror-gutters {
	background-color: #282a36 !important;
	color: #f8f8f2 !important;
}

.cm-s-dracula .CodeMirror-activeline-background {
	background: rgba(255, 255, 255, 0.1);
}

.cm-s-blackboard.CodeMirror {
	background: #0c1021;
	color: #f8f8f8;
}

.cm-s-blackboard .CodeMirror-gutters {
	background: #0c1021;
	border-right: 0;
}

.cm-s-blackboard .CodeMirror-activeline-background {
	background: #3c3636;
}

.cm-s-midnight.CodeMirror {
	background: #0f192a;
	color: #d1edff;
}

.cm-s-midnight .CodeMirror-gutters {
	background: #0f192a;
	border-right: 1px solid;
}

.cm-s-midnight .CodeMirror-activeline-background {
	background: #253540;
}
.command-palette__option-list {
	margin: 0;
	margin-top: 10px;
	padding: 0;
	list-style: none;
}
.command-palette__option-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 5px;
	width: 100%;
	text-align: left;
	border: 0;
	background: transparent;
	color: var(--color-text);
}
.command-palette__option-row--selected {
	background: rgba(0, 0, 0, 0.2);
}
.command-palette__option-subtitle {
	color: var(--color-text-dark-1);
	margin-left: 10px;
	font-size: 0.875em;
}

.preview-dimension {
	position: absolute;
	right: 0;
	top: 0;
	background: #ccc;
	color: black;
	padding: 5px;
	z-index: 1;
}
.tabs {
	display: flex;
}
.tabs__tablist {
	/* margin-right: 40px; */
	flex-shrink: 0;
}
.tabs__tab {
	display: block;
	padding: 10px;
	background: transparent;
	border: 0;
	text-align: left;
	width: 100%;
	color: inherit;
}
.tabs__tab--selected {
	background-color: rgba(0, 0, 0, 0.2);
}
.tabs__tabpanel-wrap {
	flex: 1;
}
.tabs__tabpanel {
	padding: 2em;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 5px;
}
.tabs--horizontal {
	flex-direction: column;
}
.tabs--horizontal .tabs__tablist {
	display: flex;
	justify-content: center;
}

.asset-manager__upload-box {
	padding: 1rem 2rem;
	border: 3px dashed rgb(255 255 255 / 10%);
	border-radius: 1rem;
	text-align: center;
	margin-bottom: 1rem;
	transition: 0.3s ease;
	position: relative;
}

@keyframes move {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 50px 50px;
	}
}

.asset-manager__progress-bar {
	position: absolute;
	inset: 1rem;
	/* height: 2rem; */
	background-image: linear-gradient(
		-45deg,
		rgba(255, 255, 255, 0.2) 25%,
		transparent 25%,
		transparent 50%,
		rgba(255, 255, 255, 0.2) 50%,
		rgba(255, 255, 255, 0.2) 75%,
		transparent 75%,
		transparent
	);
	z-index: 1;
	background-size: 50px 50px;
	animation: move 2s linear infinite;
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
	border-top-left-radius: 20px;
	border-bottom-left-radius: 20px;
	overflow: hidden;
}
.asset-manager__file {
	/* list-style: none; */
	/* padding: 0; */
	/* margin: 0; */
	display: flex;
	background: none;
	gap: 0.5rem;
	padding: 0.2rem;
	border-radius: 0.4rem;
	color: inherit;
	border: 0;
	transition: 0.3s ease;
	/* align-items: center; */
}
.asset-manager__file:hover {
	background: rgb(255 255 255 / 5%);
}
.asset-manager__file--grid {
	display: flex;
	flex-direction: column;
	/* align-items: flex-start; */
}
.asset-manager__file-container {
	padding: 0;
	gap: 0.3rem;
}
.asset-manager__file-container--grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(90px, 1fr));
	max-width: 50rem;
}

.asset-manager__file {
	display: flex;
	gap: 0.5rem;
	position: relative;
}
.asset-manager__file-name {
	max-width: 100%;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.asset-manager__file-image {
	height: 1.5rem;
	aspect-ratio: 1;
	border-radius: 0.3rem;
	object-fit: contain;
}
.asset-manager__file--grid .asset-manager__file-image {
	width: 100%;
	height: auto;
}
.asset-manager__file-ext {
	text-transform: uppercase;
	position: absolute;
	bottom: 0.5rem;
	left: 1.4rem;
	letter-spacing: -1px;
	font-weight: 800;
	display: none;
}
.asset-manager__file--grid .asset-manager__file-ext {
	display: block;
}
.asset-manager__file-actions {
	position: absolute;
	bottom: 0;
	right: 0;
	opacity: 0;
	padding: 0.5rem 0;
	visibility: hidden;
	transform: translateY(-0.5rem);
	transition: 0.3s ease;
	background-color: rgb(255 255 255 / 15%);
	backdrop-filter: blur(5px);
}
.asset-manager__file--grid .asset-manager__file-actions {
	left: 0;
	bottom: 1.5em;
}
.asset-manager__file:hover .asset-manager__file-actions {
	transform: translateY(0rem);
	opacity: 1;
	visibility: visible;
}
.stack {
	display: flex;
	align-items: center;
}
.stack > * {
	margin: 0;
}
.badge {
	text-transform: uppercase;
	display: inline-block;
	padding: 0.1rem 0.3rem;
	background: rgb(255 255 255 / 40%);
	border-radius: 1rem;
	font-size: 0.75rem;
	color: #222;
	font-weight: 800;
	line-height: 1;
}
.beta-tag {
	background: #ee9d59;
}
.pro-badge {
	display: inline-block;
	background: linear-gradient(45deg, var(--color-pro-1), var(--color-pro-2));
	color: #222;
	box-shadow: inset 2px 2px 3px rgba(0, 0, 0, 0.3);
}
.templates-container {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
.templates-container .saved-item-tile {
	margin: 0;
}
.pro-modal {
	background: url('/assets/pro-panda-flying.png') no-repeat;
	background-position: bottom right;
}
.plan-card {
	background: rgb(255 255 255 / 10%);
	border-radius: 0.4rem;
	padding: 1rem;
	--shadow-color: 253deg 47% 15%;
	--shadow-elevation-low: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34),
		0.4px 0.8px 1px -1.2px hsl(var(--shadow-color) / 0.34),
		1px 2px 2.5px -2.5px hsl(var(--shadow-color) / 0.34);
	--shadow-elevation-medium: 0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.36),
		0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.36),
		2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.36),
		5px 10px 12.6px -2.5px hsl(var(--shadow-color) / 0.36);

	box-shadow: var(--shadow-elevation-low);
}
.profile-modal__avatar-img.is-pro {
	background: linear-gradient(45deg, var(--color-pro-1), var(--color-pro-2));
	padding: 0.2rem;
	animation: avatar-rotate 2s forwards;
}
@keyframes avatar-rotate {
	0% {
		transform: rotate(10deg);
	}
	100% {
		transform: rotate(0deg);
	}
}
.profile-modal__name.is-pro {
	background: linear-gradient(45deg, var(--color-pro-1), var(--color-pro-2));
	color: transparent;
	background-clip: text;
}

.profile-modal__panda {
	animation: slide-up 0.3s forwards;
}

@keyframes slide-up {
	0% {
		opacity: 0;
		transform: translateX(-1.5rem);
	}
	100% {
		opacity: 1;
		transform: rotate(0deg);
	}
}
/* .PANEL */
.panel {
	--panel-bg: rgb(255 255 255 / 5%);
	position: relative;
	background: var(--panel-bg);
	box-shadow: var(--panel-shadow);
	border-radius: 1rem;
	/* backdrop-filter: blur(20px); */
	overflow: hidden;
}

.panelOnlyBorder {
	background: none;
	box-shadow: none;
	backdrop-filter: none;
	border: 2px solid var(--clr-border-1);
}

.panelGlowing {
	box-shadow: var(--glow-shadow);
}

.panelTopFocus {
	background: radial-gradient(
		82.25% 100% at 50% 0%,
		rgba(var(--rgb-gray-1), 0.75) 37.28%,
		rgba(var(--rgb-gray-0), 0) 100%
	);

	box-shadow:
		0 0 30px rgba(var(--rgb-brand), 0),
		0px 20px 50px rgba(0, 0, 0, 0.1),
		inset 0px 1px 3px rgba(255, 255, 255, 0.1);
}

.skeleton {
	display: inline-block;
	height: 0.5em;
	background-color: currentColor;
	border-radius: 999px;
	animation: 2s linear infinite skeleton;
	transform-origin: left;
}

@keyframes skeleton {
	20% {
		transform-origin: left;
		opacity: 1;
		transform: scaleX(1.5);
		opacity: 0.5;
	}
	20.1% {
		transform-origin: right;
		transform: scaleX(1.5) translateX(33%);
	}
	50% {
		transform-origin: right;
		transform: scaleX(1) translateX(50%);
		opacity: 1;
	}
	70% {
		transform-origin: right;
		transform: scaleX(1.5) translateX(33%);
	}
	70.1% {
		transform-origin: left;
		transform: scaleX(1.5);
	}
	90% {
		transform-origin: left;
		transform: scaleX(1);
		opacity: 0.5;
	}

	/* 100% {
	  transform-origin: right;
	  transform: scaleX(1.5) translateX(33%);
	  opacity: 1;
	} */
}

/* DROPDOWN */
.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-menu {
	position: absolute;
	left: 0;
	--opaque: 68%;
	background: var(--color-popup);
	width: max-content;
	list-style: none;
	padding: 0.5rem;
	margin: 0;
	z-index: 1000;
}

.dropdown-menu-top {
	bottom: 100%;
	margin-bottom: 8px;
}

.dropdown-menu-bottom {
	top: 100%;
	margin-top: 8px;
}

.dropdown-item {
	padding: 0.5rem 1rem;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	border-radius: 0.3rem;
	cursor: pointer;
	color: white;
	font-size: 1rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
	background-color: #f0f0f033;
}

@media screen and (max-width: 600px) {
	body {
		font-size: 70%;
	}

	.main-header {
		overflow-x: auto;
	}

	.main-header__btn-wrap {
		flex-shrink: 0;
	}

	.modal__content {
		padding: 1em;
	}

	.saved-items-pane {
		width: 77vw;
		padding: 10px 20px;
	}
}
