:root {
	--background-color: 0, 0, 0;
	--foreground-color: 255, 255, 255;
	--link-color: 136, 191, 134;
	--alert-color: 255, 69, 58;
}
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-display: swap;
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	transition: all 0.2s ease;
}
::selection {
	color: rgb(var(--background-color));
	background-color: rgba(var(--foreground-color), .99);
}
:focus {
	outline: .16rem solid rgb(var(--foreground-color));
}
:disabled {
	opacity: .4;
	cursor: default;
  user-select: none;
}


html {

}
body {
	margin-bottom: 4rem;
	width: 100vw;
	background-color: rgb(var(--background-color));
	color: rgb(var(--foreground-color));
	margin: 0 auto;
	position: relative;
}





nav {
	left: 0;
	height: 2.8rem;
	width: calc(100vw - 1.2rem - 1.2rem);
	margin: 1.2rem;
	z-index: 10;
	pointer-events: none;
	display: grid;
}
nav > * {
	backdrop-filter: blur(3.2rem) brightness(.64);
	-webkit-backdrop-filter: blur(3.2rem) brightness(.64);
	border: solid 1px rgba(var(--foreground-color), .02);
	border-radius: .8rem;
	padding: .4rem;
	pointer-events: auto;
}
nav > div {
	display: flex;
	width: fit-content;
    gap: 1.2rem;
    justify-self: center;
    padding: .4rem .8rem;
}
nav a {
	display: grid;
}
/*nav.top {
	display: flex;
	align-items: center;
	position: fixed;
	top: 0;
	justify-content: space-between;
}*/
nav.bottom {
	position: fixed;
	bottom: env(safe-area-inset-bottom);
}
nav img {
	width: 2.4rem;
	max-height: 2.4rem;
}




main {
	padding: 1.2rem 1.6rem;
	padding-bottom: 4rem;
	width: 100vw;
	max-width: 48rem;
	margin: 0 auto;
	display: grid;
	grid-gap: 1.2rem;
}







h1, h2, h3, h4, h5, h6 {
	margin: 0;
	line-height: 1.2;
}
h1 {
	font-size: 2.4rem;
	font-weight: 800;
}
h2 {
	font-size: 2rem;
}
h3 {
	font-size: 1.2rem;
}
p {

}
.small {
	font-size: .8rem;
	color: rgba(var(--foreground-color), .64);
}



a {
	text-decoration: none;
	color: rgba(var(--foreground-color), 1);
}
a:hover,
a:focus,
button:hover,
button:focus {
	transform: scale(1.02);
}
p a {
	text-decoration: underline;
}







img {
	min-width: 2rem;
	min-height: 2rem;
}







.card {
	background-color: rgba(var(--foreground-color), 0.08);
	border-radius: 0.8rem;
    padding: 1.6rem;
    display: grid;
/*    grid-template-columns: auto 1fr auto;*/
    grid-gap: .8rem;
    /*position: relative;
    overflow: hidden;*/
    align-content: space-between;
}




.swatch {
	width: 1.6rem;
  height: 1.6rem;
  display: block;
  border: .4px solid rgba(var(--foreground-color), .4);
  border-radius: 999rem;
}





form {
	display: grid;
	grid-gap: 1.6rem;
}
input, select, textarea {
	background-color: rgba(var(--foreground-color), 0.16);
	color: inherit;
	border: 0;
	border-radius: .08rem;
	padding: .4rem .6rem;
	width: 100%;
}
input[type="checkbox"] {
	width: auto;
	 margin-right: .4rem;
	vertical-align: bottom;
}
input[type="search"] {
	border-radius: 9999px;
	padding-left: 1.2rem;
}
.input-number-wrapper {
	display: flex;
	gap: .4rem;
	border: 1px solid rgb(var(--foreground-color));
	border-radius: 999rem;
	height: fit-content;
}
.input-number-wrapper button {
	background-color: inherit;
  color: inherit;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}
