:root {
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: #edf1ef;
  background: #111617;
  color-scheme: dark;
  letter-spacing: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  min-height: 64px;
  padding: 14px 24px;
  border-bottom: 1px solid #34403c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #1b2324;
}
header strong {
  font-size: 18px;
}
header span {
  font-size: 13px;
  font-weight: 400;
  color: #a8b8b0;
  margin-left: 12px;
}
nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
a {
  color: #e9cc80;
  text-decoration: none;
  font-size: 13px;
}
main {
  max-width: 1120px;
  padding: 0 24px;
  margin: auto;
}
section {
  padding: 24px 0;
  border-bottom: 1px solid #33403b;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
h1,
h2 {
  font-size: 18px;
  margin: 0;
}
.section-heading span {
  color: #a8b8b0;
  font-size: 13px;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 1px solid #55635e;
  background: #273330;
  color: #eef5f0;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: #e6c36f;
  color: #1b211d;
  border-color: #f4d797;
  font-weight: 600;
}
input,
select {
  border: 1px solid #4b5a55;
  background: #0f1717;
  color: #fff;
  padding: 9px 10px;
  border-radius: 5px;
  min-width: 0;
  font-size: 14px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #c6d4cc;
}
.invite-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.invite-form input {
  width: 130px;
}
.invite-form button {
  min-height: 38px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  font-size: 13px;
}
th,
td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #293631;
  vertical-align: middle;
}
th {
  color: #9fafaa;
  font-weight: 500;
}
td:last-child {
  white-space: nowrap;
}
td button + button {
  margin-left: 7px;
}
.code {
  font-family: monospace;
  color: #f0d898;
  white-space: nowrap;
}
.muted {
  color: #99aaa3;
}
.empty {
  padding: 22px 8px;
  color: #99aaa3;
}
#adminMessage {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  background: #e9d39c;
  color: #17231a;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin: 0;
  z-index: 5;
}
#adminMessage:empty {
  display: none;
}
dialog {
  width: 420px;
  max-width: calc(100% - 24px);
  padding: 24px;
  background: #1b2524;
  border: 1px solid #607267;
  color: #edf5ef;
  border-radius: 8px;
}
dialog::backdrop {
  background: #0009;
}
dialog form {
  display: grid;
  gap: 16px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkbox input {
  width: 18px;
  height: 18px;
}
.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
}
.error {
  font-size: 13px;
  color: #ffb7b7;
  margin: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  header {
    padding: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  nav {
    width: 100%;
    justify-content: flex-end;
  }
  main {
    padding: 0 12px;
  }
  section {
    padding: 20px 0;
  }
}
