:root {
  color: #1c1917;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f3f1ec;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: #0f766e; }

.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: #1c1917;
  color: #faf7f2;
}
.top strong { font-size: 16px; }
.top nav { display: flex; gap: 6px; margin-left: 12px; }
.top nav button, .ghost {
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
}
.top nav button.active, .top nav button:hover { background: #44403c; }
.top .spacer { margin-left: auto; color: #d6d3d1; }
main { padding: 20px 22px 40px; max-width: 1180px; }
.card {
  background: white;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 16px;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #f5f5f4; vertical-align: top; }
th { color: #78716c; font-weight: 600; font-size: 13px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.primary, .danger, .plain {
  border-radius: 8px;
  padding: 8px 14px;
  border: 1px solid #d6d3d1;
  background: white;
}
.primary { background: #0f766e; color: white; border-color: #0f766e; }
.danger { color: #b91c1c; }
.tag {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 1px 7px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.hidden { display: none; }
.dialog { width: min(640px, 100%); max-height: 90vh; overflow: auto; }
label { display: block; margin: 10px 0 4px; color: #57534e; font-size: 13px; }
input[type="text"], input[type="password"], input[type="number"], textarea, select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  background: white;
}
textarea { min-height: 140px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.checks label { margin: 0; color: inherit; }
.muted { color: #78716c; font-size: 13px; }
.error { color: #b91c1c; }
.split { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .top { flex-wrap: wrap; } }
.login-wrap, .download-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card, .download-card { width: min(560px, 100%); }
.download-card h1 { margin: 0 0 8px; font-size: 28px; }
.big {
  display: inline-block;
  margin: 18px 0;
  background: #0f766e;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 18px;
}
code { background: #f5f5f4; padding: 2px 6px; border-radius: 6px; }
pre {
  white-space: pre-wrap;
  background: #1c1917;
  color: #faf7f2;
  border-radius: 10px;
  padding: 12px;
}
