main {
	display: block;
	max-width: 450px !important;
	margin: 0 auto;
	padding: 1em;
	background: white;
}

h1 {
	margin-top: 0;
	color: white;
}

label {
	padding-right: 1em;
	padding-bottom: .5em;
	font-size: .7em;
	font-family: "Bree Serif", serif;
	color: #ffffff73;
}
#data {
  display: flex;
  flex-direction: column;
}
#data input {
	margin-bottom: .5em;
	flex: 1;
}

#data span {
	padding-left: .25em;
	font-family: "Share Tech Mono", monospace;
}

#buttons input {
	margin-bottom: .5em;
}


br {
	clear: left;
}
input:invalid{
	background: #b71c1c;
}
#perc{
	display: flex;
}
p.error {
  text-align: center;
  background: #b71c1c;
  border-radius: 4px;
  padding: inherit;
  max-width: 300px;
  margin: 16px auto;
}
div#data.pass-words, #action-bar {
  display: flex;
  flex-direction: row;
  border: solid 1px;
  border-radius: 6px;
  padding: 4px;
	overflow: hidden;
  margin: 8px 0;
}
#action-bar{
  border: none;
  padding: 0;
  background: #263238;
}
.pass-words input[type="text"]:focus-visible {
  outline: none;
	color: white;
}
.pass-words input[type="text"], #action-bar button {
  width: 0;
  border: none;
  border-right: solid 1px gray;
  border-radius: 0;
  padding: 4px;
  margin-bottom: 0 !important;
  text-align: center;
  color: gray;
  flex: 1;
}
#action-bar button{
  color: inherit;
  padding: 12px 2px;
}
.disabled{
  pointer-events: none;
  opacity: 0.5;
}
.undisabled{
  pointer-events: all;
  opacity: 1;
}
.pass-words input[type="text"]:last-child, #action-bar button:last-child {
  border-right: none;
}
div#empty {
  margin: 4px;
  border: dashed 2px;
  color: gray;
  border-radius: 16px;
  text-align: center;
  padding: 24px 4px;
}
ol {
  font-family: 'Share Tech Mono';
  border-radius: 12px;
  overflow: hidden;
}
li {
  padding: 4px;
  cursor: pointer;
}
li:nth-child(odd) {
  background: #2a2d2f;
}
li:hover {
  background: #454f54;
}
li.selected {
  background: #5d8fa7;
}
div#sort {
  text-align: right;
}
button#sort:active, button#sort:hover {
  background: initial;
  color: inherit;
}
button#sort {
  border: none;
}
#sort .arrow {
  rotate: 180deg;
}
#sort[order="descending"] .arrow {
  rotate: 0deg;
}
.text-entry {
  display: flex;
}
.text-entry input[type="text"] {
  flex: 1;
}
.text-entry > * {
  margin: 0 2px;
}
button.mini {
  padding: 4px 5px;
  border-radius: 50%;
}
button.cancel:hover {
  background: #b71c1c;
  border-color: #b71c1c;
}