.tool-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.card .ev-lock-overlay,
.card .ev-passed-badge {
  right: 60px;
}

.tool-link:focus-visible {
  outline: 3px solid #58b5ff;
  outline-offset: -3px;
}

.ivth-bookmark-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 8;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #355879;
  border-radius: 9px;
  background: #07111f;
  color: #eaf5ff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px #0008;
}

.ivth-bookmark-button[aria-pressed="true"] {
  color: #58b5ff;
  border-color: #1688ff;
  background: #0a1b2e;
}

.ivth-bookmark-button:focus-visible {
  outline: 3px solid #58b5ff;
  outline-offset: 2px;
}

.ivth-bookmark-button:disabled {
  opacity: .6;
  cursor: wait;
}

.ivth-bookmarks {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #284d74;
}

.ivth-bookmarks h2 {
  font-size: 21px;
  margin: 0 0 10px;
}

.ivth-bookmarks p {
  color: #9fb0c3;
  font-size: 13px;
  line-height: 1.5;
}

#bookmarkList {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 10px;
}

#bookmarkList li {
  padding: 12px;
  border: 1px solid #284d74;
  border-radius: 9px;
  background: #07111f;
  overflow-wrap: anywhere;
}

.bookmark-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.bookmark-actions a,
.bookmark-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 38px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #355879;
  border-radius: 8px;
  background: #0a1b2e;
  color: #eaf5ff;
  cursor: pointer;
}

#bookmarkCount {
  color: #9fb0c3;
  font-size: 15px;
}

.bookmark-toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 12px 18px;
  max-width: calc(100% - 24px);
  border: 1px solid #355879;
  border-radius: 10px;
  background: #07111f;
  color: #eaf5ff;
  box-shadow: 0 8px 24px #0008;
  font-size: 14px;
}

.bookmark-toast:empty {
  display: none;
}
