:root {
	--bg: #0a0a0a;
	--surface: #1a1a1a;
	--text: #e6ffe6;
	--muted: #8a988a;
	--border: #3f433f;
	--primary: #13bd19;
	--on-primary: #080c0a;
	--focus: #13bd1966;
	--success: #22c55e;
	--warn: #fbbf24;
	--error: #ff4444;
}
html.cards main {
	view-transition-name: main;
}
html.cards::view-transition-old(main) {
	animation: 400ms ease scale-down both;
	mix-blend-mode: normal;
	z-index: 1;
}
html.cards::view-transition-new(main) {
	animation: 400ms cubic-bezier(0.2, 0, 0.2, 1) slide-up both;
	box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
	mix-blend-mode: normal;
	z-index: 2;
}
html.cards .back::view-transition-old(main) {
	animation: 400ms cubic-bezier(0.2, 0, 0.2, 1) slide-down both;
	box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
	z-index: 2;
}
html.cards .back::view-transition-new(main) {
	animation: 400ms ease scale-up both;
	z-index: 1;
}
html.loading body::before {
	content: '';
	position: fixed;
	inset: 0;
	background: #000;
	opacity: 0;
	animation: darkfade .15s ease forwards .1s;
	pointer-events: none;
	z-index: 9999;
}
html.waiting body::after {
	content: 'CONNECTING...';
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: monospace;
	font-size: 1.05rem;
	color: #79a7ff;
	background: #070b16;
	padding: .85rem 1.25rem;
	border: 1px solid #79a7ff55;
	min-width: 28ch;
	white-space: pre;
	animation: modem 2s steps(5) infinite;
	z-index: 10000;
}
body.ide {
	background: #070b0a;
	color: #edf3ed;
	display: grid;
	font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
	grid-template-rows: auto 1fr auto;
	grid-template-columns: 280px 1fr 280px;
	height: 100dvh;
	margin: 0;
	overflow: hidden;
}
body.ide * {
	box-sizing: border-box;
	scrollbar-color: #8dcc52 #070b0a;
	scrollbar-width: thin;
}
body.ide a {
	color: inherit;
	text-decoration: none;
}
body.ide button,
body.ide input
{
	font: inherit;
}
body.ide button {
	background: transparent;
	border: 1px solid #294032;
	border-radius: 7px;
	color: inherit;
	cursor: pointer;
}
body.ide input {
	background: #0b1311;
	border: 1px solid #203027;
	border-radius: 7px;
	color: inherit;
}
body.ide header {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: .75rem;
	padding: .45rem .6rem;
	border-bottom: 1px solid #1e2d24;
	background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}
body.ide header .brand {
	display: flex;
	align-items: center;
	gap: .45rem;
	font-size: .92rem;
}
body.ide header .box {
	border: 2px solid #365240;
	border-radius: 4px;
	cursor: pointer;
	display: inline-grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	color: #9fd96a;
}
body.ide #title {
	color: #b6c5b8;
	font-size: .9rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
