.tool-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .6rem;
  background: var(--panel);
}
.tool-group > summary {
  cursor: pointer;
  padding: .55rem .75rem;
  font-weight: 700;
  list-style: none;
}
.tool-group > summary::-webkit-details-marker { display: none; }
.tool-group > summary::before { content: '\25B8'; display: inline-block; width: 1.1em; color: var(--accent); }
.tool-group[open] > summary::before { content: '\25BE'; }
.tool-group.pinned > summary { cursor: default; }

.tool-list { list-style: none; margin: 0; padding: 0 .5rem .6rem; display: grid; gap: .35rem; }

.tool-item {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  gap: .6rem;
  padding: .35rem .5rem;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid transparent;
  cursor: grab;
  user-select: none;
}
.tool-item:hover { border-color: var(--accent); }
.tool-item.exhausted, .tool-item.unavailable { opacity: .45; cursor: not-allowed; }

.tool-icon {
  width: 2.2rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 20%;
  background: var(--tile-color, #888);
  border: 2px solid rgba(255, 255, 255, .5);
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
}
.tool-icon.wall-icon {
  width: 2.2rem;
  height: .7rem;
  aspect-ratio: auto;
  align-self: center;
  border-radius: 2px;
  border-color: rgba(0, 0, 0, .35);
}
.tool-name { font-size: .9rem; }
.tool-count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.tool-item.over .tool-count { color: #ff8a8f; font-weight: 700; }
.sidebar.trash-active { outline: 3px dashed #e5484d; outline-offset: -6px; background: #3b1a22; }
.sidebar.trash-active::after {
  content: 'Release to remove';
  position: sticky;
  display: block;
  bottom: 0;
  padding: .5rem;
  text-align: center;
  font-weight: 700;
  color: #ff8a8f;
}
