:root {
  font:
    16px/1.5 "Inter",
    system-ui,
    sans-serif;
  color: #233139;
  background: #fafbf9;
  --ink: #172d32;
  --muted: #546664;
  --green: #136455;
  --line: #d9e1dc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--ink);
  color: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 720;
  font-size: 24px;
  letter-spacing: -1px;
  text-decoration: none;
}
.mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #99d7c6;
  color: #b9ecd9;
  border-radius: 10px 3px;
  font: italic 24px Georgia;
}
.product {
  padding-left: 20px;
  border-left: 1px solid #59716e;
  color: #d1e3de;
}
#operator {
  margin-left: auto;
  font-size: 14px;
}
.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
aside {
  padding: 48px 17px;
  background: #f0f4f0;
  border-right: 1px solid var(--line);
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  color: #405754;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 550;
}
nav a[aria-current] {
  background: #dceae0;
  color: #115245;
}
main {
  padding: clamp(24px, 4vw, 68px);
  width: 100%;
  max-width: 1600px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font:
    500 clamp(37px, 4vw, 56px)/1.1 Georgia,
    serif;
  letter-spacing: -1.8px;
}
h2 {
  font-size: 24px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}
.top,
.toolbar,
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.top {
  justify-content: space-between;
  margin-bottom: 32px;
}
.toolbar {
  margin: 14px 0;
  justify-content: space-between;
}
.muted,
small {
  color: var(--muted);
}
small {
  display: block;
}
button,
input,
select {
  font: inherit;
}
button,
.action {
  cursor: pointer;
  background: white;
  border: 1px solid #aabcb4;
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--ink);
  font-weight: 550;
}
button:hover {
  background: #edf4ef;
}
button.primary {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
button.danger {
  color: #8c3029;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #bf8429;
  outline-offset: 3px;
}
input,
select {
  border: 1px solid #abbab2;
  border-radius: 5px;
  padding: 9px 12px;
  background: white;
  color: var(--ink);
  max-width: 100%;
}
label {
  display: grid;
  gap: 5px;
  margin: 14px 0;
}
label span {
  font-weight: 550;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th,
td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  background: #f1f5f1;
  color: #4e635e;
  font-size: 13px;
}
tr:last-child td {
  border: 0;
}
.link {
  border: 0;
  background: transparent;
  color: var(--green);
  text-align: left;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty {
  padding: 24px;
  color: var(--muted);
}
dialog {
  width: min(760px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(22px, 4vw, 38px);
  color: var(--ink);
}
dialog::backdrop {
  background: #0c2225a8;
}
dialog .top {
  margin-bottom: 14px;
}
form .actions {
  margin-top: 22px;
}
.error {
  color: #8d2f25;
}
.summary {
  color: var(--muted);
  margin: 10px 0;
}
.message {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #edf4ef;
  border-radius: 5px;
  margin-bottom: 16px;
}
.counter {
  font-variant-numeric: tabular-nums;
}
article {
  margin: 13px 0;
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  header {
    height: 60px;
    gap: 10px;
  }
  .product {
    padding-left: 10px;
    font-size: 13px;
  }
  #operator {
    max-width: 32%;
    overflow-wrap: anywhere;
    font-size: 11px;
  }
  aside {
    padding: 7px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  nav {
    display: flex;
    gap: 2px;
  }
  nav a {
    font-size: 14px;
    padding: 7px 10px;
  }
  main {
    padding: 24px 14px;
  }
  th,
  td {
    padding: 10px 12px;
  }
  .top {
    margin-bottom: 18px;
  }
}
@media (max-width: 500px) {
  .product {
    display: none;
  }
  #operator {
    max-width: none;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  #operator span {
    max-width: 110px;
  }
  #operator button {
    font-size: 12px;
  }
  nav {
    overflow-x: auto;
  }
  nav a {
    white-space: nowrap;
  }
}
@media (max-width: 500px) {
  nav {
    justify-content: space-between;
  }
  nav a {
    padding: 7px 4px;
    font-size: 13px;
  }
  .roster table,
  .roster tbody,
  .roster tr {
    display: block;
  }
  .roster thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .roster tr {
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
  }
  .roster tr:last-child {
    border-bottom: 0;
  }
  .roster td {
    padding: 4px 0;
    border: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 8px;
    overflow-wrap: anywhere;
  }
  .roster td::before {
    content: attr(data-label);
    font-weight: 550;
    color: var(--muted);
  }
}
