:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #21342f;
  background: #f5f7f5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 88px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce5df;
  background: white;
}
.brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
}
.brand span {
  color: #23745a;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.19em;
  font-weight: 500;
  margin-top: 4px;
}
main {
  max-width: 1260px;
  margin: 0 auto;
  padding: 44px 28px;
}
h1 {
  font-size: 34px;
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
}
h2 {
  font-size: 22px;
  margin: 4px 0 16px;
}
.muted,
.hint {
  color: #60716a;
  line-height: 1.6;
}
.hint {
  font-size: 13px;
}
.eyebrow {
  color: #287356;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
}
.card {
  background: white;
  border: 1px solid #dce5df;
  border-radius: 12px;
  padding: 26px;
}
.login {
  max-width: 470px;
  margin: 55px auto;
}
.heading,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
button,
input,
select {
  font: inherit;
  border: 1px solid #bdcec4;
  border-radius: 7px;
  padding: 10px 14px;
}
button {
  cursor: pointer;
  background: white;
  color: #244538;
  font-size: 14px;
  font-weight: 600;
}
button:hover {
  background: #eef4ef;
}
button.primary {
  background: #236c50;
  border-color: #236c50;
  color: white;
}
button.primary:hover {
  background: #18573e;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input {
  width: 100%;
  background: #fff;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 18px 0 8px;
}
input:focus,
button:focus-visible,
select:focus {
  outline: 3px solid #95c9b2;
  outline-offset: 2px;
}
form > button {
  margin-top: 20px;
  width: 100%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0;
}
.stats span {
  font-size: 13px;
  color: #60716a;
}
.stats strong {
  display: block;
  font-size: 32px;
  margin-top: 12px;
}
.toolbar {
  max-width: 420px;
  margin-bottom: 24px;
}
.instance-list {
  display: grid;
  gap: 16px;
}
.instance h2 {
  margin-bottom: 8px;
}
.instance .meta {
  font-size: 13px;
  color: #60716a;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 20px;
  padding: 6px 10px;
  background: #eef2ed;
  color: #52645b;
}
.badge.ACTIVE {
  color: #226644;
  background: #e6f5ec;
}
.badge.PENDING {
  color: #856016;
  background: #fff5d9;
}
.badge.DISABLED {
  color: #76565a;
  background: #f4eaeb;
}
.instance-controls {
  border-top: 1px solid #edf1ed;
  padding-top: 18px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.instance-controls label {
  margin: 0 4px 0 0;
}
.audit {
  margin-top: 36px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  color: #66776e;
  font-weight: 500;
}
td,
th {
  padding: 14px 10px;
  border-bottom: 1px solid #edf1ed;
}
td {
  overflow-wrap: anywhere;
  max-width: 300px;
}
dialog {
  border: 1px solid #dce5df;
  border-radius: 14px;
  padding: 30px;
  max-width: 560px;
  width: calc(100% - 32px);
  color: inherit;
  box-shadow: 0 24px 100px #10281e30;
}
dialog::backdrop {
  background: #162e2466;
}
dialog .actions {
  margin-top: 24px;
}
dialog p {
  line-height: 1.6;
}
#notice:empty {
  display: none;
}
#notice {
  background: #e6f0e9;
  padding: 14px;
  border-radius: 8px;
}
#register-error,
#confirm-error {
  color: #a42b32;
}
#credential-fields input {
  font-family: monospace;
  font-size: 13px;
  margin-bottom: 8px;
}
.empty {
  text-align: center;
  padding: 44px;
  color: #60716a;
}
[hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  main {
    padding: 24px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats {
    gap: 8px;
  }
  .stats .card {
    padding: 16px;
  }
  .card {
    padding: 20px;
  }
  .login {
    margin: 20px auto;
  }
  h1 {
    font-size: 29px;
  }
  header {
    height: 76px;
  }
  .instance-controls {
    align-items: stretch;
    flex-direction: column;
  }
}
