:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  color: #223535;
  background: #f4f6f3;
  --green: #28634e;
  --line: #dce4dc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}
aside {
  width: 234px;
  flex: none;
  background: #173f32;
  color: #dce9df;
  padding: 28px 16px;
  position: fixed;
  inset: 0 auto 0 0;
  overflow: auto;
}
.brand {
  font-size: 23px;
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 0 12px 24px;
}
.brand span {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 8px;
  opacity: 0.7;
}
nav {
  display: grid;
  gap: 3px;
}
nav button {
  background: transparent;
  color: #caddd0;
  text-align: left;
  border: none;
  padding: 9px 12px;
  font-size: 13px;
}
nav button[aria-current="page"] {
  background: #34634f;
  color: white;
}
aside footer {
  font-size: 10px;
  opacity: 0.6;
  padding: 22px 12px;
}
.workspace {
  margin-left: 234px;
  width: calc(100% - 234px);
}
header {
  height: 70px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 36px;
}
.environment {
  font-size: 12px;
  background: #fff0d4;
  color: #794c0f;
  border-radius: 5px;
  padding: 6px 12px;
}
#identity {
  margin-left: auto;
  font-size: 12px;
}
main {
  padding: 34px;
  max-width: 1600px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #6b8470;
  margin: 0 0 10px;
}
h1 {
  font-size: 27px;
  font-weight: 600;
  margin: 0 0 24px;
}
h2 {
  font-size: 19px;
}
p {
  line-height: 1.7;
  font-size: 14px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #5c7061;
}
input,
textarea,
select {
  font: inherit;
  border: 1px solid #ced9d0;
  border-radius: 5px;
  padding: 10px;
  min-width: 160px;
  background: #fff;
  color: #203c2c;
}
input {
  width: 230px;
}
textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  font-family: ui-monospace, monospace;
}
button {
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #cad8cc;
  background: white;
  color: var(--green);
  border-radius: 6px;
  padding: 10px 15px;
  white-space: nowrap;
}
button:hover {
  background: #edf5ed;
}
button:disabled {
  opacity: 0.4;
  cursor: wait;
}
form > button:last-child,
.primary {
  background: var(--green);
  color: #fff;
}
.danger {
  color: #9e332b;
  border-color: #d3b0a7;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  background: #edf2eb;
  font-weight: 500;
  color: #5b7161;
  padding: 13px 16px;
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  max-width: 290px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-top: 1px solid #edf0eb;
}
tbody tr:hover {
  background: #f8fbf6;
}
td button {
  padding: 5px 9px;
}
#login {
  max-width: 650px;
  margin: 50px auto;
  background: #fff;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
#login form {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 24px 0;
}
#login input {
  width: 100%;
}
#login label {
  flex: 1;
}
details {
  font-size: 12px;
  color: #58705f;
  margin-top: 30px;
}
summary {
  cursor: pointer;
}
.operations {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
#status {
  color: #8a411f;
  overflow-wrap: anywhere;
}
.busy {
  opacity: 0.55;
  pointer-events: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
}
dialog::backdrop {
  background: #14261f80;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: #f4f7f2;
  border-radius: 6px;
  padding: 18px;
  max-height: 50vh;
  overflow: auto;
}
.detail-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.detail-form input {
  width: 100%;
}
.detail-form .buttons {
  display: flex;
  gap: 10px;
}
.badge {
  display: inline-block;
  background: #edf2eb;
  padding: 5px 9px;
  border-radius: 4px;
}
#next {
  margin-top: 20px;
}
@media (max-width: 900px) {
  aside {
    width: 180px;
  }
  .workspace {
    margin-left: 180px;
    width: calc(100% - 180px);
  }
  main {
    padding: 20px;
  }
  .toolbar {
    gap: 8px;
  }
  input {
    width: 180px;
  }
}
@media (max-width: 600px) {
  aside {
    width: 140px;
    padding: 20px 8px;
  }
  .brand {
    font-size: 19px;
  }
  nav button {
    font-size: 11px;
  }
  .workspace {
    margin-left: 140px;
    width: calc(100% - 140px);
  }
  header {
    padding: 12px;
    height: auto;
    flex-wrap: wrap;
  }
  main {
    padding: 14px;
  }
  .toolbar {
    display: grid;
  }
  .heading {
    align-items: start;
  }
  #login {
    padding: 20px;
  }
  #login form {
    display: grid;
  }
  input {
    width: 100%;
  }
}
[hidden] {
  display: none !important;
}
