@charset "UTF-8";

.Hud {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	min-height: 0;
	overflow: hidden;
}
.Hud-inner {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	overflow: auto;
	display: flex;
	flex-flow: row;
	/* justify-content: space-between; */

	align-content: flex-start;
	gap: 0.5rem;
	min-height: 0;

	padding: 0;
	margin: 0;
    overflow: hidden;  /* no body scroll — strips handle their own overflow */
}

.Hud-main {
    flex: 1 1 30rem;
    height: 100%;
    min-height: 0;
	overflow: hidden;
}
.Hud-sidebar {
    flex: 0 0 auto;
    max-height: 100%;
	min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
	margin: 0;
	padding-left: 0px;
}
.Hud-side-header {
    width: 100%;
    height: 2rem;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.Hud-side-toggle {
	box-sizing: border-box;
	position: absolute;
	top: 0;
	left: 0;
	/* width: 2rem; */
	/* height: 2rem; */
	font-size: 150%;
	border-radius: 0.3rem;
	margin: 0.2rem;
	background-color: var(--bg-color);
	cursor: pointer;
	opacity: 0.8;
	text-align: center;
	z-index: 200;
	/* margin-left: 1rem; */
}
.Hud-side-toggle:hover { opacity: 1; }

.Hud-side-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	backdrop-filter: blur(10px);
	/* padding: 1rem; */
	z-index: 100;
	background-color: var(--bg-color);
	padding: 0;
	flex: none;
}
.Hud-side-overlay .CollapsablePanel { width: 100% }

.debug {
	background-color: red;
}


.Hud.narrow .Hud-inner {
    padding: 0;
    gap: 0;
}
.Hud.narrow .Hud-sidebar {
    width: 100%;
    /* padding-left: 2rem;   */
}

.red {
	background-color: red;
}
.green {
	background-color: green;
}

.Hud-sidebar .CollapsablePanel {
	width: 100%;
}

.CollapsablePanel-title {
	padding-left: 2rem;
	margin-left: 2rem;
}