input[type="number"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
  background-color: inherit;
  width: 3.2rem;
  text-align: center;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
textarea {
	field-sizing: content;
}
button,
a.button,
input[type="submit"] {
	background-color: rgb(var(--foreground-color));
	color: rgb(var(--background-color));
	border: 0;
	border-radius: 999rem;
	padding: .6rem 2.4rem;
/*	width: 100%;*/
	height: fit-content;
	font-size: 1rem;
	display: block;
	text-align: center;
	cursor: pointer;
}

button.secondary,
a.button.secondary {
	background-color: transparent;
	color: rgb(var(--foreground-color));
	border: 1px solid rgb(var(--foreground-color));
}
button.icon,
a.button.icon {
	padding: .4rem;
  aspect-ratio: 1 / 1;
  height: -webkit-fill-available;
}
button.delete,
button.remove {
	background-color: rgb(var(--alert-color));
	color: rgb(var(--foreground-color));
}


label {
	display: block;
	margin-bottom: .4rem;
	font-size: .8rem;
	color: rgba(var(--foreground-color), .64);
}
p > label {
    margin-bottom: .04rem;
    display: inline-block;
    /* cursor: pointer; */
}

















table {
	border-radius: 0.8rem;
	overflow: hidden;
	border-collapse: separate;
  border-spacing: 2px;
	width: 100%;
}
th, 
td {
	text-align: left;
	padding: 0.64rem;
	background-color: rgba(var(--foreground-color), 0.04);
}





.dialog {
	max-height: 100vh;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 50;
	backdrop-filter: blur(2.4rem) brightness(.4);
    -webkit-backdrop-filter: blur(2.4rem) brightness(.4);
}
.dialog .content {
	position: absolute;
	margin: auto;
	/*padding: 2.5rem;*/
	width: 80vw;
	max-width: 24rem;
	/*top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);*/
	grid-auto-rows: min-content;
	align-content: center;
	grid-gap: .8rem;
}
.dialog:not([open]) {
	display: none;
}





.filter-bar {
	list-style: none;
	display: flex;
	margin-bottom: 2rem;
	justify-content: left;
}
.filter-bar li {
	color: rgba(var(--foreground-color), .6);
	cursor: pointer;
	height: 2.4rem;
	border-radius: 1.2rem;
	line-height: .8;
	border: 1px solid rgba(var(--foreground-color), 0);
}
.filter-bar li a {
	font-weight: inherit;
    color: inherit;
    padding: .32rem 1.2rem;
    display: block;
    white-space: nowrap;
}
.filter-bar li:hover,
.filter-bar li:focus {
	color: rgba(var(--foreground-color), 1);
}
.filter-bar li.active {
	color: rgb(var(--foreground-color));
	border: 1px solid rgba(var(--foreground-color), 1);
}





.badge {
		display: inline-block;
		width: fit-content;
		height: fit-content;
    border: 1px solid rgba(var(--foreground-color), .6);
    padding: .24rem .48rem;
    text-align: center;
    border-radius: .2rem;
    font-size: .8rem;
    color: rgba(var(--foreground-color), .6);
}






.spinner {
	width: 8rem;
	text-align: center;
}

.spinner > div {
	width: 1.2rem;
	height: 1.2rem;
	background-color: rgb(var(--foreground-color));
	border-radius: 100%;
	display: inline-block;
	-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
	animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
	-webkit-animation-delay: -0.32s;
	animation-delay: -0.32s;
}

.spinner .bounce2 {
	-webkit-animation-delay: -0.16s;
	animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
	0%, 80%, 100% { -webkit-transform: scale(0) }
	40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
	0%, 80%, 100% { 
		-webkit-transform: scale(0);
		transform: scale(0);
	} 40% { 
		-webkit-transform: scale(1.0);
		transform: scale(1.0);
	}
}







.step-progressbar {
  list-style: none;
  counter-reset: step;
  display: flex;
  padding: 0;
  gap: .8rem;
  max-width: 100%;
  overflow-x: scroll;
}
.step-progressbar li {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  position: relative;
  font-size: .8rem;
  color: rgba(var(--foreground-color), .8);
}
.step-progressbar li:before {
  width: 3em;
  height: 3em;
  content: counter(step);
  counter-increment: step;
  align-self: center;
	background: rgba(var(--background-color), 1);
	border: solid .08rem rgba(var(--foreground-color), .2);
  color: rgba(var(--foreground-color), .2);
  border-radius: 100%;
  line-height: 3em;
  margin-bottom: 0.5em;
  z-index: 1;
}
.step-progressbar li:after {
  height: 2px;
  width: 100%;
  content: "";
  background: rgba(var(--foreground-color), .12);
  position: absolute;
  top: 1.5em;
  left: 50%;
}
.step-progressbar li:last-child:after {
  content: none;
}
.step-progressbar li.active:before {
/*  background: rgba(var(--foreground-color), 1);*/
	border: solid .08rem rgba(var(--foreground-color), .8);
  color: rgba(var(--foreground-color), .8);
}
.step-progressbar li.complete:before {
	background: rgba(var(--foreground-color), 1);
	color: rgba(var(--background-color), 1);
  content: "✓";
}


