html, body {
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	padding: 0;
	background-color: white;
}

body {
	font-size: 2vw;
}
body * {
	font-size: inherit;
}

body, section, fieldset {
	display: flex;
	flex-flow: column nowrap;
	align-items: stretch;
	justify-content: flex-start;
	overflow: hidden;
	position: relative;
}

fieldset
{
	gap: 0.5em;
}

fieldset.busy::after
{
	background-color: rgba(192,192,192,0.5);
	z-index: 100;
	content: "⏳";
	font-size: 6vw;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom:  0;
	border: 0;
	margin: 0;
	display: flex;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}



nav, fieldset > label {
	display: flex;
	flex-flow: row nowrap;
}

fieldset > label > *
{
	flex: 1 1 auto;
	margin-left: 0.5em;
}

fieldset > label > span {
	text-transform: capitalize;
	min-width: 10em;
	flex: 0 0 auto;
}

button {
	border-radius: 0.5em;
	padding: 0.5em;
	border: 0.1em solid gray;
	cursor: pointer;
	user-select: none;
	align-self: center;
	min-width: 6em;
}
label
{
	user-select: none;
}

nav > button {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-bottom-width: 0;
}


section.session > fieldset > button
{
	order : 1;
}

section.session > fieldset.existing:not( [data-selection] ) > button.open
{
	display: none !important;
}

section.session[data-mode="new"] button[data-mode="new"],
section.session[data-mode="existing"] button[data-mode="existing"],
body[data-create="false"] section.session button[data-mode="existing"]
{
	background-color: lightblue;
	border-color: blue;
}


body[data-create="false"] section.session fieldset.new,
body:not( [data-create="false"] ) section.session[data-mode="new"] > fieldset:not(.new),
section.session[data-mode="existing"] > fieldset:not(.existing)
{
	display: none !important;
}

body[data-create="false"] section.session button[data-mode="new"]
{
	background-color: lightgray;	
	border-color: gray;
	pointer-events: none;
}





menu {
	list-style-type: none;
	display: flex;
	flex-flow: column nowrap;
	overflow: auto;
}
menu > li,
menu > header {
	display: flex;
	flex-flow: row nowrap;
	border: 1px solid gray;
}
menu > header
{
	font-weight: bold;
	background-color: #DDD;
}




section.session menu > li
{
	border-top: 0;
}

section.session menu > li > *,
section.session menu > header > *
{
	border-left: 1px solid lightgray;
	padding: 0.2em 0.5em;
}
section.session menu > li > *:first-child
section.session menu > header > *:first-child
{
	border-left:0;
}

section.session menu > li:nth-child(odd)
{
	background-color: #EEE;
}

section.session menu > li > *,
section.session menu > header > *
{
	width: 10rem;
	box-sizing: border-box;
	min-width: 12em;
}

section.session menu > li > [data-attribute],
section.session menu > header > [data-attribute]
{
	width: auto;
	flex: 1 1 8em;
	min-width: 5em;
}

section.session menu > header > label::after
{
	content: "Session";
}
section.session menu > header > label[data-attribute]::after
{
	content: attr(data-attribute);
	text-transform: capitalize;
}

section.session menu >  li > input[readonly]
{
	border: 0;
	background-color: transparent;
}


section.session menu >  li.selected
{
	background-color: lightskyblue;
}

section.session menu.error
{
	flex: 1 1 100vh !important;
	padding: 0 !important;
	border: 0.1em solid darkred !important;
}
section.session menu.error > iframe
{
	height: 100%;
}
section.session menu.error::before
{
	content: "HTTP Error " attr(data-status) " : " attr(data-status-text);
	font-weight: bold;
	color: red;
}
section.session menu.error > header,
section.session menu.error > li
{
	display: none !important;
}


body.session section.session
{
	display: none !important;
}

section.links menu
{
	flex-flow: row wrap;
	gap: 1em 1em;
	padding: 1em;
	align-items: center;
	justify-content: center;
}

section.links menu > li
{
	background-image: var(--icon);
	background-size: 7em;
	background-position: center;
	background-repeat: no-repeat;

	border: 0.1em solid gray;
	border-radius: 1em;
	padding: 1em;
	min-height: 12em;
	min-width: 8em;
	cursor: pointer;
}

section.links menu > li:hover
{
	background-color: lightcyan;
	text-decoration: underline;
}

section.links menu > li::after
{
	content : attr(data-name);
}