/* Link and Bio card actions: keep each SVG legible against a dark control. */
html body .sidebar .sidebar-links .link-card .link-card__icon-button {
  color: var(--text) !important;
  background: var(--bg1) !important;
  border-color: var(--line2) !important;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s !important;
}

html body .sidebar .sidebar-links .link-card .link-card__icon-button svg {
  color: currentColor;
}

html body .sidebar .sidebar-links .link-card .link-card__icon-button:is(:hover, :focus-visible):not(:disabled) {
  color: var(--cy) !important;
  background: rgba(var(--cy-a), .08) !important;
  border-color: var(--cy) !important;
  box-shadow: 0 0 0 1px rgba(var(--cy-a), .18) !important;
}

html body .sidebar .sidebar-links .link-card .link-card__icon-button:focus-visible {
  outline: 2px solid var(--cy) !important;
  outline-offset: 2px !important;
}

html body .sidebar .sidebar-links .link-card .link-card__icon-button:disabled {
  color: var(--dim) !important;
  cursor: not-allowed !important;
  opacity: .4 !important;
  box-shadow: none !important;
}

/* Center the footer control while leaving the mobile selection tray in flow. */
.delete-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

html body #trash-can {
  width: 40px !important;
  height: 40px;
  min-height: 40px !important;
  max-height: 40px !important;
  flex: 0 0 40px;
  margin: 0 auto !important;
  padding: 0 !important;
  grid-template-columns: auto;
  place-content: center;
  gap: 0;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  color: var(--muted) !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s !important;
}

html body #trash-can svg {
  width: 20px;
  height: 20px;
  color: currentColor !important;
  fill: currentColor !important;
  opacity: 1;
  transition: color .15s, transform .15s;
}

html body #trash-can:is(:hover, .hover):not(:disabled),
html body #trash-can[aria-expanded="true"]:not(:disabled) {
  color: var(--red) !important;
  background: rgba(var(--red-a), .08) !important;
  border-color: var(--red) !important;
}

html body #trash-can:is(:hover, .hover):not(:disabled) svg {
  color: currentColor !important;
  fill: currentColor !important;
  transform: scale(1.05);
}

html body #trash-can:focus-visible {
  outline: 2px solid var(--cy) !important;
  outline-offset: 2px !important;
}

html body #trash-can:disabled {
  color: var(--dim) !important;
  cursor: not-allowed !important;
  opacity: .4 !important;
  box-shadow: none !important;
}
