:root {
  --ink: #263326;
  --muted: #849080;
  --paper: #f7f8f2;
  --line: #dfe5d8;
  --accent: #d6f66a;
  --dark: #263a27;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 14px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
}
button:hover {
  border-color: #90a777;
  background: #f2f6e9;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.muted {
  color: var(--muted);
  line-height: 1.7;
}
.kicker {
  font-family: Georgia, serif;
  letter-spacing: 2px;
  font-size: 11px;
  color: #768a69;
}
h1,
h2,
p {
  margin-top: 0;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 12px;
  color: var(--ink);
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #a8c766;
  outline-offset: 2px;
}
label {
  display: block;
  margin: 20px 0;
  color: #62745b;
  font-size: 13px;
}
label input,
label textarea,
label select {
  display: block;
  margin-top: 9px;
}
textarea {
  min-height: 110px;
  resize: vertical;
  font-family: monospace;
  line-height: 1.6;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: #e8efda;
  padding: 8vh 8vw;
  position: relative;
  overflow: hidden;
}
.wordmark {
  background: var(--accent);
  font: bold 65px Georgia;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  margin-bottom: 60px;
}
.login-art h1 {
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.35;
  margin: 22px 0;
}
.login-art p {
  color: #76836a;
  line-height: 1.8;
}
.art-orbit {
  display: flex;
  gap: 22px;
  margin-top: 65px;
  border-top: 1px solid #cbd6ba;
  padding-top: 35px;
}
.art-orbit span {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d6e4bf;
  font-size: 25px;
}
.art-orbit span:nth-child(2) {
  background: #eed8de;
  transform: translateY(20px);
}
.art-orbit span:nth-child(3) {
  background: #ece3b8;
}
.login-form {
  width: 380px;
  max-width: 90%;
  margin: auto;
  padding: 30px 0;
}
.login-form h2 {
  font-size: 32px;
  margin: 22px 0 12px;
}
.login-form .primary {
  width: 100%;
  margin-top: 15px;
  padding: 15px;
}
.error {
  color: #b24449;
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0 0;
  min-height: 20px;
}
[hidden] {
  display: none !important;
}
.studio {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
aside {
  background: var(--dark);
  color: #e7ecdf;
  padding: 30px 20px;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 250px;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 23px;
  margin: 0 8px 40px;
}
.brand b {
  width: 45px;
  height: 45px;
  background: var(--accent);
  border-radius: 13px;
  color: var(--ink);
  font: 32px Georgia;
  display: grid;
  place-items: center;
}
.brand span {
  display: block;
  font-size: 11px;
  color: #a6b69b;
  letter-spacing: 2px;
  margin-top: 5px;
}
.side-label {
  display: block;
  margin: 0 10px 16px;
  color: #98ae86;
}
nav button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #bccab3;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 2px;
}
nav button:hover {
  background: #354c35;
}
nav button.active {
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
nav button span {
  font-size: 11px;
  opacity: 0.65;
}
.sidebar-foot {
  margin-top: 30px;
  border-top: 1px solid #4e6146;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sidebar-foot span {
  width: 100%;
  color: #9db18f;
  font-size: 12px;
}
.sidebar-foot button {
  background: transparent;
  border-color: #4e6146;
  color: #bacaad;
  padding: 8px 10px;
  font-size: 12px;
}
main {
  grid-column: 2;
  padding: 0 42px 35px;
  min-width: 0;
}
header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 35px;
}
.environment {
  font-size: 12px;
  color: #78965b;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.page-head h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1.7fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eff3e7;
  margin: 25px 0;
  overflow: hidden;
}
.metrics > div {
  padding: 20px 25px;
  border-right: 1px solid var(--line);
}
.metrics > div:last-child {
  border: 0;
}
.metrics span {
  display: block;
  color: #8a9680;
  font-size: 12px;
}
.metrics strong {
  display: block;
  font: 32px Georgia;
  margin: 10px 0;
  color: #3c5131;
}
.metrics > div:last-child strong {
  font:
    23px "PingFang SC",
    sans-serif;
  margin: 15px 0;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 25px 0 16px;
}
.toolbar form {
  display: flex;
  gap: 8px;
  width: 420px;
  max-width: 80%;
}
.toolbar input {
  padding: 10px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
th {
  text-align: left;
  background: #edf1e6;
  color: #849177;
  font-size: 11px;
  font-weight: 500;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 18px;
  border-bottom: 1px solid #edf0e7;
  font-size: 13px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fafcf5;
}
.cell-id {
  font-family: monospace;
  font-size: 11px;
  color: #8a9482;
}
.row-actions {
  display: flex;
  gap: 8px;
}
.row-actions button {
  padding: 6px 10px;
  font-size: 12px;
}
.danger {
  color: #b24449;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 12px;
  color: #89957f;
}
.pagination > span {
  margin-right: auto;
}
.notice {
  padding: 15px 20px;
  background: #e8f1d7;
  border-radius: 10px;
  color: #57703b;
  margin-bottom: 15px;
  line-height: 1.7;
}
.notice.failure {
  background: #f8e7e6;
  color: #a14747;
}
dialog {
  width: 680px;
  max-width: 94vw;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  max-height: 90vh;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #18302080;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-heading h2 {
  margin: 10px 0 0;
}
.dialog-heading button {
  font-size: 24px;
  line-height: 1;
  background: transparent;
  border: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.field-help {
  font-size: 11px;
  color: #929d89;
  display: block;
  margin-top: 6px;
}
.empty-row {
  padding: 60px;
  text-align: center;
  color: #8c9881;
}
@media (max-width: 1000px) {
  main {
    padding: 0 22px 30px;
  }
  .studio {
    grid-template-columns: 210px 1fr;
  }
  aside {
    width: 210px;
    padding: 24px 12px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics > div:last-child {
    grid-column: span 2;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 650px) {
  .login {
    display: block;
  }
  .login-art {
    padding: 30px;
  }
  .login-art h1 {
    font-size: 30px;
  }
  .wordmark {
    margin-bottom: 25px;
  }
  .art-orbit {
    display: none;
  }
  .login-form {
    padding: 40px 0;
  }
  .studio {
    display: block;
  }
  aside {
    position: static;
    width: 100%;
    padding: 20px;
  }
  .brand {
    margin: 0 0 20px;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    width: auto;
    white-space: nowrap;
    margin: 0 4px;
  }
  .side-label {
    display: none;
  }
  .sidebar-foot {
    margin-top: 16px;
    padding-top: 12px;
  }
  main {
    padding: 0 16px 25px;
  }
  header {
    height: 65px;
    margin-bottom: 25px;
  }
  .environment {
    font-size: 10px;
  }
  .metrics > div {
    padding: 15px;
  }
  .actions button {
    padding: 8px 12px;
  }
  dialog {
    padding: 20px;
  }
}
