/* Shared admin account/character panel. Hosted in-game and on admin.html. */
#admin-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #05070a;
}

.adm-root {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #0b0d12;
  color: #e9e2cf;
  font: 13px/1.4 "Courier New", monospace;
}

.adm-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #343946;
  background: #12141a;
}

.adm-title {
  color: #e6b84c;
  letter-spacing: 2px;
  margin-right: 8px;
}

.adm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.adm-tabs button,
.adm-close,
.adm-section button {
  background: #242936;
  border: 1px solid #4b4438;
  color: #e9e2cf;
  font: inherit;
  padding: 5px 9px;
  cursor: pointer;
}

.adm-tabs button.on,
.adm-tabs button:hover,
.adm-section button:hover {
  border-color: #e6b84c;
  color: #e6b84c;
}

.adm-body {
  flex: 1;
  overflow: auto;
  padding: 10px;
}

.adm-section h2 {
  color: #e6b84c;
  font-size: 15px;
  letter-spacing: 1px;
  margin: 0 0 10px;
}

.adm-section h3 {
  color: #e6b84c;
  font-size: 13px;
  margin: 18px 0 6px;
}

.adm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.adm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

.adm-section select,
.adm-section input {
  background: #0d1015;
  border: 1px solid #4b4438;
  color: #e9e2cf;
  font: inherit;
  padding: 6px;
  min-width: 120px;
}

.adm-tablewrap {
  overflow-x: auto;
  margin: 8px 0;
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.adm-table th,
.adm-table td {
  border-bottom: 1px solid #2b303b;
  padding: 6px;
  text-align: left;
}

.adm-table th {
  color: #e6b84c;
  font-weight: normal;
}

.adm-muted {
  color: #a99f8a;
  font-size: 12px;
}

.adm-ok { color: #67c96b; }
.adm-bad { color: #e0554b; }

@media (max-width: 760px) {
  .adm-title { width: 100%; }
  .adm-section select,
  .adm-section input { min-width: 0; flex: 1 1 120px; }
}