body.ide #nav {
	display: flex;
	align-items: center;
	gap: .4rem;
}
body.ide #nav button {
	padding: .32rem .62rem;
}
body.ide #nav button.primary {
	border-color: #86c94d;
	color: #a7e06f;
}
body.ide #files {
	grid-row: 2;
	grid-column: 1;
	border-right: 1px solid #1e2d24;
	background: #0a110f;
	overflow: auto;
}
body.ide #filesHeader {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: .55rem;
	border-bottom: 1px solid #1e2d24;
	background: rgba(10,17,15,.96);
	backdrop-filter: blur(8px);
}
body.ide .ide-files-head {
	color: #8dcc52;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .06em;
	padding: .75rem .7rem .35rem;
	text-transform: uppercase;
}
body.ide #ideCreatePanel {
	margin-top: .45rem;
}
body.ide #ideCreatePanel.hidden {
	display: none;
}
body.ide #ideCreate {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: .4rem;
}
body.ide #ideCreatePath {
	padding: .45rem .55rem;
}
body.ide .ide-file {
	align-items: baseline;
	background: transparent;
	border: 0;
	border-left: 3px solid transparent;
	border-radius: 0;
	display: grid;
	gap: .12rem;
	padding: .45rem .7rem .45rem calc(.7rem - 3px);
	text-align: left;
	width: 100%;
}
body.ide .ide-file span {
	font-size: .92rem;
}
body.ide .ide-file small {
	color: #7e9282;
	display: block;
	font-size: .72rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
body.ide .ide-file:hover {
	background: #111c18;
}
body.ide .ide-file.active {
	background: #13231d;
	border-left-color: #8dcc52;
	color: #bdf16c;
}
body.ide main {
	grid-row: 2;
	grid-column: 2;
	background: radial-gradient(circle at top, rgba(73,108,89,.15), transparent 42%), #0b1210;
	min-width: 0;
	min-height: 0;
	overflow: auto;
	position: relative;
}
body.ide main ol.code {
	color: #edf3ed;
	font-family: "IBM Plex Mono", "Cascadia Code", monospace;
	font-size: .9rem;
	line-height: 1.3;
	list-style: decimal;
	margin: 0;
	min-height: 100%;
	outline: none;
	padding: 1rem 0 1.25rem 3rem;
	tab-size: 2;
}
body.ide main ol.code li {
	padding-left: .65rem;
	white-space: pre;
}
body.ide main ol.code li::marker {
	color: #6f8573;
	font-size: .84rem;
}
body.ide #helpers {
	grid-row: 2;
	grid-column: 3;
	border-left: 1px solid #1e2d24;
	background: #09100e;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	min-height: 0;
}
body.ide .panel-head {
	color: #8dcc52;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .06em;
	padding: .75rem .75rem .35rem;
	text-transform: uppercase;
}
body.ide #nodes,
body.ide #suggestions,
body.ide #ideSearchResults
{
	overflow: auto;
}
body.ide .search-box {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: .4rem;
	padding: .55rem .7rem;
	border-bottom: 1px solid #1e2d24;
}
body.ide .search-box input {
	padding: .45rem .55rem;
}
body.ide .ide-node,
body.ide .ide-suggestion,
body.ide .search-hit
{
	align-items: baseline;
	background: transparent;
	border: 0;
	border-left: 3px solid transparent;
	border-radius: 0;
	color: inherit;
	cursor: pointer;
	display: grid;
	gap: .12rem;
	padding: .45rem .7rem .45rem calc(.7rem - 3px);
	text-align: left;
	width: 100%;
}
body.ide .ide-node:hover,
body.ide .ide-suggestion:hover,
body.ide .search-hit:hover
{
	background: #111c18;
}
body.ide .ide-node small,
body.ide .ide-suggestion small,
body.ide .search-hit small,
body.ide .muted
{
	color: #7e9282;
	font-size: .76rem;
}
body.ide .search-hit strong,
body.ide .ide-suggestion b
{
	color: #bdf16c;
}
body.ide .search-results {
	border-top: 1px solid #1e2d24;
	display: none;
	max-height: 220px;
}
body.ide .search-results.active {
	display: block;
}
body.ide footer {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .32rem .6rem;
	border-top: 1px solid #1e2d24;
	color: #7e9282;
	font-size: .78rem;
	background: #070b0a;
}
body.ide #footerMeta {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
}
@keyframes slide-up{
	0% {
		transform: translateY(100%);
	}
	100% {
		transform: translateY(0);
	}
}
@keyframes slide-down{
	0% {
		transform: translateY(0);
		opacity: 1;
	}
	100% {
		transform: translateY(100%);
		opacity: 0;
	}
}
@keyframes scale-down{
	0% {
		transform: scale(1);
		filter: brightness(1);
		opacity: 1;
	}
	100% {
		transform: scale(0.95);
		filter: brightness(0.7);
		opacity: 0;
	}
}
@keyframes scale-up{
	0% {
		transform: scale(0.95);
		filter: brightness(0.7);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		filter: brightness(1);
		opacity: 1;
	}
}
@keyframes darkfade{
	80% {
		opacity: 0;
	}
	100% {
		opacity: .8;
	}
}
@keyframes modem{
	0% {
		content: 'CONNECTING...';
	}
	25% {
		content: 'NEGOTIATING...';
	}
	50% {
		content: 'AUTHENTICATING...';
	}
	75% {
		content: 'ESTABLISHING LINK...';
	}
	100% {
		content: 'SYNCING...';
	}
}
@media (max-width: 820px){
	body.ide {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto 1fr auto auto;
	}
	body.ide #files,
	body.ide main,
	body.ide #helpers
	{
		grid-column: 1;
		border-left: 0;
		border-right: 0;
		border-top: 1px solid #1e2d24;
	}
	body.ide #files grid-row {
		2; max-height: 32dvh;
	}
	body.ide main {
		grid-row: 3;
	}
	body.ide #helpers {
		grid-row: 4;
	}
	body.ide footer grid-row {
		5; flex-direction: column;
	}
}
