.orm-app {
	font-family: var(--orm-font);
	color: var(--orm-ink);
	min-height: 100vh;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(182, 242, 109, 0.18), transparent 60%),
		radial-gradient(900px 500px at 100% 0%, rgba(255, 229, 102, 0.16), transparent 55%),
		var(--orm-bg);
	display: flex;
	gap: 20px;
	padding: 18px;
	position: relative;
	overflow-x: hidden;
}

.orm-app::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		url("data:image/svg+xml,%3Csvg width='600' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 220C80 160 160 300 280 240C400 180 480 80 600 140' fill='none' stroke='%23d1d5db' stroke-width='1.2' opacity='.35'/%3E%3Cpath d='M0 300C120 260 200 360 340 300C480 240 520 180 600 220' fill='none' stroke='%23d1d5db' stroke-width='1' opacity='.25'/%3E%3C/svg%3E")
		center/cover no-repeat;
	opacity: 0.7;
}

.orm-sidebar {
	position: sticky;
	top: 18px;
	align-self: flex-start;
	width: var(--orm-sidebar-w);
	min-height: calc(100vh - 36px);
	background: var(--orm-surface);
	backdrop-filter: blur(16px);
	border-radius: 28px;
	box-shadow: var(--orm-shadow);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 18px 0;
	z-index: 5;
	gap: 8px;
}

.orm-sidebar__brand {
	width: 44px;
	height: 44px;
	border-radius: 16px;
	background: linear-gradient(145deg, var(--orm-lime), var(--orm-lime-deep));
	color: #111;
	font-weight: 800;
	display: grid;
	place-items: center;
	margin-bottom: 12px;
	font-size: 13px;
}

.orm-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	align-items: center;
	flex: 1;
}

.orm-nav a {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	color: var(--orm-ink);
	text-decoration: none;
	position: relative;
	transition: background .2s ease, transform .2s ease;
}

.orm-nav a:hover,
.orm-nav a.is-active {
	background: rgba(182, 242, 109, 0.35);
	transform: translateY(-1px);
}

.orm-nav a svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.orm-nav a[data-tip]::after {
	content: attr(data-tip);
	position: absolute;
	left: calc(100% + 10px);
	top: 50%;
	transform: translateY(-50%);
	background: #111;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 10px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
}

.orm-nav a:hover::after,
.orm-nav a.is-active::after {
	opacity: 1;
}

.orm-sidebar__foot {
	margin-top: auto;
	padding-top: 12px;
}

.orm-main {
	flex: 1;
	z-index: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.orm-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.orm-topbar h1 {
	margin: 0;
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.orm-topbar p {
	margin: 4px 0 0;
	color: var(--orm-muted);
	font-size: 0.95rem;
}

.orm-pills {
	display: flex;
	gap: 8px;
}

.orm-pill {
	background: #111;
	color: #fff;
	border-radius: 14px;
	padding: 10px 14px;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
}

.orm-pill--ghost {
	background: var(--orm-surface-solid);
	color: var(--orm-ink);
	box-shadow: var(--orm-shadow-soft);
}

.orm-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.orm-flash {
	padding: 12px 16px;
	border-radius: 16px;
	background: rgba(182, 242, 109, 0.35);
	font-weight: 600;
}

.orm-flash--err {
	background: rgba(248, 113, 113, 0.25);
}

@media (max-width: 900px) {
	.orm-app {
		flex-direction: column;
		padding: 12px;
		gap: 12px;
	}
	.orm-sidebar {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: 12px;
		top: auto;
		min-height: auto;
		width: auto;
		flex-direction: row;
		justify-content: space-around;
		padding: 10px;
		border-radius: 22px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.orm-sidebar__brand,
	.orm-sidebar__foot {
		display: none;
	}
	.orm-nav {
		flex-direction: row;
		width: auto;
		flex-wrap: nowrap;
		gap: 4px;
	}
	.orm-nav a {
		flex: 0 0 auto;
	}
	.orm-nav a[data-tip]::after {
		display: none;
	}
	.orm-main {
		padding-bottom: 90px;
		width: 100%;
		max-width: 100%;
	}
	.orm-topbar h1 {
		font-size: 1.25rem;
		word-break: break-word;
	}
	.orm-pills {
		flex-wrap: wrap;
	}
}
