:root {
  color-scheme: light;
  --ink: #132f31;
  --muted: #526a69;
  --teal: #006453;
  --line: #d3e1dc;
  --base: #f4f7f3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font:
    16px/1.65 Tahoma,
    'Segoe UI',
    Arial,
    sans-serif;
}
header {
  background: #113c37;
  color: #f1fff8;
}
.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: auto;
}
.head,
.top,
.tabs,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.head {
  min-height: 60px;
}
.word {
  font: 700 17px/1.1 Arial;
  letter-spacing: 0.14em;
}
.word span {
  color: #80c9ae;
}
.eyebrow {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0;
}
.top {
  margin: 32px 0 16px;
}
h1,
h2,
p {
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.25;
}
h2 {
  font-size: 19px;
}
p,
small {
  color: var(--muted);
}
.panel,
dialog,
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
}
.panel {
  margin-bottom: 16px;
}
.login {
  max-width: 450px;
  margin: 8vh auto 25px;
  border-top: 5px solid var(--teal);
}
.login h1 {
  margin: 10px 0;
}
.login form {
  display: grid;
  gap: 12px;
}
label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  display: grid;
  gap: 5px;
}
input,
select,
textarea {
  border: 1px solid #aabdb7;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  font: inherit;
}
textarea {
  min-height: 90px;
}
button,
a.download {
  border: 0;
  border-radius: 7px;
  background: var(--teal);
  color: white;
  font: 600 0.9rem/1.5 inherit;
  font-family: inherit;
  padding: 9px 15px;
  cursor: pointer;
  text-decoration: none;
}
button.alt {
  background: #eaf2ed;
  color: #17483c;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #c99f36;
  outline-offset: 2px;
}
nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin: 0 0 20px;
}
nav button {
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  border-radius: 0;
  padding: 10px 14px;
}
nav button[aria-current='page'] {
  border-bottom: 3px solid var(--teal);
  color: var(--teal);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.stat b {
  font-size: 26px;
  display: block;
}
.stat small {
  display: block;
}
.formrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  align-items: end;
}
.formrow textarea {
  min-height: 48px;
}
.scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.9rem;
}
th,
td {
  padding: 10px;
  border-bottom: 1px solid #e1e9e5;
  vertical-align: middle;
}
th {
  background: #f3f7f3;
  color: #45605b;
}
td button {
  font-size: 0.8rem;
  margin: 2px;
  padding: 5px 9px;
}
.tag {
  display: inline-block;
  color: #105c4d;
  background: #e2f2e8;
  padding: 3px 8px;
  border-radius: 14px;
}
.toolbar {
  justify-content: flex-start;
}
.note {
  background: #fff3d6;
  padding: 10px;
  border-radius: 6px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #163c37;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 20;
}
dialog {
  max-width: min(740px, 94vw);
  width: 600px;
  max-height: 89vh;
}
dialog::backdrop {
  background: #082d28aa;
}
dialog h2 {
  margin-top: 10px;
}
dialog form {
  display: grid;
  gap: 10px;
}
dialog img {
  max-width: 100%;
  display: block;
  margin: auto;
}
pre {
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #eff4f2;
  border-radius: 6px;
  padding: 10px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 20px);
  }
  .panel {
    padding: 13px;
  }
  .top {
    margin-top: 17px;
  }
  .formrow {
    grid-template-columns: 1fr;
  }
  td {
    padding: 7px;
  }
}
