.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 22, 0.72);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: auto;
}

.admin-panel {
  width: min(1100px, 100%);
  background: var(--surface-color);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-glass);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.15rem 1.25rem;
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.admin-panel-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-main);
}

.admin-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
}

.admin-close:hover {
  background: var(--bg-color);
  color: var(--text-main);
}

.admin-hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.admin-loading {
  color: var(--text-secondary);
}

.admin-error {
  color: #f87171;
  margin-bottom: 0.75rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table th {
  color: var(--text-secondary);
  font-weight: 600;
}

.admin-table code {
  font-size: 0.8rem;
  word-break: break-all;
}

.admin-table input[type='text'] {
  width: 100%;
  max-width: 280px;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-main);
}

.admin-url-input {
  max-width: 360px !important;
}

.admin-order-btns {
  display: flex;
  gap: 0.25rem;
}

.admin-order-btns button {
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-main);
}

.admin-order-btns button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-actions {
  white-space: nowrap;
}

.admin-actions .admin-btn + .admin-btn {
  margin-left: 0.35rem;
}

.admin-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-main);
  cursor: pointer;
}

.admin-btn:hover {
  border-color: var(--primary-color);
}

.admin-btn.danger {
  border-color: #b91c1c;
  color: #fecaca;
}

.admin-btn.danger:hover {
  background: rgba(185, 28, 28, 0.2);
}

.admin-server-id-cell,
.admin-agent-key-cell {
  vertical-align: top;
  max-width: 22rem;
}

.admin-agent-key-cell .admin-key {
  display: block;
  margin-bottom: 0.35rem;
}

.admin-server-id {
  display: block;
  font-size: 0.68rem;
  line-height: 1.35;
  word-break: break-all;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.admin-btn-ghost {
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
}

.admin-key {
  font-size: 0.75rem;
  word-break: break-all;
  cursor: help;
}

.admin-muted {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.admin-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 1.5rem !important;
}
