* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
:root {
  color-scheme: light;
  --ink: #1b342b;
  --line: #d7ddd4;
  --green: #215a42;
  --muted: #55675c;
  --paper: #f6f7f2;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.45 'Inter',
    system-ui,
    sans-serif;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font:
    500 clamp(32px, 4.2vw, 52px)/1.12 Georgia,
    serif;
  letter-spacing: -0.04em;
}
h2 {
  font:
    500 25px/1.2 Georgia,
    serif;
  margin-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    600 24px Georgia,
    serif;
  letter-spacing: -1px;
}
.brand i {
  display: inline-block;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(90deg, transparent 43%, var(--paper) 43% 55%, transparent 55%),
    linear-gradient(transparent 43%, var(--paper) 43% 55%, transparent 55%), var(--green);
  border-radius: 2px;
}
header {
  padding: 16px clamp(16px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}
.identity,
.filters,
.top,
#pager {
  display: flex;
  align-items: center;
  gap: 14px;
}
.layout {
  display: grid;
  grid-template-columns: 205px 1fr;
  max-width: 1580px;
  margin: auto;
}
aside {
  padding: 35px 16px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  text-align: left;
  background: none;
  color: var(--muted);
  font-weight: 500;
}
nav button.active {
  background: #e1eadf;
  color: var(--green);
  font-weight: 700;
}
.board {
  min-width: 0;
  padding: 36px clamp(15px, 3.6vw, 60px) 58px;
}
.top {
  justify-content: space-between;
  margin-bottom: 16px;
}
label,
fieldset {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}
input,
select {
  background: white;
  color: var(--ink);
  border: 1px solid #aeb9ae;
  border-radius: 5px;
  padding: 9px 10px;
  font: inherit;
  max-width: 100%;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 5px;
  padding: 10px 15px;
  background: var(--green);
  color: white;
  font-size: 14px;
  line-height: 1.4;
  font-family: inherit;
  font-weight: 600;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.quiet {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.filters {
  margin-bottom: 15px;
  align-items: flex-end;
}
.check {
  display: flex;
  align-items: center;
  min-height: 39px;
}
.tablewrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-size: 12px;
  background: #eef2ea;
}
tr:last-child td {
  border: 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 22px;
  margin: 20px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}
#pager {
  justify-content: flex-end;
  margin: 12px 0;
}
#connection,
#page {
  font-size: 12px;
  color: var(--muted);
}
#msg:not(:empty),
#loginMsg:not(:empty) {
  border-left: 3px solid var(--green);
  padding: 7px 12px;
  margin: 10px 0 15px;
  background: #e7eee4;
}
#msg.error,
#loginMsg.error {
  border-color: #a34730;
  background: #f6e6df;
}
.empty {
  padding: 20px;
  color: var(--muted);
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 4px;
}
.login {
  max-width: 420px;
  margin: 13vh auto;
  padding: 28px;
}
.login h1 {
  margin: 38px 0 22px;
}
.login form {
  display: grid;
  gap: 15px;
}
.login button {
  margin-top: 8px;
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  aside {
    padding: 10px 15px;
    gap: 8px;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
  }
  .board {
    padding-top: 12px;
  }
  .top {
    align-items: flex-end;
  }
  .identity {
    gap: 6px;
  }
  .filters {
    flex-wrap: wrap;
  }
}
