:root {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  color: #18352c;
  background: #f4f6f3;
  font-synthesis: none;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 24px max(24px, calc((100vw - 1160px) / 2));
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe7e0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 650;
  font-size: 20px;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #657b71;
  margin-top: 3px;
}
.mark {
  padding: 10px;
  background: #164c38;
  color: white;
  border-radius: 13px;
}
main {
  max-width: 1208px;
  margin: 0 auto;
  padding: 36px 24px;
  min-height: 75vh;
}
.card {
  background: #fff;
  border: 1px solid #dfe7e0;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 22px;
}
.auth {
  max-width: 480px;
  margin: 24px auto;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #517766;
  font-weight: 700;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 12px 0;
}
h2 {
  font-size: 18px;
  margin: 0 0 18px;
}
.muted {
  color: #64756e;
  line-height: 1.7;
}
.small {
  font-size: 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  margin: 16px 0;
  font-weight: 550;
}
input {
  border: 1px solid #bfcec4;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: #18352c;
  font: inherit;
  width: 100%;
  min-width: 0;
}
input:focus {
  outline: 2px solid #327956;
  outline-offset: 2px;
}
button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: #205e42;
  color: #fff;
  font: inherit;
  font-weight: 550;
  padding: 10px 17px;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #16472f;
}
button:focus-visible {
  outline: 3px solid #89ba9c;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: #edf2ed;
  color: #214e39;
  border-color: #d6e0d7;
}
.secondary:hover {
  background: #dee9df;
}
.danger {
  background: #fff0ec;
  color: #983f2d;
  border-color: #f0d1c8;
}
.tabs {
  display: flex;
  gap: 6px;
  background: #f0f4f0;
  border-radius: 10px;
  padding: 5px;
  margin: 24px 0;
}
.tabs button {
  flex: 1;
  background: transparent;
  color: #64756e;
  font-size: 13px;
  padding: 9px 5px;
}
.tabs .selected {
  background: #fff;
  color: #1b553a;
  box-shadow: 0 1px 4px #163b2214;
}
#submit {
  width: 100%;
  margin-top: 8px;
}
#notice {
  position: sticky;
  top: 12px;
  z-index: 3;
  background: #fff0de;
  border: 1px solid #ecd1a7;
  border-radius: 10px;
  padding: 13px 18px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.summary strong {
  font-size: 26px;
  display: block;
  margin: 12px 0;
}
.summary small {
  color: #64756e;
  font-size: 12px;
}
.row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.row label {
  margin: 0;
  min-width: 160px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}
th {
  font-weight: 500;
  color: #6b7c71;
  border-bottom: 1px solid #dce5de;
  padding: 12px 10px;
}
td {
  border-bottom: 1px solid #eef1ee;
  padding: 15px 10px;
}
td button {
  font-size: 12px;
  padding: 7px 10px;
  margin: 3px;
}
.pill {
  font-size: 12px;
  background: #edf4ed;
  color: #28613c;
  border-radius: 20px;
  padding: 4px 9px;
}
.session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7eee8;
  padding: 14px 0;
  gap: 20px;
}
.session small {
  display: block;
  color: #68796d;
  margin-top: 6px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
dialog {
  border: 1px solid #d4e1d7;
  border-radius: 16px;
  padding: 28px;
  width: min(500px, calc(100vw - 32px));
  color: inherit;
}
dialog::backdrop {
  background: #132d245c;
}
#secret-value {
  font-family: monospace;
  font-size: 13px;
}
footer {
  text-align: center;
  color: #78867e;
  font-size: 12px;
  padding: 24px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header {
    padding: 18px;
  }
  .brand {
    font-size: 17px;
  }
  main {
    padding: 22px 14px;
  }
  .summary {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .card {
    padding: 20px 16px;
  }
  .heading {
    align-items: flex-start;
    gap: 12px;
  }
  .row {
    gap: 16px;
  }
  .row label {
    width: 100%;
  }
  .row button {
    width: 100%;
  }
  h1 {
    font-size: 23px;
  }
  .session {
    align-items: flex-start;
  }
}
