* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f3f5f4;
  color: #20352d;
  font:
    16px system-ui,
    sans-serif;
}
header {
  background: #174b3c;
  color: white;
  padding: 22px max(18px, calc((100% - 960px) / 2));
  white-space: nowrap;
}
header b {
  font-size: 24px;
  white-space: normal;
  overflow-wrap: anywhere;
}
header small {
  display: block;
  opacity: 0.8;
  margin-top: 5px;
}
main {
  max-width: 960px;
  margin: auto;
  padding: 18px 18px 100px;
}
nav {
  position: fixed;
  bottom: 0;
  background: white;
  border-top: 1px solid #dce4df;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 3;
}
nav button {
  flex: 1;
  max-width: 192px;
  background: white;
  color: #52635a;
  border-radius: 0;
  padding: 15px 2px;
}
nav button.on {
  color: #176b4e;
  background: #e5f2eb;
  font-weight: bold;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 0;
  border-radius: 9px;
  background: #22664e;
  color: white;
  padding: 11px 15px;
  cursor: pointer;
}
button.alt {
  background: #e5eee8;
  color: #23543f;
}
button.danger {
  background: #f9e6e4;
  color: #9b302b;
}
button:disabled {
  opacity: 0.5;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cad8cf;
  border-radius: 8px;
  background: white;
  padding: 11px;
  color: inherit;
}
label {
  display: block;
  font-size: 14px;
  color: #53665c;
  margin: 10px 0 4px;
}
.card {
  overflow-wrap: anywhere;
  background: white;
  border: 1px solid #e0e7e2;
  border-radius: 14px;
  padding: 18px;
  margin: 12px 0;
  box-shadow: 0 2px 6px #153c2510;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.grid .card {
  margin: 0;
}
.num {
  font-size: 30px;
  font-weight: 750;
  margin: 5px 0;
}
small,
.muted {
  color: #68786f;
}
header small {
  color: white;
}
.line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  font-size: 13px;
  border-radius: 20px;
  padding: 5px 10px;
  background: #e3f3e8;
  color: #236342;
  white-space: nowrap;
}
.late {
  background: #fce5e4;
  color: #9e3434;
}
.soon {
  background: #fff0cd;
  color: #8a5a00;
}
.off {
  background: #eee;
  color: #555;
}
h2 {
  font-size: 21px;
  margin: 12px 0;
}
h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.notice {
  padding: 12px;
  background: #e8efe9;
  border-radius: 8px;
  font-size: 14px;
  margin: 12px 0;
}
dialog {
  border: 0;
  border-radius: 16px;
  width: min(94%, 550px);
  max-height: 90vh;
  padding: 22px;
  color: inherit;
  overflow: auto;
}
dialog::backdrop {
  background: #162d25aa;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
td,
th {
  text-align: left;
  padding: 9px 5px;
  border-bottom: 1px solid #e4eae6;
}
.scroll {
  overflow: auto;
}
hr {
  border: 0;
  border-top: 1px solid #e4eae6;
}
#toast {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #173e31;
  color: white;
  padding: 12px;
  border-radius: 8px;
  z-index: 10;
  display: none;
}
@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.login {
  max-width: 460px;
  margin: 30px auto;
}
#connection {
  max-width: 960px;
  margin: 0 auto;
  padding: 3px 18px;
}
#connection:empty {
  display: none;
}
.account {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 18px;
  overflow-wrap: anywhere;
}
.account button {
  margin-left: 8px;
}
dialog h2 {
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
