* {
	box-sizing: border-box;
	touch-action: manipulation;
}
html {
	background: #333;
}
body {
	position: relative;
	overflow: hidden;

	background: #333 !important;
	color: #fff;
}





#header {
	position: absolute;
	top: 0px;
	left: env(titlebar-area-x, 0px);
	width: env(titlebar-area-width, 100vw);
	height: 44px;
	
	box-sizing: border-box;
	
	background: #333;
	margin: 0; 
	padding: 0;
	white-space: nowrap;
	overflow: hidden;

	display: flex;

	app-region: drag;
}
#header div {
	cursor: pointer;
	box-sizing: border-box;
}




/* Navigation */

#navigation {
	flex: 1;
}

@media (max-width: 1024px) {
	#navigation .item:not(.selected) .label {
		display: none;
	}	
} 

@media (max-width: 720px) {
	#navigation .item .label {
		display: none;
	}	
} 







#navigation {
	position: relative;
	height: 44px;

	box-sizing: border-box;
	display: flex;

	background: #444;
	margin: 0;
	padding: 0 40px 0 0;
	white-space: nowrap;
	overflow: hidden;
	-webkit-user-select: none;

	font-size: 0.85em;
}
#navigation button {
	font-size: 13px;
}
#navigation div {
	cursor: pointer;
	box-sizing: border-box;
}
#navigation .actions {
	margin-left: auto;
	display: flex; 
}
#navigation .actions > * {
	width: 36px;
	line-height: 44px;
	
	cursor: pointer;

	font-family: SalonIcon;
	color: #eee;
	background: none;
	border: none;
	text-align: center;
	font-size: 19px;
	text-transform: none;
	outline: none;
	position: relative;
}
#navigation .actions > :hover {
	color: #fff;
}
#navigation .actions > :disabled {
	color: #999;
	cursor: default;
}
[data-input-mode=keyboard] .actions > :focus:before {
	content: '';
	position: absolute;
	top: 6px;
	left: 1px;
	right: 1px;
	bottom: 6px;
	border: 2px solid var(--colors-named-focus);
	border-radius: 4px;
}


#navigation .actions #display {
    line-height: 32px;
    margin-top: 6px;
    margin-bottom: 6px;
    border-radius: 4px;
}

body[data-external-display="true"] #navigation .actions #display {
	background-color: #666;
}




#navigation .item {
	height: 44px;
	padding: 0px 12px;
	margin: 0;
	color: #ddd;
	background: none;
	border: none;

	display: flex;
	align-items: center;
	position: relative;
	outline: none;

	app-region: no-drag;
}
[data-input-mode=keyboard] #navigation .item:focus:before {
	content: '';
	position: absolute;
	top: 4px;
	left: 4px;
	right: 4px;
	bottom: 4px;
	border: 2px solid var(--colors-named-focus);
	border-radius: 4px;
}
#navigation .item.selected {
	transition: background-color 0.2s ease-out;
	background: #3d6ca5;
	color: #fff;
}
#navigation .item:hover {
	transition: none !important;
}
#navigation .item .icon {
	display: inline-block;
	font-family: SalonIcon;
	font-size: 19px;
	font-weight: normal;
	text-transform: none;
	text-align: center;
	-webkit-font-smoothing: antialiased;
	width: 22px;
}
#navigation .item .label {
	padding-left: 4px;
}
#navigation .item:disabled {
	color: #888;
}

@media (max-width: 720px) {
	#navigation .item .label {
		display: none;
	}	
} 

.overlay #navigation {
	background: #404040;
}
.overlay #navigation *:not([data-state=active]) {
	color: #999;
}

.overlay #navigation .selected {
	background: #496682;
	color: #aaa;
	transition: none;
}





main {
    position: absolute;
    top: 44px;
    bottom: 0px;
    left: 0px;
    right: 0px;

    background: #fff;
}


nav img {
    height: 30px;
    margin-right: 16px;
    align-self: center;
    margin-left: 10px;
}


#header #buttons {
    display: flex;
	app-region: no-drag;
}
#header #buttons button {
	width: 44px;
	height: 44px;
	line-height: 44px;

	z-index: 1001;
	white-space: nowrap;
    
    border: none;
	background: #444;

	color: #ddd;
	font-family: SalonIcon;
	font-size: 20px;
	text-align: center;
	-webkit-font-smoothing: antialiased;
	cursor: pointer;
}