:root {
  font-family: Inter, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #192b37;
  line-height: 1.45;
  --accent: #0c6356;
  --line: #d2dcdf;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  min-height: 64px;
  padding: 12px max(5vw, 20px);
  background: #123431;
  color: white;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  font-size: 24px;
  letter-spacing: -1px;
}
header > span {
  color: #c5dad6;
}
#identity {
  margin-left: auto;
}
main {
  max-width: 1200px;
  margin: 36px auto;
  padding: 0 24px;
}
h1 {
  letter-spacing: -0.035em;
  font-size: clamp(28px, 4vw, 40px);
  margin: 16px 0 24px;
}
h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
p {
  color: #4e626c;
}
button,
input {
  font: inherit;
}
button {
  border: 0;
  background: var(--accent);
  color: white;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.9);
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
button.quiet,
nav button,
.back,
.link {
  background: transparent;
  color: var(--accent);
}
header button.quiet {
  color: white;
}
.back,
.link {
  padding: 5px 0;
}
.link {
  text-align: left;
  text-decoration: underline;
}
.danger {
  background: #843b32;
}
nav {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 5px;
  margin-bottom: 28px;
}
nav button {
  border-radius: 0;
  padding: 12px 18px;
}
nav button[aria-current="page"] {
  border-bottom: 3px solid var(--accent);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin: 0 0 22px;
}
.login {
  max-width: 420px;
  margin: 10vh auto;
}
.login h1 {
  font-size: 28px;
  margin-top: 0;
}
form {
  display: grid;
  gap: 15px;
  align-items: end;
}
form button {
  justify-self: start;
}
.login button {
  width: 100%;
}
label {
  font-size: 14px;
  font-weight: 600;
  display: grid;
  gap: 6px;
}
input {
  min-width: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #aebdc1;
  padding: 10px 12px;
  border-radius: 5px;
}
input:read-only {
  background: #f2f5f6;
}
input:focus,
button:focus-visible {
  outline: 3px solid #5baba1;
  outline-offset: 2px;
}
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.heading,
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inline {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.inline input {
  max-width: 110px;
}
.scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
td,
th {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 13px;
  color: #52646e;
}
td {
  font-size: 15px;
}
.item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.item:first-child {
  margin-top: 14px;
}
.item button {
  flex: none;
}
#notice {
  position: sticky;
  bottom: 14px;
  background: #123431;
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 2px 10px #0002;
}
#notice[data-error="true"] {
  background: #89372f;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  main {
    padding: 0 12px;
  }
  .heading {
    flex-wrap: wrap;
    margin-bottom: 12px;
  }
  .panel {
    padding: 16px;
  }
  header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .item {
    align-items: start;
  }
  .heading h1 {
    margin-bottom: 0;
  }
}
